Tuesday, October 19, 2010

Re-creating user 0 fixes inaccessible Drupal site

Devbee explains why user 0, the default user is so important in Drupal. A missing user 0 can mean that your site cannot be reached from the outside!

If you find yourself having trouble accessing cotent or using your site as an anonymous user, you can safely run the following queries against your Drupal DB (4.6/4.7):

INSERT INTO users (uid, name, mail) VALUES ('0', '', '');
INSERT INTO users_roles (uid, rid) VALUES (0, 1);
INSERT INTO node_access VALUES (0, 0, 'all', 1, 0, 0);

If any of the queries above returns a "duplicate entry" error, that means a row already exists, and that table is already OK.

Wednesday, October 13, 2010

Googlification

Science can’t accept technical barriers of content use!:
But I have a different worry. The worry’s called Google and I have a great fear that we are being "googlified". The great simplicity and the enormous quantitative search results that Google produces are being seen uncritically. This might result in a tendency to no longer use documents, articles and books, but to solve all our information problems using Google. There, information is not really indexed deeply enough and the algorithms behind the ranking are unclear. "Googlification" should create great concern for everybody in the information as well as education sector, including parents of children.

Thursday, October 07, 2010

Nice way to insert a stylesheet in an HTML doc

I find this is a nice way to insert a stylesheet in a HTML document. Just specify it in the <HEAD> section, between <STYLE> mark-ups.
like this:


<STYLE>
<!--
BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small }
-->
</STYLE>


I used this tool to convert the html code in HTML entities.