<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>MasciBlog</title>
	<atom:link href="http://masci.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://masci.wordpress.com</link>
	<description>Serious thoughts from the cubicle. Almost.</description>
	<lastBuildDate>Mon, 30 Jan 2012 23:20:18 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='masci.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/fde068bbea512ededa4622e0cca64709?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>MasciBlog</title>
		<link>http://masci.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://masci.wordpress.com/osd.xml" title="MasciBlog" />
	<atom:link rel='hub' href='http://masci.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Milliways, the game at the end of the Universe</title>
		<link>http://masci.wordpress.com/2012/01/30/milliways-the-game-at-the-end-of-the-universe/</link>
		<comments>http://masci.wordpress.com/2012/01/30/milliways-the-game-at-the-end-of-the-universe/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 17:52:34 +0000</pubDate>
		<dc:creator>masci</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://masci.wordpress.com/?p=648</guid>
		<description><![CDATA[Milliways is a game developed for the &#8220;5 BUTTONS Competition&#8221; (follow the link for the details) contest hosted at experimentalgameplay in collaboration with 02L. Games have to support UnitaZero as their one and only input device, and that&#8217;s the fun part! Basically it&#8217;s a cooperative puzzle game (2-5 players) in Tetris style: a row of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=648&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Milliways is a game developed for the &#8220;<a href="http://experimentalgameplay.com/blog/2011/12/5-buttons-competition-in-decemberjanuary/">5 BUTTONS Competition</a>&#8221; (follow the link for the details) contest hosted at <a href="http://experimentalgameplay.com/">experimentalgameplay</a> in collaboration with <a href="http://www.02l.net/menu">02L</a>. Games have to support <a href="http://www.02l.net/projects/interactive_set/unita_zero">UnitaZero</a> as their one and only input device, and that&#8217;s the fun part!</p>
<p>Basically it&#8217;s a cooperative puzzle game (2-5 players) in Tetris style: a row of 5 dice fall to the bottom of the screen and each pad change the face of the corrisponding dice when triggered. When all the 5 dice shows the same face the row disappear. If the rows reach the top of the screen the game is over (you know how Tetris works, don&#8217;t you?). Game concept and development are very simple but players&#8217; interaction could be interesting (or I hope so).</p>

<a href='http://masci.wordpress.com/2012/01/30/milliways-the-game-at-the-end-of-the-universe/senza-titolo/' title='Senza titolo'><img data-attachment-id='650' data-orig-size='1280,1003' data-liked='0'width="150" height="117" src="http://masci.files.wordpress.com/2012/01/senza-titolo.png?w=150&#038;h=117" class="attachment-thumbnail" alt="Senza titolo" title="Senza titolo" /></a>
<a href='http://masci.wordpress.com/2012/01/30/milliways-the-game-at-the-end-of-the-universe/senza-titolo-2/' title='Senza titolo 2'><img data-attachment-id='651' data-orig-size='1280,1003' data-liked='0'width="150" height="117" src="http://masci.files.wordpress.com/2012/01/senza-titolo-2.png?w=150&#038;h=117" class="attachment-thumbnail" alt="Senza titolo 2" title="Senza titolo 2" /></a>

<p>Tracks played during the game are courtesy of  <a href="http://www.theshaidoneffect.com/">The Shaidon Effect</a>, the rest of the components is in the public domain or has a CC license.</p>
<p>The game was developed using Python and Pygame, the code is open source and you can find it here: <a href="https://bitbucket.org/masci/milliways/">https://bitbucket.org/masci/milliways/</a></p>
<p>I wrapped-up a Windows executable with PyInstaller, tested only on a Win7 Pro SP1 machine: <a href="http://dl.dropbox.com/u/6417369/milliways.zip">http://dl.dropbox.com/u/6417369/milliways.zip</a></p>
<p>The game is named after &#8220;<a href="http://en.wikipedia.org/wiki/The_Restaurant_at_the_End_of_the_Universe">The restaurant at the end of the universe</a>&#8221; &#8211;  I was reading that novel during the early development.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masci.wordpress.com/648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masci.wordpress.com/648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masci.wordpress.com/648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masci.wordpress.com/648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masci.wordpress.com/648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masci.wordpress.com/648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masci.wordpress.com/648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masci.wordpress.com/648/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=648&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masci.wordpress.com/2012/01/30/milliways-the-game-at-the-end-of-the-universe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aee59cb61d6561244163f490aec50939?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">masci</media:title>
		</media:content>

		<media:content url="http://masci.files.wordpress.com/2012/01/senza-titolo.png?w=150" medium="image">
			<media:title type="html">Senza titolo</media:title>
		</media:content>

		<media:content url="http://masci.files.wordpress.com/2012/01/senza-titolo-2.png?w=150" medium="image">
			<media:title type="html">Senza titolo 2</media:title>
		</media:content>
	</item>
		<item>
		<title>Best TDD definition ever.</title>
		<link>http://masci.wordpress.com/2011/08/26/best-tdd-definition-ever/</link>
		<comments>http://masci.wordpress.com/2011/08/26/best-tdd-definition-ever/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 11:13:30 +0000</pubDate>
		<dc:creator>masci</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[hettinger]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[test driven development]]></category>

		<guid isPermaLink="false">http://masci.wordpress.com/?p=629</guid>
		<description><![CDATA[Today I found this tweet by @glyph, retweeted by Raymond Hettinger &#8211; maybe not actually a definition but it explains exactly what I mean with &#8220;Test Driven Development&#8221;: TDD doesn&#8217;t prevent bugs you didn&#8217;t predict. It removes bugs you *did* predict so they don&#8217;t distract you from fixing the ones you didn&#8217;t. Link to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=629&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I found this tweet by <a href="https://twitter.com/#!/glyph">@glyph</a>, retweeted by <a href="https://twitter.com/#!/raymondh">Raymond Hettinger</a> &#8211; maybe not actually a definition but it explains exactly what I mean with &#8220;Test Driven Development&#8221;:</p>
<blockquote><p>TDD doesn&#8217;t prevent bugs you didn&#8217;t predict. It removes bugs you *did* predict so they don&#8217;t distract you from fixing the ones you didn&#8217;t.</p></blockquote>
<p style="text-align:left;"><a href="https://twitter.com/#!/glyph/status/106930289405739008">Link to the original tweet</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masci.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masci.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masci.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masci.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masci.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masci.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masci.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masci.wordpress.com/629/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=629&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masci.wordpress.com/2011/08/26/best-tdd-definition-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aee59cb61d6561244163f490aec50939?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">masci</media:title>
		</media:content>
	</item>
		<item>
		<title>So you want me to follow you on Twitter</title>
		<link>http://masci.wordpress.com/2011/08/18/so-you-want-me-to-follow-you-on-twitter/</link>
		<comments>http://masci.wordpress.com/2011/08/18/so-you-want-me-to-follow-you-on-twitter/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 08:43:37 +0000</pubDate>
		<dc:creator>masci</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://masci.wordpress.com/?p=621</guid>
		<description><![CDATA[If you&#8217;re looking for the requirements to meet to be followed by me on Twitter, Jump to the list. I was quite skeptical the first time I heard about Twitter &#8211; why the heck should I post messages about my status? And in a super-awful third person fashion, maybe? I mean, I&#8217;ve a blog where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=621&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking for the requirements to meet to be followed by me on Twitter, <a href="#req">Jump to the list</a>.</p>
<p>I was quite skeptical the first time I heard about Twitter &#8211; why the heck should I post messages about my status? And in a super-awful third person fashion, maybe? I mean, I&#8217;ve a blog where posting things, I&#8217;ve an RSS reader to grab news and infos all around, why getting rid of images, formatting  and whatever number of chars I want? The answer was so simple: damn speed!</p>
<p>Maybe I am misusing the tool, but scrolling my Twitter timeline searching for news and useful links posted by the right people is ways faster than the most advanced RSS reader you can find. And throwing interesting stuffs in a read-it-later bucket with the help of tools like (guess?) Read It Later or Instapaper while browsing the timeline with my smartphone is the definitive weapon: informations at the speed of light.</p>
<p>Now, if you are a famous twitterer and take the tool as an output-only pipe for your thoughts maybe you don&#8217;t even read your home timeline. But I&#8217;m a complete unknown lurker greedy for useful informations with little to no time to dedicate to the fact you just woke up (and maybe at that time I&#8217;ve been working for a couple of hours already but this is another story). You simply mess my timeline, and my timeline must be clean to carry out infos efficiently.</p>
<p>Now the real purpose of this post &#8211; during the past months my timeline got really dirty since I happened to use Twitter as a social tool. Wrong! I appreciate you&#8217;re following me and surely we could be friend and get out for a beer or two, but if you tweet crap there&#8217;s no way I can follow you back.</p>
<p><a name="req"></a>Here is the requirement list you have to meet (if not the whole, at least the most) to let me follow you, sorry for swearing:</p>
<ul>
<li>Don&#8217;t flood in any case. If it&#8217;s not your fault, try revoking your auth to some of the dozens third party services you trusted. If you flood on purpose, I hate you.</li>
<li>Don&#8217;t say &#8216;morning and don&#8217;t whish me a good night. Never.</li>
<li>Don&#8217;t link your 4square/gowalla/whatever accounts to your Twitter stream. I don&#8217;t bother where you are when.</li>
<li>Don&#8217;t spread your floody bloody fucking Follow Friday messages, nor try to cheat changing the weekday.</li>
<li>Don&#8217;t thank for RTs &#8211; you could break the Twitter with an infinite loop.</li>
<li>Don&#8217;t copy&amp;paste news from notorious twitterers. If I&#8217;m both following you and @hackernewsbot, there can be only one. Guess who.</li>
<li>Don&#8217;t retweet commercials. I don&#8217;t want to win any iCrappy device.</li>
<li>Try using DMs instead of chatting with your friends about your own fucking business.</li>
<li>Don&#8217;t post multiple enigmatic messages about your private life waiting for someone to ask you details. Say what you want or keep it for yourself (better).</li>
</ul>
<p>I reserve the right to expand this list.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masci.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masci.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masci.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masci.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masci.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masci.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masci.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masci.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=621&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masci.wordpress.com/2011/08/18/so-you-want-me-to-follow-you-on-twitter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aee59cb61d6561244163f490aec50939?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">masci</media:title>
		</media:content>
	</item>
		<item>
		<title>Installare OpenERP su OSX con virtualenv: tutorial</title>
		<link>http://masci.wordpress.com/2010/08/23/installare-openerp-su-osx-con-virtualenv-tutorial/</link>
		<comments>http://masci.wordpress.com/2010/08/23/installare-openerp-su-osx-con-virtualenv-tutorial/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 22:00:09 +0000</pubDate>
		<dc:creator>masci</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[openerp]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://masci.wordpress.com/?p=607</guid>
		<description><![CDATA[Indipendentemente dalle scelte che si fanno circa l’ambiente in produzione, in fase di sviluppo è molto comodo avere un’istanza locale del server openerp e del client web. Mettere in piedi l’ambiente per OSX 10.5 non è semplice come con l’installer all in one per Windows ma grazie all’ausilio di tools come virtualenv vedremo come l’operazione [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=607&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>Indipendentemente dalle scelte che si fanno circa l’ambiente in produzione, in fase di sviluppo è molto comodo avere un’istanza locale del server openerp e del client web. Mettere in piedi l’ambiente per OSX 10.5 non è semplice come con l’installer all in one per Windows ma grazie all’ausilio di tools come virtualenv vedremo come l’operazione si possa completare senza troppe difficoltà.</div>
<div><span id="more-607"></span></div>
<div>
<h2>Prerequisiti</h2>
<p>Prima di iniziare il tutorial assicuratevi di avere installato i seguenti tools, facendo ricorso magari alle rispettive distribuzioni binarie, reperibili agli url fra parentesi.</p>
<ul>
<li>Python &gt;= 2.6 <a href="http://www.python.org/download/" target="_blank">(http://www.python.org/download/)</a></li>
<li>Postgresql 8.4 (<a href="http://www.enterprisedb.com/products/pgdownload.do#osx" target="_blank">http://www.enterprisedb.com/products/pgdownload.do#osx</a>)</li>
<li>MacPorts <a href="http://www.macports.org/" target="_blank">(http://www.macports.org/)</a></li>
</ul>
<p>L’utilizzo di MacPorts è finalizzato all’installazione di pacchetti e librerie che durante il tutorial dovessero risultare non presenti nel sistema. Inoltre la presenza di MacPorts vi assicura che la toolchain gnu è perfettamente in ordine!</p>
<h2>Virtualenv e Virtualenvwrapper</h2>
<div>Lo scopo e le potenzialità di virtualenv e dei relativi wrappers meriterebbero un post a parte. Per ora ci basti sapere che il loro utilizzo ci consentirà di costruire un environment virtuale all’interno del quale isolare tutte le dipendenze specifiche di openerp senza che queste vadano ad impattare l’installazione Python di sistema.</div>
<pre>easy_install virtualenv</pre>
<div>Una volta installato virtualenv avremo a disposizione anche il potente package manager pip.</div>
<pre>easy_install virtualenvwrapper</pre>
<div>Aggiungete queste due righe al file .bash_profile che trovate nella vostra home directory:</div>
<pre>export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper_bashrc</pre>
<div>I wrapper ci consentiranno di creare, gestire ed utilizzare in maniera molto semplice i nostri virtual environments, come vedremo fra poco. Partiamo con la creazione del primo (ed unico per questo tutorial) environment:</div>
<pre>mkvirtualenv -p python2.6 openerp-5_0_12</pre>
<div><em>openerp-5_0_12</em> è il nome dell’environment, potete usare la stringa che volete. Una volta terminata la procedura l’environment verrà attivato automaticamente, e da quel momento in poi andremo ad operare in un ambiente isolato dal resto del sistema. Il fatto di essere all’interno del virtual env è evidenziato anche dal prompt:</div>
<pre>(openerp-5_0_12)macgiver:~ masci$</pre>
<div>Per disattivare l’env virtuale e tornare alla shell di sistema basta digitare</div>
<pre>deactivate</pre>
<div>per tornare ancora all’interno dell’env virtuale basterà digitare</div>
<pre>workon openerp-5_0_12</pre>
<h2>Installazione di openerp-server e openerp-web</h2>
<div>Prima di procedere all’installazione di openerp e delle sue componenti abbiamo bisogno di soddisfare alcuni requisiti: vediamo come pip ci viene in aiuto.</div>
<h3>reportlab</h3>
<div>pip install reportlab</div>
<h3>pydot</h3>
<p>pip install pydot</p>
<h3>lxml</h3>
<p>pip install lxml</p>
<h3>pychart</h3>
<p>Recuperate il pacchetto con i sorgenti all’indirizzo: <a href="http://download.gna.org/pychart/PyChart-1.39.tar.gz">http://download.gna.org/pychart/PyChart-1.39.tar.gz</a>, poi</p>
<pre>tar xzf PyChart-1.39.tar.gz &amp;&amp; cd PyChart-1.39
python <a href="http://setup.py">setup.py</a> install</pre>
<h3>psycopg2</h3>
<pre>PATH=$PATH:/Library/PostgreSQL/8.4/bin/ pip install psycopg2</pre>
<p>Attenzione ad aggiustare il path sopra a seconda delle vostre esigenze: la directory specificata deve essere quella dove l’installazione di postgres ha posizionato l’eseguibile <em>pg_config</em>.</p>
<h3>mx.DateTime</h3>
<p>Questo pacchetto va installato ‘a mano’ dato che il file <a href="http://setup.py">setup.py</a> patcha in vari punti distutils, andando in conflito con setuptools. La cosa migliore è prendere il pacchetto da egenix stessa: a questo indirizzo, <a href="http://www.egenix.com/products/python/mxBase/">http://www.egenix.com/products/python/mxBase/</a>, cercate la voce “<em>Source Code (for all other platforms):</em>” e premete il pulsante “<em>download</em>”. Una volta scaricato il pacchetto:</p>
<pre>tar xzf egenix-mx-base-3.1.3.tar.gz &amp;&amp; cd egenix-mx-base-3.1.3
python <a href="http://setup.py">setup.py</a> install</pre>
<h3>PIL</h3>
<pre>pip install PIL</pre>
<h3>pytz</h3>
<pre>pip install pytz</pre>
</div>
<div>Ora recuperiamo i pacchetti della versione stabile di openerp da openerp.com:<br />
<a href="http://www.openerp.com/download/stable/source/openerp-server-5.0.12.tar.gz">http://www.openerp.com/download/stable/source/openerp-server-5.0.12.tar.gz</a><br />
<a href="http://www.openerp.com/download/stable/source/openerp-web-5.0.12.tar.gz">http://www.openerp.com/download/stable/source/openerp-web-5.0.12.tar.gz</a><br />
Scompattiamo gli archivi e procediamo con l’installazione:</div>
<pre>tar xzf openerp-server-5.0.12.tar.gz &amp;&amp; cd openerp-server-5.0.12
python <a href="http://setup.py">setup.py</a> install</pre>
<div>e quindi</div>
<pre>tar xzf openerp-web-5.0.12.tar.gz &amp;&amp; cd openerp-web-5.0.12
python <a href="http://setup.py">setup.py</a> install</pre>
<h2>Setup e avvio</h2>
<div>Ora che il nostro ambiente è configurato per l’esecuzione delle componenti web e server di openerp, facciamo un minimo di setup per poi procedere con l’avvio dei servizi. La componente più semplice da configurare è il client web, che allo startup legge un file di configurazione dalla directory di installazione, situata nella directory site-packages del nostro virtual env, che possiamo raggiungere semplicemente con:</div>
<pre>cdsitepackages</pre>
<div>e poi</div>
<pre>cd openerp_web-5.0.12-py2.6.egg/config</pre>
<div>dove risiede il file openerp-web.cfg. Il file è ampiamente commentato e personalmente non apporto mai modifiche se sono in fase di sviluppo.<br />
Il file di configurazione del server invece viene caricato solo se presente nella home dell’utente o espressamente indicato con l’apposito flag da riga di comando. Il comando seguente:</div>
<pre>openerp-server -s
^C</pre>
<div>crea il file <em>.openerp_serverrc</em> nella home, fornendo di fatto un template che possiamo personalizzare in base alla nostra configurazione di sistema. In particolare vanno necessariamente indicati i parametri di connessione al database (le voci con prefisso “db_”). Ricordatevi che la password di amministratore è nel file stesso, alla voce admin_passwd.<br />
Una volta modificato il file <em>~/.openerp_serverrc </em>possiamo avviare le componenti di openerp:</div>
<pre>openerp-web 2&amp;&gt; /dev/null &amp;
openerp-server</pre>
<div>Questo mi consente di avere il log del server direttamente sulla shell e di silenziare quello del web client.<br />
Come chicca finale, grazie a virtualenvwrapper possiamo automatizzare gli ultimi due passaggi in modo che vengano eseguiti ogni volta che attiviamo il nostro virtual env. La directory<em> bin/</em> all’interno del nostro virtualenv contiene infatti degli script che vengono eseguiti durante le varie fasi di attivazione/disattivazione dell’ambiente e che possiamo usare come hooks. In particolare in <em>bin/postactivate</em> possiamo scrivere:</div>
<pre>#!/bin/bash
# This hook is run after this virtualenv is activated.
openerp-web 2&amp;&gt; /dev/null &amp;
echo $! &gt; /var/tmp/openerp-web.pid
openerp-server &amp;
echo $! &gt; /var/tmp/openerp-server.pid</pre>
<div>e in bin/predeactivate:</div>
<pre>#!/bin/bash
# This hook is run before this virtualenv is deactivated.
kill `cat /var/tmp/openerp-web.pid`
kill `cat /var/tmp/openerp-server.pid`</pre>
<div>Ovviamente gli script sono piuttosto grezzi ma più che sufficienti per utilizzo personale.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masci.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masci.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masci.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masci.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masci.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masci.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masci.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masci.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=607&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masci.wordpress.com/2010/08/23/installare-openerp-su-osx-con-virtualenv-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aee59cb61d6561244163f490aec50939?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">masci</media:title>
		</media:content>
	</item>
		<item>
		<title>Metriche software applicate</title>
		<link>http://masci.wordpress.com/2010/03/03/metriche-software-applicate/</link>
		<comments>http://masci.wordpress.com/2010/03/03/metriche-software-applicate/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 15:13:23 +0000</pubDate>
		<dc:creator>masci</dc:creator>
				<category><![CDATA[Coding Comedy]]></category>

		<guid isPermaLink="false">http://masci.wordpress.com/?p=593</guid>
		<description><![CDATA[Data la seguente come metrica di un certo valore pratico: Non ho ancora fatto i conti, ma ad una prima stima la frequenza dei wtfs/m risulta piuttosto elevata nella circostanza:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=593&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Data la seguente come metrica di un certo valore pratico:</p>
<p style="text-align:center;"><a href="http://masci.files.wordpress.com/2010/03/wtfm.jpg"><img class="size-medium wp-image-594 aligncenter" title="wtfm" src="http://masci.files.wordpress.com/2010/03/wtfm.jpg?w=300&#038;h=282" alt="" width="300" height="282" /></a></p>
<p>Non ho ancora fatto i conti, ma ad una prima stima la frequenza dei wtfs/m risulta piuttosto elevata nella circostanza:</p>
<p><a href="http://masci.files.wordpress.com/2010/03/screenshot-nemiver.png"><img class="aligncenter size-medium wp-image-595" title="Screenshot-Nemiver" src="http://masci.files.wordpress.com/2010/03/screenshot-nemiver.png?w=300&#038;h=240" alt="" width="300" height="240" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masci.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masci.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masci.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masci.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masci.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masci.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masci.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masci.wordpress.com/593/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=593&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masci.wordpress.com/2010/03/03/metriche-software-applicate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aee59cb61d6561244163f490aec50939?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">masci</media:title>
		</media:content>

		<media:content url="http://masci.files.wordpress.com/2010/03/wtfm.jpg?w=300" medium="image">
			<media:title type="html">wtfm</media:title>
		</media:content>

		<media:content url="http://masci.files.wordpress.com/2010/03/screenshot-nemiver.png?w=300" medium="image">
			<media:title type="html">Screenshot-Nemiver</media:title>
		</media:content>
	</item>
		<item>
		<title>Sull&#8217;utilità di Linked-in</title>
		<link>http://masci.wordpress.com/2010/02/13/sullutilita-di-linked-in/</link>
		<comments>http://masci.wordpress.com/2010/02/13/sullutilita-di-linked-in/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 16:49:09 +0000</pubDate>
		<dc:creator>masci</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://masci.wordpress.com/?p=590</guid>
		<description><![CDATA[Proprio ieri mi chiedevo, a distanza di un paio d&#8217;anni, a cosa mi fosse servito tenere in piedi l&#8217;account su linked-in. Che mi stessero spiando&#8230;?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=590&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Proprio ieri mi chiedevo, a distanza di un paio d&#8217;anni, a cosa mi fosse servito tenere in piedi l&#8217;account su linked-in.<br />
Che mi stessero spiando&#8230;?</p>
<p><a href="http://masci.files.wordpress.com/2010/02/google_hiring.jpg"><img class="alignleft size-medium wp-image-591" title="google_hiring" src="http://masci.files.wordpress.com/2010/02/google_hiring.jpg?w=300&#038;h=113" alt="" width="300" height="113" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masci.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masci.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masci.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masci.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masci.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masci.wordpress.com/590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masci.wordpress.com/590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masci.wordpress.com/590/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masci.wordpress.com&amp;blog=582343&amp;post=590&amp;subd=masci&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masci.wordpress.com/2010/02/13/sullutilita-di-linked-in/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aee59cb61d6561244163f490aec50939?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">masci</media:title>
		</media:content>

		<media:content url="http://masci.files.wordpress.com/2010/02/google_hiring.jpg?w=300" medium="image">
			<media:title type="html">google_hiring</media:title>
		</media:content>
	</item>
	</channel>
</rss>
