is my usb device connected to a fast port?
[ link: slow-usb-key | tags: usb linux | updated: Tue, 13 May 2008 19:53:44 ]
I started a transfer last night to copy a 700M file to my USB key. It's still going. I figured that it might have been OHCI vs EHCI issue. I had to remind myself how to check.
show more git info on zsh prompt
[ link: zsh-git-prompt | tags: git zsh shell | updated: Fri, 09 May 2008 14:26:56 ]
This is my third post on the topic. I have harshly assimulated MadCoder's configuration. Here is my new zsh prompt:

git-vim
[ link: git-vim | tags: git vim | updated: Wed, 30 Apr 2008 10:44:36 ]
I have had an item on my todo list to improve my vim/git integration for a while. Today, I found git-vim on github. I was really impressed. So I forked it and hope to do some work on the project...
git://tachyon.jukie.net/git-vim.git
First I will have to check if there is anything salvageable from my current vim scripts.
color your word
[ link: color-your-word | tags: git | updated: Sat, 12 Apr 2008 10:27:39 ]
I just discovered a git feature that has eluded me since v1.4.3, when it was
introduced. It's a way to colour differing words in git diff output. Maybe you don't
know about it either... allow me demonstrate:
show current git branch on zsh prompt (2)
[ link: zsh-git-branch2 | tags: git zsh shell | updated: Sat, 10 May 2008 08:25:24 ]
NOTE: This post has been updated (again).
I previously wrote about showing the git branch name on the zsh prompt. Caio Marcelo pointed out that
it didn't work very well because the git branch was being queried before the command was executed, and it should
be after to catch git commands that change the branch, like git branch and git checkout.
He was right, here is a repost.
how to track multiple svn branches in git
[ link: svn-branches-in-git | tags: git svn scm | updated: Mon, 03 Mar 2008 21:27:21 ]
I must say that I am no fan SVN, but SVN and I get a long a lot better since I started using git-svn. Long ago a good friend of mine, Dave O'Neill, taught me how to handle multiple branches using git-svn. I had used that technique until Dave taught me how to do it better.
Recently I saw this blog post which referenced Dave's article talking about the first method. I guess Dave never got around to updating his blog with the better way. So I am going to do that here:
fixing X for GeodeLX
[ link: fixing-x-for-geode-lx | tags: geode x linux x86emu ubuntu | updated: Sun, 02 Mar 2008 13:27:57 ]
Recently I have been doign a bit of contract work for Symbio Technologies. They have had me do various little projects part time. Most recently I got a chance to work on X.org video drivers for the Geode family.
Here is the progress...
kvm nfs hang
[ link: kvm-nfs-hang | tags: kvm linux | updated: Tue, 08 Jan 2008 00:29:29 ]
I ran into a strange NFS + KVM issue. Every so often under heavy NFS load my KVM client would hang retrying the nfs server. On the console the client was showing:
nfs: server host not responding, still trying
I found this bug post which does not seem to have been resolved in 2.6.24.
Using the kvm flag -net nic,model=rtl8139 fixed the problem for me.
screen -c relative path bug
[ link: screen-relative-path-bug | tags: screen bug zsh | updated: Mon, 07 Jan 2008 16:16:47 ]
I must have recently upgraded to a new screen. My screenrc file was using the chdir directive
so that the windows started inside would have a PWD I wanted them to. As soon as I tried
to reconnect the screen session would die.
screen -x
Unable to open "screenrc"
I was able to find the bug on savannah that described the symptom quite well.
I then wrote a wrapper zsh function which fixes the problem:
REAL_SCREEN=$(which screen)
# convert the path passed via the -c parameter to an absolute one
screen() {
local max=$((${#argv}-1))
for (( x=1 ; x<=$max ; x++ )) ; do
local flag="${argv[$x]}"
if [[ "x$flag" = "x-c" ]] ; then
local y=$(($x+1))
local word="${argv[$y]}"
if [[ "x${word[1]}" != 'x/' ]] ; then
argv[$y]="$PWD/$word"
fi
fi
done
echo ${REAL_SCREEN} ${1+"$argv"}
${REAL_SCREEN} ${1+"$@"}
}
WeeChat spell suggestions
[ link: weechat-spell-suggestions | tags: weechat irc | updated: Sat, 05 Jan 2008 13:37:34 ]
I recently decided to give WeeChat a try. I found that it had a nice new feel and less complicated windowing structure then irssi -- at least more intuitive to a vim user.
Here is my weechat config.
On debian you can install it with
apt-get install weechat-curses weechat-scripts weechat-plugins
I really liked the spell-checking plugin which uses aspell to highlight misspelled words as
I type them. One thing I missed was the ability to tab complete words from the
/usr/share/words list. So I wrote a short lua script to do it...
