<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Thomas M. Alisi</title>
	
	<link>http://tom.londondroids.com</link>
	<description>home of Grudelsud</description>
	<lastBuildDate>Mon, 05 Mar 2012 17:10:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ThomasMAlisi" /><feedburner:info uri="thomasmalisi" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>jquery+php regex checker and reverse geo-coding service</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/-OidHUtmVIM/</link>
		<comments>http://tom.londondroids.com/2012/03/jqueryphp-regex-checker-and-reverse-geo-coding-service/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 17:10:10 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=350</guid>
		<description><![CDATA[It happened a million times: I had to check a regex in PHP and did not have a handy tool to see the result. I usually linger on Rubular, which is a great service but based on Ruby, and sometimes the results are a bit different. I decided to implement a simple regex checker similar [...]]]></description>
			<content:encoded><![CDATA[<p>It happened a million times: I had to check a regex in PHP and did not have a handy tool to see the result. I usually linger on Rubular, which is a great service but based on Ruby, and sometimes the results are a bit different. <a href="http://dev.londondroids.com/tools/">I decided to implement a simple regex checker</a> similar to Rubular, but based on php preg_match. Another service that I need to use daily is <a href="http://dev.londondroids.com/tools/index.php/main/geocode">reverse geo-coding</a>, adding an easy way to find latitude and longitude of a specific point on the map, again there are tons of services around, but none is really what I needed. So I decided to develop my own, and share them (you might break them easily, they're just simple tools for manual use, hence there are API limits, and security wasn't my focus, so please don't hit them too hard). I might add a few things from time to time, depending on my needs, but feel free to drop me a line if you either want to contribute or feel something really missing.</p>
<h2><a href="http://dev.londondroids.com/tools/index.php/main/preg_match">PHP + jQuery Regex checker</a></h2>
<p><a href="http://dev.londondroids.com/tools/index.php/main/preg_match"><img class="aligncenter size-medium wp-image-351" title="php+jquery regex checker" src="http://tom.londondroids.com/wp-content/uploads/2012/03/php+jquery-regex-checker-544x395.png" alt="" width="544" height="395" /></a></p>
<h2><a href="http://dev.londondroids.com/tools/index.php/main/geocode">reverse geo-coding</a></h2>
<p><a href="http://dev.londondroids.com/tools/index.php/main/geocode"><img class="aligncenter size-medium wp-image-352" title="reverse geo-coding" src="http://tom.londondroids.com/wp-content/uploads/2012/03/reverse-geo-coding-544x395.png" alt="" width="544" height="395" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2012/03/jqueryphp-regex-checker-and-reverse-geo-coding-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2012/03/jqueryphp-regex-checker-and-reverse-geo-coding-service/</feedburner:origLink></item>
		<item>
		<title>“He’s gone to China” – avere un figlio a Londra N4</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/Cy-iDV4GbNk/</link>
		<comments>http://tom.londondroids.com/2012/02/hes-gone-to-china-avere-un-figlio-a-londra-n4/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 14:38:39 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[miscellanea]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=346</guid>
		<description><![CDATA[Primo e ultimo post riguardo la faccenda figlio, non voglio annoiare me stesso, nè le 10 persone che si imbattono per sbaglio in questo post, ma nello stesso tempo voglio mettere giù due note per rileggermi in futuro qualche dettaglio colorito che inevitabilmente andrebbe perso e ricordarmi di quella meravigliosa cacofonia di etnie e strana [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-347" title="Whittington Hospital Entrance" src="http://tom.londondroids.com/wp-content/uploads/2012/02/IMG_20120125_065620-544x408.jpg" alt="" width="544" height="408" /></p>
<p>Primo e ultimo post riguardo la faccenda figlio, non voglio annoiare me stesso, nè le 10 persone che si imbattono per sbaglio in questo post, ma nello stesso tempo voglio mettere giù due note per rileggermi in futuro qualche dettaglio colorito che inevitabilmente andrebbe perso e ricordarmi di quella meravigliosa cacofonia di etnie e strana accozzaglia di personaggi improbabili ma tutti incredibilmente gentili che hanno avuto a che fare con mio figlio già al decimo giorno di vita.</p>
<p>Intanto un po' di contesto: residenti in N4, ci spetta l'ospedale Whittington, che ci dicono tutti essere incredibilmente all'avanguardia e dotato di personale assai preparato; ci spetta inoltre il team "Hornsey Rise" di midwife che ci seguiranno in questa avventura, e anche di questo team sentiamo parlare un gran bene. Entrambi si sono confermati eccezionali, e ripensando ai mesi passati sento necessario ricordare alcuni piccoli eventi che mi hanno portato il sorriso.</p>
<p><span id="more-346"></span>Il primo contatto avviene con Jane, probabilmente l'unica nativa inglese della storia, colei che ci seguirà lungo tutto il percorso e le cui visite bi-settimanali hanno sempre rasserenato e rassicurato da ogni paura. La prima visita in particolare era a domicilio: ai miei genitori in visita a Londra e non ancora a conoscenza della gravidanza, gli è stato detto essere un controllo della compagnia di assicurazione, almeno in attesa della prima ecografia. Thank you so much Jane, your help and support has been terrific!</p>
<p>Il sistema qua segue un processo estremamente naturale: se non ci sono condizioni particolari (come nel nostro caso) è molto probabile che si arrivi al giorno del parto senza aver mai visto un dottore ginecologo, e aver visto l'ospedale forse solo in un paio di occasioni: per un esame del sangue e per l'unica ecografia che viene fatta a 20 settimane. Seguire un percorso naturale consente di mantenere uno stato d'animo positivo e non da paziente malato che deve sottoporsi a frequenti esami: ci piace. Una studentessa iraniana ha fatto l'ecografia, sotto supervisione della dottoressa, grandi sorrisi, dentro e fuori in 10 minuti con un referto: è un maschio. Nella stessa occasione vengono presi i dati per effettuare la translucenza nucale, i cui risultati arrivano a casa nel giro di pochi giorni: la probabilità della sindrome di Down è bassissima, 1 su 9000 circa, non è necessario proseguire con amniocentesi, ottimo.</p>
<p>La parte restante della gravidanza, quasi fino al gran giorno, è proseguita tranquillamente: un controllo ogni 2 settimane, fatto per lo più al Children Centre di Tollington Park, non è un ambulatorio, ma piuttosto un asilo dove le midwife hanno una stanza per effettuare i controlli, e questo contribuisce a sentirsi parte della comunità piuttosto che essere un malato bisognoso di cure.</p>
<p>Ci si avvicina al giorno fatidico, e l'essere sembra non volerne sapere e ci viene quindi consigliato di fare delle sessioni di agopuntura, alla locale clinica <a href="http://www.asante-academy.com/">Asante</a>. Le signore cinesi ci fanno sapere che sta per concludersi l'anno del coniglio per iniziare quello del drago, e che in china questo è motivo di grande emozione e orgoglio per i nati nel nuovo segno, quindi per quanto l'agopuntura non sembra fare grosso effetto, è senz'altro molto rilassante e la prospettiva di avere un piccolo drago mette di buon umore. Ci riguardiamo <a href="http://www.imdb.com/title/tt0109382/">Caro Diario</a> di Moretti, condividendo la simpatia per gli agopunturisti cinesi, e trascorre un'altra settimana.</p>
<p>Finchè arriviamo al gran giorno, quello in cui nascerà il piccolo drago, il 25.1.12. Ci accoglie una midwife americana, sta per chiudere il turno e passare le consegne al team successivo, trova il tempo di descriverci quanto sia soddisfatta del sistema Britannico. Durante le prime ore ci vengono a controllare una "sorella" tutta piercing e palestra con un'assistente dal tintinnante e simpatico accento irlandese: ci accompagnano per mano in sala parto, consegnandoci ai dottori. Da quel momento in poi e per 6 ore circa sono principalmente indiani e greci a farci compagnia con la calma rassicurante della professionalità e la certezza di assistere ad un meccanismo perfettamente oliato nonostante i divertenti marcatissimi accenti che ci circondano.</p>
<p>Finisce tutto bene, troppo tardi per andare a prendere del cibo alla mensa dell'ospedale, una midwife ci suggerisce che posso scendere e prendere qualcosa da MacDonald se abbiamo fame. La guardo spaesato, penso che la stessa raccomandazione in Italia avrebbe fatto il giro delle cronache, e mi ritengo fortunato di essere in un paese diverso. In ogni caso optiamo per la pizza, che ci mangiamo sul letto della sala parto per la prima volta come una famiglia.</p>
<p>24 ore dopo siamo a casa, ad oggi sono passati 10 giorni e il gruppo di midwife è già passato 4 volte per controllare che sia tutto a posto. Una signora malese estremamente gentile, con quel viso serio che infonde sicurezza e rilassatezza che solo gli asiatici possono avere, controlla che l'allattamento e la crescita proseguono correttamente. Si chiama Kim, e quando vede il piccolo Benjamin che si addormenta, completamente ubriaco di latte, sorride ed esclama: "he's gone to China"</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2012/02/hes-gone-to-china-avere-un-figlio-a-londra-n4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2012/02/hes-gone-to-china-avere-un-figlio-a-londra-n4/</feedburner:origLink></item>
		<item>
		<title>Visualizing Cluster of Tweets in London during the Royal Wedding</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/ikueGWfeH00/</link>
		<comments>http://tom.londondroids.com/2012/02/visualizing-cluster-of-tweets-in-london-during-the-royal-wedding/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 09:52:22 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[FOM]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=340</guid>
		<description><![CDATA[So the little storm has arrived! I am now the proud (and tired) father of little Benjamin, and for this reason blocked at home with little or no time for doing anything but changing nappies and cooking super-proteic food for Val. But somehow I found some time amuse myself with a little piece of Processing [...]]]></description>
			<content:encoded><![CDATA[<p>So the little storm has arrived! I am now the proud (and tired) father of little Benjamin, and for this reason blocked at home with little or no time for doing anything but changing nappies and cooking super-proteic food for Val. But somehow I found some time amuse myself with a little piece of Processing and wrote a simple code to visualize tweets on a map of London during the Royal Wedding. Easy enough to foresee, tweets during the day are creating nice clusters around Buckingham Palace, Westminster Abbey and the super posh hotel where the Middleton's used to stay.</p>
<p>Here is the result:<br />
<iframe width="540" height="304" src="http://www.youtube.com/embed/xaofMNCP_yY?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>To display this data I reused the information stored during the first phase of my Flux of MEME project, fetched from twitter with the Streaming API implementation in its Java flavour twitter4j. Processing is reading the information in XML directly from the database, hence a little PHP backend is providing the XML descriptor for all the posts locations.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2012/02/visualizing-cluster-of-tweets-in-london-during-the-royal-wedding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2012/02/visualizing-cluster-of-tweets-in-london-during-the-royal-wedding/</feedburner:origLink></item>
		<item>
		<title>Top 5 Albums 2011</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/wub7gqdd_Ro/</link>
		<comments>http://tom.londondroids.com/2011/12/top-5-albums-2011/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 17:25:03 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[miscellanea]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=337</guid>
		<description><![CDATA[Here it goes, in no particular order: Noah and the Whale - Last Night on Earth Radical Face - The Family Tree The Roots Wild Beasts - Smother Danger Mouse + Daniele Luppi - Rome The Antlers - Burst Apart Special mention: Bill Callahan - Apocalypse]]></description>
			<content:encoded><![CDATA[<p>Here it goes, in no particular order:</p>
<ul>
<li>Noah and the Whale - <a href="http://en.wikipedia.org/wiki/Last_Night_on_Earth_(album)">Last Night on Earth</a></li>
<li>Radical Face - <a href="http://en.wikipedia.org/wiki/Radical_Face#The_Family_Tree:_The_Roots">The Family Tree The Roots</a></li>
<li>Wild Beasts - <a href="http://en.wikipedia.org/wiki/Smother_(album)">Smother</a></li>
<li>Danger Mouse + Daniele Luppi - <a href="http://en.wikipedia.org/wiki/Rome_(album)">Rome</a></li>
<li>The Antlers - <a href="http://en.wikipedia.org/wiki/Burst_Apart">Burst Apart</a></li>
</ul>
<p>Special mention:</p>
<ul>
<li>Bill Callahan - <a href="http://en.wikipedia.org/wiki/Apocalypse_(Bill_Callahan_album)">Apocalypse</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/12/top-5-albums-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/12/top-5-albums-2011/</feedburner:origLink></item>
		<item>
		<title>Firenze-Londra, solo andata</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/YUTCINH8xUo/</link>
		<comments>http://tom.londondroids.com/2011/12/firenze-londra-solo-andata/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 18:23:23 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[miscellanea]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=332</guid>
		<description><![CDATA[Sarà che siamo vicini al Natale e oggi abbiamo comprato l'albero, oppure che mancano poche settimane all'arrivo del piccolino, o magari che stiamo per firmare un mutuo di 25 anni per la nostra casa, o ancora che sto finalmente per chiudere la mia società in Italia... sarà forse l'insieme di tutto questo che mi sta [...]]]></description>
			<content:encoded><![CDATA[<p><a title="tube by grudelsud, on Flickr" href="http://www.flickr.com/photos/grudelsud/6488310889/"><img src="http://farm8.staticflickr.com/7017/6488310889_65e983a74c.jpg" alt="tube" width="500" height="375" /></a></p>
<p>Sarà che siamo vicini al Natale e oggi abbiamo comprato l'albero, oppure che mancano poche settimane all'arrivo del piccolino, o magari che stiamo per firmare un mutuo di 25 anni per la nostra casa, o ancora che sto finalmente per chiudere la mia società in Italia... sarà forse l'insieme di tutto questo che mi sta portando oggi a fare qualche bilancio.<br />
<span id="more-332"></span><br />
Parto dal giorno in cui, quasi 2 anni fa, presi quel biglietto solo andata per Londra, per lasciare quanto avevo costruito fino a quel momento e ricongiungermi finalmente con Valentina dopo 4 faticosi anni di commuting. Non ho memoria di un momento in particolare, ma ricordo perfettamente la sensazione: eccitazione, sconfitta, sollievo, paura. Lunghe settimane a mandare curricula: un lavoro a tempo pieno che non ammette la distrazione di una ricompensa alla fine di una giornata per non provare la sconfitta di gravare economicamente sul nuovo nucleo familiare.<br />
Poi il tempo segue il suo corso, si apre uno spiraglio e si afferra l'opportunità, ci si inserisce nel meccanismo, iniziano arrivare i primi soldi e le prime bollette con il proprio nome stampato sopra (incredibile che tutt'ora mi faccia piacere ricevere il conto del gas, a testimonianza che veramente il mio indirizzo è quello che leggo), si fanno nuove amicizie e si impara a muoversi come dei veri cittadini.</p>
<p>Con una grande differenza: qua è possibile.<br />
Ci ho messo un po' a capirlo, ma più passa il tempo e più mi convinco: in parte riguarda chiaramente essere in un paese che funziona, ma in massima parte riguarda il cambiamento di prospettiva. Non è importante essere per forza in una città di 12 milioni di abitanti dove qualsiasi cosa è possibile, ma il fatto veramente fondamentale è la possibilità di vedere il mondo da una prospettiva diversa, di uscire dall'acquario e abbracciare un sistema di valori diverso, capire <strong>veramente</strong> che il mondo è più vasto di come lo si percepiva da una singola posizione. Come un occhio solo non è in grado di percepire la profondità, forse anche la vita di un essere umano ha bisogno di un riferimento di valori diversi per poterne tarare l'effettiva importanza. Quindi diventa possibile seguire opportunità o abbracciare modelli di comportamento che prima non potevano nemmeno essere concepiti.</p>
<p>Penso agli amici con cui ho fatto l'università, quelli sui quali si sente sempre dire che lo stato italiano "ha investito", anche se di preciso non ho mai capito a cosa ci si riferisse e soprattutto se la pena di dover rimanere all'interno di un sistema chiuso non sia un compenso già troppo elevato per ripagare questo debito. Del gruppetto con il quale si studiava Calcolatori e Elettrotecnica, ecco cosa è successo: uno sta a Monaco a mettere su famiglia, uno a Los Angeles a scaldarsi al sole, uno a Portland a fare il ricercatore, uno sta a Roma a combattere contro l'apatia dei colleghi e un altro a Firenze, con l'azienda che fa le montagne russe e mi ha impressionato constatare l'assenza dell'usuale ottimismo che lo ha sempre contraddistinto. E uno purtroppo non c'è più.</p>
<p>Risultato: non penso che all'estero si facciano necessariamente mestieri più interessanti, ma penso che in media siano senz'altro più dignitosi, che l'etica del lavoro e la retribuzione ad esso associata siano più giusti. E che a prescindere da questo, chi esce dal proprio paese comincia più facilmente ad usare l'altro occhio e percepire la profondità, cosa altrimenti estremamente difficile da realizzare.</p>
<p>Non ho idea se torneremo mai, penso dipenda da quanto la bilancia delle cose che mancano riesca a pendere rispetto al lato di quelle che si acquisiscono, e sicuramente ciascuno ha le proprie. A me manca la possibilità di trovarsi in 10 minuti a cena insieme alla famiglia che ormai si vede poche volte in un anno, oppure la calma di prendere la moto e salire per le colline e fermarsi da qualche parte a riposarsi senza dover pensare alla settimana davanti, o quei pochi minuti necessari per trovarsi con gli amici di sempre a farsi un aperitivo.<br />
Ma quando mi fermo a riflettere per verificare se sto facendo bene, mi capita spesso di riguardare un pezzetto de "La meglio gioventù" per ricordarmi quanto la bilancia stia ancora pendendo dalla parte di chi offre opportunità, piuttosto che lasciarle inaridire e spegnere.</p>
<p><a href="http://www.youtube.com/watch?v=F6sWC1VmJkY">http://www.youtube.com/watch?v=F6sWC1VmJkY</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/12/firenze-londra-solo-andata/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/12/firenze-londra-solo-andata/</feedburner:origLink></item>
		<item>
		<title>A few shots with my brand new Zuiko 25mm f2.8 “pancake”</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/Y1GU9Ry8Y7w/</link>
		<comments>http://tom.londondroids.com/2011/12/a-few-shots-with-my-brand-new-zuiko-25mm-f2-8-pancake/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 20:33:24 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[miscellanea]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=328</guid>
		<description><![CDATA[Our XMas party with the friends @therumpusroom_ was great this year, and Santa brought me a super cool lens for my E-500, the tiny Zuiko 25mm f2.8 "pancake", you can read a review here. We went for some shopping today, and took a few shots with London at its best, nice way of testing the [...]]]></description>
			<content:encoded><![CDATA[<p>Our XMas party with the friends @therumpusroom_ was great this year, and Santa brought me a super cool lens for my E-500, the tiny Zuiko 25mm f2.8 "pancake", you can read a review <a href="http://www.dpreview.com/lensreviews/olympus_25_2p8_o20/">here</a>.</p>
<p>We went for some shopping today, and took a few shots with London at its best, nice way of testing the new lens, good performances on low light conditions, really impressive contrast and colours (a bit tweaked here, but not too much, just a touch of saturation), below the results (and full set <a href="http://www.flickr.com/photos/grudelsud/sets/72157628362123459/">here</a>).</p>
<p><a title="london red sky by grudelsud, on Flickr" href="http://www.flickr.com/photos/grudelsud/6488314663/"><img src="http://farm8.staticflickr.com/7150/6488314663_626d8fd399.jpg" alt="london red sky" width="500" height="375" /></a></p>
<p><a title="scarred sky by grudelsud, on Flickr" href="http://www.flickr.com/photos/grudelsud/6488309219/"><img src="http://farm8.staticflickr.com/7014/6488309219_ca94160e83.jpg" alt="scarred sky" width="500" height="375" /></a></p>
<p><a title="autumn in hanley rd by grudelsud, on Flickr" href="http://www.flickr.com/photos/grudelsud/6488310169/"><img src="http://farm8.staticflickr.com/7158/6488310169_61e5ebf2cc.jpg" alt="autumn in hanley rd" width="500" height="375" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/12/a-few-shots-with-my-brand-new-zuiko-25mm-f2-8-pancake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/12/a-few-shots-with-my-brand-new-zuiko-25mm-f2-8-pancake/</feedburner:origLink></item>
		<item>
		<title>Configuring NGINX to serve multiple webapps from different directories</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/UnEo84FHuxc/</link>
		<comments>http://tom.londondroids.com/2011/11/configuring-nginx-to-serve-multiple-webapps-from-different-directories/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 16:54:30 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=325</guid>
		<description><![CDATA[Few days ago I had to add a wordpress installation within the same environment where a Codeigniter app was already running happily and undisturbed. It took me a while to figure out how to keep separate folders on the filesystem, and serve the blog from a subfolder of the main domain: it ended up that [...]]]></description>
			<content:encoded><![CDATA[<p>Few days ago I had to add a wordpress installation within the same environment where a Codeigniter app was already running happily and undisturbed. It took me a while to figure out how to keep separate folders on the filesystem, and serve the blog from a subfolder of the main domain: it ended up that the solution is super simple, but apparently I am not the only one who had similar problems. Symptoms of a bad installation usually result in "no input file specified" messages or, even worse, downloading the php source code with all your precious database passwords shown in clear.</p>
<p>So the premise being:</p>
<ul>
<li>the webapps need to live in sibling folders to keep tidy our github repo, in the example below will be named as /home/ubuntu/repo/webapp (codeigniter) and /home/ubuntu/repo/blog (wordpress)</li>
<li>the main webapp needs to respond to all the requests, while wordpress needs to catch only requests starting with /blog</li>
</ul>
<p>there might be better and more elegant solutions, but this is working for me, including pretty permalinks on wordpress:</p>
<pre class="brush:shell">server {
    server_name your.domain.com;

    access_log /home/ubuntu/repo/logs/access.log;
    error_log /home/ubuntu/repo/logs/error.log;

    # main root, used for codeigniter
    root /home/ubuntu/repo/webapp;
    index index.php index.html;

    # links to static files in the main app, mainly for dev purposes as this is
    # unlikely to be triggered when using a CDN with absolute URLs to assets
    location ~* ^/(css|img|js|flv|swf)/(.+)$ {
        root /home/ubuntu/repo/webapp/application/public;
    }

    # most generic (smaller) request
    # most of the times will redirect to named block @ci
    location / {
        try_files $uri $uri/ @ci;
    }

    # create the code igniter path and perform
    # internal redirect to php location block
    location @ci {
        if (!-e $request_filename)
        {
            rewrite ^/(.*)$ /index.php/$1 last;
            break;
        }
    }

    # now the meaty part, execute php scripts
    location ~ \.php {
        include /etc/nginx/fastcgi_params;

        # default path of our php script is the main webapp
        set $php_root /home/ubuntu/repo/webapp;

        # but we might have received a request for a blog address
        if ($request_uri ~ /blog/) {
            # ok, this line is a bit confusing, be aware
            # that path to /blog/ is already in the request
            # so adding a trailing /blog here will
            # give a "no input file" message
            set $php_root /home/ubuntu/repo;
        }

        # all the lines below are pretty standard
        # notice only the use of $php_root instead of $document_root
        fastcgi_split_path_info ^(.+\.php)(/.+)$;

        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_param SCRIPT_FILENAME $php_root$fastcgi_script_name;

        fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket;
        fastcgi_index index.php;
    }

    # now the blog, remember this lives in a sibling directory of the main app
    location ~ /blog/ {
        # again, this might look a bit weird,
        # but remember that root directive doesn't drop
        # the request prefix, so /blog is appended at the end
        root /home/ubuntu/repo;
        if (!-e $request_filename)
        {
            rewrite ^/(.*)$ /index.php/$1 last;
            break;
        }
    }
}</pre>
<p>please feel free to add comments and suggestions, hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/11/configuring-nginx-to-serve-multiple-webapps-from-different-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/11/configuring-nginx-to-serve-multiple-webapps-from-different-directories/</feedburner:origLink></item>
		<item>
		<title>Show your best – Interactive campaign</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/1J1lr7zFNhk/</link>
		<comments>http://tom.londondroids.com/2011/11/show-your-best-olympic-org/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 14:07:01 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=319</guid>
		<description><![CDATA[Role: Technical director &#38; Interactive producer Digital production: The Rumpus Room, London Agency: Cole &#38; Weber United, Seattle Client: The International Olympic Committee Live date: nov 2011]]></description>
			<content:encoded><![CDATA[<ul>
<li>Role: Technical director &amp; Interactive producer</li>
<li>Digital production: The Rumpus Room, London</li>
<li>Agency: Cole &amp; Weber United, Seattle</li>
<li>Client: The International Olympic Committee</li>
<li>Live date: nov 2011</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/11/show-your-best-olympic-org/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/11/show-your-best-olympic-org/</feedburner:origLink></item>
		<item>
		<title>Flux of MEME – 1st year final report</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/_SxJK-aHkWs/</link>
		<comments>http://tom.londondroids.com/2011/10/flux-of-meme-1st-year-final-report/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 14:22:52 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[research]]></category>
		<category><![CDATA[FOM]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=315</guid>
		<description><![CDATA[So it is now time to present the results obtained during the first year of research and development on the Flux of Meme project, and I was glad to fly to Milan for the presentation at Telecom Italia last friday 30th. Thanks-a-mil to Laurent-Walter Goix and Carlo Alberto Licciardi at Telecom for the constant support, [...]]]></description>
			<content:encoded><![CDATA[<p>So it is now time to present the results obtained during the first year of research and development on the Flux of Meme project, and I was glad to fly to Milan for the presentation at Telecom Italia last friday 30th. Thanks-a-mil to Laurent-Walter Goix and Carlo Alberto Licciardi at Telecom for the constant support, reviews and recommendations: it immensely helped to achieve this result. And thanks-two-mils to Giuseppe Serra and Marco Bertini (also with the help of Federico Frappi) at the <a href="http://www.micc.unifi.it/people/">Media Integration and Communication Center</a> for the help provided in the definition and fine-tweaking of algorithms. Looking forward to starting Flux phase 2!</p>
<p>This is a quick keynote that highlights the main elements of this geo-clustering and topic extraction tool, using twitter as a main data source but willing to expand to proper context-based data heterogeneous sources.<br />
<object type='application/x-shockwave-flash' wmode='opaque' data='http://static.slideshare.net/swf/ssplayer2.swf?id=9492782&doc=fom110930-110930171037-phpapp02' width='550' height='451'><param name='movie' value='http://static.slideshare.net/swf/ssplayer2.swf?id=9492782&doc=fom110930-110930171037-phpapp02' /><param name='allowFullScreen' value='true' /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/10/flux-of-meme-1st-year-final-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/10/flux-of-meme-1st-year-final-report/</feedburner:origLink></item>
		<item>
		<title>Twitter geo-located clustering and topic analysis, now opensource!</title>
		<link>http://feedproxy.google.com/~r/ThomasMAlisi/~3/fG4NYisVRec/</link>
		<comments>http://tom.londondroids.com/2011/09/twitter-geo-located-clustering-and-topic-analysis-now-opensource/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 17:59:42 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[FOM]]></category>
		<category><![CDATA[Telecom Italia]]></category>
		<category><![CDATA[Working Capital]]></category>

		<guid isPermaLink="false">http://tom.londondroids.com/?p=298</guid>
		<description><![CDATA[A year has passed since the beginning of the trial of Flux of MEME, the project I have presented during the Working Capital tour, and it is now time to analyze what has been learned and show what has been developed to conclude this R&#38;D phase and deliver results to Telecom Italia. the initial idea [...]]]></description>
			<content:encoded><![CDATA[<p>A year has passed since the beginning of the trial of Flux of MEME, the project I have presented during the <a href="http://www.workingcapital.telecomitalia.it/2010/08/flux-of-meme/">Working Capital tour</a>, and it is now time to analyze what has been learned and show what has been developed to conclude this R&amp;D phase and deliver results to Telecom Italia.</p>
<p><span id="more-298"></span></p>
<h4 dir="ltr">the initial idea</h4>
<p>It’s worthwhile giving a quick description of the context: Twitter is a company formed in 2006 which has received several rounds of funding by venture capitals over the past few years, this leading to today's valuation of $1.2B, still during the summer of 2009 the service was not yet mature and widespread as it may look now. At that time the development of the Twitter API had just started, this probably being one of the few sources, if not the only one, for geo-referenced data. The whole concept of communication in the form of public gossip, mediated by a channel that accepts 140 characters per message, was appearing in the world of social networks for the first time.<br />
This lead to the base idea of crunching this data stream, which most importantly include the geographical source, then summarize the content, so as to analyze the space-time evolution of the concepts described and, ultimately, make a prediction of how they could migrate in space and time.</p>
<h4 dir="ltr">A practical use</h4>
<p>It could allow you to control and curb the trend of potentially risky situations (such as social network analysis has been useful during the recent riots in London) or even define marketing strategies targeted to the local context.</p>
<h4 dir="ltr">The implementation</h4>
<p>A consistent initial phase of research allowed to have an overview on different aspects: the ability to capture the information from Twitter, the structure of captured data, the ability to obtaining geo-located information, the classification of languages of the tweets, the enrichment of content through discovery of related information, the possible functions for spatial clustering, the algorithms for topic extraction, the definition of views useful for an operator and finally the ability to perform a trend analysis on the information extracted. All of this has resulted in a substantial amount of programming code, its outcome being a demonstrator for the validity of the initial theory.</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 554px"><a href="http://tom.londondroids.com/wp-content/uploads/2011/09/03_search_result.png"><img class="size-medium wp-image-301" title="03_search_result" src="http://tom.londondroids.com/wp-content/uploads/2011/09/03_search_result-544x341.png" alt="" width="544" height="341" /></a><p class="wp-caption-text">space-time evolution of the concept &quot;earthquake&quot; in a limited subset of data captured during the period May 2011</p></div>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 554px"><a href="http://tom.londondroids.com/wp-content/uploads/2011/09/07_dragzoom_stat.png"><img class="size-medium wp-image-302" title="07_dragzoom_stat" src="http://tom.londondroids.com/wp-content/uploads/2011/09/07_dragzoom_stat-544x341.png" alt="" width="544" height="341" /></a><p class="wp-caption-text">distribution of groups of tweets source languages  over Switzerland and northern Italy</p></div>
<p><span style="font-weight: bold;">The future of the project</span></p>
<p>The development done so far has had two important results: firstly, it allowed to demonstrate the validity of the initial idea, and secondly it has revealed the requirements needed by the system to be fully functional. The main problem lays in the architecture implemented for the demonstrator, which at the moment relies on a limited amount of data (for obvious reasons of availability of resources): this immediately proved the necessity of scaling up the application environment in a more complex architecture for distributed computing  The market and/or Telecom Italia will eventually decide if this second phase of development can be faced.</p>
<h4 dir="ltr">References</h4>
<ul>
<li>Source code and documentation - <a href="https://github.com/grudelsud/fom/">https://github.com/grudelsud/fom/</a></li>
<li>Algorithm for the classification of space - <a href="http://en.wikipedia.org/wiki/Cluster_analysis">http://en.wikipedia.org/wiki/Cluster_analysis</a></li>
<li>Algorithm for extracting topic - <a href="http://en.wikipedia.org/wiki/Latent_Dirichlet_allocation">http://en.wikipedia.org/wiki/Latent_Dirichlet_allocation</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tom.londondroids.com/2011/09/twitter-geo-located-clustering-and-topic-analysis-now-opensource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tom.londondroids.com/2011/09/twitter-geo-located-clustering-and-topic-analysis-now-opensource/</feedburner:origLink></item>
	</channel>
</rss>

