Monthly Archives: June 2011

html2csv

Does what it says on the tin. Do “gem install nokogiri” or “sudo apt-get install libnokogiri-ruby” if necessary. #!/usr/bin/env ruby require ‘rubygems’ require ‘nokogiri’ require ‘csv’ def main(f) Nokogiri::HTML.parse(open(f)).search(‘table’).each do |t| t.search(‘tr’).each do |tr| puts CSV.generate_line(tr.xpath(‘th|td’).collect do |td| td.text end) … Continue reading

Posted in Code | Leave a comment

Five-bytecoin note

Ever wake up one morning and say “today, I’m going to design my own banknote”? Of course, we all have. But earlier this week, I decided to act on that impulse. And just last night, I printed and laser cut … Continue reading

Posted in Design | 8 Comments

Bremen, North Dakota

Bremen, North Dakota, originally uploaded by afiler.

Posted in Everydot | 1 Comment

Apple II Plus as a USB keyboard

Connecting an Apple II keyboard to a computer with USB is surprisingly easy with a Teensy board. The Apple II uses an ASCII keyboard, which means that rather than returning scan codes, it returns a 7-bit ASCII value. This also … Continue reading

Posted in Nerdery | 2 Comments