Category Archives: Uncategorized

Things I’d love to learn more about

Below are some questions in various subjects I encounter either through day to day work or reading tech articles and blogs.
I will put the subjects in bullets and when i find the answers i will hyper-link them to another post where I write the answer I found.

How exceptions are implemented by compilers? How does the [...]

"Remember Me" Doesn’t work in ASP.NET

The "remember me" option in asp.net 2.0 will remember the user for as long as the Timeout period set in the forms authentication in the web.config
It’s really weird how it works as it is now. Below is an excerpt from a post found on the DotNukeForum:
How forms authentication cookies worked under asp.net 1.1
session cookies expiration [...]

On Defensive Programming

Notes from Code Complete

Use error-handling code for conditions you expect to occur; use assertions for conditions that should never occur
Use assertions to document and verify preconditions and postconditions
Throw exceptions at the right level of abstraction; include all information that led to the exception
Always have a mechanism to log application errors and a way to read [...]

How to type a unicode character under MS Windows

Press and hold down the Alt key.
Press the + (plus) key on the numeric keypad.
Type the hexadecimal Unicode value.
Release the Alt key.

Note that this method will only work if you have the following registry key set to the correct value..
under HKEY_Current_User/Control Panel/Input Method, set EnableHexNumpad to 1
Use the Character Map to find the hexadecimal [...]