Skip to content

{ Category Archives } Uncategorized

Reading chm files with ‘#’ character in the file name.

One of the most annoying things I hate in chm files, is the fact that you can not read this file if it has a # character in the file name.
In the image bellow you can clearly see that application fails to render the text of the book.The file name was C# Cookbook, 2nd Edition [...]

Is Constructor Thread Safe? What do you think?

Level 2
Several days ago, one of my colleague asked me this question. My first impulse was to answer no, but then I thought that the answer was not obvious. So I wrote a short example and played a little with ILDASM.

Imagine that we have next definition for class CTest

1: namespace [...]

Byzantine failures

Yesterday I had a conversation with my colleague at work regarding impossibility of capturing the system state in the presence of message losses. I quoted Nancy Lynch book and talked about half an hour about Byzantine failures.
Imagine my surprise that first thing I saw today in the Dr.Dobb’s web portal  is an article about [...]

dos2unix as ^M solution in Git pre-commit hook

Apparently this problem is well known and common
solution is to comment out next lines in the
.git/hooks/pre-commit file.
p.two{border-style: solid;border-width: thin}p.name {background-color: rgb(240,240,2

1 if (/\\s$/)
2 {
3 bad_line(“trailing whitespace“, $_);
4 }

I personally don’t like this approach; instead i will follow
“make your compiler happy” advice. Small unix utility dos2unix was created to solve exactly this type
of problems. All [...]

First WTF with new Git repository

First check-in brings first surprises: git complains about suspicious trailing white spaces.Apparently the usual M$oft ^M by the end of the line makes it crazy. I do understandthat hidden garbage in the file is wrong, but what do I do now?

Switching to Git

I am going to try the GitHub service. Good bye Subversion and TortoiseSvn! Now my life is going to be much easier

My first post

Hi, my name is Michael Pavlovsky and this is my first public post. I hesitated for a long time: to make public posts or to continue private publishing. Eventually I decided to stop worry and start posting.