Archive for the ‘general’ Category

Best #songsincode

Friday, August 21st, 2009

From the Friday twitter meme #songsincode:

  • @AlexJReid .corvette { width:1; height:1; color: red; }
  • @dashorst: let love=rule();
  • @codepo8: .clowns{float:left;} .jokers{float:right;} #me_you{position:fixed;margin:0 auto;width:100%}
  • @sweatje: $i->shoot(new Sheriff) && !$i->shoot(new Deputy)
  • @northerncharm stop(); time=hammer;
  • @codepo8 if(reaper.fear){dont()}else{cowbell.add()}
  • @codepo8: me={locations:['corner','spotlight'],religion:404}

Eclipse 3.4 with openjdk 6 on OS X 32-bit CoreDuo

Tuesday, June 2nd, 2009

With the invaluable help of David Green, I was able to run Eclipse on openjdk 6 on my first gen MacBook Pro (you know, those left behind by Apple, running on a 32 bit CoreDuo processor… good to know that Apple supports the early adapters).

With this script that I adapted from David’s blog I was able to start Eclipse 3.4 (Version: 3.4.2
Build id: M20090211-1700) with Landon Fullers openjdk 6 build:

export JAVA_HOME=/Developer/Java/openjdk6-b16-24_apr_2009-r1
export PATH=$JAVA_HOME/bin:$PATH

java -server -Djava.library.path=$HOME/bin/jnilib -Dswt.library.path=$HOME/bin/jnilib -Xms128m -Xmx768m \
    -XX:MaxPermSize=192m -Dosgi.requiredJavaVersion=1.5 -Dorg.eclipse.swt.internal.carbon.smallFonts \
    -cp /Applications/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar \
    org.eclipse.equinox.launcher.Main -os macosx -ws carbon -arch x86 -showsplash \
    -launcher /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse -name Eclipse \
    --launcher.library /Applications/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731 \
    -startup /Applications/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar \
    -launcher /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse \
    -keyring $HOME.eclipse_keyring -consoleLog -showlocation -vm $JAVA_HOME

The script misses the shebang, since my hosting provider thinks that I’m trying to execute some serverside exploit…
You’ll have to extract a couple of shared libraries that are packaged in your Eclipse distribution:

jar xfv /Applications/eclipse/plugins/org.eclipse.swt.carbon.macosx_3.4.1.v3452b.jar
jar xfv /Applications/eclipse/plugins/org.eclipse.core.filesystem.macosx_*.jar os/macosx/liblocalfile_1_0_0.jnilib

You’ll have to rename all those libraries to give them a *.dylib extension.

Finally I had to point /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home to the openjdk 6 directory:

sudo mv /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home.old
sudo ln -s LOCATION_OF_OPENJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

The sorry state of subversion support in Eclipse

Tuesday, May 5th, 2009

Eclipse is a great IDE, but the state of subversion support is appalling. Both subclipse and subversive are buggy as hell, and I’d rather not touch either of them with a 10 feet pole.

Installing subversive is a futile exercise in “find all the update sites and correct plugin selection”. Subversive also is unable to keep the target/classes directory out of the synchronize view, which makes committing changes rather challenging.

Installing subclipse is much better than installing subversive: just add subclipse’s update site and install all plugins. No hunting for external sites, and no chance of installing the wrong stuff (I’m on OS X, so the win32 HL binaries are of no use to me). But again the team synchronize view is borked. This time subclipse won’t remove all updated files, double clicking on a folder throws an exception, etc.

I know that GIT is the SCM du jour, but please can someone at eclipse.org take note and finally implement a working, pleasant integration with subversion? Is that so much to ask after 5 years of Subversion availability?

Russia – Netherlands 3-1

Saturday, June 21st, 2008

In a disappointing match between Russia and the Netherlands, the Russians defeated the dutch on all fronts. The Dutch coach of Russia, Guus Hiddink, outclassed Marco van Basten on a strategic level and ensured that the star team from Holland never got to play the game we all came to love (except for the Italians and French). The Russians were better on all fronts and their victory was deserved. The #10 of the Russians was rightfully chosen as the player of the match, and I think Edwin van der Sar was the best dutch guy. Anyway, I’m hoping for a Germany-Russia final where Russia wins. Then we still have a slight orange glow over this championship.

Netherlands defeat Romania: Italy goes to quarter finals

Tuesday, June 17th, 2008

In a pretty much uninspiring match, mostly due to Romania refusing to do anything about their future, Holland defeated Romania with 2-0. I find it strange that when the goal of Romania should be to actually win the match to survive in the tournament, they resorted to playing defense.

This strategy turned out to be very unfortunate for Romania and my enjoyment. Romania’s offence didn’t create any problems for the Dutch defense and as a result lost with 2-0.

Given the uninspired performance of the Romanians I’d love the Italians and the French to continue in the tournament. But only one of them could go through. The winner of their match would be the one to progress in the tournament, so there was a significant incentive to win for both teams. Their match showed a crippled France trying to defeat the Italian forces. The Italians did their job well and defeated the french rightfully with 2-0.

Based on the performance against the Dutch, I found the french to be stronger, but apparently they were still tired from the last match and couldn’t put up much of a fight against the Italians. In any case, they had a bad day already with their bus driver unable to make a corner without crashing two cars and a fence. Their defeat will not be too good for their mood.

That said, I think Holland has done great: three wins out of three, and 9(!) goals. I can’t wait for the quarter finals to take place. Basel here we come!