

Nested Templates
Friday February 20, 2009
We have two IDEs at work: the awesome Visual Studio .NET, and the extremely incompetent "why the hell would anyone use this, oh, wait, we are because it compiles our PlayStation and Wii code" CodeWarrior. CW is a world of pain of its own, and here's a handy little tip for you.
Templates in C++ have the angle brackets as delimiters. That is, std::vector<int> or std::pair<int, int>. In Java and C#, they are refered to as generics, but for the sake of this post, they are essentially the same concept. (Check out the differences here).
Anyway, say I require a map of ints to a vector of ints. I would declare it as so:
std::map<int, std::vector<int>> mapping;
Looks okay? Wrong. Look again:
std::map<int, std::vector<int>> mapping;
That's the bitwise shift right operator. Of course, the fix is easy:
std::map< int, std::vector<int> > mapping;
Thanks Codewarrior.
In The News
Monday February 16, 2009
Alright, so I finally finished that piece of crap game called Final Fantasy III for the DS, and let me tell you, the final dungeon would be infuriating if you had died and had to start ALL over again and beat ALL those bosses. It's utterly ridiculous. And it had the lamest ending ever. It wasn't even a proper FMV. It was just them running around dropping all their friends off around the world. Sigh.
Anyway, there's been two things that have really been pissing me off lately.
First is the Australian forest fires, and the fact that they've been started by arsonists. I mean, for crying out loud, do they KNOW what the hell they've done? Do they comprehend the number of deaths they've caused and the number of lives they've ruined? Do they feel any remorse for what they've done? I don't understand what goes through the minds of these retards when they decide to have a bit of "fun" at the expense of a thousand lives. It's tragic, it really is.
Second is the story about a thirteen year old brat who has become a father. I quote from the newspaper article:
Asked what he would do to support the child financially, Alfie asks in a small, high-pitched voice, "What's financially?"
Does this guy even understand the responsibility of bringing up a child? Will these freaking brats stop breeding like horny rabbits and creating evil spawn that are there to steal our oxygen? Why the hell would you even have SEX with someone who has BARELY gone through puberty? Not only is this morally wrong, it's also incredibly disgusting.
NOTW also says that there may be as many as eight possible fathers, including 14-year-old Tyler Barker, who claims to be terrified at the possibility.
If you're so freaking terrified, why don't you STOP HAVING SEX WITH THESE SLUTS SO THAT YOU DON'T GET THEM PREGNANT? And furthermore, EIGHT possible fathers? What the hell is wrong with this sex-starved girl?
And the fact they're getting so much bloody media attention isn't helping. The guy is completely oblivious to the responsibilities he faces in bringing up this kid, but yet there's suddenly this incentive of tens of thousands of dollars from these moronic tabloids offering him money for an 'exclusive' documentary. Isn't that some kind of INCENTIVE for him to breed more? What is wrong with this world?
UGH.
There is such thing as a "Free Lunch". And free dinner too.
Saturday February 14, 2009
Mel organised lunch at Great India today, so Jono, Rosie and myself bundled into the car that Andrew had so kindly left for us and headed to Courtenay Place. As we were walking, we stumbled across something rather peculiar on the ground.
It was a small piece of purplish paper.
It was just sitting there invitingly.
I picked it up quickly. It was a $50 note. That pretty much paid for lunch for the 6 of us at Great India. And a delicious lunch it was too \o/
And then again, at Central this evening, we had a "light meal" to welcome our new pastor.
In other words, I had two very good meals, and didn't pay a cent for them.
That constitutes an awesome day in my books!

