All posts by Nietzsche

Excel-like data grid editor for HTML, JavaScript & jQuery

Handsontable: Excel-like data grid editor for HTML, JavaScript & jQuery – http://t.co/5w9abYw3 (https://twitter.com/smashingmag/status/298521833920151552)

How to Rotate Tomcat catalina.out

How to automatically rotate catalina.out daily or when it becomes bigger than 5M

1. Create this file

/etc/logrotate.d/tomcat

2. Copy the following contents into the above file

/var/log/tomcat/catalina.out {
  copytruncate
  daily
  rotate 7
  compress
  missingok
  size 5M
}

Fonte: http://java…..how-rotate-tomcat-catalinaout

Oracle PL/SQL: Populate table from cursor

 
SET serveroutput ON
 
DECLARE
  -- Declare the PL/SQL table
  TYPE deptarr IS TABLE OF dept%ROWTYPE
       INDEX BY BINARY_INTEGER;
  d_arr deptarr;
 
  -- Declare cursor
  TYPE d_cur IS REF CURSOR RETURN dept%ROWTYPE;
  c1 d_cur;
 
  i NUMBER := 1;
BEGIN
  -- Populate the PL/SQL table from the cursor
  OPEN c1 FOR SELECT * FROM dept;
  LOOP
    EXIT WHEN c1%NOTFOUND;
    FETCH c1 INTO d_arr(i);
    i := i+1;
  END LOOP;
  CLOSE c1;
 
  -- Display the entire PL/SQL table on screen
  FOR i IN 1..d_arr.LAST LOOP
    DBMS_OUTPUT.put_line('DEPTNO : '||d_arr(i).deptno );
    DBMS_OUTPUT.put_line('DNAME  : '||d_arr(i).dname  );
    DBMS_OUTPUT.put_line('LOC    : '||d_arr(i).loc    );
    DBMS_OUTPUT.put_line('---------------------------');
  END LOOP;
END;
/

Fonte: http://psoug.org/snippet/Populate-table-from-cursor_535.htm

Undelete Navigator

Undelete Navigator, recuperare i file cancellati in maniera semplice e veloce: Quando file e cartelle vengono e… http://t.co/puuGBKpc

Articolo: Burger King cambia fornitore Regno Unito

Burger King cambia fornitore Regno Unito

http://www.ansa.it/terraegusto/notizie/rubriche/orgagricole/2013/01/24/Burger-King-cambia-fornitore-Regno-Unito_8133421.html

Coding Q&A: CSS Performance, Debugging, Naming Conventions | Smashing Coding

http://coding.smashingmagazine.com/2013/01/22/css-performance-debugging-naming-conventions/

#Rafskitchen episode #9 – Pasta zucca e salsiccia

image

#Rafskitchen episode #8 – Guinness Cake

image

Aggiornamento stato da ilgamberorosso su Facebook

Chi lo ha detto che un buon cotechino va mangiato solo a Capodanno?? POLPETTE DI COTECHINO E LENTICCHIE Ingredienti per 4 persone (circa 20 polpette) 300 g di cotechino già cotto 350 g di polpa di maiale macinata 1 cucchiaino di noce moscata ½ cucchiaino di pepe nero appena macinato 150 g di mollica di pane 1 uovo 1 cucchiaino di uvetta tritata al coltello 300 g di lenticchie 1 pizzico di cannella 1 cuore di sedano 1 carota olio extravergine d’oliva Qui la ricetta completa –> http://pinterest.com/pin/178455203956568241/

#Rafskitchen episode #7 – Orate all’acqua pazza