Thursday, July 28, 2011

tmux repeating keys

When upgrading from tmux 1.1 to 1.5 I found a few key bindings changed slightly. In particular, the arrow keys used to switch panes now repeat.

I often use the sequence C-b Down immediately followed by Up and then Enter to re-run a unit test. With 1.5 I was doing this too quickly (tmux's repeat-time is 500ms by default) so I was switched back to my previous pane. To fix this I simply added the arrow keys to my .tmux.conf without the -r option:

bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R

Tuesday, July 26, 2011

Invalid tmux term causes irssi issues

Today I finally switched my long-running IRC screen session to tmux. I rarely disconnect so I was simply waiting for a "good" time.

After a few minutes I noticed that my irssi scrollback was misbehaving; only half of my window would redraw when I pressed PgUp of PgDn.

I had manually set "TERM=xterm" in my bashrc; however, tmux advises only using "screen" or "screen-256color" as the term. I have no idea why I had specified term within my bashrc; removing the line and restarting tmux corrected the issue.

http://tmux.cvs.sourceforge.net/viewvc/tmux/tmux/FAQ

Friday, June 24, 2011

irssi autolog options

My favorite IRC client is irssi. I keep a log of my conversations using autolog; however, I dislike logs from chanserv, nickserv, and other random bots which I'll never reference. I discovered that autolog has a setting to ignore them:
/set autolog_ignore_targets chanserv nickserv 
While searching I also found log_create_mode; irssi's default file mode is 0644. I prefer to keep my conversations private unless I specifically broaden permissions:
/set log_create_mode 0600
 Now new messages and channels are private until I chmod them.

Tuesday, June 21, 2011

Primary instances on a node

Sometimes I need a space delimited list of instances on a Ganeti node. There isn't a direct command to get this but an easy bash one-liner:
gnt-node list --no-headers -opinst_list $node | tr ',' ' '
pinst_list fetches the primary instances on the node. You can replace this with sinst_list for the secondaries.

Wednesday, June 8, 2011

Chrome OS and Passwords

I have been using the CR-48 / Chrome OS for the past few weeks. I really enjoy using the OS but I don't think it could replace my Macbook Air (yet). I agree that the CR-48 is incredibly underpowered and has a terrible trackpad but this is "beta" hardware. I am excited to see how the hardware from Samsung and Acer compare.

My biggest annoyance? ChromeOS breaks my security routine. I currently use Keepass (with Dropbox) to create and store passwords. I trust Google... but I am not comfortable storing my passwords using Chrome sync. Yes, I am storing my password file on another cloud service (which is known to be unencrypted) but I feel safer knowing that my password file is encrypted under my parameters.

I also care about the accessibility of my passwords. The Dropbox + Keepass solution provides access everywhere (Mac, Windows, Linux, Android, iOS). What happens when I cannot use Chrome? I often use other browsers for mobile, cross-browser testing, and accessing different Google accounts. What do you do when you cannot use Chrome that is logged in with your personal account? A web interface would improve accessibility but be an obvious target for attacks, just like LastPass.

Monday, May 16, 2011

Logan eye followup

Today we had a pre-surgery exam for Logan's eye. His right eye consistently angles up and inward when he looking in certain directions. Our doctor was concerned that he is not using both eyes when this occurs. We decided to proceed with the scheduled surgery which will weaken the Inferior Oblique muscle. It should correct the issue but there is a slight chance that we will notice it in the left eye afterwards.

Hopefully Logan's eyes will only be red for a few weeks. Our doctor said that it will be safe for him to rub his eye so arm restraints (while sleeping) will not be required.

Informative sources:
http://www.chkd.org/HealthLibrary/Facts/Content.aspx?pageid=0183
http://en.wikipedia.org/wiki/Inferior_oblique_muscle

Sunday, April 17, 2011

Switching back to king size.

A few months ago Jenna and I decided to switch from a king bed to a queen. We lasted a couple of months; however, today we decided to switch back. Sadly this means we purchased a new bed frame and mattresses. It's amazing how much the extra bit of space can really mean. We cannot wait for the new bed to be delivered (in 9 days).