tag:blogger.com,1999:blog-87585900782135722312009-02-21T05:59:58.465+01:00Il blog di Ugo ChiricoUgo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8758590078213572231.post-4648145248737907232009-01-16T16:05:00.006+01:002009-01-16T16:13:03.516+01:00Commodore 64 o Windows Vista?Nel 1969 è bastata la potenza di calcolo di due Commodore 64, con CPU da 4Mhz e 64 KB di RAM, per mandare una navicella sulla Luna.<br />Nell'anno 2009 è necessario un Intel Centrino Dual Core da 2Ghz con 2GB di RAM e Hard Disk da 120GB per far funzionare Windows Vista.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-464814524873790723?l=ugochirico.blogspot.com'/></div>Ugo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.com0tag:blogger.com,1999:blog-8758590078213572231.post-49651624630216152892008-06-11T13:22:00.004+01:002008-06-11T14:14:50.912+01:00gmail app su windows mobilePer l'ennesima volta mi sono imbattuto nell'installazione dell'applicazione Gmail client su un dispositivo Windows Mobile.<br />Poichè penso che sia un argomento che possa interessare molti altri possessori di Smartphone e PDA Windows Mobile (che probabilmente hanno avuto i miei stessi problemi), mi sono deciso a scrivere un post sull'argomento con l'intenzione di fornire una guida per l'installazione.<br />L'help di Gmail si limita a dire che l'applicazione Gmail non supporta Windows Mobile (vedi <a href="http://mail.google.com/support/bin/answer.py?hl=it&amp;answer=52870">questa url</a>) tuttavia suggerisce di provare con la JVM fornita da IBM, che tra l'altro ora sembra introvabile (io, fortunatamente l'ho scaricata tempo fa quando era ancora disponibile sul sito ufficiale).<br />Fortunatamente ciò che dice l'help è totalmente errato.<br />Ho installato con successo Gmail sul mio LGKS20, sul vecchio HP rw6815 e su un Toshiba G500 e, conoscendo bene anche gli HTC, sono sicuro che la procedura funzioni su qualsiasi cellulare Windows Mobile.<br />In primo luogo, occorre assicurarsi che sul proprio cellulare ci sia una Java Virtual Machine (JVM). In Start->Programmi dovrebbe esserci l'icona relativa. Sugli HTC, sugli HP e sui Toshiba dovrebbe esserci quella di Esmertec. LG ne ha una senza marca (o almeno non riesco a capire chi l'abbia sviluppata), sugli I-Mate non ricordo ma sono sicuro che c'è. Tuttavia se il vostro non ne ha una si può installare quella di IBM.<br />In secondo luogo occorre scaricare la MIDlet dell'applicazione gmail ossia il fatidico file gmail-g.jar.<br />Chi, come me, ha provato la procedura standard prevista per il download e l'installazione di applicazioni java, ossia, ha fatto puntare il browser o la JVM alla url http://gmail.com/app suggerita da Gmail, ha fallito miseramente ricevendo un messaggio che approssimativamente dice:-"I parametri del file .jad non sono corretti" o qualcosa di simile. Questo errore è dovuto ad una errata risposta del server di gmail che non viene compresa dalla Application Manager della JVM che, pertanto, non riesce ad installare l'applicazione.<br />La procedura corretta invece è questa:<br />1) scaricare sul PC il file gmail-g.jar (v.1.1.1) da questa url:<br /><a href="http://gmail.com/app/v1.1.1/L1/gmail-g.jar">http://gmail.com/app/v1.1.1/L1/gmail-g.jar</a><br />2) copiare il file gmail-g.jar in una cartella sullo smartphone (mediante Active Sync o bluetooth)<br />3) sullo smartphone, aprire la cartella dove è stato salvato il suddetto file (con Esplora File)<br />4) clickare sul file gmail-g.jar (questa operazione farà partire la JVM)<br />5) seguire le istruzioni che compariranno sullo schermo.<br /><br />Buon divertimento...<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-4965162463021615289?l=ugochirico.blogspot.com'/></div>Ugo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.com2tag:blogger.com,1999:blog-8758590078213572231.post-32107133356370630272007-03-08T16:27:00.000+01:002007-03-13T09:14:22.105+01:00My application is running on Vista?Yesterday I find an answer to the following question: my application is running on Vista or not? The following is a peice of code which gets the Windows version of the underling operating system including the latest release of Vista:<br /><br /><span style="font-size:85%;"><span style="font-family:courier new;">#define OS_UNKNOWN -1</span><br /><span style="font-family:courier new;">#define OS_NT4 0</span><br /><span style="font-family:courier new;">#define OS_2000 1</span><br /><span style="font-family:courier new;">#define OS_XP 2</span><br /><span style="font-family:courier new;">#define OS_2003 3</span><br /><span style="font-family:courier new;">#define OS_VISTA 4</span><br /><br /><span style="font-family:courier new;">int getWinVer()</span><br /></span><span style=";font-family:courier new;font-size:85%;" >{</span><span style=";font-family:courier new;font-size:85%;" ><br />&nbsp;&nbsp;&nbsp;&nbsp;OSVERSIONINFO osVerInfo;</span><span style=";font-family:courier new;font-size:85%;" ><br />&nbsp;&nbsp;&nbsp;&nbsp;osVerInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);</span><span style=";font-family:courier new;font-size:85%;" ><br />&nbsp;&nbsp;&nbsp;&nbsp;GetVersionEx(&osVerInfo);<br /><br /></span><span style=";font-family:courier new;font-size:85%;" > &nbsp;&nbsp;&nbsp;&nbsp;if(osVerInfo.dwMajorVersion == 6) </span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return OS_VISTA;</span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;}</span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;else if(osVerInfo.dwMajorVersion == 5)</span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" > &nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(osVerInfo.dwMinorVersion == 2)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style=";font-family:courier new;font-size:85%;" > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return OS_2003;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if(osVerInfo.dwMinorVersion == 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style=";font-family:courier new;font-size:85%;" > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return OS_XP;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if(osVerInfo.dwMinorVersion == 0)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return OS_2000;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;}</span><span style="font-size:85%;"><br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;else if(osVerInfo.dwMajorVersion <= 4)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return OS_NT4;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style=";font-family:courier new;font-size:85%;" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return OS_UNKNOWN;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="font-family:courier new;"><span style="font-size:85%;"><span style="font-family:courier new;">}</span><br /></span><br /></span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-3210713335637063027?l=ugochirico.blogspot.com'/></div>Ugo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.com0tag:blogger.com,1999:blog-8758590078213572231.post-1608446063017299462007-03-07T11:17:00.000+01:002007-03-08T09:30:37.528+01:00Piede al tramonto / Foot at sunset<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_2cIFk3f7M20/Re_JbFh2e4I/AAAAAAAAAAs/htqmev2UEFs/s1600-h/Foot.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_2cIFk3f7M20/Re_JbFh2e4I/AAAAAAAAAAs/htqmev2UEFs/s320/Foot.jpg" alt="" id="BLOGGER_PHOTO_ID_5039467975228685186" border="0" /></a><br /><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_2cIFk3f7M20/Re6Su4xZ2jI/AAAAAAAAAAk/N6GJa_fd4dg/s1600-h/Foot.jpg"><br /></a></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-160844606301729946?l=ugochirico.blogspot.com'/></div>Ugo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.com0tag:blogger.com,1999:blog-8758590078213572231.post-33702812367883297752007-03-06T13:51:00.000+01:002007-03-06T17:20:56.758+01:00Umorismo ProcidanoLa scorsa estate ho passato qualche giorno di vacanza a Procida.<br />In un angolo della strada, in prossimità del porto, ho scoperto questa pillola di umorismo procidano:<br /><br /><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_2cIFk3f7M20/Re1k0YxZ2hI/AAAAAAAAAAU/j0JCsz8QXAE/s1600-h/100_1304.JPG"><img style="cursor: pointer;" src="http://2.bp.blogspot.com/_2cIFk3f7M20/Re1k0YxZ2hI/AAAAAAAAAAU/j0JCsz8QXAE/s320/100_1304.JPG" alt="" id="BLOGGER_PHOTO_ID_5038794409263094290" border="0" /></a><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-3370281236788329775?l=ugochirico.blogspot.com'/></div>Ugo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.com0tag:blogger.com,1999:blog-8758590078213572231.post-3882412265354988602007-01-24T14:36:00.000+01:002007-02-09T18:02:10.963+01:00Finalmente il mio blog<span style="font-family:trebuchet ms;">F</span><span style="font-family:trebuchet ms;">inalmente mi sono deciso a pubblicare il mio blog!<br /></span><span style="font-family:trebuchet ms;">Lo so che avrei dovuto farlo prima, ma tra i soliti mille impegni, il lavoro, la famiglia, lo sport, le letture ecc. mi è mancato il tempo (e forse anche un po' la volontà).<br />Non ho ancora un idea precisa su cosa verrà inserito in questo blog. Mi immagino certamente dei post (in italiano o in inglese) sui temi che tratto quotidianamente come l'informatica (smart card, crittografia, intelligenza artificiale, applicazioni per cellulari, programmazione ecc.) e la fisica (meccanica quantistica, computazione quantistica, ecc). Ma mi piacerebbero anche post su matematica, filosofia, letteratura e scienze.<br />Vedremo...<br />--------------<br />And finally my Blog!<br />I know, I should wrote it some years ago but by switching from my job, my family, sports, readings etc. I didn't have a bit of time (and the will) to spent on my blog.<br />I don't have a precise idea of what I'll publish in this blog. I imagine posts (in italian and in english) about themes I treat daily such as Informatics (</span><span style="font-family:trebuchet ms;">smart cards, cryptography, Artificial Intelligence, Mobile phone applications, programming and so on) and physics (Quantum Mechanics, Quantum Computation, etc.) But I hope to write also posts about mathematics, phylosophy literature, and science.<br />We'll see...<br /><br /></span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-388241226535498860?l=ugochirico.blogspot.com'/></div>Ugo Chiricohttp://www.blogger.com/profile/04422445251211842977noreply@blogger.com1