aka (赤) irssi theme

Posted by curson on May 12, 2008


aka (赤)
Originally uploaded by curson

I’ve finally decided to publish my irssi IRC client theme. It’s kind of a coming out, I’ve been tuning this theme to my liking for the past 5-6 years, bits by bits, slowly adjusting to what I prefer.
I really hope someone would find this interesting and appealing as his/her own theme. I’ve sent an email to the irssi team in order for it to be added on the main gallery of the irssi.org website, which would be quite c00l for an irssi lover as I am.

Any eventual feedback is of course very welcome.
The file is here: aka.theme. Just put it in .irssi/ and load it by issuing the command /set theme aka in Irssi.
Enjoy! ;)


Share!

Test post with vimpress 2

Posted by curson on October 15, 2007

Let’s try it, and if it works, is pure geek-happiness!
I’m playing with this, and it appears to do what it is supposed to, definitely
something that’s going to change completly my way of blogging on Wordpress.
It’s a very simple & nice script to post to a Wordpress blog using VIM which happens to be my
favourite text editor.
So far so good… I’m leaving in less than 2 hours for a 8 days trip to Japan and India (work, of course!) so I will test (and eventually post something more about this) when I’ll be back next Monday.


Share!

Opera and flash video 2

Posted by curson on August 07, 2007

I’ve been struggling quite a lot lately with my beloved Opera browser and flash video (read: YouTube and so on).
Even if the configuration of the flash player/plugin on my Gentoo looked perfectly working (Firefox was playing flash video flawlessly…), I was unable to enjoy them with Opera, which is my main browser.
Well, looking at the fact that I am in Tokyo enjoying all the pressure of my JAL training, I didn’t actually looked deeply into the problem trying to find a solution, until this afternoon, when straight back from the training center I don’t know why, but I found unbearably annoying to have to open another browser just to watch a video… my geek side took the command and a quick jump into Gentoo’s Forum gave me all I needed to solve the problem (refer here for the relevant post!).

Apparently, was just a matter of re-linking the plugin:

# ln -s /opt/netscape/plugins/flashplayer.xpt
/opt/opera/lib/opera/plugins/flashplayer.xpt
# ln -s /opt/netscape/plugins/libflashplayer.so
/opt/opera/lib/opera/plugins/libflashplayer.so

plus changing the /opt/netscape plugin path in Opera Preferences Downloads to the /opt/opera path (2 Mime types) works. In a new setup Opera takes the right path automatically, when the symlinks are made first. So only putting these 2 symlinks in the ebuild would be an (ugly) temporary fix…

Needless to say, now everything is working!
I’m missing following the OpenSource community (I really don’t have time even to keep the pace with all the news around…), but it’s good to see it’s still helpful as ever! ;)


Share!

Scared 2

Posted by curson on March 18, 2007

Lately I started to notice minor problems and weird behaviour with the way gaim was dealing with my friends’ avatars on MSN. Ok, I know it’s not something vital, but sometimes a little of eye candy is what you need… anyway: I noticed that with people that have already upgraded to Windows Live Messenger (the evolution of MSN messenger? O_o) gaim got crazy, messing up the avatar and pratically not displaying any of them anymore for those contacts. I was about as sure as I’m still called Federico that the problem wasn’t directly gaim-related, but that the cause was probably somewhere in a new way the new impressive (yes, sarcasm is in excess in this post tonight…) MSN client of mother Microsoft has chosen to manage the avatars… but hey, I was still stuck with gaim-2.0.0_beta3-r2, and was worth a try updating.
Gosh, mommy alwyas tells me it’s better to stay with what you have, if it’s working. But I’m not used to listen to much to what she tells anyway, so I emerged the last beta6 available in portage. It’s uglier than how it was before, but seems definitely more stable and less buggy than the previous beta version, which is good.

But then the problems came… apparently having updated gaim resulted in a now “broken” library linking for the d-bus sub-system. ARGH! (someone could explain to me what exactly d-bus is on my system for, after all? It’s always a pain messing with it and its dependencies). A whole bunch of program were by then complaining with the same message:

error while loading shared libraries: libdbus-1.so.2: cannot open shared object file: No such file or directory

and of course not starting at all.
After a couple of re-emerging of some of them, hoping for a re-linking of the missing library or the installation of it in a new slot, I found out I was still in the same situation as above.
What to do? Of course, google it.
This was te relevant result. Following this post and doing:

sudo ln -s /usr/lib/libdbus-1.so.3 /usr/lib/libdbus-1.so.2

solved the problem just fine, even revdep-rebuil stopped complaining. It probably isn’t the cleanest solution around, but it’s working just fine.

Sometimes my Gentoo just scares me (not that this won’t make me upgrade again the next time I’d feel the itch :D).


Share!

Webcomics

Posted by curson on November 25, 2006

Don’t know how many of you out there are webcomics readers like me, but since I’m used to follow quite a large number of them, I desperately love a thing like dailystrip, that strips for me a list of links to favourites comics on a local HTML page I point my browser to each day (the command for downloading/creating the page runs from cron).

