Rss Feed

16 February 2011

Nokia Strategy 2011

Microsoft gets Nokia, a company that sells Half a Billion Phones a Year, to install Microsoft's OS.
Microsoft gets Nokia Maps.
Microsoft gets the OVI Store.
Microsoft gets Nokias Mobile Camera Technology / team.
Nokia gets Bing and a crappy OS that isn't even doing well on its own.

Source: Nokia Strategy 2011

Conclusion
RIP Nokia (1865 - 2011)
Nokia was founded in 1865 by Fredrik Idestam.
Nokia was killed in 2011 by Stephan Elop.
Thanks so much :-\

26 November 2010

Desktop Cube Effect on Windows

Jealous of your geeky Linux friends? Do you want Beryl running under Linux, you should check out Yod’m 3D. It is a small application for Windows XP / Vista that will give you a decent substitute for the “Desktop Cube” effect. Below you will find a link to an older, but very-well working freeware version.

Download from instructables.com
(requires log in)

Direct download

05 August 2010

Threads in C++ ...

... is fairly simple.
Threads in C++ can be done by a simple and workable 3-step approach. Doing it in the right way will make it equivalent to i.e. the Java-approach, where you have to
either inherit from a class (java.lang.Thread) or implement an interface (java.lang.Runnable).
  1. Create a base class, that you might call "Thread". This class will be equivalent to the java.lang.Thread class.
  2. Class A (your custom worker class) must inherit from the Thread class (cf. step 1).
  3. Create an instance of your class A and call its start() method.

-- snip --

class Thread {
static DWORD WINAPI ThreadFunc(LPVOID pv) {
try { (reinterpret_cast<Thread*>(pv))->run(); }
catch(...) { }
return 0;
}
public:
typedef DWORD threadid;
virtual void run() = 0;
void start() {
threadid id;
::CreateThread(NULL, 0, ThreadFunc, this, 0, &id);

}
//...
}
};


class A : public Thread {
virtual void run() { /* To Do */ }
// ...
}

Thread * p = new A();

if (p) p->start(); // Spawns it in a new thread

-- snip --