In my opinion the real-offensive element is actually the browser notification banner that gets attached to the media control popup. This is what I mean:
Both Chrome and Firefox notification banner attaches to this volume popup. Disable it like this:
Chrome
In Chrome address bar, type chrome://flags/
Then find the setting Hardware Media Key Handling and set it to Disabled.
Firefox
In Firefox address bar, type about:config
Then set media.hardwaremediakeys.enabled to false
Enjoy just the volume control bar without the ugly offensive banner!
Objective: You have multiple Visual Studio projects (using the same technology stack) under a single git repository and you need to manually add a .gitignore file.
Instead of copy/pasting an existing .gitignore file, let Visual Studio generate it for you.
2 Steps to Add the .gitignore File via Visual Studio
Inside Visual Studio, open your solution and click the tab “Team Explorer”
Then click “Add” under Ignore & Attributes Files -> Ignore File
Steps to add .ignore file in the Team Explorer tabAfter successfully adding the .gitignore file
This will add the .gitignore file in your root git repository folder. So you should not need to repeat the projects for other Visual Studio projects in the same folder (provided they are all using the same technology stack).
Windows: version 10 Sumatra PDF: version 3.2 64-bit
A dark mode for Sumatra PDF is really easy – you just need to tinker with 3 lines of code in the settings.
Why Use Sumatra PDF?
In my opinion, it’s the best PDF reader. It’s small in size, super-fast and doesn’t have any annoying cruft.
Why a Dark Mode (Night Mode)?
If you code for long periods of time, then it’s really great to have your code editor run in dark mode. This greatly reduces the strain on the eyes.
But let’s say you are also following along an e-book, maybe a PDF and you switch to Sumatra PDF. The default setting is black text on white background. Immediately your eyes are shocked with bright luminescent white light. It’s as if you were relaxing in a room with the lights switched off and suddenly someone walked in and abruptly turned the lights on.
As you are coding along you have to switch back and forth multiple times between your PDF reader and code editor. It can be really jarring for the eyes and nerves.
How to Enable Dark Mode?
In Sumatra PDF, click on the Menu -> Settings -> Advanced Options
This should open the SumatraPDF-settings.txt file in your text editor. Change the following 3 lines under the heading FixedPageUI:
TextColor changes the text color of the PDF document. Background color changes, well the background color of the PDF document. GradientColors will change the background window of Sumatra PDF.
You may have several version of the JDK installed on your machine. By default you may be using JDK 11 or even 13, but GlassFish requires JDK 8.
Issue
Running asadmin generates the following error
Exception in thread “main” java.lang.NullPointerException at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:128) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:120) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:194) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:200) at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:64) at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:193) at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:231) at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:207) at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:347) at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:282) at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:33)
Fix
Edit: ~\glassfish\config\asenv.bat Assuming JDK 8 installation path is C:\Program Files\Java\jdk1.8.0_241