Monthly Archive: August 2008

Aug 12

WordPress exploits

Back in June, someone hacked this site, and added a malware iframe. I cleaned it up, upgraded WordPress, and went on with my life, assuming that someone had just exploited a post. Well, it was hacked again, the same way. Since I had upgraded WordPress, I was more suspicious, and I delved into my website …

Continue reading »

Aug 08

Rails to Grails : Database Integration, Part II

I spent most of the last post talking about magic, but what I intended to talk about is the regular occurrence of the database getting out of sync with the domain objects in Grails. In theory, based on using the Update directive in the database configuration, my database should be updated to match the domain …

Continue reading »

Aug 08

Rails To Grails: Database Integration (Part 1)

In Rails, your domain model objects derive their structure and content from the database layout. In Grails, however, the database tables are created based on the fields and directives embedded in your .groovy files. Of the two mechanisms, I find Grails’ approach to be more sensible for greenfield applications (i.e. no legacy database), and for …

Continue reading »

Aug 08

Rails to Grails: Compilation

One of the interesting things I’ve had to work with on my Grails project is compilation.  Occasionally, I’ll get a .groovy file that seems to put Grails into an endless ‘compile-load-restart’ loop.   To discover which file is the culprit, I physically stop the server after the compilation, but before the restart, and then go into …

Continue reading »