Quote of the Moment

*undid the deletion of the Windows partition*
Bah... I hold your fate in the palm of my hand!
*picks up a rock* *throws it through the Windows*
Smashz0red!
-Jeremy
(moar?)

noIE

People who click external links while using IE now get a little surprise.

Cheers, suckers.

7 hours later…

I spent almost 7 hours yesterday working on the OU Pre-Medical Club website. See the events calendar at the right? It broke two days ago, for reasons unbeknownest to me. I run php-cli to parse out the RSS feed that the calendar is drawn from, and for some reason, two days ago it started creating RSS files that contained nothing except “No input file specified.” Tim insisted nothing on the server had changed, which left me baffled… I haven’t changed that code in months. I spent a few hours getting it to work the code correctly. But after doing that, php-cli started putting HTTP headers into the file! Breaking the RSS feed completely. So after spending several hours trying to track down where the headers came from, I called that quits. And just used sed to rip the first three lines off the RSS feed every time it was parsed.

Seven hours of looking at 6 lines of code is no fun.

SELECT query FROM sql WHERE size = ‘BIG’

This is a big query.

SELECT CONCAT(students.firstname, students.lastname) AS name, students.grade, students.id, CONVERT(GROUP_CONCAT(DISTINCT classes.name ORDER BY classes.type) USING latin1) as classnames, CONVERT(GROUP_CONCAT(DISTINCT classes.id ORDER BY classes.type) USING latin1) as ids
FROM students, classes
WHERE (students.grade = classes.grade OR classes.type = 'ele')
AND (CASE WHEN students.spec_mat IS NULL THEN TRUE ELSE (CASE WHEN classes.type = 'mat' THEN students.spec_mat = classes.id ELSE TRUE END) END)
AND (CASE WHEN students.spec_sci IS NULL THEN TRUE ELSE (CASE WHEN classes.type = 'sci' THEN students.spec_sci = classes.id ELSE TRUE END) END)
AND (CASE WHEN ((students.spec_ele IS NULL) AND (students.spec_ele2 IS NULL)) THEN classes.type != 'ele' ELSE (CASE WHEN classes.type = 'ele' THEN (classes.id IN (students.spec_ele, students.spec_ele2)) ELSE TRUE END) END)
AND (CASE WHEN students.spec_lang IS NULL THEN classes.type != 'lang' ELSE (CASE WHEN classes.type = 'lang' THEN students.spec_lang = classes.id ELSE TRUE END) END)
AND (SELECT grades.id FROM grades WHERE grades.student = students.id AND grades.class = classes.id LIMIT 1) IS NULL
GROUP BY name
ORDER BY students.grade, students.lastname, students.firstname

‘Nuff said. It is, however, worth several hundred dollars when combined with the other code I wrote. Cool.

Use the tool that’s right for you

So Matt decided that Opera worked better for him than Firefox did, and switched accordingly. And I say, more power to him; Firefox was crashing a lot for him and Opera appears to be working quite well. Too often I see people get caught up in fanboyism and forget that the point of an alternative browser is not to become the dominant market force:

FIERFOX IS GRAAT!11!!11! LOL Y WUD U SWITCH?!?!??? (?)

But the point of an alternative browser is to provide freedom of choice. As long as a browser supports the web standards I covet as a web designer (e.g., Internet Explorer is not a browser, and no, Avant, Maxthon, et al. don’t count either), I really don’t care what you use :)

It’s the same with operating systems. Elliott came into my room today when I was writing a bash script and was like “Huh, MS-DOS?” No Elliott, I just run Linux. “Oh… but you’re not a zealot about it… I didn’t know.” Because I use the tool that’s right for the job, and nothing more. Linux is great for my programming and PIM needs… when I need games, I switch to Windows. None of this self-flagellation because I *must* destroy the Evil Empire… I use what works.

Today I was trying to do out a calendar for ZAP, and KOrganizer kept crashing when I tried to print. So I exported to vCal, swapped boots to Windows, fired up Outlook, printed. All good.

PHPiCalendar

The PHPiCalendar website is back online! It’s been gone for almost a year, with the message PHPiCalendar website is willingly offline until further notice. I just checked it on a whim today and they made a new release yesterday! :O

(I use PHPiCalendar at http://sethkinast.com/calendar/)

My Linkblog