valibuk.net

A place for opinions and notes of a valibuk.

JSSh (Firefox 3.0) with Optional Port Number

Tagged with: — ondrej at 8:15 pm on Sunday, November 9, 2008

One of the ways how to remotely control Firefox is to use the JSSh (JavaScript Shell) plug-in. To successfully install the plug-in, it is necessary to find a suitable version for your Firefox version (1.x, 2.x, 3.x) and platform (Linux, Mac, Win). That is sometimes not so trivial…

Additionally there is a limitation in the plug-in: its communication port number cannot be (easily) changed, so it is not possible to start more JSSh (and Firefox) instances.

First, the actual status is described, later a new version of the JSSh plug-in is provided with examples.

(There is more where this came from … )

Useful Vim Tips

Tagged with: — ondrej at 10:00 am on Friday, June 27, 2008

Vim is my favourite editor. I search for tips from time to time - and there are still nice surprises. After a few years of using it, it is high time to write down my own list of useful tips :)

(There is more where this came from … )

Rhotoalbum 0.6

Tagged with: — ondrej at 3:00 pm on Sunday, June 8, 2008

A new version of Rhotoalbum, a simple but powerful photo album generator written in Ruby, has been released.

The version 0.6 contains a lot of new features such as album statistics (number of photos, number of albums), EXIF support (exposure time, focal length, f-number and camera model), automatic album thumbnail creation from the first album photo, relative links and several bug fixes.

If you would like to know more, please, check the Rhotoalbum page.

require_gem ‘activerecord’

Tagged with: — ondrej at 1:05 am on Tuesday, March 11, 2008

A Ruby application that uses the ActiveRecord library (not a Ruby on Rails application) stopped working for me after an update of Ruby. The error message was:

  1. undefined method `require_gem’ for main:Object (NoMethodError)

The corresponding source code was:

  1. require ‘rubygems’
  2. require_gem ‘activerecord’

(There is more where this came from … )