scott.horsley.id.au Fri 02 Jan 1970 01:00:00 AM EST A struggle against the internet, and life http://scott.horsley.id.au/ KohanaPHP Coding WTF of the day #2. http://scott.horsley.id.au/personal/blog/code_wtf2 Fri 02 Jan 1970 01:00:00 AM EST <p>I came across this snippet today in a site at work.. It triggered an event from last year.. no wonder :\</p> <p> <div class="code"><pre class="php" id="code" style="font-family:monospace;">  SELECT <span style="color: #339933;">*</span> FROM event_reminders WHERE DAYOFYEAR<span style="color: #009900;">(</span>`event_date`<span style="color: #009900;">)</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #339933;">=</span> DAYOFYEAR<span style="color: #009900;">(</span>CURRENT_DATE<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span>  </pre></div> </p> <p>It made me… Coding WTF of the day. http://scott.horsley.id.au/personal/blog/code_wtf1 Fri 02 Jan 1970 01:00:01 AM EST <p>I came across this snippet today on the <a href="http://php.net/"><span class="caps">PHP</span></a> 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.</p> <p> <div class="code"><pre… N.A.D.D http://scott.horsley.id.au/personal/blog/nadd Mon 27 Dec 2010 08:00:00 PM EST <p><a href="http://www.randsinrepose.com/archives/2003/07/10/nadd.html">http://www.randsinrepose.com/archives/2003/07/10/nadd.html</a></p> <p>After reading the above article (I know, it’s really old), I thought it wise to check what I was running at this point.</p> <ul> <li>Rhythmbox – <span class="caps">FHM</span> Selection</li> <li>Terminal – 9 multi-tabbed locations open working on different systems <ul> <li>Searching for files on Niki</li> <li>Developing a mail management system for work (yes, I’m on holidays).</li> <li>Duplicate of… Moving on in the world http://scott.horsley.id.au/personal/blog/moving_on Wed 29 Sep 2010 12:07:00 PM EST <p>It’s time, I don’t know how else to put it. <br /> I started with my current employer in late 2000 and have had a great 10 years. After a large take-over (swamped) I decided that the little family I started with no longer existed. I recall back in the day when I was one of about 20 – 30… motherboard WTF? http://scott.horsley.id.au/personal/blog/technology/motherboard_wtf Sun 15 Aug 2010 10:15:46 AM EST <p>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,…