My blog has moved!

You should be automatically redirected in 6 seconds. If not, visit
http://kavachai.com
and update your bookmarks.

Thursday, January 29, 2009

The most unexpected explenation of delegates I've ever read

Once upon a time, in a strange land south of here, there was a worker named Peter. He was a diligent worker who would readily accept requests from his boss. However, his boss was a mean, untrusting man who insisted on steady progress reports. Since Peter did not want his boss standing in his office looking over his shoulder, Peter promised to notify his boss whenever his work progressed.


To read full story follow the link .NET Delegates: A C# Bedtime Story.

Wednesday, January 28, 2009

Mistical trojan mmmsfusf.dll

Two days ago for some reason my computer stopped working as expected. Every time I was open results of Google search a page to arclane.com opened. I scaned computer with antivirus and took a look in internet. But it didn't help much. Unfortunally I didn't have much time and decided to come back to the problem at the end of this week.

And guess what happened today? A compete nightmare every time I used my internet browser (which is IE 5) it took forever to open a page. Just like in old times of dial-up.
I couldn't live with such a problem even a day. After some inverstigation I found a dll called mmmgfwgf.dll in my system32 directory. Creation date + strange name + search in google.com = looks like it is my problem. And again I found just a little information. Actually I found just one link: http://www.threatexpert.com/report.aspx?md5=4d013b3b1e327cc9582acc74f65ac150. It explains what this, but there were nothing about repairing the system.

My first try to remove this trojan finished with the crash of system. Fortunally I created an image before starting experimenting.
Second try was much better:
  • First of all I used CopyLock to remove mmmsfusf.dll from system32.
  • Then I changed value of "AppInit_DLLs" registery value that is located in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows". I simply removed path to mmmsfusf.dll from it.
  • And finally I removed "HKEY_CURRENT_USER\Software\Microsoft\WinPathCRC" key.
And I can work again!

Friday, January 16, 2009

Couple of words about Adobe Reader odd behavior

I guess almost everybody use Adobe Reader to read pdf documents. I'm the one of this army of users.

Recently I've detected one strange behaviour of this product:
  • Sometimes I close my laptop while using Adobe Reader in maximized window. This results in going to sleep mode for the a display (laptop itself operates as usual).
  • When I open laptop, for some reason Adobe Reader doesn't use maximized window although the its window covers all client space on the screen. This is pretty strange, because all other applications does not have such a problem.

I'm using Dell Inspiron 6400 and Adobe Reader 8.

Saturday, January 10, 2009

Using VMWare on computer with wide screen

I'm using VMWare for development for years now. I started using it when I had to work simalteniously on several projects that required different versions of same development tools.

I liked it very much so later on I decided to use VMWare at my home laptop as well. But with the great benefit one issue arised. I used to work in my virtual machines using full screen mode. The thing is that at my work I had a PC with regular 4:3 display (at least it was regular size four years ago), but my laptop has a widescreen. For some reason resolutions for widescreens are not available in virtual machine (in my case it should be 1280x800).

After some surfing in the Web and several trials I finally found a solution that works. Today I set up new VM from scratch and ancountered same issue. So I decided to post this solution on the Web. I hope this will help you to save some time solving the same issue.

Here is the solution:

  1. Start your virtual machine.
  2. Run "Registry Editor" (Start > Run > regedit.exe) in it.
  3. Select the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vmx_svga\Device0.
  4. Add a new string-value key for the desired resolution (RightClick > New > String Value) using the form of Resolution.x for the value name. For example: Name = Resolution.0; Value = 1280x800.
  5. Exit "Registry Editor".
  6. Shut down your VM.
  7. Add max width and height to "vmx" file of your VM as follows: svga.maxWidth = "1280" and svga.maxHeight = "800". Just open this file using Notepad and add strings at the end like this:
  8. Uncheck autofit for the guest in VMWare (View > Autofit Guest).
  9. Start your VM and set new resolution in "Display Properties".