home icon contact icon rss icon

Textmode

tools I use

Finally: Passenger/mod_rails for Nginx!

I was really glad to finally read the news that Passenger 2.2.0 now supports my favorite webserver nginx too.

I always wanted to get rid of the somehow apache monster, which is an overkill in some scenarios (imho).

Nginx has a very easy configuration and everything I need.

If you want to test passenger with nginx it’s as simple as:


sudo gem install passenger
sudo passenger-install-nginx-module

# edit the default config:
sudo vi /opt/nginx/conf/nginx.conf

# start nginx
sudo /opt/nginx/sbin/nginx

There is also a Peepcode Screencast explaining the steps.

I’m happy :)

Mailbox sidebar for Mutt

I always found the default mailbox handling of mutt a little complicated, since it was missing an overview of folders on the main screen.

Mutt-Ng solved this by introducing a sidebar to list all your mailboxes, including a new/old mail count. However this didn’t last very long and the mutt-ng development stopped unfortunately.

I didn’t look at the possibilities regarding this issue for quite a while, since I had a mailbox status list included in my Windowmanager, however, I tried to integrate it into mutt again last week.

Fortunately the sidebar has been extracted and is now available as a patch: Mutt sidebar (folder list) patch

And for all the lazy people, there is also a debian package called mutt-patched which includes the sidebar among other useul additions.

Now I’m using the following, very nice, setup:

Ruby 1.9.1 and Rails fails - at least according to Google..

Google seems to know something about the new Ruby 1.9.1 release regarding Ruby on Rails:

The question is, does Google suggest “fails” as a correction for “rails” because the word is similar – or because the combination is typed in a lot? :)

Piwik - the best website statistics system

I created multiple sites during the last few weeks, and wondered what’s the best website statistics solution to use with them.

My requirements are:

  • API/XML Export (I’m collecting the statistics in a central application)
  • Realtime (almost)
  • all the metrics I usually need (popular pages, referrer sites, entry pages, etc)

As mentioned here before, I used Clicky for a while, and I have to say it’s one of the best systems I know. Unfortunately the free edition is quite limited (regarding my needs): No API, Limited Sites and Tracking. However, I still use it on this and another site.

I then came across GoingUP which is quite nice too and has a free API. But again it was limited to a maximum number of visitors/sites. So I had to move on ..

I’m now using Piwik which is by far the best website statistics system I know.

It aims to be an open source version of Google Analytics:

Piwik is PHP and MySQL based, but that shouldn’t be a problem if you have a usual webserver somewhere.

You can then track multiple (remote) sites by including a short snippet. Piwik also has a very nice API featuring different output formats like XML, JSon, HTML etc and even a very nice Plugin System (if you like to develop in PHP) :)

Give it a try, it has a nice installation Routine and is up in a minute.

Rails and Merb unite

If you did not already read it, there are really cool christmas news on the Ruby on Rails Blog

The Merb Framework – the highly modified framework initially based on/inspired by the rails core and made to improve speed, concurrency and a small footprint – will be merged into “Rails 3.0”.

Let’s look at the Merb feature list to see what this means:

Merb is..

  • ORM-agnostic (through plugins)
  • JavaScript library agnostic (through plugins)
  • template language agnostic (through plugins)
  • thread safe (+ multiple file uploads)
  • simple and optimized core without sacrificing functionality
  • improvements

what I especially like is the modularity of Merb, compared to Rails

This is a rough overview of what Rails 3.0 will look like, having the Merb features:

  • Optionally a minimum and full featured core
  • A lot of performance improvements
  • Framework agnosticism (JS, ORM, template and testing level)
  • A better, more stable API (eg. for plugins)

When will we get Rails 3.0?

I guess this is very hard to predict :) but the goal is to have at least a Beta version ready for RailsConf 2009 in Las Vegas

I totally concur with the post on the ROR Weblog, Rails 3.0 will kick ass!

Seo extensions for Opera

I was looking for some Seo extensions/plugins for my favourite browser, Opera.

This is what I found:

Seo for Opera

Seo for Opera is basically a port of the Seo for Firefox extension to opera. It enhances Google and Yahoo search results by adding additional information to each returned page.

As far as I saw it is not maintained, and sometimes unstable, but it seems to work well.

For detailed Features see Seo for Firefox.

