How to log out from Facebook when the menu doesn’t load

The problem: The menu on the Facebook website does not load, making it impossible to log out

Facebook menu not loading

Simple solution

Open Facebook’s mobile website or the basic version of the mobile website. Find the log out link (in the hamburger menu on the mobile website or at the very bottom of the basic website) and click on it:

Facebook mobile basic footer

Windows applications: User interface controls too small on high DPI displays

The problem: Controls are too small

You’re running an application on a PC with a high DPI display and some (or all) of the controls are too small. You do not want to change the system-wide scaling settings just to make this application more usable.

The solution: Change the app’s high DPI setting

Windows 10 allows you to change the high DPI settings for each application.

  1. Open the application.
  2. Right-click on the app icon in the taskbar.
  3. Right-click on the app’s name.
  4. Select Properties:
Opening app properties window from the taskbar

If this method does not work, locate the application’s folder and right-click on the application file (.exe), then select Properties.

  1. Select the Compatibility tab.
  2. Click on Change high DPI settings:
Change high DPI settings
  1. Check the Override high DPI scaling behavior checkbox and select a new setting from the drop-down list:
High DPI setting
  1. Confirm both open dialogs with OK.

System” should solve the issue of some controls being smaller than others), though the app will look a bit blurry. “System (enhanced)” will try to make everything look more crisp. You might want to try out all settings (and you may have to restart the app to see any changes).

You can find further information on the settings in this Windows Blog article under “End-user DPI-scaling improvements”.

Finding exported templates in Visual Studio 2019

The problem: Exported project templates do not appear in the “new project” dialog

You’ve exported a project as a template. You’ve made sure that “automatically import the template into Visual studio” was checked:

Still, the template does not appear in the “new project” dialog.

Possible solution

Make sure you’ve not made any selection in the “language”, “platform” or “project type” dropdowns:

After clearing the C# language selection, the export template appears:

In Visual Studio 16.1.4, it was also not possible to enter the name of the template:

However, this seems to have been fixed (works in 16.4.1).

Inside the Omron D2FC-F-7N microswitch

When my ancient Logitech G500 mouse stopped working properly, I followed these helpful instructions to bring it back to life. Now I know more than I ever wanted to know about the mechanics inside the Omron D2FC-F-7N microswitch.

Here’s a short video I made showing how it should work:

Inside the Omron D2FC-F-7N Microswitch
“10M” stands for 10 million operations. There’s apparently also a 20M version.

This is a photo of a working switch:

Working Omron D2FC-F-7N microswitch
The purple arrow points at the contact area that may require cleaning (opposite side as well). You do not necessarily have to remove the leaf spring to do this (I recommend leaving it in place). The green arrows point at the notches mentioned in the article linked above.

The following switches will not work as the leaf spring is not positioned correctly in one of the notches:

Omron DSFC-F-7N defective microswitch
Omron DSFC-F-7N defective microswitch
This one is particularly tricky as it is impossible to see the problem with the naked eye (it looks fine but should be in the notch above).

I recommend opening the switch from this side (compare label on your switch for orientation):

Opening Omron DSFC-F-7N microswitch
Just like me, you will most likely bend and dislocate the spring if you open the switch from the other end.

Finally, a photo with my finger shows why these are called microswitches (actually Omron uses the term “Ultra Sub Miniature Basic Switch”):

Omron DSFC-F-7N microswitch size
If you don’t like working with tiny parts you might be better off getting a new mouse.

Disclaimer: If your mouse has been in use for several years, you should seriously consider buying a replacement switch. I believe you could desolder the switch from the top by cutting it into pieces first (the plastic is rather soft). Replacements don’t seem to be available from electronic components distributors but are sold on Amazon.com (affiliate link).

I was only able to repair my mouse because I had another broken one from which I stole a leaf spring (from the less-used right switch). The original spring of the left switch in my mouse was badly deformed. Unfortunately I can’t show you any pictures because it flew away when I tried to bend it.