Monthly Archives: March 2007

Justine Henin back on form

“What I’m trying to do now is live right now, without being concerned about what will happen in two days.”
There’s a Zen concept called “beginner’s mind.” As a beginner, you’re receptive and see everything fresh. You’re amenable to suggestion. You take things at face value. Conversely, the more you know, the more opinions and [...]

First Open-Source Car

The world’s first open-source car! Cumbersomely dubbed “c,mm,n” (say “common”), was introduced at AutoRAI in Amsterdam. (from Winding Road)
Looks cool!

Zend Gdata PUT request

Reference at Zend_Gdata.
Currently, GData only allow POST as request method and not PUT, issue link
PUT is needed! We can just use the existing post method. Here is what I modify (for the time being)

public function post($xml, $uri = null)
{
return $this->request($xml, $uri, ‘POST’);
}
public function put($xml, $uri = null)
{
return $this->request($xml, $uri, ‘PUT’);
}
public function request($xml, $uri = [...]

Global variable in Drupal module

There is something different in a variable between a variable in a Drupal module and a variable in a normal php file.
normal php

$_User = “user”;
function test() {
global $_User;
..
}

Drupal module

global $_User;
$_User = “user”;
function test() {
global $_User;
..
}

In Drupal module, I need the additional global $_User; Why?

Installing Drupal Module

Reference at Installing contributed modules.
I need to remember where to Enable the module. Version 5.x users go to administer > site building > modules.

Php syntax check

There is an easy way to verify php syntax, which I really need!
php -l file

Do You Feel Disabled?

Original article at Seishindo by Charlie Badenhop. Charlie Badenhop is the originator of Seishindo, an Aikido instructor, NLP trainer, and Ericksonian Hypnotherapist.
“Life offers each person a unique set of challenges they must successfully face if they are to live a fulfilling life. We can spend our lives feeling sorry for ourselves because of our hardships, [...]