Tags

Coding WTF of the day.

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.

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?

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,…

Read more