Category Archives: Web development

Git branching model

Git branching model : Following model can be used for feature and fixes. Consideration: Servers: – Local Server – Remote Server – Production Server Branches: – Release branch : “release” – Development branch : “master” – Feature branch : “feature” … Continue reading

Posted in Revision control | Tagged | Leave a comment

Git deployment shell script

Git deployment shell script Following shell script can be useful for deplying git branch on multiple servers. #!/bin/bash DIR=”$( cd “$( dirname “${BASH_SOURCE[0]}” )” && pwd )” HN=$(hostname) declare -A SERVER; SERVER["app1"]=”ubuntu@111.111.111.11″; SERVER["app12"]=”ubuntu@222.222.222.22″; SERVER["mongo1"]=”ubuntu@333.333.333.33″; SERVER["mongo12"]=”ubuntu@333.333.333.33″; SERVER["lb1"]=”ubuntu@444.444.444.44″; SERVER["lb12"]=”ubuntu@555.555.555.55″; usage() { local … Continue reading

Posted in Revision control, Shell Script | Tagged , | Leave a comment

Install git on ubuntu for github

Install git on ubuntu for github $sudo apt-get install git-core $which git /usr/bin/git $git –version git version 1.7.9.5 Create repository on Github. Username: First you need to tell git your name, so that it can properly label the commits you … Continue reading

Posted in Revision control | Tagged , | Leave a comment

TCP Sockets Programming in Node.js

Programming TCP Sockets in Node.js Eager to know how sockets are programmed in Node? There are three variants of sockets in Node – i. TCP, ii. UDP, iii. UNIX domain. In this particular post, I will show you the basics … Continue reading

Posted in Node.js, Protocals, Web development | Tagged , | Leave a comment

Connect websocket to node.js

What is the WebSocket API? The WebSocket API is the next generation method of asynchronous communication from client to server. Communication takes place over single TCP socket using the ws (unsecure) or wss(secure) protocol and can be used by any client or server … Continue reading

Posted in Node.js, Protocals, Web development | Tagged , , | Leave a comment

Install Apache-Php-Mysql latest version on Centos

Install Apache-Php-Mysql latest version on Centos A) Install latest Apache Web Server: #cd /usr/local/src/ #wget http://apache.mirrors.pair.com//httpd/httpd-2.4.1.tar.bz2 #tar -jxf httpd-2.4.1.tar.bz2 #cd httpd-2.4.1 Install latest APR & APR-Utils version available (steps are given in Requirements).Unpack them into ./srclib/apr and ./srclib/apr-util (be sure … Continue reading

Posted in Apache, Mysql, Php, Web development | Tagged , , , | Leave a comment

Setup Lamp on ubuntu 12.04

Download Wubi. #sudo apt-get update #sudo apt-get upgrade #sudo apt-get install build-essential #sudo apt-get install apache2 #sudo apt-get install php5 #php /var/www/index.html #sudo apt-get install curl #curl http://localhost/ #sudo apt-get install mysql-server #sudo apt-get install phpmyadmin #sudo apt-get install subversion … Continue reading

Posted in Apache, Linux Operating System, Mysql, Php, Web development | Tagged , , , , | Leave a comment

Configure Virtual Hosts to Ubuntu Apache

Install Apache : #sudo apt-get install apache2 2) Add virtual host name, #sudo vim /etc/hosts Add new entry, 127.0.0.1 domainname.com 3) Create New Directory and test index page, #sudo mkdir /var/www/mynewsitedir/ #sudo vim /var/www/mynewsitedir/index.html 4)If you wish to configure a … Continue reading

Posted in Apache, Web development | Tagged , , | Leave a comment

How to install Oracle JDK 7 on ubuntu 12.04

To install Oracle JDK 7 on ubuntu 12.04 This tutorial will cover the installation of 32-bit and 64-bit Oracle Java 7 (currently version number 1.7.0_25) JDK/JRE on 32-bit and 64-bit Ubuntu operating systems. These instructions will also work on Debian … Continue reading

Posted in Java, Web development | Tagged , , | Leave a comment

Install MongoDB on ubuntu 12.04

MongoDB (from “humongous”) is an open source document-oriented NoSQL database system.MongoDB is part of the NoSQL family of database systems. Instead of storing data in tables as is done in a “classical” relational database, MongoDB stores structured data as JSON-like … Continue reading

Posted in MongoDB, Web development | Tagged , | Leave a comment