Disclaimer: I’m posting this because when I googled for a quick solution for importing a few git commits into subversion there was nothing. This might not be perfect, but it worked for me.
The basic idea is to output the patch files from git. This will export a patch file for each commit between these two shas
git format-patch --no-prefix sha1..sha2
Then apply the patch, add and remove everything, and commit
patch -p0 < commit.patch
# Mess about a bit
svn commit -m commit
I wrote a quick ruby script to automate this which you can find at http://gist.github.com/350524. After running git format-patch to create the patch files just run the script in the subversion directory
ruby ~/bin/import_git_patches.rb "/glob/for/patch/files/00*"
Here are the slides for the talk Makoto and I gave today at Scottish Ruby Conf. Thanks to everyone who came to support us, and for all the positive comments.
I had the software for a Vodafone mobile dongle installed on my 10.5 mac which caused a 5 minute beach ball after I installed Snow Leopard. Maybe installing rosetta as prompted would have made it work, but I just wanted to rid myself of this nastiness since I’m not using the dongle any more anyway.
Dear google, this is what I did, YMMV:
Remove the following from /Library/LaunchAgents/
cn.com.zte.usbswapper.plist
de.novamedia.NovamediaDiskSupressor
Remove mac_swapperdemon from system preferences user > accounts > user login items
Remove
/Library/Application support/Vodafone
/Applications/Vodafone mobile connect
Update: also discovered some kernel extensions to remove
sudo rm /System/Library/Extensions/USBExpressCardCantWake_Huawei.kext
sudo rm /System/Library/Extensions/ZTEUSBCDCACMControl.kext
sudo rm /System/Library/Extensions/ZTEUSBCDCACMData.kext
Since the EU regulations on roaming charges within Europe came into force, I’ve been pleased to receive a handy little text from O2 whenever I enter a new country:
Calls to the UK & the EU cost 35ppm and 18pmm to receive (inc VAT). Further info on freephone 2266. Voicemail works as it does in the UK.
Nice, but they don’t tell you one very important thing: While incoming calls are metered by the second, outgoing ones are rounded up to the next minute! I don’t much like spending 35p to hear “This is the voicemail service… [hangup]”. And it’s not much better when you took 10 seconds to say “Where are you? OK. I’ll be there in 5.”
The current regulations agreed in 2007 are due to expire in 2010, but a proposal to extend them in an amended form are currently in progress. While I’m pleased that the call costs are being reduced slightly year on year (although I wonder whether competition is being stifled), these proposals are much more useful:
- Per second billing
- Caps on data usage
Unfortunately the data cap is only for wholesale rates between operators, and starting at €1 / MB excluding VAT this June is still outrageously expensive. By June 2011 it will be reduced to €0.50, but that’s another two years, by which point we will all be even hungrier for data. The other proposal is for a cut off limit so that you at least know that the charges will be within some bounds. Useful, if only because the charges are still so steep.
Let’s hope that this goes though, but also that competition kicks in and we see some more competitive deals, especially for data roaming.
See these links from the European Parliament for more information:
Tinydb is a fantastic way of storing structured data inside a tiny url.
It’s a database in the cloud without any security, querying, editing… basically anything. However since it runs on the Google App Engine the data is actually being stored on a Google Bigtable. Clearly, it’s the best place in the world for the most useless data I can possibly imagine!
I am happy to announce that you can now chirp merrily away on mloughran.com knowing that it’s costing me about 15 bytes of memory (the url of the most recent comment).