Code Gem

Code Gem

Knowledge was arriving in dribs and drabs

Code Gem RSS Feed
 
 
 
 

Archive for February, 2010

Turn off the Information Bar in IE

Start from the Internet Explorer in XP SP2, Microsoft added a new feature called Information Bar under the name of security. The Information Bar is used to block some actions that were considered “risky” for security, including

Active X Install Prompts
Non-user-initiated Download Prompts
Pop-up Windows
ActiveX Control Blocked Errors
Local Machine Zone Lockdown

For any [...]

HEX Speaks

While debugging applications, we have to face raw memory in many cases, and knowing some magic number can be a great help to find a clue of the problem.
For example:

0xBAADF00D means uninitialized allocated heap memory.
0xABCDBBBA, 0xABCDBBBB, 0xABCDAAAA, 0xDBCAAAAA … in page heap block structure

There are some more to find at

http://en.wikipedia.org/wiki/Hexspeak
http://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_debug_values

[...]

2 Windows Commands for Setting up File Association

Recently I learnt the following 2 commands which can be used for querying and setting file association in Win32 platform. Quite useful when we are trying to something through batch script. We can call the commands instead of doing the registry dirty work.
ASSOC
Displays or modifies file extension associations
ASSOC [.ext[=[fileType]]]
  .ext      Specifies the file [...]

March 2010
M T W T F S S
« Feb «-»  
1234567
891011121314
15161718192021
22232425262728
293031  

Blogroll