Posts

How to Install Java on Ubuntu

This article is about installing the Oracle Java JDK7 (Java Development Kit 7) on the Ubuntu Operating System. Everybody knows that Sun Java was migrated to Oracle Java with Open source licence. Similarly IBM and Open source community has their own standard Java JDK. I personally prefer Oracle's Java JDK, Since majority of the cooperates uses Oracle JDK,I also recommend Ubuntu Java beginners to start with Oracle JDK. So don't confuse while downloading/Installing Oracle Java JDK.The following steps will guide you to install Oracle JDK in Ubuntu in a very easy manner. To install Oracle JDK in Ubuntu, Advanced Package Tools (apt) provides the many providers for oracle. The webupd8team provider provides the following command to install the Oracle JDK. To install Oracle JDK 7, execute the following commands in the terminal. sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-ins...

Transfer Bulk Data via Torrent file

Image
This article is all about the Torrent File Transfer Mechanism and its features. How to optimize Torrent client and how to create our own Torrent file for transferring bulk data instead downloading Movies and Software from other Torrent sites. What is Torrent? Torrent is the protocol for distributing files. It uses Peer-to-Peer data transmission. Its advantage over plain HTTP is that when multiple downloads of the same file happen concurrently, the downloaders upload to each other, making it possible for the file source to support very large numbers of downloaders, with only a modest increase in its load.Torrent's peer protocol can operate over TCP or uTP. Torrent is created by Bram cohen in 2001 and now handled by BitTorrent.inc company Torrent file distribution consists of these entities: An ordinary web server A static 'metainfo' file A Torrent tracker An 'original' downloader The end user web browsers The end user downloaders Torrent...

Command Prompt Full Screen on Windows 8/7

Image
In Windows 8/7 and Vista we could not open full screen Command Prompt. It makes more trouble especially for the Developers who majorly work on the command prompt. By following the simple steps we can open our Windows Vista / 7 / 8 Operating System Command Prompt in full screen. Full Screen Command Prompt Step 1: Open the command prompt by typing "cmd" in the Windows Run. Step 2: Right click on the title bar of the command prompt and select "default" option to open the "Console Window Properties". Step 3: Open the Layout tab and change the Screen Buffer Size as Width:1500 and Height: 500 and change the Window Size as Width: 168 and Height: 55 and press OK. Step 4: Close the current command prompt and open the command Prompt using Step 1 and enjoy the full screen Command Prompt in Windows Vista / 7 / 8.

Read Java Properties File

The properties files are generally used as configuration file for java programs.In Java, there is a special class for manipulating properties file called java.util.Properites. Properties are configuration values managed as key and value pairs since it is basically a Hashtable that can be saved/loaded from stream. In each pair, both key and value are String values. Example Program for Reading Properties File ReadProperties.java import java.util.Properties; import java.io.FileInputStream; class ReadProperties { public static void main(String arg[]) { try { Properties properties=new Properties(); properties.load(new FileInputStream("D:\\config.properties")); System.out.println("Message from Properties file: "+ properties.getProperty("message")); } catch(Exception e) { e.printStackTrace(); } } } config.properties message=All The Best Output: Message from Properties file: All The Best

Create New User Account in Windows Server 2008

Image
The steps for creating Local User Account and Domain User Account (if the server is an Active Directory Domain Controller) in the Windows Server 2008 Operating System. Local User Account Step 1: Click Start -> Administrative Tools -> Computer Management Step 2: In Computer Management, click Local Users and group Step 3: Double click the Users folder Step 4: Right click in the users list and click New User Step 5: Fill the information for the new user and click create and close. Domain User Account Step 1: Click Start, select Administrative Tools and click Active Directory Users and Computers. Step 2: In Active Directory Users and Computers, navigate to the folder where you want to store the new user.     Step 3: Right in click the user list and click New User. Step 4: Fill in the new user information and click Next. Step 5: Fill in the password information and click Next.

Backup Restore MySql Database

How to backup databases from the MySQL server and restore to another MySQL server? The efficient tool to backup database from MySQL server is "mysqldump". Since we are having many UI tools to backup and restore the database for MySQL server, But I personally recommend to use "mysqldump" command for backup and restore MySQL databases. The following are commands for backup the databases. To execute the mysqldump commands, open terminal in Linux or command prompt in windows with MySQL Server <version>\bin directory. Backup Single Specific Database Syntax: mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql Example: mysqldump -u root -p employee > D:\employee.sql Backup Multiple Specific Databases Syntax: mysqldump -u root -p[root_password] --databases [database1_name] [database2_name] > dumpfilename.sql Example: mysqldump -u root -p --databases employee department > D:\employee_department.sql Backup All ...

Distributed Database Management System

Image
Distributed Computing A computer program  that runs in a distributed system is called distributed program and distributed programming is the process of writing such programs A distributed system may have common goal, such as solving a large computational problem. Alternatively each computer may have its own user with individual needs and the purpose of the distributed system is to coordinate the use of shared resources or provide communication services to the users. There are several autonomous computational entities, each of which has its own local memory.These entities communicate with each other by message passing. Typical properties of distributed systems. The system has to tolerate failures in individual computers. The structure of the system(network topology, network latency, number of computers) is not know in advance, the system may consist of different kinds of computers and network links. and the system may change during the execution of a distributed prog...