incompetence today: The Austrian government

0
Filed under general

Just read this article on heise.de:

Oberösterreichs Landtag fordert Kinderporno-Sperren

I especially want to point out this part:

In seiner Wortmeldung im Landtag sprach sich der ÖVP-Landesparteisekretär Mag. Michael Strugl, MBA, dafür aus, “insbesondere kinderpornographische Angebote im Internet zu sperren und darüber hinaus auch Strafausmaß für die Straftatbestände” zu erhöhen. Welche weiteren Angebote im Internet er zensiert sehen möchte, führte er nicht aus. Er verwies auf Webfilter in Schweden, Dänemark, den Niederlanden, Spanien und der Schweiz sowie auf die Diskussion in Deutschland.

Yeah, great. Sweden blocks the Pirate Bay. Really makes sense to me …. NOT!

Ok, to get this right:
I don’t want to protect producers or consumers of child porn. In my opinion these criminals should get their punishment. And this punishment should be unforgettable for them.

BUT

I really hate it, when stupid politicians use the term “child pornography” to get to their goals. These dirty bastards should really die in hell (although I don’t believe in a hell … or heaven). These blockades DON’T WORK. These blockades are just another step towards 1984.

People complaining about the stuff in China or other countries should have a look on their own countries instead.

new theme … again … ;)

3
Filed under general

As you can see, I switched my wordpress theme again. I hope you like it. I really love it!

oh … I nearly forgot

0
Filed under amusing, general

…. the towel-day :)
Wear your towel! Know where it is!

To remind my readers (me, me … and me) about this incredibly important event, I’ll put this picture on top of the blog.

Towel Day - Keine Panik

[UPDATE] helper script for changing the MAC

3
Filed under coding, general, linux, perl

UPDATE:
##############

I now rewrote the script a little bit to use a private MAC-area because of problems when generating some MAC-addresses. Please use this version if you want to use it …

##############

hi guys,

yesterday I told you how to change your MAC address. Because I’m unbelievably lazy I decided to write a little helper-script to do this automatically. This script generates a random MAC address and brings the interface up with it.

here it is: change-mac

#!/usr/bin/perl
use strict;
 
# name:     change-mac
# author:   ap0calypse (ap0calypse@agitatio.org)
# purpose:  helper script for bringing an interface down
#           and up again with a random MAC-address
# date:     2009-04-15
 
# replace this with your wlan-interface
my $interface = "wlan0";
 
my @val_mac = (0 .. 9, "A" .. "F");
my $rand_mac = "AC:DE:48:";
 
for (1 .. 6) {
    $rand_mac .= $val_mac[rand(@val_mac)];
    if ( ($_ % 2 == 0) && $_ != 6) {
        $rand_mac .= ":";
    }
}
 
system("ifconfig $interface down");
system("ifconfig $interface hw ether $rand_mac");
system("ifconfig $interface up");

tip of the day – change your MAC-address

3
Filed under general, linux

I know that this is nothing secret or special for most of you, but I think there are people out there who don’t know how to do this. Long story cut short:

ifconfig $INTERFACE down
ifconfig $INTERFACE hw ether $NEWMAC
ifconfig $INTERFACE up

Adjust the values for interface and new-mac to fit your needs.
You may ask yourself, why you should ever need this. Well, if you are really asking yourself this question, you maybe really don’t need it …. ;)

Personally I need it because there is an open WiFi-network in my hometown which gives everyone the opportunity to use it for 30 minutes every day. They assure this by saving the MAC …

Alright? Alright! :)

Another step towards 1984 … :(

3
Filed under general

Starting with today, every Austrian passport has an additional “security feature”:

http://vorarlberg.orf.at/stories/351999/

I don’t know what to do … I don’t want such a passport. I don’t want my fingerprints stored on that chip. Every person capable of reading this data could then use my fingerprint. I DON’T WANT THAT CRAP!

War is Peace,
Freedom is Slavery,
Ignorance is Power

new script: my_banner 0.1

2
Filed under artistic, coding, perl

good morning ;)
As I wrote in my last article I wrote a small programm to display a 5×9 matrix of letters like the commandline tool banner does. Of course, my version isn’t that powerful, but it works. my_banner doesn’t do line-breaks, so if the sentence is too long you’ll see simply nothing very useful :P .

Here an example:

echo "ABCDEFGHIJKL" | perl my_banner
 ###  ####   #### ###   ##### #####  #### #   #  ###   ###  #   # #
#   # #   # #     #  #  #     #     #     #   #   #      #  #  #  #
#   # #   # #     #   # #     #     #     #   #   #      #  # #   #
#   # ####  #     #   # ###   ###   #     #####   #      #  ##    #
##### #   # #     #   # #     #     #  ## #   #   #      #  # #   #
#   # #   # #     #  #  #     #     #   # #   #   #    # #  #  #  #
#   # ####   #### ###   ##### #      #### #   #  ###    #   #   # #####

and another one:

echo 'This is a test' | perl my_banner
##### #                                                       #                 #
  #   #       #                 #                            ###               ###
  #   ####         ####              ####        ####         #    ###   ####   #
  #   #   #  ##   #            ##   #           #   #         #   #   # #       #
  #   #   #   #    ###          #    ###        #   #         #   #####  ###    #
  #   #   #   #       #         #       #       #   #         #   #         #   #
  #   #   #   #   ####          #   ####         ####         ##   #### ####    ##

Here is the source: my_banner

You may ask yourself how it works? Well, I did it this way:

