How to pass string constants in UglifyJS as define argument

If you need to pass the constant number or boolean values in UglifyJS –define option, it is very easy. The tricky part is passing the string constant. Here is a quick code snippet to show how to pass string constant. uglifyjs “test.js” –define STRCONST=’”hello is a const string”‘ –output “build.min.js” The correct sequence is single… Read More »

How to use UglifyJS conditional compilation with reduce_vars

UglifyJS supports conditional compilation using the “–define” argument. Even though this option is good enough, it “looks” messy. The command prompt argument becomes too long and making an addition to the constant feels dreaded. Here is a quick way to use separate js file to define all your constants and use it in subsequent files.… Read More »

Disable SuiteCRM Email Notification

Here is a quick way to disable SuiteCRM email notification. Please note that the following option will disable all the notifications from all the modules and not only the selective modules. This is useful when you are the only one using the CRM and don’t want to be notified. This is tested on SuiteCRM version… Read More »

How to enable CDN in DNN (DotNetNuke) 9?

I could not UI to enable CDN in DNN (DotNetNuke) 9. I used SQL script in order to make a change. These settings are host level changes and affects all the portals. Once you make the change, you need to restart the application in order to make it effective.

How to disable popup in DNN (DotNetNuke) 9?

I could not find UI to disable popup in DNN (DotNetNuke) 9. I had to resort to SQL script in order to disable popup. Here it is.   Once you make the change, you need to restart the application in order to make it effective.

Randomize variable names each time UglifyJS runs

If you are using UglifyJS to uglify your JavaScript code, you are using it only to serve a single purpose – to make it hard for anyone to peek into your code. But if you have minor changes to the code, variable names still come out pretty much same. It is extremely easy for someone… Read More »

Basic tutorial to customize Bootstrap 4

Here is an extremely basic tutorial that will help you setup the environment to customize Bootstrap 4 for your needs on Windows machine using Node.js and npm Development Environment Windows 10 Node.js npm This tutorial is created using Bootstrap 4.1.3 which can be downloaded from https://getbootstrap.com/docs/4.1/getting-started/download/. Customization Extract the zip file anywhere within your computer… Read More »

Commands for using standalone 7-zip to split and combine zip file

What is standalone 7-zip? It is a single executable that can be used to zip and unzip files without installing 7-zip on a machine. How to get standalone 7-zip? Visit the page https://www.7-zip.org/download.html and download “7-Zip Extra: standalone console version, 7z DLL, Plugin for Far Manager” Command to create a zip and split it based… Read More »