Webmin: How to change the size of Swap?

Even after searching on internet, I could not find a way to change the Swap size. Various online tutorials only showed us how to create swap space but did not explicitly address how to change the size of swap space using Webmin. Ofcourse, this tutorial does not use Webmin but instead it uses commands against… Read More »

mailto Invalid URI: The hostname could not be parsed.

If the uri is “mailto”, the uri format must be “mailto:myemail@somedomain.com?subject=Application Feedback&body=Hi there, I really liked your app.”. I encountered an error “System.UriFormatException: Invalid URI: The hostname could not be parsed.” and it was difficult to find the root cause. Finally I found that I used “&subject” for the first parameter instead of “?subject”. Once… Read More »

CsvHelper – Cannot write to a closed TextWriter.

If you are using CsvHelper and get the error “Cannot write to a closed TextWriter”, here is a solution. You are trying to reuse the same underlying stream to write using CsvWriter   instead, you don’t want to close the underlying stream so change your code to “true” parameter will leave the underlying stream open

CPPAN – You have spaces in the storage directory path

I am using space in my username and when I tried to use CPPAN, it showed following error. You have spaces in the storage directory path. CPPAN could not work in this directory: ‘C:\Users\[USER NAME]\.cppan\storage’ Searching online did not yield any result and gradually found this link (https://github.com/cppan/cppan/blob/6412cba134147c5c8a5da424dd72ea62e779e4b1/doc/faq.md) which shows how to change storage directory… Read More »

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… Read More »

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… Read More »