The last couple of projects that I have done I haven't had access to a database. I don't like having flat files with the content just dumped in there. I makes updating them a chore. So I wrote this very simple class that allows you to create a php array that contains all of the news data.
While working on one of my newer projects I ran into an issue where I needed to overlay a very large image over multiple elements on my page, including the site navigation. This left the contact link on the far right un-clickible.
A couple of days ago I was out on a run and I starting wondering which statement was faster, a elseif() or a switch(). I am a big fan of switch statements. I like how clean they look and its really easy to add a new condition to them. I also assumed that they were much quicker than elseif statements. So I set up this test to try to prove to myself that I was right.
there are many different theories on resetting the browser default styles. I always prefer to zero off everything. Over the past couple of years my master reset sheet has gotten a bit bigger. My style sheet is based off of http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ . But I found that I broke some HTML tags in Firefox(<b>,<em>, etc). I have added those fixes and i have included some default styles of my own.
I just started on a project that I knew was going to need some sort of data lock that would prevent 2 users from editing the same data at the same time. At first I thought that i would have to write a function that behaved like the C function flock(). I ran across this forum post http://www.dmcinsights.com/phorum/read.php?13,30233,30260 which I have to give credit to is the inspiration for the code below.