RoboVM - Java on iOS

RoboVM is a software tool written to let you run Java applications on the iOS platform. From the docs, “RoboVM translates Java bytecode into native ARM or x86 code. Apps run fast directly on the CPU. No interpreter involved. RoboVM includes a Java to Objective-C bridge that makes it possible to call into the native iOS CocoaTouch APIs.”

Connecting to the NeuroSky ThinkGear API (in Scala)

If you want to connect to the NeuroSky ThinkGear API -- what they call the ThinkGear Socket Protocol -- this code shows you how to do it, at least in Scala. It consists of a few pieces of code I pulled from this GitHub repo. I wrote this code to help debug a problem I was seeing with the data.

The RawReader class does all the work. It opens a socket on the right port, then sends the necessary JSON to that socket to get things started. After that I just read the raw data that the API writes to the socket.

The Twitter API, PHP, and OAuth

Just a quick note today on how to access the Twitter API using PHP, specifically using the Abraham Williams PHP TwitterOAuth library. While the library itself seems very good, I couldn't find much in the way of documentation, particularly a simple "getting started" tutorial, so I thought I'd share this code.

In short, I dug through the PHP files in the root directory of the TwitterOAuth library, eventually creating this simple PHP Twitter client example:

A Scala Twitter client example

Just a quick note here today that if you want to create a Twitter client in Scala, the Java Twitter4J library looks like a good path to take.

I've shown an example below, where you can see that besides the eight lines of code it takes to create a Scala twitter object, the actual code you need to get information from the Twitter developer API is pretty short.

Searchable Drupal API function examples

Summary: A Drupal API/functions experiment - A searchable collection of Drupal projects to demonstrate Drupal API function examples.

I just started a new Drupal API examples experiment recently. The basic concept is to make it easier for Drupal programmers to be able to find working, real-world Drupal API programming examples as a way to help document the available Drupal API functions.

The case for the GoogleOS (part 5)

MS fights back

The next step in this chess match is that MS won't take this lying down. On the Office front I don't think they can do much to fight back. Office applications should be a commodity -- they ran out of good new features years ago. ("Ribbon", anyone?)

The case for the GoogleOS (part 4)

Going after Windows and Office

In the business world I prefer being aggressive, and if someone is coming after me, I in turn am going to go after them -- but only if I think I can win the battle. So that becomes the question, can Google win this battle?