How to obtain a long-term access token for a page and programmaticaly post to it: From here: http://stackoverflow.com/questions/8231877/facebook-access-token-for-pages Go to the Graph API Explorer Choose your app from the dropdown menu Click "Get Access Token" Choose the manage_pages permission (you may need the user_events permission too, not sure) Now access the me/accounts connection and copy … Continue reading Note to self: how to post on facebook as a page
Author: George Georgovassilis
logging container-managed datasource jdbc with log4jdbc
In my new 'old' project which I just inherited there is - once more - Hibernate and plain JDBC access to a database, happily mixed. Hibernate logs SQL nicely, but that leaves out whatever datbase access the rest of the application is performing. I found log4jdbc very convenient which allows fain-grained logging over every interaction … Continue reading logging container-managed datasource jdbc with log4jdbc
JPA and postgres transaction isolation
The short story: the default Postgres transaction isolation level can lead to trouble in a web application. I'm showing here a way to change it in a Spring/JPA application. The long story: One of the applications I worked recently on consists of a rich client which issues an HTTP request for every little thing it … Continue reading JPA and postgres transaction isolation
Ubuntu: physical power button not working
At some point the physical power button on my file server (ubuntu 12.04) stopped working and I had to do a software shutdown everytime. The solution is to (re) install acpi: sudo apt-get install acpi sudo apt-get install --reinstall acpi-support
Reddit as an OAuth provider for a Java backend
OAuth (2) and Java work well together, there are plenty of libraries available which handle the general case and the more specific peculiarities of the various OAuth providers. Despite solid implementations like my favourite Spring Social [1] framework the state of OAuth is at best fragmented. Not only because Spring Social is not as well … Continue reading Reddit as an OAuth provider for a Java backend