• D’oh

    I assure you I really am human and this is not a splog.

    If you had poked around the site a bit you probably could have figured that out, genius.

    This is what happens when you run an unpatched copy of wordpress. It happens to the best of us.


  • Bizzare Firefox 3 HR Tag Rendering

    I stumbled across this bizare new rendering bug in Firefox 3.

    CSS:

    hr {
    	background: url("bar.gif") no-repeat;
    	width: 385px; height: 15px;
    	border: 0;
    }

    HTML:

    <hr noshade="noshade" />

    Here’s what it looks like in Firefox 2.

    Now Firefox 3.

    It would appear that Firefox 3 is adding a border-radius value to all <hr/> tags. Removing the noshade=”noshade” property, or adding -moz-border-radius: 0 in the css will remove the rounded edges.

    Check it out.


  • How To Round Unixtime To Midnight

    This might be pretty obvious to anyone with basic math skills. It took me a few minutes to figure out, so I thought I’d share with the world. To round a unix timestamp to the previous midnight (UTC) use the following function:

    function unixtime_round_to_midnight ($t) {
    return $t – ($t%86400);
    }

    Thanks to Ian for pointing out my math ineptitude.