• Happy Coding

Archive for February, 2009

Is it possible to fall in love with a browser?

I say YES. I’ve definitely fallen in love with the new Safari 4.0 browser.

Safari 4.0

Ok, for online development tasks i like Firefox with the nice Firebug and the other Plugins. But for personal use i am using Safari.

Clusty. My new favourite search engine.

It’s a shame that i didn’t recognize this thing of beauty before. :)

Clusty

Is Yahoo buying Tumblr?

There are different voices out there:

We hear Yahoo is in talks to buy Tumblr, a blogging startup run by 22-year-old David Karp for “low-to-mid eight figures” — which would translate to a small fortune for the New York entrepreneur. (read more @ valleywag.gawker.com)

[...] David denied his story and Owen said, “He also told me Tumblr’s buying Yahoo, so I don’t know whether we should believe his denial, either.” (read more @ businessinsider.com)

cannot open shared object file: No such file or directory

I’ve gotten this error after i’ve installed ImageMagick (from source) and RMagick (using gem) on my Debian system

libMagickCore.so.2: cannot open shared object file: No such file or directory – /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick2.so

To get rid of this error i executed

ldconfig /usr/local/lib

manual of the day… change hostname on Debian

Change hostname on Debian

I wanted to change the hostname on my Debian Etch installation. The following worked:

sudo vi /etc/hostname

Change the hostname and save file and then

sudo /etc/init.d/hostname.sh start

Backup a subversion repository

Dumping it into a file (e.g. repository.dump)

svnadmin dump /path/to/repository > repository.dump

Loading the dumped file back into a repository

svnadmin load /path/to/repository < repository.dump

Y2K38

The year 2038 problem (also known as “Unix Millennium bug”, or “Y2K38″ by analogy to the Y2K problem) may cause some computer software to fail before or in the year 2038. The problem affects all software and systems that store system time as a signed 32-bit integer, and interpret this number as the number of seconds since 00:00:00 January 1, 1970.
(see Wikipedia)

datetime_select seconds

I’ve just looked for the possibility to include the seconds into Rails’ DateHelper function datetime_select. After i haven’t found it in the Rails API documentation i tried to add an extra parameter include_seconds, set it to true and voilà … it worked like a charm:

<%= datetime_select("post", "written_on", :start_year => 1995, :include_seconds => true) %>

manual of the day… install Erlang and Mochiweb under Ubuntu

install Erlang and Mochiweb under Ubuntu

First of all we install necessary components and start with the Erlang installation:

sudo apt-get build-dep erlang
sudo apt-get install java-gcj-compat java-gcj-compat-dev

Then we download the source of Erlang (newest versions are available here: http://erlang.org/download.html). I took the R12B-5 release.

wget http://erlang.org/download/otp_src_R12B-5.tar.gz

Extract

tar xfvz otp_src_R12B-5.tar.gz

Configure (choose your favorite directory for the Erlang installation, here: /usr/local/erlang), build and install it:

cd otp_src_R12B-5
./configure --prefix=/usr/local/erlang
sudo make
sudo make install

Now the Mochiweb part

We checkout the newest Mochiweb source using subversion (if not installed yet. Install subversion using sudo apt-get install subversion).

svn checkout http://mochiweb.googlecode.com/svn/trunk/ mochiweb
cd mochiweb
sudo make