<?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>Naufraghi nella rete &#187; mac</title>
	<atom:link href="http://www.slug.it/naufraghi/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slug.it/naufraghi</link>
	<description>… dolce m’è il naufragar in questo mare?</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:10:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Setup a local macports repository</title>
		<link>http://www.slug.it/naufraghi/setup-a-local-macports-repository/</link>
		<comments>http://www.slug.it/naufraghi/setup-a-local-macports-repository/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 14:45:32 +0000</pubDate>
		<dc:creator>Matteo</dc:creator>
				<category><![CDATA[informatica]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.slug.it/naufraghi/setup-a-local-macports-repository/</guid>
		<description><![CDATA[(Update: Official Guide Local Repositories) Setting up a local macports repository is quite easy: - create a repo folder, like: sudo mkdir /opt/local/var/localports - update the config sudo vim /opt/local/etc/macports/sources.conf adding file:///opt/local/var/localports - create your port mirroring the model in &#8230; <a href="http://www.slug.it/naufraghi/setup-a-local-macports-repository/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>(Update: Official Guide <a href="http://guide.macports.org/#development.local-repositories">Local Repositories</a>)</p>
<p>Setting up a local macports repository is quite easy:</p>
<p>- create a repo folder, like:
<div class="codesnip-container" >sudo mkdir /opt/local/var/localports</div>
<p>- update the config
<div class="codesnip-container" >sudo vim /opt/local/etc/macports/sources.conf</div>
<p> adding
<div class="codesnip-container" >file:///opt/local/var/localports</div>
<p>- create your port mirroring the model in
<div class="codesnip-container" >/opt/local/var/macports/sources/</div>
<p>- update the index with:
<div class="codesnip-container" >sudo portindex /opt/local/var/localports</div>
<p>- install the new port!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slug.it/naufraghi/setup-a-local-macports-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS XP</title>
		<link>http://www.slug.it/naufraghi/mac-os-xp/</link>
		<comments>http://www.slug.it/naufraghi/mac-os-xp/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 08:41:43 +0000</pubDate>
		<dc:creator>Matteo</dc:creator>
				<category><![CDATA[finestre]]></category>
		<category><![CDATA[informatica]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.slug.it/naufraghi/mac-os-xp/</guid>
		<description><![CDATA[Prima l&#8217;Apple passa a Intel, poi fa un portatile che non compatibile &#8220;out of the box&#8221; con Windows, aspetta che il primo geniaccio riesca nell&#8217;impresa di farcelo partire&#8230; e concede al mondo la compatibilità ufficialmente! Che stanno tramando? Boh, da &#8230; <a href="http://www.slug.it/naufraghi/mac-os-xp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" href="http://www.gearlive.com/index.php/news/article/apple-releases-software-run-windows-xp-mac-04050801/" title="Micro Apple"><img id="image128" src="http://www.slug.it/naufraghi/wp-content/uploads/Micro_Apple.jpg" alt="Micro Apple" class="alignleft" /></a>Prima l&#8217;Apple passa a Intel, poi fa un portatile che non compatibile &#8220;out of the box&#8221; con Windows, aspetta che il primo geniaccio riesca nell&#8217;impresa di farcelo partire&#8230; e concede al mondo la compatibilità ufficialmente!<br />
Che stanno tramando? Boh, da una parte ora è possibile provare OS X anche su macchine non Apple, dall&#8217;altra è possibile far girare Windows su macchine Apple&#8230;</p>
<p>Tra quanto compreranno <a href="http://www.winehq.com/">Wine</a> per far girare anche le applicazioni?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slug.it/naufraghi/mac-os-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modificare il titolo del teminale da Python</title>
		<link>http://www.slug.it/naufraghi/modificare-il-titolo-del-teminale-da-python/</link>
		<comments>http://www.slug.it/naufraghi/modificare-il-titolo-del-teminale-da-python/#comments</comments>
		<pubDate>Tue, 21 Mar 2006 23:58:59 +0000</pubDate>
		<dc:creator>Matteo</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[informatica]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[terminale]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.slug.it/naufraghi/modificare-il-titolo-del-teminale-da-python/</guid>
		<description><![CDATA[Una delle particolarità di gentoo è l&#8217;attenzione ai particolari, ed una delle caratteristiche che rimpiango in altri gestori di pacchetti è l&#8217;uso intelligente della barra del titolo della finestra del terminale per comunicare lo stato di avanzamento di una lunga &#8230; <a href="http://www.slug.it/naufraghi/modificare-il-titolo-del-teminale-da-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Una delle particolarità di <a href="http://www.gentoo.org">gentoo</a> è l&#8217;attenzione ai particolari, ed una delle caratteristiche che rimpiango in altri gestori di pacchetti è l&#8217;uso intelligente della barra del titolo della finestra del terminale per comunicare lo stato di avanzamento di una lunga installazione.</p>
<p>Andando a scavare nei <a href="http://dev.gentoo.org/~zmedico/portage/archives/">sorgenti di portage</a> ho trovato una comoda funzione, <samp>xtermTitle(message)</samp> (nel file <samp>output.py</samp>), che modifica il titolo di xTerm (o similari) con il messaggio inviato.</p>
<p>Qua ho adattato (minimamente) la funzione ai miei usi:</p>
<div class="codesnip-container" >
<div class="python codesnip" style="font-family:monospace;"><span class="kw1">def</span> xtermTitle<span class="br0">&#40;</span>message<span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="kw3">os</span>.<span class="me1">environ</span>.<span class="me1">has_key</span><span class="br0">&#40;</span><span class="st0">&quot;TERM&quot;</span><span class="br0">&#41;</span> <span class="kw1">and</span> <span class="kw3">sys</span>.<span class="me1">stderr</span>.<span class="me1">isatty</span><span class="br0">&#40;</span><span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; this_term = <span class="kw3">os</span>.<span class="me1">environ</span><span class="br0">&#91;</span><span class="st0">&quot;TERM&quot;</span><span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; legal_terms = <span class="br0">&#91;</span><span class="st0">&quot;xterm&quot;</span>, <span class="st0">&quot;Eterm&quot;</span>, <span class="st0">&quot;aterm&quot;</span>, <span class="st0">&quot;rxvt&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&quot;screen&quot;</span>, <span class="st0">&quot;kterm&quot;</span>, <span class="st0">&quot;gnome&quot;</span><span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> term <span class="kw1">in</span> legal_terms:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> this_term.<span class="me1">startswith</span><span class="br0">&#40;</span>term<span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">sys</span>.<span class="me1">stderr</span>.<span class="me1">write</span><span class="br0">&#40;</span><span class="st0">&quot;<span class="es0">\x</span>1b]2;&quot;</span> + <span class="kw2">str</span><span class="br0">&#40;</span>message<span class="br0">&#41;</span> + <span class="st0">&quot;<span class="es0">\x</span>07&quot;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">sys</span>.<span class="me1">stderr</span>.<span class="me1">flush</span><span class="br0">&#40;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">break</span></div>
</div>
<p>Funziona egregiamente, e fa rimpiangere un po&#8217; meno l&#8217;assenza di <a href="http://growl.info/">Growl</a> quando parto con <a href="http://www.ubuntu-it.org/">Ubuntu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slug.it/naufraghi/modificare-il-titolo-del-teminale-da-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

