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
Install nodejs on CentOS
I'm using a Centos 7.1 on Azure. Node.js is not there in default repo for CentOS via yum. But you can get it using EPEL. After you install EPEL you can get nodejs. And don't forget npm!
List methods from a source file
CLI package installation on Cygwin
Cygwin officially gives a vague answer about where there is a command-line installer for it or not. A quick search gave two options: cyg-apt (last updated in 2009) and apt-cyg (currently maintained). I'd try apt-cyg. And you are all set. If you do not have wget, install it. Cheers!
(Failed attempt to) Set up Flow (Static typechecker for JS) on Windows 8.1
Flow is not officially supported on Windows. So I'm trying to set it up on my machine. Flow uses OCaml; it is easy to get OCaml on Windows with Cygwin. Even the Cygwin setup has option to select OCaml. First git clone flow from their source: https://github.com/facebook/flow using Failed with error: 'i686-w64-mingw32-gcc' is not recognized … Continue reading (Failed attempt to) Set up Flow (Static typechecker for JS) on Windows 8.1
Setting up NODE_PATH for using global packages via require(…)
Set NODE_PATH to %USERPROFILE%\AppData\Roaming\npm\node_modules
git push heroku master; server sent publickey
Recently I have been having some trouble with heroku git push from my Windows PC. Whenever I run, I an stung with this message: PuTTY Fatal Error No supported authentication methods available (server sent: publickey) I have tried several things like adding keys with heroku keys:add etc. Finally, following helped: Apparently, meta about remote was … Continue reading git push heroku master; server sent publickey
Oh Facebook! plz serve me with better ad
There is an ongoing wave of discussion about Facebook privacy policy update. Apparently, people are more concerned about Facebook policies than Google's policies while they should be more worried about Google's. Now, a lot of so called privacy advocates tell that corporations are selling "you" to make money. Now what is the premise here? Facebook, … Continue reading Oh Facebook! plz serve me with better ad
The 3 rules of variables
Here follows the 3 rules of variables: a variable shall be declared as late as possible a variable shall be initialized before its first used a variable shall not be initialized with a meaningless value originally posted on Quora
Names on NASA’s #JOURNEYTOMARS
What is linked list and how pointers work?
Today, I was talking with one of my friends about how we studied data structures in freshmen/sophomore years and how some troubled in understanding pointers. Joel probably says that, it is an aptitude that not everyone can have. So, just then an analogy for linked list hit in my imagination and my friend told me to … Continue reading What is linked list and how pointers work?
Anguish of BANGLA (script) lost amongst English (alphabet)
Once, I made LikhonPad for phonetically typing Bengali (type using English keyboard and let it convert to Bengali). I never liked phonetic typing, so I ended up building Sonnivo - a very QWERTY like Bengali touch typing keyboard layout. Meanwhile, Avro (a smart phonetic typing tool) became much popular and let Bengali people write Bengali … Continue reading Anguish of BANGLA (script) lost amongst English (alphabet)