Post

Linux Ubuntu: fermare Mysql server all'avvio

Aprire il file /etc/init/mysql.conf e modificare questo: start on (net-device-up and local-filesystems and runlevel [2345]) così:  # start on (net-device-up # and local-filesystems # and runlevel [2345])

Linux Ubuntu: start e stop di un servizio all'avvio

puoi disabilitare l'avvio automatico del Web Server Apache scrivendo: #sudo update-rc.d apache2 disable 5 4 3 2 quando vuoi avviarlo potrai usare: #sudo service apache2 start  puoi abilitare l'avvio automatico del Web Server Apache scrivendo: #sudo update-rc.d apache2 disable 5 4 3 2 quando vuoi fermarlo potrai usare: #sudo service apache2 stop

Installare LAMP su Ubuntu per inesperti

Immagine
In questa guida vi mostro come installare un sistema LAMP. LAMP sta per  L inux,  A pache, M ySQL,  P HP. La guida intende aiutare che ha una conoscenza molto limitata nell'uso di Linux.

Come accedere da Linux a una cartella condivisa di Windows attraverso SAMBA

mount.cifs //IP_WINDOWS/CARTELLA_CONDIVISA  /DOVE_CONDIVIDERE_SU_LINUX/ -o user=UTENTE_WINDOWS

Outlook 2011 on Mac and Exchange 2003

Unfortunately, Microsoft excluded support for Exchange 2003 in its major upgrade of Office 2011 for Mac. Official reason is that Exchange 2003 is too old, which is of course a weak justification considering that even the latest iOS 4.2 for iPhone/iPod and iPad do support Exchange 2003. But then again, also Apple excluded direct Exchange 2003 support in Mail and iCal on OS/X 10.6 Snow Leopard. There is a way around this though, using a freely downloadable and open source software called DavMail. Just Google “DavMail Mac binary download” to find the nearest/latest available download location.

Web Site of an Artist

This is a web site of an artist: http://www.albertodifabio.com/

How to insert a custom font and Optimizing @font-face for Performance

FOUT is what I'm calling the flash of unstyled text that you get while using @font-face in Firefox and Opera. To resolve this problem, follow the next instrunctions. Choose a font going to http://www.fontsquirrel.com , click on @font-face generator and download font files and the script to insert into your css file. The following example works with all browsers.

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...