I figured out, that an ‘A’ for example would look like this in a 5×9 matrix:

 ###    01110   = 14
#   #   10001   = 17
#   #   10001   = 17
#   #   10001   = 17
#####   11111   = 31
#   #   10001   = 17
#   #   10001   = 17

Well after I figured this out, I created an array inside of a hash for every letter from a-z A-Z and some special characters.

my %led_letters = (
    'A' => [qw( 14 17 17 17 31 17 17  0  0 )],
    ....
    'g' => [qw(  0  0 15 17 17 17 15  1 30 )],
    ....
);

The rest was easy after that. Maybe someone wants to expand it. Enjoy!

Ralink 2860, the EeePC and 2.6.29 …

2
Filed under general, linux

Well, I can proudly tell you guys that I don’t need any external module from a third party anymore. 2.6.29 has rt2860 in staging, which is, as far as I can see that, nearly identical to the official module from Ralink.

From the Kernel-git:

Staging: add rt2860 wireless driver

This is the Ralink RT2860 driver from the company that does horrible
things like reading a config file from /etc. However, the driver that
is currently under development from the wireless development community
is not working at all yet, so distros and users are using this version
instead (quite common hardware on a lot of netbook machines).

So here is this driver, for now, until the wireless developers get a
“clean” version into the main tree, or until this version is cleaned up
sufficiently to move out of the staging tree.

Ported to the Linux build system and cleaned up a bit already by me.

Cc: Linux wireless
Signed-off-by: Greg Kroah-Hartman

The bad news are that the eeepc-laptop module still doesn’t work properly. If I compile the module and the kernel tries to load it, my system hangs for about 30 seconds which is NOT bearable. So I still have to exclude this module as long as it doesn’t work.

I also activated fastboot (well, at least I think I did) by adding it to my lilo.conf (append=” fastboot”) and my small little eee now boots up from lilo to login in 10-13 seconds.

Everything seems fine so far. I’m also working on a small programming project I’m going to release soon :) . Stay tuned!

slackware on the eee-pc 901 – hints, tips and experiences

2
Filed under artistic, coding, general, linux

Yesterday I got my new toy, an Eee-PC 901 with pre-installed Windows XP. I guess it’s no neccessary to say that Windows was removed immediately (including the annoying “designed for Windows XP” stickers all around). I started to install my distribution of choice (slackware 12.2) on it with an external DVD-drive.

This model off the eee has a 4GB SSD like my older 701 model plus an additional 8 GB Module. This gave me the great opportunity to have my home-directory separated now. (my older eee had an SD-Card to satisfy ma needs in this case)

I partitioned like this:

[14:47:12] root@blackbox ~ # fdisk -l /dev/sd?
 
Disk /dev/sda: 4034 MB, 4034838528 bytes
128 heads, 63 sectors/track, 977 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Disk identifier: 0x57985ef0
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         920     3709408+  83  Linux
/dev/sda2             921         977      229824   82  Linux swap
 
Disk /dev/sdb: 8069 MB, 8069677056 bytes
255 heads, 63 sectors/track, 981 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3094aa77
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         981     7879851   83  Linux

After a normal installation and the removal of some obsolete packages I compiled the recent kernel on it (2.6.28.7). After surfing through “make menuconfig” I discovered that the wireless chip of this model isn’t supported in the mainstream kernel. The wireless chipset of my older model was supported by the ath5k-module, but this chipset (rt2860) isn’t yet supported :( . There were 2 options:

  • I wait until it comes to mainstream kernel (hopefully with 2.6.29 ??? ) and connect to WiFi with my zd1211-USB stick meanwhile
  • I compile the official driver from Ralink

I decided to take option 1, because I hate to compile third-party modules. I read on some boards and mailinglists that kernel-support for rt2860 is currently a work in progress. I guess it won’t take a long time to get it into mainstream kernel. Here an output of lspci:

00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 Network controller: RaLink RT2860
04:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)

After compiling and rebootiing my new gem I discovered that my eee suddenly freezed during the initialization of the eeepc_laptop module. At first I thought the kernel really freezed because it took up to 30 seconds until it continued to boot normally. “Maybe just an unlucky constellation …” I thought and rebooted to test if it happens again, …. and it did. So I decided to compile my kernel without eeepc_laptop until it is fixed. I also read on the kernel mailinglist that this is a known issue.

Well, here I was, surfing the web with my new eee, connected via my zd1211-usb-wlan-stick with my home-network. But there was something very, very annoying again. The fonts of my firefox-menu and everything seemed extremely big and bloated. From my past I knew that there was a DPI option in the firefox-menu but I couldn’t find it anymore … *sigh*

After some searching I found a solution. I rewrote my ~/.Xdefaults and added the following line:

Xft.dpi: 96

After that, Firefox started to look normal again.

Finally, a little screenshot:

slow page-scrolling with firefox

0
Filed under coding, general, linux

hi everyone,

some days ago, while browsing the web on my favorite websites, I felt that they all seemed to be slower. Firefox even started to need around 100 % of my CPU what NEVER happened before. It was interesting that pages like Google-search or simple text-pages weren’t affected. The problem obviously had to do something with the stuff surrounding the text ( pics, flash, whatever, … ). At first I was kind of helpless because I didn’t know what caused this mess, but then I remembered an update of my NVIDIA-driver. After a bit of searching I found the responsible option in /etc/X11/xorg.conf:

...
Option "NoAccel" "false"
...

After restarting X, it worked again. Maybe this helps some people.