A place for opinions and notes of a valibuk.

Screencast On Linux

Tagged with: — ondrej at 4:51 pm on Saturday, May 19, 2007

The Ruby on Rails community has an interesting motto: Show, don’t tell. It is really worth to follow this idea, especially for tutorials or application pages. I usually look for links as Screenshots, Screencast or Demo on such pages — firstly you would like to see what a photo gallery looks like and then you will read instructions how to install it or how to change the background colour…

One of the mentioned presentations is a screencast. (Shortly: A record of everything what happened on your desktop (or its part) — window changes, keystrokes and mouse movements.)

How to create a screencast on Linux? There are applications such as xvidcap, vnc2swf, Istanbul and recordMyDesktop.

(There is more where this came from … )

Ostrava On Rails

Tagged with: — ondrej at 9:27 pm on Monday, May 14, 2007

Ruby 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 sa dozvedel o Ruby On Rails konferencii v Ostrave, ktorá sa koná 22 a 23 júna. Dúfam, že sa mi podarí nájsť si čas a zájdem tam. Konečne sa niečo deje, hoc máme ešte stále ďaleko od zrazov RubyOnRails-istov v každom väčšom meste :)

Ostrava on Rails

Keď tak premýšlam, bol by záujem o niečo také v Bratislave?

Sound Recording With Intel High Definition Audio On Dell Latitude D820 & Gentoo

Tagged with: — ondrej at 1:08 pm on Friday, March 23, 2007

Larry the CowThe Dell latitude D820 notebook with the Intel High Definition Audio sound card (snd_hda_intel) has only one jack for microphone and line in inputs. The outcome of this feature was, that only the internal microphone input worked on Linux :)

It was a problem for a longer time, there was a possibility improve — to set the position_fix option, but it never worked for me.

Fortunately, I found an excellent guideline for Debian, where this problem is solved :) Let’s adopt the instructions for Gentoo.

(There is more where this came from … )


Tagged with: — ondrej at 1:42 pm on Saturday, March 10, 2007

I would like to have this thing, indeed. It is cute, handsome, perfect, …, you can change its cover…. it can be your alarm… with a nice mp3 ogg… it can display slashdot or digg entries or google calendar events.. it can show photos from flicker… etc.

And it is open! You can extend or change it functionality. I mean no h4cking.. you are supported to do so :) Btw. it runs on Linux :) (I do not know more details.) The company behind it chosen a different strategy then big players in this segment: Philips, Apple or mobile phone producers as Nokia.

Unfortunately, you cannot buy it now — should be available in spring 2007 (although on same pages you can find information about beginning of this year). I keep my fingers crossed :)

A few links:
(There is more where this came from … )

Generating PDF With Another Encoding

Tagged with: — ondrej at 12:42 am on Thursday, March 8, 2007

Ruby on Rails A PDF document is a favourite way how to display and store a view on data, sometimes called as a report. Of course, your Ruby On Rails application can display data in a very nice form, but definitively a PDF document is a way how to store a report. Actually, it is one of the most wanted ways.

There is a nice page How to Generate PDF in Ruby on Rails that describes different frameworks for generating a PDF document in RoR.

Everything seems be fine, shiny… But did you try to generate PDF with a different encoding then ISO-8859-1? Well, maybe you know, maybe not, but there are also another languages and some of them use also special small funny waves or lines under or above (sometimes also on the sides of) a letter. Experts may call them acute, wedge or umlaut. But in the computer world, we can simply call them: complications.

So, are you a lucky person that should to put to a report words like čučoriedka?
(There is more where this came from … )

WordPress 2.1 And Blogroll

Tagged with: — ondrej at 11:55 pm on Sunday, February 4, 2007

Today I upgraded to a newer version of WordPress 2.1. And my theme, based on the Dixie Belle theme, showed an error in the sidebar:

  1. WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
  2. SELECT cat_id, cat_name FROM

(There is more where this came from … )

How To Handle Model In Module?

Tagged with: — ondrej at 10:53 pm on Sunday, February 4, 2007

Ruby on RailsThe number of models in your Ruby on Rails application is growing and one day you will get a brilliant idea.. Let’s put them to modules (that is to different subdirectories in the modules directory). Well, I had this day some weeks ago and, honestly, it is not a good idea… Helpers and tools in RoR, that work without any problems and manual changes when models do not use modules, will require some manual changes to work.

(There is more where this came from … )

One Model With acts_as_list and acts_as_tree

Tagged with: — ondrej at 8:49 pm on Sunday, February 4, 2007

Ruby on Rails Ruby on Rails provides nice ways to create a list (acts_as_list), that is to keep order of items, and to create a tree (acts_as_tree), that is to organise items with parent–children relationships. But what to do, if you need both functionalities at once?

My model has name Outline and it holds one textual information.

(There is more where this came from … )

Rails, Capistrano, Mongrel and Apache (with SSL) on Gentoo

Tagged with: — ondrej at 2:25 am on Monday, January 8, 2007

Ruby on Rails
There is a happy occasion in the development of an application — deployment. Users will use it, you will receive (hopefully) some money, there will be some bugs.. well, maybe not so happy occasion.. ;>
In most situations you will have to repeat a deployment process several times (bug fixes, new features, etc.). Maybe the process is not very complicated, but an automation will minimise possible mistakes such as typos or omitted commands.
Fortunately, there is a nice tool for Ruby on Rails applications — Capistrano.

Larry the CowNow we know about a tool to automate the deployment of an application, but we need to deploy our application to a production environment — I decided for the combination of Mongrel and Apache.

…and everything runs on Gentoo :)

Let’s start — here is my short howto:
(There is more where this came from … )

« Previous Page