BenV's notes

Archive for August, 2009

Printing and cups

by on Aug.18, 2009, under Software

We tried to do something that seems fairly simple. “Print out these tickets for HAR2009“, where we went last weekend and had a great time 🙂
The tickets were delivered to me by mail in PDF format. Sounds easy huh?
Note that this story was written the day before we went there, just not finished, so timing might be a bit awkward. Here are the details. (continue reading…)

1 Comment :, , more...

Another wordpress security update?

by on Aug.12, 2009, under Software

Yet another security issue….
“Prutsers”. Oh well, at least they fixed it.

As for the upgrade, once again I had to manually increase their timeout to more than 60 seconds.
Just for reference:
Edit wp-admin/includes/file.php with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to 300:

$response = wp_remote_get($url, array('timeout' => 300));

Leave a Comment :, , more...

Record Companies? Ahahahaha, morons.

by on Aug.11, 2009, under Boring, Morons

These guys are so stupid, they never stop to amuse me.
Look what they’re coming up with now…. A new digital format.
What is it with these guys and being completely out of whack? Why on earth would people want yet another format? (probably crippled too).
MP3 files work fine for most, put them in a nice little directory structure, add a picture file and a lyrics file, and you have what they propose. Only better since it doesn’t need a special decoder/player.

Record companies: please die. Now.

Leave a Comment more...

(n)Curses magic part 2: magic!

by on Aug.08, 2009, under Boring, Fun, Software

So while messing around with some perl/curses stuff I got fancy with colors and soon found out about the limited support of colors in terminals and therefore also Curses.
Anyway, I made this little “fractal plasma” thingy with it, see if you can get it running 😉
It’s not really a fractal plasma, so don’t get technical on that, but it describes it best I think.

To get it running, open up your favorite terminal that supports 256 colors and allows palette changing – I found both xterm and urxvt to work.
Make sure your TERM variable is set to something that allows this, for instance in urxvt:

$ export TERM=rxvt-256color
$ ./

or this worked for me with xterm:

$ export TERM=xterm-256color
$ ./

Something like this is the result:

[Download not found]


1 Comment :, , more...

Slackware timezone fuckup

by on Aug.07, 2009, under Software

Messing around on one of my machines I checked a timestamp on a file…. and noticed “Huh, didn’t I just touch it?”.
ls told me the file was about 12 hours old. Interesting, since it was just created.

# date
Fri Aug 7 10:08:09 CDT 2009

What the…. CDT ? When did we move? 😉

# ls -la /etc/*time*
lrwxrwxrwx 1 root root 36 2008-03-14 04:42 /etc/localtime -> /usr/share/zoneinfo/Europe/Amsterdam

Well, not recently… that’s for sure. (continue reading…)

Leave a Comment :, more...

(n)Curses magic: are you a magician?

by on Aug.07, 2009, under Morons, Software

Hej readers,

I decided to work on making a bit more acceptable in terms of usability and looks. The reason for this is that the dialog program doesn’t exactly do what I want.
That is, it works…. but that’s pretty much all I can say about it. It doesn’t allow me to make a comined checkbox/menu thing that I want for my configure options part. Next to that it’s tedious to fork and parse its output all the time, and let’s not even get started about looks and input issues.
So I figured: hmm, dialog is made in ncurses, perl has a Curses lib…. let’s play! (continue reading…)

Leave a Comment :, , , more...

HTOP – top replacement

by on Aug.05, 2009, under Software

I just ran into this cute ‘top’ replacement called htop, thought I’d let you know.
If you don’t know what top is, you probably shouldn’t be here in the first place… 😉

After playing with it for a bit it looks like this on my machine (click for fullsize image):
Click for bigger image

Things I like about it:

  • Fast responsive interface, and the good thing is that it feels a lot better than the original top does.
  • Interface is intuitive, also makes good use of available space. Showing a ‘sort’ menu and closing it again after a choice is made, I like.
  • Easy to nice/kill stuff without having to type pids like with top. Simply “browse” to your process and KILL KILL KILL!!!! 😉
  • Cute features like bar/graph/led mode for your CPU etc.

And so far I have found no “bad” things about it yet, but migth still come 😉
Only possibly bad thing could be the ncurses requirement, but that shouldn’t be an issue.
Needless to say it worked fine with my slackbuild script.

Try it out and see if you like it yourself.

Leave a Comment more...

Pokemon OS, it just works! ™

by on Aug.05, 2009, under Software

Or… not. Oh, the pokemon reference comes from the brilliant webcomic XKCD.

Usually I have little problems getting stuff to work on it, but as hardware gets older and support gets worse thing get more interesting.
First things first: I have no issues with ubuntu, they’re doing great work. In fact, the machine worked fine after installation, except for I can’t live with 800×600, so I wanted a better video driver.
Needless to say that means NON OPEN SOURCE GARBAGE FROM NVIDIA (ATI is just as bad btw). Although their binary driver usually ‘works’, you’re royally screwed if your system doesn’t meet their requirements. (continue reading…)

Leave a Comment :, , , , , more...

Update day!

by on Aug.04, 2009, under Morons, Software

It seems to be update day today….

I felt like updating my shit today. Somehow I enjoy updates so I do it whenever I see interesting stuff.
So glancing through the slackware changelog I noticed a new Apache2 version (2.2.12 with a bunch of security updates). Meh, not my favorite piece of garbage to upgrade, but local upgrades were easy enough and also the remote (slackware 11, custom builds) ones went without hickups. (continue reading…)

1 Comment :, , , more...


  • 2018 (1)
  • 2016 (1)
  • 2015 (7)
  • 2014 (4)
  • 2013 (11)
  • 2012 (27)
  • 2011 (26)
  • 2010 (25)
  • 2009 (68)