<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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/"
	>
<channel>
	<title>Comments for Blogged by buffi</title>
	<atom:link href="http://buffis.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://buffis.com</link>
	<description>Björn Kempén rants about Software Development, Django, Games, Work, ...</description>
	<pubDate>Fri, 12 Mar 2010 00:49:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Pygame works rather decent at ps3 :) by Craig</title>
		<link>http://buffis.com/2007/01/13/pygame-works-rather-decent-at-ps3/comment-page-1/#comment-54455</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Fri, 29 Jan 2010 17:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://buffis.com/?p=24#comment-54455</guid>
		<description>this looks quite interesting! Dont suppose you could give me a guide on how to go about compiling pygame on my ps3 which ive already gt ydl 6.2 installed!</description>
		<content:encoded><![CDATA[<p>this looks quite interesting! Dont suppose you could give me a guide on how to go about compiling pygame on my ps3 which ive already gt ydl 6.2 installed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on geektorrent goes live! First django powered bittorrent tracker/indexer? by buffi</title>
		<link>http://buffis.com/2007/09/03/geektorrent-goes-live-first-django-powered-bittorrent-trackerindexer/comment-page-1/#comment-53670</link>
		<dc:creator>buffi</dc:creator>
		<pubDate>Sat, 02 Jan 2010 21:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.buffis.com/?p=53#comment-53670</guid>
		<description>Source code should be available shortly.</description>
		<content:encoded><![CDATA[<p>Source code should be available shortly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to get random rows from mysql using django without hurting your server by buffi</title>
		<link>http://buffis.com/2008/01/20/how-to-get-random-rows-from-mysql-using-django/comment-page-1/#comment-53669</link>
		<dc:creator>buffi</dc:creator>
		<pubDate>Sat, 02 Jan 2010 21:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.buffis.com/?p=64#comment-53669</guid>
		<description>Yup, the code assumes you manually create the queryset random_pics.

You will get that error if PICS_TO_GET*10 is larger than num_pics. For me this isn't an issue (500k+ images), but you can always tweak the value if you want to.</description>
		<content:encoded><![CDATA[<p>Yup, the code assumes you manually create the queryset random_pics.</p>
<p>You will get that error if PICS_TO_GET*10 is larger than num_pics. For me this isn&#8217;t an issue (500k+ images), but you can always tweak the value if you want to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocoa unit testing with OCUnit and OCMock: Mocking out IBOutlets by buffi</title>
		<link>http://buffis.com/2009/06/27/cocoa-unit-testing-with-ocunit-and-ocmock-mocking-out-iboutlets/comment-page-1/#comment-52922</link>
		<dc:creator>buffi</dc:creator>
		<pubDate>Sun, 20 Dec 2009 22:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://buffis.com/?p=143#comment-52922</guid>
		<description>Heh, yeah that works as well :) 

I think I like that solution slightly more as well. Seems cleaner than using a custom initializer.

edit: Thanks for OCMock btw. Keep up the good work. I hope Xcode will improve its integration with it sooner or later...</description>
		<content:encoded><![CDATA[<p>Heh, yeah that works as well <img src='http://buffis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I think I like that solution slightly more as well. Seems cleaner than using a custom initializer.</p>
<p>edit: Thanks for OCMock btw. Keep up the good work. I hope Xcode will improve its integration with it sooner or later&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting a torrents info_hash for XBT Tracker using python by dan</title>
		<link>http://buffis.com/2007/07/25/getting-info_hash-for-xbt-tracker/comment-page-1/#comment-48920</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Fri, 20 Nov 2009 11:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://130.240.57.63/blog/?p=43#comment-48920</guid>
		<description>I'd propose to use

stdout.write(info_hash.hexdigest())

instead of

stdout.write(info_hash.digest())</description>
		<content:encoded><![CDATA[<p>I&#8217;d propose to use</p>
<p>stdout.write(info_hash.hexdigest())</p>
<p>instead of</p>
<p>stdout.write(info_hash.digest())</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocoa unit testing with OCUnit and OCMock: Mocking out IBOutlets by Erik Doernenburg</title>
		<link>http://buffis.com/2009/06/27/cocoa-unit-testing-with-ocunit-and-ocmock-mocking-out-iboutlets/comment-page-1/#comment-46105</link>
		<dc:creator>Erik Doernenburg</dc:creator>
		<pubDate>Tue, 20 Oct 2009 13:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://buffis.com/?p=143#comment-46105</guid>
		<description>There's a neat little trick that allows you to set outlets without having to create a special init method. In your example you would do the following:

GameEngine *engine = [[GameEngine alloc] init];
[engine setValue:mockEnemyManager forKey:@"enemyManager"];

More detail in a blog post I wrote a while ago:

http://erik.doernenburg.com/2008/07/testing-cocoa-controllers-with-ocmock/</description>
		<content:encoded><![CDATA[<p>There&#8217;s a neat little trick that allows you to set outlets without having to create a special init method. In your example you would do the following:</p>
<p>GameEngine *engine = [[GameEngine alloc] init];<br />
[engine setValue:mockEnemyManager forKey:@"enemyManager"];</p>
<p>More detail in a blog post I wrote a while ago:</p>
<p><a href="http://erik.doernenburg.com/2008/07/testing-cocoa-controllers-with-ocmock/" rel="nofollow">http://erik.doernenburg.com/2008/07/testing-cocoa-controllers-with-ocmock/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting output of a system-call in python by Bryce</title>
		<link>http://buffis.com/2007/01/09/getting-output-of-a-system-call-in-python/comment-page-1/#comment-46006</link>
		<dc:creator>Bryce</dc:creator>
		<pubDate>Sat, 17 Oct 2009 21:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://buffis.com/?p=21#comment-46006</guid>
		<description>Hey, Thanks for posting this. It was exactly what I was needed for a project.</description>
		<content:encoded><![CDATA[<p>Hey, Thanks for posting this. It was exactly what I was needed for a project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to get random rows from mysql using django without hurting your server by Scot Hacker</title>
		<link>http://buffis.com/2008/01/20/how-to-get-random-rows-from-mysql-using-django/comment-page-1/#comment-41957</link>
		<dc:creator>Scot Hacker</dc:creator>
		<pubDate>Fri, 11 Sep 2009 18:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.buffis.com/?p=64#comment-41957</guid>
		<description>On the last line, you're filtering on a queryset that has not yet been created, so I'm not sure how this could work. I assume you first need something like:

all_pics = Picture.objects.all()
# Followed by
random_pics = all_pics.filter(id__in = rand_nums)[:PICS_TO_GET] # Fast!


Also, I'm getting errors:

"sample larger than population"

even if I turn the PICS_TO_GET var way down. Ideas?</description>
		<content:encoded><![CDATA[<p>On the last line, you&#8217;re filtering on a queryset that has not yet been created, so I&#8217;m not sure how this could work. I assume you first need something like:</p>
<p>all_pics = Picture.objects.all()<br />
# Followed by<br />
random_pics = all_pics.filter(id__in = rand_nums)[:PICS_TO_GET] # Fast!</p>
<p>Also, I&#8217;m getting errors:</p>
<p>&#8220;sample larger than population&#8221;</p>
<p>even if I turn the PICS_TO_GET var way down. Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Migrating Django from Apache to lighttpd using FastCGI by Hector Yuen</title>
		<link>http://buffis.com/2009/02/03/migrating-django-from-apache-to-lighttpd/comment-page-1/#comment-38926</link>
		<dc:creator>Hector Yuen</dc:creator>
		<pubDate>Sun, 16 Aug 2009 00:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://buffis.com/?p=93#comment-38926</guid>
		<description>I have a question, I am trying to follow your tutorial, but it seems that the rewriting thing is screwing up the urls, eg

http://foo/a 

will be rewritten into the browser as
http://foo/pici.fcgi/a

which then django fails to understand, have you ran into issues like these?</description>
		<content:encoded><![CDATA[<p>I have a question, I am trying to follow your tutorial, but it seems that the rewriting thing is screwing up the urls, eg</p>
<p><a href="http://foo/a" rel="nofollow">http://foo/a</a> </p>
<p>will be rewritten into the browser as<br />
<a href="http://foo/pici.fcgi/a" rel="nofollow">http://foo/pici.fcgi/a</a></p>
<p>which then django fails to understand, have you ran into issues like these?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on geektorrent goes live! First django powered bittorrent tracker/indexer? by Kenneth</title>
		<link>http://buffis.com/2007/09/03/geektorrent-goes-live-first-django-powered-bittorrent-trackerindexer/comment-page-1/#comment-37836</link>
		<dc:creator>Kenneth</dc:creator>
		<pubDate>Thu, 30 Jul 2009 02:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.buffis.com/?p=53#comment-37836</guid>
		<description>Any updates on django based tracker project?</description>
		<content:encoded><![CDATA[<p>Any updates on django based tracker project?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
