Category: Tips & How To’s
-
Security? Why Bother
I’ve been working on an internal information delivery system for an unnamed multi-national. I just logged in to their production database to set up some new features. One of which involved updating their user database. While poking around, I noticed that all but 62 of their roughly 400 users had the same password hash (meaning…
-
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…