How To Setup MySQL Replication

In this tutorial, I will provide step by step process to setup MySQL replication. We will create one master and one slave. We will use two CentOS 6 servers - one for master and the other for slave. This following steps have been tested on two virtual machines.

Our master server will have IP address
Our slave server will have IP address

You might want to run SELinux in permissive mode.

Perform these steps on the master:

Install MySQL server.

yum install mysql-server -y

Why Unspectacular Firefox OS Is Good For Low-End Phones

Mozilla Firefox has finally launched its own browser-based mobile system, which seems like a credible option for companies emerging with their phones and intending to keep them low-end. For a much savvy audience however, the system is not exactly what they are looking for especially when iOS and Android are still leading the mobile technology market. However, in markets where phones with great features still take up a major market share, Mozilla Firefox combined together with a Blackberry SIM can become successful with its technology. With the promise to improve their system with time to match their rivals, Firefox is all set to attract investors and partners to support it in its venture.

Why Is It Good?

The system is almost similar to that of Android and iOS which makes its use quite simple, especially for those who have some experience of using a smartphone. The familiar app structure presented in a grid form, swiping from left to right presenting different apps is just the same as in iOS. A calling and messaging app, camera and Firefox browser is a permanent fixture at the lower end of the screen. A search app is also available which is quite different from that of the other OS due to the fact that it is a browser-based system. Searching on this app can not only provide results from within your phone but also from the Firefox Marketplace and the Web.

Taxonomy upgrade extras: 

Where We Can And Where We Must

  1. Python where we can, C++ where we must.
  2. CLI where we can, web where we must.
  3. Use available software where we can, write our own where we must.
  4. Open source software where we can, proprietary software where we must.
  5. Upstream where we can, patch where we must.
  6. Bash where we can, others where we must.
  7. Nginx where we can, Apache where we must.
  8. JSON where we can, XML where we must
  9. POST where we can, GET where we must
  10. REST where we can, RPC where we must

How To Install RapidSSL SSL Certificate - Nginx Server

In this article, I will describe how to use the SSL certificate provided by RapidSSL with Nginx server.

openssl is a command line tool to use various cryptography functions.

The req command of openssl provides PKCS#10 X.509 Certificate Signing Request (CSR) management facilities.

We will generate a new certificate request for the domain .

openssl req -new -nodes -keyout -out
Taxonomy upgrade extras: 

How To Comment Several Lines Quickly Using VIM

If you have to insert comment on several lines do you do manually insert the comment character in every line? Stop. Vim is a really good editor and has a nice feature to accomplish this quickly. Here are the steps:

  1. Enter visual blocking mode by pressing CTRL V (CTRL key and the lowercase v).
  2. Make your selection using motion keys(jklm, etc).
  3. Press I(uppercase I) to enter block insert mode.
  4. Press #, the comment character.
  5. Press Esc key. The comment character # will be inserted on each line the visual block selection.
Taxonomy upgrade extras: 

How Many Seconds Are There Till End Of Month?

(datetime.datetime(,, calendar.monthrange(,[1]) -

There's a log going on in that one liner. Let's break it down.

The two key Python modules we need to calculate the number of seconds till the end of year are datetime and calendar.

calendar.monthrange(year, month) returns a tuple. The tuple's second element is the number of days in the month.

We create two date objects:

Taxonomy upgrade extras: 

Mercurial - How To View A File Exactly Like It Appeared On A Particular Date

Here's a quick tip for Mercurial users.

Travel back in time and see how the file appeared. :)

hg cat --rev "date('2011-05-03')" controllers/

Let's break it down.

hg cat is the command we use to print the given revision of file.

hg cat --rev 10885:ae28ee103fed controller/

would print the file for the revision 0885:ae28ee103fed.

Mercurial supports a functional language for selecting a set of revisions. To know more about it try:

hg help revsets

In our solution:

Taxonomy upgrade extras: 

Connecting USB Cable To The Brain

Anand and Golix are chit chatting in a bar.

Anand: Golix, I have a doubt about USB cables.
Golix: What is it?
Anand: I've been thinking about it for a while. What happens if you connect the USB cable to your brain?
Golix: You'll hear the message: "this disk is not formatted. Do you want to format it now?".

Taxonomy upgrade extras: 

Which News Feed Have You Subscribed To?

Golix walks into a college campus. Asks few questions to the students.

Golix: What does POP stand for?
Sharath: POP? No idea. Sounds like a distant cousin of Jazz to me.

Golix: What does IMAP stand for?
Shruthi: International mail application something.

Golix: Who created UNIX and C?
Parameshwar: It is beyond me.

Golix: What is Ubuntu?
Parvati: It's a bird!

Golix: Which is the most popular social networking site?
Asha: Facebook.

Golix: Which technique is often used to download movies and music freely from the Internet?
Santhosh: Torrents.

Golix: Which operating system do you use?
Kavitha: ******

The uninitiated readers must watch the video.

Taxonomy upgrade extras: 

Changes In Bizsense

Bizsense is an open source CRM project which uses Zend Framework. The open source project was started by Binary Vibes about three years ago and was released under the GPL V3 license. Some of you might have noticed that I am no longer active in Binary Vibes.

I wanted Bizsense project development to continue to nourish, flourish and cherish. Therefore, there we did a few changes. Bizsense is now released under the new BSD license. Bizsense uses Google open source project hosting which offers issue tracker, Wiki and source control. Bizsense now uses Mercurial for source control. The documentation is published at In order to contribute to Bizsense, signing a CLA is no longer required.

Here are the project links: