- Tuesday, December 7, 2010, 18:48
- Database, Java, SQL basics
public class DateExample {
public static void main(String args[]){
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");//Date format
String date=null;
java.util.Date utilDate=new java.util.Date(sqlDate.getTime());// your Sql date value
date=formatter.format(utilDate);
System.out.println("String date "+date);
}
}
Full story
- Monday, December 6, 2010, 18:54
- Database, Java, Java Core, SQL basics
public class stringToSqlDate {
public static void main(String args[]){
String strDate="17/12/2010";
java.util.Date dt=new java.util.Date(strDate);
java.sql.Date sqlDate=new java.sql.Date(dt.getTime());
System.out.println(sqlDate);
}
Full story
- Friday, December 3, 2010, 10:23
- HOW TOs
There are two type of ACLs
1. Access ACL
The user and group access permissions for all kinds of file system objects (files and directories) are determined by means of access ACLs
1. Default ACL
Default ACLs can only be applied to directories. They determine the permissions a file system object inherits from its parent directory when it is created.
Full story
- Thursday, November 11, 2010, 15:16
- Linux
If your system's RPM database is corrupted.then you can rebuild the rpm database with following procedure.
Steps:
1. Remove RPM locks
#rm /var/rpm/__db*
2.Rebuild RPM database
#rpm -vv --rebuilddb
3.Verify the integrity of rpm database
#rpmdb_verify Packages
Thats it...
Full story
- Saturday, October 30, 2010, 5:54
- Windows, Windows XP
First check if the system restore is turned on or off
1. Right click My Computer >> Properties
2. System Restore Tab >> Uncheck Turn off System Restore >> OK
Now,
1. Click Start >> Run, type %SystemRoot%\system32\restore\rstrui.exe
Full story
- Tuesday, October 5, 2010, 4:51
- Database, MySQL
1. How to set password for root account in MySQL Server??
#mysqladmin -u root password your-new-password
#/etc/init.d/mysqld restart
2. How to add a new user account in MySQL Server??
From mysql frompt
CREATE USER IDENTIFIED BY PASSWORD 'password';
3. How to add privilleges ...
Full story
- Tuesday, September 28, 2010, 11:28
- Windows, Windows Server
Installing Windows Server 2008 DCHP Server is easy. DHCP Server is now a “role” of Windows Server 2008
To do this, you will need a Windows Server 2008 system already installed and configured with a static IP address. You will need to know your network’s IP address range, the range of IP addresses you will want to hand out to your PC clients, your DNS server ...
Full story
- Monday, September 27, 2010, 2:10
- Windows
By default, file extensions for known file types are hidden in Windows. However, you can change this setting so that file extensions are shown for files.
Follow this steps to change this settings
Open Windows Explorer
Full story
- Thursday, September 2, 2010, 6:27
- Windows, Windows 7
If your Windows 7 has encountered the “BOOTMGR is missing” error.
Get your Window 7 DVD and pop it into your drive.
Then restart your computer.
Set your computer to boot from DVD or CD in your BIOS.
Full story
- Monday, August 16, 2010, 9:40
- Linux
Share a terminal in linux using screen package.
Requirement :
screen package should be installed.
Check the screen package installed or not
#rpm -qa|grep screen
Full story