“No” to genkdesvn

As many of you already know the KDE team has released a stable version of KDE 4.2. I’ve been running KDE compiled from trunk (genkdesvn) with the latest features and bugs for a half year but now I feel tired of fighting with the bugs and since I don’t report them to KDE team anyway I decided to switch from genkdesvn to the stable 4.2. I just feel I don’t have time for this right now and I need a stable desktop.
Thanks to the KDE team for their wonderful piece of software!! I wish ATI drivers for linux were stable too..

Caveats About Restoring Linux Root Partition From TAR Archive

Recently I had to create a new partition on my laptop’s hdd to install OS X (I wanted to have a dual boot of Gentoo and OS X). I had no free space on the disk so the only way to create a new partition was to shrink the existing root partition with Gentoo. Since it was formatted as JFS and JFS doesn’t allow shrinking I had to back up all the data on the root partition, delete it, create a new (smaller) one and format it as JFS. So the steps were:

  1. Create a backup of the root partition with tar -cvpjf --sparse --one-file-system backup_of_root.tar.bz2 /
    Note
    : only the contents of the root partition will be archived since –one-file-system option is specified (no dev, proc, …) WARNING! If your filesystem is mounted with extended attributes support (see /etc/fstab) and you use programs utilizing this feature (such as SELinux) you shouldn’t use tar since it won’t store any extended attributes. Use sta, pax or cpio
  2. Boot with a live CD and delete the partition as well as create a new one with fdisk
  3. jfs_mkfs /dev/sdaN (where N is the partition number)
  4. Extract the backup with tar -xvpjf  backup_of_root.tar.bz2
  5. Reboot and … a kernel panic :)   On my system it was “Kernel panic – not syncing: Attempted to kill init!”

After a week of kernel debugging, initrd debugging and browsing of forums I have finally found out that init script is missing character files in /dev filesystem: /dev/console and /dev/null. Without these two your Gentoo installation (and some other distributions as well) just won’t boot without telling you why!

So all you need to do to make your restored system boot again are two commands:
mknod /dev/null c 3 1
mknod /dev/console c 5 1

Happy fixing! :)

Bad Crash Of Daniel Albrecht In Kitzbühel

Yesterday Daniel Albrecht landed badly just a hundred meters away of the finish gates in Kitzbühel, Austria on a downhill training course. A serious mistake and a crash that will likely take months to recover. Most likely he just didn’t expect a jump from such a steep track. I’m a fond of skiing and giant slalom/downhill so this topic worries me a lot. The video shows the price of the mistake at 138 km/h..

JFS – My Choice as FS for Gentoo Root Partition

I would like to share my experience with JFS – Journaling File System developer by IBM. While searching for a fast and robust file system for the root partition of my Gentoo installation I noticed that most pick either ext3 or ReiserFS. Both are good FS and I have dealed with both of them. However I wanted something other than that – ReiserFS behaves very good when there are many rather small files on the partition but becomes significantly slower over the time and is not very stable in case of power downs. Moreover as Hans Reiser, the main developer behind ReiserFS, was found guilty of first degree murder in court the development of this FS is under big question. For the reasons stated above I would use ReiserFS for a partition holding web proxy cache – but not for root partition. Ext3 is rather robust too and is selected as default FS in many Linux distribution. However it becomes really slow with many small files located in one directory – ‘ls’ command takes few seconds to complete and God bless you if you run fsck on a large (1 TB) partition since it takes hours to complete.

So I decided to go with JFS though it seemed not many use it. I’ve been using it for 6+ months and so far I haven’t got any problem. On a 100Gb partition fsck takes 10-15 minutes to run. In terms of performance – it seems to be faster than Ext3, especially with Deadline IO scheduler (vs. CFQ selected by default). Very low CPU consumption is also a big plus (vs. Reiser that will eat up to 30% of your CPU on heavy file operations). Deleting of big files (> 1Gb) takes fractions of a second.

I think JFS is much undervalued in the Linux world. The only drawback that I could find is that it seems to be impossible to shrink JFS partition under Linux. However enlarging the filesystem is really easy – all the code is built into the kernel so to enlarge your existing JFS partition (after you’ve enlarged the underlaying partition) you only need to remount it with the ‘resize’ option:

