Kun palvelinta käynnistellään uudelleen jatkuvasti

Helpoin tapa käynnistää irssi uudelleenkäynnistyksen jälkeen on lisätä crontabiin (crontab -e) käsky:

@reboot /usr/bin/screen -d -m irssi

-d -m

Start screen in “detached” mode. This creates a new session but doesn’t attach to it. This is useful for system startup scripts.
Keeping sanity in software updates

I like to keep my software, online and on hard drive, up to date. To accomplish this I use few awesome tools to keep my head clear.

To keep my Apple OS X Applications-folder up to date I use AppFresh, great app that first goes through the apps and widgets and compares the version information to osx.iusethis.com lists.

I look after about 5 wordpress blogs. To keep them all up to date to the latest releases, I don’t download the packages from the website, I use subversion access to keep the software up to date.

The next commands should be run inside bash shell. If you don’t know what that is, you probably shouldn’t do it all by yourself.

To install new blog from the subversion repositories (2.3 to demonstrate):

# svn co http://svn.automattic.com/wordpress/tags/2.3/ .

in the directory where the software should be installed into (remember the dot at the end of the line).

To update to the latest version number (from 2.3 to 2.3.1 like I did yesterday):

# svn sw http://svn.automattic.com/wordpress/tags/2.3.1/

in the same directory where the wp-config.php is, meaning your install directory.

You can just browse to the http://svn.automattic.com/wordpress/tags/ to find out the latest tags.

These few commands inside the bash shell keep my head even more clear. No more mistakes that override everything.

I’ve written about svn before, but for these commands and more I suggest reading “Updating WordPress with Subversion” from the Wordpress Codex. They also explain how to change the default/traditional install to subversion installation.

PHP 101: PHP For the Absolute Beginner »

This area is intended for everyone new to PHP. It opens with a series of informal, entertaining tutorials written by Vikram Vaswani, founder and CEO of Melonfire.

Covers the basics of PHP using easy to follow examples and detailed descriptions what is happening in the code.

Must read to all who want to learn and understand the basics.

Upgrading PEAR on Debian

After trying hard to upgrade PEAR 1.3.2 to latest with the build in upgrade tool

pear upgrade pear

on my own Debian 3.1 (Sarge) I got the following error message so many times I can’t count:

pinion:/# pear upgrade PEAR
downloading PEAR-1.4.11.tgz ...
Starting to download PEAR-1.4.11.tgz (283,272 bytes)
..........................................................done: 283,272 bytes
requires package `PEAR' >= 1.3.3

And

Segmentation fault

I came across this workaround:

pear upgrade http://pear.php.net/get/PEAR-1.3.3.tgz
pear upgrade Archive_Tar
pear upgrade PEAR
pear upgrade-all