OneSwarm’s wiki (link) covers some easy steps for installing Java 1.4 on Snow Leopard. I needed it to get the MPowerPlayer SDK running so I could compile some code for Java-enabled mobile phones. Thanks to wheremydogs.at for pointing out that MPowerPlayer relies on some Java 1.4 classes.
tar -xvzf java.1.4.2-leopard.tar.gz
sudo mv 1.4.2 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2-leopard
sudo ln -s 1.4.2-leopard 1.4
open "/Applications/Utilities/Java Preferences.app"
For those of you also working with MPowerPlayer, the error I was getting is:
[exec] Error preverifying class java.lang.Class
[exec] VERIFIER ERROR java/lang/Class.newInstance0()Ljava/lang/Object;:
[exec] Illegal type in constant pool
[exec] Result: 1
Total time: 1 second
But now that I have Java 1.4, it’s compiling fine.
Mac Rails developers: I installed MacPorts to get RMagick, and it installed a new version of Ruby, without RubyGems. This meant that when I typed script/server, it claimed that:
“Rails requires RubyGems >= . Please install RubyGems and try again: http://rubygems.rubyforge.org”
MacPorts had added some crap to my PATH variable. If you edit your ~/.profile you’ll see this line:
Just change that to:
Then open a NEW shell prompt, i.e. a new Terminal window (this reloads the PATH variable)…
…and it’ll find your OLD version of Rails before the new MacPorts one, and things will work normally. You can confirm by typing “which ruby” in the terminal, and you should see “/usr/bin/ruby” NOT “/opt/local/bin/ruby”.
Tim Anderson says:
The Chinese make very effective cooking fuel briquettes from waste cellulose and carbon materials, using local clay for a binder.
The briquettes are cylindrical with a number of air passages through them.
An expat living here told me he had a water heater in Germany in the 1960’s that used the same type of briquettes.
Tim’s page on the machine.
Over the past week, the response to OpenStreetMap in Gaza has been overwhelmingly supportive. There have been a few exceptional objections, and some common misconceptions, and I want to respond to from my perspective, and perhaps the “OpenStreetMap perspective”. Some of these objections have come from people familiar with operations in Gaza, so I take their perspectives very seriously. Please consider this part of a discussion .. I’m very interested to hear from your perspective.
Brain Off » Misconceptions and Objections to Gaza Mapping: My Response :: Mikel Maron :: Building Digital Technology for Our Planet.
I use Amazon S3 for backup, and find that it’s hard to use because there’s no search function, so I can’t see what I’ve backed up.
So, I extended s3cmd.rb (comes with the WONDERFUL s3cmd.rb rsync clone for Amazon S3) with a search command.
Now I can use s3sync.rb to rsync my files up, then type:
s3sync.rb search bucket_name:path/to/restrict/search search_term
and I get, for example:
you just spent 6.0e-05 cents
The last line is because the price of making a list request in s3 is $0.01 per 1000 requests in the US; so I thought it’d be a good idea to tell people how much they’re spending.
I’ll try to commit this to the main s3sync.net codebase, but for now you can just download it here: s3sync