Knowledge.ToString()

  • Get font character bounding box using opentype.js

    If you would like to get the bounding box details of any font character using opentype.js, here is a working example. Dependency: JQuery Opentype.js FORTE.ttf font (or you can use any font) Make sure you make appropriate change to Url to load above mentioned resources from the following example.

    |

  • Git GUI: How to unstage individual staged file

    Here are two ways to unstage individual staged file using Git GUI. Option 1 Select individual file under “Staged Changes” which you want to stage. You may use Shift or Ctrl keys to select those files. Once selected, click on “Commit” menu and select “Unstage From Commit” It will stage the selected files Option 2…

    |

  • Git GUI: How to stage individual unstaged file

    Here are two ways to stage individual unstaged file using Git GUI. Option 1 Select individual file under “Unstaged Changes” which you want to stage. You may use Shift or Ctrl keys to select those files. Once selected, click on “Commit” menu. Select “Stage To Commit” It will stage the selected files Option 2 Click…

    |

  • 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. The correct sequence is single quote + double quote + your string + double quote…

    |

  • 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.…

    |

  • 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…

    |

  • How to enable CDN in DNN (DotNetNuke) 9?

    I could not find 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.

    |

  • List of all available menu options in DotNetNuke (DNN) 9

    DNN 9 admin panel is a drastic change from previous version. I personally find it difficult to remember various options and where to navigate to. Here is a quick list of navigation to quickly find the option

    |

  • Randomize Variable Names Each Time UglifyJS Runs

    Why Randomize Variable Names? 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. So it…

    |