Strict Standards: Non-static method CodeColorerLoader::Enable() should not be called statically in /home/k6000169/public_html/wp-content/plugins/codecolorer/codecolorer.php on line 254
2010 octubre | Programador freelance argentina

How to get client ip in a Java Servlet

req.getRemoteAddr();
req.getRemoteHost();

How to install Subversion on Eclipse in Snow Leopard

You must install Tigris Subversion, on Eclipse: Help -> Software Updates -> http://subclipse.tigris.org/update_1.6.x

And you need Java HL, to get this you can install Subversion binaries from http://www.open.collab.net/downloads/community/

 Restart Eclipse and voilá.

How to set default encoding in Eclipse

Window -> Preferences -> Workspace -> Text file encoding

How to know if i am working on development or production in appengine?

private boolean isDevelopment() {
        return ( SystemProperty.environment.value() == SystemProperty.Environment.Value.Development );

}

How to capture GET parameters in GWT

String param = Window.Location.getParameter(“param”);

Design patterns

http://sourcemaking.com/design_patterns

Google’s big table whitepaper

here

Guy Harrison on cloud computing and next-generation databases

Guy Harrison on cloud computing and next-generation databases here

NumberFormat in GWT

String vat = NumberFormat.getFormat(“0.00”).format(country.getVAT());

I’m trying to learn english, if you find some mistakes in my redaction, please make a comment with my error

How to create a session in Java

To create a session attribute:

HttpSession sesion = req.getSession(true);
sesion.setAttribute(“allowed”, “YES”);

To get a session parameter:

HttpSession sesion = req.getSession(true);
String allowed = (String) sesion.getAttribute(“allowed”);

I’m trying to learn english, if you find some mistakes in my redaction, please make a comment with my error