Google maps on mobile - weekends

Posted on June 16, 2008

I was at the Google Seattle Conference on Scalability here in Seattle on Saturday. Jerry Morrison from Google talked about Google Maps on mobile devices, and the thing that stuck out for me was that right now map use on mobile is heavier on the weekends, and the web site is used more during the week.

Building NetBeans for Ruby

Posted on June 08, 2008

I’ve switched over to building my own netbeans instead of grabbing it from hudson. Once a day, I’ve got a cron job that does:

First, pull netbeans using mercurial:

hg clone http://hg.netbeans.org/main ~/dev/netbeans

Then set up this script to build it every day:

#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13
export PATH=$JAVA_HOME/bin:$PATH
cd ~/dev/netbeans
hg pull
hg up
ant

In theory, you should be able to build netbeans with version 6, but it dies on me even with the -Dpermit.jdk6.builds=true option set.

I don’t bother to get a reduced version of netbeans with just the Ruby support.

FoxyProxy, Hadoop, and SOCKS

Posted on June 03, 2008

FoxyProxy makes it very easy to talk to your Hadoop cluster running on EC2.

Run ssh with the -D command:

ssh -D 2324 ec2-75-101-XXX-XX.compute-1.amazonaws.com

Tell FoxyProxy to “use SOCKS proxy for DNS lookups” (tools > foxyproxy > more > global settings > use SOCKS proxy for DNS lookups)

Configure foxyproxy with rules for when to use local port 2324. Use wildcards like httpec2internal*.

All the features I cared about worked when set up this way.

(And of course the choice of 2324 isn’t special - use any port you like.)

Here’s a screenshot of the the proxy settings I use. It’s been a while since I configured it - I suspect that at least one of these lines is obsolete:

screenshot

Building netbeans

Posted on June 03, 2008

If you’re trying to build netbeans from the git repository, and you’re on Ubuntu 7.10, you’ll probably get:

    james@madra:~/dev/netbeans$ ant
    Buildfile: build.xml

    BUILD FAILED
    /home/james/dev/netbeans/build.xml:45: The following error occurred while executing this line:
    /home/james/dev/netbeans/nbbuild/build.xml:72: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher

    Total time: 0 seconds

To fix, just install ant-optional:

sudo apt-get install ant-optional

You’ll find building instructions here.