Post

How to set Checkbox readonly

In some rare cases you may want to make a checkbox readonly. In my case I had to explain what does a checkbox had on a site. One option is to use the attribute "disabled"="disabled" but this makes the checkbox greyed out. If you want to make readonly here is how to do it. <input checked="checked" name="documenti[]" onclick="return false;" type="checkbox" value="valore" /> ;)

Doing INTERSECT and MINUS in MySQL

Doing an INTERSECT   An INTERSECT is simply an inner join where we compare the tuples of one table with those of the other, and select those that appear in both while weeding out duplicates. So SELECT member_id, name FROM a INTERSECT SELECT member_id, name FROM b can simply be rewritten to SELECT a.member_id, a.name FROM a INNER JOIN b USING (member_id, name) For more MySQL-related information om this site, see: MySQL Pop Quizzes || MySQL Function of the Day MySQL DATE_FORMAT() and PHP DATE() tool Other MySQL blog entries Performing a MINUS To transform the statement SELECT member_id, name FROM a MINUS SELECT member_id, name FROM b into something that MySQL can process, we can utilize subqueries (available from MySQL 4.1 onward). The easy-to-understand transformation is: SELECT DISTINCT member_id, name FROM a WHERE (member_id, name) NOT IN (SELECT member_id, name FROM table2); Of course, to any long-time MySQL user, this is immediately o...

Firefox chiede insistentemente Username e Password per l'autenticazione all'ISA Proxy

Ho installato Firefox 3.6 sul mio PC e mi capita sempre di avere una scocciatura: ogni volta che visito una pagina Web, con Internet Explorer non avevo alcun tipo di problema, mentre Firefox richiedeva di continuo delle credenziali di autenticazione al Proxy tramite una pop-up. La soluzione al problema è la seguente: 1. digitare sulla barra degli indirizzi di Firefox about:config per accedere alla pagina di configurazione del browser 2. nella casella di testo "Filtra" digitare network.automatic-ntlm-auth.trusted-uris per raggiungere subito la configurazione che interessa 3. cliccare due volte su questa voce e digitare come valore localhost e poi chiudere il TAB 4. sempre su Firefox cliccare su "Strumenti", poi su "Opzioni", poi sul tab "Avanzate", poi sul tab "Rete" e poi sul pulsante "Impostazioni" e selezionare l'opzione "Utilizza le impostazioni Proxy del sistema"; applicare e chiudere. 5. Andare s...

Best FTP client Web based

Below there are a list of FTP client that can used via Browser: www2ftp , ftplive , net2ftp , unlimitedftp , anyclient , 01ftp , surftp

How To: Burn ISOs Directly in Windows Vista

Immagine
There are a lot of programs out there to burn ISO files, some free and some quite expensive. However, now that Windows vista is out, I have found myself running into many computability problems with my favorite burning programs. More specifically Nero 7 and DeepBurner have been giving me the most problems so far. But fear not, because there is a solution which is free, easy, and best of all is a windows Vista power toy, so it plays very nicely with Vista.

Share a folder with SUN VirtualBox

With vbox you can easily share a folder between guest and real host once you have installed Guest Additions. So install guest additions create a shared folder # mount -t vboxsf mySharedFolder /mnt/ With rdesktop simply add the following parameter to share a local directory with your remote host # rdesktop winhost -r disk:Home=/home/giacometto

How to create a personal Linux distribution

To customize a personal Linux distribution based on Suse Linux is possible to go here   http://susestudio.com/ Enjoy your work!

ASP (vbScript) - How to intercept an Oracle Database error

'Gestione degli errori On Error Resume Next 'Eseguo l'UPDATE m_oracon.execute(sqlupdate) 'Stampo l'errore a video If Err.Number <> 0 then NumeroErrore = Err.Number response.write " Errore nell'appicazione " response.write " Numero errore: " & NumeroErrore & "" DescrizioneErrore = Err.Description response.write " Descrizione Errore: " & DescrizioneErrore & "" Pagina = Request.ServerVariables("url") response.write " Pagina: " & Pagina & "" Err.Clear response.end End If

How to check Directory Server version

On Solaris: From $NETSITE_ROOT/bin/slapd/server/64 ( $NETSITE_ROOT is the directory below slapd-instancename , in our case /opt/ds ), run: $ ./ns-slapd -v On Windows: C:\Program Files\Sun\JavaES5\DSEE\ds6\lib>ns-slapd -v The result is like the followiong: Sun Microsystems, Inc. Sun-Java(tm)-System-Directory/6.0 B2007.030.1546 32-bit ns-slapd : 6.0 B2007.030.1546 Slapd Library : 6.0 B2007.030.1546 Front-End Library : 6.0 B2007.030.1546

How to clean RAM cache in Linux

Check free and allocated RAM: #free -m total used free shared buffers cached Mem: 3923 2504 1418 0 144 1882 -/+ buffers/cache: 478 3445 Swap: 0 0 0 Clean the cached RAM: #sync; echo 3 > /proc/sys/vm/drop_caches Check free and allocated RAM: # free -m total used free shared buffers cached Mem: 3923 475 3448 0 3 99 -/+ buffers/cache: 373 3550 Swap: 0 0 0