Using URLSearchParams in IE 11

Microsoft Edge has been around for a while, but IE 11 is not dead! There are people in the real world who still use IE 11, so the development process especially JavaScript implementation has to account for it.

While there are many Github projects and NPM packages providing Polyfill for URLSearchParams, the easiest way to use it is using a CDN link to one of the Polyfill implementations. Here is one from:

Then link from your code like this:

<script src=""></script>

MySQL Workbench 8.0 – Set the Default Time Zone

MySQL Workbench 8.0.19
MySQL Server 8.0.19


Here is a single screenshot summary of the actions you need to take in 6 labelled steps to change the time zone via MySQL workbench:

Detailed Steps

A detailed list of steps follow below.

Step 1 & 2

Either click from the main navigation menu -> Server -> Options File:

Or from the left navigation Administration tab -> Options File:

Step 3, 4 & 5

Then under General tab scroll down to the International field set, then locate the default-time-zone field, set it to your preferred zone:

Step 6

Then click on the Apply button:

You will get a confirmation box, hit the Apply button.

Directly Edit Config File my.ini

An alternative would be to directly edit the my.ini file and set the property:

default_time_zone = +8:00

In Windows 10, you can find the file here:

C:\ProgramData\MySQL\MySQL Server 8.0\my.ini

Set the JDK Path in GlassFish

GlassFish version: 5.1.0
Windows version: 10


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.


Running asadmin generates the following error

Exception in thread “main” java.lang.NullPointerException
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(
at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(
at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(
at com.sun.enterprise.admin.cli.CLICommand.getCommand(
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(
at com.sun.enterprise.admin.cli.AdminMain.doMain(
at org.glassfish.admin.cli.AsadminMain.main(


Edit: ~\glassfish\config\asenv.bat
Assuming JDK 8 installation path is C:\Program Files\Java\jdk1.8.0_241

Add the line:

set AS_JAVA=C:\Program Files\Java\jdk1.8.0_241

How to Disable Windows Volume Popup

You are working on code or writing something important, you are in the flow, you reduce or increase the volume a bit for the perfect sound-level and pops-up this ugly big annoying Windows 10 volume control disrupting not only your thought process but captures the screen real-estate for 5 seconds before it fades away.

This is down-right evil and will no longer be tolerated 🙂
Well thanks to Marcus Venturi there is a way to disable this.

Download and install the small (about 300 KB) software “HideVolumeOSD” from his site at:

It lives happily in the tray or you can hide it completely and it will disable the volume popup.

Maven Error Return code is: 501, ReasonPhrase: HTTPS Required

Windows 10
NetBeans 8.2
JDK 1.8.0_241
GlassFish Server 4.1.1
Maven 3.0.5 (bundled with NetBeans 8.3)


In NetBeans IDE, trying to run a Maven project on GlassFish generates the following Maven Error:

Return code is: 501 , ReasonPhrase:HTTPS Required


Effective January 15, 2020, the Maven Central Repository no longer accepts non-SSL HTTP connections. You have to use TLS, i.e. the HTTPS protocol. Upgrading to a more recent version of Maven resolves the error.


Use a non-bundled recent version of Maven installed on your system. Download directly from the Maven site and install on your system.

Then in NetBeans 8.2, go to Tools -> Options, then select the Java tab and then the Maven tab:

Note the outdated version. Click the drop-down box and select the stand-alone version that you installed.

Upgrading to the later Maven version, for example 3.6.3 resolves the error.

Cannot run program “cmd”, Malformed argument has embedded quote

Windows 10
NetBeans 8.2
JDK 1.8.0_241
GlassFish Server 4.1.1


While trying to run a Maven project, the following error is generated in NetBeans IDE:

Cannot run program “cmd”, Malformed argument has embedded quote


C:\Program Files\NetBeans 8.2\etc\netbeans.conf

Append to “netbeans_default_options”:

For example:
netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Djdk.lang.Process.allowAmbiguousCommands=true”

The cause of this error is due to the Java update mentioned here: