nuff said, I could’ve voted for the McCain of 2000, but not the version we’re seeing in 2008.
Monthly Archives: October 2008
Colin Powell Endorses Barack Obama for President
Palin as President game
Click around the Oval Office to see and hear what it would be like with Palin as president.
Debate
Watching the debate is painful. The baseball game is more interesting, even if the Dodgers who I want to win, are losing 5-0 to the Phillies.
McCain’s facial expressions are very awkward.
National Debt part 2
Ok here’s a different graph: National debt as a percentage of gdp:

National Debt
So much for “fiscal conservatives”. I hear folks (usually Republicans) talk about how Democrats like to raise taxes. Well look at the national debt graph, and you can see why!

vij
I’ve been using a bash function for launching vim for quite a while. I can do things like vij edit.jsp and it would find the edit.jsp and launch vim. The original version looked like this:
vij ()
{
find . -name "$1" -exec vim {} \;
}
The problem would occur when there were more than one file named edit.jsp. Running find . -name edit.jsp yielded four files:
find . -name edit.jsp ./code/webapp/WEB-INF/pages/activationkeys/edit.jsp ./code/webapp/WEB-INF/pages/errata/edit.jsp ./code/webapp/WEB-INF/pages/channel/manage/edit.jsp ./code/webapp/WEB-INF/pages/systems/probes/edit.jsp
vij would exec vim for each of the files found. This is not what I wanted, I only wanted to edit the third one. So with a little hacking I updated it to prompt me if it found more than one, so I could choose the one I wanted.
vij edit.jsp Multiple matches found... 1: ./code/webapp/WEB-INF/pages/activationkeys/edit.jsp 2: ./code/webapp/WEB-INF/pages/errata/edit.jsp 3: ./code/webapp/WEB-INF/pages/kickstart/wizard/profile/advanced/edit.jsp 4: ./code/webapp/WEB-INF/pages/channel/manage/edit.jsp 5: ./code/webapp/WEB-INF/pages/systems/probes/edit.jsp q: Quit ?
Simply add this to your $HOME/.bashrc and you’ll be all set.
vij ()
{
dafiles=$(find . -type f -name "$1")
matches=$(echo $dafiles | gawk '{print NF}')
case "$matches" in
0)
echo "No matches found"
show=""
;;
1)
show=$dafiles
;;
*)
echo
echo "Multiple matches found..."
i=1
for option in $dafiles
do
echo "$i: $option"
i=`expr $i + 1`
done
echo "q: Quit"
echo
read -p "? " ans
if [ "q" == "$ans" ]; then
show=""
else
show=$(echo $dafiles | gawk '{print $"'"$ans"'"}')
fi
;;
esac
if [ "" != "$show" ]; then
vim $show
fi
}
BarackBook?!?!
The GOP continues their FUD on Barack Obama. They created a facebook knock off to bash Barack: http://barackbook.com/

