KDE 4.1 in Windows XP SP3

I had a little problem when I tried to install KDE 4.1b1 under Windows XP SP3, but was eventually able to fix it by installing the Microsoft Virtual C++ 2005 SP1 redistributable instead of the MSVC++ 2005 one that came with KDE 4.

After that it was amazing to see the KDE applications work pretty well natively under windows. And some KDE software is just really, really good and better than anything else you can get to run on windows.

Opera Link Disaster

Well, what was I going to do?

I tried to recover what was left. Many folders and files were just randomly spread across the Opera link directory where I at first couldn't find them, instead of deleted.

Then I tried to ease, but online editing is hardly possible. Trying to sync really deleted most of the bookmarks this time. At least there wasn't as much to sift through.

So I put everything in the trash and picked out the good stuff, put it into new folder and basically started over. Now I will backup my bookmarks and pray this won't happen again.

You really need to work on that sync code, guys at Opera!

The Incredible Dangers of the Buggy Opera Link

In Opera 9.5 a pretty cool feature is introduced. At least that what I thought at first. Opera link synchronizes your bookmarks between an online account and your computer and your Opera mobile.

The problem is only that it's written so incredibly bad, that it's extremely dangerous to use. You must definitely make a backup of all your bookmarks before even thinking about using Opera link.

I had a database of about 550 bookmarks. They were neatly organized in the last few months and of course many were new. Because in the past Opera link often duplicated my bookmark folders, I created a new account to sync to.

The problem is I was too damn stupid to make a backup before using Opera link. And now the worst possible thing happened.

Opera did not use the newly created account I told it to use. It did not backup my bookmarks. It "synced" to the old account. It deleted all my bookmarks from the last 6 months forever. And it replaced them with the mess that had existed before.

I'm indefinitely frustrated right now, more than I have been in a very, very, very long time.

I think I will switch my browser.

Understanding Directory Rights in Linux

Directory rights in Linux can be pretty confusing. Unfortunately many chmod howtos don't explain them properly. So here's a really quick guide. You should first know how to handle chmod (man chmod) and what the rwx flags normally mean: read-write-execute. For directories they have slightly different functions which I will now explain.

If you use ls -l it would display for example drwx--srwt someuser somegroup(...).
The first letter of the permission string is always d and stands for directory. Than come the letters for the user (rwx), the group (--s) and others, meaning everyone who is not the user of the group (rwt).

r--
If you have only reading rights you can do nothing (chmod a+r-wx mydir). If you're the owner you can list the contents it seems.

r-x
If you have reading and execute rights (chmod a-w+rx), you can see cd into the directory and list its files. But you can not create any files.

-w-
If you have only writing rights, you can not do anything with it.

-wx
If you have writing and execute rights, you can create new files, but not list the directory's contents. But you can still access the files, if you know their name and have permissions for that.

rws (with x) or rwS (without x)
If the directory's group permission is set to super (chmod g+s), new files have are owned by the same group as the directory.

rwt or rwT(without x)
If the text bit is set (chmod o+t), files in the directory can only be deleted by their owner, not the group. But they can still be overwritten, if the files permissions allow that. So it's no real protection.

This means that usually there's little sense in a directory that's r-- or -w-, as that let's you do hardly anything. You should usually set the directory to r-x, -wx or rwx.

Important: A user needs to have at least execute (x) rights to all directories above the directory in order to be able to do anything in it.

Be aware that the handling is usually on the careful side, so if you are the user and your permissions are --- but the group's permissions are rwx and you're in the group as well, you won't be able to access the file or directory. Because the more restrictive rights for the user will be used in favour of the permissions of the group you are in.

Also notice that in the example commands, e.g. chmod a+r-wx, I usually set the permissions for a, which stands for all and means user, group and others. This is just to make sure you can reproduce what I have written here. Of course you should carefully select what the rights for the owner(o), the group(g) and the others(o) should be: E.g. chmod u=rwx g=rx o-rwx mydir.

Also check out Wikipedia on file permissions as well as these articles by LinuxExposed for files and directories.

The Internet

I just wanted to try out something I found on the DVD of my computer magazine. I don't know why, but I just went to the website to download it. The problem is just that I'm in Australia and the download limit for this month is already exceeded and thus the bandwidth throttled to 6kb/s.

And after I had downloaded half of the file from the Internet it occured to me: Why not copy it from the DVD? And so I did. Crazy how you can get accustomized to downloading everything online...

Pc speaker as sound card

The new driver snd-pcsp in the linux kernel, starting at 2.6.26, lets you use your pc speaker as normal sound card, e.g with good old mplayer:

mplayer -ao alsa:device=hw=pcsp

The sound is of course pretty bad, but also amazingly good when you think about the fact that it's only made beeping. ;-)

Undelete Files on the ext3 filesystem - Finally!

