Archive for January, 2008

Today’s One Paragraph Blog: Dog

Dogs are an interesting species. The fact that a chihuahua and a doberman could mate, hypothetically, is something like pairing a tyrannosaurus with an ostrich.

Today’s One Paragraph Blog: Frankdensign (the 80-20 rule)

You probably have friends who use the internet. How much would you guess most of them use the buttons on the IE (or Firefox) toolbar? Observation suggests a rule like this: For 80% of the users, only 20% of the buttons gets used (I, for one, never click anything under “Page”). There’s a great book [...]

Are we all better off with equality?

Many people argue that the world would be a better place if there was more equality. In the extreme case, equality has become synonomous with “morality”. Would we actually be better off if there was more equality? Not necessarily. A recent slate article examines the discrepancy between black and white spending on “visible goods” (like [...]

Code Snippet of the Day

This function will print out a list of exports from a DLL. Note that this function for enumerating DLL exports requires imagehlp.lib and dbghelp.lib (and the corresponding dynamic libs). void ListDLLFunctions(PCSTR pszDllName) {     _IMAGE_EXPORT_DIRECTORY *ImageExportDirectory;     unsigned long cDirSize;     LOADED_IMAGE *pImage = ImageLoad(pszDllName, NULL);     ImageExportDirectory = (_IMAGE_EXPORT_DIRECTORY *)ImageDirectoryEntryToData(pImage->MappedAddress, FALSE, IMAGE_DIRECTORY_ENTRY_EXPORT, &cDirSize);     if (ImageExportDirectory != NULL)     { [...]