CommonThread

Displaying articles with tag

Ruby Awareness API (A.K.A. My First Gem)

Posted by ben, Mon Mar 26 00:00:00 UTC 2007

So I wrote my first rubygem and put it on rubyforge. It really wasn’t too bad, soon enough I will write a tutorial on packaging your code into a ruby gem and post it.

The Ruby Awareness API (rawapi) is a ruby interface to the FeedBurner Awareness API. it is really simple with one class that needs to be instantiated and only 2 methods right now. You can see the pitiful documentation online. I will be updating it too soon enough when I find motivation.

The cool part is since I registered my project with rubyforge I, and anyone else, can install it via the gem command.

sudo gem install rawapi

Isn’t that nifty?

0 comments | Filed Under: | Tags:

Using Feedburner with Mephisto

Posted by ben, Thu Feb 15 15:34:00 UTC 2007

If you use feedburner and you want to turn on site stats for your blog then you can use the following script tag in your layout.liquid file. Be sure to put it in the head section. The layout.liquid file is located in the design tab of the admin.

Be sure to replace FEEDBURNER_ADDRESS with your adress from feedburner & BLOG_URL with your blogs root url without a trailing slash

For example my info is:
FEEDBURNER_ADDRESS = CommonThread
BLOG_URL = http://blog.commonthread.com

<script src="http://feeds.feedburner.com/~s/FEEDBURNER_ADDRESS?i=BLOG_URL{% if article %}{{ article.url }}{% endif %}" type="text/javascript" charset="utf-8"></script>

That is only for people with TotalStats Pro. If you are using StandardStats then you will use:

<script src="http://feeds.feedburner.com/~s/FEEDBURNER_ADDRESS" type="text/javascript" charset="utf-8"></script>

0 comments | Filed Under: | Tags: