Because some posts just refuse to be placed into a bucket

3-In-1

Illustration

I got Nivea Active 3 from my wife and I consider it ultimate product for men. It combines showering gel, shampoo and shaving cream. Not only that you solve almost all men’s hygienic needs (no toothpaste inside), you only need to remember to buy single product. That is precious.

While this is primary showering gel and pretty lousy as anything else, it is definitely something you want to take on trip with you.

If they only had bacon-flavored version…

KulenDayz 2009

If you work with Microsoft technologies, you should definitely visit KulenDayz 2009 conference. It is community organized event held in Croatia with quite a few international speakers.

Conference will last for three days. First and last day will be fun, but second day will be all about learning. Sessions will be mix of Code camp style sessions (no fluff, just code) and Chalk&Talk (hanging around with flip chart). I definitely recommend later since amount of information you can get during informal chat is just amazing.

While small fee is required for lodging and events, conference sessions are completely free. Do feel free to register and join us (be quick, number is limited).

P.S. If you are wondering, Kulen is type of spicy sausage native to Slavonija.

Windows 7 and Virtual Disks

Illustration

Today (2009-04-23) I gave lecture about virtual disk support in Windows 7.

Here are some links I promised:

If you are interested in this topic, you may wish to check this blog at later times also. I will be adding more detailed explanations of VHD API and updates to this C# implementation.

P.S. If you get “Privilege not held” exception message, run Visual Studio 2008 as administrator. VHD API requires elevated rights.

[2009-04-27: Windows 7 RC will have some changes regarding Virtual Disk API. Major ones include changing names of some functions (E.g. what was SurfaceVirtualDisk is now AttachVirtualDisk, what was UnsurfaceVirtualDisk is now DetachVirtualDisk) and structures. Once RC is out and I install it, I will release update of code.]

[2009-05-01: Code is updated.]

Code Samples

Blogger is fine service, but if you want to write some source code inside of post, you are on your own. However there is solution in form of SyntaxHighlighter [2010-12-31: I swithed to it is WordPress’ SyntaxHighlighter Evolved].

From now on you can see code like this:

void Main() {
  Console.WriteLine("Hello world.");
}
Plain text samples are also allowed.
Some lines may be highlighted.
But not all need to.
<xmlPart param1="value1" paramX="valueX">
  <sub>Test</sub>
  <sub>Test 2</sub>
  ...

This looks great if you have JavaScript enabled.

P.S. This post may change from while to while since I will be using it as testing ground. Unfortunately, you can see how exactly code looks only once you publish post.

Is It Byte or Is It Octet

If you read RFC for some network protocol, you will notice that word octet is used quite a lot. I hear quite a lot that they should write byte instead. However, there is subtle difference here.

Octet is always eight bits. Although one may argue that byte is also eight bits, but not so long ago one byte had seven bits of data (remember ASCII). If you go even before that, there were some machines that used lower or higher number of bits to represent one byte (6-bit, 10-bit…). At that time, byte was smallest accessible data unit - no matter how many bits it had. Only with very popular IBM/360, everyone moved toward eight bit bytes.

When writing specification of something on really low level (like RFCs do) with need to communicate across different generations of equipment, this difference is important.

Since byte (at current time) is always eight bits, whole argument seems purely academic, but tradition and precision is important. That is why RFC will never use byte when octet is needed.

Keyboard

Illustration

I accidentally “de-enterized” keyboard on my laptop (HP 6730b). Somehow one CD left in my backpack managed to get under my enter key. Plastic beneath could not handle pressure and small piece went off. Although that piece had less than two millimeters in length, my enter key would not stay in it’s place with it missing.

Solution was simple and new keyboard (~40 €) arrived in two weeks (it may seem long, but this is quick for Croatia). Once I decided that I was competent enough to replace it, I took a look at documentation on how to do it.

I was surprised - not only that there was great manual, but there were also videos on how to perform small-scale part replacements.

Keyboard was replaced in less than ten minutes without a hitch. I finally got my enter key back and good feeling about Hewlett-Packard. Although they did nothing other than put some documents on-line, those documents were so good that they made me happy customer.

My next laptop will also be HP.

64-Bit, Where Art Thou

Illustration

Well, presentation is over. I must confess that it was really strange feeling speaking and not seeing anybody. It is so unnatural.

It wasn’t without hitch (even incorrect code was working by accident) but hopefully it was good enough for everybody listening.

Here are source files used during presentation.

I will give link to presentation recording as soon as it goes up.

TechDays

Tomorrow (2009-04-01) I am giving presentation at TechDays virtual conference. Presentation is titled “64-bit where art thou” and it will be about transition to 64-bit framework and issues that can arise. I will try to keep it low on power point and illustrate all through C#.