S E R V E R   S I D E
View current page
...more recent posts

Funny diagram of programming language hierarchy. Wouldn't Python be on top of Perl though?
- jim 3-15-2007 9:26 pm [link] [3 comments]

Last night I went to my first ever opera, Giuseppe Verdi's La Traviata, at Lincoln Center. Apparently this is a fairly standard "first" opera to see. Very enjoyable. Lincoln Center is beautiful. We ate before hand, and then during the first intermission you go back and sit down at your table for dessert. Nice touch. Not sure if I'm converted to a big fan or anything, but it was a great evening. I'm hoping to give the symphony a shot next (although I've been to that once in the past.)

Here's a horrible phonecam shot I felt like a total dork taking. You can see the screens in front of every seat that translate. They are *highly* directional, so you can only see the LEDs if you are looking directly straight at it - no peripheral vision distraction at all. Pretty cool. I guess these were something of an issue for the real buffs when they first put them in, but it's very helpful if you can't speak Italian.

la traviata
- jim 3-08-2007 5:55 pm [link] [4 comments]

Looks like my fix yesterday did take care of the problem. I'm still keeping my eye on it, but so far so good. One big help in tracking this down was enabling the MySQL slow query log. This lets you set a threshold for number of seconds, and then any query taking longer than that gets logged to a specific file. Watching that file is then a huge help in spotting where potential problems are hiding.

Here's the official MySQL slow query log page, and here's a nice write up on how to activate it. Basically it just amounts to adding these lines to the my.cnf file and restarting MySQL:

long_query_time = 1
log-slow-queries = /var/log/mysql/mysql-slow.log
I had to create the /var/log/mysql/ directory (and chown mysql:mysql) in order to get it to work.
- jim 3-08-2007 5:34 pm [link] [add a comment]

I had a bit of a chase this morning tracking down an issue on the new server (new server = ash, old server = tulip, old old server = elm.) CPU usage was being pegged at 99.9% by mysqld. Turns out - I think - to be a problem with some PHP code I had written (who would have guessed!) Anyway, I ended up learning a bunch about MySQL that I didn't know previously, so these things should be easy to track down in the future. For my own reference I will link here to this excellent Jeremy Zawodny post on tuning MySQL.

Keywords: thread_cache : my.cnf
- jim 3-07-2007 9:50 pm [link] [add a comment]

From the Onion: Apple Unveils New Product-Unveiling Product: iLaunch.
- jim 3-07-2007 5:19 pm [link] [add a comment]

Damn, wasted about 7 hours on this one. I so wish I didn't have to run a mail server. Anyway, the issue was that Qmail was not allowing outgoing messages with 15 or more recipients. Up through 14 would be fine, but then at 15 it would reject all messages (including the first 14) with this error: sorry, reached maximum number of recipients for one session (#5.7.1 - chkuser). Error 5571

So obviously Chkuser is the problem. But how to change this? I took a bunch of wrong turns trying to create a /var/qmail/control/maxrcpt file, but it turns out my Qmailtoaster installation is not compiled to understand the maxrcpt control file. So no luck there.

Hours of googling later I finally found the mailing list question that put me on the right track: I needed to edit tcp.smtp (which I was told would be at /etc/tcp.smtp but of course nothing is easy and mine was instead at /etc/tcprules.d/tcp.smtp). So I changed CHKUSER_RCPTLIMIT="15" to CHKUSER_RCPTLIMIT="150" in tcp.smtp. And then ran qmailctl cdb to reload the new rules (I guess this makes the tcp.smtp.cdb file out of the tcp.smtp file that just got edited.)

And now it works. Fun fun fun.
- jim 2-22-2007 10:19 pm [link] [add a comment]

StorageMojo's look at Bianca Schroeder of CMU's Parallel Data Lab paper Disk failures in the real world: What does an MTTF of 1,000,000 hours mean to you?

Storage is very conservative, so don't expect overnight change, but these papers will accelerate the consumerization of large-scale storage. High-end drives still have advantages, but those fictive MTBFs aren't one of them anymore.

Further, these results validate the Google File System's central redundancy concept: forget RAID, just replicate the data three times. If I'm an IT architect, the idea that I can spend less money and get higher reliability from simple cluster storage file replication should be very attractive.
By much different methodology I've come to the same conclusion for a big set of my data: forget RAID and replicate the data.
- jim 2-21-2007 5:21 am [link] [1 comment]

Ars Nokia N800 internet tablet review. I'm really intrigued by this thing. Unfortunately I can't actually justify buying it. But if I can ever find a buyer for my uber digital music system idea I think this would be the remote control.
- jim 2-13-2007 10:15 pm [link] [1 comment]

Often hilarious, to me at least, fake Steve Jobs blog: "Dude, I invented the friggin iPod. Have you heard of it?"
- jim 2-10-2007 7:41 pm [link] [add a comment]

POW (Plain Old Webserver) is, amazingly, a FireFox plugin that turns your browser into a web server. It's written entirely in javascript.

Javascript is sure growing up fast.
- jim 2-09-2007 11:20 pm [link] [add a comment]

older posts...