Monday, June 28, 2010
Captcha
http://www.javacodegeeks.com/2010/06/add-captcha-gwt-application.html
Friday, June 25, 2010
GIT+Eclipse
http://wiki.eclipse.org/EGit/User_Guide/Remote#Repository_Selection
http://help.github.com/msysgit-key-setup/
http://help.github.com/msysgit-key-setup/
Thursday, May 27, 2010
Modificator for @Autowire
Is it the same?
1. Speed issuer. With a private modificator reflection algorith adds only one additional call which is nano seconds time.
2. But with a private modificator you don't break object encapsulation
@Autowired
public indentifier name
@Autowired
private indentifier name
1. Speed issuer. With a private modificator reflection algorith adds only one additional call which is nano seconds time.
name.setAccessible(true);2. But with a private modificator you don't break object encapsulation
Wednesday, December 23, 2009
SLF4J
SLF4J-simple can't be configured via log4j.properties. To configure it use slf4j-log4j12
org.slf4j
slf4j-log4j12
1.5.8
Tuesday, November 10, 2009
WINDOW resize handler
public class XXX implements ResizeHandler{
public XXX(){
Window.addResizeHandler(this);
}
@Override
public void onResize(ResizeEvent event) {
//TODO YOUR CODE AFTER RESIZING
}
}
public XXX(){
Window.addResizeHandler(this);
}
@Override
public void onResize(ResizeEvent event) {
//TODO YOUR CODE AFTER RESIZING
}
}
Tuesday, September 29, 2009
Date Formatter
Is the ParseException happens?
SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
Date date = null;
try {
//1
date = df.parse("12-34-2007");
} catch (ParseException e) {
System.out.println("Wrong date");
}
System.out.println(date.toString());
Actually not. To prevent this add to //1
df.setLenient(false);
Letient parameter is true by default that's why to match format strictly need
setting parameter to false
SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
Date date = null;
try {
//1
date = df.parse("12-34-2007");
} catch (ParseException e) {
System.out.println("Wrong date");
}
System.out.println(date.toString());
Actually not. To prevent this add to //1
df.setLenient(false);
Letient parameter is true by default that's why to match format strictly need
setting parameter to false
Sunday, September 20, 2009
Windows fonts
sudo apt-get install msttcorefonts
Subscribe to:
Posts (Atom)