<?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>Reflection Technology &#187; Great Books &amp; Movies</title>
	<atom:link href="http://www.reflections.co.nz/index.php/archives/category/good-books/feed" rel="self" type="application/rss+xml" />
	<link>http://www.reflections.co.nz</link>
	<description>the meanderings of an inquisitive mind ...</description>
	<lastBuildDate>Sun, 04 Apr 2010 19:37:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>TinyP2P &#8211; a Peer-to-Peer Client-Server in 15 lines of Python</title>
		<link>http://www.reflections.co.nz/index.php/archives/68</link>
		<comments>http://www.reflections.co.nz/index.php/archives/68#comments</comments>
		<pubDate>Sun, 02 Mar 2008 13:58:34 +0000</pubDate>
		<dc:creator>Giovanni</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Great Books & Movies]]></category>

		<guid isPermaLink="false">http://www.reflections.co.nz/index.php/archives/68</guid>
		<description><![CDATA[Here&#8217;s a delightfully simple (well concise anyway) peer-to-peer program &#8211; it can run as either a client or a server and if wrapped (as the original was) is only 15 lines of Python. It&#8217;s also a very good example of how concise python can be: Annotated TinyP2P &#8211; Annotated version: &#160;&#160; http://www.exonsoft.com/~kochin/TinyP2P/tinyp2p.html Original Version: # [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a delightfully simple (well concise anyway) peer-to-peer program &#8211; it can run as either a client or a server and if wrapped (as the original was) is only 15 lines of Python.</p>
<p>It&#8217;s also a very good example of how concise python can be:</p>
<p><strong>Annotated TinyP2P &#8211; Annotated version:</strong><br />
&nbsp;&nbsp;<a href="http://www.exonsoft.com/~kochin/TinyP2P/tinyp2p.html"> http://www.exonsoft.com/~kochin/TinyP2P/tinyp2p.html</a></p>
<p><strong>Original Version:</strong></p>
<pre style="font-size:8pt;"># tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html)
import sys, os, SimpleXMLRPCServer, xmlrpclib, re, hmac # (C) 2004, E.W. Felten
ar,pw,res = (sys.argv,lambda u:hmac.new(sys.argv[1],u).hexdigest(),re.search)
pxy,xs = (xmlrpclib.ServerProxy,SimpleXMLRPCServer.SimpleXMLRPCServer)
def ls(p=""):return filter(lambda n:(p=="")or res(p,n),os.listdir(os.getcwd()))
if ar[2]!="client": # license: http://creativecommons.org/licenses/by-nc-sa/2.0
myU,prs,srv = ("http://"+ar[3]+":"+ar[4], ar[5:],lambda x:x.serve_forever())
def pr(x=[]): return ([(y in prs) or prs.append(y) for y in x] or 1) and prs
def c(n): return ((lambda f: (f.read(), f.close()))(file(n)))[0]
f=lambda p,n,a:(p==pw(myU))and(((n==0)and pr(a))or((n==1)and [ls(a)])or c(a))
def aug(u): return ((u==myU) and pr()) or pr(pxy(u).f(pw(u),0,pr([myU])))
pr() and [aug(s) for s in aug(pr()[0])]
(lambda sv:sv.register_function(f,"f") or srv(sv))(xs((ar[3],int(ar[4]))))
for url in pxy(ar[3]).f(pw(ar[3]),0,[]):
for fn in filter(lambda n:not n in ls(), (pxy(url).f(pw(url),1,ar[4]))[0]):
(lambda fi:fi.write(pxy(url).f(pw(url),2,fn)) or fi.close())(file(fn,"wc"))</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.reflections.co.nz/index.php/archives/68/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Waking Life&#8221; &#8211; are you sure you&#8217;re awake?</title>
		<link>http://www.reflections.co.nz/index.php/archives/16</link>
		<comments>http://www.reflections.co.nz/index.php/archives/16#comments</comments>
		<pubDate>Mon, 19 Sep 2005 10:07:04 +0000</pubDate>
		<dc:creator>Giovanni</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Great Books & Movies]]></category>

		<guid isPermaLink="false">http://www.reflections.co.nz/archives/16</guid>
		<description><![CDATA["A Waking Life" is a really neat movie that asks some of the most basic questions in a animated movie - never boring, graphically arresting and very well worth watching.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?t=reflectiontechno&#038;o=1&#038;p=8&#038;l=as1&#038;asins=B00005YU1O&#038;fc1=000000&#038;=1&#038;lc1=0000ff&#038;bc1=000000&#038;lt1=_blank&#038;IS2=1&#038;bg1=ffffff&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" align="right" marginwidth="4" marginheight="0" frameborder="0"></iframe><br />
I&#8217;ve just finished watching this movie, which together with a couple of glasses of a good red wine and a dinner roast vegetables, have managed to both make me forget about my ever present PhD (_sign here for five years of pain and suffering_ :-) ) and slow me down to a pace that both feels more real and much more sane. I even did the dishes by hand rather than use the dishwasher. Sounds silly but sometimes the little things are worth paying attention to!</p>
<p>Anyway, about the movie &#8211; it&#8217;s a series of conversations about the meaning of life, perception, reality (and stuff like that) that normally would sound (and be) terminally boring. It&#8217;s interesting to try and figure out how they&#8217;ve managed to not only make it not boring but quite fascinating.</p>
<p>The presentation is a blend of real actors and animation where the scenes has been filmed and then &#8220;doctored&#8221; leaving a impression that hovers between reality (it&#8217;s based on real people and this shows through)  and something quite surreal &#8211; which suits the material perfectly.</p>
<p>Very well worth watching *****</p>
<p>PS &#8211; I&#8217;ve just had a look at what&#8217;s at the end of the Amazon link and, happily, I&#8217;m not the only one who enjoyed it &#8211; it&#8217;s got four out of five stars. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflections.co.nz/index.php/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Road to Mars &#8211; great book</title>
		<link>http://www.reflections.co.nz/index.php/archives/3</link>
		<comments>http://www.reflections.co.nz/index.php/archives/3#comments</comments>
		<pubDate>Thu, 09 Sep 2004 12:01:35 +0000</pubDate>
		<dc:creator>Giovanni</dc:creator>
				<category><![CDATA[Great Books & Movies]]></category>

		<guid isPermaLink="false">http://www.reflections.co.nz/wordpress/?p=3</guid>
		<description><![CDATA[I&#8217;ve just finished &#8220;The Road to Mars&#8221; by Eric Idle &#8211; it&#8217;s a very funny and quite insightful story about a robot writing a theory of comedy while travelling between planets with two comedians &#8211; highly recommended. The reviews on Amazon are mixed but I really enjoyed it &#8211; it&#8217;s a bit whimsical, a bit [...]]]></description>
			<content:encoded><![CDATA[<p><a title="The Road to Mars" href="http://www.amazon.com/exec/obidos/ASIN/0375703128/reflectiontechno?dev-t=D1GGTRXJXUGJ1V%26camp=2025%26link_code=sp1"><img hspace="5" align="left" alt="The Road to Mars" src="http://images.amazon.com/images/P/0375703128.01.MZZZZZZZ.jpg" /></a> I&#8217;ve just finished &#8220;The Road to Mars&#8221; by Eric Idle &#8211; it&#8217;s a very funny and quite insightful story about a robot writing a theory of comedy while travelling between planets with two comedians &#8211; highly recommended.</p>
<p>The reviews on Amazon are mixed but I really enjoyed it &#8211; it&#8217;s a bit whimsical, a bit insightful and not at all serious &#8211; just what I was in the mood for.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflections.co.nz/index.php/archives/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
