Flux RSS

Thursday, March 12 2015

Here is why I hate Arduino

I've said in the past I hate Arduino. Here is a prime example of why.

Read that page, then allow me to explain exactly what's wrong here.

Continue reading...

Wednesday, September 10 2014

This too shall pass

Eight years ago, I got hired by Blizzard Europe, to work on the website. Two years later, I got to join the Irvine headquarters, in order to work on World of Warcraft.

And at the end of this week, I will leave that company, in order to go work for Google in the Mountain View headquarters.

Continue reading...

Monday, December 16 2013

Spamhole created.

Check this. Nuff said.

http://spamhole.grumpycoder.net/index.php/

Thursday, June 6 2013

My take on predicting Doctor Who

There is a lot to say about what happens after the cliffhanger at the end of Series 7 of Doctor Who, and there's already many speculations on the Internet about it. I'm going to give my own version here. Careful tho: spoilers ahead. If you haven't seen Series 7 yet, please stop reading now.

Continue reading...

Sunday, January 20 2013

C++ Streams suck


This one is a short one (and actually, more an excuse to test highlight.js), but C++ Streams really, really suck. You can say whatever you want, they are the spawn of the devil. Case in point:
#include <iostream>
#include <iomanip>

void hexDump(
    const unsigned char * data,
    size_t size,
    std::ostream & str)
{
    size_t addr = 0;
    str << std::hex
        << std::setfill('0')
        << std::nouppercase
        << std::noshowbase;
    while (addr < size) {
        str << std::setw(8)
            << addr
            << ":   ";
        for (int i = 0; i < 16 && addr < size; i++) {
            str << std::setw(2)
                << static_cast<unsigned int>(data[addr++])
                << " ";
        }
        str << std::endl;
    }
    str << std::resetiosflags;
}

- page 1 of 7