Custom Search

Tuesday, February 22, 2011

127 hrs of programming

Here are the problems encountered with the latest projects especially when Windows when all cranky with me.

Temp profile when I logged in. After searching, the answer was to backup everything, delete the temp profile under the following
control panel -> Advanced System Properties -> Advanced -> User Profiles -> Settings
and delete the temp profile.
Reboot.

When this happened, all the links in Visual Studio and some stupid programs like grapheditplus requires you to register again.
Using #include iphlpapi.h

was a pain cos you have to link the include and lib path all over again.
then add

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN #endif  
#include windows.h

So that it will use winsock2.h instead of winsock.h

Grayscale

"In computing, although the grayscale can be computed through rational numbers, image pixels are stored in binary, quantized form. Some early grayscale monitors can only show up to sixteen (4-bit) different shades, but today grayscale images (as photographs) intended for visual display (both on screen and printed) are commonly stored with 8 bits per sampled pixel, which allows 256 different intensities (i.e., shades of gray) to be recorded, typically on a non-linear scale. The precision provided by this format is barely sufficient to avoid visible banding artifacts, but very convenient for programming due to the fact that a single pixel then occupies a single byte."
Life is Grayscale. I tried living life with 1's and 0's. The only thing I got was misery. Betrayal, Breach of trust, Deception, Dishonesty, Jealousy, Dissatisfaction, Discontent, Uneasiness.
Everybody is bad and good at some point in time. If you calculate the number of 1's or 0's for a person, you get more 0's than 1's. Using 0-255 in Grayscale would be better. You can paint the person literally.
The problem is when there's a large dark patch its hard see the rest of the Grayscale image properly. The trust is gone, disappointment kicks in, the guard comes back up, the mask is on. Back to the game of life. Humor me.
Stereotypes of categories of people always seem to be true. Classification, horoscopes, palmistry, micro-espressions, nurture, family background, education, etc. Combine everything and the Grayscale image is mapped out. Usually, its the corrupted image of the devil.
Some traits are so innate that regardless of society and nurture, the person is still that stereotypical shade of gray. Damn! how i hope that friend didn't turn out that way. Too bad that's life.
If you think Windows is unpredictable, think again... its nothing close to your closest friend.