A coolest gadget I ever heard of.

It seems ViewSonic wants to grab some of the pie already shared by Asus, Acer and MSI. They just announced a new netbook

I bet this computer will not leave any chances to competitiors in Russia. Its name “VieBook” sounds somewhat between “I will rock you book” and funny statement of intentions of sexual character.

Another example why global market can be a pain in the ass for marketologists.

New airport for Sydney in Somersby. Is it for real?

A few years ago we became proud owners of a book called “Sydney Region Outline Plan”. The book, printed in 1968 is nothing else but a large 111-page report about what Sydney and surroundings looked like back then and how they were expected to look today. Surprisingly enough, that was rather interesting reading.

In “Transport” chapter a few paragraphs were focused on that by 2000′ a second airport should be built in Sydney. No doubts it should have already happened. But it did not. I remember how amused I was when I learnt that the largest and busyiest air hub in southern hemisphere is closing for any flights every night. Well, to be honest, I could hardly imagine a modern city with the airport nearly in its center before!

Anyway, that book pointed a few options where second airport could have had been built. Of course, we already heard of options like “somewhere on West” or “in Richmond” but there was another interesting option – they were also talking about Wyong shire and even considered it as one of the prefferred options. Never happened though. Yet (?).

Well, this is all about a front cover of today’s “Central Coast Sun Weekly” – it says that the government is once again revisiting plans to build a new airport for Sydney and there  are “many feasible reasons” why it should be build in Somersby. Not far away from Wyong, but nothing new – they already shortlisted in in 1969 and there was a 500-people demonstration against it back in 1971 (see aph.gov.au).

I am not quite sure how feasible is it really – from my impression landscape here on Central Coast is anything but suitable for airports. I am not airport architect and I don’t know all the details – may be Somersby plateau is large enough for long runways required for A380, but that besides the point. Even the fact that some businesses have already backed the proposal (which is understandable) so as that it is not know yet how would it change the face of Central coast and affect the enfironment are not important yet. I rather curious about whether they decide or not finally? This discussion already seems to last for over 50 years.

Useful C++ template magic. Hiding nasty global static’s

In C++, often there is a need to provide and support single instance of certain class, accessible on demand from anywhere in the program. That is encyclopedic example given in many books promoting singleton pattern. For instance, if your program has a log file, it is strongly recommended that you make a class that encapsulates all logging and make it singleton. This approach, without any doubts, is much much better than making global static instance of the logger and then referring to it from whatever you need as it reduces number of cross-dependencies, an issue that stays among the most bad techniques making code less maintainable.

This is easy to understand – while there is nothing wrong in static variable, even in global static variable, we must ensure that it is initialized before it is used first, which is especially important if the object has to be created dynamically. And this is the problem Singleton pattern solves.

Take the example

// SomeSourceFile.h
#include "CoffeePlantation.h"
static CoffeePlantation g_Plantation;

// SomeSourceFile.cpp
#include "SomeSourceFile.h"
// Initialize the instance
g_Plantation = CoffeePlantation();

Note: coffee plantation…

8 visitors online now
8 guests, 0 members
Max visitors today: 10 at 01:11 am MST
This month: 13 at 02-02-2012 08:06 am MST
This year: 29 at 01-23-2012 02:50 am MST
All time: 45 at 02-23-2011 09:11 am MST