For run this code you should download mail.jar
http://mirrors.ibiblio.org/pub/mirrors/maven/ant/jars/ant-javamail-1.6.jar
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class Main
{
public static void main (String args[]) throws Exception
{
String host = "mail.xyz.com"; //Host name should be some mail host name
String from = "sounak@xyz.com"; // form address
String to = "sounak@xyz.com"; // to address
String fileAttachment = "d:\\sqljdbc.jar"; // file path
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", host);
// Get session
Session session = Session.getInstance(props, null);
// Define message MimeMessage message = new MimeMessage(session); message.setFrom( new InternetAddress(from));
message.addRecipient( Message.RecipientType.TO, new InternetAddress(to)); message.setSubject( "Hello JavaMail Attachment");
// create the message part
MimeBodyPart messageBodyPart = new MimeBodyPart();
//fill message
messageBodyPart.setText("Hi");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(fileAttachment); messageBodyPart.setDataHandler( new DataHandler(source)); messageBodyPart.setFileName(fileAttachment);
multipart.addBodyPart(messageBodyPart);
// Put parts in message
message.setContent(multipart);
// Send the message
Transport.send( message );
}
}
Wednesday, May 6, 2009
Tuesday, May 5, 2009
Clearing the Windows XP Run command's most recently used list
Process No-1
You can also right-click the Start button, click on Properties, click on Customize, then click on Clear. The Run command cache will be gone!
Process No-2
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU as a series of values a-z. To delete an entry from the run menu perform the following:
Start the registry editor (regedit.exe)
Move to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
Select the entry you wish to remove, e.g. h
Press the Del key (or select Edit - Delete) and click Yes to the confirmation
Double click the MRUList value and remove the letter you just deleted. Click OK to save the change
Close the registry editor
You can also right-click the Start button, click on Properties, click on Customize, then click on Clear. The Run command cache will be gone!
Process No-2
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU as a series of values a-z. To delete an entry from the run menu perform the following:
Start the registry editor (regedit.exe)
Move to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
Select the entry you wish to remove, e.g. h
Press the Del key (or select Edit - Delete) and click Yes to the confirmation
Double click the MRUList value and remove the letter you just deleted. Click OK to save the change
Close the registry editor
Extract text from image:
Extract text from image:
Right click on an image file>click on open with>then click ms paint>in paint click on file>then save as>save it as .tif file format.suppose abc.tif.then double click on this abc.tif file.now select the text porsion and copy it.now open ms word then paste it.now you get the text from image.
Right click on an image file>click on open with>then click ms paint>in paint click on file>then save as>save it as .tif file format.suppose abc.tif.then double click on this abc.tif file.now select the text porsion and copy it.now open ms word then paste it.now you get the text from image.
Here are some proxy's..
SURF ORKUT WHEN IT IS BLOCKED
Here are some proxy's..
· http://www.mathtunnel.com/
· http://www.gravitywars.com/
· http://www.kproxy.com/
· http://www.calculatepie.com/
· http://www.anonymizer.com/
Open the above sites and just type in
http://www.orkut.com in companies or colleges
where its blocked n enjoy
Here are some proxy's..
· http://www.mathtunnel.com/
· http://www.gravitywars.com/
· http://www.kproxy.com/
· http://www.calculatepie.com/
· http://www.anonymizer.com/
Open the above sites and just type in
http://www.orkut.com in companies or colleges
where its blocked n enjoy
DIFFERENT CERTIFICATION
RED HAT CERTIFIED ENGINEER (RHCE) & RED HAT CERTIFIED TECHNICIAN (RHCT)
RHCE has been called the "crown jewel" of Linux certifications!
RHCE certification is a highly qualified certification
Two certifications Available
RED HAT CERTIFIED ENGINEER (RHCE)
RED HAT CERTIFIED TECHNICIAN (RHCT)
check out RedHat.com for more Information
The two parts of the RHCE Exam consist of:
Section I: Troubleshooting and System Maintenance (2.5 hours)
Section II: Installation and Configuration (3 hours)
Details about RHCE
Exam number : RH302
Time limit : 1 day
Pass criteria
a score of 80 or higher on Section I, consisting of five compulsory and five optionals problems;
successful completion of the five Section I compulsory troubleshooting problems within one hour of that section's start time;
70 percent or more on the RHCT-level skills in Section II;
70 percent or more on the RHCE-level skills in Section II.
MCSE (Microsoft Certified Systems Engineer)
Introduction To Windows 2000 MCSE Program
Microsoft has designed MCSE for Windows 2000 in a different way in order to make it respectable.The Certification is quite difficult to acquire.
The following changes are made.
1)Four core exams with no consumer desktop operating system (The MCSE title has sharpened its focus on Microsoft networking and server-based solutions. )
The four core exams are as follows
(i) Exam 70-210: Installing, Configuring, and Administering Microsoft Windows 2000 Professional
(ii) Exam 70-215: Installing, Configuring, and Administering Microsoft Windows 2000 Server
(iii) Exam 70-216: Implementing and Administering a Microsoft Windows 2000 Network Infrastructure
(iv) Exam 70-217: Implementing and Administering a Microsoft Windows 2000 Directory Services Infrastructure
2)Limited Electives:
Microsoft is saying that an MCSE would have cleared more than a half-dozen networking and infrastructure exams.
3)No paper MCSEs :
No MCSE candidate could reasonably read and memorize the exam topics, the exams are more experienced-based.
4)Thinning the ranks :
It's the time commitment required to master the world of Windows 2000 and pass the seven MCSE exams.
5)Design Elements included:
Apart from testing in Techincal problems ,Design solutions have to be provided by MCSE Takers
Reference Books Released.
MCSE Windows 2000 Core All-in-One Exam Guide (Osborne/McGraw-Hill, 2001), ISBN: 0-07-212747-3.
Windows 2000 MCSE Study System
Key Skill Sets Required for providing design solutions in MCSE
The following skills sets meet the Microsoft Objectives for the 70-219 exam:
1)Undertake the analysis of business requirements as part of the Active Directory planning and design process.
2)Be able to assess business models from a geographic and company-process perspective.
3)Have an appreciation for how an organization's structure will likely relate directly to the Active Directory solution you design as an MCSE.
4)Know what company strategies are important and being implementing by looking at priorities, growth strategy, the laws and regulations that affect the company, and the company's risk preference.
WHAT TO LEARN?
1)Introduction to Windows 2000
It presents basic information about Windows 2000. It introduces each of the operating systems in the Windows 2000 family, explains what's new in Windows 2000, takes you through a tour of the Windows 2000 user interface, and covers the basic architecture of Windows 2000. It also introduces Active Directory, a core new feature of Windows 2000.
2): Installation and Configuration
It covers the basics of installing and configuring Windows 2000. This part presents detailed instructions on how to install Windows 2000 and how to upgrade to Windows 2000 from previous Windows operating systems. It also explores how to use the many Control Panel applications on Windows 2000 computers. Finally, this part explains how to work with file systems and configure disks in a Windows 2000 environment, and how to install and configure DNS and Active Directory.
3) Managing and Securing Resources
It is all about administering and securing resources on a Windows 2000 computer like how to administer and secure Active Directory. It also presents detailed instructions on how to create and manage users and groups, and how to use System Policy and Group Policy to manage users and computers, sharing, securing, and accessing files and folders, and spells out the important stuff you need to know about managing printing. This part also shows you how to establish and manage auditing. How to back up and recover systems and data, including how to back up and restore Active Directory.
4)Networking and Interoperability
It takes the administration of Windows 2000 up a notch to the network level. It addresses your Windows 2000 networking and connectivity concerns.It includes as to how to create and configure network and dial-up connections. It also covers networking with TCP/IP, managing remote access, and working with Internet Information Services (IIS), the Indexing Service, and Certificate Services.
5) Monitoring, Optimizing, and Troubleshooting
It involves as to how to use various Windows 2000 tools and techniques to monitor, optimize, and troubleshoot the performance of a specific Windows 2000 computer or an entire network. It explores how to optimize and troubleshoot memory, processor, disk, and application performance on a Windows 2000 computer, as well as how to monitor and optimize usage of system resources and network traffic and troubleshooting
CCNA (Cisco Certified Network Associate)
In this site you can find lots of information about CCNA.
The CCNA (Cisco Certified Network Associate) Certification is the basic level of networking
This is required to achieve Cisco Routing and Switching certification at Associate Level.
Details about CCNA:
Introduction to CCNA (Certified Cisco Networking Associate)
The CCNA exam involves set up of cisco , configuration, installation, administration and maintenance of networks which uses Cisco products.All the above areas must be studied by the CCNA Exam taker ,otherwise none of the questions posed in the exam will be understood by him.Configuartion of cisco router and connection to it in the cisco network must be studied and analyzed by the xam taker in order to clear the exam
PASS-FAIL CRITERIA
To pass one has to score 755 out of the total 1000 points. Less than this score you fail.
WHAT DOES CCNA PROVE TO THE WORLD?
Becoming CCNA certified proves to the world and to the IT employers that one is capable of doing the following:
1)Configuration and implementation of simple routers and switches in simple cisco networks using cisco products.
2)Configuration and implementation of cisco networks thereby optimizing the networks in terms of factors like bandwidth, response times, reliability, and quality of service.
3)Optimize the cisco networks in terms of Network Security and Network Performance.
4)Analysis of cisco network related issues and come out with application-oriented solutions for such issues
5)Configuration and installation of atleast a small intranet in a local as well as global aspect
Who should get CCNA certification?
The professionals who need to get CISCO certified may be one of the following:
1)People who would like to shift into into the networking field
2)The support staff who provide support for networking and other technical issues
3)Graduates who studied in the Cisco Regional and Local Networking Academy program
4)Networking professionals who are already into the field of networking
Is there a good CISCO Training Programme?
Yes,there is the "Cisco Networking Academy programme"
The CNA (Cisco Networking Academy) programme is a training programme developed by Cisco in association with high schools,colleges and universities present all around the world.It is a kick Off programme that aims at training high school and college level students to take up the CISCO certifications.
The current training program schedule consists of four semesters.These provide the students a series of online training as well as hands-on experience in CISCO routers and other networking and internetworking
devices thereby helping the IT community to get ready in all aspects for the CCNA exam.
OCP ( Oracle certified Professional )
There are two certification Tracks to become oracle certified
· Database Administrator (DBA)
· Application Developer
DBAs:
Responsibilities:
· Architecture of the Oracle database
· Installing database
· Taking backups
· Managing and fine-tuning performance over the network and data recovery.
Application Developers:
· Developing Oracle Applications using sql and pl/sql
· Developing Internet applications using Form Builder and Report Builder
SCJP (Sun Certified Java Programmer)
SCJP is an Entry Level Certification provided by SUN Microsystems .
It is for the Programmers who are experienced in using the basic syntax and structure of the Java programming language.
All the java programmers are required to clear this exam before taking any other java related certification.
It is available in two versions
1.SCJP 1.2 (The Sun Certified Programmer for Java 2 Platform 1.2)
2.SCJP 1.4 (The Sun Certified Programmer for Java 2 Platform 1.4)
Details about SCJP 1.4
Exam number : CX-310-035
Prerequisites : None
Exam type : Multiple choice and short answer
Questions : 61
Pass score : 52% (32 of 61 questions)
Time limit : 120 minutes
Details about SCJP 1.2
Exam number : CX-310-025
Prerequisites : None
Exam type : Multiple choice and short answer
Questions : 59
Pass score : 61% (36 of 59 questions)
Time limit : 120 minutes
SCWCD ( Sun Certified Web Component Developer )
SCWCD is the next level certification after SCJP.It tests your knowledge in jsp and servlets
Details about SCWCD
Exam number 310-081
Prerequisites SCJP(any version)
Number of questions 69
Type of questions Multiple Choice and Drag and Drop
Score needed to pass 62%
Duration 135minutes
Price $150
Introduction to SCWCD ( Sun Certified Web Component Developer ) The famous and tough "SCWCD certification" is aimed at Java programmers who are/will be using the Java Servlet and JavaServer Pages APIs in order to develop various java powered web applications.
In order to take up the SCWCD Certification,one should have already cleared the most popular "Sun Certified Java Programmer (SCJP)" Exam for the Java 2 Platform certification,all others are not qualified to take up SCWCD Exam.
THE EXAM PATTERN
The exam consists of 60 questions. The questions may be of multiple-choice, short answer, or/and true/false questions.
The multiple-choice questions would comprise of one or more correct answers .The takers are informed as to how many correct answers are there for a particular multiple-choice question.The short answer questions would comprise of method declaration type of questions and the true/false questions require the takers to choose between the two choices namely True or False.
The SCWCD Exam comprises of questions of all types ranging from basic servlet programming to design patterns to custom tag libraries.
PASS CRITERIA
In order to pass the exam the candidate must obtain a score which is greater than 61% that is 37 correct answers out of 60 questions.The duration given to complete the exam is 90 minutes
What Is the Sun Certified Web Component Developer for J2EE Certification?
These days , the IT organizations are aiming at adopting new robust technologies for the improvement of their existing production systems.
Mostly the technologies adopted by the organizations are very new and so difficulty is faced by the developers working in new technologies in proving their level of competence among their peers and the world of highly competitive developers.
In order to provide good web solutions by developing useful web components,one has to have a depth in knowledge of the rules of developing web components.
The Takers who have cleared the SCWCD Exam are highly respected in the IT Industry as the Exam tests if one is strong in the Language Fundamentals ,good in developing web components and utilizing them in advanced web applications.
What kind of understanding should a JAVA programmer possess?
The J2EE technologies are utilized in the computer industry in order to provide an enterprise-level solution to robust,highly - critical and sophisticated systems .Therefore , it is essential for the java programmers to have an in-depth knowledge in the key components which the Architecture to the web user.
The java programmer should understand the Layered Architecture in which each Layer manages distinct tasks
and analyze the architecture design which offers the features namely expandability, maintainability, and flexibility and servlets and thorough understanding of JSPs which are the fundamental components that are used to communicate with the front end of the web application.
HOW IS THIS CERTIFICATION HELPFUL TO YOU?
Becoming a Sun certified web component developer proves to the world-wide IT Organizations that you are well-versed in the J2EE Techonlogy and therefore , you know how and when to use the components in the J2EE Architecture.
Decimal Format
import java.text.DecimalFormat;
public String getCommssion_fmc(String id)
{
double amount=0.0f;
try{
antarik.connection conn=new antarik.connection();
java.sql.Statement st=conn.con.createStatement();
java.sql.ResultSet rs=st.executeQuery("select amount from tblcommision_details where emp_code='"+id+"'");
while(rs.next())
{
String am=rs.getString(1).trim();
amount=amount+Double.parseDouble(am);
DecimalFormat df=new DecimalFormat("#0.00");
String pp=df.format(amount);
amount=Double.parseDouble(pp);
// System.out.println("am: "+am);
//System.out.println("amount: "+amount);
//System.out.println("pp: "+pp);
//System.out.println("amount final: "+amount);
}
}
catch(Exception ex)
{
}
return ""+amount;
}
public String getCommssion_fmc(String id)
{
double amount=0.0f;
try{
antarik.connection conn=new antarik.connection();
java.sql.Statement st=conn.con.createStatement();
java.sql.ResultSet rs=st.executeQuery("select amount from tblcommision_details where emp_code='"+id+"'");
while(rs.next())
{
String am=rs.getString(1).trim();
amount=amount+Double.parseDouble(am);
DecimalFormat df=new DecimalFormat("#0.00");
String pp=df.format(amount);
amount=Double.parseDouble(pp);
// System.out.println("am: "+am);
//System.out.println("amount: "+amount);
//System.out.println("pp: "+pp);
//System.out.println("amount final: "+amount);
}
}
catch(Exception ex)
{
}
return ""+amount;
}
20 different Torrent website
1. Demonoid.com
2. BitMe.org
3. TorrentLeech.org
4. BitHQ.org
5. HDBits.org
6. BitMeTV.org
7. TVTorrents.com
8. BWTorrents.com
9. DCTorrent.com
10. DesiTorrents.com
11. Torrent-Damage.net
12. BitSoup.org
13. Cheggit.net
14. ThePirateBay.org
15. Mininova.org
16. Torrentz.com
17. IsoHunt.com
18. BTJunkie.com
19. TorrentBox.com
20. TorrentReactor.net
2. BitMe.org
3. TorrentLeech.org
4. BitHQ.org
5. HDBits.org
6. BitMeTV.org
7. TVTorrents.com
8. BWTorrents.com
9. DCTorrent.com
10. DesiTorrents.com
11. Torrent-Damage.net
12. BitSoup.org
13. Cheggit.net
14. ThePirateBay.org
15. Mininova.org
16. Torrentz.com
17. IsoHunt.com
18. BTJunkie.com
19. TorrentBox.com
20. TorrentReactor.net
Subscribe to:
Posts (Atom)
