If you are developer, you should never use anything related to current directory. If you do, then with almost 100% probability you will regret that you did. Let me explain why you should never use it.
Current directory is state of your process. And it is not read only. Some code in your process can change it. And imagine you tested your code and made sure that it is safe to use current directory in that particular place. But tomorrow you or someone in your team will refactor this code and move it in different part that it is not safe. For example, move that code to function that executes in different thread or threads. Good luck debugging that.
But
[...Read More]
It amazes me again and again when you didn’t change anything, but things started to work differently.
That what happened to me recently. Few days ago, I realized that in many places’ popup menu popped up to the left from mouse pointer like on the picture:

This was picture from Outlook, but other Office applications works the same.
At first it looked strange and unusual. I didn’t pay much attention but with time it became a bit annoying. My muscle memory tells me that something is wrong, but brain continues and clicks on menu in unusual place.
Then I started to see it on my work PC. And finally, I decided to
[...Read More]
This is interesting story about problem I was able to solve and how correlation does not always imply causation.
Ok, sometime ago my wife dropped her iPhone and broke screen. Initially I thought to repair it via 3rd party service but at the end I went to Apple and for $120 they did replace screen. And as story unfold you will see that it was totally worth it.
Few days later after Apple fixed screen (and it took only one hour) my wife started to complain that phone is started to freeze for few seconds. And after few days it became quite bad. So, I did backup phone and my wife went to Apple and they simply replace phone to
[...Read More]
At the beginning I would like to clarify on details of Windows message queue. Many people believe that InvalidateRect function (or any other action that makes your window have update region) will actually post WM_PAINT message into message queue. Similarly, they believe that any mouse movement will leads to insert of WM_MOUSEMOVE (and corresponding messages like WM_HCHITTEST). But in reality, it is quite different (unless there is call to PeekMessage with PM_NOREMOVE). It is not important from processing these messages but very important to understand these details to troubleshoot any problems.
When part of window is invalidated Windows will simply set flag that indicates that window needs painting and that’s it. There is nothing inserted at message queue at all.
[...Read More]
Today I accidentally found solution for problem that annoying me for years (literally). And I would like to share it.
Problem
Problem was that I cannot print anything at my work from Microsoft Word and Firefox. I use Firefox as my main browser and sometimes (not that often) I have to print from Microsoft Word. And there is no error or similar. Just printer icon pops up for few seconds stating that there is nothing to print and that’s it. I can print from PDF viewer or from another browser but not from Firefox. And it was annoying me a lot. Few times I did something important in Firefox that I have to print, and I cannot open it on
[...Read More]
Because I’m IT guy in family usually I have to fix everything related to computers. And once I have to do something on notebook with Windows 10 Home. To be honest I hate working on notebook. They all have different keyboard and trackpads, so it is taking a lot of time to get used to. They are slow and have single small screen. So, I decided to be smart and to use my home computer to connect to that notebook via Remote Desktop. But then I found that Windows 10 Home edition does not have support for Remote Desktop. Huge disappointment. But I didn’t give up. After searching internet, I found nice solution.
There is project
https://github.com/stascorp/rdpwrap/blob/master/README.md that can
[...Read More]
Today I decided to install iCloud for Windows. Recently I write article about backing up Apple devices to iCloud without photos and I thought that perhaps iCloud app allows to manage it better or save some time. Anyway, I downloaded it and started installer just to see that my Windows 10 is too new for iCloud for Windows and it requires older version. That was weird and decided to investigate it.
After some investigation I found that it is possible to install with some tricks, but application actually does not work on Windows 10 October 2018. And that’s exactly version I have. Something is wrong here.
What is great about Microsoft Windows that they spend enormous amount time on compatibility.
[...Read More]
Right now, I’m paying $3 per 200 GB for Apple’s iCloud (next one $10 per 2TB of data). But I also have Microsoft Office subscription that cost me $10 per month (or $8.3 if I’m paying yearly) and I got 6 times 1TB of data and 6 times Microsoft Office. As result even without Office it looks like much better deal. All Apple devices in my family have about 1TB of data combined so to backup them into iCloud will cost me $10 per month. But I already paying for Office and paying another $10 sounds like waste.
Currently backup only photos and videos as most important data and everything else is pretty much not and I don’t like it.
[...Read More]