Archive

Archive for November, 2009

Create multi-mode maven projects in Eclipse

November 23, 2009 Leave a comment

This is a good guide to create multi-mode maven projects in Eclipse:

http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html

 

Also useful to refactor existing project to put several modules bellow a parent module that wasn’t created when it should.

Categories: Uncategorized Tags: , ,

Eclipse Galileo in Ubuntu Karmic – needs hack

November 5, 2009 1 comment

Upgrade to Karmic, error 1:

Couldn’t find/replace strings. Replace button wouldn’t do anything.The fix?

Create an sh script with the contents:

export GDK_NATIVE_WINDOWS=true
/opt/eclipse/eclipse

(where /opt/eclipse/eclipse is the location of your eclipse application file).

And use that script as the startup program to boot eclipse.

Thanks to http://mou.me.uk/2009/10/31/fixing-eclipse-in-ubuntu-9-10-karmic-koala/

Categories: Uncategorized Tags: , , ,

Trac – Fixing the SQLite DB

November 5, 2009 Leave a comment

Thanks to http://www.otterbook.com/blog/2009/08/fixing-the-sqlite-db-for-a-trac-instance/ , I found out how to fix a Trac instance when I got the message

“DatabaseError: database disk image is malformed”

Here it is:

$ cd /path/to/trac-sqlite-db-directory # find the trac.db file
$ su www-data   # switch to the owner of the db file
$ mv trac.db trac.db.damaged
$ sqlite3 trac.db.damaged .dump|sqlite3 trac.db

Categories: Uncategorized Tags: ,

Blog objective

November 5, 2009 1 comment

This blog was created mainly to be a repository of information on problem solving in my day-to-day work life. If it evolves to something else, so be it. If someone finds it useful, great!

Categories: Uncategorized
Follow

Get every new post delivered to your Inbox.