31st May, 2008

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.

28th May, 2008

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.

20th May, 2008

CushyCMS Adds Pro Version

CushyCMS, the free content management system, is now launching a Pro version of its service. For $28 per month, CushyCMS will provide branding support, a custom logo, colors and domain settings for web publishers that use its tools.

via mashable

Kinda thought that’s what they where going to do. Still a dumb product, IMHO.

19th May, 2008

Everybody Who Eats Needs To Watch This

14th May, 2008

How To Delete All Contacts From Gmail

Update October 2010: These instructions are no longer valid. Take a look at voyageurs60′s comment.

If you’ve ever tried to delete more than 20 contacts in gmail, you might have noticed an error message informing you that you’re only allowed to delete 20 contacts at a time.

I don’t really think of Google as a company that puts abitrary limits on features. Who knows why they decided upon this limit.

Suppose you’ve accidentally quadrupled your contacts list in some sort of import mishap and you just want to start over. There’s a fairly simple – if somewhat non-intuitive – workaround for this. Click the “older version” link it the top navigation bar (http://mail.google.com/mail/?ui=1). This will allow you access to the old contacts list interface.
From there:
1) click “all contacts” tab
2) scroll down to the bottom, select “all” (no idea why this option is not at the top of the interface)
3) Delete!