Operating System: Windows 10 In an earlier article I posted how to How to Disable Windows Volume Popup, but that required a small 300 KB program to be installed. 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 [...]
Author: Sanjib Ahmad
Add Gitignore in Visual Studio
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 [...]
Upgrade Phoenix Framework
The following shows a minor upgrade within version 1.5.x. If you need to upgrade 1.4.x to 1.5.x, please see: https://gist.github.com/chrismccord/e53e79ef8b34adf5d8122a47db44d22f To upgrade a Phoenix project, edit mix.exs, look for the line (was upgraded from 1.5.1 to 1.5.4): {:phoenix, "~> 1.5.4"}, To upgrade the Phoenix installer itself, run in the terminal (example shows upgrading phx_new 1.5.3 [...]
Write a list comprehension that finds all the Pythagorean triples for right triangles with sides shorter than 100
Write a list comprehension that finds all the Pythagorean triples for right triangles with sides shorter than 100. A Pythagorean triple is three integers a, b, and c, where a² + b² = c². In Elixir it takes a line of code with pattern-matching to produce this. Note the 3 patterns below, nested loops, scary [...]
Write a function even_length? that uses pattern matching only to return false if the list you pass it has an odd number of elements, true otherwise.
Write a function even_length? that uses pattern matching only to return false if the list you pass it has an odd number of elements, true otherwise. This is a fun little exercise in Elixir. First we match a single item in the list (odd number) which is false. Then match exactly two items (even number) [...]
Dark Mode for Sumatra PDF
Windows: version 10Sumatra 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 [...]
XAMPP Upgrade Tasks
I usually have 3 simple and separate tasks for a XAMPP upgrade or any general development environment migration (for example when moving to a new Windows or Mac hardware). Moving the source codes, files and assets: copy the www folder with all the project source codes local virtual host domainsApache configuration: edit the httpd.conf and [...]
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 [...]
MySQL Workbench 8.0 – Set the Default Time Zone
MySQL Workbench 8.0.19MySQL Server 8.0.19 Summary 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 [...]
Set the JDK Path in GlassFish
GlassFish version: 5.1.0Windows version: 10 Motivation 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.NullPointerExceptionat 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 [...]