Facebook Test Java API release 1.1.5

The Facebook Test Java API framework has been updated. There are two additions to the API and one bugfix: Bugfix for NPE when calling facebookStore.createTestUser(false,”…”). Added possibility of using a provided HttpClient instance in HttpClientFacebookTestUserStore. Added unit test that displays the use of json-path when asserting data. Here’s a quick reminder of how to create [...]

Tags: , , , ,

Finding unread mail in Gmail in your browser

Usually when I have a lot of emails in my inbox, I tend to skim most of them and then mark interesting mails as being unread so that I can read them later on. Sometimes that later on is getting pushed further and further away in the future and suddenly there’s a bunch of unread [...]

Tags: , , ,

Create ‘native’ Java applications on OS X and Windows using Maven plugins

When building a desktop application, the target audience usually expects an executable to when launching it. If the application is written in Java you have the options to create a batch file to launch it, create an executable jar file, compile the application as a native application or wrap the application using a native ‘launcher’. [...]

Tags: , , ,

Disappearing cursor in Gmail when using Safari

I’ve had a really annoying problem where the cursor in Gmail disappears completely when composing mails. Being used to have a visual hint of where the next character is supposed to be placed, I was pleased to find a blog post [1] describing a workaround. The short story of the workaround it is to disable [...]

Tags: , , ,

Editable lines in Google Maps using the Javascript v3 API

The Google Maps Javascript API v3 provides overlays for drawing shapes, such as Polygons, Circles, Polylines and Rectangles. The shapes are not implicitly interactive in the respect that you cannot tell the shape to be ‘editable’ as you could in the Javascript v2 API (here’s an example). To simulate the behavior using functionality provided by [...]

Tags: ,

Effective Terminal on OS X

Here’s a list of tips and tricks to make your OS X Terminal experience a bit more effective. Quick access to the Terminal In order not to be disctracted from your line of thoughts and leave the flow, you need to have a quick way of accessing your Terminal. That goes for other applications, and [...]

Tags: , , ,

Send growl notifications from Java using a script engine and AppleScript

Growl is a notification system for Mac OS X and “Growl lets Mac OS X applications unintrusively tell you when things happen”. The about page shows an example of what Growl looks like. If you have written a Java application and want to enable Growl notifications for it, you previously had the possibility to use [...]

Tags: , , , , ,

Facebook Test Java API update

As Feroz and Aleadam commented on my previous post, it is now possible to copy test users from one application to another in the Facebook Graph API. This functionality is now implemented in facebook-test-java-api version 1.1.4. Code example This method copies a test user to another FacebookTestUserStore instance: FacebookTestUserStore facebookStore = new HttpClientFacebookTestUserStore(“<appId>”, “<appSecret>”)); FacebookTestUserStore [...]

Tags: , ,

Java API for testing Facebook application integration

Since november 2010 you may create test user accounts on Facebook for your application, so that you may test your application without creating dummy accounts and possibly break the Facebook EULA. The test users may be managed using the Facebook Graph API. The application I was working on, which integrated with Facebook, needed automated integration [...]

Tags: , , ,

HP Laserjet 1020 in OS X Snow Leopard

I’ve got 3 different types of Mac computers at home, running Snow Leopard, and on each computer I’ve had the need to print stuff using my HP Laserjet 1020 model. Each time I used a new computer I realised that there is no built-in support for the printer and each time I had forgot the [...]

Tags: , , , ,

Generating diagrams in Asciidoc using Dia

This article describes how Dia can be used to generate diagrams for the Asciidoc documentation toolkit. For those of you that have never worked with these products, I have added some short descriptions: This text is taken from the Asciidoc home page. Asciidoc is a text document format for writing short documents, articles, books and [...]

Tags: , , ,

Get nagged about keyboard shortcuts in Eclipse

I was attending the “The Productive Programmer: Mechanics” session, held by Neal Ford, at Oredev last week and I wanted to share one trick that will more or less force you to get faster when developing in Eclipse. The Eclipse plug-in MouseFeed, written by Andriy Palamarchuk, will repeatedly nag you with what keyboard shortcuts you [...]

Tags: ,

Mocking Eclipse IResource.accept()

I had a junit test situation where I wanted to mock an Eclipse IResource instance but still be able to test a call-back implementation given as parameter to the mocked IResource.accept(IResourceVisitor visit) method. By default, mocking an interface gives you “call count” and expected return values but no code is executed. In order to test the implementation of IResourceVisitor, something more had to be done. Here is how I did it.

Tags: , , ,

EclipseCon 2008 – Santa Clara, California

EclipseCon 2008 took place between the 17:th and the 20:th of March and was held in Santa Clara, California. It is an event for, maybe not that surprising, people working with Eclipse, OSGi and sub-projects built on the Eclipse platform. This year there were 1400 visitors spread out among the four event days. EclipseCon is [...]

Tags: , ,

Forensic tools, part 2

Have you ever been in the situation that an application behaves in strange ways and by the time you find out, you do not have access to your development environment. In this article we are discussing ways to pin- point the problem with tools available in the Sun SDK bin directory. In the first part [...]

Tags: , ,