29
Nov
09

Ooops!!! there is no difference in die() and exit(). die() is equivalent to exit  and vice versa. But  why these two names because of there are functions which changed names because of an API cleanup or some other reason and the old names are only kept as aliases for backward compatibility. ;)

php.net says

There are quite a few functions in PHP which you can call with more than one name. In some cases there is no preferred name among the multiple ones, is_int() and is_integer() are equally good for example. However there are functions which changed names because of an API cleanup or some Continue reading

Posted in PHP, Shell | Tagged , | Leave a comment
24
Nov
09
The Go Programming Language

The Go Programming Language

Its very easy to install GO on ubuntu os. We need some more packages for the ubuntu installation ie
Bison(Bison – GNU parser generator), gcc(GCC, the GNU Compiler Collection), mercurial(Mercurial is a cross-platform, distributed revision control tool for software developers.), libc6-dev(GNU C Library: Development Libraries and Header Files).
All these packages we can install via apt-get commad ;)

Step:1

Install all the packages required.

sudo apt-get install bison gcc libc6-dev mercurial ed make

Continue reading

Posted in Linux | Tagged , , , | Leave a comment
24
Nov
09
The Go Programming Language

The Go Programming Language

Go is a systems programming language intended to be a general-purpose systems language, like C++. It is compiled, garbage-collected, concurrent programming language developed by Google. Go was officially announced in November 2009, with implementations released for the Linux and Mac OS X platforms. It is Simple, Fast. Safe, Concurrent, Fun and finaly it is Open source.

Go compilers produce fast code fast. Typical builds take a fraction of a second yet the resulting programs run nearly as quickly as comparable C or C++ code. Continue reading

Posted in Programming | Tagged , , , | Leave a comment
24
Nov
09

To find your Ubuntu version using command line method. Two commands are there, open your terminal and type the following.

Shell Command 1:

cat /etc/issue
// sample output
// Ubuntu 9.10 n l

Continue reading

Posted in Linux | Tagged , , | Leave a comment
23
Nov
09

The mysqladmin tool can be used for changing MySql user’s password. The following line of code will change the user1′s password to “newpassword”.

mysqladmin -u user1 -p password "newpassword"
Posted in DataBase | Tagged , , | Leave a comment