Monthly Archives: October 2010

Politics, meet Religion. Religion, meet the 21st century.

Handshakes and hugs all-around?


I’ll stray from my regular technical writing for a moment, to adress an issue that is very much in the public eye at the moment here in Finland. It all started on a sad and rainy tuesday, the 12th of October. YLE (our state television channel) showed a program called A2: Homoilta (A2: Homonight). No, that’s not a piece of adult entertainment. It was meant to stir discussion on the whole topic of homosexuality and the church. The themes, as listed by YLE were: “Should gay couples be allowed to adopt children? Should gay couples be allowed to get married? How about church weddings?”. An interesting topic, no doubt.

What ensued was an hour of shitslinging on the gay community, or well, you can look at it yourself for another 25 days if you are in Finland (i’m sure it’s mirrored, though). Among the commenters was party secretary of the Christian Democrats, Päivi Räsänen. A very religious person, with bright shiny eyes, and some amount of political power.

She argued, among other things, that romantic love can only exist between a man and a woman. Other arguments were that the bible, god’s word handed down to us, opposes homosexuality in all its forms, and is therefore a sin. The same old song and dance. Basically it was very mean and hateful content.

Very soon, in fact already during the program, people were allowed to post commentary on the web. And instantly, the ball started rolling. Räsänen and her hate had started a little avalanche, that is now maybe only gaining speed.

Okay so let’s back up a moment. Finland is a country where most of the 5 million or so residents are christians, and part of the church. The numbers are staggering, if we take into account the current year, 2010. We have about 80% of the entire population that belong to our Lutheran church. This is a declining trend, as we can see in multiple graphics here:

But 80% makes a shitload of people in any case. Now, we also know for a fact (no quotes on this one, just personal experience), that most people beloning to the church are not what we call practicing christians. People who really and truly believe, and take the word of the bible as law. Maybe it’s 10%, 15% out of those.. 4 million people. So why are the numbers so high, in this day and age, where most people have stopped believing in fairytales.

A few reasons. Firstly, getting out of the church only became possible in 1923. Which is a while ago. But take into effect generations of upbringing. If your parents were pious christians, chances are they read the bible to you every damn day of the year. You said your prayers and went to church on sunday. Now, i’m not saying these practices are bad per se, but they are outdated. They teach values (select values, but more on this later), that are not adapted to modern society. Most of these things are nearly 2000 years old (the oldest pieces of biblical text are, i think, from the first or second century), and if they were not filtered out in the great christian meetings in the middle ages (where unsuitable content was filtered out), they are still more or less in the modern bible.

Select values then. This is one of those hard-to-answer questions that you can throw at a Christian. Why do you follow one part of the bible, but not the other? If the bible is god’s word, and is not to be interpreted, why do you leave out the parts about stoning women to death, or sacrificing animals and people? Why do you choose to keep the parts that say gay is bad?

So anyway, upbringing. You can teach a child most anything. Indians probably taught their children that the white man is the devil, and the white man did the same for the indians. See, i didn’t pull the Nazi card!

But if you are a child of very young age, you have very little opinion forming skills. Your brains and cognition simply are not developed enough for you to be able to make up your own mind. So you take what you get, and you add that on. The same reason a child tries to mimic your facial expressions, at only a few weeks old. To this child, you are it.

Later on you can decide to quit church, or become a muslim or Jehovas Witness. But if you have just gone through 15 years of brainwashing, are you likely to do that? Or are you more likely to continue with what you find comfortable, and then, when the time comes and you get children of your own, keep teaching the same stuff. I’ve made up my mind, but i’ll allow my three and a half readers (you know who you are) to make up your own minds.

So if only adults could join the church, how many would? I doubt highly it’d be 4 million people. The church knows this, and anyone with half a brain knows this. But can we legalize this? No. Even though i relish the idea of illegalizing the brainwashing of children with religion until they are old enough to decide for themselves, such a law is simply not possible to monitor.

But what we could do is, make the mandatory age for joining any religious group say.. 15 or 16. No younger members will be admitted. And then see what happens. But we are still unable to regulate (and well so) what people teach their children at home. Let me just add that some people are not suitable parents. This includes people who believe in stories written 1800 years ago by goat-hearders who probably had too much of those mushrooms.

But alas, rationality is far from this entire discussion. It is, mere utopia.

We can still go on, however! A valiant fight against those who would oppose rationality and progress!

So what has happened after “Gaynight”? Well, a lot. In Finland we can (at least right now) leave the Lutheran (or Orthodox) church online, through It’s very easy, and quick, and painless. No trips to the local priest, who will try to talk you down (as it once was). This site is sponsored by the nonprofit organisation called Tampereen Vapaa-ajattelijat (Tampere Free-thinkers). It’s just a lonely Debian box, being hammered all to shit right now, because so many people want to leave!

Since last tuesday, nearly 20 000 people have left the church. This is almost half of the entire collective amount for 2009! If the trend continues (which it will at least for a few more days), we might end up surpassing last years numbers alltogether. The daily numbers today are around 5000-7000 people leaving.

And it’s not just a reaction against the church, refusing to enter the 21st century, or one mad politician spewing out hateful (and sometimes confusing) commentary. It’s also a pain in the ass for the church.

Due to the hateful words said last week, the church has lost an estimated 6 million euro in tax income. You see, in Finland, the Lutheran and Orthodox church are allowed to collect tax, despite the fact that state and church should be separate. If you are a member of the church, 1 % of your annual income will go towards helping the church do.. what it does best. Build expensive buildings, and keep spreading their message of “love” (except for homosexuals, lesbians, transvestites, and other perverse deviants of gods creation!). The average is around 300 euro a year per person in taxes.

