Before I forget this, here's a simple Vim command to strip XML or HTML tags from a buffer. The expression is non-greedy and catches tags that span multiple lines.
:%s/<\_.\{-1,\}>//g
Before I forget this, here's a simple Vim command to strip XML or HTML tags from a buffer. The expression is non-greedy and catches tags that span multiple lines.
:%s/<\_.\{-1,\}>//g
After reading Zed Shaw's uncompromising Programmers Need To Learn Statistics Or I Will Kill Them All I felt suitably chided and decided to serve my pennance by kicking some stuff around with ab and R. This is probably the kind of thing that Shaw was decrying, my statistical skills are terrible, but here's what I did.
First I wanted to gather some data about my server, so I used ab to benchmark the server several times, making 1,000 requests each time using either 5, 10 or 20 threads. I know this falling straight into the power of ten pitfall. I haven't read the working out the power of my test chapter of the R tutorial (although I have read Joseph Tal's Reading Between The Numbers so I shouldn't be able to hide for too long).
This command sets ab going and writes raw data about the requests to a tab-separated file. See man ab for more info.
ab -n 1000 -c 10 -g journal-n1000-c10.tsv http://aftnn.org/journal/
To remove confounding elements, I guess I should do some or all of the following:
This couldn't be simpler. The following R commands create a histogram of my request data.
perfdata <- read.delim("~/journal-n1000-c10.tsv")
hist(perfdata$ttime)
And bingo, R displays this:

An abberation no doubt, Zed, but there you go.
I used Google's new Custom Search Engine tool to create a Django-specific search engine. This prioritises results from know Django sites, like the main site, the blogs of contributors and... this one! :-)
If you have any suggestions for sites to include, mail me.
Rich and I went to see Kraftwerk at I ♥ Techno this weekend. It was awesome. They had the robots, the glowing grid suits, the german accents, everything. The most impressive thing about their show1 I think is the quality of the visuals. They have such a clear brand it's not even true. Each song has a visual theme, often using lyrics displayed in huge pixelated text (by huge I mean like six inches a pixel). I thought it was cool. If you know it and like it too I recommend buying the Minimum Maximum box set for some lovely 12" photographs of their shows.
Tonight I was inspired by their set, I created a minimal track in Live. Nothing great, but I just bashed it out, which was fun. Then I wrote a sketch in Processing which draws and animates regular polygons. This was also a lot of fun. I was moderately successful with both projects in a short space of time because I've invested quite a bit of time thinking about basic music and computer graphics in the past. I have never reached great heights in either field, but I can knock out something basic quite easily now.
The music will need more forming (intro, bridge, etc) before it's suitable to upload, but the sketch is pretty much done. I'll try to put it up sometime tomorrow.
1. As opposed to the music, which is obviously awesome, greatest band ever and I don't say that lightly.
Just bought a new Nokia N73. It's not even activated yet and I'm sure it will be great when it is, but the hands free that it ships with is rubbish.
Ever since phones started having ambitions to be music players, their hands free kits have become dual-earpiece. This extra feature has a nasty side effect. They tangle instantly and forever more. Mine's done it already. I actually just want to use it for making calls. So I picked up a traditional single-earpiece kind on eBay for all of a quid.
Choose another page: 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 or return to the most recent entries.
Last updated at 11:32, Wednesday June 18th, 2008. All times are shown in 24-hour clock format and are BST.
Rate my journal on bloghop.com: