Regular Expressions In JavaScript

In my first post regarding Regular Expressions (regex), we discussed the basic syntax of regex, its importance and how they are used along with a few examples. I strongly recommend reading that post first if you are completely unfamiliar with regex. Otherwise, lets move on.

This tutorial will not cover what regex are, what are their benefits and the basic syntax. For that refer to my previous post. But this tutorial will

Regular Expressions For Beginners: Lesson 1

A regular expression defines a search pattern for strings. This pattern may match one or several times or not at all for a given string. The abbreviation for regular expression is regex.

Regular expressions can helps in

  • Searching and pattern matching
  • Text replacement
  • Collecting information ( word count, no. of spaces, no. of lines)
  • Available in almost all languages (Perl, PHP, Java, .Net, JavaScript)
  • Many default operating system programs support regex ( grep, windows search). Some other programs like syntax highlighters and Eclipse Search also use regex power.

Continue reading Regular Expressions For Beginners: Lesson 1

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