Archive for 2010

Convert Sql date to String Date

sql date
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

How to convert string date to sql date in java using java.util.Date

Java Logo
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

ACL: Setting Access Control List for non privileged users

acl
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

How to rebuild RPM database

rpm
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

backup and restore registry in windows xp

Microsoft
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

Basic MySql Tips

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

Installing Windows Server 2008 DHCP 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

How to Make Windows Always Show the File Extensions

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

How to fix bootmgr missing error in Windows 7

bootmgr missing
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

How to share Terminal through SSH

gnome-terminal
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
Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site