Archive for the 'Programming/Technology' Category

Rhythmbox 0.11.0 with new style Last.fm support for Gentoo

Wednesday, June 6th, 2007

This is something I’ve wanted for quite some time: the new style Last.fm plugin takes Last.fm integration to Rhythmbox. Download here. You can install it by following these steps:
1. Add PORTDIR_OVERLAY=”/usr/local/portage/” to your make.conf
2. Run ‘mkdir -p /usr/local/portage’
3. Download the ebuild package from the link above and unpack it: tar xvjf new-style-lastfm-ebuild.tar.bz2 -C /usr/local/portage/
4. Emerging rhythmbox as you normally would.

And that should be it. Also, as the author of the patch writes, remember to only have one of the Last.fm plugins enabled at any time.

Migrating from LiU mail to e-GO

Monday, May 28th, 2007

The university where I study has decided to switch from it’s own mail system to e-GO, more oftenly referenced to as Google Apps. Although the full (forced) migration won’t take place until october, you can choose to migrate now. However the migration isn’t fully automated, your old emails won’t be imported to the new system automatically. Therefore I decided to describe how I did to migrate.

First log in to the student portal. Then use the menu to go to Settings >> e-GO. Set a password and then click the activation button.
Before you start with the next part make sure that your account is activated.

Now that your account is activated the next (and final) task is to import all your old emails. For this you’ll need two things: an email client that supports imap/pop3, and can export messages to mbox format, and Google GMail Loader (GML). I used evolution for the mail client. As for GML, if you’re on linux you can probably find it in your package mangager, and if you’re on windows just download the binary from the site.
Now you have to export all the mails. In evolution this is done by selecting all the mails in a folder, right-clicking on them and selecting “Save as…”. When you’ve saved all your folders fire up GML.
Now you need setup GML before you import your messages. Start with setting the SMTP server to one listed here. Then set the your email address to [you]@migrate.student.liu.se. DO NOT set “Message Type” to “Mail I sent”, because if you do those mails will be shown as sent by [you]@migrate.student.liu.se and not [you]@student.liu.se, and will therefore not show up in Sent Mail.
Lastly set the email file to one of those that you exported earlier and press “Send To GMail”. Wait, and then repeat for each of the files that you exported.
When done you can log in to e-GO and verify that you’ve got all the mails, and don’t worry if there’s a few less then you uploaded, this is because of GMail’s “converstation” feature.

There are some downsides with this method:
1. The timestamps of the mails will be set to the time when you uploaded them.
2. Sent mails will show upp in both Sent mail and Inbox.

At least to me those are minor issues, that you can live with.

Site redesign

Thursday, May 24th, 2007

http://ryara.net has got a new fresh dark on light design, and also a long needed resize of the logo (it’s smaller now). And thanks to the robust skeleton I used when I first wrote the site it wasn’t that much work. The main reason for the redesign was to get a working system for adding projects to the site, so in the following weeks I’ll add some projects to the site ;)

“Unified” networking driver

Tuesday, April 17th, 2007

Not long ago I when I was iritated because µtorrent’s UPnP port mapping wasn’t working when Hamachi is installed, I got an idea - which probably is stupid or crazy for one reason or another, but whatever. The idea is that instead of letting applications themselves communicate via the network interfaces themselves, a “unified” one could be provided, instead they speak with “unified interface” which then decides the best route for the packages (the “nearest” or fastest one). It would also make switching from one network interface to another - if you for example want to go from wireless to wired while still keeping all your connections alive. This would also make the local ip to always be the same, seen from applications, which I believe could be a good thing.
This is (in at least some ways) similiar to using a VPN, but without some of the drawbacks (though with some others instead, I guess).
So, at the moment, this seems like a good idea to me - but it could just as well be the opposite.

Information

Thursday, February 22nd, 2007

It’s all about information.
Streamlining the consumption and personal incorporation of information.

Where will it all end?

New server

Wednesday, January 10th, 2007

I have just finished installing gentoo on my second server. Hopefully I will soon be able too move this site and all the others I’m hosting to it. Soon is in this case defined as when I’ve installed all the needed software (e.g. apache, mysql, mail server and so on).
When done things will hopefully work a bit smoother thanks to the better hardware (A P3 at 1GHz as opposed to a Celeron at 435Mhz).

On a side note I might add that there seems to be a bug in the init scripts that come with the current gentoo base system (it cannot find the dhcp client even though it is installed), but an upgrade of the baselayout package (emerge -uav baselayout) fixes it.

Managed windows API with .NET (C#)

Monday, September 18th, 2006

Recently I decided to make a taskbarlike application for my second monitor, and as usal I decided to write it in C#. Soon I found out however, that I would need to import functions directly from the windows API to be able to get a list of all top level windows. This was made through a callback function to which you also had to supply a pointer to the control the windows’ info should be added to as an argument. This is a very unflexible way to do it, so I naturally was very happy when I found a solution to my problem: A managed implementation of the windows API functions, and it even comes with an acceptable license (LGPL).

Managed Windows API can be found here.

Bash scripts to the people (swedish umlaut removal, saumlfix.sh)

Monday, August 7th, 2006

As I got a request to write a script that replace all åäö characters with aao in all file/directory names in a directory, so I did that. And since I did, I could just as well post it here.
Usage:
chmod +x saumlfix.sh
./saumlfix.sh /path/to/directory

Please note that you must include a trailing slash, else it won’t work.
This should be considered version 1.0, and I doubt there will be any more, unless I find any new features to implement, or bugs to fix.

Download: saumlfix.sh

Antivirus - A necessary evil

Friday, July 28th, 2006

Today, with spyware, viruses and their friends circulating everywhere you only have two choices: getting an antivirus software or getting infected, and for the majority of us go for the first. However, most companies who produce antivirus today seems to have missed something very important. Yes, you want to have a computer free of malware, but you don’t want the software that makes it stay that way impact on performance. I’ve seen far too many examples of antivirus that has excessive CPU usage when you’re copying files or extracting large archives. Among these are: McAfee, Panda, F-secure, Norton; many of the major antivirus vendors. The only one that I’ve found so far that suits this simple need is NOD32, which I’m quite happy with though it’s GUI lacks some features. Another feature that I miss in some of them is the option to exclude certain files and folders (The only one I can remeber missing this is Panda). I think the antivirus companies should focus more on the purpose of their software (Doing it’s job in the bakground without being noticed) instead of eyecandy which there’s quite a lot of in most antvirus products today.

First entry, yay!

Wednesday, April 26th, 2006

Well, now that I got all this set up I should probably write something too, and not only for that reason…

Anyways theres not much to get all worked up for today, not much different from any other day. Except some small things of course ;). For example I happend to stumble over a post by someone who is working on making a StarCraft “clone” (using Blizzards resources) in C# (mono). Pretty interesting I say. From the screencaps it looks quite nice, but sadly I haven’t got the build he provided working in windows, so I haven’t been able to see myself how it looks like. Take a look here if you’re interested.
And let’s hope Blizzard doesn’t close down the project ;).

Talking of Blizzard; I’m trying to start playing WoW actively again, and maybe get my shaman up to level 60. Hopefully I will last long enough this time to do it, instead of doing other things (nothing, anyone?). Oh well…

And to those who read all this; I hope you got something out from reading it, and hopefully any coming entries will have some more content than this one ;)