Saturday, July 4, 2009

Online Image Editing

Picnik: Our No. 1 online Image Editing Site

We have nothing against photo editing software. Really. But sometimes, in quiet moments, we start to think about what it would be like if we didn't have our hard drives full of software - how fast


  • Fix your photos in just one click
  • Use advanced controls to fine-tune your results
  • Crop, resize, and rotate in real-time
  • Tons of special effects, from artsy to fun
  • Astoundingly fast, right in your browser
  • Awesome fonts and top-quality type tool
  • Basketfuls of shapes from hand-picked designers
  • Works on Mac, Windows, and Linux
  • No download required, nothing to install



Sending mail from Java

This is a simple java class 4 sending mail


import java.util.Properties;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.Message.RecipientType;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

public class SendMail {

private String from;
private String to;
private String subject;
private String text;

public SendMail(String from, String to, String subject, String text){
this.from = from;
this.to = to;
this.subject = subject;
this.text = text;
}

public void send(){

Properties p
roperties = new Properties();
properties .put("mail.smtp.host", "smtp.gmail.com"); // host and smtp settings
properties .put("mail.smtp.port", "465"); // port settins

Session mailSession = Session.getDefaultInstance(
properties);
Message simpleMessage = new MimeMessage(mailSession);

InternetAddress fromAddress = null;
InternetAddress toAddress = null;
try {
fromAddress = new InternetAddress(from);
toAddress = new InternetAddress(to);
} catch (AddressException e) {
e.printStackTrace();
}

try {
simpleMessage.setFrom(fromAddress);
simpleMessage.setRecipient(RecipientType.TO, toAddress);
simpleMessage.setSubject(subject);
simpleMessage.setText(text);

Transport.send(simpleMessage);
} catch (MessagingException e) {
e.printStackTrace();
}
}
}

Test Class

public class SendMailTest {

public static void main(String[] args) {

String from = "xxx@gmail.com";
String to = "yyy@gmail.com";
String subject = "Test";
String message = "A newmessage";

SendMail sendMail = new SendMail(from, to, subject, message);
sendMail.send();
}
}


Sunday, June 28, 2009

How can I add video on my Facebook?



click on the Video button on the marked by red Rectangle

then below window will appear



from this window select the "Upload a Video"

then select Choose File and click Share
you can now enjoy ur own video on the facebook



Saturday, June 27, 2009

How do you make graphics like this? where the letters are filled with a picture, not a color? picture insidee.?



Step 1 Open the photoshop
Step 2 Open the backgroun file you want
Step 3 Type the Text you want using "Horizontal Type Tool" (Hot Key "T")


Step 4 Go to layer window and hold ctrl + then click on the text Layer then it looks tike this

Step 5 Select the background Layer
Step 6 Copy the Content
Step 7 Paste on the new One



That will realy work



Thursday, June 18, 2009

What's the difference between the Eclipse (IDE) Europa vs Ganymede?

Recently released released Eclipse 3.4 (Ganymede) is very good so far. i think it is some what better than Eclipse Europa. Ganymede is compatible with

PDT (for PHP Development)
SQL Explorer installed and running successfully

installing plugins is much easier with Ganymede

To become a Sun Certifi ed Programmer for Java

Before sit to the scjp exam you must build confidence in your heart

for that you must follow all ares covered in the exam. do more than 250 question and prepare your self...

that will help you lot. you can buy exam simulators.

you can pass the exam very easily




You should have knowledge in this areas

1. Declarations and Access Control

a. Identifiers & JavaBeans

b. Declare Classes

c. Declare Interfaces

d. Declare Class Members

2. Object Orientation

a. Encapsulation

b. Inheritance

c. Polymorphism

d. Overriding / Overloading

e. Reference Variable Casting

f. Implementing an Interface

g. Legal Return Types

h. Constructors and Instantiation

i. Statics

j. Coupling and Cohesion

3. Assignments

a. Stack and Heap

b. Literals, Assignments, and Variables

c. Passing Variables into Methods

d. Array Declaration, Construction, and Initialization

e. Using Wrapper Classes and Boxing

f. Overloading

g. Garbage Collection

h.

4. Operators

a. Java Operators

5. Flow Control, Exceptions, and Assertions

a. if and switch Statements

b. Loops and Iterators

c. Handling Exceptions

d. Common Exceptions and Errors

e. Working with the Assertion Mechanism

6. Strings, I/O, Formatting, and Parsing

a. String, StringBuilder, and StringBuffer

b. File Navigation and I/O

c. Serialization

d. Dates, Numbers, and Currency

e. Parsing, Tokenizing, and Formatting

7. Generics and Collections

a. Overriding hashCode() and equals()

b. Collections

c. Using the Collections Framework

d. Generic Types

8. Inner Classes

a. Inner Classes

b. Method-Local Inner Classes

c. Anonymous Inner Classes

d. Static Nested Classes

9. Threads

a. Defining, Instantiating, and Starting Threads

b. Thread States and Transitions

c. Synchronizing Code

d. Thread Interaction

10. Development

a. Using the javac and java Commands

b. JAR Files

c. Using Static Imports

Sunday, June 14, 2009

Setting up the path

  • Windows 2000/XP users may set their path by right-clicking on 'My Computer' and selecting 'Properties'. Under the 'Advanced' tab, there is a button that allows you to set the 'Environment variables'. Click on this and alter the 'Path' variable so that it also contains the path to the Java executable. For example, if you have installed Java in c:\jdk and your path is currently set to C:\WINDOWS\SYSTEM32, then you would change your path to read C:\WINDOWS\SYSTEM32;c:\jdk\bin
    When you open a new command prompt, it will reflect these changes and allow you to run java programs by typing "java". If you have installed the SDK, then you will also be able to run "javac" to compile stuff.

  • Windows 95/98/ME users may find that their path variable is stored in a different place. Edit the c:\autoexec.bat file and add the following line at the end: SET PATH=%PATH%;c:\jdk\bin
    (This also assumes that you have installed Java in c:\jdk)

  • Linux, UNIX, Solaris, FreeBSD users must set their PATH variable to point to where the java binaries have been installed. Please refer to your shell documentation if you have trouble doing this. For example, if you use bash as your shell, then you would add the following line to the end of your .bashrc: export PATH=/path/to/java:$PATH