Hacking

Another Reason Not to Write csh Scripts

In case you haven’t read Tom Christiansen’s Csh Programming Considered Harmful, here’s another reason not to write csh/tcsh scripts if you can avoid it. Unlike the Bourne Shell, the C shell exits with “Undefined variable” if you reference an undefined variable, instead of expanding that variable to the empty string, the way the Bourne shell… Continue reading Another Reason Not to Write csh Scripts

Hacking · Things I've Learned

Different Stylesheets for Browsers With and Without JavaScript

As hacks go, this one is pretty obvious, but I thought I’d throw it out there anyway. Let’s say there are three stylesheets you want to use on your web page: one for all browsers (style.css), one for browsers with JavaScript enabled (style-js.css), one for browsers without JavaScript (style-nojs.css). This can be useful for things… Continue reading Different Stylesheets for Browsers With and Without JavaScript