Rhotoalbum 0.8

A new version of Rhotoalbum, a simple but powerful photo album generator written in Ruby, has been released. The version 0.8 contains a number of features (well, after two years) like RSS support (try with cooliris), options per album, pagination, cool thumbnail effects for photos and album covers and improved album cover managing. The project web page [...]

Command Line Options Parsing in Ruby

One of the most common ways how to control a command line application is to use options, e.g. almost every command line application would understand -h or --help or /? (common in the MS-DOS world) as a request to show some instruction. Ruby (but also other programming languages such as Java) has a basic support for [...]

Access Flickr with Ruby and Flickraw

Flickr is a well known site for sharing photos and it is one of the most popular sites that published their services and allow to use them freely. It is not necessary to work on a photo uploader, photo printing site or a mashup solution to become an user of the services. Sometimes it is interesting [...]

Domain Specific Languages in Ruby

It is probably every developer’s dream to create a programming language. It is a complex and difficult task, so it will remain just an unfulfilled dream for many. But there is a chance to create something simpler - a domain specific language (DSL). A language, that covers a specific (and limited) domain. Ruby helps here a lot [...]

JSSh (Firefox 3.0) with Optional Port Number

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: [...]

require_gem ‘activerecord’

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: TEXT [Show Styled Code]: undefined method `require_gem' for main:Object (NoMethodError) TEXT [Show Plain Code]: undefined method `require_gem’ for main:Object (NoMethodError) The corresponding source code was: Ruby [Show Styled Code]: require 'rubygems' require_gem [...]

Ostrava on Rails - Moja Prezentácia

Téma lokalizácie a viacerých jazykov nepatrí medzi najzaujímavejšie :), hoc je potrebná v naších podmienkach lebo: RoR je len a len po anglicky naše trhy su malé - pre získanie viacerých zákaznikov treba prekročiť jazykové “hranice” Prezentáciu som snažil vytvoriť ako manuál - na čo treba myslieť a čo treba spraviť. Súčasťou boli ukážky (ktoré väčšinou aj fungovali [...]

Ostrava on Rails - Sobota

Cesta na Ostravu prebehla hladko, a keďže som sa vyhýbal plateným cestám v Čechách :), dostal som sa do malebnej časti medzi Frídkom-Místkom a Ostravou (išiel som cez Makov). Pekné miesta :) Žiaľ piatkového programu som sa nemohol zúčastniť (podľa slov ostatných bol zaujímavý a kvalitný), takže len pár slov o sobote: (pre mňa) najzaujímavejšia [...]

Ostrava On Rails - Talk / Prezentácia

I will give a talk about localisation (localization, l10n) and internationalisation (internationalization, i18n) in Ruby on Rails applications on the Ostrava on Rails conference on 23. June in Ostrava, Czech republic. I am looking forward to meet you there :) Slides and examples will be available here after the conference, probably on Sunday. Budem mať prednášku [...]

Ostrava On Rails

With a great pleasure I read about a Ruby On Rails conference in Ostrava, Czech Republic on 22 - 23 June. Time permitted, I would like to be there. Well, at last something is happening, although we still do not have meetings of Ruby on Rails fans in every bigger city :) S potešením som [...]