Selling cookie info to third-parties is a classic example of you can make money without doing evil.
RSS

Guess-the-google

2005/04/29 filed under /web

Guess-the-google is quite a funny game that shows you twenty images taken from Google's search. The faster you guess the search query, the more points you receive.

Fun for those boring hours!

Update: this game is not fun when you use LiveHTTPHeaders ...

Posted by: B10m | permanent link | comments (0)

Vim with Mozilla Thunderbird

2005/04/27 filed under /linux

At work, I use Mozilla Thunderbird as MUA. I'd rather use mutt but it's not going to work out. So yeah, Thunderbird isn't that bad except for the lack of Vim. But not anymore!

Thanks to the External Editor Extension I can now use my beloved Vim to write messages. How come I haven't found this extension before? According to the changelog, it started at 19 Nov 2004 (with version 0.1.2?).

Finally work is going to be bearable again ;)

Posted by: B10m | permanent link | comments (0)

Vim with Mozilla Thunderbird

2005/04/27 filed under /software

At work, I use Mozilla Thunderbird as MUA. I'd rather use mutt but it's not going to work out. So yeah, Thunderbird isn't that bad except for the lack of Vim. But not anymore!

Thanks to the External Editor Extension I can now use my beloved Vim to write messages. How come I haven't found this extension before? According to the changelog, it started at 19 Nov 2004 (with version 0.1.2?).

Finally work is going to be bearable again ;)

Posted by: B10m | permanent link | comments (0)

Vim is your friend

2005/04/26 filed under /linux

I've switched from PINE to mutt a couple of months ago and got used to it well except for the strip-from-sigdashes-on-reply. I really miss that in mutt, so I went to search for some solution again, when I stumbled on "Using email efficiently". This website could (should?) have been written by me (except for the but HTML is fine part)

After applauding the author, I noted his strip signature solution in Vim:

  map _qs G?^><CR>?^> -- $<CR>d} 

Works like a charm. But there's more. The author also wrote a nice Vim plugin (mainly for MUAs), called uri-ref. This oh-so-handy plugin helps you manage your references in emails. Nice!

Posted by: B10m | permanent link | comments (2)

Vim is your friend

2005/04/26 filed under /software

I've switched from PINE to mutt a couple of months ago and got used to it well except for the strip-from-sigdashes-on-reply. I really miss that in mutt, so I went to search for some solution again, when I stumbled on "Using email efficiently". This website could (should?) have been written by me (except for the but HTML is fine part)

After applauding the author, I noted his strip signature solution in Vim:

  map _qs G?^><CR>?^> -- $<CR>d} 

Works like a charm. But there's more. The author also wrote a nice Vim plugin (mainly for MUAs), called uri-ref. This oh-so-handy plugin helps you manage your references in emails. Nice!

Posted by: B10m | permanent link | comments (0)

Comments RSS feed

2005/04/25 filed under /nanoblogger

Probably only interesting for BOK and myself: comments.rss

This feed will be updated every hour (poor cron) and will display the latest comments found here.

I've hacked it up in Perl and yeah, it probably only works on my system (I've tried to use the blog.conf as much as possible), but here's the source anyways:

  #!/usr/bin/perl

  use strict;
  use XML::RSS::SimpleGen;

  my %config = ReadConfig();

  my $commenturl = "http://menno.b10m.net/cgi-bin/cgicomment.pl?article=archives";
  my $cgicomments = "$config{blog_dir}/cgicomment/comments";
  
  rss_new($config{blog_url}, "$config{blog_title}'s Comments", 
          "Comments for $config{blog_title}" );
  rss_language('en');
  rss_hourly();
    
  open COMMENTS, "<", "$cgicomments/comments.db" 
     or die "Can't open $cgicomments/comments.db: $!";
  my @comments = reverse (<COMMENTS>);
  close COMMENTS;
  
  my ($title, $article);
  for(my $i=0; $i <= 10; $i++) {
     my ($art_id, $com_id) = split(/\|/, $comments[$i]);
     open ART, "<", "$cgicomments/articles.db" 
        or die "Can't open $cgicomments/articles.db: $!";
     while(<ART>) {
        $article = $1 if($_ =~ m/^$art_id\|archives\/(.*).html$/);
        open FH, "<", "$config{blog_dir}/data/$article.txt";
        while(<FH>) {
           if($_ =~ m/^TITLE: (.*)$/) {
               $title = $1;
               last;
           }
        }
     }
     close ART;
  
     my $comment;
     chomp($com_id);
     open WHO, "<", "$cgicomments/$com_id.inf" 
        or die "Can't open INF file ($com_id.inf): $!";
     my $who = (split(/\|/, <WHO>))[0];
     close WHO;
  
     open COMMENT, "<", "$cgicomments/$com_id.msg" 
        or die "Can't open comment ($com_id.msg): $!";
     map { $comment .= $_ } (<COMMENT>);
     close COMMENT;
     rss_item("$commenturl/$article.html#comments&from_rss=$com_id", $title, 
              "\"$who\" wisely pointed out: $comment");
  }
  
  rss_save( '/home/menno/html/blog/comments.rss' ) if(rss_item_count());
  
  ################################################################################
  sub ReadConfig {
     my %config;
     open CF, "<", "$ENV{HOME}/.nb.conf" or die "Can't open $ENV{HOME}/.nb.conf";
     $config{blog_dir} = $1 if(<CF> =~ /BLOG_DIR="([^"]+)"/);
     $config{blog_dir} =~ s/\$HOME/$ENV{HOME}/;
     close CF;
  
     open BC, "<", "$config{blog_dir}/blog.conf" 
        or die "Can't open $config{blog_dir}/blog.conf: $!";
     while(<BC>) {
        next if(/^\s*#/);
        $config{lc($1)} = $2 if(/^([^=]+)="(.*)"$/);
     }
     close BC;
  
     return %config;
  }
