While starting a protobuf compiler I learned a little about autoconf. First it complains about version the protobuf code was using automake 1.10.1 and I had 1.7.9. so I upgraded to automake using “sudo apt-get install automake1.10″. Of course this upgraded my automake to 1.10.2 which still didn’t work.The solution was to run autoconf from the path/to/protobuf-2.1.0 but that didn’t work until I used “sudo apt-get libtool” to get the latest libtool. This uses the configure.ac and then generated Makefile.in from the Makefile.am.
July 5, 2009
git – Remote branches
Learned that you can manually create remote branches. This is done having the destination refspec be refs/head. Example:git push ../git2 b2:refs/heads/b2The above will push branch b2 to repo ../git2.I finally got the force flag (-f) do work. I’ve wanted to do a force when I did a rebase –interactive and of a branch and then wanted to backup it up but I’d get an error about it being a non-fast forward merge. By using <src>:<dst> refspec and the -f it seems to work:
git push ../git2 -f b3:b3
Of course I just tried it and it failed:
error: denying non-fast forward refs/heads/me (you should pull first)To ../git2! [remote rejected] me -> me (non-fast forward)
Also, the following makes and interesting pushes:
git push ../git2 *:*git push ../git2 *:refs/heads/git1-backups/*
I need to investigate how useful they might be?
Apple keyboard delete to right key remapping
Had some trouble getting the small aluminum keyboard to do a delete to the right. But with the help of this post I got it workings. Basically you need to create a .xmodmap file in your home directory with with the keycode of the key that you want to be Delete in this case 169 is for the “eject” button:
keycode 169 = Delete
Also by adding to .xmodmap:
keycode 133 = Alt_L MetaL
keycode 134 = Alt_R MelaR
You can map the command keys to Alt left and right respectively. You can use the “xev” program to determine the keycodes.