After receiving an update today to push my Chrome version to 5.0.322.2 dev, I noticed that I could no longer log in to the web site that I had open when the update was done. I happened to be developing a website when I received notification for the update so, like always, I just continued… Read more »
Posts Categorized: Geekery
Random Dates and Numbers in PostgreSQL with the RANDOM() Function
Working with the random() function in PostgreSQL can be a bit tricky if you’re trying to populate a table. The random() function in PostgreSQL will return a number between 0 and 1 like so: SELECT RANDOM(); random ——————- 0.115072432027698 (1 ROW)SELECT RANDOM(); random ——————- 0.115072432027698 (1 row) If you’re trying to get a whole number… Read more »
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 »