api

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.

Drupal help and support (free)

Drupal help documentation FAQ: Where can I find Drupal help, specifically free Drupal help and support?

OpenSSO and PHP - A PHP script to validate a user's OpenSSO cookie

PHP OpenSSO FAQ: Can you share a PHP script to validate a user's OpenSSO cookie?

OpenSSO and PHP - PHP login scripts to manually authenticate OpenSSO users

PHP OpenSSO FAQ: Can you share a PHP script to manually authenticate OpenSSO users during a login process?

An Effective Java note on reusing existing Exception classes

I just read a short chapter in the book Effective Java, and realized I was doing something pretty dumb in my own code by always creating my own custom exceptions instead of using other exceptions already intended to be reused in the Java API.

Specifically:

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?

The case for the GoogleOS (part 3)

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:

Syndicate content