Skip to main content

Posts

Showing posts from November, 2013

Command Prompt Full Screen on Windows 8/7

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

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 ...