Posted by: B10m | permanent link | comments (0)

Disiplin - Anti-Life

2005/04/23 filed under /metal

Ah, Disiplin returns! This album (Anti-Life) is different from the self-titled debut album though. The distorted grunts on the debut, had to make place for "clean" grunts. A sad thing, for I really liked that distorted sound.

After some listening, I must conclude this is another fine album though. Full of militant black metal, Satyricon'esque riffs, and with a great production. General K (now Drakul 218) gives you the feeling he really does want to destroy the cosmos (hence the website http://www.fuckthecosmos.com (currently down))

It also looks like Nattefrost (Carpathian Forest) was sober enough to find his way into the studio to help Disiplin out on a song. His evil hellish voice can be heard on one of the songs.

All in all a decent album full of anti-everything, militant metal.

Label: Moonfog Productions

Posted by: B10m | permanent link | comments (0)

CAPTCHAs gone bad

2005/04/22 filed under /web

Recently, I ranted about annoying things on the web, CAPTCHAs being one of them. Alan Turing would roll over in his grave if he'd seen the horrors of today.

To demonstrate the horrors of CAPTCHAs, let's look at some fine examples. And remember, these tests are supposed to be easy for humans, but hard for machines.

phpclasses.org provides the world with a wonder called veriword. These generated images are so hard to read, that I doubt it's ever going to be useful.
Example:
Veriword Example


Another brilliant coder can be found at ravis.org. This coder comes up with a few solutions, of which the first example is really nice. I just saved these examples from the site, I did not alter anything.
Example:
Ravis.org Example


Let's see the next gem! This one comes from the WordPress Plugins page and is not as bad as others, but still good enough to scare your visitors.
Example:
AuthImage Example


Is there more insanity? Of course! The next example (BaffleText) is even better. Unreadable, but at least the URIs used in the source give help. The full url contains the word "workind" clearly. Great way to throw a spider off ...
Example:
BaffleText Example

There are many many more out in the wild (and for some reason, most of them seem to be written in PHP). These examples should be enough proof not to use this idiotic technique.

Posted by: B10m | permanent link | comments (0)

CAPTCHAs gone bad

2005/04/22 filed under /random_thoughts

Recently, I ranted about annoying things on the web, CAPTCHAs being one of them. Alan Turing would roll over in his grave if he'd seen the horrors of today.

To demonstrate the horrors of CAPTCHAs, let's look at some fine examples. And remember, these tests are supposed to be easy for humans, but hard for machines.

phpclasses.org provides the world with a wonder called veriword. These generated images are so hard to read, that I doubt it's ever going to be useful.
Example:
Veriword Example


Another brilliant coder can be found at ravis.org. This coder comes up with a few solutions, of which the first example is really nice. I just saved these examples from the site, I did not alter anything.
Example:
Ravis.org Example


Let's see the next gem! This one comes from the WordPress Plugins page and is not as bad as others, but still good enough to scare your visitors.
Example:
AuthImage Example


Is there more insanity? Of course! The next example (BaffleText) is even better. Unreadable, but at least the URIs used in the source give help. The full url contains the word "workind" clearly. Great way to throw a spider off ...
Example:
BaffleText Example

There are many many more out in the wild (and for some reason, most of them seem to be written in PHP). These examples should be enough proof not to use this idiotic technique.

Posted by: B10m | permanent link | comments (3)

Glittertind - Til Dovre Faller

2005/04/22 filed under /metal

I'm not too fond of so called Viking metal, but Glittertind is different. This one man's project is more folkish than metal and the songs are just going to stick in your head forever. Always nice to have some cheerful music after hours of depressing black metal.

Just listen to this CD 100 times. After that, you want more. It's addictive!