Since the project seems to be quite unmaintained, the .def list of all strips and webcomics is starting to get outdated, and it’s starting to miss some new comics that are spawning out there.
Today I found myself lacking a proper strip entry for Cyanide and Happiness, that since today I happened to be reading by RSS feed.

I opened a terminal, I wrote down a couple of lines, and here it comes working and ready to be shared with the world (but I’m sure the world is actually quite un-interested in it… anyway) an addition to my .def file for this particular comic:

strip explosm
name Cyanide and Happyness
homepage http://www.explosm.net/comics
type search
searchpattern <img .+?src=”(http://www.explosm.net/db/files/Comics/.+?/.+?png)”
provides latest
end

It seems to work flawlessly, any feedback on it is well accepted :)


Share!

Trying wmii 2

Posted by curson on November 22, 2006

I find myself quite comfortable using fluxbox, my one and only WM since I started messing around with GNU/Linux almost 5 years ago, but I recently stuble upon some comments about this very minimal (yet apparently incredibly powerful) (d)WM (where “d” stands for dynamic). It’s wmii.

I am curious and geek enough for being always looking for new things to experiment with, and I haven’t lost the occasion! It’s actually (right now) running on my Belial, and I must confess I’m quite impressed by its flexibility and it’s power. Seems like it’s 100% customizable, and only the status bar scriptable in bash is something that could conquer me forever.
I configured it in a very simple way from now (I’m just playing with it since yesterday evening…), but the possibilities seem quite huge, and I’ll be sure to explore it in the proper way.

But still, I think I won’t leave Fluxbox. Not now.
Why?
Essentially for two great reason:

  • wmii lacks something that’s actually quite essential for me under fluxbox: the ability to recognize a window and remember its workspace (tag in wmii) and main settings (dimensions, position, whatever…),
  • fluxbox has been my friend for a long time, while wmii needs to be studied more, I need to do an usability study on it.

Right now I will use Belial as a test bed for getting acquainted with wmii and I will see what is going to come out of my use of it. It seems my kind of cake, but I really need to get past the “new-toy” thing to see if it can suite me.

[In the meanwhile, here are the two scripts I’m using in my wmii-3/status to monitor the battery status and to fetch some WiFi infomation. The first is not from me, the second indeed is.]


Share!

video2ipod

Posted by curson on October 13, 2006

As some of you may know (or may not) I’m the happy owner of a Video iPod G5 (30 GB).
Support under Linux is well known, and let me say that I really find myself more confident in using programs like GTKPod & GPixPod rather than that big fat elephant that is iTunes (yes, I tried it on windows… I promise to not boot that again. Really!). They work, and they work well, but something that is still missing is the ability to import (and thus to convert) video files to the shiny iPoddy which seems to have quite difficoult tastes when dealing with video, speaking of video and audio codecs.

But mplayer (and mencoder) is a powerful thing, and you’re using an intelligent Operative System: get advantage of that.
Someone (not me) did exactly that, and wrote down a simple script to do all the work [*].
Great.

Now, this works well, it actually stress my CPU quite bad, but that’s mainly because Haldir is a very old folk. Just remember a few Gentoo tips to correctly setup your system to work with video2ipod (or whatever you’d like to call it).

  • Be sure to emerge mplayer with encoder and aac support, thus using something like USE="aac encoder" emerge -a win32codecs mplayer. Of course you’ll need all the other codecs too, but that’s a fundamental part for the script to work: it needs aac audio codecs up and running.
  • Remember to emerge the relative codec too: emerge -a faad2.
  • Remember to activate the flag for “aac codecs” when emerging ffmpeg too: USE="aac" emerge -a ffmpeg

That’s good, you should be done with a system able to run the script an to convert your .avi, .mpg, .wmv... file to the .mp4 format you need for your iPod. Then upload them via GTKPod as if they were musical files, and that’s it: a fashion and cool way to discharge the battery of your Apple friend ;)))

[*]: The original script page is no longer available. Here you can find a local copy of the script hosted on my server. If you’re using Gentoo, this is a good place where where to start looking for info on the converting process.


Share!

News from the western front

Posted by curson on October 10, 2006

Gentoo 2006.1 installed on Haldir. - stop -
Two hours and half to emerge x11-base/xorg-x11. - stop -
After a day of emerging, configuring and messing around: Haldir is 1/2 up & running and booting in only 15 seconds. - stop -

Outstanding! - stop -
More news will follow.- stop -


Share!

Oh Lord…

Posted by curson on September 05, 2006

…give us our daily Kernel recompile.

It has been one hell of a day! At least informatically speaking.
The baby has arrived as planned when I was in Maldives last week: it’s new, it’s shiny, it’s amazing and it already has a name (Belial). I’ve always been fascinated by that character from Angel Sanctuary, and it was about time to gift him (her?) by giving his (her? :p) name to one of my geeky toy (as you all by now know, I name everything: PCs, iPod, mobile phone, digital camera…).