ext3undel finally delivers what was long thought to be pretty much impossible, even by the developers who wrote ext3: You can undelete files which were deleted in an ext3 filesystem.

The funny part is that many people are not yet aware of this and you may thus still make interesting findings in partition images, e.g. the popular VMware images.

Check out the article at Linux.com for more.

Fork KDE?!

I believe a fork of KDE 4 is not only a bad choice and almost impossible. It's also silly. Because the basis of KDE4 gives you so much freedom to customize everything on the desktop that it would be much easier and more sensible to simply recreate a KDE3 look&feel for KDE4.

Now let's see if the people bringing the complaints will deliver this or just keep shouting and complaining about it.

Look at the well written plasma libraries and you will know what I mean. KDE4 is a huge step and it's just amazing I could install the great vocabulary trainer parley unter windows with just a few clicks. This means you write your application with the comfort of KDE4 but you can use it under Windows, OS X, Linux and possibly other operating systems.

Check out this groklaw article for more.

Plasma Clocks after Suspend to Ram

Plasma is programmed with great care for saving resources. For example clocks only occupy the processor once a minute(when the displayed time changes). This is working well as I could just find out when I resumed my computer. The clock was still at the time from 2 hours ago when I suspended. Until about 20 seconds later, with a change in the minute, the time was displayed correctly again. This confirms how well this already works in plasma with KDE 4.1b2.

The answer to life, the universe and everything

Google seems to have assimilated Douglas Adams' work, because it knows the answer to life, the universe and everything. Just google for

"answer to life, the universe and everything"

and you shall get it. More, as always, on Wikipedia.

Many Applets in KDE Playground trunk are broken

Unfortunately many of the applets do not compile. At least not on my Kubuntu 8.04 system with KDE 4.1b2. If you want to try out a few, checkout one of these: calendar charselect darkstat embed-win keyboardLeds previewer timer toggle-compositing wifi-signal-strength.

I especially like wifi-signal-strenght: Easy but nice and rather pretty. Get it with

svn co svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/wifi-signal-strength

And compile it with:

cd wifi-signal-strength
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/kde4/
make

You may have to replace with PREFIX with the one from your distribution.

Run Applications Faster in Wine

If you run wine like this

env WINEDEBUG=-all wine

it's a bit faster, because the debugging is turned off.

Intel Wireless Card not working in Ubuntu 8.04

If you've got problems with your intel wireless card, esp. in Ubuntu 8.04, try restarting hal:

sudo /etc/init.d/hal restart

This might fix that wireless networks don't show up as well as other problems. Try the key combination for enabling/disabling the wireless card in your notebook again afterwards.

NX Remote Control Software.

I'm a big fan of Nomachine NX. It's a great remote control software for X which is so efficient you can actually run it over a modem connection. It has comfortable clients for Windows, Mac OS and of course Linux and others. The technology is great and the main library is published under the GPL.

It only needs one free port - the SSH port 22. And you can get your free server for Linux or Solaris(limited to two users). The two users which can use NX are chosen when you first connect as a certain user. If you want to free one user slot, just delele the user from NX:

/usr/NX/bin/nxserver --userdel user123

Another cool thing: Instead of the whole desktop environment you can also just run a single program. That makes it really easy to run a Linux program in a Windows environment. It supports printing over cups and has (rudimentary) sound and video support.

And this is not paid advertisement, I actually really like the software. And I think it's great the small company publish the library under the GPL. Of course you have to pay for enterprise level tools. But hey, they got to make money as well. ;)

µTorrent with Wine under Linux

uTorrent, or µTorrent is a very small and leightweight but full-featured bittorrent client. Unfortunately it's for Windows only. But fortunately it works great in wine.

Here's a little script to let you pass .torrent files comfortably over command line. I've got the same type of script for WordViewer and other software. Hopefully this will sometime soon by handled by wine directly.

#!/bin/sh

WINE="env WINEDEBUG=-all wine"
UTORRENT="C:\Programme\uTorrent\uTorrent.exe"

if [ "$@" ]; then arg="z:`echo $@ | sed -e 's/\//\\\\/g'`"; fi

echo $arg > ~/logs/tmp

if [ "$@" ];
then
$WINE "$UTORRENT" "$arg" >> /dev/null 2>> /dev/null &
else
$WINE "$UTORRENT" >> /dev/null 2>> /dev/null &
fi


Wine is called without debugging to save more resources. The argument is converted to a pathname that wine can handle better ("/" are converted to "\"). You probably need to adjust the path where uTorrent is saved.

Fork KDE?!

Practical-tech.com suggests KDE should be forked because he doesn't like the KDE4.1 prerelease so far. It's easy to come along, look at a prerelease and say: "Nah, don't like it." But you must be pretty crazy to go further and say: If I don't like it, noone will. So it should be forked.

It's funny because the things he criticizes most are the ones I cherish most in KDE 4.1.