Window Losing Focus

Blogs, LabVIEW Blog, Snippets
TLDR: When any window in Windows OS loses focus after closing a dialog, the best method that works for me to get back to normal behavior is by killing the explorer.exe from the task manager. For safety, I keep the command prompt open so that I can reopen Windows Explorer again if it doesn't reopen automatically. Just pass the explorer.exe command in the command prompt. Quite a few times, I found while working in LabVIEW that when I open some dialogs like VI properties or LabVIEW Options and close those dialogs, focus is lost and my Ctrl+Space or Ctrl+W doesn't work in the previous window I was working with. Initially, I thought it was due to some bug in LabVIEW, but later found that Windows Explorer is taking on some…
Read More

Compress-Archive Multiple Paths

Snippets
Today it took me a while to get this out working for multiple paths (or other words multiple files) to get compressed using Compress-Archive command. If you want to pass multiple paths to Compress-Archive command in PowerShell, give it with comma separation as in this video. https://youtu.be/4FlYiust4Bw
Read More

Native Windows Tools which makes my life easier

Blogs, Snippets
Multi desktop (Ctrl + Win-key + Left or Right arrows) The icon next to Search in taskbar. Task View button on Windows Taskbar Usually I keep 2 desktops in my work PC where one is for my personal works, after all most of the cloud services keeps us busy personally in office ? Two desktops - My preference is to keep one for work and other for personal The shortcuts I use for easy switching the desktops are Cntl + Win-key + Left or Right arrows to switch to the desktop on left or rightTrackpad gesture 3 fingers swipe left or right. (I guess I configured it a while ago in windows settings.) Clipboard History (Win-key + V) Historical Paste This helps me a lot. Once you copy the text…
Read More

Recover Files Using Window’s “Previous Version” Property

Blogs, LabVIEW Blog, Snippets
Have you ever encountered that due to some bug in your software the imporant file has been deleted or overwritten?  May be that file could be important data logged in the production or could be your old source code.  Do you know that windows has some capabilities to recover those missed files? Recently I encountered such issue.  My own holy software which passed through all unit test cases, somehow misbehaved in the production site.  It adds more awkward moment if customer sees that issue and says "OMG..! My data are lost..!  Where is my data?". A quick google search on recovering windows files gave me a relief that Microsoft Windows in itself has some recovery given that if the restore points are configured in that Windows.  Since it's production PC,…
Read More

SVN Error – Currently locked by other user

Blogs, Snippets
When this error happens in your Tortoise SVN Commit screen as shown below, then it means (I assume) that some time back that user had svn-locked that file and later deleted from SVN by using keep-lock in svn commit window (or in somewhere the keep-lock played badly). How to fix it then? Go to the logs of that folder in which that the file was locked as explained in error message above (in my case, I went to UserAccountAuthentication logs).  Look for the file in one of the recent revision as below, right click and choose "Browse repository". This should bring up the repo version when that file existed in repo.  In the repo browser, right click that error file and choose the "Break Lock".  This should break the lock…
Read More