Archive for December, 2005

hax0red!

Monday, December 19th, 2005

Please join in a a collective moment of “Shit!” I had an old install of WordPress on my site (hosting a music blog for Chris), and an xmlrpc vulnerability got exploited. Since Avantbard.com is (extremely graciously) hosted on Leonard’s server, it hosed my site, and his site, too. Needless to say, I’ve learned my lesson about keeping a close inventory of exactly what I’ve got installed, and to delete old apps that you’re not using any more, and upgrade the ones you want to keep.

Luckily, the server doesn’t seem to be comprimised, just slightly abused, and everything’s back up now (except for some old apps that I removed (lesson learned and all that)). Hopefully this won’t happen again.

I <3 Ruby

Monday, December 12th, 2005

Today’s reason why I love Ruby: I had a text file and I wanted to take each line and use its content as a string to construct list items as HTML output. Here’s what I wrote:

File.open(“/Users/gabe/file.txt”).each { |line|   puts “\t<li>” + line.slice(0..-2) + “</li>”   #using slice to knock off the \n from the end of the line }

Ruby should take a hint from Staples and adopt a new motto: “That was easy.”

Pics From Thanksgiving

Friday, December 2nd, 2005

Margie snapped a few shots from last week’s Thanksgiving festivities. I know, I’m a little late with the followup post, but I’ve been busy at work, and recovering from all the turkey.