Category: 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…
-
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…
-
Linux: Finding Newer Files [OR How To Create A Patch File]
The linux `find` command is very powerful, it has tonnes of switches and options that I’m not terribly familiar with. Even though I’ve been a LAMP developer for over 5 years, I don’t work on the command-line too often. Yesterday I ran into a problem that I had never tried to resolve before. I was…
-
Fix Firefox 3 URL Bar
Firefox 3 has an annoying new URL bar that takes up about 75px in screen real estate for each auto-completed URL. It’s referred to as richResults in about:config. In the previous beta releases you were able to manually add a preference to remove this feature. As of firefox 3 beta 4 (or maybe beta 3,…
-
Thoughts on Online Privacy & How to Protect Yourself [OR How Facebook Can Save Your Identity]
The following is an excerpt of an email I wrote in response to this article Facebook can ruin your life. And so can MySpace, Bebo A lot of the current batch of social networks have very poorly designed privacy controls. On facebook for instance, it’s very hard to tell which of your contacts have access…