You are heredrupal

drupal


Saving Drupal CCK node, drupal_execute is a dog, use node_save instead

By dgtlmoon - Posted on 21 May 2009

Interesting benchmark, saving 100 CCK nodes in a loop, nearly 5 seconds difference between drupal_execute method and going straight for node_save, i guess this indicates how much overhead is in the form handling (which is not a bad thing!)

heres the output!

time node object based insert: 0.00971524078067 each average, total 0.981767416
time node drupal_execute based insert: 0.0454754971042 each average, total 5

BitCache distributed storage - distributed it is NOT!!

By dgtlmoon - Posted on 12 May 2009

Thought i'de give the Drupal BitCache module a spin for a new project as it offers all the promises of Content Addressable Storage (CAS).

Yes, OK, so you can use the FileFramework that uses the BitCache module to present CCk fields, but there is still nothing distributed about the BitCache project.

There is no support for memcached for Drupal BitCache (And, more so, why would you want to store blobs in memcached? it does not handle object persistance so well)

Dynamic hook_menu results in Drupal, was 5, not in 6!

By dgtlmoon - Posted on 21 February 2009

So you thought, I'll build a set of menu items depending on some database results (Say a menu link for every node of a certain type the user owns).

Dreamhost improve Drupal support a little...

By dgtlmoon - Posted on 10 February 2009

Ok, so basically, they're saying they've added a few modules for the 'one click' install stuff.

From: 	DreamHost January Newslettery 
Subject: 	DreamHost Newsletter v11.1 January 2009
Date: 	Mon,  9 Feb 2009 20:46:06 -0800 (PST) (Tue, 15:46 EST)
*snip*snip*snip*snip*

########################################################################
5.

Drupal optimization - detecting sub-optimal pathauto path's

By dgtlmoon - Posted on 30 January 2009

If you have Drupal's PathAuto module installed (it automatically create's aliases for nodes based on a configurable range of items such as node title etc), and you run a site that has lots of "flat node alias-spaces", that is to say, for example, every user creates a page with a title of "My hobbies", except if you have 10,000 users, then you may notice the path-alias url's looking something like "/my_hobbies-1" "/my_hobbies-2" "/my_hobbies-3"

Valigrunt chrysler mopar site is up!

By dgtlmoon - Posted on 02 January 2009

Just put the new valigrunt mopar chrysler website up

Written with drupal-5 and based on the nonzero theme, combined with views, panels and jlightbox it's a very slick interface! check it out!

Speeding up Drupal 5.x on Dreamhost, slow no more!

By dgtlmoon - Posted on 05 November 2008

I'm sure you all love Drupal however there are a couple of design decisions that are less than ideal in all circumstances.

One of them is the path alias handling, you know - the stuff that lets you have a page accessible via mysite.com/fruit/bananas instead of mysite.com/node/1234

drupal 5.11 to drupal 5.12 update patch

By dgtlmoon - Posted on 02 November 2008

See attached, might save you a minute or two Apply with


dgtlmoon@nine:~/drupal-5$ lynx -source http://dgtlmoon.com/files/drupal-5.11-to-5.12.patch|patch -p1
patching file CHANGELOG.txt
patching file includes/bootstrap.inc
patching file modules/aggregator/aggregator.info
patching file modules/block/block.info
patching file modules/blog/blog.info
patching file modules/blogapi/blogapi.info
patching file modules/book/book.info
patching file modules/color/color.info
patching file modules/comment/comment.info
patching file modules/contact/contact.info
patching file modules/

Drupal python background server

By dgtlmoon - Posted on 17 July 2008

Heres some code attached I wrote last year but havent published it on drupal.org just yet, it's my python background server for drupal actions, or put simply "Asynchronous python daemon for Drupal interaction"

Just perfect for managing actions that require long, cpu or filesystem intensive operations such as encrypting, building a file, or even interfacing with other hardware/usb/bluetooth etc etc

This is born out of the need to have a

New drupal module: simplenews schedular ( reoccuring newsletters )

By dgtlmoon - Posted on 03 June 2008

A simple but effective drupal newsletter module

Simplenews scheduler sends a newsletter as a re-occurring item based on a schedule.

Simplenews scheduler does so by creating a new "edition" (rendered copy) of a node at the time that it required to be sent again, the original newsletter is never sent but all editions are according to a pre-defined schedule, this is triggered via hook_cron