<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>kill-9.it</title>
	
	<link>http://www.kill-9.it/blog</link>
	<description>Coffee for the mind, pizza for the body, sushi for the soul.</description>
	<lastBuildDate>Tue, 19 Oct 2010 17:53:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Kill-9it" /><feedburner:info uri="kill-9it" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><image><link>http://creativecommons.org/licenses/by-nc-sa/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><item>
		<title>A tiny Transmission.app hack</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/dWIMzlrroqQ/</link>
		<comments>http://www.kill-9.it/blog/index.php/2010/10/19/a-tiny-transmission-app-hack/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 17:53:31 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=513</guid>
		<description><![CDATA[(A post every 10 months. I hope that does not annoy you :) It will not take long to read, anyway. ) Transmission is a great BitTorrent client. It is full of features (look at the site!), including bandwidth control, and runs on every platform (Linux and Mac :P). You can choose global upload and [...]]]></description>
			<content:encoded><![CDATA[<p>(A post every 10 months. I hope that does not annoy you :) It will not take long to read, anyway. )</p>
<p><a href="http://www.transmissionbt.com/">Transmission</a> is a great BitTorrent client. It is full of features (look at the site!), including bandwidth control, and runs on every platform (Linux and Mac :P).<br />
You can choose global upload and download speeds, or shape single torrents among those you are working with.<br />
At home I have a 10mbit connection to the Internet so I rarely limit the torrents, but most of the time when I do it is to reserve a small quantity of bandwidth for Internet browsing while I wait, or to play online.</p>
<p>Transmission is a bit rigid regarding the possible speeds: the only possible values (for both upload and download) expressed in kilobytes/sec are 5, 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, 1000, 1500, 2000. My home network chokes around 600. I could set for 500k, but where&#8217;s the fun?</p>
<p>So:</p>
<ul>
<li>head to <a href="https://trac.transmissionbt.com/wiki/Building">https://trac.transmissionbt.com/wiki/Building </a> and read thoroughly [the part specifying that you need to have XCode installed, for example]</li>
<li>learn that &#8220;<em>Building the project on Mac requires the source to be retrieved from SVN. Pre-packaged source code will not compile.</em>&#8220;</li>
<li>download the SVN code (uhm, yes. I also have pkgsrc installed):<br />
 <code>svn co svn://svn.transmissionbt.com/Transmission/trunk Transmission</code><br />
       in my case the version number was 2.11 1133-something.
</li>
<li>run a &#8220;dry&#8221; compile run &#8212; this will guarantee that the code is not broken <em>before</em> you start tinkering with it or that you have some local issue (my first time doing actually something with XCode. Easier than I thought, the source has an XCode project file)</li>
<li>find the relevant source files (grep was my friend). In the end I only modified Controller.m and TorrentTableView.m: find the line<br />
<code>const NSInteger speedLimitActionValue[] = { 5, 10, 20, 30, 40, 50, 75,<br />
100, 150, 200, 250, 500, 750, 1000, 1500, 2000, -1 };</code><br />
and modify it to match the speeds you want to be able to use. You can add or remove values as you like as long as the syntax is right.</li>
<li>compile it again and run it. :)</li>
</ul>
<p>If I were a programmer, I&#8217;d have implemented something that would allow the user to choose the speed as he liked &#8212; but this fits my needs.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=dWIMzlrroqQ:zBpIGe5Whas:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=dWIMzlrroqQ:zBpIGe5Whas:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=dWIMzlrroqQ:zBpIGe5Whas:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=dWIMzlrroqQ:zBpIGe5Whas:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2010/10/19/a-tiny-transmission-app-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2010/10/19/a-tiny-transmission-app-hack/</feedburner:origLink></item>
		<item>
		<title>Northwest Flight 253 and the “security” of it all</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/j4jbmCqq44w/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/12/27/northwest-flight-253-and-the-security-of-it-all/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 23:50:17 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/index.php/2009/12/27/northwest-flight-253-and-the-security-of-it-all/</guid>
		<description><![CDATA[By now I think everybody has heard of the unsuccessful [terrorist?] attack to Northwestern Flight 253, where Umar Farouk Abdul Mutallab tried to mix bomb components about one hour before the plane landed. We&#8217;re so used to the restrictions applied to passengers of flights, that we almost think of them as routine, while we should [...]]]></description>
			<content:encoded><![CDATA[<p>By now I think everybody has heard of the <strong>unsuccessful</strong> [terrorist?] attack to Northwestern Flight 253, where Umar Farouk Abdul Mutallab tried to mix bomb components about one hour before the plane landed.</p>
<p>We&#8217;re so used to the restrictions applied to passengers of flights, that we almost think of them as routine, while we should always think about the effectiveness of &quot;security&quot; measures as they are applied. The most lacking resource being often common sense.</p>
<p>In this case, we can already read of the next restrictive measures, <a href="http://www.dhs.gov/ynews/releases/pr_1261853923809.shtm">on the NHS site</a>:</p>
<blockquote>
<p>The Department of Homeland Security immediately put additional screening measures into place [...]</p>
<p>Passengers flying from international locations to U.S. destinations may notice additional security measures in place. These measures are designed to be unpredictable, so passengers should not expect to see the same thing everywhere.</p>
</blockquote>
<p>So, we&#8217;ll get more restrictions, but not the same everywhere. (WTF #1)</p>
<p>Next, let&#8217;s see what the TSA has in mind for us:</p>
<blockquote>
<p>Among other things, during the final hour of flight customers must remain seated, will not be allowed to access carry-on baggage, or have personal belongings or other items on their laps[...]</p>
</blockquote>
<p>as someone else said, I&#8217;m glad that the &quot;terrorist&quot; didn&#8217;t try to blow himself up three or more hours before. Now, I will not be allowed to take a book (or put it away) during just the last hour of the flight, but this will surely scare all those terrorists that can act and think only during that last flight hour. (WTF #2)</p>
<p>I still consider myself lucky, though, <a href="http://www.startribune.com/business/11214761.html">because</a>:</p>
<blockquote>
<p>Effective today, the TSA has informed Northwest that travelers are not allowed to transport any liquids, gels, lotions or similar items in their carry-on luggage. This includes items such as beverages, hairspray, toothpaste and shampoo. These types of items can only be carried in checked luggage.</p>
</blockquote>
<p>In the end, I do not agree with those who say that as the attack was not successful, no additional security measures would be needed. I still strongly believe that in this cases <a href="http://news.yahoo.com/s/ap/us_airliner_disturbance">early intelligence</a></p>
<blockquote>
<p>Mutallab&#8217;s name had surfaced earlier on at least one U.S. intelligence database, but not to the extent that he was placed on a watch list or a no-fly list.</p>
</blockquote>
<p>is much more useful than a guy asking me to leave my water bottle at the security check.</p>
<p>In the meanwhile, it leaves me surprised that the bomber left from an airport that the <a href="http://www.african-aviation.com/index.php?option=com_content&#038;view=article&#038;catid=16:africa&#038;id=178:the-transportation-security-administrationconfirms-lagos-airport-security-compliance">TSA confirmed compliant</a> just a month ago. Again: either the airport security failed, or the security procedures and requirements are just wrong.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=j4jbmCqq44w:GnwBMlPnVjA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=j4jbmCqq44w:GnwBMlPnVjA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=j4jbmCqq44w:GnwBMlPnVjA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=j4jbmCqq44w:GnwBMlPnVjA:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/12/27/northwest-flight-253-and-the-security-of-it-all/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/12/27/northwest-flight-253-and-the-security-of-it-all/</feedburner:origLink></item>
		<item>
		<title>Intel’s Activex</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/lTLm0fbdo7Q/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/12/03/intels-activex/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 19:38:34 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=495</guid>
		<description><![CDATA[So, who am I supposed to trust? (it turns out that Husdawg LLC is a perfectly &#8220;legal&#8221; ActiveX provider, but Intel does not mention them anywhere &#8212; just hoping people will click through?)]]></description>
			<content:encoded><![CDATA[<p>So, who am I supposed to trust?</p>
<p><a href="http://farm3.static.flickr.com/2562/4137384969_41c4ef5333_o.png"><img src="http://farm3.static.flickr.com/2562/4137384969_41c4ef5333_o.png"/></a></p>
<p>(it turns out that <a href="http://www.husdawg.com/">Husdawg LLC</a> is a perfectly &#8220;legal&#8221; ActiveX provider, but Intel does not mention them anywhere &#8212; just hoping people will click through?)</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=lTLm0fbdo7Q:arYyGt2qPYU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=lTLm0fbdo7Q:arYyGt2qPYU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=lTLm0fbdo7Q:arYyGt2qPYU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=lTLm0fbdo7Q:arYyGt2qPYU:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/12/03/intels-activex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/12/03/intels-activex/</feedburner:origLink></item>
		<item>
		<title>Snow Leopard Trash, again</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/QNc-J8uxvrM/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/11/12/snow-leopard-trash-again/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 22:58:11 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=480</guid>
		<description><![CDATA[At first I did not notice, but emptying the trash took ages, even &#8220;not securely&#8221;. Well, being the geek I am I did a quick dtruss on the Locum process, which spit out a huge list of write_nocancel syscalls. So, it seems it was actually writing stuff over the files I asked him to delete, [...]]]></description>
			<content:encoded><![CDATA[<p>At first I did not notice, but emptying the trash took ages, even &#8220;not securely&#8221;.<br />
Well, being the geek I am I did a quick dtruss on the Locum process, which spit out a huge list of write_nocancel syscalls. So, it seems it was actually writing stuff over the files I asked him to delete, even if I never asked him to (I just did a right click on the Trash icon, and selected &#8220;Empty Trash&#8221;). WTF?</p>
<p>Well, I learned (thanks Google) that Snow Leopard does a secure erase of the trash by default. Annoying.<br />
And that I did not realize that until now. Embarassing.</p>
<p>So, this can be solved at least in two ways:</p>
<p><strong>The GUI one</strong><br />
Go into Finder preferences, Advanced, and uncheck &#8220;Empty Trash securely&#8221;</p>
<p align=center><img src="http://www.kill-9.it/images/finderpref.png" alt="Finder Preferences Window" /></p>
<p>or</p>
<p><strong>the CLI one</strong><br />
Go into ~/Library/Preferences, convert the Finder preferences to xml (it&#8217;s binary by default)<br />
<code>plutil -convert xml1 com.apple.finder.plist</code><br />
and change the stanza</p>
<p><code>        &lt;key&gt;EmptyTrashSecurely&lt;/key&gt;<br />
        &lt;true/&gt;</code><br />
to<code><br />
        &lt;key&gt;EmptyTrashSecurely&lt;/key&gt;<br />
        &lt;false/&gt;</code></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=QNc-J8uxvrM:bXngY224zho:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=QNc-J8uxvrM:bXngY224zho:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=QNc-J8uxvrM:bXngY224zho:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=QNc-J8uxvrM:bXngY224zho:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/11/12/snow-leopard-trash-again/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/11/12/snow-leopard-trash-again/</feedburner:origLink></item>
		<item>
		<title>Italian Agile Day 2009: Aperte le Iscrizioni!</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/hLerGeaD8_c/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/10/21/italian-agile-day-2009-aperte-le-iscrizioni/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:25:27 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Italiano]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=477</guid>
		<description><![CDATA[Leggo e volentieri riporto il post sul blog di paolo sull&#8217; Agile Day 2009, conferenza unica nel suo genere, organizzata senza budget faraonici ma ricca di contenuti. Se fate sviluppo software (e non solo), fateci un salto: Venerdì 20 Novembre 2009, a Bologna.]]></description>
			<content:encoded><![CDATA[<p>Leggo e volentieri riporto il post sul blog di <a href="http://www.casarini.org/blog/2009/italian-agile-day-2009-aperte-le-iscrizioni/">paolo</a> sull&#8217; <a href="http://www.agileday.it/front/2009/italian-agile-day-2009/">Agile Day 2009</a>, conferenza unica nel suo genere, organizzata senza budget faraonici ma ricca di contenuti.<br />
Se fate sviluppo software (e non solo), fateci un salto: Venerdì 20 Novembre 2009,  a Bologna.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=hLerGeaD8_c:-I4euEMe_Ik:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=hLerGeaD8_c:-I4euEMe_Ik:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=hLerGeaD8_c:-I4euEMe_Ik:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=hLerGeaD8_c:-I4euEMe_Ik:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/10/21/italian-agile-day-2009-aperte-le-iscrizioni/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/10/21/italian-agile-day-2009-aperte-le-iscrizioni/</feedburner:origLink></item>
		<item>
		<title>Flickr.com down</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/IEE9tFnQoCM/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/10/20/flickr-com-down/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 17:37:45 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=470</guid>
		<description><![CDATA[beepbeep:~ zen$ date Tue Oct 20 19:34:42 CEST 2009 beepbeep:~ zen$ host www.flickr.com www.flickr.com is an alias for www.flickr.vip.mud.yahoo.com. www.flickr.vip.mud.yahoo.com has address 68.142.214.24 www.flickr.vip.mud.yahoo.com mail is handled by 0 . beepbeep:~ zen$ telnet www.flickr.com 80 Trying 68.142.214.24... telnet: connect to address 68.142.214.24: Connection refused telnet: Unable to connect to remote host weird. The very same [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
beepbeep:~ zen$ date<br />
Tue Oct 20 19:34:42 CEST 2009<br />
beepbeep:~ zen$ host www.flickr.com<br />
www.flickr.com is an alias for www.flickr.vip.mud.yahoo.com.<br />
www.flickr.vip.mud.yahoo.com has address 68.142.214.24<br />
www.flickr.vip.mud.yahoo.com mail is handled by 0 .<br />
beepbeep:~ zen$ telnet www.flickr.com 80<br />
Trying 68.142.214.24...<br />
telnet: connect to address 68.142.214.24: Connection refused<br />
telnet: Unable to connect to remote host<br />
</code></p>
<p>weird.<br />
The very same www.flickr.vip.mud.yahoo.com handles api.flickr.com (which is, unsurprisingly, down).<br />
Doesn&#8217;t look smart from here.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=IEE9tFnQoCM:OO_wJag9akU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=IEE9tFnQoCM:OO_wJag9akU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=IEE9tFnQoCM:OO_wJag9akU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=IEE9tFnQoCM:OO_wJag9akU:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/10/20/flickr-com-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/10/20/flickr-com-down/</feedburner:origLink></item>
		<item>
		<title>Verbosely emptying the trash</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/UCmcWEvYFk4/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/10/17/verbosely-emptying-the-trash/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 12:01:48 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=462</guid>
		<description><![CDATA[Like it happens on Windows, when you decide to delete something OSX simply moves that file or directory to &#8220;the Trash&#8221;, which is just a hidden directory on the volume you&#8217;re deleting from. Then, you right click on the Trash icon and select &#8220;Empty trash&#8221;. This action pops up a small window like this: I [...]]]></description>
			<content:encoded><![CDATA[<p>Like it happens on Windows, when you decide to delete something OSX simply moves that file or directory to &#8220;the Trash&#8221;, which is just a hidden directory on the volume you&#8217;re deleting from. Then, you right click on the Trash icon and select &#8220;Empty trash&#8221;.<br />
This action pops up a small window like this:</p>
<p align=center>
<img src="http://www.kill-9.it/images/osxtrash.png" alt="osx trash progress window" />
</p>
<p>I grew tired of asking myself what OSX was deleting (the operation can take a while, especially when &#8212; as I often do &#8212; you&#8217;re doing a secure erase) so this ugly one-liner, run as root, will give you the file the OS is working on:</p>
<p><code><br />
ps auxw | grep -i locum | grep -v grep | awk &#039;{print $2}&#039; | xargs lsof -p | grep -i Trash | awk &#039;{print $9}&#039;<br />
</code></p>
<p>It will output something like this:<br />
<code>/Volumes/FAT80GB/.Trashes/502/xcode3210a432.dmg</code></p>
<p>You can wrap that command inside the usual while/sleep loop if you want something that keeps you updated on what is going on &#8212; or make it an alias for your favourite shell.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=UCmcWEvYFk4:tALUXR4kO0w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=UCmcWEvYFk4:tALUXR4kO0w:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=UCmcWEvYFk4:tALUXR4kO0w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=UCmcWEvYFk4:tALUXR4kO0w:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/10/17/verbosely-emptying-the-trash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/10/17/verbosely-emptying-the-trash/</feedburner:origLink></item>
		<item>
		<title>Snow Leopard, ssh-agent and an everlasting memory</title>
		<link>http://feedproxy.google.com/~r/Kill-9it/~3/XNt2JKx90vs/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/10/06/snow-leopard-ssh-agent-and-an-everlasting-memory/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:31:11 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=423</guid>
		<description><![CDATA[If you recently switched from an older (pre 10.6) version of OS X to the latest baby, and have the old habit of using ssh to connect around, you may have noticed a singular behaviour: while the older versions always asked you for a passphrase (you have a passphrase set on your private key, right?) [...]]]></description>
			<content:encoded><![CDATA[<p>If you recently switched from an older (pre 10.6) version of OS X to the latest baby, and have the old habit of using ssh to connect around, you may have noticed a singular behaviour: while the older versions always asked you for a passphrase (<em>you <strong>have</strong> a passphrase set on your private key, right?</em>) the new OS 10.6.x does it <strong>just the first time</strong> you use it.</p>
<p>Now, no doubt it is handy and user-friendly and automagical and&#8230; but I feel it disturbing: if by chance I hand over the laptop to somebody for a quick glance at a web page, for example, she can use it to connect anywhere without my consent &#8212; ok, I&#8217;m oversimplifying, but you get the idea.</p>
<p>The mistery lies into our old friend ssh-agent: it is spawn using<br />
<code>/System/Library/LaunchAgents/org.openbsd.ssh-agent.plist</code><br />
<em>[on a single line for yout copying pleasure]</em> as a configuration file and it will cache your passphrase the first time you use ssh.<br />
Up to here it&#8217;s fine.</p>
<p>What is troublesome to me is that the default cache time is unlimited (see the man page, this is the default behaviour when it is launched without specifying a &#8220;-t&#8221; option) therefore it will never forget the passphrase until I logout &#8212; being the only user of my laptop, this does not happen often.</p>
<p>Enter the joy of xml configuration files: edit the <code>org.openbsd.ssh-agent.plist</code>, and add the option to your liking, that is change this<br />
<code><br />
&lt;array&gt;<br />
&lt;string&gt;/usr/bin/ssh-agent&lt;/string&gt;<br />
&lt;string&gt;-l&lt;/string&gt;<br />
&lt;/array&gt;<br />
</code><br />
to something like this<br />
<code><br />
&lt;array&gt;<br />
&lt;string&gt;/usr/bin/ssh-agent&lt;/string&gt;<br />
&lt;string&gt;-l&lt;/string&gt;<br />
&lt;string&gt;-t&lt;/string&gt;<br />
&lt;string&gt;120&lt;/string&gt;<br />
&lt;/array&gt;<br />
</code><br />
if a couple of minutes of &#8220;grace period&#8221; suit your usage.<br />
Then, just kill the process &#8212; it will spawn again the next time you use ssh.</p>
<p>[By the way:<br />
Dear Internet, posting code like the XML up here sucks big time.<br />
It took me more time to format the two snippets to render correctly then writing the whole post.<br />
What do you use to ease this pain?<br />
thank you.]</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Kill-9it?a=XNt2JKx90vs:X2gs_pP6BTM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=XNt2JKx90vs:X2gs_pP6BTM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Kill-9it?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Kill-9it?a=XNt2JKx90vs:X2gs_pP6BTM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Kill-9it?i=XNt2JKx90vs:X2gs_pP6BTM:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/10/06/snow-leopard-ssh-agent-and-an-everlasting-memory/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:origLink>http://www.kill-9.it/blog/index.php/2009/10/06/snow-leopard-ssh-agent-and-an-everlasting-memory/</feedburner:origLink></item>
	<item><title>Links for 2007-10-18 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/1ABwa252p9Q/zen0</link><pubDate>Fri, 19 Oct 2007 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-10-18</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.visualcomplexity.com/vc/project_details.cfm?index=392&amp;id=392&amp;domain="&gt;visualcomplexity.com | Windows vs Linux Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://varnish.projects.linpro.no/"&gt;Varnish - Trac&lt;/a&gt;&lt;br/&gt;
Open source reverse proxy&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hackmysql.com/mysqlreportguide"&gt;The New Guide To Understanding mysqlreport&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.rsnapshot.org/"&gt;rsnapshot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.sun.com/blueprints/0305/819-2259.pdf"&gt;Solaris Basic Auditing and Reporting Tool (BART)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.logging-architecture.net/pla2/"&gt;[PLA] - PIX Logging Architecture - version 2&lt;/a&gt;&lt;br/&gt;
free and open-source project allowing for correlation of Cisco PIX, Cisco FWSM and Cisco ASA Firewall Traffic, IDS and Informational Logs.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wiki.codemongers.com/Nginx"&gt;Nginx - Nginx Wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://emailrelay.sourceforge.net/"&gt;E-MailRelay -- SMTP proxy and store-and-forward MTA&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://tt-rss.spb.ru/trac/"&gt;Tiny Tiny RSS - Trac&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://alp-uckan.net/free/monitorthis/"&gt;Creates OPML for a keyword search on a number of search engines&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-10-18</feedburner:origLink></item><item><title>Links for 2007-05-17 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/khEqvYXsCMs/zen0</link><pubDate>Fri, 18 May 2007 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-05-17</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://tt-rss.spb.ru/trac/"&gt;Tiny Tiny RSS - Trac&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://alp-uckan.net/free/monitorthis/"&gt;Creates OPML for a keyword search on a number of search engines&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-05-17</feedburner:origLink></item><item><title>Links for 2007-05-14 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/pdgEydVAHlg/zen0</link><pubDate>Tue, 15 May 2007 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-05-14</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://emailrelay.sourceforge.net/"&gt;E-MailRelay -- SMTP proxy and store-and-forward MTA&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-05-14</feedburner:origLink></item><item><title>Links for 2007-05-11 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/GKXL9QhnLNo/zen0</link><pubDate>Sat, 12 May 2007 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-05-11</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://wiki.codemongers.com/Nginx"&gt;Nginx - Nginx Wiki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-05-11</feedburner:origLink></item><item><title>Links for 2007-05-02 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/wL2irBgqRNk/zen0</link><pubDate>Thu, 03 May 2007 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-05-02</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.logging-architecture.net/pla2/"&gt;[PLA] - PIX Logging Architecture - version 2&lt;/a&gt;&lt;br/&gt;
free and open-source project allowing for correlation of Cisco PIX, Cisco FWSM and Cisco ASA Firewall Traffic, IDS and Informational Logs.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-05-02</feedburner:origLink></item><item><title>Links for 2007-04-08 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/oRKo-t6eSGA/zen0</link><pubDate>Mon, 09 Apr 2007 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-04-08</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.sun.com/blueprints/0305/819-2259.pdf"&gt;Solaris Basic Auditing and Reporting Tool (BART)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-04-08</feedburner:origLink></item><item><title>Links for 2007-03-09 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Kill-9it/~3/WFZqNlMTlAU/zen0</link><pubDate>Sat, 10 Mar 2007 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/zen0#2007-03-09</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.rsnapshot.org/"&gt;rsnapshot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/zen0#2007-03-09</feedburner:origLink></item></channel>
</rss>

