Blog


15

Aug 2015

A Simple way to Generate Random number in Java

Math.Random class In Java Programming, Math.Randoms class generates random integers, doubles, longs and so on, in various ranges. To generate a series of random numbers as a unit, you need to use a single Random object – do not create a new Random object for each new random number. Following example shows this: import java.util.Random; /** Generate 10 random integers in the range 0..99. */ public class RandomInteger  { public static final void main(String… aArgs) { log(“Generating 10 random integers in range...

Read More


15

Aug 2015

Database Connectivity using Type I – JDBC Driver in Java(J2SE)

What is JDBC? JDBC(Java DataBase Connectivity) is used for connecting to different database by which user can shift from one database to another database very easily in platform independent manner. JDBC contains set of functions & specification in the form of packages i.e.: java.sql.*–Core SQL Package javax.sql.*–Extended SQL Package JDBC Driver act like an interface between front end application and back end database. There are four types of JDBC Driver Type...

Read More


15

Aug 2015

PDO (PHP Data Object)

PDO(PHP Data Object)  : PDO is a PHP extension for accessing databases in PHP. Advantages: 1) Security : In MYSQL connection we manually sanitise using mysql_real_escape_string() functions in order to avoid SQL injections. But with PDO this is all taken care for us and means we no longer have to worry about SQL injection. 2) Performance : PDO uses PHP 5′s OOP characteristics (Object Oriented Programming) so it...

Read More


15

Aug 2015

Increase Media file upload size in WordPress Multisite

In WordPress, Maximum upload file size will not change even when changed in the php.ini file. Here are the steps to change the Maximum upload file size within WP admin: 1. At the top, hover over My Sites and then click Network Admin 2. At the left, hover over Settings and then click Network Settings. 3. Scroll to the bottom of the page and change...

Read More



Page 28 of 28« First...1020...2425262728