Skip to content


Fatal error: Cannot re-assign $this

In PHP 4.2 and below, a lot of people have been using the undocumented feature (or un-patched bug) where you could assign a value to the object itself:

$this = $foo

This non-feature has been patched in PHP5, thus you no longer can use it. In fact, running the same script on a PHP5 server will end up with a FATAL ERROR.

To fix your script to be compatible with PHP5 (and backwards compatible with 4.2) you can replace that line of code with:

foreach (get_object_vars($foo) as $key => $value)
$this->$key = $value;

Posted in English, Sidetracked.


Milwaukee M12 Compact Hackzall

Did you ever find yourself peeking through a hole in the drywall and thinking, “Only if I could reach in there and cut that pipe…”? But you’re looking at your reciprocating saw and thinking, “How the heck am I going to fit this tool in there AND hold it with one hand”? Well, you could invest some time in a small hand saw…

OR you could invest some dough in Milwaukee’s M12 power tools. The original maker of the Hackzall has a compact version, small enough to fit through a 6 inch hole and short enough to fit between studs. You won’t want to use this thing one handed all-day-long, but it’s great when occasional single-handed use is called for.

Note: Full kit comes with gigantic case.

Posted in Uncategorized.


User level PHP Session ID

If you let students/employees run websites off your main domain, you may encounter problems when they try to run PHP scripts with session IDs.

You have a PHP session conflict in cases like this:

http://www.example.com/~abel/login.php?a0123456789bc…

http://www.example.com/~cain/login.php?a0123456789bc…

Because of the way sessions are stored as Cookies, if the browser encounters a new session with the same name under the same domain, it may not replace an older session with the new one. Browsers using the WebKit engine (Safari, Chrome) may encounter this problem more often than others (for reasons I cannot pinpoint). Continued…

Posted in English, Sidetracked.


ASCIIキーボードのMacBookでATOKを使うなら

アルミの削り出しから作られたユニボディーのMacBook Proが発表されてからはや1年半。今ではSDカードリーダー標準搭載のユニボディー第2世代が販売されている。以前のキーボード脱着式とはことなり、一度キーボード配列(ASCII/JIS)を決めてしまうと、後で変更できない。円高沸の今、アメリカへの出張ついでにASCII版のMacBookを買って来てしまう人も少なくないと思う。

ASCIIキーボードだからと言って英語しか打てない訳ではない。Mac OSはその点すばらしく、どんなキーボードでも多言語入力が可能だ。ローマ字入力ならなおさらカナ表記のないASCIIキーボードの方がスッキリして見える。ただ、日本語入力に関してはいくつかの不具合がある。 Continued…

Posted in Apple, Japanese.


24 Season 8 Box set

24 Season 8, aka The Final Season of 24, will be released soon as DVD/Blu-ray box sets. In anticipation for my own purchase. I’ve been roaming through Amazon (not THE Amazon, but Amazon.com).

24: Season Eight [DVD]

24: Season Eight [Blu-ray]

Posted in English, Sidetracked.


SquirrelMail Locales

When you update SquirrelMail, you may notice that all users default to the English language interface. This is because the SM package does not contain all the translated locale files. Download the locale files from the SquirrelMail site and install them in the path/squirrelmail/locales/ directory.

Posted in English.


In Memory: Booq Boa XL 2004~2010

My trusty backpack failed a month before it’s 6th year anniversary.

Mac users may be familiar with a bag manufacturer by the name of Booq. They operate out of California and specialize in making bags for portable devices. When they opened their shop to the world wide web in 2004, their main target was owners of the then new titanium PowerBook G4 (aka TiBook). The wide distribution of Apple’s scratch prone metal clad laptop called for the now ubiquitous “sleeve” we see on most portable devices – Booq made them for the TiBook. Continued…

Posted in English, Sidetracked.


Milwaukee M12 Right Angle Drill

The Milwaukee 2415-21 M12 12-Volt 3/8-Inch Cordless Right Angle Drill/Driver Kit and the 6-Piece Universal Quik-Lok Stubby Flat Boring Bit Set is a match made in tool heaven.

If you’ve tried out Milwaukee’s M12 tools at all, you know how much power and torque they pack in such a slim package.

The Right Angle Drill is no different. With a LED light to aid your sighting and a large paddle trigger, you won’t have to contort yourself into a pretzel, trying to squeeze a drill into a corner stud. Compact right angle drills are a MUST for renovation and retrofits.

The short length of the Stubby bits are a perfect solution for getting into the tightest spots, which probably is why you are using the Right Angle Drill in the first place. The 6 piece set comes with an extender attachment so that you could even use the bits at a conventional length.

Posted in English, Home Improvement.


ResQMe from using it the wrong way…

WARNING!! ResQMe The Keychain Version of the Original LifeHammer is NOT A TOY.

… especially not on an airplane.

Follow the link to Amazon.com and watch the video commercial for how and when to use this gadget. But I can think of many ways this tool could be used for vandalism, theft, robbery, and terrorism – but then, so can a plastic straw.

Posted in English, Sidetracked.


What happened to the Dewalt DC9180 Lithium-ion Battery

When Dewalt first came out with their DC9180 Lithium batteries, I was VERY interested in them, but was turned off by their price. I was turned off even more when the local Home Depot was selling them for $10 over MSRP.

So, I thought I’d let the laws of supply and demand dictate the price. I waited a year for the price to come down, but instead, the damned thing started disappearing from retailer’s SKU books. Because Dewalt decided to introduce the batteries at such a high price, there was no demand for it – therefore, the supplies dwindled, and the prices stayed high. Of course, there must have been a few lucky people who’ve made their purchases from smaller retailers desperate to move their unpopular inventory…

And now, the DC9180 Lithium battery is not on store shelves.

And the prices, although not much, has come down. So maybe I’ll order the Lithium battery and charger set.

Posted in English, Home Improvement.