User login

Public

Stumbling through DBTNG, Drupal 7's new database layer

Order matters. condition() before countQuery()

This fails (note it trying to do a subquery):

<?php
return db_select('block')->countQuery()->condition('theme', $theme)->execute()->fetchField();
?>

Prevent LibreOffice/OpenOffice from splitting a string of text on symbols in the text

OpenOffice was insisting on splitting a line a string of text !$has_money between the exclamation point and the dollar sign.

As far as i can tell the only solution is to insert a special character, the "zero-width non-breaking space": U+FEFF.

It's something like fifth from last when using the insert special character dialog.

Render in Drupal 7 notes

Drupal 7 Render Arrays (and the new Render Example) by rfay
http://randyfay.com/node/79

Using the theme function: drupal 7 theme() should always take an array, a string is not officially supported. See Handing theme() function an empty string or NULL as its second parameter triggers a fatal error.

Drupal Guilds, as a subset of Open Guilds, proposal

The idea of Drupal Guilds are being championed by Aaron Winborn. They have clear compatibility with Dan's Drupal work collectives idea and many of the principles that define Agaric Design Collective.

http://aaronwinborn.com/blogs/aaron/transcript-drupal-guilds-presentation

Completely undo commits and history that should never have been

This fix is being done from a remote repository, because stuff was pushed there that shouldn't have been. However, this repository is only supposed to be cloned and not pushed to (one way one time), so we can destructively set it back to the way it should be.

cd /srv/git/agaric/siteproj.git
git reset add42b74103a4c756d7d55c4abf3d5b0ff914b0c

where that is the last good commit.

And that's it.

File this under do not do this at home.

Repeated testing of core patches with CVS

catch telling chrisshattuck in IRC: I keep one checkout + db, reset the checkout with cvs -q diff | patch -p0 -R and usually re-use the database until it's completely dead.

Syndicate content