October 5th, 2008 -- Posted in Uncategorized
I’m not sure what lead me to it, but I stumbled across a blog post on how to implement Enums in PHP via userland code written by Jonathan Hohle. I liked the concept he had, but the implementation was a bit unappealing because it used eval() among other more minor issues. You shouldn’t need to generate Enums at runtime, so I took that as a challenge to find a way to do it at compile time, thus making the code much more efficient. Like Jonathan, I also wanted to maintain support for PHP’s type hinting and it should obviously support the semantics one expects from an enum if feasible. I wasn’t sure of the real value to having the Enums iterable as well like he did, but I figured if possible I should keep support for that too.
Read the rest of this entry »
Tags: class, enum, example, github, howto, iterator, PHP, PHPClassLib, userland
1 Comment »
October 1st, 2008 -- Posted in Uncategorized
Got an interesting email forward from my father. I haven’t verified the math and statistical figures, but it looks right on a cursory glance (Update: It’s bad math, but still sounds like a good plan, no?). Very interesting idea to say the least.
Dear American Citizens,
I’m against the $85 BILLION bailout of AIG. Instead, I’m in favor of giving $85,000,000,000 to America in a “We Deserve It” dividend. To make the math simple, let’s assume there are 200,000,000 bona fide U.S. citizens, aged 18+.
Read the rest of this entry »
Tags: $85 billion, AIG, alternative plan, bailout, citizens, economic crisis, uncle sam, we deserve it dividend
3 Comments »
September 3rd, 2008 -- Posted in Uncategorized
I’m constantly feeling like I am running 90mph to keep up with everything going on. I’m not complaining per say, but felt it would be prudent for me to figure out all the things I am involved in and then make a decision on if they are the most important usage of my time. I decided to break them down into two categories, work related and strictly personal stuff. The work stuff ended up being specific projects / tasks I work on while it seemed the personal stuff leaned more towards concepts and activities. Probably just the nature of what I am doing. So without further ado, here’s the list for the world to see:
Read the rest of this entry »
Tags: activities, interests, my life, personal, Work
No Comments »
July 29th, 2008 -- Posted in Rants
Ok, so I have a problem. One which keeps me up at night and annoys me greatly, but I can’t seem to find a solution to fix. So what is this problem? Email SUCKS, that’s the problem! Ok Ok, I am sure you are thinking “great, and?” as it’s a common rant. Here’s my needs:
Read the rest of this entry »
Tags: courier, email, imap, iPhone, mail.app, procmail, rant
1 Comment »