diary at Telent Netowrks

Stranded Strava ride#

Mon, 10 Jun 2013 13:50:29 +0000

This morning, due to some unlikely-ever-to-be diagnosed bug perhaps involving poor network connectivity in our office basement, the Android Strava app started denying all knowledge of my ride into work.

It turned out not to be quite as lost as I feared it would be, but the process of getting it uploaded was still kind of complicated. You will need root on your android, plus a real computer (or a Mac will do at a pinch, if that's all you have available) with the android stuff installed, sqlite3 and gpsbabel.

NetworkManager No More#

Sat, 29 Jun 2013 22:43:08 +0000

Finally fed up with it randomly stalling and hanging for tens of seconds at a time, I decided yesterday to reinstall my laptop using ext4 instead of btrfs[*]. This time around I've done it all with Puppet, so I can tell you about my other recent change - connecting to protected WPA wireless networks without the "assistance" of NetworkManager.

It turns out to be amazingly simple if you're reasonably acquainted with editing text files: you need a stanza in /etc/wpa_supplicant.conf for each network you want to connect to (and optionally, each network you want to tell it about that it should not connect to)

        ssid="My SSID"
        #psk="not a passphrase"
        id_str "default"
        ssid="My other SSID"
        #psk="not a passphrase"
        id_str "default"
        ssid="Some annoying captive portal"
        id_str "ignore"

and then you need to put stuff in /etc/network/interfaces to tell it to use wpa-roam

iface wlan0 inet manual
  wpa-driver wext
  wpa-roam /etc/wpa_supplicant.conf

and then some more stuff to correspond to each id_str you've used in wpa_supplicant.conf

iface default inet dhcp
iface ignore inet manual

My setup is not exactly what you see in this commit because I'm not quite stupid enough to put real keys into Github - but it's otherwise pretty close. And for the rest of the repository, see here

[*] it remains to be seen if it makes any difference at all, but it was probably about due for a good decrufting anyway

Fully loaded leiningen#

Sat, 29 Jun 2013 23:04:59 +0000

Taking the time to figure out how to use ones tools is more often a good thing to do than it is a thing I actually do. In this case, the thing I have now figured out is how to get all of a multi-file Clojure project loaded into Clojure without visiting each file and doing C-c C-l on it

user> (require 'winnow.core)

That's right. require on a namespace will actually load the file that defines it - and the files defining the namespaces it depends on. ns or in-ns just create it in an empty state.