I needed a way to find the first second of a week and the last second of a week based on a Unix timestamp.
I needed a way to find the first second of a week and the last second of a week based on a Unix timestamp.
Last weekend I bought a 250gb external usb Lifebook to act as a backup drive to replace a crashed drive in my file server. Since my computer was already filling up with drive letters thanks to a network, another external drive, and a media card reader that takes 4 drive letters I decided to map the drive to an empty folder rather than assign it a letter.
I was going nuts trying to figure out how to get to the security settings for a folder in WinXP MCE. In Win2k it was…
I’ve been using Eventum from the MySQL people for issue / bug tracking on a couple of my projects and stumbled upon a pretty slick…
In what may be the coolest, albeit not quite as useful as others, use of Google Maps data yet Mark Caswell-Daniels has created a flight…
Ok, not really. But members of the Oregon State University Linux Users Group made a 260 foot crop circle of the Firefox logo.
Real quick little function to get a random number using PHP. The variable $x will contain a random number between 1 and 100. It’s rand(min,…
This function returns ‘win’ if running on a Windows server and ‘linux’ if not running on a Windows server. It should be pretty easy to extend it to match other server operating systems, but this is all I needed.
The following function will return TRUE if the server is running PHP in safe mode. It uses the function ini_get, which may be disabled. If ini_get is disabled then the function also returns TRUE since the assumption that any server disabling functions would probably also be running in safe mode.
Knowing what version of ImageMagick is usually important if you’re going to be shelling to it to perform tasks. For me it was the –sepia-tone option that was added in either 6.2.1 or 6.2.2. Prior to that, using that option caused the conversion to fail.
The following function will return the numeric version of ImageMagick you have installed.