Alan Dipert

Wednesday September 24, 2008
Category  

The 37Signals application Campfire is web-based chat app. Before today, the only way to log into a Campfire room was through a web-browser, or by using Tinder, an unofficial but sanctioned API in Ruby.

Over the past few days I’ve hacked together a Java API, based on HtmlUnit, that provides methods for logging into Campfire with a bot, or with another client that uses the API. My first project was a command-line client:

[ alan@shitfit ~/git/campfireclient ] $ 
./campfirc 
-u alan@ubergibson.com -p password34 -s 
fancypants -S
Using SSL.
Now connected to "fancypants.campfirenow.com"
Available commands:
/join <room>
/quit
/join Bots
Now chatting in "Bots"
whats up dudes?
Robot M.: whats up dudes?
Alan D.: we chill

Anyways it rules, and I’ve posted it over at github.

Comment [67]

Alan Dipert

Monday July 21, 2008
Category  

A common technique for implementing so-called “clean URLs” in lighttpd for use with TextPattern is this (from this post):

server.error-handler-404 = "/index.php"

That’s a bit hackish and displeasing to me for some reason. What about a regular URL rewrite? Try this in your lighttpd.conf:

url.rewrite-final = (
    "^/([^.?]*)$" => "/index.php/$1"
)

It’s adapted from an example by the Drupal people.

Comment [7]