<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://sniffo.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>#sniffo dot org - english</title>
 <link>http://sniffo.org/taxonomy/term/13/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>#sniffo.org is alive!</title>
 <link>http://sniffo.org/node/1</link>
 <description>&lt;p&gt;alk&#039;s song !&lt;br /&gt;
( Based on &quot;&lt;a href=&quot;http://last.fm/music/Satanic+Surfers/_/Armless+Skater&quot; class=&quot;bb-url&quot;&gt;Armless Skater&lt;/a&gt;&quot;, by &lt;a href=&quot;http://last.fm/music/Satanic+Surfers&quot; class=&quot;bb-url&quot;&gt;Satanic Surfers&lt;/a&gt; )&lt;/p&gt;

&lt;pre&gt;
[11:50&#039;18&quot;]     vjt| I had a friend whose only job
[11:50&#039;28&quot;]     vjt| Was to keep him nerdish and to flog his log
[11:50&#039;37&quot;]     vjt| Those were the only things he wanted to do
[11:50&#039;44&quot;]     vjt| And I think that&#039;s really NERD
[11:50&#039;53&quot;]     vjt| Then one day he had an accident
[11:51&#039;00&quot;]     vjt| And had to amputate his fingers
[11:51&#039;08&quot;]     vjt| I&#039;d like to guess if he was sad that day ..
[11:51&#039;14&quot;]     vjt| He can&#039;t code
[11:51&#039;25&quot;]     vjt| He can&#039;t browse pr0n
[11:51&#039;32&quot;]     vjt| And he surely cannot masturbate no moooooooore
&lt;/pre&gt;

&lt;p&gt;( E adesso, &lt;a href=&quot;/files/crickecrock.jpg&quot; class=&quot;bb-url&quot;&gt;qualcosa di orribile&lt;/a&gt; )&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/1#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/7">quotes</category>
 <pubDate>Thu, 20 Dec 2012 00:42:00 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">1 at http://sniffo.org</guid>
</item>
<item>
 <title>Goodbye sniffo.org/, welcome sindro.me/</title>
 <link>http://sniffo.org/node/201</link>
 <description>&lt;p&gt;I&#039;ll never regret the creation of sniffo.org, and I&#039;ll always thank &lt;a href=&quot;/user/2&quot; class=&quot;bb-url&quot;&gt;MorrigaN&lt;/a&gt; for forcing me to do it, back in 2007. Like the endless days and nights we spent together on IRC in the first years of the new millenium, setting up and managing sniffo.org was fun, until only myself started posting and following it. Much the same that happened to the IRC channel.&lt;/p&gt;

&lt;p&gt;Yeah, I know that I&#039;m the &lt;span style=&quot;font-style:italic&quot;&gt;founder&lt;/span&gt;, and I should keep up the channel, site and feelings. But I ain&#039;t no god and neither wanna be, I didn&#039;t create the past situations nor was the pulsating heart of the #sniffo community. I simply gave my time and soul to it, and all of you inconsciounsly felt it and did the same. That&#039;s why we spent so much good time together. Because of our big big hearts, and the amounts of love that flowed through them &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;Again, I&#039;ll never regret, this is not a &quot;fuck you off&quot; post, quite the opposite, in fact. I love you all, and I&#039;ll never stop thanking you for all the good time we spent together. So good that it&#039;ll never come back, and no one can ever make come it back. We tried, &lt;a href=&quot;/user/2&quot; class=&quot;bb-url&quot;&gt;MorrigaN&lt;/a&gt;, and we failed, because things are constantly changing, and living in the past is a no-brainer &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;Now, back to the subject, I&#039;ve decided to split the &lt;span style=&quot;font-style:italic&quot;&gt;funny bullshits&lt;/span&gt; me and you posted here from &lt;span style=&quot;font-style:italic&quot;&gt;humbly serious and technical&lt;/span&gt; stuff I work on everyday, so I built up &lt;a href=&quot;http://sindro.me/&quot;&gt;http://sindro.me/&lt;/a&gt;, on which I&#039;ll continue posting much more often than I post here. So, click on the link, and add it to your bookmarks and RSS reader! &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;

&lt;p&gt;~Marcello&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/201#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/21">IRC</category>
 <category domain="http://sniffo.org/taxonomy/term/11">writeups</category>
 <pubDate>Tue, 17 Mar 2009 13:42:46 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">201 at http://sniffo.org</guid>
</item>
<item>
 <title>How to mirror a static copy of the opensource.org website</title>
 <link>http://sniffo.org/node/200</link>
 <description>&lt;p&gt;I currently maintain the &lt;a href=&quot;http://opensource.antifork.org/&quot;&gt;italian mirror&lt;/a&gt; of the &lt;a href=&quot;http://opensource.org&quot;&gt;Open Source Initiative&lt;/a&gt; web site, and today I realized that the script I wrote some months ago wasn&#039;t doing its job well.. because the CSS files weren&#039;t downloaded at all, causing a rather unpleasant rendering of the site.&lt;/p&gt;
&lt;p&gt;To mirror opensource org I&#039;m currently using the plain&#039;ol &lt;a href=&quot;http://www.gnu.org/software/wget/&quot;&gt;GNU Wget&lt;/a&gt; -r --mirror and so on. While the good&#039;ol &lt;b&gt;wget&lt;/b&gt; downloads each page prerequisite defined in the HTML source, it doesn&#039;t support @import CSS rules, and doesn&#039;t download images referenced in CSS with url() rules.&lt;/p&gt;
&lt;p&gt;BTW, nothing that can&#039;t be resolved with some regex-fu: that&#039;s why I&#039;m &lt;a href=&quot;http://gist.github.com/61474&quot;&gt;sharing the script&lt;/a&gt; I&#039;m currently using to mirror the opensource.org web site, hoping it will generate either a new mirror or some insights on how to do this job better :).&lt;/p&gt;
&lt;p&gt;The script: &lt;a href=&quot;http://gist.github.com/61474&quot;&gt;update_opensource_mirror.sh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--break--&gt;&lt;br /&gt;
Cheers!&lt;/p&gt;
&lt;script src=&quot;http://gist.github.com/61474.js&quot;&gt;&lt;/script&gt;</description>
 <comments>http://sniffo.org/node/200#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <category domain="http://sniffo.org/taxonomy/term/11">writeups</category>
 <pubDate>Tue, 10 Feb 2009 18:47:52 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">200 at http://sniffo.org</guid>
</item>
<item>
 <title>a permalink_fu improvement: allow modification of permalinks and create redirects on-the-fly</title>
 <link>http://sniffo.org/node/198</link>
 <description>&lt;p&gt;Another spin-off from the &lt;a href=&quot;http://www.visitacsa.it&quot; target=&quot;_blank&quot;&gt;www.visitacsa.it&lt;/a&gt; website: a &lt;a href=&quot;http://github.com/technoweenie/permalink_fu/tree/master&quot; target=&quot;_blank&quot;&gt;permalink_fu&lt;/a&gt; improvement that allows &lt;b&gt;dynamic permalinks&lt;/b&gt;. I know it is an &lt;a href=&quot;http://en.wikipedia.org/wiki/Oxymoron&quot; target=&quot;_blank&quot;&gt;oximoron&lt;/a&gt;, because permalinks should be .. well .. permanent! And because &lt;a href=&quot;http://www.searchlores.org/main.htm&quot; target=&quot;_blank&quot;&gt;search engines&lt;/a&gt; index them, they should never change. But what happens when you publish &lt;em&gt;something&lt;/em&gt;, your permalink is generated with permalink_fu using the &lt;em&gt;title&lt;/em&gt; of your post, and after a couple of days you want to change the title, and the permalink under which the post is accessible as well?&lt;/p&gt;
&lt;p&gt;Following the &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html&quot;&gt;specification&lt;/a&gt;, your app should send out a &lt;em&gt;301 moved permanently&lt;/em&gt; HTTP status when accessing the old permalink and redirect the client to the new Uniform Resource Locator. That&#039;s quite the same thing what my modification to &lt;em&gt;permalink_fu&lt;/em&gt; does: whenever your post attributes are changed, the former and new permalinks are saved to the database, and you can enable your controller to generate &lt;em&gt;302 moved temporarily&lt;/em&gt; redirects when needed. In other words, it checks whether the requested URL is an old permalink, and automagically redirects the client to the new one.&lt;!--break--&gt;&lt;/p&gt;
&lt;p&gt;Everything is done behind the scenes, and the plugin has also got nifty rake tasks to set up the Redirect model and associated migrations. And you can change its name, of course! :)&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;302&lt;/em&gt; code was chosen because the &lt;em&gt;301 permanent&lt;/em&gt; status code &lt;a href=&quot;http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;amp;answer=40132&quot;&gt;has quite disruptive effects on search engines&lt;/a&gt;, but more discussion is welcome.&lt;/p&gt;
&lt;p&gt;Have a look over &lt;a href=&quot;http://github.com/vjt/permalink_fu/tree/master&quot;&gt;my repository at github&lt;/a&gt;, read the &lt;a href=&quot;http://github.com/vjt/permalink_fu/blob/b8d979f28c9795389cc65e9670a3529f805618dc/README&quot;&gt;README&lt;/a&gt; that contains the documentation of the added features, and check out the code! :)&lt;/p&gt;
</description>
 <comments>http://sniffo.org/node/198#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <category domain="http://sniffo.org/taxonomy/term/11">writeups</category>
 <pubDate>Thu, 29 Jan 2009 19:30:04 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">198 at http://sniffo.org</guid>
</item>
<item>
 <title>The jQuery ajax-upload-fu plugin</title>
 <link>http://sniffo.org/node/197</link>
 <description>&lt;p&gt;This &lt;a href=&quot;http://gist.github.com/54441&quot;&gt;jQuery plug-in&lt;/a&gt; allows AJAX file uploads without having a fixed file input button. It achieves its goals by installing an OnMouseMove handler over the selected elements, and moving the input button under the mouse cursor.&lt;/p&gt;
&lt;p&gt;The quote that inspired this code is: &quot;If Muhammad won&#039;t go to the the mountain, the mountain will come to Muhammad&quot;,the opposite of &lt;a href=&quot;http://en.wikipedia.org/wiki/If_the_mountain_won&#039;t_come_to_Muhammad&quot;&gt;the more known proverb&lt;/a&gt; :).&lt;/p&gt;
&lt;p&gt;It has been spinned off from the &lt;a href=&quot;http://www.visitacsa.it/&quot; title=&quot;http://www.visitacsa.it/&quot;&gt;http://www.visitacsa.it/&lt;/a&gt; JavaScript codebase, see the &lt;a href=&quot;http://gist.github.com/54441&quot;&gt;gist&lt;/a&gt; for more information, and have a look &lt;a href=&quot;http://www.visitacsa.it/javascripts/business-registration.js&quot;&gt;onto the live app code for an example of its usage&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here is the source code: &lt;!--break--&gt;&lt;/p&gt;
&lt;script src=&quot;http://gist.github.com/54441.js&quot;&gt;&lt;/script&gt;</description>
 <comments>http://sniffo.org/node/197#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <category domain="http://sniffo.org/taxonomy/term/11">writeups</category>
 <pubDate>Thu, 29 Jan 2009 09:03:32 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">197 at http://sniffo.org</guid>
</item>
<item>
 <title>The Windows 7 default wallpaper meaning.</title>
 <link>http://sniffo.org/node/196</link>
 <description>&lt;p&gt;When you install the &lt;a href=&quot;http://www.microsoft.com/windows/windows-7/beta-download.aspx&quot; target=&quot;_blank&quot;&gt;developer beta of Windows 7&lt;/a&gt;, after the usual 3 reboot cycle, you are greeted with the following image:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;asset-asset-image asset-align-center&quot;&gt;&lt;img src=&quot;http://sniffo.org/files/vjt/win7 siamese figth fish.png&quot;  title=&quot;Windows 7 fish&quot; alt=&quot;Windows 7 fish&quot; height=&quot;312&quot; width=&quot;416&quot; /&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;It is the &lt;a href=&quot;http://en.wikipedia.org/wiki/Betta_fish&quot; target=&quot;_blank&quot;&gt;Siamese fighting fish&lt;/a&gt;, a beautiful tropical fish, but with an interesting characteristic: it is extremely aggressive. It is popular belief that two males fight themselves even in the wild, but that&#039;s not quite true. This belief descends from the behaviour of the fish into an aquarium, where &lt;em&gt;the victor continuously attacking the loser, eventually causing the loser&#039;s death&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Now, think about the software ecosystem as an aquarium. And think about microsoft into this aquarium. The latest release of Microsoft OS has an aggressive fish as its default skin, and it is alone in this aquarium. And there&#039;s no place for anyone else: they&#039;ll fight whoever adversary, even if it&#039;s from the same species.&lt;/p&gt;

&lt;p&gt;What&#039;s uncertain is .. they&#039;ll succeed, or not? &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;. We&#039;ll see!&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/196#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <category domain="http://sniffo.org/taxonomy/term/11">writeups</category>
 <pubDate>Wed, 28 Jan 2009 15:19:58 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">196 at http://sniffo.org</guid>
</item>
<item>
 <title>AU Lab power II</title>
 <link>http://sniffo.org/node/195</link>
 <description>&lt;p&gt;&lt;div class=&quot;asset-asset-image asset-align-center&quot;&gt;&lt;img src=&quot;http://sniffo.org/files/vjt/au lab powa II.png&quot;  title=&quot;AU Lab pwnz II&quot; alt=&quot;AU Lab pwnz II&quot; height=&quot;312&quot; width=&quot;500&quot; /&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;AU Lab power II.&lt;/p&gt;

&lt;p&gt;Improving: there is no need to use NetSend and NetReceive to play on 8 speakers: an aggregate device composed of Soundflower 2ch, the USB 6ch SBlive and the Built-in output is enough!&lt;/p&gt;

&lt;p&gt;Also, note the new bus: it&#039;s required because the AUMatrixReverb effect added to the center channel to improve the audio stereophony actually takes two channels, so it overlaps with the following one (the LFE). But applying the effect to a bus does not exhibit this side effect.&lt;/p&gt;

&lt;p&gt;Result: excellent 7.1 &lt;img src=&quot;/sites/all/modules/smileys/packs/example/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt;&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/195#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <pubDate>Fri, 19 Dec 2008 05:04:19 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">195 at http://sniffo.org</guid>
</item>
<item>
 <title>The end of online anonymity</title>
 <link>http://sniffo.org/node/193</link>
 <description>&lt;p&gt;Exactly the words that run around my mind these days:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.readwriteweb.com/archives/the_end_of_online_anonymity.php&quot;&gt;http://www.readwriteweb.com/archives/the_end_of_online_anonymity.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&quot;When we reach the point where online anonymity has ended, instead of getting to be who we really are, the fact that we&#039;ve become so aware of the fact that we&#039;re always being recorded, photographed, tracked, and traced, will have actually created a slightly altered personality instead. Like reality TV show contestants, the act of being observed will change our behavior. Our personal brand image will become our public identity and therefore our identity.&quot;&lt;/p&gt;

&lt;p&gt;I&#039;d think these describe exactly the &quot;facebook effect&quot;.&lt;/p&gt;

&lt;p&gt;What do you think?&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/193#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <category domain="http://sniffo.org/taxonomy/term/18">politics</category>
 <category domain="http://sniffo.org/taxonomy/term/17">strange stuff</category>
 <pubDate>Mon, 01 Dec 2008 22:55:16 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">193 at http://sniffo.org</guid>
</item>
<item>
 <title>Making the CCacheServer Kerberos Ticket server actually Work(tm) on OSX</title>
 <link>http://sniffo.org/node/190</link>
 <description>&lt;p&gt;If you&#039;re wondering *why* the &lt;code class=&quot;bb-code&quot;&gt;CCacheServer&lt;/code&gt; daemon, that caches in memory Kerberos tickets obtained via &lt;code class=&quot;bb-code&quot;&gt;kinit&lt;/code&gt;(1) is NOT starting .. that&#039;s because of a *strange* bug regarding the &lt;code class=&quot;bb-code&quot;&gt;LimitLoadToSessionType&lt;/code&gt; specified into the agent .plist, located into&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;bb-code&quot;&gt;/System/Library/LaunchAgents/edu.mit.kerberos.CCacheServer.plist&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;on OSX 10.5 systems.&lt;/p&gt;

&lt;p&gt;You simply have to comment out these two lines:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;pre&gt;
&amp;lt;key&amp;gt;LimitLoadToSessionType&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;Background&amp;lt;/string&amp;gt;
&lt;/pre&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And either&lt;br /&gt;
&lt;pre class=&quot;bb-code-block&quot;&gt;launchctl load \
  /System/Library/LaunchAgents/edu.mit.kerberos.CCacheServer.plist&lt;/pre&gt;&lt;br /&gt;
or reboot your system &lt;img src=&quot;/sites/all/modules/smileys/packs/example/wink.png&quot; title=&quot;Eye-wink&quot; alt=&quot;Eye-wink&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;CCacheServer will then be instantiated when you do a &lt;code class=&quot;bb-code&quot;&gt;kinit&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;
$ &lt;span style=&quot;font-weight:bold&quot;&gt;kinit&lt;/span&gt;
Please enter the password for &lt;script type=&quot;text/javascript&quot;&gt;eval(unescape(&#039;%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%76%6a%74%40%44%4f%4d%41%49%4e%2e%4c%4f%43%41%4c%22%3e%76%6a%74%40%44%4f%4d%41%49%4e%2e%4c%4f%43%41%4c%3c%2f%61%3e%27%29%3b&#039;))&lt;/script&gt;: 
&lt;/pre&gt;
&lt;pre&gt;
$ &lt;span style=&quot;font-weight:bold&quot;&gt;klist&lt;/span&gt;
Kerberos 5 ticket cache: &#039;API:Initial default ccache&#039;
Default principal: &lt;script type=&quot;text/javascript&quot;&gt;eval(unescape(&#039;%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%76%6a%74%40%44%4f%4d%41%49%4e%2e%4c%4f%43%41%4c%22%3e%76%6a%74%40%44%4f%4d%41%49%4e%2e%4c%4f%43%41%4c%3c%2f%61%3e%27%29%3b&#039;))&lt;/script&gt;
&lt;/pre&gt;
&lt;pre&gt;
Valid Starting     Expires            Service Principal
11/12/08 20:59:35  11/13/08 06:59:14  krbtgt/DOMAIN.LOCAL@DOMAIN.LOCAL
	renew until 11/19/08 20:59:35
&lt;/pre&gt;

&lt;p&gt;The bug is *strange* because the &lt;code class=&quot;bb-code&quot;&gt;LimitLoadToSessionType&lt;/code&gt; key actually *should* instruct launchd to automatically start up the daemon and run it once for &lt;a href=&quot;http://developer.apple.com/technotes/tn2005/tn2083.html#TABLAUNCHAGENTSUBTYPES&quot; class=&quot;bb-url&quot;&gt;every logged in user&lt;/a&gt;, when &lt;code class=&quot;bb-code&quot;&gt;kinit&lt;/code&gt; asks its services. But, if the key is set in the .plist, a &lt;code class=&quot;bb-code&quot;&gt;launchctl load&lt;/code&gt; on it fails with &quot;&lt;code class=&quot;bb-code&quot;&gt;nothing found to load&lt;/code&gt;&quot;. Weird!&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/190#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <pubDate>Wed, 12 Nov 2008 21:21:22 +0100</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">190 at http://sniffo.org</guid>
</item>
<item>
 <title>Pushing git commit messages to lighthouse in a batch</title>
 <link>http://sniffo.org/node/187</link>
 <description>&lt;p&gt;If you use github-provided lighthouse integration, from the &quot;Admin&quot; pages of your git repository, you may have stumbled upon on a glitch: every changeset on lighthouse appears as done by the lighthouse user that configured the integration on github.&lt;/p&gt;

&lt;p&gt;This happens because lighthouse uses the API token to link changeset authors to LH users, and that&#039;s not good when you&#039;re not alone committing &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;A simple solution is to use a post-commit hook, as described &lt;a href=&quot;http://github.com/guides/integrating-git-commit-messages-in-lighthouse/&quot; class=&quot;bb-url&quot;&gt;here&lt;/a&gt;, but that&#039;s not satisfactory because it means that every time you issue git commit on your console, the commit message will go public, and if you &lt;code&gt;--amend&lt;/code&gt; or &lt;code&gt;reset --soft&lt;/code&gt; the index you&#039;ll have to browse to lighthouse and delete the changeset.&lt;/p&gt;

&lt;p&gt;A much smarter solution is to push all changed revs when pushing them to github: I &lt;a href=&quot;http://pastie.org/298043&quot; class=&quot;bb-url&quot;&gt;modified the original post-commit hook&lt;/a&gt; and installed it alongside the &lt;code&gt;git&lt;/code&gt; command in &lt;code&gt;$(dirname `which git`)/&lt;span style=&quot;font-weight:bold&quot;&gt;git-lh&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This gives me a new &lt;code&gt;git lh&lt;/code&gt; command that fetches the current HEAD revision from github using &lt;code&gt;refs/heads/master&lt;/code&gt; and POSTs every changeset between that rev and the current tip in the working tree to lighthouse.&lt;/p&gt;

&lt;p&gt;So, if you issue &lt;code&gt;git lh&lt;/code&gt; before issuing &lt;code&gt;git push&lt;/code&gt;, every change you&#039;re pushing to github will go to lighthouse, too.&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;UPDATE&lt;/span&gt;: A simple bash script like&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;
#!/bin/bash
git lh &amp;amp;&amp;amp; git push
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;saved as &lt;code&gt;git-lh-push&lt;/code&gt; saves you from typing two commands when you want to push &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;Have fun!&lt;/p&gt;

&lt;p&gt;References&lt;br /&gt;
&lt;a href=&quot;http://pastie.org/298043&quot; class=&quot;bb-url&quot;&gt;git lh script&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://sniffo.org/node/187#comments</comments>
 <category domain="http://sniffo.org/taxonomy/term/13">english</category>
 <category domain="http://sniffo.org/taxonomy/term/10">nerdish</category>
 <category domain="http://sniffo.org/taxonomy/term/11">writeups</category>
 <pubDate>Wed, 22 Oct 2008 16:22:48 +0200</pubDate>
 <dc:creator>vjt</dc:creator>
 <guid isPermaLink="false">187 at http://sniffo.org</guid>
</item>
</channel>
</rss>
