Monthly Archive for April, 2008

K2, CSS, and Google Syntax Highlighter

I recently switched my WordPress theme to RC3 of K2, Son of Kubrick. I’ve been really impressed with its simplicity and flexibility; two -itys that don’t usually play nicely. One of the best features is the alternate stylesheet loader. K2 allows a secondary stylesheet to be included after style.css so users are free to override the default styles without touching the core CSS.

Aside from decreasing the font size slightly and switching some ems to pxs, I haven’t fooled with much. Someone out there may find this useful however. Here is a quick and dirty hack that will take out the excess margin weight that Google Syntax Highlighter gains when displayed on the standard K2.

/** make google highlighter look pretty with k2 css */
div.dp-highlighter > div, div.bar > div.tools {
	margin: 0px;
}

div.dp-highlighter {
	margin-top: 13px;
}

Lessons Learned

Yesterday’s happyhour became last night’s evening of drinking and debauchery. However, I did manage to come away from it with a few new things to add to my information bank and a 4GB memory card full of happy, drunken memories. Gallery2, get ready.

My Shure SE420 headphones still play perfectly after being accidentally submerged, while playing, in a pint glass full of beer for about 30 seconds. I was quite happy upon discovering this and used them to great satisfaction on the metro back to my apartment. Besides smelling like beer and providing me with aural bliss, they also prevent me from hearing just about anything else going on around me. As a result, I had a nice drunken nap on the train from Metro Center to Vienna at 2:30am and had to take a cab from the Vienna station back to my apartment near Ballston.

Music Quiz Results

Your final score was 101/180.

Birthday Party DJ (73-108 points)
You are a rabid consumer of music. You get a rush every time you hear something new but remain faithful to those artists you love. Your music collection represents who you are and what you care about and your home may even bear the tell-tale signs of your affections – posters, old band t-shirts and the odd music biography. But you aren’t a completist [sic], you know what you like and make sure you have it. Simple as that. To expand your repertoire, perhaps there are some genres that you’d benefit from giving a little more attention to – perhaps now is the time to hear something new or get hold of that missing album from your collection.

Take the quiz yourself.

Back from South America

And what a blast it was. I’m working on getting pictures up in Gallery2. Will update.