programming

PHP static late binding
jhm – Sun, 2010 – 11 – 28 12:07

I just stumbled across this myself and am glad that I am not crazy after all ...

PHP case sensitivity @#&^%!
jhm – Tue, 2010 – 10 – 26 08:54

The other day I finally figured out why some people are so violently opposed to PHP. When using object oriented features of PHP5 I discovered the hard way that PHP has some weird, backwards compatibility issue rules how it handles case.

In a nutshell, variables are case sensitive, but function names, and object methods (!!!) are not.

That explains why the following code does not work

<?php
class A {
function
GET($url) {
 
// retrieve the url
}
}
class
B extends A {
private var
$foo;

function
get($var) {
  return
$this->var;
}
}
?>

Your rating: None Average: 1 (1 vote)

NGINX + PHP-FPM + APC = Awesome
jhm – Sun, 2009 – 07 – 26 06:55

Trawling the internet for solutions that combine APC with memcache I came across this article. It talkes about NGNIX and APC, one of my next frontiers (ngnix) anyways, so I decided to "bookmark" it here.

What if there was no IE6?
jhm – Sat, 2009 – 04 – 18 10:00

Recently I have been fighting IE6 again, and it never stops to amaze me how it can ruin my day. So I thought I link to this article/blog on ajaxan.com which speaks to this piece of $#@%!$@ software.

Multiple Node Access logic patch
jhm – Fri, 2008 – 11 – 14 11:13

drupal related

Hybridizing Java
jhm – Sat, 2007 – 03 – 24 08:14

A very thoughtful 'article' by Bruce Eckel about the state of affairs of 'the Web'

FireBug
jhm – Wed, 2006 – 08 – 02 14:08

FireBug lets you explore the far corners of the DOM by keyboard or mouse. All of the tools you need to poke, prod, and monitor your JavaScript, CSS, HTML and Ajax are brought together into one seamless experience, including a debugger, an error console, command line, and a variety of fun inspectors.

Apache2::Reload - Reload Perl Modules when Changed on Disk
jhm – Thu, 2005 – 12 – 15 10:12

Apache2::Reload reloads modules that change on the disk.

When Perl pulls a file via require, it stores the filename in the global hash %INC. The next time Perl tries to require the same file, it sees the file in %INC and does not reload from disk. This module's handler can be configured to iterate over the modules in %INC and reload those that have changed on disk or only specific modules that have registered themselves with Apache2::Reload. It can also do the check for modified modules, when a special touch-file has been modified.