Archive for September 2006

Interesting stuff

Am I the only one who finds this absolutely terrifying?

If you haven’t seen DCLugi’s Snakes On A Plane auditions on YouTube you need to!

Bruce Schneier reported on this a while ago, I need to keep the link around. What to do when your neighbour is using your internet.

Our “honourable” EU politicians are finally worrying about the right things when it comes to Microsoft. Microsoft is all about lock-in, they’ll use security to achieve it if they can. Microsoft is of course responding. I wonder if they’re ever going to inhabit the same world as I am? Vista creating 100000 new jobs? Only if changing the title of a position from “Windows XP Developer/Administrator/Shithead” to “Windows Vista Developer/Administrator/Shithead” counts as “creating a new job”. I think Linux Journal is too kind when they call it Microsoft’s Masterpiece FUD. I think it only shows just how desperate Microsoft is to get Vista out the door.

Digital Rights Ireland are challenging the Data Retention Directive. I hope they are successful, I don’t there are many citizens in Europe who would be sad to see that invasive directive go away.

A good article on “open vs. closed” from the Financial Times—A closed mind about an open world. FT is increasingly “getting it”.

I couldn’t help but laugh out loud when reading this article trusted computing—Trusted computing a shield against worst attacks?. Let me see if I got it right. Phoneix Technologies, who happen to make a TPM module, pays analyst firm Trusted Strategies to have a report on digital attacks done. Then, surprisingly, the analysts come back and say that a TPM would have stopped most of those attacks. Who would ever read and put any faith in a report like this? Besides other analysts of course. I can’t help but think that the computer analyst firms are locked in a circle-jerk that’s paid for by computer companies. It is a very strange world we live in.

Thinking of writing a media app in Python? This seems like a good place to start.

ComputerWebstore…

My blog can by no stretch of the imagination be called popular. Just looking at the number of comments will tell you that. Given that I can’t help but be amazed that my most popular post is my rant against ComputerWebstore. With 10 comments it has a comfortable lead.

It looks like there are quite a few people out there who are learning the same lessons I learnt, in an equally painful way.

Minimal lighttpd configuration

Having fun with C++’s auto_ptr

Sometimes RAII is difficult.

The following code compiles without errors or warnings on Windows using Visual Studio 2005:

#include <iostream>
#include <memory>

namespace Test
{

    class Foo
    {
    public:
        bool should_do_stuff() { return false; }
    };

    class Bar
    {
    public:
        Bar(std::auto_ptr<Foo> fp) : _fp(fp) {}

        void do_stuff() {
            if(_fp->should_do_stuff())
                std::cout << "Do stuff" << std::endl;
            else
                std::cout << "Don't do stuff" << std::endl;
        }

    private:
        std::auto_ptr<Foo> _fp;
    };

} // Test


int
main()
{
    std::auto_ptr<Test::Foo> fp;
    fp = new Test::Foo;

    bp->do_stuff();

    return(0);
}

However, it throws an exception just at the end of execution. Hmm, strange. Compiling it using GCC fails—it complains about the lack of an applicable operator= function.

This is what the assignment should look like:

fp = std::auto_ptr<Test::Foo>(new Test::Foo);

With that change GCC accepts it, and Microsoft’s compiler generates exception-free code.

Amazon rocks!

Last Friday I sent back my new music player to Amazon. Later that day I received an email saying that they had already dispatched a new one to me. On Monday my new player was at the office waiting for me. In short, Amazon rocks!

This one works perfectly, no signs of any problems with using it as USB mass storage.