How to install ColorThief in a NodeJS project?

ColorThief is an incredibly cool library that not only gives you dominant color of a given image but also generates a color palette out of it. However, trying to make it work in a NodeJS project can become devilishly hard because of its dependencies which go beyond the realm of NPM. Here I’m sharing the steps I went through, so you don’t have to repeat the struggle. Note that my steps are for OSX, so you’ll have to translate them yourself if you’re on a different platform.
Continue reading How to install ColorThief in a NodeJS project?

How To Transfer Files To EC2 Server/Linux Host

You can transfer file to an EC2/Linux host via SCP. For that you first need to have the private key file downloaded on your system. Once you have it, open the terminal window and issue the following command.

scp -i mykey.pem somefile.txt ec2-user@ec2-123-45-67-89.compute-1.amazonaws.com:/home/files

Continue reading How To Transfer Files To EC2 Server/Linux Host

Access MySQL Hosted on Amazon EC2 Server Remotely

If you have a working MySQL server hosted on Amazon EC2 and you want to access it remotely with a MySQL client, then follow these steps.Amazon_MySQL_logos

  1. Access you EC2 server via SSH. You can do it with PuTTY on windows and by using Terminal application on Linux or Mac. For a step by step tutorial go here.
    Continue reading Access MySQL Hosted on Amazon EC2 Server Remotely

Connect To Remote Machine Via SSH Using Windows, Mac Or Linux

I needed to connect to my hosting service via SSH today, it was problematic but eventually I got hold of it. Here is how you can do it. There are different ways to do it on Windows system  and on Unix based or Mac systems.But before that, SSH access must be enabled on remote machine. If you are trying to connect to a hosting server, SSH access by default would be disabled and you may have to request them to enable it first.

Once, you’re sure that SSH access is enabled, Follow the below mentioned steps to connect to your remote machine via SSH. Continue reading Connect To Remote Machine Via SSH Using Windows, Mac Or Linux