-
Steve is not a normal solution provider.
Steve is the final destination for Project Management troubles.
Read More -
(First published on 2007-01-20)
Hi all, ObjectsRoot now has correct story ordering ontags view!
Read More -
聽聽聽 public static final String convertToString(HttpServletRequest request) {
聽聽聽聽聽聽聽 StringBuffer msg = new StringBuffer();
聽聽聽聽聽聽聽 try {
聽聽聽聽聽聽聽聽聽聽聽 msg.append("*RequestURI:" + request.getRequestURI() + "\n");
聽聽聽聽聽聽聽聽聽聽聽 msg.append("*ContentType:" + request.getContentType() + "\n");
聽聽聽聽聽聽聽聽聽聽聽 msg.append("== Request Header\n");
聽聽聽聽聽聽聽聽聽聽聽 Enumeration headers = request.getHeaderNames();
聽聽聽聽聽聽聽聽聽聽聽 while (headers.hasMoreElements()) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 String headerName = "" + headers.nextElement();
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append(headerName + ":" + request.getHeader(headerName) + "\n");
聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽 msg.append("\n");
聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 Enumeration attr = request.getParameterNames();聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 ArrayList l = new ArrayList();
聽聽聽聽聽聽聽聽聽聽聽 String att;
聽聽聽聽聽聽聽聽聽聽聽 while (attr.hasMoreElements()) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 att = (String) attr.nextElement();
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 l.add(att + " -> " + request.getParameter(att));
聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 msg.append("=== Request ( " + l.size() + " ) ===\n");
聽聽聽聽聽聽聽聽聽聽聽 Object a[] = l.toArray();
聽聽聽聽聽聽聽聽聽聽聽 Arrays.sort(a);
聽聽聽聽聽聽聽聽聽聽聽 for (int i = 0; i < a.length; i++) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append((String) a[i]);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append("\n");
聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽 msg.append("===聽聽 ===聽聽 ===\n");
聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 // Process the Session
聽聽聽聽聽聽聽聽聽聽聽 HttpSession session = request.getSession();
聽聽聽聽聽聽聽聽聽聽聽 // msg.append("\n");
聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 Enumeration e = session.getAttributeNames();
聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 TreeMap t = new TreeMap();
聽聽聽聽聽聽聽聽聽聽聽 String k;
聽聽聽聽聽聽聽聽聽聽聽 while (e.hasMoreElements()) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 k = (String) e.nextElement();
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Object oggetto;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 try {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 oggetto = session.getAttribute(k);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 } catch (Throwable notSerializableException) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 oggetto = "NON DESERIALIZZABILE. Chiave:" + k;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 t.put(k, oggetto);
聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 聽
聽聽聽聽聽聽聽聽聽聽聽 Object orderedKeys[] = t.keySet().toArray();
聽聽聽聽聽聽聽聽聽聽聽 msg.append("=== Session聽 ( " + orderedKeys.length + " " + (usertempz != null ? "+ 1UT" : " NO UT!") + " )===\n");
聽聽聽聽聽聽聽聽聽聽聽 Object elem;
聽聽聽聽聽聽聽聽聽聽聽 for (int i = 0; i < orderedKeys.length; i++) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 elem = t.get(orderedKeys[i]);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append(orderedKeys[i]);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append("\t-> ");
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if (elem != null) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 nicePrintSessionObj(msg, elem);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 } else {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append("null");
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 msg.append("\n");
聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽 return msg.toString();
聽聽聽聽聽聽聽 } catch (RuntimeException e) {
聽聽聽聽聽聽聽聽聽聽聽 return msg + "\nERR: Cannot print session/request!!" + e.getMessage();
聽聽聽聽聽聽聽 }
聽聽聽 }
Read More -
Dynamic languages troubles
Jan 30, 2008 路 3 min read en blog-objectsrootcom 路 again ant api arc build business car code complex database design easy eclipse example fix hard hosting http ibm import java lion microsoft perl php plugin project projects python ruby simple small smalltalk software sql system tools trouble ui unix war web world 路I have read http://www.manageability.org/blog/stuff/chandler-failure and I think it is very danger way of exposing concepts.
Read More -
There is a future for SmallTalk? I was a very strong fan of the SmallTalk language, but in the last five years I have seen more and more contraction of its usage in the IT field.
Read More -
iPhone is the brand-new Apple product which has changed the way Apple thinks. Because of iPhone, Apple strip the word "Computers" from its brand name. And because of iPods and iPhone products, Lepoard developmenet slip a bit, blurring the focus on pure technology.
To be true, I do not beat on the iPhone success, but the product success is at least bright this year. And the iPod touch has also added value to the iPods product catalog. But I am an IT-man, damn you boy! So I want to buy it to play with it, to program with it!
Read More -
Il tre luglio ho avuto modo di partecipare al "JavaFX Circle Meeting" organizzato dal JUG. Durante l'evento 猫 stato anche svelato il mistero del logo usato dal meeting :)
I relatori dell'incontro sono stati Lorenzo Sicilia e Marcello Teodori, che sono stati molto chiari ed esaustivi聽 nella loro esposizione.
Read More -
Because of the forthcoming release of Jython 2.5 (after an year of silence), we at Gioorgi.com are checking Brasil compatibility, right now.聽 What is Jython?... we read from the Jython website:
Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.
Jython 2.5 looks very promising, and we are planning Jython support for future Brasil releases.
Read More