Passa ai contenuti principali

Post

Tipi in Java

I limiti dei tipi in Java: byte , da -128 a 127 (compresi) short , da -32768 a 32767 (compresi) int , da -2147483648 a 2147483647 (compresi) long , da -9223372036854775808 a 9223372036854775807 (compresi) char , da '\u0000' a '\uffff', cioè da 0 a 65535 (compresi) vedi... http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html enjoy -m

Tipi di tabella in MySQL

[under construction] MyISAM is a disk based storage engine. Aiming for very low overhead, it does not support transactions. InnoDB is also disk based, but offers versioned, fully ACID transactional capabilities. InnoDB requires more disk space than MyISAM to store its data, and this increased overhead is compensated by more aggressive use of memory caching, in order to attain high speeds. Memory (formerly called "HEAP") is a storage engine that utilizes only RAM. Special algorithms are used that make optimal use of this environment. It is very fast. NDB , the MySQL Cluster Storage engine, connects to a cluster of nodes, offering high availability through redundancy, high performance through fragmentation (partitioning) of data across multiple node groups, and excellent scalability through the combination of these two. NDB uses main-memory only, with logging to disk. Vedi... http://dev.mysql.com/tech-resources/articles/storage-engine/part_1.html

JSP su IIS con il Tomcat Connector

Le guide e gli how-to in giro per Internet su come usare le JSP su IIS non sono molto a prova di bomba, e a me piacciono le cose next-next-next. Questa è una procedura testata con Windows 2003 e il Connector 1.2.25... IIS deve essere installato, doh. Tomcat Scaricarlo da http://tomcat.apache.org/download-60.cgi Installarlo in d:\Tomcat6.0\ [è meglio se non ci sono spazi] Verificare che sia installato come servizio e che parta in automatico. Verificare che funzioni http://localhost:8080/ Stoppare il servizio Cancellare TUTTE le directory in tomcat\webapps [tranne manager , che può essere utile] Creare il file d:\Tomcat6.0\conf\Catalina\localhost\ROOT.xml che contenga <context docbase="D:\ sito \www\" path=""> </context> "D:\ sito \www\" è la "Home directory" della configurazione del sito in IIS Riavviare il servizio Verificare che in d:\Tomcat6.0\logs non ci siano errori Verificare che funzioni http://localhost:8080/ Verificare http:/...

Permessi di PHP su Windows

Mettiamo di aver installato PHP su Windows 200x, e poi ? La cartella del PHP che permessi avrà ? E' tutto un grande next-next-next ? Vediamo... Installo l'eseguibile da www.php.net come ISAPI. Modifico il php.ini Modifico i permessi Controlli vari Riavvio i servizi 1. INSTALLAZIONE Installo PHP in c:\Inetpub\PHP\. 2. PHP.INI In corsivo le opzioni opzionali... short_open_tag = On error_reporting = E_ALL & ~E_NOTICE variables_order = "EGPCS" register_argc_argv = On upload_tmp_dir="C:\Inetpub\PHP\upload" session.save_path="C:\Inetpub\PHP\session" 3. PERMESSI In C:\Inetpub\PHP\ eredito i permessi e poi... IIS_WPG : read & execute IUSR_machine : read & execute IWAM_machine : read & execute NETWORK SERVICE : read & execute Le directory session e upload le metto nella directory di PHP. Queste 2 cartelle erediteranno i permessi da \PHP\ in più gli diamo un bel... IIS_WPG : modify 4. Controlli vari Verifichiamo una manciata di config...

permessi su IIS

Quali saranno mai i permessi di una cartella disponibile sul world wide web tramite IIS 6.0? Non far ereditare i permessi della cartella in questione, e poi... Administrator : full control Ftp user : modify IIS_WPG : read & execute IUSR_machine : read & execute SYSTEM : full control Users : read & execute enjoy §m§

HTTP Status Codes

può essere utile... *1xx Codes:* (Information) This code class indicates a provisional response, consisting only of the Status-Line with optional headers, and is terminated by an empty line. _Note:_ Since HTTP/1.0 did not define any 1xx status codes, servers MUST NOT send a 1xx response to an HTTP/1.0 client except under experimental conditions. *100* (Continue): An interim response telling the browser the initial part of its request has been received and not rejected by the server. A final response code should be sent when the remainder of the material has been sent. *101* (Switching Protocols): The browser may wish to change protocols it's using. If such a request is sent and approved by the server this response is given. *2xx Codes:* (Success) The two hundred range is reserved for successful responses. Your log file will show these classes of codes for all successful hits. *200* (OK): The request was successful and information was returned. This is, by far, the most co...