March, 2008

jab2web Version 0.1

March 11th, 2008

In addition to visiting Mat in Savannah this past week I also worked a lot on my first Python project, a collaboration with Sean, jab2web. According to the Google Code description I wrote, jab2web is “a jabber bot written in python that uses regular expressions to parse incoming messages. HTTP requests are made to corresponding URLs to determine how the bot should reply. The configuration for this looks a lot like the Apache mod_rewrite RewriteRules.”

I’m not sure how many people would actually need or want to use Jabber to translate messages into HTTP requests but I found a need for it and so I wrote it.

I wanted to create a chat interface for the web application for my ourbunny.com project . Since I had a lot of the application logic already implemented on the web interface I did not want to have to rewrite it all in a different language to include in the chat interface. I decided to write a PHP script for each Jabber command that would parse the GET variables and print whatever text I wanted as the reply for that command.

jab2web acts as an intermediary between the PHP scripts I wrote and a Google Talk. Incoming messages are matched to a list of regular expressions and when a match is found a request is made to the corresponding PHP script over HTTP. The response of the script is then relayed back to the user who initiated the chat.

All this can be seen in action at ourbunny.com (although most likely I will not be running the server). Hope someone finds the script useful, have a nice day!

Site Changes!

March 5th, 2008

I’ve made some DRAMATIC changes to the website!  I will number them for you for easy reading and future reference:

  1. Anyone can comment - I’ve removed the requirement that you register and account in order to post comments on blog posts.  You don’t even need to register here in order to have an avatar, just register your email address globally with Gravatar!
  2. reCaptcha - Now when posting a comment you have to fill out a captcha.  The cool thing about this captcha is that it helps digitize books while proving that you are indeed a human!
  3. New Forum - I’ve added a new ^(.*)chan$ style forum.  You can post anonymously and upload images.

Hope you enjoy the changes!  Leave your thoughts about them too!

Silly Boys

March 4th, 2008

Justin, Jon, Paul, and Steve made a short just for your viewing pleasure… check it out!