Facebook Pages the Java way

June 22nd, 2010

If you’re ready to jump on the social bandwagon, you might consider creating a Facebook Page to extend your social reach. Creating a Facebook Page couldn’t be easier, but posting up content can be a drag.. so why not automate it?

The content on our Facebook Page – http://facebook.com/giglondon – is fully automated, from creating daily events to posting updates of the best gigs each month. The first obstacle that we face in connecting with Facebook is that we need an API Key/Secret and a Session Key. Read the rest of this entry »

Realtime geolocation check-in feeds using Foursquare’s API

April 22nd, 2010

In this post we’re going to be leveraging Foursquare’s API to get venues near a given geo location and to connect to a user’s Foursquare account, so that we can pull in their realtime check-in feed.

This has been implemented on our live environment, so for a real live demo go to http://niteviva.com and sign in using your Foursquare account. Note that, for account verification and security reasons, you will be asked for your email address when you sign up. You will then be taken to the home page where your Foursquare check-in feed will be displayed on the top right-hand corner.

Foursquare’s API has various client libraries that we can use to start developing with the API. Here, foursquared has been chosen because Java is what we find easy to work with when using third-party APIs. You will need to be comfortable working with Java and Maven to complete the following steps, but even if Java isn’t your cup of tea, this post is still useful to those of you who are generally interested in getting started with Foursquare’s API. Case in point, some of what’s said in this post is based on a great blog post by Joe Siewert, which shows how to get started with Foursquare and PHP. Read the rest of this entry »

Quick Freemarker tip

January 13th, 2010

We’ve started using Freemarker for our web and email templates, but one problem we had is with syntax highlighting in Eclipse, it just showed them as one black and white mass of code.

One quick solution was to open *.ftl with the WTP HTML editor, to do that right click on an ftl file and select ‘open with…’ and follow the prompts. The only problem is that Eclipse then started showing errors on a lot of the templates so we had to disable validation . To do the same, open Eclipse preferences and find the Web/Html file/validation page screen and set all of the values set to  ’Error’ to ‘Warning’ or ‘Ignore’.

A quick refresh and rebuild removes all of those pesky build error markers :)

Shiny new build system

January 13th, 2010

Up until now we’ve been happy enough to manage the build process manually from Github, but after a large rewrite of some sections (more to follow on that in another post) we’ve reached a point where we needed to put something more maintainable in place. Seeing as I’ve been through this a few times before at companies like Channel4, Disney and most recently at the BBC, I decided to stick to a set up that I know works well really for Java development. Read the rest of this entry »

Realtime Twitter Reactions using JQuery

November 27th, 2009

I’ve taken inspiration from an awesome jquery plugin from coda and developed some jquery code that goes and fetches realtime twitter reactions. Read the rest of this entry »

First post!

November 8th, 2009

Finally got WP running with Nginx and FCGI on our Ubuntu server. We’ve got loads of posts planned so why not add our feed to your reader to keep up to date with the goings on at Nite Viva?