As well as introducing eventmachine I tried to explain how one might go about creating clean abstractions in the upside down world of evented programming.
I’ve got a lot more patters waiting in the wings, so hopefully this gets a good reception!
As well as introducing eventmachine I tried to explain how one might go about creating clean abstractions in the upside down world of evented programming.
I’ve got a lot more patters waiting in the wings, so hopefully this gets a good reception!
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:
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:
Fantastic little tool that automatically chooses sleep (RAM) or sleep + hibernate (disk) based on your battery level.
I used to disable hibernate because of the inordinate time it takes for 4GB of RAM to be written to disk. I want to sleep and go NOW without worrying that my delicate hard disk is still spinning half way down the street!
I just discovered this old logo that I created on my Toshiba Portégé 3500 tablet PC. The pressure sensitive touchscreen was really cool! And yes, cloaked in the mist of time, I choose to forget the countless hours I spent getting the damn thing to work with Linux ;)
Friends of Carmarthen Museum has some fascinating articles on the history of Carmarthenshire which should be googleable!
Doha Airport After 10 Hours…