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?
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 firstname.lastname@example.org:/home/files
Continue reading How To Transfer Files To EC2 Server/Linux Host
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.
- 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
First you need to connect to your Amazon EC2 instance with SSH, you can do that by using PuTTy on windows and Terminal on Linux or Mac. Once you’re connected to EC2 server, issue the following commands to install MySQL. Continue reading Installing And Testing MySQL Server On Amazon EC2 Server
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