JESTER WIKI UPDATED WITH TUTORIAL

I’ve updated the Jester wiki with a basic Tutorial featuring examples of creating rules and seeing how events coming into the system are processed. Enjoy!

'NEW PROJECT: JESTER'

I’ve started a new open source project called Jester. Jester is a rules engine for points and badges, also known as Gamification. Jester is written in Python, using Redis for storage. I’ve created a tiny Domain Specific Language for defining rules using the pyparsing library. A couple examples of rules: create rule on game_play award 5 points create rule on game_play award badge game_addict when game_play occurs 5 times in 1 day This project is in the very early stages and is not yet functional as of this posting.

OPEN NEW TERMINAL TIP

I tend to open up several terminals when working on a project, so I usually want them to start in the same directory I’ve been working with. Stick this in your ~/.bash_profile to have your new terminal windows automatically cd to the directory you last used. export PROMPT_COMMAND='echo pwd > ~/.lastpwd' cd `cat ~/.lastpwd ``

INSTALLING MYSQLDB ON MACOS LION

I ran into an issue installing the MySQLdb module. >>> import MySQLdb /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.pyc, but /Users/jhaddad/Downloads/MySQL-python-1.2.3 is being added to sys.path Traceback (most recent call last): File "", line 1, in File "MySQLdb/init.py", line 19, in import _mysql File "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 7, in File "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 6, in bootstrap ImportError: dlopen(/var/root/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib Referenced from: /var/root/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so Reason: image not found I fixed it by doing the following:

HEADLESS VM SERVER USING UBUNTU 11.10

In this tutorial I’ll be guiding you through setting up a headless Ubuntu 11.10 box that you’ll manage using virt-manager, accessed via X11. My main machine is a Mac running OSX Lion. You’ll need the Ubuntu CD, and for the first part of the tutorial, physical access to the box with a keyboard and monitor. **Install Ubuntu on your server. ** I installed Ubuntu Desktop so I could mess with virt-manager before I disconnected everything.

GET RID OF FACEBOOK'S AWFUL TICKER

It’s appropriately named Facebook News Ticker Remover. Now I just need to clear out the entire right column. And most of the newsfeed. Edit: Just found minimalist-facebook which hides even more features I can’t stand.

API TESTER NOW HOSTED ON GITHUB

About 4 years ago I decided to write a little GUI tool for manually testing API calls. Put it on the top of my blog, people have downloaded it, and I haven’t touched it since then. Last updated timestamp was 2007. I don’t know if anyone wants it, but it could be useful as a starting point, or to understand how Cocoa apps were written… 4 years ago… I don’t know.

TRAC .11 JQUERY BUG

Running Ubuntu 10.04 LTS, we were seeing an error in trac (File js/jquery.js not found) about jQuery being missing. After plowing through about 20 forums, I finally found a post which gave a tip similar to this: ln -s /usr/share/pyshared/trac/htdocs/js/jquery.js /usr/lib/python2.6/dist-packages/trac/htdocs/js/jquery.js After doing that, jQuery showed up.

MULTIPLE FILETYPES IN VIM

I’m finding this useful as I work with snipmate and have defined custom snippets for solr config files. I still want to use the XML filetype, but I have no real use for the solr fields outside of editing the schema.xml file. set filetype=xml.solr Booya.

'GIT TIP: SETTING UP YOUR REMOTE SERVER'

Here’s a pretty common git error message if you’ve added a remote origin server manually. You asked me to pull without telling me which branch you want to merge with, and ‘branch.master.merge’ in your configuration file does not tell me, either. Please specify which branch you want to use on the command line and try again (e.g. ‘git pull ‘). See git-pull(1) for details. Well, fortunately it’s pretty easy to fix.