Agaric Design Collective

Problem

Disable Trackpad Tap to click Ubuntu and HP Pavillion

Disable Trackpad Tap to click

hp pavilion dv6000 turn off trackpad clicks
hp pavilion dv6000 turn off trackpad tap to click ubuntu

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"

 

SSH agent forwarding on Mac OS X debugging

ssh -v agaric-production

OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/ben/.ssh/config
debug1: Applying options for agaric-production
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to agaricdesign.com [66.135.37.243] port 22.
debug1: Connection established.

 

E-mails being sent or nodes being saved by batch api breaking on a regular schedule just during cron runs

If you are having weird problems in Batch API processes, such as the base URL for notification e-mails being replaced with something less-than-useful like /var/www/drupal, the culprit may be (somehow) cron.php being called by a command line script (rather than curl or something going to cron.php over the internet).

 

"Content profile registration broken": debugging rogue form validate overrides

Bad coding in a development partner's custom module was the culprit. It was overriding content_profile_registration's setting of a validation function (and every other module's, too).

Inside the custom module's implementation of hook_form_alter() lives the error:
<?php
switch ($form_id) {
// ... ignore lots of code
case 'user_register':
// ... ignore more code

 

TinyMCE, iFrames, JQuery and Drupal scattered notes

Drag and drop into the TinyMCE textarea triggers onEvent twice in such close succession that it creates a race condition, and the same values for the length of the textarea before and after are given.

 

Drupal deleting User UID 0

Possible culprits:

./profiles/scf/modules/modified/user_import/user_import.module:1450: user_delete($existing, $existing->uid);
./profiles/scf/modules/modified/invite/invite_cancel_account.module:20: user_delete(array(), $account->uid);
./profiles/scf/modules/contrib/logintoboggan/logintoboggan.module:42: user_delete(array(), $account->uid);

 

Disabling Drag and Drop into WYSIWYG textarea (where do clients get these requests)

Earl's long quest brought this:

<input name="expQuant0" type="text" size="2" value="1"
onKeyUp="calc_Exp(this.name,this.value,event);"
onFocus="clearbox(this.name,this.value);"
onBlur="setbox(this.name,this.value,'exp');" ondragstart="return
false;" >

 

Debug a somethnig going weird in someone elses nodeapi presave

This could be prettier. Do not judge. Especially could be prettier using an IDE.

<?php
/**
* Invoke a hook_nodeapi() operation in all modules.
*
* @param &$node
* A node object.
* @param $op
* A string containing the name of the nodeapi operation.
* @param $a3, $a4
* Arguments to pass on to the hook, after the $node and $op arguments.
* @return

 

Form altering certain CCK widget properties is tricky: adding and changing the size of an autocomplete textfield

This code (which is not called automatically but is a helper function for our hook_form_alter implementation) adds the suffix but does not change the forms size. Somehow these widget settings must get added later.

<?php
function biblioreference_alter_item(&$form, $key, $item, $fields) {
$field_name = strstr($key, 'field_');