March 16th, 2009
Today, I upgraded my two old rails applications to Rails 2.3.2. Those application were written originally for rails 2.0 and have been upgraded to each consecutive Rails versions. Each time I had some tweaking to do but they were usually documented. But this time nothing.
Here are the two problems I had to fix:
- uninitialized constant ApplicationController:
For some reason, when I created my applications, the ApplicationController class was sitting in the app/controller/application.rb file. The new version doesn’t like that anymore. I renamed this file to application_controller.rb and voila.
- NoMethodError: undefined method `tmpdir’ for Dir:Class:
Just had to add a require 'tmpdir' in the right place
Not too painful, but could have been documented in the release notes.
Posted in Uncategorized | 2 Comments »
March 6th, 2008
To continue the discussions around the methods introduced in my previous post, I’ve run some tests to compare the performance between:
- Direct MapServer
- TileCache in CGI mode
- TileCache in mod_python mode
- Apache caching
Read the rest of this entry »
Posted in GIS | 4 Comments »
February 26th, 2008
In the web GIS world, it’s usual to have a base map that is a static layer. While MapServer and GeoServer are quite fast to serve raster maps, one can do better. Especially when serving tiles.
This post discusses my experiences with TileCache and pure apache caching.
Read the rest of this entry »
Posted in GIS, Linux | No Comments »
December 24th, 2007
I worked or analyzed quite a few Java applications in my professional life. The majority of those applications where servlets and I hated to work on all of them.
Why? Because all of them where pure enterprise level scalable bloatware.
Read the rest of this entry »
Posted in Java | 1 Comment »
October 29th, 2007
Now a day, an average AJAX page uses around to 1MB of CSS and Javascript files. If the users or the servers have a poor bandwidth, it may take some time to download them.
In order to lessen the pain of those poor souls, you may consider displaying a progress bar while the page is loading.
Read the rest of this entry »
Posted in Web | 4 Comments »
September 30th, 2007
In this post I’ll try to explain why 10 megapixel are too much for the size of the lenses and sensors of a compact digital camera.
Read the rest of this entry »
Posted in Camera | 1 Comment »
September 29th, 2007
If you want to use the Google Analytics service, you have to include some JavaScript code at the end of all your web pages.
When you are lazy like me, you don’t want to edit all your pages/scripts to do that. This post tells you how to do it in one minute. Read the rest of this entry »
Posted in Linux | 2 Comments »
September 28th, 2007
I was trying to deploy one of my application in a Tomcat5.5 on Debian Edge the other day.
That application was running fine in unstable, but on Edge was failing to get a connection with my DB with this error:
java.lang.RuntimeException: org.apache.commons.dbcp.SQLNestedException:
Cannot create JDBC driver of class '' for connect URL 'null'
Read the rest of this entry »
Posted in Java | 1 Comment »
September 11th, 2007
OK, I’ll try to do like everybody and open my blog. It will be mostly technical and contain some tips and tricks in computer science.
So don’t expect funny stuff or pictures of nude girls in here. For geeks’ eyes only.
Posted in Uncategorized | No Comments »