<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0YNSX0-fip7ImA9WxBSEUg.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231</id><updated>2009-12-18T16:46:38.356+01:00</updated><title>Ugo Chirico's Blog</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://ugochirico.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/IlBlogDiUgoChirico" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;C0IDQHc4fyp7ImA9WxBTFUk.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-9156355120372955879</id><published>2009-12-11T01:00:00.010+01:00</published><updated>2009-12-11T15:26:11.937+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-11T15:26:11.937+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="natale" /><category scheme="http://www.blogger.com/atom/ns#" term="auguri" /><category scheme="http://www.blogger.com/atom/ns#" term="capodanno" /><category scheme="http://www.blogger.com/atom/ns#" term="MMS" /><category scheme="http://www.blogger.com/atom/ns#" term="SMS" /><title>Greeter per inviare messaggi d'auguri</title><content type="html">In occasione dell'approssimarsi delle festività natalizie, quando per consuetudine ci si scambia SMS e MMS d'auguri, ho rilasciato Greeter, una nuova applicazione gratuita per telefoni cellulari che consente di inviare fantastici SMS e MMS d'auguri già pronti per ogni occasione.&lt;br /&gt;&lt;img src="http://www.greeter.it/images/greeter.gif" style="border:0;" border="0"&gt;&lt;br /&gt;L'applicazione si installa su qualsiasi telefonino Java e contiene centinaia di frasi d'auguri e di immagini già pronte e personalizzabili per le occasioni più importanti: Natale, Capodanno, San Valentino, Compleanno, ecc.&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/mgn34FwAEqg&amp;amp;hl=it&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/mgn34FwAEqg&amp;amp;hl=it&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Il sito web di Greeter è: &lt;a class="moz-txt-link-freetext" href="http://www.greeter.it/"&gt;http://ww&lt;/a&gt;&lt;a class="moz-txt-link-freetext" href="http://www.greeter.it/"&gt;w.greeter.it&lt;/a&gt;&lt;br /&gt;L'applicazione può essere scaricata dal browser del telefono cellulare&lt;br /&gt;collegandosi al sito &lt;a class="moz-txt-link-freetext" href="http://mob.greeter.it/"&gt;http://mob.greeter.it&lt;/a&gt; oppure dal sito web&lt;a class="moz-txt-link-freetext" href="http://www.greeter.it/"&gt; http://www.g&lt;/a&gt;&lt;a class="moz-txt-link-freetext" href="http://www.greeter.it/"&gt;reeter.it&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-9156355120372955879?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SBocURbkpAZKL37hdlGkZ2Aj8fU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SBocURbkpAZKL37hdlGkZ2Aj8fU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SBocURbkpAZKL37hdlGkZ2Aj8fU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SBocURbkpAZKL37hdlGkZ2Aj8fU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/40egFCYS0dk" height="1" width="1"/&gt;</content><link rel="related" href="http://www.greeter.it" title="Greeter per inviare messaggi d'auguri" /><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/9156355120372955879/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=9156355120372955879&amp;isPopup=true" title="0 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/9156355120372955879?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/9156355120372955879?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/40egFCYS0dk/greeter-per-inviare-messaggi-dauguri.html" title="Greeter per inviare messaggi d'auguri" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2009/12/greeter-per-inviare-messaggi-dauguri.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkENSXY5eCp7ImA9WxNbGEw.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-888126383082157413</id><published>2009-11-02T11:26:00.017+01:00</published><updated>2009-11-21T14:38:18.820+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T14:38:18.820+01:00</app:edited><title>Animated GIF using LWUIT</title><content type="html">Since a couple of weeks ago, I'm working on moving my mobile applications to a new attractive user interface using LWUIT (LightWeigth User Interface Toolkit).&lt;br /&gt;I found LWUIT really very impressive and the results are really excellent: my mobile apps now are much nicer then before.&lt;br /&gt;But I found some little lacks in LWUIT. The most relevant is the lack of a class to manage animated GIF at runtime.&lt;br /&gt;As of this writing, the current version of LWUIT supports animated gifs only if they are added in the resource file by the Resource Editor as "Animated Images". Such animated images can be added to a Label, to a Button or to another component and are animated when shown.&lt;br /&gt;What I mean is that there are no way to use an animated GIF as animated image in a component if the gif is loaded at runtime from an input stream. Also, there is no way to manage the animation loop programmatically (i.e. stopping and starting the animation).&lt;br /&gt;So, I googled a little to find a solution. First of all I found several posts related to that. This means that such a lack is involving several programmers. Second, I found the class &lt;a href="http://www.fmsware.com/stuff/gif.html"&gt;GifDecoder&lt;/a&gt; ported to J2ME for decoding any animated gif.&lt;br /&gt;Starting from that class and reading how the class StaticAnimation of LWUIT is implemented I wrote a new class AnimatedGIF, derived from the class com.sun.lwuit.Image, that allows to use animated gif at runtime in your applications.&lt;br /&gt;You can use it as any other image.&lt;br /&gt;The following is a snippet that shows how to create a Button with a animated gif image:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;AnimatedGIF image = AnimatedGIF.createAnimatedGIF(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new ByteArrayInputStream(btImage));&lt;br /&gt;Button btn = new Button();&lt;br /&gt;btn.setIcon(image);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The source code can be downloaded from &lt;a href="http://www.ugosweb.com/Download/AnimatedGIF.zip"&gt;here&lt;/a&gt; and it is published under LGPL.&lt;br /&gt;Mainly this is the most relevant topics:&lt;br /&gt;- the package must be com.sun.lwuit because I need the costructor Image(Object) that has package visibility (I think it should have protected visibility)&lt;br /&gt;- an animated gif is rapresented as an array of frames&lt;br /&gt;- the frames are generated by the class GifDecoder&lt;br /&gt;- a gif is animated if it has more then one frame&lt;br /&gt;- the animation can be started and stopped on demand by the method start and stop&lt;br /&gt;- the loop counter can be set by the method setLoopCount&lt;br /&gt;- the rest of the code has been taken and adapted from the class StaticAnimation&lt;br /&gt;&lt;br /&gt;For more info about LWUIT visit this url &lt;a href="https://lwuit.dev.java.net/"&gt;http://lwuit.dev.java.net).&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-888126383082157413?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GNpU7Vi7RGK63zDMRTF2NjdlAec/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GNpU7Vi7RGK63zDMRTF2NjdlAec/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GNpU7Vi7RGK63zDMRTF2NjdlAec/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GNpU7Vi7RGK63zDMRTF2NjdlAec/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/oKMeEeDokuc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/888126383082157413/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=888126383082157413&amp;isPopup=true" title="4 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/888126383082157413?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/888126383082157413?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/oKMeEeDokuc/animated-gif-using-lwuit.html" title="Animated GIF using LWUIT" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2009/11/animated-gif-using-lwuit.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAMQns6fip7ImA9WxVREUw.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-464814524873790723</id><published>2009-01-16T16:05:00.006+01:00</published><updated>2009-01-16T16:13:03.516+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-16T16:13:03.516+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Vista" /><category scheme="http://www.blogger.com/atom/ns#" term="Commodore 64" /><title>Commodore 64 o Windows Vista?</title><content type="html">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.&lt;br /&gt;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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-464814524873790723?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/s9UIv8hj4s_ht5WcKVTc_seamqw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/s9UIv8hj4s_ht5WcKVTc_seamqw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/s9UIv8hj4s_ht5WcKVTc_seamqw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/s9UIv8hj4s_ht5WcKVTc_seamqw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/nNa7aaPndBQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/464814524873790723/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=464814524873790723&amp;isPopup=true" title="0 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/464814524873790723?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/464814524873790723?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/nNa7aaPndBQ/commodore-64-o-vista.html" title="Commodore 64 o Windows Vista?" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2009/01/commodore-64-o-vista.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcNQXc6eip7ImA9WxdQEUQ.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-4965162463021615289</id><published>2008-06-11T13:22:00.004+01:00</published><updated>2008-06-11T14:14:50.912+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-11T14:14:50.912+01:00</app:edited><title>gmail app su windows mobile</title><content type="html">Per l'ennesima volta mi sono imbattuto nell'installazione dell'applicazione Gmail client su un dispositivo Windows Mobile.&lt;br /&gt;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.&lt;br /&gt;L'help di Gmail si limita a dire che l'applicazione Gmail non supporta Windows Mobile (vedi &lt;a href="http://mail.google.com/support/bin/answer.py?hl=it&amp;amp;answer=52870"&gt;questa url&lt;/a&gt;) 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).&lt;br /&gt;Fortunatamente ciò che dice l'help è totalmente errato.&lt;br /&gt;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.&lt;br /&gt;In primo luogo, occorre assicurarsi che sul proprio cellulare ci sia una Java Virtual Machine (JVM). In Start-&gt;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.&lt;br /&gt;In secondo luogo occorre scaricare la MIDlet dell'applicazione gmail ossia il fatidico file gmail-g.jar.&lt;br /&gt;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.&lt;br /&gt;La procedura corretta invece è questa:&lt;br /&gt;1) scaricare sul PC il file gmail-g.jar (v.1.1.1) da questa url:&lt;br /&gt;&lt;a href="http://gmail.com/app/v1.1.1/L1/gmail-g.jar"&gt;http://gmail.com/app/v1.1.1/L1/gmail-g.jar&lt;/a&gt;&lt;br /&gt;2) copiare il file gmail-g.jar in una cartella sullo smartphone (mediante Active Sync o bluetooth)&lt;br /&gt;3) sullo smartphone, aprire la cartella dove è stato salvato il suddetto file (con Esplora File)&lt;br /&gt;4) clickare sul file gmail-g.jar (questa operazione farà partire la JVM)&lt;br /&gt;5) seguire le istruzioni che compariranno sullo schermo.&lt;br /&gt;&lt;br /&gt;Buon divertimento...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-4965162463021615289?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lcLA4rgmyRA06j-kj9IIsYk8DME/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lcLA4rgmyRA06j-kj9IIsYk8DME/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lcLA4rgmyRA06j-kj9IIsYk8DME/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lcLA4rgmyRA06j-kj9IIsYk8DME/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/Y5ruILuYfbo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/4965162463021615289/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=4965162463021615289&amp;isPopup=true" title="2 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/4965162463021615289?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/4965162463021615289?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/Y5ruILuYfbo/gmail-app-su-windows-mobile.html" title="gmail app su windows mobile" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2008/06/gmail-app-su-windows-mobile.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUECQ387fSp7ImA9WBFQF0o.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-3210713335637063027</id><published>2007-03-08T16:27:00.000+01:00</published><updated>2007-03-13T09:14:22.105+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-13T09:14:22.105+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Windows" /><category scheme="http://www.blogger.com/atom/ns#" term="Vista" /><category scheme="http://www.blogger.com/atom/ns#" term="C++" /><title>My application is running on Vista?</title><content type="html">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:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;#define OS_UNKNOWN    -1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#define OS_NT4        0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#define OS_2000        1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#define OS_XP        2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#define OS_2003        3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#define OS_VISTA    4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int getWinVer()&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;{&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OSVERSIONINFO osVerInfo;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;osVerInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GetVersionEx(&amp;osVerInfo);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;        &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(osVerInfo.dwMajorVersion == 6) &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return OS_VISTA;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else if(osVerInfo.dwMajorVersion == 5)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;               &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;                       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(osVerInfo.dwMinorVersion == 2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;                                  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return OS_2003;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else if(osVerInfo.dwMinorVersion == 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;                                  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return OS_XP;&lt;br /&gt;       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;       else if(osVerInfo.dwMinorVersion == 0)&lt;br /&gt;       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return OS_2000;&lt;br /&gt;       &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else if(osVerInfo.dwMajorVersion &lt;= 4)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return OS_NT4;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return OS_UNKNOWN;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-3210713335637063027?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UdvWJbrbX5Gjzw5L5jtCBdGd74A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UdvWJbrbX5Gjzw5L5jtCBdGd74A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UdvWJbrbX5Gjzw5L5jtCBdGd74A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UdvWJbrbX5Gjzw5L5jtCBdGd74A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/XG8fwmkdQQ8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/3210713335637063027/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=3210713335637063027&amp;isPopup=true" title="0 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/3210713335637063027?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/3210713335637063027?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/XG8fwmkdQQ8/my-application-is-running-on-vista.html" title="My application is running on Vista?" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2007/03/my-application-is-running-on-vista.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEHRns5cCp7ImA9WBFQE0k.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-160844606301729946</id><published>2007-03-07T11:17:00.000+01:00</published><updated>2007-03-08T09:30:37.528+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-08T09:30:37.528+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="foot" /><category scheme="http://www.blogger.com/atom/ns#" term="piede" /><title>Piede al tramonto / Foot at sunset</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_2cIFk3f7M20/Re_JbFh2e4I/AAAAAAAAAAs/htqmev2UEFs/s1600-h/Foot.jpg"&gt;&lt;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" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_2cIFk3f7M20/Re6Su4xZ2jI/AAAAAAAAAAk/N6GJa_fd4dg/s1600-h/Foot.jpg"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-160844606301729946?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jvL6LLo08pD_16gB53DeECcf1vo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jvL6LLo08pD_16gB53DeECcf1vo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jvL6LLo08pD_16gB53DeECcf1vo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jvL6LLo08pD_16gB53DeECcf1vo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/edaZQZLx9Nk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/160844606301729946/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=160844606301729946&amp;isPopup=true" title="0 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/160844606301729946?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/160844606301729946?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/edaZQZLx9Nk/il-mio-piede-my-foot.html" title="Piede al tramonto / Foot at sunset" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_2cIFk3f7M20/Re_JbFh2e4I/AAAAAAAAAAs/htqmev2UEFs/s72-c/Foot.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2007/03/il-mio-piede-my-foot.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcBR3k-cCp7ImA9WBFQEUQ.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-3370281236788329775</id><published>2007-03-06T13:51:00.000+01:00</published><updated>2007-03-06T17:20:56.758+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-06T17:20:56.758+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="procida" /><category scheme="http://www.blogger.com/atom/ns#" term="umorismo" /><title>Umorismo Procidano</title><content type="html">La scorsa estate ho passato qualche giorno di vacanza a Procida.&lt;br /&gt;In un angolo della strada, in prossimità del porto, ho scoperto questa pillola di umorismo procidano:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_2cIFk3f7M20/Re1k0YxZ2hI/AAAAAAAAAAU/j0JCsz8QXAE/s1600-h/100_1304.JPG"&gt;&lt;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" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-3370281236788329775?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FJ46G2SBlreh6xBiEVndw414S6k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FJ46G2SBlreh6xBiEVndw414S6k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FJ46G2SBlreh6xBiEVndw414S6k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FJ46G2SBlreh6xBiEVndw414S6k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/Dhp4MDNj1gQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/3370281236788329775/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=3370281236788329775&amp;isPopup=true" title="0 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/3370281236788329775?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/3370281236788329775?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/Dhp4MDNj1gQ/umorismo-procidano.html" title="Umorismo Procidano" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_2cIFk3f7M20/Re1k0YxZ2hI/AAAAAAAAAAU/j0JCsz8QXAE/s72-c/100_1304.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2007/03/umorismo-procidano.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIHQXc9eyp7ImA9WBFSEEk.&quot;"><id>tag:blogger.com,1999:blog-8758590078213572231.post-388241226535498860</id><published>2007-01-24T14:36:00.000+01:00</published><updated>2007-02-09T18:02:10.963+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-02-09T18:02:10.963+01:00</app:edited><title>Finalmente il mio blog</title><content type="html">&lt;span style="font-family:trebuchet ms;"&gt;F&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;inalmente mi sono deciso a pubblicare il mio blog!&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;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à).&lt;br /&gt;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.&lt;br /&gt;Vedremo...&lt;br /&gt;--------------&lt;br /&gt;And finally my Blog!&lt;br /&gt;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.&lt;br /&gt;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 (&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;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.&lt;br /&gt;We'll see...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8758590078213572231-388241226535498860?l=ugochirico.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/alhUv5mqW80pMRQ2I4YlXn6rrQA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/alhUv5mqW80pMRQ2I4YlXn6rrQA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/alhUv5mqW80pMRQ2I4YlXn6rrQA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/alhUv5mqW80pMRQ2I4YlXn6rrQA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/IlBlogDiUgoChirico/~4/-VYVVi0myIU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://ugochirico.blogspot.com/feeds/388241226535498860/comments/default" title="Commenti sul post" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=8758590078213572231&amp;postID=388241226535498860&amp;isPopup=true" title="1 Commenti" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/388241226535498860?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8758590078213572231/posts/default/388241226535498860?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/IlBlogDiUgoChirico/~3/-VYVVi0myIU/finalmente-il-mio-blog.html" title="Finalmente il mio blog" /><author><name>Ugo Chirico</name><uri>http://www.blogger.com/profile/04422445251211842977</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="12469427663238623544" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://ugochirico.blogspot.com/2007/01/finalmente-il-mio-blog.html</feedburner:origLink></entry></feed>
