User login

Benjamin Melançon

Upgrading from Drupal 7 alpha 6 to Drupal 7 beta 2

This isn't pretty. And i've probably left out a critical step.

Core concepts: making some changes directly in the database. Enabling head2head and alpha2alpha in the database (setting both status and schema_version). Manually commenting out the update hooks that i did in the database to make user module's updates work so that alpha2alpha's can work.

Setting the line in alpha2alpha.module to give the current version:

<?php
  $version = variable_get('alpha2alpha_version', 7);
?>

Drupal Work Collective Book Sprint Cape Cod II

Drupal Work Collective plans.

Materials:

Power strip (ben)
Power squid (dan)
More powerful wifi (dan ben - not sure if it's good enough though)

Food:

Bring from Agaric HQ North Natick:

See Drupal 7 permissions internal system names

Asked in IRC #drupal

has anyone made a Drupal 7 module for seeing the system names for all permissions? (now the Permissions UI uses human-friendly names and descriptions)

No response.

Update: This has been incorporated into Xray.

Marginalia

In searching for the perfect name for my dreamed-for annotation module, i found Marginalia. And through the name, i found a JavaScript tool already built to do it!

http://webmarginalia.net/

The search is over:
http://en.wikipedia.org/wiki/Marginalia

RDFa for telephone, IRC links that open, and other spiffiness for Agaric's client support page

RDFa-ing up our support page.

http://www.w3.org/TR/xhtml-rdfa-primer/

recommends FOAF for most contact stuff, and there is a FOAF:Organization for companies and weird hybrid collective

The tel URI for Telephone Numbers
http://tools.ietf.org/html/rfc3966

Must use ->fields() method in select statements in Drupal 7 database layer (DBTNG)

An error like this one:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM block block WHERE (theme = 'bartik')' at line 1: SELECT FROM {block} block WHERE (theme = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => bartik ) in xray_block_statistics() (line 80 of /home/ben/workspace/dgd7all/sites/default/modules/xray/xray.module).

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.

The Ultimate Notetaking Drupal Site

  1. Title must be optional.
  2. Saving must be automatic.
  3. Must allow multiple edit tabs to be open at once.
  4. Tagging and crossreferencing preferred.

For me, it should be the one place for everything. This implies, if done with one content type, possibly having an optional date field, a private textarea...

Background:

Ideally the tabs would be vertical, and somehow in the application, but really it can just use the browser's tabs.

Syndicate content