Harry Seldon's blog

Fractals, Chaos, and Control Systems on Rails

Read

News from Typo edge

Posted by Harry Seldon on March 08, 2009

I have updated this blog engine in order to install the recently added Feedburner support. My recent post about Rails heroes RSS feeds clearly showed me that feedburner was a must have as everybody is using it. Feedburner gives you an idea of your RSS traffic.

Here are some more recently added features to Typo:

More info, for French readers, here

I encountered some small issues during this update. Here they are, so you can avoid them.

Install

Since my last post about Typo installation from git, the plugin management has changed. Typo now uses gems. Therefore, to install locally Typo, the process is now:

git clone git://github.com/fdv/typo.git
sudo gem install htmlentities  coderay json  calendar_date_select
sudo gem sources -a http://gems.github.com
sudo gem install datanoise-actionwebservice mislav-will_paginate
Rake db:migrate

You can still manage the plugins such as related content or recent comments using git submodules.

Routes

Some routes have changed. Therefore, you will probably need to update your theme. For instance: in theme/views/articles_comment_form.html.erb I replaced:

comments_path(@article) 
by 
@article.comment_url
and 
preview_new_comment_path(@article) 
by 
@article.preview_comment_url

For the live search: in theme/views/shared_search.html.erb I replaced:

{ :controller => 'live', :action => 'search' } 
by
live_search_articles_url

Cache

This is about Typo edge. It is not supposed to be a stable version. So use with caution! Right now the cache needs some improvement which should be done soon. Temporarily, I have disabled it by commenting in app/model/blog_sweeper.rb the line:

observe Category, Blog, User, Article, Page, Categorization, Comment, Trackback

About recent news, Matijs van Zuijlen has joined the Typo core team.

Thanks a lot to the Typo core team, Fred, Cyril and Matijs, for their excellent work and also for their extremely reactive support.

Posted in | no comments | Tags , , , , , | atom

Testing the Sphere related content widget

Posted by Harry Seldon on December 28, 2008

About social widgets, notice also that I have added the Sphere related content widget. This widget will show you external content related to the article you just read. Logically, you will find this widget in the “Read also” section below.
There are 2 reasons why I installed this widget. First is: some of you, dear readers, are coming here through Sphere. That is how I heard of it. Secondly, I like the name. It is related to ThinkoSphere, isn’t it ? However, I am only trying out the widget so do not hesitate to leave a comment to tell me what you think about this widget and the other ones. My impressions so far are that it slows down your blog but that is working correctly even if sometimes you really wonder why the hell this is meant to be related to your content !

Posted in | 3 comments | Tags , | atom

How to add social bookmarking features to your (Typo) blog

Posted by Harry Seldon on December 28, 2008

As you can see below I have added the social bookmarks buttons at the bottom of each article. The buttons are for the following sites.

The links will direct you to their widget page.

The code to add these buttons is:

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
<a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;">
<img src="http://static.delicious.com/img/delicious.small.gif" height="50" width="50" alt="Delicious" /></a>
<script type="text/javascript" src="http://www.reddit.com/button.js?t=3"></script>
<script language="javascript" src="http://widgets.dzone.com/widgets/zoneit.js"></script> 
<a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://harryseldon.thinkosphere.com">
  <img src="http://harryseldon.thinkosphere.com/files/technorati.jpeg" alt="Add to Technorati Favorites" height="50" width="50" /></a>
<a href="javascript:location.href='http://slashdot.org/slashdot-it.pl?op=basic&amp;url='+encodeURIComponent(location.href)">
  <img src="http://harryseldon.thinkosphere.com/files/slashdot.jpeg" alt="Slashdot" border="0" height="50" width="50"></a>

Notice that the one for technorati is special. I have not found exactly what I wanted. It favorites the blog itself not only the article. Therefore, this part of the code is not suitable for your blog ! You need to adapt it. For the other links they should work as such on your blog.

If your blog engine is Typo simply add the previous code to /themes/your_theme/views/articles/read.html.erb, typically after the line :

<%= render :partial => 'article', :object => @article %>

And you which social bookmarking websites do you use ?

Posted in | no comments | Tags , , , , , , , | atom

Search

Navigate


Recent Comments

Recent Posts

Tags

actuators aircraft atc blog chaos chaos_theory charts control controllers controls crisis economy finance flight fractals git gnc gs guidance linux mandelbrot marketing navigation ns ofc on pilot rails ruby sas scs sensors statistics systems techcrunch thinkosphere tutorial typo ubuntu wifi

Categories

Archives

Syndicate


Sponsor