Home ¦ Archives

Why bother to have type definitions if we already have macros?

Macro Definitions

Macro definitions are recognized during preprocessing phase, and macro names are naively replaced by the preprocessor.

Consider following example:

#define Int_Ptr (int *)

Int_Ptr a, b, c;

In the above case, only a will be defined as a pointer pointed to and Integer, whereas b and c are two ...


Disable Discrete VGA On Fedora 20 While radeon And fglrx Both Not Working

I just migrated to Fedora 20 only out of pure love for its slick UI. When I first installed Fedora 15, I had this annoying VGA cooler that spinned like crazy and consumed a great portion of power that drained my battery pretty fast. I have a Dell, and it ...


Difference Between exec() And spawn() In Node.js

This thread might be outdated since I was using Node.js 0.10.26.

Currently I am making an application that does roll call in a classroom for teachers who don't want to waste their time on a roll call. We need to invoke some Matlab-implemented algorithm using OpenCV ...

© Teng Long. Built using Pelican. Theme by Giulio Fidente on github.