This posting describes the steps necessary to change your Grails project if you’re using Grails for frontend only, without direct database access.
While porting my Grails applications to 2.0 RC1, I recognized that ConfigurationHolder is now deprecated. The new way to access the configuration is through dependency injection of the grailsApplication bean. Before 2.0: With 2.0:
A little cheat sheet I created for learning purposes. Feel free to add your hints in the comments.
This posting shows how to implement Facebook authentication with Grails in two slightly different flavors.
Scrollbars for a WebView can be easily disabled from XML using the scrollbars attribute.
For some reason, pulling screenshots in the DDMS view in Eclipse doesn’t always work. In that case, the following calls became handy (tested with HTC Hero): adb pull /dev/graphics/fb0 fb0 dd bs=1920 count=800 if=fb0 of=fb0b ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 320×480 -i fb0 -f image2 -vcodec png image.png More examples available at the source.
If you’re working on Windows and have HTC Sync installed, you may run into this error message. I hardly develop under Windows anymore, but since the Android plugin was a little buggy on OSX, I had to. This message drove me nuts and I did a little research: with netstat -o I could see which process ID was occupying the port and with Process Explorer I could see that HTC Sync itself was the culprit. I killed it but this didn’t help until I hindered it completely from auto-starting and restarted my machine afterwards.
Today I experienced a compilation problem with GWT 2.1 and the Maven GWT plugin: I couldn’t really identify the origin of the problem, but scrapping the whole gwt Maven repository subdirectory and redownloading the 2.1.0 dependencies resolved the issue for me.
This blog article discusses the risk of clickjacking when using social one-click-functionality established through embedded IFRAMEs, including two minimal examples for Facebook and flattr and an advice how to minimize the risk of getting clickjacked.