Like Growl? Too cheap to pay $1.99 for the latest update?
Category Archives: Hax
Spring JSON @RequestBody
What I learned today:
I had the same problem and it finally turned out that the class I was trying to convert JSON to cannot be an inner class.
What helped me to find the problem was turning on debug logs (log4j jar and properties file in the build path) and tracing attached Jackson JSON source in Eclipse.
http://forum.springsource.org/showthread.php?85532-HttpMediaTypeNotSupportedException-amp-JSON
Spring/Jackson JSON un/marshalling does not work with inner-classes.
SSH Tunnelling
ssh -f user@HOST -L from_port:to_ip:to_port -N
eg:
ssh -f blah@home.chear.ca -L 8080:192.168.1.1:80 -N
Linux (Ubuntu) + OSX
At home I have a Macbook Pro that acts as my everyday desktop computer and a headless (no monitor) Ubuntu Linux server that acts as a development testbed. The Ubuntu server has Apache, MySQL and PHP installed for development. My Mac has that too, but I prefer turning those services off and let the Linux machine do the heavy lifting. Usually, it’s sufficient to log into the Linux machine through SSH and hack around with vi. However, there are times that you may want to log into the Linux GUI. That’s a pain in the arse for me, since I would have to connect a monitor and keyboard to the server. The simplest solution is to log in through X and XDMCP.
Continue reading
