In an effort to revamp my websites, I have ventured into looking at current state of the CSS art. I have been picking up Bootstrap by default for more than a while. At some point, I was very impressed by Metro/Modern design language that Microsoft was adopting and thus used Metro UI CSS 2.0 for my … Continue reading Styling with CSS in 2018
Today I was trying to add a comment section in one of my GitHub pages site. Turns out it is very easy. All you have to do is sign up a disqus account and head here. Then add the following text in _layouts/default.html: https://gist.github.com/nafSadh/75a614b5b7583f1650e528a6bbd880a0 Use the following front material on the page you want the … Continue reading Disqus + GitHub pages
git config --global credential.helper cache
As we have seen in last couple of centuries, every few long decades the world undergoes some kind of stability shift. This may mean a shift in how government works, or how economy works or can be a change is global power dynamics, as we have most recently seen with the conclusion of cold war … Continue reading Culmination of next stage of world stability
This is essentially a bookmark post. Many awesome people out there create wonderful visualizations, often about sorting; and they are very pleasing to stare at. This is from a redditor, morolin: This famous one is from Timo Bingmann, a doctoral student at Karlsruhe Institute of Technology:
Today I needed to find the number of commits per file in a directory. Doing that by going into each files' mercurial log and counting manually is a incredibly boring chore. But, the following PowerShell script came to save my life: If gist embed is not working above, click here.
Most high-level languages has built-in or standard library support to read from URL. Reading resources from web today as ubiquitous as reading from files. https://gist.github.com/nafSadh/d707b9e507c42c990625dfe50f4af67a originally posted on Quora
I liked the describe MyTable in MySQL and missed it on SQL Server when I started to work with it. Turns out, there is a way to do the same there as well: This is not exactly the same as describe MyTable but it serves similar purpose.
There is an irony about fondness of language in a programmer’s life. I am not very particular about any programming language, I can read and understand and code in quite a few of those. But, my affection is not same for every language I know, and there is the irony. My favorite language is C++. … Continue reading Irony of language fondness
When you start a Node.js server simply using node app.js, the server stops as soon as the shell session is killed. But if you want to keep you server running, as a server would naturally should, you need some way to keep the server proc alive. Forever is seemingly a popular choice for running a … Continue reading Running Node.js app as a service forever
It is easy to use Node.js on a CentOS VM running on Azure, or any other linux VM on Azure. You can simply yum (with EPEL) install Node.js. Then an easy way to check if everything is working fine, a good idea is to test running a server from node. I am using this simple … Continue reading Node.js server on Azure