Categories
Tips & How To's

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.

Categories
Apps

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.

Categories
Random

Everybody Who Eats Needs To Watch This

Categories
Google Tips & How To's

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!

Categories
Random Site News

New Domain!

I am now the proud owner of sexycode.ca, possibly my best domain name purchase to date.