Label: Karmageddon Media

Posted by: B10m | permanent link | comments (0)

Ribspreader - Congregating The Sick

2005/04/20 filed under /metal

Ribspreader comes forth with a new album. After the demolishing Bolted To The Cross, I awaited the next album.

Unfortunately, I'm disappointed with this new release. Dan Swanö (in what band did he not play?) dropped the instruments and only focused on producing the album. And to be honest, I have heard better productions. The previous album blasted like Bloodbath, but this album lacks that quality production. Less bass, less aggression. This music just needs pounding drums and massive aggression.

All in all, too bad it's not as good as Bolted To The Cross, but not really that bad.

Label: Karmageddon Media

Posted by: B10m | permanent link | comments (0)

Things I hate about websites

2005/04/20 filed under /web

Why is it that website seem to annoy people more and more instead of helping them? Here's a small list of things that really bug me.

  • Captcha
  • useless accounts
  • dynamic content
  • pointless Javascripts

Captcha

Captcha is a technique used too much right now. The word is an acronym for Completely Automated Public Turing test to tell Computers and Humans Apart. It's a test to find out whether you're dealing with a non-blind human or a computer/blind person. Quite annoying.

Useless accounts

Close to every website offers/requires you to sign up for no apparent reason nowadays. Thank god there are ways to counter this annoyances with BugMeNot, Mailinator, DodgeIt and more.

Dynamic content

Is it cool or 1337 to use PHP? Why is everybody using it to generate their content on the fly? Cool, pull your data from a MySQL database. I'm willing to bet that the majority of the PHP sites could function without problems if they used static HTML files. (And no, I don't care at all to not be able to see your server's localtime on your website).

So why waste CPU time and the wonderful Last-Modified HTTP header?

Pointless Javascripts

I've come to understand that Javascript can be handy. If you have a slow connection, it's nice to see client side form validation before the server will respond to you again with errors. But what's this This function has been disabled message when I right click on a page? Does that prevent me from looking at the horribly generated Frontpage source code? Or does it prevent me from looking at stolen Javascripts? Stop it, it's annoying.

Also don't break my back button's function. I do use it, yes, quite often.

I could probably rant on on more topics like useless use of Flash and what not, but I'll save that for later (and for you, so feel free to dump your comments).

Posted by: B10m | permanent link | comments (0)

Things I hate about websites

2005/04/20 filed under /random_thoughts

Why is it that website seem to annoy people more and more instead of helping them? Here's a small list of things that really bug me.

  • Captcha
  • useless accounts
  • dynamic content
  • pointless Javascripts

Captcha

Captcha is a technique used too much right now. The word is an acronym for Completely Automated Public Turing test to tell Computers and Humans Apart. It's a test to find out whether you're dealing with a non-blind human or a computer/blind person. Quite annoying.

Useless accounts

Close to every website offers/requires you to sign up for no apparent reason nowadays. Thank god there are ways to counter this annoyances with BugMeNot, Mailinator, DodgeIt and more.

Dynamic content

Is it cool or 1337 to use PHP? Why is everybody using it to generate their content on the fly? Cool, pull your data from a MySQL database. I'm willing to bet that the majority of the PHP sites could function without problems if they used static HTML files. (And no, I don't care at all to not be able to see your server's localtime on your website).

So why waste CPU time and the wonderful Last-Modified HTTP header?

Pointless Javascripts

I've come to understand that Javascript can be handy. If you have a slow connection, it's nice to see client side form validation before the server will respond to you again with errors. But what's this This function has been disabled message when I right click on a page? Does that prevent me from looking at the horribly generated Frontpage source code? Or does it prevent me from looking at stolen Javascripts? Stop it, it's annoying.

Also don't break my back button's function. I do use it, yes, quite often.

I could probably rant on on more topics like useless use of Flash and what not, but I'll save that for later (and for you, so feel free to dump your comments).

Posted by: B10m | permanent link | comments (2)

Wiki-ish markup for Nanoblogger

2005/04/15 filed under /nanoblogger

I for one hate coding HTML. It's boring, repetitive and scripts can and should do it for you. That's why I figured it'd be nice to use Wiki-ish markup in my posts.

A plugin could be written do convert Wiki markup to HTML automagically, yet I don't trust automatic conversion that much, so I'd like to see the result before I publish my posting.

