Archive for the 'Linux' Category

Rewriting the WPG2 URL

I’m sick and tired of the new WPG2 plugin for Wordpress forcing me to use the embedded gallery page. Sure, nowadays you can configure it to look identical to the actual gallery, but that doesn’t satisfy me. Since my gallery is on another virtual domain (gallery.fredrikbostrom.net as opposed to blog.fredrikbostrom.net) I want the images in my Wordpress sidebar to link to a page where the URL tells me that I’ve moved away from the blog and am now viewing the gallery. WPG2 version 3.x doesn’t do this, so I decided to fix it myself (yet again a case of “if you want something done, do it yourself).

Continue reading ‘Rewriting the WPG2 URL’

Goodbye Amarok – welcome mpd

I just discovered the perfect solution to one of my biggest problems in recent memory, i.e. controlling playback of my music playing on my Home Entertainment Computer. It’s called mpd and I love it. I love it I love it I love it I love it. Why didn’t anyone tell me about this earlier? It lets me remote control music playback on my entertainment machine from virtually any device in my flat. Well, I don’t think there’s an mpd client for coffee brewers yet, but still.

Continue reading ‘Goodbye Amarok – welcome mpd’

Exporting iCal events from the Library to Google Calendar

As I mentioned earlier, my MacBook broke down and went for surgery. It has now been discharged to my workplace with a clean install, but since I’m currently enjoying my last 1.5 months of vacation before I quit the job, I can’t be bothered to start using it again before I definitely have to hand it over to my successor.

The unclean exit of my Mac usage process has resulted in at least one problem so far. I was happily using iCal to schedule events and remember what has happened and what is going to happen (my calendar has always been an extension of my own memory). Before I sent my Mac away, I wasn’t so smart as to export all events into calendar-specific .ics files. On the other hand, I wasn’t even able to do so since the only backups I got was through single user mode. So I decided to export my calendar events myself and start using Google Calendar instead.

Continue reading ‘Exporting iCal events from the Library to Google Calendar’

WPG2 fuck-up

I just upgraded my Wordpress along with all my active plugins, and apparently the WPG2 plugin has broken my blog. When trying to read a full blog post, you are instead redirected to my gallery’s front page.

I’ll try to fix the problem asap.

Some eggdrop tcl scripts

Since I began using the IRC about 3-4 years ago, I’ve come around to write a couple of scripts for my bot. They’re still not really stable nor user friendly, but they do what they’re supposed to. If I’ve got time and motivation, I might continue the development at some point.

One is a simple “battle/vote” script, that takes a set of candidates as argument and “calculates” the winner. The outcome is displayed in percent. You can battle anything: Batman vs Penguin, bananas vs mangos, youtube vs work vs coffee break. But if you throw in Chuck Norris in the fight, he’ll always win.

The other is a reminder script that someone actually might find useful. It can be set to remind anyone of anything at any time (not in the past, though). The time syntax is really liberal, you can tell it to remind you on a specific date and time or in a relative time in the future (like “5 hours”). You can also ask the script to show all active reminders and cancel reminders.

You can find them on the Projects page.