Seven Reasons to Hate School

February 28, 2007

attn-from-svg.pngBefore discarding this as a stupid rant, read on for the reasons.

  1. Not all teachers are good.
    A good teacher is one that awakes the desire to find out more in his students. Too many teachers are threatening their students with quizzes instead of trying to make the material they teach more interesting.
  2. Not all students are good.
    If you’re better than your peers, then you are constantly bored as the teacher explains stuff you know to those less enlightened. If you’re worse, you feel bad when everyone seems to know stuff you don’t.
  3. We waste our time there.
    The “diversification” schools offer should really be optional. I find that less than 10% of the history / geography / etc. I am forced to learn will actually prove useful to me in the future. Why learn the information by heart if it’s available a few clicks away?
  4. We lose our desire to learn.
    Mankind will exist as long as there is a longing to improve our life. School teaches students that learning is hard, and that it’s all about exams and term papers. The obsession to constantly seek for knowledge was given to us for a reason, but school teaches us to reject it and say “no, thanks”.
  5. School stifles our creativity.
    Einstein said, Imagination is more important than knowledge. Because knowledge itself will solve no real life problems. It is the art of using knowledge in our own advantage that life rewards. But instead of cultivating students’ creative skills, our education system tries to turn us into robots that do their jobs, not more, not less.
  6. The grading system just plain sucks.
    Different people have different ways to learn. Some learn by doing, others learn by seeing others do, yet others learn by reading dull textbooks. Attempting to adjust everyone to a single learning system (record, replay, repeat) is a poor choice, and so is the grading system, because it persuades us to study “just for a good grade”.
  7. School turns us into prisoners of the left brain.
    So we must do all within our power to escape from this monotony and avoid being turned into pieces of soulless meat.

If you have more reasons, and would like to share them, you are more than welcome to do so in comments! I am open to discussion :)

Can you spot the bug?

February 27, 2007

I have been “lucky” enough to write code like this a few days ago:

bool side[max_lines][max_lines];
if(memcmp(side[i], side[j], sizeof(side[0][0] * lines)) == 0) return true;

Now it’s obvious to me why it didn’t work as expected. But can you find the bug? If you got it, what techniques do you use to avoid problems of this kind in your code?

//Note: the bug image is from Slashdot.

Within Temptation’s New Album, “The Heart of Everything”

February 25, 2007

The album by this great symphonic metal band is supposed to be launched this March. However, copies have started flying all around the Internet yesterday. This “leak” is exactly what happened to Evanescence‘s The Open Door, which was due to be released on October 3rd 2006, but has been available on peer-to-peer networks as early as September 4th.

Quick Fix: Make Firefox use KMail for mailto: links

February 24, 2007

A small annoyance of using Firefox in Kubuntu is that it always tries to load Evolution each time you click on a mailto: link. Here’s a quick fix for that:

  1. Enter about:config in a new tab in Firefox.
  2. Right click > New > String.
  3. Enter the preference name:
  4. Enter the preference value: /usr/bin/kmail

Note: You may have KMail installed at a different location. Type which kmail in a terminal window to find out exactly where it is.

Learning, the hard way

February 24, 2007

kompareToday I finished debugging a problem called “ro” that was proposed at an earlier round of .Campion. The screenshot shows the only change in the source code that, applied, would have brought me 100 points instead of 20.

Things learnt:

  • If anything can go wrong, it will.
  • If anything just cannot go wrong, it will anyway.

Now, more seriously:

  • Always, and I mean always make a backtracking, fail-safe solution and test the results for some small test case.
  • If you’re getting lost in that ugly 500+ line program, better start from scratch than trying to patch it.

For the reference, here’s the quick’n’dirty bash script I used to test my solution after correcting it:

for i in `seq 1 20`; do echo “test $i” && cp $ && time ./minchange.e && head -n 1 ro.out > ro.out1 && head -n 1 $i-ro.ok > $i-ro.ok1 && diff ro.out1 $i-ro.ok1 && rm ro.out1 $i-ro.ok1 || break; done

minchange.e is the program executable name, located in the current directory.

Third KDE4 development snapshot released

February 22, 2007

The 3rd development snapshot of KDE4 has been released and packaged for Kubuntu.

There seems to be a mistake in the /etc/apt/sources.list line they propose:

deb ./

Actually it should be

deb edgy main

as it gives a 404 Not Found error otherwise.

I do not plan to download 104MB on my slow connection this evening, but I’ll give it a try tomorrow. Good luck to you if you want to try it too!

LQ Members Choice Awards

February 22, 2007

A few days ago (on February 18th, to be exact), has closed it’s Members Choice Awards Polls for 2006. Of course, I was too busy to blog about this then, so I’ll take my chances now. Apart from the fancy names, these LQ polls are held annually to determine the choice of software LQ forum members are using. The distribution with the most number of voters is Ubuntu – nothing surprising here.

It is interesting to note that KDE software has won in quite a few categories:

KDE applications came close to winning in the following sections:

In the Browser of the Year section, Konqueror has gained only 7.41% of the votes :(

You can access the full discussions and polls here, and a short summary here. Of course, if the crowd seems to be using one piece of software, you don’t have to go the same way. Linux and Open Source are all about choice, so welcome to the minority!