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 [...]
Facebook Test Java API release 1.1.5
October 20th, 2011 by Tobias Södergren — Java, Testing
Tags: Facebook, framework, Java, open source, test
Finding unread mail in Gmail in your browser
October 8th, 2011 by Tobias Södergren — Tips & Tricks
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: filter, filtering, gmail, unread
Create ‘native’ Java applications on OS X and Windows using Maven plugins
August 15th, 2011 by Tobias Södergren — Java, Tips & Tricks
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: desktop, Java, maven, native
Disappearing cursor in Gmail when using Safari
July 7th, 2011 by Tobias Södergren — Tips & Tricks
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: gmail, problem, safari, workaround
Editable lines in Google Maps using the Javascript v3 API
April 28th, 2011 by Tobias Södergren — Tips & Tricks
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: google maps, javascript
Effective Terminal on OS X
April 15th, 2011 by Tobias Södergren — Tips & Tricks
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: bash, macosx, shell, terminal
Send growl notifications from Java using a script engine and AppleScript
April 12th, 2011 by Tobias Södergren — Java, Tips & Tricks, User Experience
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: AppleScript, growl, Java, os x, script engine, ui
Facebook Test Java API update
March 25th, 2011 by Tobias Södergren — Java, Testing
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: Facebook, framework, unit testing
Java API for testing Facebook application integration
February 3rd, 2011 by Tobias Södergren — Java, Testing
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: Facebook, frameworks, open source, testing
HP Laserjet 1020 in OS X Snow Leopard
April 8th, 2010 by Tobias Södergren — Tips & Tricks
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: drivers, hp, laserjet, os x, snow leopard
Generating diagrams in Asciidoc using Dia
March 24th, 2010 by Tobias Södergren — Tips & Tricks
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: asciidoc, dia, diagram, documentation
Get nagged about keyboard shortcuts in Eclipse
November 12th, 2009 by Tobias Södergren — User Experience
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 [...]
Mocking Eclipse IResource.accept()
January 15th, 2009 by Tobias Södergren — Java, Testing, Tips & Tricks
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: eclipse, junit, mock, programming
EclipseCon 2008 – Santa Clara, California
May 1st, 2008 by Tobias Södergren — Events, Java
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: eclipse, jayview, open source
Forensic tools, part 2
May 1st, 2008 by Tobias Södergren — Java
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 [...]
