Last year I participated in a Career Day at school to show what Software Developer is and what they do. I created PowerPoint to make it interesting for the 1st grade kids. Presentation ended with an interactive programming session in which kids programmed a dumb robot i.e. me to complete a task of throwing a […]
Category Archives: Tricks n Techniques
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.
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 […]
If you have a big file that you want to send to hundreds of computers, you may use copy or xcopy commands but in certain scenario, it may not work. For example, on slow internet, when you start copying the file and for whatsoever reason the copy fails, the (corrupted) file with exact size still […]
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 […]
If you have data with multiple space characters and you wish you could replace all the multiple spaces with tab characters (I bet you want to paste it into Excel), here is a quick trick – Use RegEx in Notepad++.
I have a scheduled task on my Windows 10 machine and some days I observed that it did not run. Once it missed the run, it would not run forever till I manually kick off the job again. On internet, I could not find the answer so after trial and error, I found that the […]
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 […]
Simple way to fix HP laptop touchpad sensitivity issue after Windows 10 upgrade