If you are ubuntu user, you might need to start,stop or restart apache web server. You need to login as root or you need to use sudo command to start,stop or restart Apache Start Apache 2 Server # sudo /etc/init.d/apache2 start Restart Apache 2 Server # sudo /etc/init.d/apache2 restart Stop Apache 2 Server # sudo [...]
Archive for January, 2012
To kill a process or a job in ubuntu you can do: 1. Kill the process with Name run the command : # sudo killall process-name example : # sudo killall firefox this will kill or close the firefox browser. 2. Kill the process with ID run the command : # sudo kill -9 [...]
To uninstall netbeans IDE in ubuntu, you can do the bellow step: 1. goto netbeans installed directory > cd /usr/local > ls 2. after running the ls command you will see the netbeans directory is listed. 3. now you need to enter into the netbeans dir > cd netbeans-6.9.1 4. Now you need to run the [...]
The bellow article will show how to login into mysql from command line and some basic command to work in with mysql in command line 1. Open the terminal in linux or in windows the command prompt 2. type the command: mysql -u user-name -p here -u you should provide your user name and -p [...]
Recently I found a online tool that format/parse a json data very nicely. You can try this http://json.parser.online.fr/ If you are working with json and need to check if your json data or data format is valid, you can you use this.
If you needs to display date time similar to facebook. You can use bellow function. In the function just the send desire date time as a time stamp as a parameter . The function will return the a text with in nice format like 50 mins ago, 7 hours ago and so on The output [...]
In PHP to print a value or output text, you can use either echo or print. But there are some performance difference between this two function. echo is more faster than print. Both functions are used for the same thing but echo is the language construct which return nothing, but print will return 0 or [...]