SvsG source released

September 4th, 2007

Yep, I’ve decided to release the source of the game SvsG that I made together with a classmate quite a long time ago. It’s released under the MIT license, and you can find it here.

I haven’t cleaned up the directories, but it should still be usable (otherwise you could just import the important files into a new project).

It should also be noted that I consider most of the code not to be very well written. But it’s still usable. ;)

Now playing for irssi using Last.fm

August 20th, 2007

You sometimes want announce what music you’re playing on IRC, but when using irssi on a remote server this becomes something of a problem. Therefore I wrote a script for irssi that track info for the currently playing track from last.fm, and prints it to the current channel.

To use the script:
1. Get it and place it in your ~/.irssi/scripts folder.
2. Optionally place a symlink to it in ~/.irssi/scripts/autorun directory to load it automatically when you start irssi.
3. Edit the file and change the $lastfmuser variable to your Last.fm username.
4. Load the script in irssi: /RUN npScriptLastFm.pl
5. You can now use the script by using the command /np

As written in the file itselft it’s distributed under the MIT license.
Hope you’ll find it useful.

Edit: Thanks to Salminen (see comments), the script should now be working, I’ve updated the link so it points to the working version.

Challenge: Last clue

August 20th, 2007

Yes, it’s now time for the last clue, here and it is (the original unenciphered text). The text is from Wikipedia (Credit given where credit is due).

And so, as stated before, getting the cipher key should now be a question of brute force ;)

Challenge: Continued

August 11th, 2007

Seeing that I’ve once again have access to the files related to the challenge, it’s time for the next part.
As promised before I’ve now released the source code of the cipher, and you may aquire it from my projects page.

It should now be at least a little bit easier to take on the challenge, but as said before: if no-one manages to beat it, I’ll post the unencrypted text in one week. And after that it should only be a matter of brute force to beat it ;) .

Good luck!

Challenge: Delay

July 23rd, 2007

As some of you already know, I’ll have to delay the challenge for some time. This is because my laptop’s AC adapter broke, and the only place I had everything related to the challenge was on the laptop.
So you’ll just have to wait a few weeks for the first clue (until I get a replacement for the adapter).

Bypassing Bilddagboken.se’s image protection in Opera

July 16th, 2007

Bilddagboken.se is a swedish site where people can share/show their photos to others (translates to image diary). I’m not an active user, but as I tried I found out that it’s not possible to save an image from the site using right click -> save image - they’ve put a layer above the images filled with a transparent 1×1 pixel image.

At first I tried to bypass it using Opera’s content blocking feature, but though it did remove the filler image, the div containing was still in the way. Therefore I opted to use user javascript to remove it.

If you want to use it you:
1. Download it. (Right click -> Save target as)
2. Put it in it’s own folder.
3. Open Opera’s preferences dialog, and go to Advanced -> Content and click the Manage site preferences button. Then press the Add button in the new window.
4. Enter bilddagboken.se in the site text box, and then go to the Scripting tab. There press the Choose button on the lower left and browse to the folder where you saved the javascript file.
5. Press OK -> Close -> OK, and you’re done.

You should now be able to save images at bilddagboken.se by right clicking them.

The javascript is probably usable in Firefox as well using some addon, but I can’t say for sure as I don’t use it.

Update as of 2008-03-19: The recent redesign of their site makes this script deprecated, as they’ve removed the protection.

A challenge

July 12th, 2007

I’ve constructed a weak cipher and made a sample implementation of it, and now I have a challenge for you: Find the key with which this file has been enciphered. You can find the characters supported by the cipher in this file.

To help you out a bit you’ll also get the sample program which can encipher and decipher text using a specified key. Please note that it’s not intended to reverse engineer the program.

If no-one has reported progress (or success) after one week I’ll post the source code to the librarary, and if there’s still no progress after yet another week I’ll also post the non-enciphered version of the text. Then I’ll wait a month or so untill I post the answer.

I intend to release the library and sample application later, but for now you are not allowed to modify or redistribute them.

Good luck!

Choices unmade

July 10th, 2007

I’m not usually the one to write just to comment stuff that I’ve seen or read, but one of the latest f8d strips really hits the spot.

Flashing taskbar with PuTTY + irssi + screen

June 29th, 2007

As quite many people do, I use to IRC using screen + irssi on my server, which I connect to using PuTTY. A little while ago I went out to find a way to make PuTTY’s taskbar flash when I was hilighted. It wasn’t trivial to find the information on how to do it (it took me some time), so I though I could share it:

In irssi:
/set bell_beeps on
/set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT

And in putty:
Go to Terminal -> Bell in the settings, and set “Taskbar/caption indication on bell” to Flashing or Steady (whichever you prefer).

That should be it, and don’t forget to save the session settings in PuTTY so you don’t have to change them every time you connect ;) .

Rhythmbox 0.11.0 with new style Last.fm support for Gentoo

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.