Anyway, I was speaking about recompiling the Linux kernel.
Well, it all started this morning with a weird feeling powering up my Haldir, probably was because he was sensing the vicinity of the new Thinkpad, but was behaving not completely like he usually does. There was something wrong, and while I still don’t know how or when it happens, something had gone messy with the ACPI daemon. Finding the problem was easy: /proc/acpi had disappeared somehow, and /etc/rc.d/rc.acpid was indeed failing in launching the daemon. After a little of looking around (commonly called: debugging) I was still unable to load the proper module, and so I promptly pointed my browser to kernel.org and I then took my chance to finally play a little with the new (by my point of view) 2.6.x series kernel.
Both my machines are were running a 2.4.29 version, without any problems since quite some months ago and I didn’t plan to change this, looking mainly at the fact that I’m planning to switch distro to debian for these two as much as I’m planning to install it on the Thinkpad, but the mood was right and the occasion was just there: so why not taking it and play a little?

I end up recompiling the 2.6.17.11 kernel (the last -stable) about 4 or 5 times on Haldir and I believe the fun it’s not over yet. We need to optimize!
It’s just like with Pringles: “Once you POP, the fun doesn’t stop!“. Switching to a newer version of the Kernel made a strong wish of “new things” to grow in me. The Thinkpad is going to be the biggest part of the experience (I’m really looking forward to configuring it ^_^) but I think I’ll have fun playing with my old Haldir and Apophis too!

It’s a luck I’ve 3 more full days OFF at home, before leaving for La Havana (Cuba).


Share!

Little script

Posted by curson on August 20, 2006

My mail configuration relies on SpamBouncer to deal with spam problem. It works well, and I usually keep spam under control, with very little of false positives and what should be blocked… blocked.
Thanks to Antonio Fragola and his Procmail section (warning: it’s all in Italian) of an How-To he wrote I discovered the joy of using a little Perl script in order to strip the FROM: field of incoming spam messages and add it to a .alwaysblock file used by SpamBouncer as a black list.
The addysort file is simple:

#!/usr/bin/perl -wn
# Extract email addres from the "From:" field
unless (/\]+)/, "\n"; }

and to use it all that you need to do is save it, make it executable, and create a macro (or whatever your mail client has…) to call for it.
In my .muttrc file for mutt I call it with ESC-K with these binds:

macro index "\ek" "| formail -x From: | addysort >> ~/mail/.pm/black.lst\n"
macro pager "\ek" "| formail -x From: | addysort >> ~/mail/.pm/black.lst\n"

Of course being ~/mail/.pm/black.lst my blacklist file.

But let’s come to the point: the addresses are listed fully in the black.lst, which means they’re in the form something@somewere.whatever. This of course will help blocking all further email from that address, but with spam most of the time you’ll end up having addresses like:

ashdgfjg@ispam.net
djgfhsdgfsd@ispam.net
truty47@ispam.net

Same domain with different faked username.
What I usually have done manually in the past year was to edit the file in vim, delete the username@ part with a regexp and save it. Of course that is something that works well, but that is also quite annoying.
So yesterday I came out with a small bash script that uses a few (actually three) perl commands to clean up my black.lst file as I like it: only a list of domains.xx[¹].

#!/bin/bash
#
# Check and clean black.lst file from SpamBouncer.

# Files locations.
BL=/home/curson/mail/.pm/black.lst
BLTEMP=/home/curson/mail/.pm/black.lst.temp

# This will strip the username from the address leaving
# only the domain.
perl -i -p -e 's/[0-9A-Za-z_\.]*@//gi' $BL

# This will strip domain names that could have been
# inserted into the black list erroneously due to faked
# FROM: fields. They're just examples of some of the
# common fake I get, and which I'd still like to receive
# mail from ;)
perl -i -p -e 's/^gmail\.com\n|^yahoo.+\n|^email\.it\n//gi' $BL

# This will strip out all double recurrencies in the file.
# It's 100% unuseful to have the same domain listed
# twice.
perl -ne 'print unless $a{$_}++' $BL > $BLTEMP | mv $BLTEMP $BL

# Now let's do a backup of the black.lst file.
cp $BL /home/curson/mail/.pm/black.lst.backup

Save it, make it executable and write a small cron job and live happy! :)

Continue reading…


Share!

Opera 9.00 is out!

Posted by curson on July 20, 2006

*yay* a new version of Opera.
That’s something quite amusing in this hot melting day in Milan.
Right now I can’t see all the improvements from the last beta release, but I’m sure I won’t be disappointed.
First note that comes in my mind is that it seems to be quite faster than Firefox in loading webpages, but that could be just me being excited for the new version!

Anyway, go and download it now for the real browse experience :D

bye


Share!

Opera 9.0b2

Posted by curson on May 31, 2006

Ok, I’m writing this just about 5-6 hours after the upgrading of my favourite browser to the latest beta version.
By now, all I can say is that seems perfect to me. Of course I need to try it longer but the improvements from the previous version I was using (8.5) are quite clear and very appreciated. It seems faster, stable, and very well done, and just to say something it solved I problem with mouse selection I was experiencing with Wordpress 2.0 post editor. That’s enough for being happy for today.

Anyway, if you’re brave enough not to be scared by betas give it a try, I think it’s definitely worth it. Enjoy it! :)


Share!

Close
E-mail It