Ubuntu and wifi

Occasionally when waking my laptop from sleep, wifi is disabled. It’s usually some kind of weird driver bug where the card refuses to reinitialize properly. In the past, I’ve just unloaded and reloaded the appropriate kernel module and that would cause it to load correctly.

However, this doesn’t seem to work on my laptop at work. Some googling found a page with the command “rfkill list all” which shows the list of devices on your computer that broadcast some kind of wireless signal (wifi or bluetooth). “rfkill unblock all” reenables all devices, which fixed my issue.

Can I dance Balboa to this song?

jitterbug

Lindy-hop and Balboa are two styles of swing dancing that I’ve been getting into over the past couple years, although admittedly I’ve spent more time on Balboa lately. One of the things that I’ve been noticing is that even though both dances are done to similar music (swing-era jazz), dancers tend to like certain songs for Balboa and other songs for Lindy. Common dancer wisdom says that faster songs are better for Balboa and slower ones for Lindy, but it seems like it should be more nuanced than that, since most dancers can also come up with slow songs that are great for Balboa or fast songs that get a Lindy dancer moving.

The jazz musician in me thought that there must be some characteristics of the music that could predict which dance is more appropriate for a given song. The programmer in me thought data might be able to give us some answers.

Continue reading “Can I dance Balboa to this song?”

Contrabass chords

Sometimes when playing through a song on the accordion, the next chord’s closest bass button is in the contrabass row. This makes playing a chord button with that bass note complicated, since the corresponding chord button for a given contrabass button is really far away.

Using the power of music theory (haha), I worked out some contrabass + chord button combos and drew up a chart for myself to practice with. If you combine any of the colored buttons in the chart with “b” in the contrabass row, you’ll get the chord in the legend.

Bill Evans’ solo on My Romance (Take 1)

I’ve been transcribing jazz again lately. I found a pretty cool software project called “Play it slowly” that can play back audio more slowly. It’s also easy to set start and end points for it to loop, making it ideal for transcription.

Here’s my transcription of the first chorus of Bill Evans’ solo on My Romance (take 1) from Waltz for Debby (1962):

My_Romance_(Take_1)_solo

Edit: For reference, here’s a Youtube link to the audio at the start point of the solo

tmux prints out “]112” randomly

I’ve been having an issue where tmux keeps printing out “]112” to random places on my screen when logged into certain ssh servers. I’m still not entirely sure what the issue is, but I at least have a workaround now.

This post started me off on the right track. It looks like libtve has an issue where it doesn’t support OSC 112 (the reset cursor color character). I’m now working around this by using roxterm as my terminal emulator instead.

Swapping ctrl and capslock in Ubuntu

I always forget how to do this permanently, so now I’m blogging it so I’ll remember. There’s multiple ways to do it. You can change it in some Gnome setting or run “setxkbmap -option ctrl:swapcaps” in your .bashrc.

I like to edit my /etc/default/keyboard conf file

Set XKBOPTIONS="ctrl:swapcaps"

And run

sudo dpkg-reconfigure keyboard-configuration

Source: http://askubuntu.com/questions/149971/how-do-you-remap-a-key-to-the-caps-lock-key-in-xubuntu