For this, I used Text::WikiFormat, a Perl plugin, that I call from my editor (vim, of course ;). First, you'll need to create a small script like the following:

  #!/usr/bin/perl
  
  use strict;
  use File::Basename;
  use Text::WikiFormat;
  
  # Read contents of file
  open FH, "<", $ARGV[0];
  my $text = join("", <FH>);
  close FH;
  
  # Convert
  my $html = Text::WikiFormat::format( $text, { 
 		newline   => "\n", 
  		indent    => qr/^(?:\t+|\s{2,})/,
  		strong_tag=> qr/\*([^\*]+)\*/, 
  		paragraph => ["<p>\n","\n</p>\n\n",'',"\n", 1 ],
  	}, {
  		extended  => 1,
  		implicit_links => 0
  	}
  );
  
  # Backup, if requested
  if($ARGV[1]) {
     my ($base,$path,$type) = fileparse($ARGV[0]);
     rename($ARGV[0], "$path.$base");
  }
  
  # Write output
  open FH, ">", $ARGV[0];
  print FH $html;
  close FH;

Of course, you'd want to tweak all of this and put in some error handling, but it's a start ;)

After this, you just create your article, or blog entry and save the file when you're done (:w in vim). After that, you launch the converter:

:!wiki.pl %

Or, if you want to save a backup copy (nice for articles)

:!wiki.pl % 1

Now your original file will be backed up as .$FILE_NAME and you will get back the HTML.

Posted by: B10m | permanent link | comments (9)

Noumena - Absence

2005/04/13 filed under /metal

I remember when my brother handed me a cassette with Amorphis' "Tales From the Thousand Lakes". I was just getting to play the guitar and untill this day, it has been one of the very few albums I can (could) play along on the guitar entirely.

Now, Noumena. They kind of sound the same, yet with some clean vocals here and there (not doing any good, in my humble opinion). I don't get that feeling as I got from "Tales..." though. The riffs, however, could come straight out of Amorphis' instruments.

I'm still not sure whether to like them (hell, they sound like "Tales...") or dislike them (they sound exactly like "Tales..."!). Oh well, don't be bothered by it, just enjoy the metal!

Label: Spikefarm

Posted by: B10m | permanent link | comments (0)

Yahoo! 360° Invitations-R-Us

2005/04/09 filed under /web

s/Gmail/Yahoo/g and you have a Yahoo 360° Invitations spooler.

Get them while they're hot, people!

Posted by: B10m | permanent link | comments (0)

Comment Info

2005/04/09 filed under /web

After finding some funny comments (<!-- blah blah //--> style) on some websites, I thought I'd give my CSS Info a little hacking and make these comments visible on command. And thus Comment Info was born.

Nothing really interesting there, but it might be funny to use for a while...

Posted by: B10m | permanent link | comments (0)

Comment Info

2005/04/09 filed under /perl

After finding some funny comments (<!-- blah blah //--> style) on some websites, I thought I'd give my CSS Info a little hacking and make these comments visible on command. And thus Comment Info was born.

Nothing really interesting there, but it might be funny to use for a while...

Posted by: B10m | permanent link | comments (0)

Gmail accounts-R-us

2005/04/09 filed under /web

I've seen the Gmail Invite Spooler for some time and figured it'd be nice to have my own. So, as a gift to you, the reader, go get your own Gmail account at my Gmail Invitations script.

Posted by: B10m | permanent link | comments (0)

The immortal guinea pig

2005/04/07 filed under /web

Years back, when I worked in some IT-dept., my cow-orkers and I needed to "install" internet access on some of the PCs around. So we needed a way to test our stuff, and we thought a silly website to show the (l)-users that the internet connection was actually working, was funny. We found: http://www.cavia.nl/ (which means "guinea pig").

The page has not changed since Jun 10, 2000 (according to the Wayback Machine). The page just shows a photo of a guinea pig with the text (roughly translated) Under construction

What takes the webmaster so long? Almost 5 years is not enough to finish a website? I strongly doubt the animal in the photo is still alive! Great page though. Fast loading and yes, very silly.

Posted by: B10m | permanent link | comments (0)

Blasphemy Prohibited!

2005/04/06 filed under /news

With joy and laughter, I always follow the silly US christians and their never ending struggle to dictate the world with the old fashioned views and beliefs taken from the book of lies.

Today, however, I don't need to look overseas, for the Dutch village Staphorst wants to prohibit blasphemy (Dutch site). As far as I understand, they only want to make it symbolic (I doubt if they even can fine, or throw people in jail, for it to begin with). Good for them, now get a goddamned life!

Posted by: B10m | permanent link | comments (1)

CPAN code search

2005/04/01 filed under /web

Tatsuhiko Miyagawa, the author of some "nice modules", announced that he now created a Perl plugin for gonzui, a source code search engine.

With that, you now can search CPAN sources (well, search a mini-cpan).

Cool stuff!

Posted by: B10m | permanent link | comments (0)

CPAN code search

2005/04/01 filed under /perl

Tatsuhiko Miyagawa, the author of some "nice modules", announced that he now created a Perl plugin for gonzui, a source code search engine.

With that, you now can search CPAN sources (well, search a mini-cpan).

Cool stuff!

Posted by: B10m | permanent link | comments (0)
return-member