All posts, page 1 of 20
ArrowKeyControl breaks 200,000 scores submitted
Today ArrowKeyControl (AKC) had the 200,000th score submitted to the website; considering that I launched AKC 54 days ago, I'm pretty happy with the achievement.
AKC has 12,862 users which makes for 15.8 scores submitted per user, on average. This compares to the original KeyControl, which has 99,889 scores submitted and 16,768 users, for 5.8 scores submitted per user (average).
I'm looking forward to the next 100,000 scores for AKC; keep playing!
11:31 PM on Thursday, 05/11/2009
Mirroring sites with wget
You can mirror a site using recent versions of wget by running wget -mEkp <url>. The -m turns on mirroring, -E forces a .html extension for web pages, -k makes all internal links relative so that they always work, and -p tells wget to download all the dependencies for each page, e.g. CSS and JavaScript files (although you need a fairly recent version of wget for this to work properly).
The downloading or prerequisites isn’t perfect, but it’s good enough to make a local copy of a website, or with some manual work, a complete static mirror of a site.
11:38 PM on Monday, 26/10/2009
Creating tables for Cucumber
At work, we are starting to use Multiline step arguments / Scenario outlines in our cucumber tests, but, if you’ve got a lot of data to write as a table, it’s a pain to write the table out by hand. So I whipped up a little ruby script that takes a CSV file and dumps a nicely formatted table of data, suitable for pasting into a cucumber feature.
Grab the CSV to Table converter. Put it in the current directory), and run ruby csv_to_table.rb <input.csv> and the converted table will be printed to the console.
11:32 PM on Monday, 26/10/2009
So apparently I'm in Github Rebase
I submitted webstats as a notable new project to Github Rebase a while back, but my message got dropped on the floor apparently, because qrush had missed it when I asked about it recently; I re-sent it and it got into Github Rebase #28, which is an 11 out of 10 on the awesome scale.
I only noticed this today, missed it when the post was made :). I’m very grateful that qrush has decided to include it, and this should bring some development love to webstats.
If anyone has patches, ideas for webstats, just email me and I’ll see what I can do.
04:41 PM on Sunday, 11/10/2009
Committing and deploying like a pro
This is how the pros do it:
git add . && git commit -am "<commit message>" && git push && cap deploy
There should be a cucumber features in there somewhere, but we all know testing is for pussies anyway.
02:28 AM on Monday, 05/10/2009
