<?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: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/" version="2.0">
<channel>
	<title>Comments for Leho Kraav 24/7 - Information Technology, Investing, Trading, Strategy, Management, Development, Basketball</title>
	
	<link>http://leho.kraav.com</link>
	<description>I am Leho Kraav, expert in information technology. This home page exists to provide my contact information and to serve as my memo pad, hosting articles about various issues with computer hardware and software development. I am currently working on my own startup software projects dealing with financial instrument trading strategies and implementing them.</description>
	<lastBuildDate>Wed, 21 Jul 2010 02:55:43 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForLehoKraav24/7BasketballInformationTechnology" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="commentsforlehokraav24/7basketballinformationtechnology" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">CommentsForLehoKraav24/7BasketballInformationTechnology</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Comment on Creative Zen Vision M rescue operation by Joe McKenzie</title>
		<link>http://leho.kraav.com/blog/2009/02/25/creative-zen-vision-m-rescue-operation/#comment-1687</link>
		<dc:creator>Joe McKenzie</dc:creator>
		<pubDate>Wed, 21 Jul 2010 02:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=15#comment-1687</guid>
		<description>In case anybody's looking for the original script since Tobia Conforto's page on it disappeared, I've forked Leho's gist and manually made it work on the Zen Xtra again:
http://gist.github.com/483969</description>
		<content:encoded><![CDATA[<p>In case anybody&#8217;s looking for the original script since Tobia Conforto&#8217;s page on it disappeared, I&#8217;ve forked Leho&#8217;s gist and manually made it work on the Zen Xtra again:<br />
<a href="http://gist.github.com/483969" rel="nofollow">http://gist.github.com/483969</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Katkise Smart Card service (SCardSvr) remont (Windows XP, ID-kaart) by LK</title>
		<link>http://leho.kraav.com/blog/2010/03/24/katkise-smart-card-service-scardsvr-remont-windows-xp-id-kaart/#comment-1686</link>
		<dc:creator>LK</dc:creator>
		<pubDate>Sat, 03 Jul 2010 23:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=210#comment-1686</guid>
		<description>sorry, i really have no idea about repairing scardsrv on vista+.</description>
		<content:encoded><![CDATA[<p>sorry, i really have no idea about repairing scardsrv on vista+.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Katkise Smart Card service (SCardSvr) remont (Windows XP, ID-kaart) by Alex</title>
		<link>http://leho.kraav.com/blog/2010/03/24/katkise-smart-card-service-scardsvr-remont-windows-xp-id-kaart/#comment-1685</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 01 Jul 2010 09:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=210#comment-1685</guid>
		<description>Hi,

Do you happen to have a method that allows the service to be restored on Windows Vista or Seven?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you happen to have a method that allows the service to be restored on Windows Vista or Seven?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using apache authentication with gitweb, gitosis – repository access control by Gitweb and Gitosis: Play Nice | Programming by Robert Massaioli</title>
		<link>http://leho.kraav.com/blog/2009/10/27/using-apache-authentication-with-gitweb-gitosis-repository-access-control/#comment-1679</link>
		<dc:creator>Gitweb and Gitosis: Play Nice | Programming by Robert Massaioli</dc:creator>
		<pubDate>Fri, 09 Apr 2010 07:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=61#comment-1679</guid>
		<description>[...] P.S. I should note that I was led in the right direction by this post. [...]</description>
		<content:encoded><![CDATA[<p>[...] P.S. I should note that I was led in the right direction by this post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using apache authentication with gitweb, gitosis – repository access control by Aus dem Leben eines Szlauszafs</title>
		<link>http://leho.kraav.com/blog/2009/10/27/using-apache-authentication-with-gitweb-gitosis-repository-access-control/#comment-1672</link>
		<dc:creator>Aus dem Leben eines Szlauszafs</dc:creator>
		<pubDate>Tue, 30 Mar 2010 11:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=61#comment-1672</guid>
		<description>&lt;strong&gt;gitweb mit Passwortschutz...&lt;/strong&gt;

gitweb ist eine schöne Sache - aber nicht immer will man seine Repositories jedermann zugänglich machen. Schön wäre es doch, wenn man die Möglichkeit hätte, auch den Zugriff auf gitweb an eine Anmeldung zu koppeln und so nur für befugte Benutzer zu erl...</description>
		<content:encoded><![CDATA[<p><strong>gitweb mit Passwortschutz&#8230;</strong></p>
<p>gitweb ist eine schöne Sache &#8211; aber nicht immer will man seine Repositories jedermann zugänglich machen. Schön wäre es doch, wenn man die Möglichkeit hätte, auch den Zugriff auf gitweb an eine Anmeldung zu koppeln und so nur für befugte Benutzer zu erl&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creative Zen Vision M rescue operation by LK</title>
		<link>http://leho.kraav.com/blog/2009/02/25/creative-zen-vision-m-rescue-operation/#comment-1670</link>
		<dc:creator>LK</dc:creator>
		<pubDate>Tue, 16 Mar 2010 08:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=15#comment-1670</guid>
		<description>two things:

1. haven't messed with the script for a loooong time
2. don't have a device anymore to test it on

perhaps &lt;a href="http://www.gruppo4.com/~tobia/zenrecover.shtml" rel="nofollow"&gt;Tobia (original author)&lt;/a&gt; is able to debug this. sorry i can't help :(</description>
		<content:encoded><![CDATA[<p>two things:</p>
<p>1. haven&#8217;t messed with the script for a loooong time<br />
2. don&#8217;t have a device anymore to test it on</p>
<p>perhaps <a href="http://www.gruppo4.com/~tobia/zenrecover.shtml" rel="nofollow">Tobia (original author)</a> is able to debug this. sorry i can&#8217;t help <img src='http://leho.kraav.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creative Zen Vision M rescue operation by Jaysun</title>
		<link>http://leho.kraav.com/blog/2009/02/25/creative-zen-vision-m-rescue-operation/#comment-1668</link>
		<dc:creator>Jaysun</dc:creator>
		<pubDate>Wed, 10 Mar 2010 02:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=15#comment-1668</guid>
		<description>I'm getting this output back to me..

$ sudo python 8kzenrecover.py -o 52428800 /dev/sda songs test/
Traceback (most recent call last):
  File "8kzenrecover.py", line 210, in 
    raise "Could not find the root inode"
TypeError: exceptions must be classes or instances, not str

It is a 60gb drive though?</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting this output back to me..</p>
<p>$ sudo python 8kzenrecover.py -o 52428800 /dev/sda songs test/<br />
Traceback (most recent call last):<br />
  File &#8220;8kzenrecover.py&#8221;, line 210, in<br />
    raise &#8220;Could not find the root inode&#8221;<br />
TypeError: exceptions must be classes or instances, not str</p>
<p>It is a 60gb drive though?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using apache authentication with gitweb, gitosis – repository access control by LK</title>
		<link>http://leho.kraav.com/blog/2009/10/27/using-apache-authentication-with-gitweb-gitosis-repository-access-control/#comment-1655</link>
		<dc:creator>LK</dc:creator>
		<pubDate>Fri, 08 Jan 2010 12:20:06 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=61#comment-1655</guid>
		<description>i'm going to gist this snippet.

edit: DONE, check post.</description>
		<content:encoded><![CDATA[<p>i&#8217;m going to gist this snippet.</p>
<p>edit: DONE, check post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using apache authentication with gitweb, gitosis – repository access control by Alex Alexander</title>
		<link>http://leho.kraav.com/blog/2009/10/27/using-apache-authentication-with-gitweb-gitosis-repository-access-control/#comment-1653</link>
		<dc:creator>Alex Alexander</dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=61#comment-1653</guid>
		<description>why the heck did I write % instead of &amp;... oh well you get the picture, please fix it and purge my comments :)

while(&lt;FILE&gt;) {</description>
		<content:encoded><![CDATA[<p>why the heck did I write % instead of &amp;&#8230; oh well you get the picture, please fix it and purge my comments <img src='http://leho.kraav.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>while(&lt;FILE&gt;) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hinnavaatluse foorum ja lemmikteemade filtreerimine – Greasemonkey by tomorrow</title>
		<link>http://leho.kraav.com/blog/2009/11/01/hinnavaatluse-foorum-ja-lemmikteemade-filtreerimine-greasemonkey/#comment-1561</link>
		<dc:creator>tomorrow</dc:creator>
		<pubDate>Sat, 31 Oct 2009 23:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=68#comment-1561</guid>
		<description>Väga kasulik.Soovitan</description>
		<content:encoded><![CDATA[<p>Väga kasulik.Soovitan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using apache authentication with gitweb, gitosis – repository access control by Sitaram</title>
		<link>http://leho.kraav.com/blog/2009/10/27/using-apache-authentication-with-gitweb-gitosis-repository-access-control/#comment-1557</link>
		<dc:creator>Sitaram</dc:creator>
		<pubDate>Tue, 27 Oct 2009 04:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=61#comment-1557</guid>
		<description>Hello,

My previous comment seems to have disappeared (or is awaiting moderation).  Meanwhile, I have added this item to my documentation, including sample code (untested, but should work), at http://github.com/sitaramc/gitolite/blob/pu/doc/3-faq-tips-etc.mkd#gitwebauth

Thank you.

Sitaram</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>My previous comment seems to have disappeared (or is awaiting moderation).  Meanwhile, I have added this item to my documentation, including sample code (untested, but should work), at <a href="http://github.com/sitaramc/gitolite/blob/pu/doc/3-faq-tips-etc.mkd#gitwebauth" rel="nofollow">http://github.com/sitaramc/gitolite/blob/pu/doc/3-faq-tips-etc.mkd#gitwebauth</a></p>
<p>Thank you.</p>
<p>Sitaram</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using apache authentication with gitweb, gitosis – repository access control by Sitaram</title>
		<link>http://leho.kraav.com/blog/2009/10/27/using-apache-authentication-with-gitweb-gitosis-repository-access-control/#comment-1556</link>
		<dc:creator>Sitaram</dc:creator>
		<pubDate>Tue, 27 Oct 2009 01:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=61#comment-1556</guid>
		<description>Hi,

Sorry; I live in India and was asleep at the time you came on #git (I assume it was you) and mentioned this.

The way gitolite is designed, doing this boils down to 2 things in your subroutine:

  - "do" or "require" a file called ~/.gitolite/conf/gitolite.conf-compiled.pm (this contains just one hash called %repos that was created at "compile" time; more on this below)
  - then check if this key exists: $repos{$projectname}{R}{$username} (where username and projectname are as defined in your code above; you still need those code pieces that setup those variables of course).

That's it!  No parsing of any file the way you're doing now :-)

Gitolite has a slightly different way of dealing with access.  Firstly, it's access config is much, much, more flexible and powerful than the WIndows-ini style that gitosis uses.  But the more important thing from your point of view is that parsing the access config is done only once, when you make a change, commit, and push.  This "compile" step (as I call it) produces a hash and writes that hash out to a file.

My objective is that the "run time" (loosely speaking, the parts that come into play in deciding whether someone has access) should *not* do any parsing or complex stuff.  They only read that hash and check for appropriate keys; that's it.  It has to be as simple as that.

[At work, I might have a need to auditably prove the access controls work as claimed, and it is easier to do that in two steps.  In fact the auditors need not worry about the compile at all -- at any time that "...compiled.pm" file mentioned above is all they need to check if they want to be sure, and that contains just one hash, as I said.]

Anyway the end result is that *you* (in your gitweb auth subroutine) need not parse anything.  It's all done for you and sitting in a nice clean perl hash :-)

PS: I wish I could claim credit for anticipating this when I designed gitolite :-)  But this is just luck -- my design was driven entirely by the auditability issues I described earlier!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Sorry; I live in India and was asleep at the time you came on #git (I assume it was you) and mentioned this.</p>
<p>The way gitolite is designed, doing this boils down to 2 things in your subroutine:</p>
<p>  &#8211; &#8220;do&#8221; or &#8220;require&#8221; a file called ~/.gitolite/conf/gitolite.conf-compiled.pm (this contains just one hash called %repos that was created at &#8220;compile&#8221; time; more on this below)<br />
  &#8211; then check if this key exists: $repos{$projectname}{R}{$username} (where username and projectname are as defined in your code above; you still need those code pieces that setup those variables of course).</p>
<p>That&#8217;s it!  No parsing of any file the way you&#8217;re doing now <img src='http://leho.kraav.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Gitolite has a slightly different way of dealing with access.  Firstly, it&#8217;s access config is much, much, more flexible and powerful than the WIndows-ini style that gitosis uses.  But the more important thing from your point of view is that parsing the access config is done only once, when you make a change, commit, and push.  This &#8220;compile&#8221; step (as I call it) produces a hash and writes that hash out to a file.</p>
<p>My objective is that the &#8220;run time&#8221; (loosely speaking, the parts that come into play in deciding whether someone has access) should *not* do any parsing or complex stuff.  They only read that hash and check for appropriate keys; that&#8217;s it.  It has to be as simple as that.</p>
<p>[At work, I might have a need to auditably prove the access controls work as claimed, and it is easier to do that in two steps.  In fact the auditors need not worry about the compile at all -- at any time that "...compiled.pm" file mentioned above is all they need to check if they want to be sure, and that contains just one hash, as I said.]</p>
<p>Anyway the end result is that *you* (in your gitweb auth subroutine) need not parse anything.  It&#8217;s all done for you and sitting in a nice clean perl hash <img src='http://leho.kraav.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>PS: I wish I could claim credit for anticipating this when I designed gitolite <img src='http://leho.kraav.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   But this is just luck &#8212; my design was driven entirely by the auditability issues I described earlier!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Opening Day by LK</title>
		<link>http://leho.kraav.com/blog/2005/06/02/opening-day/#comment-138</link>
		<dc:creator>LK</dc:creator>
		<pubDate>Fri, 15 Sep 2006 20:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/wordpress/?p=2#comment-138</guid>
		<description>Coach Blair what's up?? :D Talk about a surprise. Check your e-mail.</description>
		<content:encoded><![CDATA[<p>Coach Blair what&#8217;s up?? <img src='http://leho.kraav.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Talk about a surprise. Check your e-mail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Opening Day by Eric Blair</title>
		<link>http://leho.kraav.com/blog/2005/06/02/opening-day/#comment-137</link>
		<dc:creator>Eric Blair</dc:creator>
		<pubDate>Fri, 15 Sep 2006 19:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/wordpress/?p=2#comment-137</guid>
		<description>Leho, Old friend from the U.S.  checking in to see how things are going.
Good to see you are still playing ball.  Site looks great!!!</description>
		<content:encoded><![CDATA[<p>Leho, Old friend from the U.S.  checking in to see how things are going.<br />
Good to see you are still playing ball.  Site looks great!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Helsinki ToPo 2005-2006 by LK</title>
		<link>http://leho.kraav.com/blog/2005/11/06/helsinki-topo-2005-2006/#comment-82</link>
		<dc:creator>LK</dc:creator>
		<pubDate>Mon, 14 Aug 2006 08:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=8#comment-82</guid>
		<description>Sopimus ToPon kanssa on työn alla. Kiitos tuesta!</description>
		<content:encoded><![CDATA[<p>Sopimus ToPon kanssa on työn alla. Kiitos tuesta!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Helsinki ToPo 2005-2006 by N.M.</title>
		<link>http://leho.kraav.com/blog/2005/11/06/helsinki-topo-2005-2006/#comment-75</link>
		<dc:creator>N.M.</dc:creator>
		<pubDate>Mon, 31 Jul 2006 17:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/?p=8#comment-75</guid>
		<description>Onko sopimus ensi kaudesta jo tehty Topon kanssa? Olisi tosi upeeta nähdä sinut Helsingissä tulevallakin kaudella</description>
		<content:encoded><![CDATA[<p>Onko sopimus ensi kaudesta jo tehty Topon kanssa? Olisi tosi upeeta nähdä sinut Helsingissä tulevallakin kaudella</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Opening Day by Zachary</title>
		<link>http://leho.kraav.com/blog/2005/06/02/opening-day/#comment-4</link>
		<dc:creator>Zachary</dc:creator>
		<pubDate>Sun, 12 Jun 2005 20:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/wordpress/?p=2#comment-4</guid>
		<description>Hey!  Good to hear from you.  Your page looks great.  Mine is based on Wordpress, too.</description>
		<content:encoded><![CDATA[<p>Hey!  Good to hear from you.  Your page looks great.  Mine is based on Wordpress, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Opening Day by Urmas</title>
		<link>http://leho.kraav.com/blog/2005/06/02/opening-day/#comment-2</link>
		<dc:creator>Urmas</dc:creator>
		<pubDate>Mon, 06 Jun 2005 06:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://leho.kraav.com/wordpress/?p=2#comment-2</guid>
		<description>Best player, nice page!</description>
		<content:encoded><![CDATA[<p>Best player, nice page!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
