Author Archives: Artemis

XML De/serialization

Here’s a way to serialize and deserialize between a (serializable) type and XML (string). Serialization from a type into XML (string) via a memory buffer: public static string SerializeMyType(MyType obj) {       XmlSerializer xml = new XmlSerializer(typeof(MyType));       MemoryStream ms … Continue reading

Posted in Uncategorized | Leave a comment

String Interning

In the (.NET) CLR (Common Language Runtime), there exists a table known as the intern pool. It contains a single reference to every unique string literal in your program. It does this to reduce the amount of memory used. This … Continue reading

Posted in Uncategorized | Leave a comment

Windows Phone MessageBox WTF

So, everybody’s used the messagebox in Microsoft platforms in one form or another. The good ol’ fashioned Win32 API version, or any of the .NET variants. So, I recently got bit in the ass by Windows Phone. Here’s how. This … Continue reading

Posted in Uncategorized | 2 Comments

ASUS UX31 Zenbook Sentelic Touchpad Driver Problem – With Solution

For those of you who use the UX31 and have installed the Sentelic touchpad driver (FspUip.exe), you might have noticed it’s severely buggy behaviour of constantly chewing the up CPU when your Windows 7 system is has gone into power … Continue reading

Posted in Uncategorized | Leave a comment

Help! I’m blinded!

Ever since people have seen screenshots of Visual Studio 11 Beta, there has been a lot of gripe concerning the new flat and gray look. Myself included. But quite frankly, that is nothing compared to the removal of macros. I … Continue reading

Posted in Uncategorized | Leave a comment

.NET Preprocessor Visual Studio 2010 Add-In Update

The latest version of VSDotNetPP (Version 0.2.0.0) is available and can be downloaded here. Following is the post from NTSTATUS: Major updates and additions in this version: Macros in open documents are now expanded in the file itself, therefore eliminating … Continue reading

Posted in Uncategorized | Leave a comment

Deferred Procedure Call

One feature available in the Windows kernel that I really like is the Deferred Procedure Call. It’s a mechanism that basically let’s you defer lower-priority tasks. This is because high-priority tasks such as interrupt handlers should complete as quickly as … Continue reading

Posted in Uncategorized | Leave a comment