Enums in PHP

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 ’s type hinting and it should obviously support the semantics one expects from an 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 »

Bailouts: Ever think of it this way??

October 1st, 2008 -- Posted in Uncategorized

Got an interesting 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 ,

I’m against the $85 BILLION of . 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. , aged 18+.
Read the rest of this entry »

Where does all the time go? No, really!

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, related and strictly stuff. The stuff ended up being specific projects / tasks I on while it seemed the stuff leaned more towards concepts and . 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 »

The Trouble With Email

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? SUCKS, that’s the problem! Ok Ok, I am sure you are thinking “great, and?” as it’s a common . Here’s my needs:

Read the rest of this entry »