Archive for January, 2009

Even the best fall down

| January 8th, 2009
I just wrote "if (!$retval) {". In C code. :facepalm:

From Andrei Zmievski via Twitter.

Andrei is a leader in the PHP community, spearheading PHP development and bringing us closer to PHP6.

Just goes to show that developers are human too. (Sorta.)

…and one more thing

| January 8th, 2009

Screwed by the Goog!

Google Reader Confused

I hate you, Bill Gates

| January 7th, 2009

Found on http://www.americanbaby.com/404.html (You need to disable javascript before loading to see it.)

<body onLoad="redirect()">
<!-- this is a comment
the whole thing
please disregard this
unless you're Bill GAtes and
in which case this is all your fault
-->
</html>

Ugh. Gotta love Microsoft’s inability to adhere to standards.

Also, see this: Open Letter to IE6 for 2009

return true, or… return true

| January 5th, 2009

This method is supposed to determine if a post is a draft or not. I’ll let it speak for itself.

public function __get_draft() {
    if ($this->visible == 0 && $this->archived == 0 && $this->deleted = 0) {
        return true;
    } else {
        return true;
    }
}