NWN - Shadows of Undrentide

August 26th, 2007

Finished :) Too short for me but worth to play.
Final battle screen for you and now I am going to “taste” Hordes of Underdark.

NWN - SOU Final battle

Did you know… boxing / unboxing

August 19th, 2007

… when you define a value type (structure) it’s a good idea to override System.Object’s virtual methods - ToString, Equals and GetHash. If you don’t, the framework will perform “boxing” when calling these methods. It can significantly slow your application.

Did you know… string concatenation

August 12th, 2007

... that simple strings concatenating in C# can have impact on memory usage?
Let's look at this simple code:

C#:
string foo = "foo";
foo += " bar";
foo += " bar2";
foo += " bar3";

This causes that the compiler creates 3 additional strings on the stack, then garbage collector must clean it. Only the last string has a reference. If you make something like this very often in a loop consider using string's Concat or Join methods. StringBuilder is also a good choice.

How to fuck up a monitor

August 7th, 2007

Once upon a time... :P
... it was a beautiful, shiny CRT monitor - NEC to be precise. This monitor has served great for many years.
And several days ago, his Master (me :D) decided to clean it. Nothing special.
But Master didn't choose the right way. He took "Special German Cleaner"... for glasses :D

Read the rest of this entry »

My first Slackware package

August 5th, 2007

Today I created my first binary package for Slackware Linux. You can find it at http://www.sirmike.org/slackware-linux
I will put there some other packages in the future. Stay tuned :)

Designed by SirMike © All rights reserved

Valid XHTML 1.0! Valid CSS!