date_default_timezone_set() Not Working »

This is a silly amateur hour error that I’m positive lots of people miss. datedefaulttimezone_set() needs to be called within functions, it isn’t a global function. The script below will demonstrate the how datedefaulttimezone_set() affects date() (and time()). View the code on Gist. Will output: // Eastern // Server‘s Time // Central // Eastern

WordPress Simple Cronjobs »

WordPress makes it super simple to run cronjobs.. To add one, just place the following code in your functions.php file and change the function/action prefix’s to your relevant plugin name/functions. View the code on Gist. A little break down for those unfamiliar: the first action runs mypluginschedulecron() on each load. If your cronjob (myplugincronjob) is … continue reading »

This isn’t related to this website, this is just a PSA:

I bought a PC coffee maker, it was more expensive then it should of been, but it looked good in my new kitchen and I knew it would pay for itself eventually.

Worked fine, did the job for months – then about 8 months in, after the brew cycle (4-5minutes) the most annoying, loud beeping would occur. It was as if the danm machine was whining for attention.

Turns out it was, in the manual that I obviously threw out because who keeps stuff like that, it mentions a cleaning reminder setting, that beeps until you hold down the “Auto” button for three seconds to acknowledge “yes I’ve cleaned you”. From the Manual

Your coffee maker is equipped with a cleaning reminder alarm. When your coffee maker has been used 200 times, it will beep to remind you to clean it. To turn off the beeping simply press the AUTO button for 3 seconds. The sound will stop and the coffee makers internal counter will reset to zero,

Kudos to the makers for installing a feature to prevent people from getting sick or keep the coffee at it’s best – but shame on you for not writting it on the machine itself and expecting everyone to keep the box+manual.