En
All English articles are marked under this category
-
Let the Zend Framework introduce itself as a Borg would do:
"Hi dear RubyOnRails. Hi all. I am the Zend Framework, a small work (about 5 tons of code) done by IBM and Zend to destroy you. You think php is not able to build big project?... do you?
So you have dared to develop RubyOnRails or Perl or Python, thinking you can own the web in your way... Dear nerds you are so funny and young!!" in a lamp of light the borg duplicate itselfs in 100 indians programmers, saying together
Read More -
Hi all, dear readers (and spammers too... you delight me with your poor tatics)!
Because my job is getting very very boring, and my private life is full of fantastic nights, I have decided to write a bunch of new articles, and stack them on objectsroot.com.
Read More -
In Slashdot today I have seen a Microsoft advertise.
It said: “Windows is more reliable then Linux”. Clicking on it a very huge set of pages show you how to “Compare Windows to Red Hat”. And this is the start of the end of the Empire.
Read More -
iPhone is a very nice project, well designed and manufactered, but the market addressed is
an hard bet for Apple.
Big players are already on the ground: Nokia, Motorola, Samsung and Sony for instance.So it is difficult to play in such market, and some analysts said "the touch screen was not successful for GSM/phone products".
Read More -
If you need to work on cluster, is nice to have syncronized terminals to send the same commands in parallel.
Is it also doungerous, so do some test before sending a bunch of vi commands!
On Unix, a cheap and fast solution is Kde “konsole” which has such option.
Read More -
In onore della laurea di una mia cara amica, ripubblico e segnalo una serie di "storie universitarie", che sono sicuro strapperanno più di un sorriso. Buona lettura!
-
Sometimes I need to build a small script to delete a huge set of tables of a schema.
In Oracle is easy to do it, using the meta tables "all_tables", "all_views", and "all_sequences":
select 'drop table ' || table_name || ' cascade constraints;'
from all_tables where owner='protoss' and table_name not like 'BIN%';
select 'drop view ' || view_name || ' ;'
from all_views where owner='zerg' ;
select 'drop sequence ' || sequence_name || ' ;'
from all_sequences where sequence_owner='spacemarine' ;The "BIN%" table are special temp tables of oracle.
Read More -
Use the sed -i command
sed -i.BAK 's|foo|bar|g' files # -i does in-place replacement perl -pi.bak -e 's|foo|bar|g' files # or perl -pi.bak -e 's|foo|bar|g' `find /pathname -name "filespec"`
Perl is the preferred way, but on some production system you must use the old good sed. For some tips on sed take a look to its faq. Another very powerful command is xargs. Xargs is a rapid way to process files containing spaces, using a combo with find:
Read More -
Hi dear spammers, I am an announce.
I love you so much I have decided to auto delete spam comments not already published.
As you know, dear spammers, the anti spam on this site (called Blue Dragon) is able to shutup your nasty posts.
Now blue dragon can also delete them from our big database, because it is so easy to isolate spam from true comments.
I will not keep a record of this spam, sorry
Read More -
I am very happy to publish a first look of my trip to Ravenna and Ferrara.
I went there with two friends (Andrea and Paola) in April.
We enjoy a lot the trip (we also took a bike at Ferrara).
Ferrara is bigger then Ravenna and need about two days to see all the things.
Read More -
Hi dear spammers!
I have just finished tuning the latest version of my anti spam-blogging-software, and all the spam have been removed. I am glad to see you loosing your time tring to get some poor bucks from your bogous activity. I hope do you click on my google adverties sometimes, as true friends of mine?
Read More -
Is it amazing things you can do with a simple Bourne Again Shell (bash).
I have just discovered you can open socket using a small redirection syntax, and emulate small checks you normally do with curl or wget.
The bash shell manual is always poor about examples, and this is very very sad.
Read More -
1public static final String convertToString(HttpServletRequest request) { 2 StringBuffer msg = new StringBuffer(); 3 try { 4 5 msg.append("*RequestURI:" + request.getRequestURI() + "\n"); 6 msg.append("*ContentType:" + request.getContentType() + "\n"); 7 8 msg.append("== Request Header\n"); 9 Enumeration headers = request.getHeaderNames(); 10 while (headers.hasMoreElements()) { 11 String headerName = "" + headers.nextElement(); 12 msg.append(headerName + ":" + request.getHeader(headerName) + "\n"); 13 } 14 msg.append("\n"); 15 16 Enumeration attr = request.getParameterNames(); 17 18 ArrayList l = new ArrayList(); 19 String att; 20 while (attr.hasMoreElements()) { 21 att = (String) attr.nextElement(); 22 l.add(att + " -> " + request.getParameter(att)); 23 } 24 25 msg.append("=== Request ( " + l.size() + " ) ===\n"); 26 Object a[] = l.toArray(); 27 Arrays.sort(a); 28 for (int i = 0; i < a.length; i++) { 29 msg.append((String) a[i]); 30 msg.append("\n"); 31 } 32 msg.append("=== === ===\n"); 33 34 // Process the Session 35 HttpSession session = request.getSession(); 36 // msg.append("\n"); 37 38 Enumeration e = session.getAttributeNames(); 39 40 TreeMap t = new TreeMap(); 41 String k; 42 while (e.hasMoreElements()) { 43 k = (String) e.nextElement(); 44 Object oggetto; 45 try { 46 oggetto = session.getAttribute(k); 47 } catch (Throwable notSerializableException) { 48 oggetto = "NON DESERIALIZZABILE. Chiave:" + k; 49 50 } 51 t.put(k, oggetto); 52 } 53 54 Object orderedKeys[] = t.keySet().toArray(); 55 msg.append("=== Session ( " + orderedKeys.length + " " + (usertempz != null ? "+ 1UT" : " NO UT!") + " )===\n"); 56 Object elem; 57 58 for (int i = 0; i < orderedKeys.length; i++) { 59 elem = t.get(orderedKeys[i]); 60 msg.append(orderedKeys[i]); 61 62 msg.append("\t-> "); 63 if (elem != null) { 64 nicePrintSessionObj(msg, elem); 65 } else { 66 msg.append("null"); 67 } 68 msg.append("\n"); 69 } 70 return msg.toString(); 71 } catch (RuntimeException e) { 72 return msg + "\nERR: Cannot print session/request!!" + e.getMessage(); 73 } 74 } -
My first webcam video....
See and have fun: http://www.youtube.com/watch?v=53CIgqpD0S8The Story
I have just bought a new fantastic Mac computer. So I tried my webcam, and in the same evening a friend of mine give me a cigarette (I don't smoke so I tried it in front of my webcam).
Read More