Seobar

Seobar is a Opera userscript that can be used directly on the site in question. It adds an additional layer with information about the site you are viewing.

The information contains:

  • Alexa Traffic Rank
  • Google Page Rank
  • Yandex CY
  • DMOZ
  • Yahoo! Directory
  • Yandex.Directory
  • Rambler’s Top100
  • Google backlinks/pages
  • Yahoo backlinks/pages
  • MSN backlinks/pages
  • Yandex backlinks/pages

It also adds title/description for some results.

Here is an image of the layer, displaying backlinks:

Visualization of Feeds - FeedVis

Data visualization is really interesting, and there are a lot of new, web-based tools coming up in the datamine sector.

I came across FeedVis recently.

FeedVis allows to visualize data from feeds, which can be divided into feed- or time-subsets.

The data is presented in a very nice, graphical way. For each word, some additional information is provided:

  • Summaries
  • Headlines
  • Word Frequency in content
  • Frequency Change (Trend)

Quite cool to play around with, and looking much better than the usual tag clounds :)

FeedVis is available for download

Shell: Deleting files with exclusion

How do you delete a bunch of files, while excluding specific matches?

For example, all files that are no jpeg images.

General way


ls -I "*.jpg"|xargs rm

ZSH, negate the pattern:


setopt extended_glob
rm ^*.jpg

Google Friend Connect and Facebook Connect

Two interesting tools to play around with, released almost at the same time:

Google Friend Connect

Google Friend Connect let’s webmasters add a social layer to their site – without any programming effort. The only thing you have to do is include the functionality in your markup.

Based on widgets it enables visitors to “sign up” for sites using Friend Connect, using a variety of authentication mechanisms:

  • Google
  • Yahoo
  • AIM
  • OpenID

Once signed up, you get the full functionality of Google Friend Connect.

This includes:

  • Interaction with other visitors (making friends, shoutbox)
  • Interaction on the site (sharing media, posting comments, playing games, etc)
  • Invite Contacts to join the site too

An example (featured by Google) is billboardforthepeople.com

Google Friend Connect is a very general approach, trying to cover a wide area. Users can interact without really being in an existing social network (like Facebook, etc).

The only thing I missed when looking at Friend Connect for the first time, is a list or gallery of the available widgets. Please drop a comment if you know if something like this exists.

Facebook Connect

Facebook Connect on the other side, enables developers to integrate the Facebook functionality into other sites.

The main features here are:

  • Trusted authentication (using facebook user credentials)
  • Real identity (integrate visitors facebook identities into your site)
  • Friend linking (let visitors find facebook friends on your site)
  • Dynamic privacy (include visitor information and privacy settings)
  • Social distribution (allow visitors to share information and actions)

As you can see Facebook Connect is a bit more specific, the orientation here is towards developers that want to integrate Facebook functionalty. I think this is a great tool, not only in combination with existing Facebook applications.

therunaround is an example they provide.

Frustriation with Linux Console Newsreaders

Okay, currently I’m using Snownews as my main newsreader for RSS feeds. Yes, RSS, not Atom because Snownews is one of the rare feedreaders that does not support Atom feeds.

Although people keep saying that this is no problem because there is a cool extension named atom2rss I have to ask myself a question:

This extension exists for quite a while, why don’t they simply integrate support for Atom Feeds?

Besides that, I tried using this extension, which is in fact a filter based on xsltproc (...) which still fails. I know most people might argue that this is Open Source Software, which is of course right, but that doesn’t mean I’ve got the time to finish every piece of incomplete, non-functioning software I come across.

This will probably lead most people to something like “you don’t have to use it, do you?”. And that’s right, I’m using it because it’s the only textbased feedreader for linux I know that has the following features:

  • VIM Keybindings (or configurable keybindings)
  • Category Support
  • and as mentioned, is no X11 application

But I’m frustrated by the missing atom support, and it obviously often misinterpretes the date in a feed.

I don’t want a discussion wether or not this critique is appropriate, or is based on some bugged version, my question is:

Can anyone suggest a textbased feedreader with the above features that supports Atom AND RSS?

I tried raggle, canto and nrss, but they didn’t not satisfy me, so I’m still using snownews for rss, and canto for atom – which sucks.

Edit: Using canto now, which is now almost perfect for my needs.