#mount -o remount,resize /home

As easy as this! So far JFS is the filesystem of my choice 8-)

You can see more info about JFS here

Late food? No, thank you

Who doesn’t know how tasty is a piece of cake with an evening tea, or a juicy burger and a  beer with a good movie? As I recently found out it is completely unhealthy!

Fascinated by this article I decided to try to not eat after 8 P.M. I usually go to bed around 00 AM so 8 P.M. seems like a good time to stop eating :) After eight – only a cup of tea or fat free milk.

Yesterday was the first day of the new diet – let see how it turns out!

Late Dinner Is Your Worst Enemy

Late dinner causes serious harm to the body and leads to rapid aging. There are doctors that seriously argue that a good dinner just before going to bed is one of your worst enemies.

According to the scientists there is so called “big biological clock” functioning at the level of your body. The essence of the theory is that the physiological processes in the body are managed by a special department of the brain – hypothalamus. It is in turn manages the work of hypophysis – a special gland which produces many hormones that affect the growth and aging of the body.

We can’t change how our internal organs work by ourselves, which is good – otherwise we could stop the heart beat and die. But for protection against arbitrary decisions we have to pay by having a mechanism of aging.

As we age the sensitivity of the hypothalamus begins to decline. Typically, the starting point for the “time-aging” is the age of 20-25 years. And here the fun begins.

Hypothalamus continues to give commands to the formation of the stress hormone cortisol, sex hormones and hormones responsible for appetite. So, the level of hormones in the blood increases all the time. Actually, there is nothing negative in the presence of the stress hormone. In certain doses it mobilizes the body. Psychologists agree that small stresses are useful rather than harmful. How sex hormones and appetite hormones work is clear without additional explanation. But over time the level of all three groups of hormones in the blood becomes too high and they provoke the aging process. But growth hormones (somatotropnye hormones) that promote the growth of muscles and motor activity, in contrast, begin to decline over the years.

What happens if we don’t eat before going to bed? Evening hunger stimulates formation of growth hormones. When we don’t eat the body begins to save glucose and consumes its own fat. It was proved at least in experiments with athletes who were immersed in a short electrosleep on an empty stomach during the day after which they had experienced increased muscle growth. There is melatonin among the hormones of growth that causes us to fall asleep. But after a heavy meal at night the body doesn’t produce melatonin and we can not fall asleep.

Evening and night (during sleep) hunger stimulates recovery, or if you prefer, the rejuvenation of the body. During the day this process is prevented by food and stresses.

Of course everybody have their own nutrition rules but it is possible to give some general recommendations on a diet that preserves the youth. Just note that children and young people up to 25 years shouldn’t try the diet. And the younger is the child, the closer to the night it should take the food. Evening starvation during the growth of the organism can seriously harm the baby. People with a stomach ulcer and duodenal ulcer shouldn’t try it too.

People older than the average age should not eat later than 4-5 hours before going to bed. It is better to eat food rich on protein in evening (that’s the only right choice for people attending gym), light vegetables and drink fat free milk or green tea. Food rich on carbohydrates is for lunch since carbohydrates provide energy needed within during daytime. It is better to eat fat food for lunch though fat is consumed by the body at night.

The morning should start with a well-balanced breakfast which may include different cereals (especially useful fresh buckwheat), cottage cheese, fresh herbs, fruit and even pasta, but only from wheat. Drink fat free milk or tea. Do not skip breakfast and don’t limit yourself with only a cup of coffee – it promises nothing other than disorders of gastrointestinal tract and reduces the overall activity.

Doctors advise to apply this diet gradually. And if you are consistent then your “great biological clock” will work for you :)
Translated from Utro.ru

The End of New Year Holiday Season

The 2009 New Year holiday season is on its end now and it seems I’ve got enough rest! The holidays in Bukovel (Carpathian mountains) were perfect and brough many positive emotions. I’ve got some very nice and original presents too! :) And finally – I’ve managed to write the first real post for my blog. After 6+ months of paying for hosting and doing nothing with my website that’s quite an achievement, isn’t it? ;)

Come in a few days as I’m going to submit few first useful articles about personal development.