User login

note

Making a block example done live at WesternMassDrupalCamp 2011

The most fun lesson learned– passing in a pure integer to the $block['content'] in the implementation of hook_block_view causes an unsupported operand error so deep in the block rendering system the stack trace doesn't even know where it came from.

<?php
/**
 * Implements hook_block_info().
 */
function dgd7glue_block_info() {
  $blocks = array();
  $blocks['twoplustwo'] = array(
    'info' => t('Two plus two.'),
  );
  return $blocks;
}

Unhosted: Freedom from monopoly platforms

Wow... just wow... this looks to be the decentralized infrastructure that People Who Give a Damn / Visions Unite needs to match its decentralizing of power!

Unhosted is a project for strengthening free software against hosted software. With our protocol, a website is only source code. Dynamic data is encrypted and decentralised, to per-user storage nodes. This benefits free software, as well as scalability, robustness, and online privacy.

Use Drush to sync the database from one site to another

Based on Greg Anderson's chapter in the Definitive Guide to Drupal 7.

drush sql-sync @dgd7.prod @dgd7.local

Prerequisites

A dgd7.aliases.drushrc.php file in a ~/.drush directory (that's a .drush folder in your home directory) that contains something like:

Funded Free Software

A Drupal developer asked outright what people thought of attempts to monetize. I responded to icanlocalize's blog:

For-pay support is definitely a model with promise and worth trying. Try to avoid keeping key pieces online and proprietary though; that i think is bad for the ecosystem.

Anonymous comments as DOS attack

in other news, some of our sites have been hit with a constant barrage of "?page=528&size=node550" tacked onto various urls, esp. images. It seems so purposeless thought it might be a smokescreen for an attack like POST /comment/reply/50/370 that he also sees.

Um, so yeah. Looking at the actual page showed that it was the unprotected anonymous comments, around 140,000 of them, that eventually started hurting our server...

Notes from old article on how university raised its female participation rate in CS

http://news.cnet.com/2008-1082-833090.html

Add more design experts of different viewpoints, different genders and different races, and you're going to get products that are much better in terms of meeting the needs of a broader number of people.

Too many connections in lock_may_be_available() on Drupal 7 site

Encountered this error:

The website encountered an unexpected error. Please try again later.
Error messagePDOException: SQLSTATE[08004] [1040] Too many connections in lock_may_be_available() (line 165 of /var/local/drupal/dgd7/drupal/includes/lock.inc)

The website encountered an unexpected error. Please try again later PDOException Too many connections in lock_may_be_available() lock.inc

Altering path and theme path of template files in Drupal 7 is just for make-believe?

Update: Issue posted. http://drupal.org/node/1028214

The goal is to use the book-variable.tpl.php (exactly like the book-variable.tpl.php is used, including how it gets overridden by themes) but without its preprocess function. Here's one fallback approach that should work, but doesn't, due to seeming weirdness in Drupal:

Drupal 7 overview (Lullabot video notes)

Notes from the Lullabot Drupal Overview video (which is free until Wed. Jan 12).

minimal has no optional modules enabled nor any content types. Nor is the administrator role set up for you.

DBTNG

master-slave replication

any database that PHP can support, which includes Oracle and MSSQL (Microsoft)

built on top of PDO which comes with PHP 5.2+.

Drupal requires PHP 5.2.4 or later
PHP 4 is dead.

User 1 is still special

undefined method `set' for main:Object

When attempting to use, on a newly set up Ubuntu environment, the Vlad the Deployer scripts that Stefan set up for Agaric, i got this error:

undefined method `set' for main:Object

Turned out the need to install vlad (a rubygem) was properly documented on Deploying the Agaric Way already, and now has been added to our Installing Drubuntu document (which should probably be renamed installing Drubuntu the Agaric way...)

Syndicate content