The Law Enforcement Against Prohibition blog just announced that the Senate will be removing the ban that they have had in place against their voters since 1998. In 1998, the voters of Washington D.C. voted for Initiative 59 to allow medical marijuana. This was challenged by using something known as The Barr Amendment which effectively… Read more »
Posts By: David Drake
Speed Comparison of strlen() VS empty() in PHP Shows empty() is Faster
While working on a PHP project, I found myself occasionally switching between using empty() or !strlen() when I was dealing with strings. In PHP, there are often multiple solutions for the same problem and this was one of those cases. I didn’t really have a reason to use one over the other and, as most… Read more »
How to Use onbeforeunload with Form Submit Buttons
While doing some programming I came across an interesting predicament. While I understand it’s evil to make it hard for a user to leave a page, I’m not here to argue the merits (or lack thereof) of onbeforeunload. On a particular form, we are forcing the browser to not cache the information to avoid potential… Read more »