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

Aptio AMI BIOS – Auto Power ON

Blogs, Snippets
Recently I purchased Trigkey Mini PC and found it hard to set it to auto power on as there are very less documents. Later I found from a Facebook Post that the terminology used for such a setup is different. They use the G3 and S0-S5 keywords instead of lucid terminologies. So to set the Aptio AMI-based PC to Auto Power ON State go to Enter BIOS >> Chipset >> PCH-IO Configuration >> State After G3 and set to S0 State S0 is Auto Power On State S5 is Off State Other State details can be found at this link
Read More

Pipeline: Repository Variables in GitHub Bitbucket for Version Info

Blogs, LabVIEW Blog, Snippets
Recently I've been working a lot with pipelines to automate the build aspects of a LabVIEW framework development and it's quite interesting how it all takes in various directions. To be frank, I think there are too many options when you come into this world from a fixed monolithic application world. Anyways a new learning today is the repository variables used as version info. LabVIEW Project & Version Limitation When it comes to LabVIEW (or maybe in other environments too, I'm not sure), you can save the version info of a built config only to the source file, ie., .lvproj in the LabVIEW case. You can't change this version info in the .lvproj file after your build server builds the executable because you usually don't want the build server to…
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

Reposting Company Posts on LinkedIn

Snippets
LinkedIn doesn't give the option to repost your company post (esp. when you're company admin). One other way to repost the company post is Go to the specific post in the company timeline.Click on the three dots and choose Copy link to postOpen the link in the browser after you have logged in to your regular LinkedIn profile.Boom! There you have the repost option from your profile page.
Read More

Windows 10 Trackpad Gestures in Boot Camp MacBook Pro

Blogs, Snippets
When I installed Windows 10 on my MacBook Pro, I was devastated when I noticed I couldn't use the touchpad to its fullest since it showed only one option in Windows Settings without any precision settings. Later I found we need to upgrade the Boot Camp software to be beyond v6.1.15 to get the trackpad working. Hope this helps someone. Strangely Apple Software Update doesn't update the BootCamp to the latest version in a single shot. First I had to install v6.1.13 and v6.1.14, do a restart, then later redo the update to get Boot Camp version v6.1.17 v6.1.19 Apple Software Update - Boot Camp v6.1.17 v6.1.19 After a reboot, it gives the Precision Touchpad option in Boot Camp Control Panel. Boot Camp Control Panel with Precision Touchpad option Then…
Read More

Changing Page Layout Doesn’t Reflect in PDF Printing

Blogs, Snippets
For quite some time it was strange to see some unnecessary margin borders in the PDF printing like below. A4 Page layout in Microsoft Word prints with some extra margins in the PDF The reason for this inappropriate printing is there is another layer of printer properties that control how the printer actually prints. In the printer settings, there is another page property which overrides the A4 page property that's set in MS-Word To fix the printer property (Microsoft Print to PDF printer in this case), go through the following in image below. Windows Settings → Printers & Scanners → Select Printer (Microsoft Print to PDF in this case) → Printing Preferences → Advanced → PaperSize → Set your required paper size that matches Page settings in MS-Word
Read More

Refreshing LinkedIn Post Thumbnails

Snippets
LinkedIn updates the images or text from the link for the first time and later when those links are updated with new images, it still doesn't update. To refresh it, use LinkedIn Post Inspector where you can drop your link to refresh. Now when you go back to your post, you may find its images and relevant text from the link is updated. I didn't have the dragon in the LinkedIn post before and after updating the blog with the dragon image, the post didn't update. After dropping the link in the post inspector, the dragon got updated. Image in a LinkedIn post updated after post inspector
Read More

Adding Alias Email to Gmail

Blogs, Snippets
We can send proxy emails from Gmail with other email addresses. You need to verify that another email address is your own in order to do this. I use this service to send email as if I'm sending from another Gmail itself. Recently Google has stopped the authentication of this kind of less-secure apps. However, there is another way to achieve it is via using the google app passwords that allow temporary password generation to connect from less-secure apps. Steps to add alias email in this new method Generate the password from your App PasswordsGo to Gmail settings --> Accounts and Imports --> Send Mail as: --> Add another email addressEnter your Name and Alias's Email address on the first pageEnter Google SMTP (smtp.gmail.com), Google ID, generated passwordVerify the code…
Read More

Renewing Bitnami’s Let’sEncrypt SSL Certificate

Blogs, Snippets
I use Bitnami wordpress and it comes with built in Let'sEncrypt SSL option for secured website. Previously I used to install this Let'sEncrypt independently, but in past few years this free SSL certificate comes preinstalled in Bitnami image. Recently, the certificate got expired and I found this thread with simple steps below to renew it Step 1: Stop the running script Run below command to stop the running script. sudo /opt/bitnami/ctlscript.sh stop I couldn't find the ./opt/ folder, so I went inside ./stack/ctlscript.sh Step 2: Update the certificate Run the below script with correct EMAIL-ADDRSS and DOMAIN (xyz.com) to which you need the certificate. sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew --days 90 Step 3: Restart the script Finally start the server with the command below. sudo /opt/bitnami/ctlscript.sh start
Read More