valibuk.net

A place for opinions and notes of a valibuk.

Ruby on Rails, Capistrano, Mongrel and nginx on Gentoo

Tagged with: — ondrej at 1:25 am on Thursday, August 30, 2007

Ruby on Rails A few months ago I wrote quite popular :) manual how to install and use RoR, Capistrano and Mongrel with Apache on Gentoo. Things changed a little as the time goes and after some experiences with the nginx server on a Slicehost slice, I decided to write an updated manual and to use the nginx server instead of the Apache HTTP Server. Let’s start :)

A deployment process should be straightforward and automatic as much as possible. The main reason is that this process will be repeated many times and omitted or wrong steps usually cause hey-what-are-you-doing-the-site-does-not-work calls or e-mails from your customers. 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 nginx.

…and everything runs on Gentoo :)

Here is my short howto:
(There is more where this came from … )

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 … )

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 … )

Slow CD / DVD Burning on Dell D820

Tagged with: — ondrej at 9:53 pm on Wednesday, December 27, 2006

Larry the CowI burned a DVD on my laptop, but it took ages :( The speed was between 0.5 – 1.3x; should be 8x. Arrrgh…
I was not able to enable DMA for the writer (TS-L632D). Fortunately I found a page with a solution.
(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 … )

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 … )

Switching Network Configurations

Tagged with: — ondrej at 10:54 pm on Monday, September 25, 2006

Larry the CowI use my notebook mainly on two places: work and home. Each of this places has different network configurations — at work I have a fixed IP, at home I have a DHCP server.

Actually there is a very nice application for changing network configurations (or, if you like, profiles) — QuickSwitch (emerge quickswitch).
(There is more where this came from … )

Clicking Sound of Hard Drive on Dell Notebook

Tagged with: — ondrej at 1:05 am on Sunday, September 24, 2006

Arrrrgh… It was like a torture! The harddrive in an only-few-days-old notebook (Dell Latitude D820) was producing an annoying clicking sound.

Click… 10 seconds…. CLICK…. 9 seconds…. CLICK
(There is more where this came from … )

Gentoo on Dell Latitude D820

Tagged with: — ondrej at 11:23 pm on Saturday, September 23, 2006

Larry the Cow Hurrah :) This week week I got a new notebook. Yeah, it took one month (meanwhile I was reading the Programming Ruby book, so it was quite short month; it is a nice book, I can only recommend it ;).

But back to the notebook. I installed Gentoo on it and I wrote a short howto.

Broken Notebook

Tagged with: — ondrej at 1:39 am on Thursday, August 17, 2006

My notebook… well, actually it is a company notebook, but I have used it for two and half years, so… my :) notebook is broken.
It starts for a few seconds, then it restarts and freezes… Arrrrrgh…

It is.. was an Acer notebook (TravelMate 800), the cover was falling a part ;), but inside it was fine and I was really satisfied with it (dvd burner, 1gb ram, etc.). Ah, yeah, labels of keys were disappearing, so it was quite difficult for anybody else to distinguish between Ctrl, Alt, Win and Fn keys :)
(There is more where this came from … )

Next Page »