valibuk.net

A place for opinions and notes of a valibuk.

Preparing photos for a web photo album

Tagged with: — ondrej at 12:02 am on Monday, October 30, 2006

A few tips how to prepare photos for a web photo album:

  1. Make a copy of the picture that you would like to have on web. The following steps include instructions that will irreversibly change your photos.
  2. (There is more where this came from … )

My best photos / Moje najlepšie fotografie

Tagged with: — ondrej at 11:29 pm on Sunday, October 29, 2006

A few days ago, I added a new “on the top of this page” link to my best photos . I hope you will enjoy them :)

Pred pár dnami som pridal novú linku (na začiatku tejto stránky) na moje najlepšie fotografie. Dúfam, že sa vám budú páčiť :)
(There is more where this came from … )

Ruby, DRb and Gentoo

Tagged with: — ondrej at 5:36 pm on Friday, October 27, 2006

Larry the CowThere can be a problem with the DRb system in Ruby on Gentoo and the IPv6 support.

If an application with DRb does not work and its error message is:

  1. Exception `SocketError’ at /usr/lib/ruby/1.8/drb/drb.rb:840 - getnameinfo: ai_family not supported
  2. /usr/lib/ruby/1.8/drb/drb.rb:840:in `getaddrinfo’: getnameinfo: ai_family not supported (SocketError)

then it is necessary to re-compile the ruby package with the ipv6 support, even you did not compile the IPv6 support into your kernel (or it is compiled as a module but it is not loaded).
(There is more where this came from … )

Distributed Ruby

Tagged with: — ondrej at 5:26 pm on Friday, October 27, 2006

I am creating a prototype of a distributed application written in Ruby. Ruby 1.8 already contains the DRb framework, as a system for a communication of different Ruby processes, and the Rinda system too, as a naming service.
(There is more where this came from … )

New style, Nový štýl

Tagged with: — ondrej at 10:17 am on Sunday, October 22, 2006

Do you enjoy the new style of this blog? :)

Páči sa vám nový štýl tohto blogu? :)

Podpora slovenčiny i s triedením v PostgreSQL a Ruby on Rails

Tagged with: — ondrej at 5:33 pm on Friday, October 13, 2006

Ruby on RailsAk používate PostgreSQL databázu a radi by ste slovenké písmenká i triedenie mali, nasledujúci návod vám k tomu pomôže.

Keďže používam Gentoo distribúciu, uvediem aj kroky potrebné pre úspešné používanie slovenčiny na tejto distribúcii.

A ako posledné si ukážeme, ako to všetko použiť v Ruby on Rails.
(There is more where this came from … )

Bug in Google Maps

Tagged with: — ondrej at 9:41 pm on Wednesday, October 4, 2006

A bug in Google Maps.

Hehe ;)

Removing constraints in migration

Tagged with: — ondrej at 7:44 pm on Wednesday, October 4, 2006

Ruby on RailsWith a migration you can create a table or insert data to a table, also there is a possibility to modify existing tables; from renaming tables to changing the type of a column. And what about constraint such as default value or not null?

Yeah, you can change them too, but I was only successful with adding them — removing them was not possible with standard Rails methods.
(There is more where this came from … )

Observing more fields with AJAX helper and Unicode

Tagged with: — ondrej at 11:01 pm on Monday, October 2, 2006

Ruby on RailsIn my post about using the observe_field helper for observing more fields I used the escape method (on the client side).

I have found out the code does not work correctly with Unicode characters :(
(There is more where this came from … )