Category Archives: Tricks n Techniques

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. 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 path. All you have to do is open “C:\Users\[USER NAME]\.cppan\cppan.yml” and change the “storage_dir” value to your […]



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 […]




CKEditor 4 Custom Plugin Development Tips for PRO

I am developing a complex CKEditor plugin for typing in 23 Indian languages based on my PramukhIME JavaScript Library. If you are developing a complex plugin, CKEditor documentation is of little help. Here are some tips on what to do when you need certain features About PramukhIME JavaScript Library PramukhIME JavaScript Library is a highly […]


Prevent form submission while opening bootstrap modal dialog

Bootstrap makes it easy to open the modal dialog upon the button click. HTML code will automatically take care of lots of modal dialog activity behind the scene. I encountered a strange situation where the same code would work in the HTML page but not in the aspx page. The issue is, if I click […]