(Click the image to see the full-size view. Better yet, right-click the image and open it in a new window so you can read the following discussion.)
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.
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.
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:
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.
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.
PHP OpenSSO FAQ: Can you share a PHP script to validate a user's OpenSSO cookie?
PHP OpenSSO FAQ: Can you share a PHP script to manually authenticate OpenSSO users during a login process?
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?)
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?
MS: The ultimate guard dog
Throughout their history MS has always acted like the ultimate guard dog. Not only do they protect their own territory (operating systems, applications, development tools), they also protect anything in their neighborhood. They're a little like this: