Author Archives: geneticdrift

HDD 79643 Power-On Hours

Model Family: Hitachi Travelstar 5K160 Device Model: Hitachi HTS541660J9AT00 Serial Number: ************** LU WWN Device Id: ************** Firmware Version: SBBOA70H User Capacity: 60,011,642,880 bytes [60.0 GB] Sector Size: 512 bytes logical/physical Device is: In smartctl database [for details use: -P … Continue reading

Posted in Hardware | Tagged | Leave a comment

Rikomagic RKM MK36S Review

Bought this just to find out if it can replace the more expensive big fat PC as a basic computer for light usage. The expectation were not high but the bar was also low: Web browsing, email, photos, text editing, … Continue reading

Posted in Hardware | Tagged , , | Leave a comment

Drupal 6: New-forum-topic links fix

New forum topic links (i.e. node/add/forum/0) result in page not found. There seems to missing a menu entry to handle the forum id. This patch in the node module hook_menu() adds such item and fixes the problem. diff –git a/modules/node/node.module … Continue reading

Posted in Drupal | Tagged , , | Leave a comment

Drupal 6: What argument names *not* to use in hook_theme

When defining hook_theme the choice of argument names that are passed to the theme’s template is important. These argument names share a namespace with some default argument names that are added by template_preprocess. Using any of these names will conflict … Continue reading

Posted in Drupal | Tagged , , , , | Leave a comment

hexdump for javascript binary string

hexdump -v -e ‘”\\\x” 1/1 “%02x” “”‘ utf8.bin output format: \xbc\x8d\xd8\xda\x90\x15\x0f\x77\xc8\x0a\xcb\x60\xb9\x67\xac\x5e\x15\xdd\xde\x2c\x6c\xc6\x67\x2a\x3b\xfd\x6d\xb2 source: http://256.com/gray/docs/misc/hexdump_manual_how_to.html

Posted in Uncategorized | Tagged , , , | Leave a comment

Drupal 6: Allow authenticated users to comment anonymously

In a web site where only authenticated users have access to content and comments it may still be required to let authenticated users comment anonymously. This small module adds the option for the administrator to allow anonymous commenting by authenticated … Continue reading

Posted in Drupal | Tagged , | Leave a comment

Drupal 6: Restricting access to users-search

The core search in drupal 6 adds a “Users” search tab in the search page. Although it has permissions settings for content search and for advanced search, there seems to be no built-in option to restrict access to the users … Continue reading

Posted in Drupal | Tagged , , , | Leave a comment

Drupal 6: Customizing individual checkboxes in hook_form_alter()

When hook_form_alter() is called, form elements of type ‘checkboxes’ are not yet expanded to individual checkbox elements: Array ( [#title] => Options [#type] => checkboxes [#options] => Array ( [opt_1] => Option 1 [opt_2] => Option 2 [opt_3] => Option … Continue reading

Posted in Drupal | Tagged , , | Leave a comment

Drupal 6: Notifications and content type access interaction

The notifications module lets users subscribe to content types that they don’t have view access to.
Continue reading

Posted in Drupal | Tagged , , | Leave a comment

Welcome to IO Tide

Here you can find some random stuff by GeneticDrift.

Posted in Intro | Leave a comment