<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/random &#187; clutter</title>
	<atom:link href="http://alex.amiran.it/tag/clutter/feed/" rel="self" type="application/rss+xml" />
	<link>http://alex.amiran.it</link>
	<description></description>
	<lastBuildDate>Sat, 14 Aug 2010 08:14:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
<link>http://alex.amiran.it</link>
  <url>http://alex.amiran.it/wp-content/themes/shu/img/favicon.png</url>
  <title>/dev/random</title>
</image>
		<item>
		<title>In due settimane il mondo cambia, e a volte finisce&#8230;</title>
		<link>http://alex.amiran.it/20080910/in-due-settimane-il-mondo-cambia-e-a-volte-finisce/</link>
		<comments>http://alex.amiran.it/20080910/in-due-settimane-il-mondo-cambia-e-a-volte-finisce/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 16:11:27 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Viaggi]]></category>
		<category><![CDATA[acer]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[clutter]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[fantascienza]]></category>
		<category><![CDATA[Giappone]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[msi]]></category>
		<category><![CDATA[novità]]></category>
		<category><![CDATA[subnotebook]]></category>

		<guid isPermaLink="false">http://alex.amiran.it/?p=222</guid>
		<description><![CDATA[Uno non può andare in ferie tranquillo che gli stravolgono l&#8217;esistenza?!? Sono tornato dalle tanto attese ferie. Il viaggio è stato piacevole, anche se funestato dalla pioggia per 6 giorni su 10, e da un viaggio di ritorno che ha visto l&#8217;aereo ballare per le turbolenze per 11 ore e 30 su 11 ore e [...]]]></description>
			<content:encoded><![CDATA[<p class="caption"     style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;font-style: italic; padding: 0 1em;font-style: italic; padding: 0 1em;">Uno non può andare in ferie tranquillo che gli stravolgono l&#8217;esistenza?!?</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Sono tornato dalle tanto attese ferie. Il viaggio è stato piacevole, anche se funestato dalla pioggia per 6 giorni su 10, e da un viaggio di ritorno che ha visto l&#8217;aereo ballare per le turbolenze per 11 ore e 30 su 11 ore e 45 di viaggio. Ma credo che vi racconterò il tutto in qualche post nei prossimi giorni, accompagnandoli anche con un po&#8217; di foto.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ma mentre ero via sono successe un sacco di cose!</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">Intel si è comprata OpenedHand</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Per chi non lo sapesse, <a href="http://o-hand.com/"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">OpenedHand</a> era forse la società con la crescita più veloce in ambito Linux Embedded. Ha creato la distribuzione Poky (dal solito OpenEmbedded), la libreria Clutter, diversi programmi PIM per palmari/smartphone (Pimlico) e il window manager matchbox.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Sono abbastanza contento della notizia. Intel si è più volte confermata un discreto alleato dell&#8217;open source, rilasciando driver open e specifiche tecniche per le sue periferiche, contribuendo a diversi progetti e sviluppando tool molto utili (come powertop).</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Credo che il grosso dello sviluppo procederà su clutter, ma spero che anche poky e gli altri progetti vengano portati avanti.</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">Intel accelera Xorg</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ancora Intel, a conferma che supporta Linux. Questa volta <a href="http://www.ossblog.it/post/4360/intel-vuole-accelerare-lo-sviluppo-di-xorg"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Packard è diventato release manager di Xorg 1.6</a>, col preciso intento di accelerare lo sviluppo con l&#8217;introduzione di diverse tecnologie nuove e il miglioramento di altre (DRI 2, randr 1.3, xinput 2, mpx, ecc.)</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Naturalmente daranno la precedenza ai loro driver, ma molte innovazioni andranno a vantaggio di tutti gli utenti.</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">Un sacco di nuovi netbook</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;"><a href="http://www.mobilemag.com/content/100/334/C16089/"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Dell presenta il suo 8.9&#8243;</a>, di cui ho già accennato il mese scorso, ma anche <a href="http://news.cnet.com/8301-17938_105-10029963-1.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Commodore</a> e, nei giorni scorsi, <a href="http://www.jkontherun.com/2008/09/toshiba-to-ente.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Toshiba</a> e <a href="http://www.ubergizmo.com/15/archives/2008/09/samsung_netbook_to_debut_soon.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Samsung</a>, anche se era nell&#8217;aria già da un po&#8217;.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Se devo essere onesto&#8230; bastaaaa! Sono tutti uguali! Atom 1.6 GHz, 1 Gb di RAM, 80 GB di HD, 8.9&#8243; da 1024&#215;600, webcam, 3 usb, SD-card, wifi, bluetooth, presa vga, video Intel  con 8 MB. Cambia praticamente solo la forma e il colore. E tutto per rientrare nei &#8220;parametri&#8221; dettati da MS per poterci mettere XP. Intanto ASUS incasina il mercato con decine di versioni dell&#8217;Eee, e non ci si capisce più niente.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Almeno fateli un po&#8217; diversi, che ne so, con Atom a velocità diverse o con AMD/VIA, con schermi a risoluzione diversa, con uscita DVI invece di VGA, con un lettore di schede diverso dal solo SD, con openfirmware (o openBIOS o LinuxBIOS) al posto del BIOS, col touchscreen, senza l&#8217;inutile webcam, col telecomando, ecc.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">L&#8217;unico che si distingue un po&#8217; dalla massa sembra il <a href="http://www.ubergizmo.com/15/archives/2008/09/gdium_netbook_prides_itself_in_being_different.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">GDium</a>, che almeno propone qualcosa di diverso: tutti i dati su una chiavetta senza la quale il PC è inutilizzabile. Anche la CPU non è il solito Atom, e nemmeno x86, ma una <a href="http://en.wikipedia.org/wiki/Loongson"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Loongson a 64bit</a>, compatibile MIPS, da quel che ho capito, quindi non c&#8217;è pericolo che ci possa girare Windows.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Su questo argomento ci sarebbe ancora un bel po&#8217; da discutere. Per esempio sul Gigabyte 704, sul Willkom D4 e su altro, ma vedremo nei prossimi giorni se ne vale la pena&#8230; <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_smile.gif"  alt=":)"  class="wp-smiley"   style="border: 0;"/> </p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">In proposito, le statistiche di Akihabara (il quartiere dedicato a elettronica e manga di Tokyo): l&#8217;Eee 901 era praticamente in ogni negozio o centro commerciale, (oltre una ventina) ma solo in versione 12 GB con Windows. Nessuna traccia della versione Linux. Il Wind di MSI si piazza secondo, era in 5 negozi (sempre solo Windows). L&#8217;Acer AspireOne (Windows&#8230;) l&#8217;ho visto in due negozi, e l&#8217;HP 2133 (indovinate il S.O. &#8230;) in uno solo. Di tutti gli altri non c&#8217;era traccia. Ma a farla da padrone era il Kohjinsha, presente dappertutto, sia nuovo che usato, in vari modelli. Peccato costasse il triplo dell&#8217;Eee&#8230; <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_smile.gif"  alt=":)"  class="wp-smiley"   style="border: 0;"/> </p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">L&#8217;Eee 701 era quasi onnipresente quanto il 901, solitamente in offertona a 1000 yen al mese (6,5 euro) se abbinato a un contratto UMTS. Nessuna traccia degli altri modelli (900, 900A, 904, 1000*, ecc.), e nemmeno di altre marche.</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">Android è sempre più vicino e Google ci metterà Chrome</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Nonostante il disastro con gli sviluppatori, Google continua per la sua strada e rilascia la <a href="http://code.google.com/android/roadmap.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">0.9 di Android</a>, promettendo altre patch nel corso del mese prima del rilascio della 1.0 entro fine anno. <a href="http://www.readwriteweb.com/archives/first_android_phone_just_approved.php"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">A novembre infatti dovrebbe uscire il primo &#8220;googlefonino&#8221; ad opera di HTC</a>.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Intanto Google cerca di capitalizzare sui suoi servizi online (vive di pubblicità) rilasciando un browser: <a href="http://www.google.com/chrome"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Chrome</a>.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Sull&#8217;opportunità di un nuovo browser non mi esprimo. Sull&#8217;opportunità di prendere una vecchia versione di webkit, che non supera nemmeno l&#8217;acid 3 (quindi moooolto vecchia), invece sì: pessima idea. Sarebbe stato meglio partecipare fin da subito allo sviluppo della nuova versione collaborando con gli sviluppatori, invece di lavorare su una vecchia e <a href="http://www.ossblog.it/post/4366/le-patch-di-google-arrivano-in-webkit"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">mandare quintalate di patch per l&#8217;inclusione</a> (alcune sono già state rifiutate perché non cross-platform). C&#8217;è di buono che ne è uscita una nuova libreria per le immagini, Skia, che sembra offrire le stesse cose di Cairo ma con un&#8217;architettura più semplice. Resta da vedere se veramente offre le stesse cose o se magari non manca giusto quella funzionalità che gli fa risparmiare 10.000 righe di codice rispetto a Cairo (il fatto che sia in C++ invece che in C potrebbe essere un problema in alcuni casi, tra l&#8217;altro).</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">Anche la fine del mondo è vicina&#8230;</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;"><a href="http://alex.amiran.it/wp-content/uploads/2008/09/google-lhc.gif"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;"><img hspace="0"  vspace="1em"  align="left"  class="float_left"  title="Google LHC"  src="http://alex.amiran.it/wp-content/uploads/2008/09/google-lhc-150x56.gif"  alt=""  width="150"  height="56"     style="border: 0;display: block; border: 0; float: left; clear: left; margin: 1em 1em 1em 0; padding: 5px;"/></a>&#8230; ma poi nemmeno tanto. Al <a href="http://www.ilsole24ore.com/art/SoleOnLine4/Tecnologia%20e%20Business/2008/09/cern-esperimento-riuscito.shtml?uuid=fdbee8d0-7f26-11dd-b0fe-339c6b71624c&amp;type=Libero"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">CERN di Ginevra è stato acceso oggi il Large Hadron Collider</a>, un acceleratore di particelle lungo 27 Km che dovrebbe cercare di verificare se il Bosone, particella subatomica finora solo teorizzata, esiste davvero, e se è veramente l&#8217;origine della materia del nostro universo.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Cosa c&#8217;entra Linux? <a href="http://blog.internetnews.com/skerner/2008/09/large-hadron-collider---powere.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Linux c&#8217;entra sempre</a>! <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_smile.gif"  alt=":)"  class="wp-smiley"   style="border: 0;"/> </p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;"><a href="http://alex.amiran.it/wp-content/uploads/2008/09/repubblica-buconero.jpg"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;"><img hspace="1em"  vspace="1em"  align="right"  class="float_right"  title="Repubblica - Buco Nero"  src="http://alex.amiran.it/wp-content/uploads/2008/09/repubblica-buconero-133x150.jpg"  alt=""  width="133"  height="150"     style="border: 0;display: block; border: 0; float: right; clear: right; margin: 1em 0 1em 1em; padding: 5px;"/></a><a href="http://blog.ted.com/2008/09/hawking_makes_1.php"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Stephen Hawking ha scommesso 100 dollari che non troveranno niente</a>. Secondo alcuni, invece, questo avrebbe portato alla fine dell&#8217;universo a causa della creazione di buchi neri che avrebbero inghiottito tutta la materia. Google ha dedicato all&#8217;evento il suo logo, e vi rimando alla pagina di Repubblica qui di fianco per gli approfondimenti (fonte: <a href="http://www.vendotutto.org/dblog/storico.asp"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">vendotutto.org</a>).</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Ma non disperate! Quello di oggi era solo un esperimento di accelerazione di un po&#8217; di protoni. I veri scontri tra particelle ad alta energia avverranno nei prossimi mesi, quindi potete continuare a tremare almeno fino alla metà del 2009!</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">E nel caso non finisse il mondo, spero che riescano a miniaturizzare l&#8217;LHC, diciamo sull&#8217;ordine dei 27 cm (con le regexp è semplice: &#8220;s/k/c/g&#8221; <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_smile.gif"  alt=":)"  class="wp-smiley"   style="border: 0;"/>  ), così posso installarlo sulla macchina e sparare buchi neri quando c&#8217;è troppa coda.</p>
<hr />
<p><small>© Alex for <a href="http://alex.amiran.it">/dev/random</a>, 2008. |
<a href="http://alex.amiran.it/20080910/in-due-settimane-il-mondo-cambia-e-a-volte-finisce/">Permalink</a> |
<a href="http://alex.amiran.it/20080910/in-due-settimane-il-mondo-cambia-e-a-volte-finisce/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://alex.amiran.it/20080910/in-due-settimane-il-mondo-cambia-e-a-volte-finisce/&title=In due settimane il mondo cambia, e a volte finisce&#8230;">del.icio.us</a>
<br/>
Post tags: <a href="http://alex.amiran.it/tag/acer/" rel="tag">acer</a>, <a href="http://alex.amiran.it/tag/android/" rel="tag">android</a>, <a href="http://alex.amiran.it/tag/asus/" rel="tag">asus</a>, <a href="http://alex.amiran.it/tag/clutter/" rel="tag">clutter</a>, <a href="http://alex.amiran.it/tag/dell/" rel="tag">dell</a>, <a href="http://alex.amiran.it/tag/fantascienza/" rel="tag">fantascienza</a>, <a href="http://alex.amiran.it/tag/giappone/" rel="tag">Giappone</a>, <a href="http://alex.amiran.it/tag/intel/" rel="tag">intel</a>, <a href="http://alex.amiran.it/tag/linux/" rel="tag">Linux</a>, <a href="http://alex.amiran.it/tag/msi/" rel="tag">msi</a>, <a href="http://alex.amiran.it/tag/novita/" rel="tag">novità</a>, <a href="http://alex.amiran.it/tag/subnotebook/" rel="tag">subnotebook</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://alex.amiran.it/20080910/in-due-settimane-il-mondo-cambia-e-a-volte-finisce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vala e Clutter</title>
		<link>http://alex.amiran.it/20080801/vala-e-clutter/</link>
		<comments>http://alex.amiran.it/20080801/vala-e-clutter/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 16:42:58 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[clutter]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[vala]]></category>

		<guid isPermaLink="false">http://alex.amiran.it/?p=170</guid>
		<description><![CDATA[Interfacce in 3D in modo semplice e veloce. Da un po&#8217; di tempo seguo lo sviluppo di Clutter, una libreria che permette di scrivere interfacce 3D basate su OpenGL, e quindi automaticamente accelerate se avete i driver 3D per la vostra scheda, in modo molto semplice. Non andando molto d&#8217;accordo con il C (mi si [...]]]></description>
			<content:encoded><![CDATA[<p class="caption"     style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;font-style: italic; padding: 0 1em;font-style: italic; padding: 0 1em;">Interfacce in 3D in modo semplice e veloce.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Da un po&#8217; di tempo seguo lo sviluppo di <a href="http://www.clutter-project.org/"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Clutter</a>, una libreria che permette di scrivere interfacce 3D basate su OpenGL, e quindi automaticamente accelerate se avete i driver 3D per la vostra scheda, in modo molto semplice.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Non andando molto d&#8217;accordo con il C (mi si ingarbugliano spesso i puntatori e i cast <img src="http://alex.amiran.it/wp-includes/images/smilies/icon_wink.gif"  alt=";)"  class="wp-smiley"   style="border: 0;"/>  ), aspettavo che fossero stabili e utilizzabili i <a href="http://www.clutter-project.org/blog/?p=30"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">binding per Vala</a>, e dopo il recente rilascio della versione 0.8.0 di Clutter, finalmente anche i binding sembrano a buon punto, quindi mi sono messo a smanettarci. L&#8217;unica &#8220;fregatura&#8221; è che per ora bisogna scaricarli via SVN e installarli a mano in /usr/share/vala/vapi/.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Purtroppo non si trovano molti <a href="http://www.gnome.org/~aruiz/vala/test-actors.vala"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">esempi in Vala</a>, e quelli che si trovano sono basati sulla versione 0.6.x di Clutter, quindi ho cercato di fare un mix di questi e degli <a href="http://svn.o-hand.com/repos/clutter/trunk/clutter/tests/"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">esempi in C sul sito ufficiale</a>, seguendo il <a href="http://www.clutter-project.org/docs/clutter/0.8/"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">manuale ufficiale di Clutter</a> che, nella migliore tradizione Gtk/Gnome, è utilissimo se sapete già usarlo, ma molto rognoso se state iniziando, e me ne sono uscito col primo programmino:<span id="more-170" ></span></p>

<div class="wp_syntax" ><div class="code" ><pre class="csharp"     style="font-family:monospace;font-family:monospace;font-family: 'DejaVu Sans Mono' Consola Inconsolata fixed; margin: 1em; padding: 0.5em; border: 1px solid #9f9;font-family: 'DejaVu Sans Mono' Consola Inconsolata fixed; margin: 1em; padding: 0.5em; border: 1px solid #9f9;"><span style="color: #0600FF;" >using</span> <span style="color: #008080;" >Clutter</span><span style="color: #008000;" >;</span>
<span style="color: #0600FF;" >using</span> <span style="color: #008080;" >GLib</span><span style="color: #008000;" >;</span>
<span style="color: #0600FF;" >using</span> <span style="color: #008080;" >Gdk</span><span style="color: #008000;" >;</span>
&nbsp;
<span style="color: #0600FF;" >public</span> <span style="color: #FF0000;" >class</span> Scena <span style="color: #008000;" >:</span> GLib.<span style="color: #FF0000;" >Object</span>
<span style="color: #000000;" >&#123;</span>
    <span style="color: #0600FF;" >public</span> Clutter.<span style="color: #0000FF;" >Label</span> label<span style="color: #008000;" >;</span>
    <span style="color: #0600FF;" >public</span> Clutter.<span style="color: #0000FF;" >Timeline</span> timeline<span style="color: #008000;" >;</span>
    <span style="color: #0600FF;" >public</span> Clutter.<span style="color: #0000FF;" >Color</span> label_white<span style="color: #008000;" >;</span>
    <span style="color: #0600FF;" >public</span> Clutter.<span style="color: #0000FF;" >Color</span> label_red<span style="color: #008000;" >;</span>
&nbsp;
    construct <span style="color: #000000;" >&#123;</span>
&nbsp;
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >timeline</span> <span style="color: #008000;" >=</span> <span style="color: #008000;" >new</span> Clutter.<span style="color: #0000FF;" >Timeline</span><span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >720</span>,<span style="color: #FF0000;" >15</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >timeline</span>.<span style="color: #0000FF;" >loop</span> <span style="color: #008000;" >=</span> true<span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >timeline</span>.<span style="color: #0000FF;" >new_frame</span> <span style="color: #008000;" >+=</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >frame_cb</span><span style="color: #008000;" >;</span>
&nbsp;
        Clutter.<span style="color: #0000FF;" >Color</span> label_white <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#123;</span>0xff, 0xff, 0xff, 0xff <span style="color: #000000;" >&#125;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label_white</span> <span style="color: #008000;" >=</span> label_white<span style="color: #008000;" >;</span>
&nbsp;
        Clutter.<span style="color: #0000FF;" >Color</span> label_red <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#123;</span>0xff, 0x00, 0x00, 0xff <span style="color: #000000;" >&#125;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label_red</span> <span style="color: #008000;" >=</span> label_red<span style="color: #008000;" >;</span>
&nbsp;
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span> <span style="color: #008000;" >=</span> <span style="color: #008000;" >new</span> Clutter.<span style="color: #0000FF;" >Label</span><span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_font_name</span><span style="color: #000000;" >&#40;</span><span style="color: #666666;" >&quot;Sans 24&quot;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_text</span><span style="color: #000000;" >&#40;</span><span style="color: #666666;" >&quot;Prova&quot;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_color</span><span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >ref</span> label_white<span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_position</span><span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >10</span>,<span style="color: #FF0000;" >10</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_reactive</span><span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >true</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >button_press_event</span> <span style="color: #008000;" >+=</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >button_press</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >button_release_event</span> <span style="color: #008000;" >+=</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >button_release</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >enter_event</span> <span style="color: #008000;" >+=</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >enter_event</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >leave_event</span> <span style="color: #008000;" >+=</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >leave_event</span><span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
&nbsp;
    <span style="color: #0600FF;" >public</span> <span style="color: #0600FF;" >void</span> frame_cb<span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >Timeline</span> tl, <span style="color: #FF0000;" >int</span> frame_num<span style="color: #000000;" >&#41;</span>
    <span style="color: #000000;" >&#123;</span>
        <span style="color: #0600FF;" >if</span> <span style="color: #000000;" >&#40;</span>frame_num <span style="color: #008000;" >&amp;</span>lt<span style="color: #008000;" >;=</span><span style="color: #FF0000;" >360</span><span style="color: #000000;" >&#41;</span> <span style="color: #000000;" >&#123;</span>
            <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_position</span><span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >10</span><span style="color: #008000;" >+</span>frame_num, <span style="color: #FF0000;" >10</span><span style="color: #008000;" >+</span>frame_num<span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #000000;" >&#125;</span> <span style="color: #0600FF;" >else</span> <span style="color: #000000;" >&#123;</span>
            <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_position</span><span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >730</span><span style="color: #008000;" >-</span>frame_num, <span style="color: #FF0000;" >730</span><span style="color: #008000;" >-</span>frame_num<span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #000000;" >&#125;</span>
&nbsp;
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_rotation</span><span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >RotateAxis</span>.<span style="color: #0000FF;" >Y_AXIS</span>, frame_num, <span style="color: #FF0000;" >0</span>,<span style="color: #FF0000;" >0</span>,<span style="color: #FF0000;" >0</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label</span>.<span style="color: #0000FF;" >set_opacity</span><span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#40;</span>uchar<span style="color: #000000;" >&#41;</span><span style="color: #000000;" >&#40;</span>frame_num<span style="color: #008000;" >%</span>255<span style="color: #000000;" >&#41;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
&nbsp;
    <span style="color: #0600FF;" >public</span> <span style="color: #FF0000;" >bool</span> button_press<span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >Label</span> label, Clutter.<span style="color: #0000FF;" >ButtonEvent</span> <span style="color: #0600FF;" >event</span><span style="color: #000000;" >&#41;</span>
    <span style="color: #000000;" >&#123;</span>
        stdout.<span style="color: #0000FF;" >printf</span><span style="color: #000000;" >&#40;</span><span style="color: #666666;" >&quot;Button press<span style="color: #008080; font-weight: bold;" >\n</span>&quot;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >return</span> false<span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
&nbsp;
    <span style="color: #0600FF;" >public</span> <span style="color: #FF0000;" >bool</span> button_release<span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >Label</span> label, Clutter.<span style="color: #0000FF;" >ButtonEvent</span> <span style="color: #0600FF;" >event</span><span style="color: #000000;" >&#41;</span>
    <span style="color: #000000;" >&#123;</span>
        stdout.<span style="color: #0000FF;" >printf</span><span style="color: #000000;" >&#40;</span><span style="color: #666666;" >&quot;Button release<span style="color: #008080; font-weight: bold;" >\n</span>&quot;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >return</span> false<span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
&nbsp;
    <span style="color: #0600FF;" >public</span> <span style="color: #FF0000;" >bool</span> enter_event<span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >Label</span> label, Clutter.<span style="color: #0000FF;" >CrossingEvent</span> <span style="color: #0600FF;" >event</span><span style="color: #000000;" >&#41;</span>
    <span style="color: #000000;" >&#123;</span>
        label.<span style="color: #0000FF;" >set_color</span><span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >ref</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label_red</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >return</span> false<span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
&nbsp;
    <span style="color: #0600FF;" >public</span> <span style="color: #FF0000;" >bool</span> leave_event<span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >Label</span> label, Clutter.<span style="color: #0000FF;" >CrossingEvent</span> <span style="color: #0600FF;" >event</span><span style="color: #000000;" >&#41;</span>
    <span style="color: #000000;" >&#123;</span>
        label.<span style="color: #0000FF;" >set_color</span><span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >ref</span> <span style="color: #0600FF;" >this</span>.<span style="color: #0000FF;" >label_white</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        <span style="color: #0600FF;" >return</span> false<span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
&nbsp;
<span style="color: #000000;" >&#125;</span>
<span style="color: #0600FF;" >public</span> <span style="color: #FF0000;" >class</span> Test <span style="color: #008000;" >:</span> GLib.<span style="color: #FF0000;" >Object</span>
<span style="color: #000000;" >&#123;</span>
    <span style="color: #0600FF;" >static</span> <span style="color: #0600FF;" >void</span> main <span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >string</span><span style="color: #000000;" >&#91;</span><span style="color: #000000;" >&#93;</span> args<span style="color: #000000;" >&#41;</span> <span style="color: #000000;" >&#123;</span>
        Clutter.<span style="color: #0000FF;" >init</span> <span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >ref</span> args<span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        Clutter.<span style="color: #0000FF;" >Stage</span> stage <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#40;</span>Clutter.<span style="color: #0000FF;" >Stage</span><span style="color: #000000;" >&#41;</span> Clutter.<span style="color: #0000FF;" >Stage</span>.<span style="color: #0000FF;" >get_default</span> <span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        Clutter.<span style="color: #0000FF;" >Color</span> background<span style="color: #008000;" >;</span>
&nbsp;
        stage.<span style="color: #0000FF;" >get_color</span><span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >out</span> background<span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        background.<span style="color: #0000FF;" >red</span> <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >char</span><span style="color: #000000;" >&#41;</span> 0x61<span style="color: #008000;" >;</span>
        background.<span style="color: #0000FF;" >green</span> <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >char</span><span style="color: #000000;" >&#41;</span> 0x64<span style="color: #008000;" >;</span>
        background.<span style="color: #0000FF;" >blue</span> <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >char</span><span style="color: #000000;" >&#41;</span> 0x8c<span style="color: #008000;" >;</span>
        background.<span style="color: #0000FF;" >alpha</span> <span style="color: #008000;" >=</span> <span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >char</span><span style="color: #000000;" >&#41;</span> 0xff<span style="color: #008000;" >;</span>
        stage.<span style="color: #0000FF;" >set_color</span> <span style="color: #000000;" >&#40;</span><span style="color: #0600FF;" >ref</span> background<span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
&nbsp;
        stage.<span style="color: #0000FF;" >set_size</span><span style="color: #000000;" >&#40;</span><span style="color: #FF0000;" >640</span>, <span style="color: #FF0000;" >480</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
&nbsp;
        var scena <span style="color: #008000;" >=</span> <span style="color: #008000;" >new</span> Scena<span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
&nbsp;
        stage.<span style="color: #0000FF;" >add_actor</span><span style="color: #000000;" >&#40;</span>scena.<span style="color: #0000FF;" >label</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
        scena.<span style="color: #0000FF;" >timeline</span>.<span style="color: #0000FF;" >start</span><span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
&nbsp;
        stage.<span style="color: #0000FF;" >show_all</span> <span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
&nbsp;
        Clutter.<span style="color: #0000FF;" >main</span> <span style="color: #000000;" >&#40;</span><span style="color: #000000;" >&#41;</span><span style="color: #008000;" >;</span>
    <span style="color: #000000;" >&#125;</span>
<span style="color: #000000;" >&#125;</span></pre></div></div>

<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Il programma, se mi passate il francesismo, è di una stupidità disarmante.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Si limita a creare un &#8220;attore&#8221; (nel gergo di Clutter) rappresentato da una label (un testo) con font Sans 24 punti, di colore bianco, e a metterlo sulla scena (stage), data da una finestra da 640&#215;480 pixel con sfondo azzurrognolo.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Tutto il resto è magia! Viene reso sensibile l&#8217;attore, e vengono intercettati i segnali di base: il puntatore si muove sopra la label, il puntatore esce dalla label, viene premuto il tasto sinistro del mouse, viene rilasciato il tasto sinistro del mouse. Poi il tutto viene animato tramite una timeline, formata da 720 frame a 15 frame al secondo (è già abbastanza fluido. Ho provato anche con 30 e 60, ma la differenza quasi non si nota, tranne per la velocità di movimento della scritta). I 720 frame li ho scelti per non complicarmi la vita, visto che le rotazioni sono in gradi, ma potete usare quello che volete.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">La label si muove dall&#8217;angolo in alto a sinistra a quello in basso a destra, e nel frattempo ruota su se stessa e appare piano piano, per poi sparire di nuovo. Il tutto avviene nel callback frame_cb() che, in base al frame in cui si trova, applica le variazioni all&#8217;attore.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Se vi muovete col mouse sopra la label, questa diventa rossa, se ne uscite, torna bianca (enter_event e leave_event). Se ci cliccate vi appare un messaggio nella console (button_press e button_release). Il tutto anche mentre la label si muove!</p>
<h2  style="font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;font-size: 1.4em; font-weight: bold; line-height: 1.5em; font-family: 'DejaVu Serif' Tahoma 'Times New Roman' times serif;">Le possibilità sono veramente infinite.</h2>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Si possono muovere gli attori (che però sono limitati ad essere 2D) in uno spazio completamente 3D. Li si vede rimpicciolire quando si allontanano lungo l&#8217;asse z, e ingrandire quando si avvicinano, e si deformano quando si allontanano dal centro (il punto di fuga della scena). Si possono caricare immagini in diversi formati, compreso l&#8217;SVG (vettoriale).Si possono raggruppare diversi elementi (immagini, testi, video ed altro) in un gruppo che è a sua volta un attore, e può essere spostato, scalato, ruotato, ecc.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Grazie a Pango, il testo non ha limiti di nazionalità e di caratteri strani. Si possono inserire filmati supportati da GStreamer, renderizzare su superfici Cairo, embeddare il tutto in finestre Gtk+ e, tramite librerie esterne, utilizzare un motore basato su leggi fisiche o embeddare il motore WebKit per visualizzare pagine HTML.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Inoltre sono supportati diversi dispositivi di input e si possono definire le animazioni tramite scripting in JSON.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Io ho appena iniziato a scalfire la superficie di questo enorme iceberg, ma già <a href="http://aruiz.typepad.com/siliconisland/2007/11/vala-powered-cl.html"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">intravedo</a> <a href="http://www.youtube.com/watch?v=GHmkPlW_zt0"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">sviluppi</a> <a href="http://www.youtube.com/watch?v=arL_-tQndzI"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">spaventosi</a>. D&#8217;altronde non serve nemmeno fantasticare tanto. Se avete presente l&#8217;interfaccia dell&#8217;iPhone/iPod Touch o quelle che ho linkato qualche giorno fa per Android, ecco, avete un&#8217;idea di cosa ci si possa fare. Anche Intel, per <a href="http://www.clutter-project.org/blog/?p=58"  target="_blank"   style="color: #4fc84f; font-weight: bold; text-decoration: underline;color: #4fc84f; font-weight: bold; text-decoration: underline;">Moblin</a>, probabilmente userà clutter per la GUI.</p>
<p  style="margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;margin: 1em 2em; line-height: 1.6em; font-size: 1em; font-family: 'DejaVu Sans' Verdana sans-serif; text-align: justify;">Clutter è anche multipiattaforma, e Vala, dopo aver installato le GLib ed eventualmente le GDK e le Gtk+ sotto Windows/Mac, può essere compilato anche su questi sistemi, quindi i software gireranno senza problemi su tutti e tre i sistemi.</p>
<hr />
<p><small>© Alex for <a href="http://alex.amiran.it">/dev/random</a>, 2008. |
<a href="http://alex.amiran.it/20080801/vala-e-clutter/">Permalink</a> |
<a href="http://alex.amiran.it/20080801/vala-e-clutter/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://alex.amiran.it/20080801/vala-e-clutter/&title=Vala e Clutter">del.icio.us</a>
<br/>
Post tags: <a href="http://alex.amiran.it/tag/clutter/" rel="tag">clutter</a>, <a href="http://alex.amiran.it/tag/gtk/" rel="tag">gtk</a>, <a href="http://alex.amiran.it/tag/linux/" rel="tag">Linux</a>, <a href="http://alex.amiran.it/tag/programmazione/" rel="tag">Programmazione</a>, <a href="http://alex.amiran.it/tag/vala/" rel="tag">vala</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://alex.amiran.it/20080801/vala-e-clutter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.945 seconds -->
