Passa ai contenuti principali

Post

Visualizzazione dei post da 2007

I tipi dati in MySQL

Due tabelline comode comode per numeri e stringhe. I numeri sono in formato americano. Numeri   Signed Unsigned   da a da a TINYINT[( M )] -128 127 0 255 SMALLINT[( M )] -32768 32767 0 65535 MEDIUMINT[( M )] -8388608 8388607 0 16777215 INT[( M )] INTEGER[( M )] -2147483648 2147483647 0 4294967295 BIGINT[( M )] -9,223E+18 9,223E+18 0 1,844E+19 SERIAL alias di BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE FLOAT[( M , D )] Valori da -3.402E+38 a -1.175E-38, 0, e 1.175E-38 a 3.402E+38 DOUBLE[( M , D )] Valori da -1.797E+308 a -2.225E-308, 0, e 2.225E-308 a 1.797E+308. DECIMAL[( M [, D ])] M è il numero di cifre (numero massimo : 65, default: 10 ) D sono i decimali (numero massimo: 30) Valori da MySQL 5.0.3 Stringhe tipo da a   CHAR[( M )] 0 255   VARCHAR( M ) 0 65,535 Da MySQL 5.0.3   0 255 Prima di MySQL 5.0.3 BINARY( M

Aggiornare PHP da 5.2.3 a 5.2.4

Un aggiornamento di un PHP isapi di un IIS non è così facile, ma non è neanche così difficile. Ci possono essere dei contrattempi, ma seguite le mie indicazioni e non ci saranno problemi. Occorre avere PHP già installato. Eseguire il setup di PHP fino alla fine. Controllare il percorso dei Mapping Home Directory -> Configuration -> Mappings .php - c:\Inetpub\PHP\php5isapi.dll (Tutti i verbi) verificare che NON ci sia C:\Inetpub\PHP\php5is~1.dll Verificare che le directory session e upload nel php.ini siano rimaste le stesse. Riavviare IIS enjoy /m

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

Apache Extended Log File Format

Description of Fields: · Field 1: User Address IP or domain name of the user accessing the site. · Field 2: RFC931 Domain for multi-homed web servers. · Field 3: User Authentication · Field 4: Date/Time Date and time the user accessed the site. · Field 5: GMT Offset Number of hours from GMT (if this is +0000 it is logged in GMT time). · Field 6: Action The particular operation of the hit (this must be in quotes). · Field 7: Return Code The return code indicates whether or not the action was successful etc. · Field 8: Size The size of the file sent. · Field 9: Referrer The URL which linked the user to your site · Field 10: Browser/Platform The web browser and platform used by the user accessing your site.

testare un servizio SMTP, con telnet

come faccio a sapere se un smtp funziona ? ecco la risposta in 10 semplici mosse: At a command prompt, type Telnet and press ENTER. At the telnet prompt, type and press ENTER, and then type open localhost 25 and press ENTER. The output resembles the following: 220 computername.microsoft.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2651.58) ready Type helo me and press ENTER. The output resembles the following: 250 OK Type mail from:email@domain.com and press ENTER. The output resembles the following: 250 OK - mail from <email@domain.com> Type rcpt to:youremail@yourdomain.com and press ENTER. The output resembles the following: 250 OK - Recipient < youremail@yourdomain.com > Type Data and press ENTER. The output resembles the following: 354 Send data. End with CRLF.CRLF Type Subject:This is a test and press ENTER twice. Type Testing and press ENTER. Press ENTER, type a period (.), and press ENTER. The output resembles the following: 250 O

web 2

ragazzi ormai cani e porci hanno un blog, per cui non potevo tirarmi indietro a chiunque legga, cosa gliene frega di leggere quello che scrivo? ciao --- fine del primo e forse ultimo post ---