Generating Random Numbers in Java

In programming, often we need to generate random numbers. All major languages provide functionality to generate pseudo-random numbers. In Java, this functionality is provided by java.util.Random. See example below: output…

Installing Moodle on Linux

First of all make sure that you have Apache, MySQL (or PostgreSQL), and PHP installed and configured on your system. On Ubuntu, you would type the following to install these…

Installing phpPgAdmin on Ubuntu

phpPgAdmin is a web-based administration tool for PostgreSQL written in PHP. It is a very nifty tool with a very convenient GUI interface. If you have used phpMyAdmin for MySQL,…

Where are PHP error logs

PHP errors are by default set to go to the apache error log. On Ubuntu, the error log is located at /var/log/apache2/error.log. If you are a PHP developer, it is…