tcpip: (Default)
Diary of a B+ Grade Polymath ([personal profile] tcpip) wrote2012-02-12 04:22 pm

Of Gods, Games, Linux and more

This is a particularly long post, given my astounding neglect of livejournaldreamwidth for the past fortnight. I am feeling rather harsh on myself with a lack of sufficient 'blogging (with the dozen or so that I contribute to). Particular recent events included attending the Melbourne book launch of Life Without Money, from Frans and Anitra, a proposition which I think is a economically unsound with the book unavailable as downloadable PDF under a Creative Commons license (for example). The Unitarian Philosophy Forum met last Sunday with an excellent attendence to hear Roger Boyce provide an introduction to Buddhism and the question on whether it is a religion or philosophy. Finally, big social event of the fortnight was [livejournal.com profile] recumbenteer's fortieth birthday party, an excellent evening with fine food, wine, conversation a good jazz-funk fusion band (a rare form of jazz - actually tolerable) and with Jasper visiting from Perth.


Went to an small fundraising dinner run by the Progressive Atheists association, specifically for the One Law for All group. There is a very real concern that religious law is been introduced to secular countries under the guise of multicultural policy - and many members of the nominal left are utterly failing on this level, falling into relativism rather than universalism. Being sensitive to cultural contexts does not mean being entrapped by them; universal rights transcend any cultural particulars. Today's presentation at the Unitarians, by Ralph Catts, member of the Glasgow congregation, also touched upon the issue. On a related issue next Saturday the Victorian Secular Lobby is holding a meeting on "Religious Education in Public Schools: What Can We Do?"; RSVP here or via the Victorian Secular Lobby's Facebook page. The speakers for this event include Mike Stuchbery and Stephen Stuart of the Victorian Humanist Society. The Humanists have tried to introduce a secular values class for replacement for compulsory religious instruction in public schools. I also had the good fortune to hear Mr. Stuart speak last Sunday at the Unitarian Church as he gave a report on last year's World Humanist Congress in Oslo.

Much of the past fortnight has been spent putting the final touches on RPG Review 13 and 14, a 128 page special double issue on D20 games and Planescape. A very late interview from Crafty Games came in, requiring a fair bit of reformatting, plus I needed to finish a 20 page article which tries to convert the stats given in Horror on the Orient Express and the Masks of Nyarlathotep, two of the greatest Call fo Cthulhu adventures, to D20 Call of Cthulhu. The experience, a damn difficult one, illustrated to me that the two systems are not as obviously convertible as one may think. The next issue of RPG review will be dedicated to independent games, the punk fanzines of the gaming community, with an interview with Liz Danforth. An interesting temporal and structural correlation will be be between independent systems and narrativism. For the last fortnight, games I've played or run include Agon, which worked very well, Pathfinder Planescape and Pendragon. Looking forward to GURPS Korea today and Best Friends next Thursday.

Last Tuesday was the first meeting of the year for Linux Users of Victoria; Andrew Chalmers gave a well-received presentation on micro-kernels and the GNU Hurd project in particular. In lieu of a second speaker there was edited compilation of the keynote speakers from Linux Conference Australia; the full collection of video presentations are readily available (with yours truly acting as MC in a number of speeches). A couple of recent public pieces of work from yours truly include brief remarks on how to add content the body of Drupal nodes and more importantly (and one I neglected previously in a previous post), a response from an otherwise good site, clients from hell for en masse conversion of documents to PDF. Looking forward to Multicore World in New Zealand next month, where I'll be taking up MC duties again.

[identity profile] http://users.livejournal.com/_fustian/ 2012-02-12 06:21 am (UTC)(link)
how to add content the body of Drupal nodes

Dude! hook_nodeapi/hook_node_view. (You could even do it in node.tpl.php, if you're not going to be switching themes.) Otherwise you've just created an ongoing maintenance issue.
Edited 2012-02-12 06:23 (UTC)

[identity profile] tcpip.livejournal.com 2012-02-12 09:36 am (UTC)(link)
Intriguing, I asked on the Drupal support list what would be the best way to do this before going down the SQL path and didn't receive this suggestion. One member of the list did end up writing a module, all of all things, that did the same task as the one line of SQL...

[identity profile] http://users.livejournal.com/_fustian/ 2012-02-12 11:41 pm (UTC)(link)
It might have been the way you phrased it. My suggested solutions don't actually alter the body text of the nodes in question in the database (rather, only during display), so they would not retain the additions if the nodes were, say, exported somewhere else. To actually change the text of current nodes, SQL probably the simplest solution (although it's not the Drupal Way, which would be to use node_load/node_save in a module or PHP-filter page)—although you'd also want a solution (eg. a module which uses hook_nodeapi/hook_node_presave) to auto-append the same text to any new nodes.

Also, modules are surprisingly simple to write. I feel it's good practice to routinely create a catch-all custom-features module for each new Drupal install, so little bits of functionality like this can be implemented quickly and easily. (Coincidentally, I'm hacking on exactly such a module right now—or would be, had I not taken a break to read some social media. :)
Edited 2012-02-12 23:46 (UTC)