Toolbar.js: a jQuery plugin that creates tooltip style toolbars – http://t.co/H1jnW6g4hf
Archivi categoria: Programming
Java Servlet / JSP 301 and 302 Redirect Examples
Permanent 301 Redirect
response.setStatus(301);
response.setHeader( "Location", "http://www.example.com/" );
response.setHeader( "Connection", "close" );
Temporary 302 Redirect
response.sendRedirect("/");
Fonte: Robert J Miller
Fletto i muscoli e sono nel vuoto.
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
}
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
Coding Q&A: CSS Performance, Debugging, Naming Conventions | Smashing Coding
[JSF] Rich:Calendar popup, errore z-index su i-explore
Per correggere il problema è possibile caricare il seguente doc-type
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
cfr. issues.jboss.org
Fletto i muscoli e sono nel vuoto.

Dynamic list binding in Spring MVC

AxisFault: No support for attachments
Se durante una chiamata ad un webservice ricevete il seguente errore:
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.RuntimeException: No support for attachments faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException: No support for attachments Probabilmente avete dimenticato di inserire mail.jar sul vostro client.
Fletto i muscoli e sono nel vuoto.

[Magento] Problemi con gestione attributi
Dopo l’upgrade con di un installazione magento alla versione 4.0.1. inspiegabilemente la gestione attributi non funziona più. Gli attributi vengono creati sul db ma non sono visibili nella lista degli attributi. Analizzando i dati sul db non veniva creato un record nella tabella CATALOG_EAV_ATTRIBUTE.
Dopo varie ricerche sui forum di magento ho scoperto che si tratta di un bug conosciuto. In pratica, nella tabella EAV_ENTITY_TYPE per il tipo 4 (con entity_type_id = 4) non vengono popolate correttamente le ultime due colonne della tabella:
- ADDITIONAL_ATTRIBUTE_TABLE: deve contenere il valore catalog/eav_attribute (nel mio caso il campo era vuoto)
- ENTITY_ATTRIBUTE_COLLECTION: deve contenere il valore catalog/product_attribute_collection (nel mio caso era corretto)
Dopo aver ripristinato il valore corretto, magento è tornato a funzionare correttamente.
Fletto i muscoli e sono nel vuoto.