Twitter changed to SSL only for streaming API today

This morning my Twitter data collection program suddenly started failing to connect. I’m using the the excellent twitter4j library for connecting to Twitter.

The error was “Connection Refused” with this response:

TwitterException{exceptionCode=[b5e7486f-24943238 b5e7486f-2494320e], statusCode=-1, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.4}

I found out that Twitter has turned on only accepting SSL connections for connecting to streams today. (https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th)

I tried setting builder.setUseSSL(true) in Twitter4j, but that didn’t fix the problem. There is a new snapshot build of twitter4j that does fix it (2.2.5-SNAPSHOT). It is available for download from http://twitter4j.org.

I’m using Eclipse Helios and Maven and had some trouble working out how to get the SNAPSHOT. In the configuration I have, it picked up the snapshot of twitter4j-stream-2.2.5-SNAPSHOT.jar, but not the twitter4j-core-2.2.5-SNAPSHOT.jar. I tried a few different things to make it get the core snapshot which didn’t work, but then found that disabling the releases in the repository definition worked:

   <repository>
      <id>twitter4j.org</id>
      <name>twitter4j.org Repository</name>
      <url>http://twitter4j.org/maven2</url>
      <releases>
         <enabled>false</enabled>
      </releases>
      <snapshots>
         <enabled>true</enabled>
      </snapshots>
   </repository>

Not sure why the twitter4j-stream snapshot was downloaded but not the twitter4j-core without changing the POM. But with this change, my data collection is working again although I’ve missed a few hours of data.

Canberra Google Wave Hackathon Day – 8th August

I’ve been helping to organise a Google Wave Hackathon Day in Canberra. It is going to be on Saturday 8th August at ANU.  Here is the flyer for it:

PROGRAM:

9:30am Registration
10:00am Talks
A  presenter from Google (details available soon) will give an introduction to the Wave API.
If you have already been developing for Wave, please consider giving a short presentation about what you have done (doesn’t have to be a formal presentation).
12:00 pm Brainstorming Lunch (BYO or we will take orders & payment for pizza at registration)
1:00 pm Hacking
5:00 pm Demos
7:00 pm Head out for dinner at restaurant (at your own cost).

LOCATION:  Room N101, CIST Building, ANU, North Road, Canberra

You must register if you wish to attend so that a Google Wave Developer sandbox account can be created for you.  Registrations will close on Tuesday, 4th August so that the accounts can be created. Numbers are limited, so please register as soon as possible at:  http://tr.im/cbrwave

This day is being organised by volunteers who are interested in Google Wave development and thought it would be useful to have a Google Wave developers day in Canberra. Please indicate if you are willing to assist with organising and running the day. Contact brenda@moon.net.au for more information.

We will be providing WiFi internet access, but you will need to bring your own computer. Please have a look at the developer information on the Google Wave site (http://code.google.com/apis/wave/) as an introduction.

Pukka – making bookmarking to del.icio.us simple

Pukka: Simple. Delicious.
I finally decided to buy Pukka. I kept trying it out, and not quite deciding to buy it. But two things happened today that made up my mind.

One was I discovered that as well as being fantastic for posting to del.icio.us, it also gives me access to all my del.icio.us bookmarks, organised by tag! By adding this to the Mac status bar at the top of the screen it gives me quick access to my del.icio.us bookmarks.

The other was reading the post in Justin Miller’s blog (the creator of Pukka) about “The Price of Free” which discusses the reluctance of people to pay for utility programs. Pukka was discussed favourably on a podcast, but the announcer was saying it should be free, not shareware.

I realised that $14.95USD (which was $16.27AUD) was a reasonable price for the time Pukka will save me and it will encourage me to make better use of del.icio.us. And hopefully paying for it will encourage Justin and others like him to keep providing great applications.