Kurinchi Blogger Scribbles …


Archive for May, 2009

May 13
2009

JSLint – Javascript Code Quality Tool

Last updated: May 13th, 2009

Javascript Code Quality Tool

JSLint is a web based tool that I found today when surfing the net. The tool comes with various settings that helps you clean your javascript code, sanitize it and beautify it depending on how you would want to organize your javascript coding.

You can find the following link helpful if you are interested in learning more about code conventions used in Javascript Programming language.

Link: http://javascript.crockford.com/code.html

May 11
2009

Port number

Last updated: May 11th, 2009

What is a Port Number?

A port number is an identification of communication to a resource in the server. The server (TCP/IP) determines what information is requested from this number and then calls the respective program to attend to that specific request.
(more…)

May 09
2009

How to install SendMail on Ubuntu?

Last updated: May 7th, 2009

Install sendmail on Ubuntu

$ sudo apt-get install sendmail
$ sudo sendmailconfig

Answer to the configuration questions posted during the installation. The main files that gets written into during the installation process are
/etc/mail.sendmail.conf
/etc/cron.d/sendmail
/etc/mail/sendmail.mc
(more…)

May 08
2009

How to set Tomcat to run on port 80?

Last updated: May 6th, 2009

Setting Tomcat to work on port 80 instead of port 8080

There may be instances when you want Tomcat to run on port 80 and not on port 8080 which is the default port allocated to it on installation.

If Apache is installed in the machine, then you need to stop the apache server (if this were to be for a temporary cause) and if you need it permanently then you should disable apache on start up.
(more…)

May 07
2009

How to configure Tomcat in Ubuntu?

Last updated: May 6th, 2009

Configuring Tomcat in Ubuntu with Apache server running on it

Login with the root account. Check if java is already installed on the machine. If not, first install java on ubuntu.

Web get the apache-tomcat tar file from the below location
(more…)

May 06
2009

How to install Java on Ubuntu Linux?

Last updated: May 21st, 2009

Installing Java on Ubuntu Linux

Edit /etc/apt/sources.list and add in the following lines (if they are not present already)

$ vi /etc/apt/sources.list

deb http://ca.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

Sometimes, these lines may be commented out in which case you need to uncomment these two lines. Then save the file.
 (more...)
May 05
2009

Install MySQL on Ubuntu

Last updated: May 5th, 2009

Steps to install MySQL on Ubuntu Server

After setting up the server, issue the below command to install mysql and its associated libraries

$ apt-get install mysql-server mysql-client libmysqlclient12-dev

Edit MySQL configuration file, to set the IP address that will be dedicated for MySQL.
(more…)

May 03
2009

Install Ruby, Rails, RadRails on CentOS, Fedora

Last updated: May 2nd, 2009

Installing Ruby, Rails on CentOS
Installing Ruby on Rails involves using yum to first install ruby and then to install ruby docs, irba followed by rails installation.
$ yum install -y ruby
$ yum install -y ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc
$ gem install rails –include-dependencies
(more…)

May 02
2009

Repository: How to configure yum repos?

Last updated: May 2nd, 2009

To make automatic download and installation by using “yum” you can create/add the repo to /etc/yum.repos.d/.

Then create file with .repo extension to do an automatic yum update at later stage
vi /etc/yum.repos.d/reponame.repo

Below is the content to RubyForge yum repo. Save the content as “rubyforge.repos” under “/etc/yum.repos.d”

[rubyforge]
name=RubyForge
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1

May 01
2009

HTTP Keep Alive

Last updated: April 30th, 2009

HTTP (Hyper Text Transfer Protocol) does not maintain a state. For every request that is made to the server, the server sends a response back. When a request is being made, a NEW socket connection is opened on the server from which the response is sent back. (more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict