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.
As it seems, there are dozens of other users who experienced a connection timeout using AirPort W-LAN connections on Macs. There are dozens of different solutions described in the forums, I tried plenty of them. From reboot to deleting the WPA2 key from the keyring, nothing worked. Eventually I tried the following and this worked for me. (Note that I’m using a German installation, the real English translation may be slightly different.) Go to Mac (the Apple symbol in the top left) -> Location -> Network Settings Click on the “Airport” entry on the left Click on the “additional options” button On the Airport tab, click the “+” button below the “preferred networks” list Click on the “show networks” button and select your W-LAN from the list Enter your password That way, I could connect without problems. It may be coincidence that exactly this way worked, and none else, but maybe there’s really some strange difference. Let me know if this helps.
Silently, we passed our 10th anniversary some days ago. As a little gift, here’s an older video right from the DVW game engine.
I got a bit lazy with my code music list to the right. However, I’m currently addicted to the great music of Parov Stelar (bought three albums at once on iTunes recently, sad I didn’t find him earlier), so I thought I could share some videos. A live example: (I’d love to have this unfortunately unreleased recording.) And a studio mix: Plenty of other tracks are available on YouTube.