Tags
Coding WTF of the day.
Thu 31 Mar 2011 10:28:36 PM EST / Comments / Tags: php,code,wtf
I came across this snippet today on the PHP manual page.. The page was actually about a function called scandir() which lists all files in a directory. This is of interest as I have always used the old school opendir() system to achieve this. The point however was that browsing the comments, I noticed this.
Coding WTF of the day #2.
Thu 26 May 2011 10:36:41 AM EST / Comments / Tags: mysql,code,wtf
I came across this snippet today in a site at work.. It triggered an event from last year.. no wonder :\
SELECT * FROM event_reminders WHERE DAYOFYEAR(`event_date`)-1 = DAYOFYEAR(CURRENT_DATE())
It made me…
Read more
motherboard WTF?
Sun 15 Aug 2010 10:15:46 AM EST / Comments / Tags: computer,cpu,motherboard,wtf,replace
So I started working on my brothers PC on the weekend after some crazy adventures that left me overly confused. It seemed his system was starting to play up with some strange behaviour, mainly little things like the screen not waking when it went into stand-by, after replacing the video card, it appeared to be working for a few days,…