open-menu closeme
Home
RetroComp icon
Retro Computing Articles Composition Notebooks 8bit
DevOps icon
Automation K8s Done Right
GenAI icon
Fatlama Newsletter Generative AI
Projects icon
Software Projects Arduino Misterio Esp8266 SQLite
Status
Links icon
GitHub LinkedIn
About
github linkedin rss
  • Better unix life: mass replace and xargs

    calendar Jun 7, 2007 · 1 min read
     blog-objectsrootcom en evergreen  · api perl unix
     ·
    Share on: twitter facebook linkedin copy
    Better unix life: mass replace and xargs

    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
  • Blue Dragon Revision 2

    calendar May 16, 2007 · 1 min read
     blog-objectsrootcom en  · ant database easy site spam vi
     ·
    Share on: twitter facebook linkedin copy
    Blue Dragon Revision 2

    Hi dear spammers, I am an announce.

    I love you so much I have decided to auto delete spam comments not already published.


    Read More
  • Ravenna e Ferrara April 2007 twin trip

    calendar May 15, 2007 · 1 min read
     blog-objectsrootcom en  · april trip
     ·
    Share on: twitter facebook linkedin copy
    Ravenna e Ferrara April 2007 twin trip

    I am very happy to publish a first look of my trip to Ravenna and Ferrara.


    Read More
  • Blue Dragon: Spam Killer

    calendar Apr 20, 2007 · 1 min read
     blog-objectsrootcom en software  · ant fini giovanni google hard simple smart spam test ui vi war
     ·
    Share on: twitter facebook linkedin copy
    Blue Dragon: Spam Killer

    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
  • Advanced Bash Scripting

    calendar Apr 17, 2007 · 1 min read
     blog-objectsrootcom en software  · again arc example good google http opinion script scripting search simple small war
     ·
    Share on: twitter facebook linkedin copy
    Advanced Bash Scripting

    Is it amazing things you can do with a simple Bourne Again Shell  (bash).


    Read More
  • Java Session Fancy Printing

    calendar Mar 27, 2007 · 2 min read
     blog-objectsrootcom en  · http java list
     ·
    Share on: twitter facebook linkedin copy
    Java Session Fancy Printing
     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    }
    
  • Smoking Gio

    calendar Mar 26, 2007 · 1 min read
     blog-objectsrootcom en  · ant bad car http pd vi video web
     ·
    Share on: twitter facebook linkedin copy
    Smoking Gio

    My first webcam video....
    See and have fun: http://www.youtube.com/watch?v=53CIgqpD0S8


    Read More
  • Against drm

    calendar Mar 6, 2007 · 0 min read
     blog-objectsrootcom en  · again
     ·
    Share on: twitter facebook linkedin copy
    Against drm


    Sign an Open Letter To Steve Jobs


    Read More
  • Site Update: Happy new editor!

    calendar Feb 28, 2007 · 1 min read
     blog-objectsrootcom en site  · ajax ant complex django easy editor framework good java javascript make news opinion pd script site touch vi web
     ·
    Share on: twitter facebook linkedin copy
    Site Update: Happy new editor!

    (First published on 2007-01-20)

    Hi all, ObjectsRoot now has correct story ordering ontags view!


    Read More
  • Modena e Padova twin trip

    calendar Jan 21, 2007 · 1 min read
     blog-objectsrootcom en  · good pd reader tip trip ui
     ·
    Share on: twitter facebook linkedin copy
    Modena e Padova twin trip

    Hi blog readers! Your trip master has just come back from a win trip done in the swap of the year. We have been in Modena in December and in Padova, this month. We have done one-day-trips, fast and furious as usual. I have done about 6 photos to Modena. I liked a bit more Padova, which needs at least two days to be seen. Padova has a lot of beautiful and nice churches to see. Consider only the Scrovengi’s Chapel, very well known.


    Read More
  • humble ajax

    calendar Jan 20, 2007 · 1 min read
     blog-objectsrootcom en  · ajax easy good hacking ibm interface simple site system
     ·
    Share on: twitter facebook linkedin copy
    humble ajax

    I think ajax is a very new technology, but with too much hype on it. I think we’d try to do simple things with it, avoiding too much bloated interfaces.


    Read More
  • Vampata d’amore

    calendar Dec 13, 2006 · 1 min read
     blog-objectsrootcom en  · italia vi
     ·
    Share on: twitter facebook linkedin copy
    Vampata d&#39;amore

    I am very proud to present an Italian comedy called Vampata D'amore (Love's Flush) written by my cusin, Alessandro Bonvini.


    Read More
  • Rocket boom rocks

    calendar Nov 21, 2006 · 1 min read
     blog-objectsrootcom en  · google site vi video
     ·
    Share on: twitter facebook linkedin copy
    Rocket boom rocks

    I have surfed today and I have found two sites worth to see: <a href=“http://www.rocketboom.com/"


    Read More
  • Software Trends1

    calendar Oct 12, 2006 · 2 min read
     blog-objectsrootcom en lang software  · ant apple book commercial developement ejb ibm ideas italy linux news perl php ping programming programming-languages project python ruby site small smalltalk smart squeak system trends ui vi war web
     ·
    Share on: twitter facebook linkedin copy
    Software Trends1

    The trends of this october are about some upcoming products. A clear analisys of QuarkXPress failure is sketched in roughlydrafted site. I do not think the same consideration can be applied to Vista.


    Read More
  • Exupery: byte compiler for Squeak

    calendar Oct 6, 2006 · 1 min read
     blog-objectsrootcom en  · link rim squeak usa
     ·
    Share on: twitter facebook linkedin copy
    Exupery: byte compiler for Squeak

    I have tried Exupery, the Squeak byte compiler written by Bryce Kampjes. Exupery is still in beta but is usable for experimenting. SqueakWeekly is happy to publish a prime-time FAQ!

     


    Read More
    • ««
    • «
    • 29
    • 30
    • 31
    • 32
    • 33
    • »
    • »»

Recent Posts

  • La ruota del Destino
  • Darth Android
  • Vps Provider
  • Chat
  • RSS Readers
  • Vibe Coding: easy to say, difficult to survive
  • Basic V2 rocks

Latest comments

    Giovanni Giorgi

    Copyright 1999-  GIOVANNI GIORGI. All Rights Reserved

    to-top