redditI’m tinkering with my file server a lot right now, which means I’ve got a big mess of wires behind the drive cage. Plugging in and unplugging drives can be a total bitch, but not today. Today, in the darkest, most inaccessible corner of my server case I needed to plug in two SATA cables. I was cocky, and decided to try to do it without unplugging everything in the way first. And I’m glad I did.
Miraculously, both plugs found their mark and went in on the first try. It was like my fiddling fingers were guided by divine will. A tear came to my eye. And then the oven dinged and told me my California Pizza Kitchen Sicilian pizza is ready.
.. It is a good day.
Best theme I’ve seen. It’s clean, simple and it looks great. I don’t really know why I’m posting this, but it’s the truth. Of course, epalla v8 is better, but only by a little bit.
Apparently IE (including IE7) is retarded when it comes to live downloads from a database. This problem manifests itself in particular when it comes to downloading PDFs. That means when you try to load a pdf out of a database with the following incredibly common code snippet:
header("Content-length: $size"); header("Content-type: $type"); header("Content-Disposition: attachment; filename=$name");
you can “Save Target As” with IE but not actually open it directly from a link. It works fine in Firefox. After much obnoxious tinkering and searching, I discovered that adding:
header("Cache-control: private"); header("Pragma: public");
just makes it magically work.
I’ve updated the comment template so it doesn’t look like poop, and I’ve cached the digg/reddit links. It updates every hour so the digg/reddit links won’t be 100% up-to-date but that’s ok. It should help the loading times still.
Also – sorry that my reddit feed has so much porn right now. There was good shit out there today.