Are you ready to pay to keep this hate and frankly, anachronistic asshattery going on? In this day and age? Or are you ready to think for yourself? Give that a thinker.

So as a final word (for now): Now we have a situation where the Arch Bishop has stated that words of party secretary Räsänen do not reflect those of the church. But he did not state either, that he would allow gay couples to get church weddings. He was being a diplomat. But this wasn’t good enough for Räsänen. She lashed out and gave out a statement that said basically “Does the Bishop imply that he feels gay marriage is okay by the church?”.

Which led to one thing, which led to another. Basically what we have now is this political party full of fairytale-fans, lashing out at the church, and the church trying to protect what it does best. I’ll probably write up a followup as things progress. And i will leave you with this last (really) thought:

Do you want to support an organisation that stands for hate and intolerance? 20 000 people (and many more before them) think not. And stopping the support for the church does not mean you have to give up your beliefs.


Pyrit 0.3.0 with ATI graphics cards

Inspired by this post on the Pauldotcom website, i decided to reinstall Pyrit on my machine, and see how it has evolved. Pyrit is a program that allows you to use your graphics card (and cpu) to perform calculations relating to cracking WPA pairwise masterkeys. GPUs are considerably faster than CPU’s at such calculations. I don’t even pretend to understand all the math involved, since i sucked at math. But still, it’s fun to put your hardware to new and exciting uses.

Starting out

The components and software involved should be mentioned, and your mileage may and will vary. Pyrit can be a real bitch to set up, and there are loads of dependencies and modifications that need to be done.

So what i have under the hood is:

  • ATI Radeon HD4850 with 512MB memory
  • Gigabyte MA-GA790X motherboard with two PCI-Express slots for graphics cards
  • 6 GB DDR2 memory
  • Western Digital Raptor hard drive for the OS and relevant files
  • Ubuntu 10.10 RC, 32-bit

I installed the fglrx drivers using the Additional Drivers tool that is under System -> Administration -> Additional Drivers. These drivers are required to run any of this fancy GPU stuff.

Start off by installing some packages that are good to have around in any case:

  • make
  • build-essential
  • python-dev
  • libssl-dev
  • zlib1g-dev
  • libstdc++5
  • libpcap0.8-dev (thanks to corby for this additional dependency)

That should be enough to get everything installed, but do comment if something is missing.

What you need to download

You need various packages from different sites to get everything you need, as these packages are not in the standard ubuntu repositories. If you know of a repository that provides these, do tell. But i think ATI/AMD want to keep stuff behind their EULAs.

Just get the packages for now, and move on to the next chapter to install them.

Installing it all

Start by installing the ATI SDK. Take the package you downloaded and unzip/untar it somewhere, i used my home folder for the example. Next, we’ll set a few environment variables (replace username with your username, and/or the location with whereever you put the files):

export ATISTREAMSDKROOT=/home/username/ati-stream-sdk-v2.2-lnx32
export ATISTREAMSDKSAMPLESROOT=/home/username/ati-stream-sdk-v2.2-lnx32/samples

Also, let’s create a directory and some symlinks:

sudo mkdir -p /usr/lib/OpenCL/vendors
sudo ln -sf /home/username/ati-stream-sdk-v2.2-lnx32/lib/x86/ /usr/lib/OpenCL/vendors/

Okay, now we should be ready to install the OpenCL license file, so as root, move that file over to your root directory, and run tar xfz icd_registration.tgz

Basically that places a file inside /etc/opencl and does some magic to make the whole thing work… no idea why this step is needed, but ATIs word is law here.

We should now be able to make the Stream SDK, so go to the folder you unzipped the SDK, and as root, run make. Wait for a while, and then go to samples/opencl/bin/x86/ and run ./HelloCL. This should produce a message indicating success. This means your SDK is properly installed and working. Problems here indicate an error with the symlinks or environment variables.

Building and Installing Pyrit 0.3.0

Unzip/tar whatever the pyrit and the opencl packages to a location of your choosing. Start with the actual pyrit package. Head on into the folder, and run the following:

python build
sudo python install

After that finishes, go to the cpyrit directory and using your favorite editor, open up and find the following location, adding the bold section:

for path in ('/usr/local/opencl/OpenCL/common/inc', \
           '/opt/opencl/OpenCL/common/inc', \
           '/home/username/ati-stream-sdk-v2.2-lnx32/include', \

This is because otherwise, you’ll end up with errors the refer to some libraries that are only in that location, so you need to tell it where to find them. After your are done editing, doublecheck the path, and save the file. Then you’ll want to build and install the cpyrit stuff, by running the exact same commands as with the actual pyrit package.

When you’re done you can try:

pyrit list_cores


pyrit benchmark

You should see something like this for the list_cores:

Pyrit list_cores output

So now you can see your GPU (or GPUs) and your regular CPU cores ( minus one core, used to handle the data to and from the GPU). With new versions of Pyrit, there’s also the Network-Clients entries. I haven’t looked into that yet, but maybe i will in a later post. You should be able to hook up multiple hosts. Or something.

After this you could run a pyrit benchmark to see just how well it performs. Mine got around 16000 PMK/s, and around 350 per core of my Phenom II X4 3ghz.

You should also add the environment variables to your .bashrc or equivalent so they get loaded every time you boot.

Installation is a bitch, and i worked for a few hours to get all this running. If you get weird results; reboot, check all the steps and try again. You can always build pyrit and cpyrit again if things go batshit.

I’ll try to answer any questions, so post them in the comments section.


For this article, i used the following sources. Biggest source by far was, which has basically all of these steps and a bit more, but i updated and added where i thought it would add clarity, or if something changed with Ubuntu 10.10.

Other good sources are:


So thanks to all these sources. I would have gotten nowhere without them.