We recently changed the way how we load configuration files in a Grails project. Normally we to use the .properties file format, but this has some serious disadvantages. You cannot deal with all Grails Mail settings in the configuration file You cannot use the log4j DSL to extract the logging [...]
Loading external Configuration files in a Grails application
The use of ‘Config.groovy’ as a placeholder for configuration settings is nice, but not always sufficient. The ‘Config.groovy’ file will get compiled and packaged inside the WAR file you are creating. If you want to externalize the configuration and have a need to configure settings outside the deployed (WAR file) [...]
Moving desktop toolbar on Linux Mint 11
When using Linux Mint with an additional display there was no way i could get the toolbar moved to my external sceen. Eventually there seems to be a solution and that is to issue a terminal command. Open a terminal Issue the command ‘xrandr’ this gives a list with displays [...]
Combining ImageMagick and Grails
When there is a need to work with images (thumbnailing, watermark, resize etc.) there is always ImageMagick that comes to the rescue. Combining this image utility powerhouse with the Grails framework is a task which can be easily accomplished. Steps: Install ImageMagick according to the installation instructions. It contains a [...]
Installing Vimball plugins when using Pathogen
No need to discuss that [Vim][vim] is truly a great text editor. Wealth of features, great speed and extensive support for plugins. The installation of plugins is very easy. If you want to learn how to install plugins, make sure to check out the wiki. ##Pathogen When you instal a [...]
Installing Markdown on OSX and use it inside VIM
Back again to one of my favorites which is called Markdown. Once every now and then i forget how easy it is. Normally i use Textmate to do all my writing, but recently i have picked up VIM to do some editing etc. Why i did chose VIM? I will [...]
Introduction to Groovy & Grails
Recently i had the opportunity to show an exciting crowd a presentation about [Groovy][groov] & [Grails][grails]. This happend during the [Devnology Community][devnology] Event at Baarn. If you want to view the presentation [check it out here!][presentation]. ##Links: * [Groovy][groov] * [Grails][grails] * [Presentation Introduction to Groovy and Grails][presentation] * [Devnology][devnology] [...]
Cinch & Rightzoom
Als je net als ik werkt met verschillende besturingssystemen dan komt het soms voor dat je sommige zaken uit een bepaald besturingssysteem graag zou willen overnemen in een ander. Goed voorbeeld hiervan is [Windows 7 Aero Snap][aerosnap] wat bijzonder prettig werkt. Op een Mac kun je zoeken wat je wil [...]
Using MySQL instead of in-memory database for a Grails application
A Grails application by default uses a in-memory HSQL database. To switch to a MySQL database the steps are simple and straightforward. * Download the MySQL JDBC driver [called a connector] from the [MySQL website][1] * Extract the zip or tar archive * Copy the driver (at this time of [...]
Changing default homepage for a Grails application
You can set the default homepage for a Grails application by modifying the `grails-app/conf/UrlMappings.groovy` file. In a new Grails application this file will look like class UrlMappings { static mappings = { “/$controller/$action?/$id?”{ constraints { // apply constraints here } } “/”(view:”/index”) “500″(view:’/error’) } } Replace the line: “/”(view:”/index”) with: [...]