Tuesday, April 22, 2008

SVN Notes

View new files

svn st | grep '^?'


Add new files

svn st | grep '^?' | sed -e 's/^\? *//' | xargs svn add

Monday, April 21, 2008

Ganymede w/o Svn plugin

So I gave Eclipse Ganymede M6 a try. Most of the functionality seems to be there including integrating with web containers like Tomcat 6.0. This particular integration did not work in M5 for me, the server wizard would just crash with a null pointer exception.

Unfortunately I could not get either of the 2 svn plugins to work (subclipse or subversive). Initially I thought this would not make a difference since I do lot of command line work under eclipse anyway. Unfortunately it impacts two features:

  1. automatic publishing will now copy the .svn file to the build directory which will confuse the command line client. All of the sudden the source files will appear under the build folder. If you do an svn del --force on them you will actually delete the real sources. This situation can be pretty unpleasant until you figure out what is going on.
  2. refactoring will lose the history of the file

For now I moved back to M5. On the positive side the Tomcat server is now available under M5 too, it seems that only the wizard was broken in my setup.

Thursday, April 10, 2008

S3 explorers on OS X

For a little while I use the S3 Fox extension to access my S3 account. Unfortunately that extension is not supported anymore in Firefox 3. After looking a bit around one good choice is the Bucket Explorer, http://www.bucketexplorer.com/.

After 10 minutes of testing it out here are some of the features I like:


  1. you can change ACLs on multiple files at the same time
  2. you can generate URLs for multiple files at the same time
  3. URL generation can use the name of the bucket as a virtual host (assuming you set that up properly)
  4. URL generation can generate signed URLs


This application costs $30. If you need a free alternative you can look at the S3 Browser. The S3 Browser allows you to drag and drop files which is not supported by the Bucket Explorer.

Monday, April 7, 2008

mach-o, but wrong architecture

If you install the mod_jk.so connector yourself on OS X 10.5 intel you may get the following error.


httpd: Syntax error on line 484 of /private/etc/apache2/httpd.conf: Syntax error on line 3 of /private/etc/apache2/other/mod_jk.conf: \
Cannot load /usr/libexec/apache2/mod_jk.so into server: \
dlopen(/usr/libexec/apache2/mod_jk.so, 10): no suitable image found.\
Did find:\n\t\
/usr/libexec/apache2/mod_jk.so: mach-o, but wrong architecture


This error is because apache is compiled as a 64 bit executable and configure builds a 32 bit shared library

You have to re-do the configure with

./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs
make
sudo make install