I have been evaluating a solution for offsite backup to Amazon S3. The software I have been using is JungleDisk, I went for the pre payed version without online web access, which I felt was out of scope for my needs. This since what I have access to my files over the Internet via VPN.

So far I have 25GB of data on S3, the majority is photos, the rest are documents and software projects. I’ve choosen to only include data uniq to me. Since there is absolutly no need to backup the system drive with the operating system and application, these are easier to reinstall, it will also be a better result since the restore is happening because of hardware failure.

Apart from the initial cost of $20 for JungleDisk, and the high transfer costs to amazon the first months. My montly cost have now stabalized at about $7 per month. Which is cheap in my eyes for what I’m getting, a highly encrypted offsite storage of my important files. The only thing that could be better was if I could use a opensource software instead of jungledisk, that would feel better since then I wouldn’t be dependant on a company for future updates. I could then do them myself if all else failed.

Recently I have had trouble with an raid in my main computer. I haven’t gotten an definitive answer for what the faults are. I say faults since it’s the same problem with two identical disks. Both has a delayed write problem in windows, even through one is failing ten times as much as the other one.

This trouble has renewed my interest in better and safer storage solution.

As it looks now is that I’m going to end up with a solution based on zfs. And then share this storage via samba, nfs and so on.

What I still has to solve is backup, I would like an offsite solution.

Today I was on a JUG lecture about PowerMock. At first glance it looks as the savior for testing legacy code. But that’s just what it is, it only looks like it will work in a real world case. The only case where it will do good work, is when you want to add test coverage on some legacy code, so that you can do a complicted refactoring to improve the design.
I say complicated refactoring because simple refactorings are built in to our IDE’s, and they have their own tests that proves that they work.

If you are thinking that adding PowerMock to your project will automatically break the downward spiral of the code base, without setting strict guidelines on its use cases you will increase the rate of code base decline.

To conclude PowerMock is valid as a tool to be used as a refactoring aid to help with opening up a class for proper testing, nothing more.

PowerMock

hello_world

Welcome to my blog, here am I going to publish my thoughts that I want to share with the world. Mainly posts are going to be in English, but I will probably also publish posts in Swedish.

/K

Republishing a post from my old jroller blog.

After searching the net for an several hours i found the solution on a german blog, I decided to publish the english translation.

The Problem:

When running cvsd-buildroot there is a error message in the output:

Creating /var/lib/cvsd/dev devices... FAILED (unable to use devices)

If you ignore the error an try to access the CVS Repository you get the folowing error “open /dev/null failed” – even if the jail has sufficent rights.

I found the solution on a german blog, who found the solution on a korean blog entry.

Solution:

/etc/fstab

devfs /var/lib/cvsd/dev devfs rw 0 0

/etc/rc.conf
devfs_rulesets="/etc/defaults/devfs.rules /etc/devfs.rules"
devfs_set_rulesets="/var/lib/cvsd/dev=devfsrules_cvsd_jail"

/etc/devfs.rules
[devfsrules_cvsd_jail=10]
add hide
add path null unhide
add path zero unhide

[root@garfield ~]# mount /var/lib/cvsd/dev

German blog entry