<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ideas</title>
	<atom:link href="http://pystart.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pystart.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 02 Feb 2009 23:39:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pystart.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ideas</title>
		<link>http://pystart.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pystart.wordpress.com/osd.xml" title="Ideas" />
	<atom:link rel='hub' href='http://pystart.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Monkeys and Bananas</title>
		<link>http://pystart.wordpress.com/2009/02/02/monkeys-and-bananas/</link>
		<comments>http://pystart.wordpress.com/2009/02/02/monkeys-and-bananas/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 23:39:40 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[analogy]]></category>
		<category><![CDATA[banana]]></category>
		<category><![CDATA[bananas]]></category>
		<category><![CDATA[big companies]]></category>
		<category><![CDATA[cage]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[companies]]></category>
		<category><![CDATA[hose]]></category>
		<category><![CDATA[monkey]]></category>
		<category><![CDATA[monkeys]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/2009/02/02/monkeys-and-bananas/</guid>
		<description><![CDATA[I recently came across a very interesting post about python 3.0., which was describing how parts of big companies function, with that i think is, a very clever analogy. Here it is: You build a nice big room-sized cage, and in one end of it you put five monkeys. In the other end you put [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=57&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently came across a very interesting post about python 3.0., which was describing how parts of big companies function, with that i think is, a very clever analogy.<br />
Here it is:</p>
<p>You build a nice big room-sized cage, and in one end of it you put five monkeys. In the other end you put the banana. Then you stand by with the fire hose. Sooner or later one of the monkeys is going to go after the banana, and when it does you turn on the fire hose and spray the other monkeys with it. Replace the banana if needed, then repeat the process. Monkeys are pretty smart, so they’ll figure this out pretty quickly: “If anybody goes for the banana, the rest of us get the hose.” Soon they’ll attack any member of their group who tries to go to the banana.</p>
<p>Once this happens, you take one monkey out of the cage and bring in a new one. The new monkey will come in, try to make friends, then probably go for the banana. And the other monkeys, knowing what this means, will attack him to stop you from using the hose on them. Eventually the new monkey will get the message, and will even start joining in on the attack if somebody else goes for the banana. Once this happens, take another of the original monkeys out of the cage and bring in another new monkey.</p>
<p>After repeating this a few times, there will come a moment when none of the monkeys in the cage have ever been sprayed by the fire hose; in fact, they’ll never even have seen the hose. But they’ll attack any monkey who goes to get the banana. If the monkeys could speak English, and if you could ask them why they attack anyone who goes for the banana, their answer would almost certainly be: “Well, I don’t really know, but that’s how we’ve always done things around here.” </p>
<p>Full post:</p>
<p>http://www.b-list.org/weblog/2008/dec/05/python-3000/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=57&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2009/02/02/monkeys-and-bananas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>Flaw of Binary Watches</title>
		<link>http://pystart.wordpress.com/2008/12/24/flaw-of-binary-watches/</link>
		<comments>http://pystart.wordpress.com/2008/12/24/flaw-of-binary-watches/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 01:06:42 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[001]]></category>
		<category><![CDATA[01]]></category>
		<category><![CDATA[01 the time]]></category>
		<category><![CDATA[10101]]></category>
		<category><![CDATA[10110]]></category>
		<category><![CDATA[base 2]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[binary power]]></category>
		<category><![CDATA[binary watch]]></category>
		<category><![CDATA[clocks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[the one]]></category>
		<category><![CDATA[think binary]]></category>
		<category><![CDATA[watch]]></category>
		<category><![CDATA[watches]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/2008/12/24/flaw-of-binary-watches/</guid>
		<description><![CDATA[For the past several days I really wanted to buy myself a binary watch. Im really fascinated by them, and think having one is just plain awesome. I was about to buy a LED zerone, when i found out that to view the time you need to press a button &#8211; and it will light [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=56&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the past several days I really wanted to buy myself a binary watch. Im really fascinated by them, and think having one is just plain awesome. I was about to buy a LED zerone, when i found out that to view the time you need to press a button &#8211; and it will light the bulbs up for 5 seconds. (if you are lost, then read about binary watches or look at a picture of one to understand what i mean).<br />
This is such a major flaw. I expect my watches to be &#8216;always on&#8217; like normal LCD ones. I&#8217;ve searched online for LCD binary watches, but it seems like there really aren&#8217;t any. Having a watch always show you the time is very important; while running, stretching on a subway, or even typing on the keyboard. The excuse for this, is that LED watches consume a lot of battaries and if the watch were to be always on the batteries would die very quickly &#8211; which is probably true. I would really love an LCD binary watch, but it seems that im out of luck.<br />
I think that i&#8217;ll hold off buying a binary watch as it&#8217;s obvious the technology is not advanced enough just yet.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=56&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/12/24/flaw-of-binary-watches/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>Why are all recent movies very bad?</title>
		<link>http://pystart.wordpress.com/2008/12/05/why-are-all-recent-movies-very-bad/</link>
		<comments>http://pystart.wordpress.com/2008/12/05/why-are-all-recent-movies-very-bad/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 19:53:35 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[ideas]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bad]]></category>
		<category><![CDATA[crappy]]></category>
		<category><![CDATA[creators]]></category>
		<category><![CDATA[directors]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[recent movies]]></category>
		<category><![CDATA[rewiews]]></category>
		<category><![CDATA[why are movies so bad]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=51</guid>
		<description><![CDATA[If you ever been to the theater recently, and you&#8217;ve watched a movie you would have probably been surprised by how bad it was. All the recent movies are horrible, for many reasons. Either the action scenes are very fake (a guy running away from many people who shoot at him, but magically does not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=51&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you ever been to the theater recently, and you&#8217;ve watched a movie you would have probably been surprised by how bad it was. All the recent movies are horrible, for many reasons. Either the action scenes are very fake (a guy running away from many people who shoot at him, but magically does not get hit) and replace the plot. Recent movies are based on stupid ideas, and the dialogs are usually retarded. I&#8217;ve always been disappointed after watching movies and thus stopped doing so. This is not to say that there are no good movies out there  &#8211; there might be a couple, i don&#8217;t know, but whats for sure is that most are completely bad. In this post, i would like to share some ideas on why i think this is the case.<br />
At first i used to think movie creators simply don&#8217;t care and make crappy movies. This still seemed unlikely as a lot of effort needs to be put in a movie. An interesting idea ive heard on the topic was this; when a person goes to see a movie he pays the money before seeing the movie. Whether he likes the movie or not is irrelevant, in some sense, because he already payed the money. Thats why many tv series shows are better than movies &#8211; if they are worse than people will simply stop watching them and thus they need to be high quality.<br />
But this would all be giving movie creators very little credit. Maybe that are slightly better than what i used to think of them. Wouldnt it make sense, if before making a movie the creators would look at a lot of statistics, particularly succssesful movies, and not succssesful movies, and etc. I mean, wouldnt it be totally retarded if they did not do so? Therefore a conclusion that i can make is that the movie creators simply come to the conclusion that they should make a &#8216;crappy&#8217; movie. Probably because they see that movies with good plot have failed, and movies with realistic fighting scnese did not do nearly as good as similar movies but with fake fighting scenes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=51&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/12/05/why-are-all-recent-movies-very-bad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>Why is facebook so addicting?</title>
		<link>http://pystart.wordpress.com/2008/12/05/why-is-facebook-so-addicting/</link>
		<comments>http://pystart.wordpress.com/2008/12/05/why-is-facebook-so-addicting/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 00:50:08 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[ideas]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[addicting]]></category>
		<category><![CDATA[addiction]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[burning time]]></category>
		<category><![CDATA[checking email]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[interenet]]></category>
		<category><![CDATA[spending time online]]></category>
		<category><![CDATA[waisting time]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=44</guid>
		<description><![CDATA[Why is facebook so addicting? While we all know this is true, we hardly every stop to ask why. The only thing thats clear is that when you know you should be doing work &#8211; you end up on facebook. (of course, Im reffering to facebook most often for random reasons, you can substitute it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=44&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why is facebook so addicting? While we all know this is true, we hardly every stop to ask why.</p>
<p>The only thing thats clear is that when you know you should be doing work &#8211; you end up on facebook. (of course, Im reffering to facebook most often for random reasons, you can substitute it with checking your email, randomly browsing the Internet, watching youtube clips, visiting social bookmarking sites, and i don&#8217;t have to tell you that the list goes on and on. But facebook is a good example in this case). So why is browsing the Internet so addicting? Why is it that instead of doing work, programming for example; something that&#8217;s lots of fun but hard (usually, or at least at first) to start, we end up going to facebook? An obvious reasoning would be that we are just very curious to see what changed since we last visited (1 min ago) and what your friends posted, updated, and etc, even if you are not very interested. You feel helpless to resist this certain curiosity which forces you to keep checking or else you feel unsatisfied. It becomes a second nature, and you might not even be aware of doing it. The worst part about it is that when you are done somehow so many hours passed, but you didnt even do anything! There must be a reason for this, surly? Maybe understanding this reason would help us think of ways to overcome it?</p>
<p>This does make sense from an evolutionary point of view, however. Imagine that you are a primitive human-being and are in a forest. It is most beneficial for you to know exactly whats going on around you, and keeping track of movements all over the forest will definitely help you survive. This would make sense, all those small updated on the news feed on facebook are like the movement and actions of those around you in a forest. And you feel this great curiosity to keep checking it, which leaves you unsatisfied if you don&#8217;t.</p>
<p>This seems like a reasonable reason. However it&#8217;s not very clear how to solve it, but knowing the reason might make it easier for us to take action. There is a difference between knowing it, and realizing it.</p>
<p>Why exactly is repetitively spending time on the Internet bad? The obvious reason is that it interferes with studies, work, and everything else. But there is more to it than that. Have you ever noticed how when you are browsing the Internet time passes very quickly? And you always feel like you did not do anything at all&#8230;.just checked a few websites&#8230;and many hours seemed to pass by. This is burning time. I mean, what kind of fun is it, when you spend a huge amount of time doing something which doesn&#8217;t give you anything, doesn&#8217;t improve you in anyway, and you have no memory of doing it! It significantly shortens a person life, because time spent online passes very quickly. If you try to stop using your computer at all for even a day, you will suddenly notice that you have a great deal of time, perhaps it will be very surprising, and you will actually be able to think of stuff and enjoy living.</p>
<p>These are the reasons as to why i think that spending time online (doing nothing, basically) is very bad, and above i explained a possible reason as to why it might be so addicting.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=44&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/12/05/why-is-facebook-so-addicting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>Thinking about blogs&#8230;</title>
		<link>http://pystart.wordpress.com/2008/12/03/thinking-about-blogs/</link>
		<comments>http://pystart.wordpress.com/2008/12/03/thinking-about-blogs/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 22:36:24 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[ideas]]></category>
		<category><![CDATA[blog ideas]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[how to make a good blog]]></category>
		<category><![CDATA[interesting]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[super-awesome]]></category>
		<category><![CDATA[what to do]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=42</guid>
		<description><![CDATA[Ive been thinking about how to make a popular blog. It’s not a very easy question, and may require a little bit of luck to get right. I’ve seen some python blogs before, but not many that are simple and aimed at bigginner- middle class programmers. The very first idea that crossed my mind was; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=42&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p>Ive been thinking about how to make a popular blog. It’s not a very easy question, and may require a little bit of luck to get right. I’ve seen some python blogs before, but not many that are simple and aimed at bigginner- middle class programmers. The very first idea that crossed my mind was; a blog about recent events on the internet. Surly people visit the internet alot, and spend alot of time on it. No matter how you look at it, such a blog would have succssess as the internet is rapidly changing and new news, posts, events, updates are constantly happening. The downside to such a blog would be simple, however. There are far too many social sites, or even bloggy-news sites which are quite big, and rapidly add any new information about a certain general topic (IT related things for example). And social bookmarking sites such as digg and reddit also tend to have the same effect, or even, a better approach than a global-internet-blog.</p>
<p>So, what other options are there? How can a good blog be done?</p>
<p>Perhaps it is better to write blog about a very specific topic, one that is not extreamly mainstream, but that will attract the attention of a group of people. Granted, such a blog would never become word famous but it might have great succsses if it’s done good.</p>
<p>What other options are there? Looking at the recent popular and fastest growing wordpress blogs at the moment we’ll see a list that looks something like: LOLcats, fail blog, news blogs, and etc. What does this mean? what do people want to read from blogs?</p>
<p>Blogs are all about getting information out there from a person, which is constantly (maybe even daily) updated. People could read blogs for several reasons such as; the topic is just interesting to them, they want to learn about new things, keep up with a certain product (a companies blog), or read about other people thoughts.</p>
<p>I must admit that i do not have any super-awesome conclusion to make of all this, just some interesting ideas and observations that ive been having.</p></div>
<p class="clear">Tags: <a rel="tag" href="http://wordpress.com/tag/blog-ideas/">blog ideas</a>, <a rel="tag" href="http://wordpress.com/tag/blogging/">blogging</a>, <a rel="tag" href="http://wordpress.com/tag/blogs/">blogs</a>, <a rel="tag" href="http://wordpress.com/tag/how-to-make-a-good-blog/">how to make a good blog</a>, <a rel="tag" href="http://wordpress.com/tag/ideas/">ideas</a>, <a rel="tag" href="http://wordpress.com/tag/interesting/">interesting</a>, <a rel="tag" href="http://wordpress.com/tag/internet/">internet</a>, <a rel="tag" href="http://wordpress.com/tag/python/">python</a>, <a rel="tag" href="http://wordpress.com/tag/super-awesome/">super-awesome</a>, <a rel="tag" href="http://wordpress.com/tag/what-to-do/">what to do</a>, <a rel="tag" href="http://wordpress.com/tag/wordpress/">wordpress</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=42&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/12/03/thinking-about-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>python: pymedia; audio</title>
		<link>http://pystart.wordpress.com/2008/09/29/python-pymedia-audio/</link>
		<comments>http://pystart.wordpress.com/2008/09/29/python-pymedia-audio/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 21:23:47 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[pymedia]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=21</guid>
		<description><![CDATA[Today I am going to tell you about a python video/audio python processing module. It&#8217;s called PyMedia. official url: http://pymedia.org/ After some googling you&#8217;ll be able to install it (it&#8217;s not available for apt-get but it&#8217;s not very hard!) pymedia can be used to parse, demultiplex, multiplex, decode and encode many of it&#8217;s supported formats, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=21&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I am going to tell you about a python video/audio python processing module. It&#8217;s called PyMedia.</p>
<ul>
<li><i> official url:  http://pymedia.org/ </i></li>
</ul>
<p>After some googling you&#8217;ll be able to install it (it&#8217;s not available for apt-get but it&#8217;s not very hard!)<br />
pymedia can be used to parse, demultiplex, multiplex, decode and encode many of it&#8217;s supported formats, such as wav, mp3, ogg&#8230;.etc.</p>
<p>Here&#8217;s some code I edited from the tutorial to show you the main idea for audio:</p>
<p>import pymedia.muxer as muxer, pymedia.audio.sound as sound, \<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pymedia.audio.acodec as acodec</p>
<p>class playsong:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def__init__(self, sName):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.sName = sName<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; splt = str.split(self.sName, &#8216;.&#8217;)[-1].lower()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dm = muxer.Demuxer(splt)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &#8216;format = %s&#8217; % splt<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f = open(self.sName, &#8216;rb&#8217;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s = f.read(8192)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frames = dm.parse(s)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; song_data = dm.getHeaderInfo()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for info_type in song_data:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &#8216;%-10s :%s&#8217; % (info_type, song_data[info_type])<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if frames:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for fr in frames:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dec = acodec.Decoder(dm.streams[fr[0]])<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r = dec.decode(s)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print self.sName, &#8216;playing&#8230;&#8217;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snd = sound.Output(r.sample_rate, r.channels, sound.AFMT_S16_LE)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while len(s):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if r:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snd.play(r.data)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s = f.read(512)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r = dec.decode(s)</p>
<p>if __name__ == &#8220;__main__&#8221;:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p = playsong(&#8220;INSERT FILENAME HERE&#8221;)</p>
<p>This is it! With this you can play your music.<br />
All you need to do is insert a filename instead of the (quite obvious) INSERT FILENAME HERE place. The first part of the code figures out it&#8217;s extension (splt) then it passes it through some parameters and some of the data gets parsed by the decoder. Then, when it finally has enough data a snd parameter gets defined and a final loop is created which reads and plays the whole file.</p>
<p>As you can see, pymedia is capable of all the needed audio processing, and video too (I might put something up about that later)<br />
I will definitely work with it a bit, it would be nice to combine it with a GUI such as pyGTK to form a player of some sorts <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
I&#8217;ll keep you updated on any new/interesting usages of pymedia/interesting topics.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=21&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/09/29/python-pymedia-audio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>python: Recursive Functions</title>
		<link>http://pystart.wordpress.com/2008/09/23/python-recursive-functions/</link>
		<comments>http://pystart.wordpress.com/2008/09/23/python-recursive-functions/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 12:21:04 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[factorial]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[recursive]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=12</guid>
		<description><![CDATA[I find recursive functions very interesting, so I decided to dedicate some time to mention them. What is a recursive function? It is a function that refers to itself in it&#8217;s definition. Seems alittle wierd at first, but it makes sense if you think about it for a minute. A common example is factorial. If [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=12&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I find recursive functions very interesting, so I decided to dedicate some time to mention them. What is a recursive function? It is a function that refers to itself in it&#8217;s definition. Seems alittle wierd at first, but it makes sense if you think about it for a minute.</p>
<p>A common example is factorial.</p>
<p>If we write a function which returns the factorial of an input (n) it will look like this:</p>
<p>def factorial(n):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    if n == 0:<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      return 1<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else:<br />
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   return n * factorial(n-1)</p>
<p>This is a recursive function. First, it checks if the input is equal to 0. If it is, the output will be 1. If however it is not, then the function returns n * factorial(n-1) which is calculated by factorial(n-1). This process keeps on going until what the function needs to calculate is factorial(x) where x = 0. In which case it will return 1.</p>
<p>Try it out youself:</p>
<p>&gt;&gt;&gt;factorial(5)</p>
<p>120</p>
<p>&gt;&gt;&gt;factorial(100)</p>
<p>3628800</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=12&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/09/23/python-recursive-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>python: GUI; graphical user interface</title>
		<link>http://pystart.wordpress.com/2008/09/23/python-gui-graphical-user-interface/</link>
		<comments>http://pystart.wordpress.com/2008/09/23/python-gui-graphical-user-interface/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 00:34:13 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[graphical interface]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[pyGTK]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=7</guid>
		<description><![CDATA[In the past I have used several types of python GUI libraries. I started with Tkinter &#8211; it&#8217;s a good GUI, comes with the windows&#8217; version of python and is not very difficult to learn. Then after surfing online for some codes I was introduced to pyGTK (the python version of GTK+). It&#8217;s scientifically better. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=7&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the past I have used several types of python GUI libraries. I started with Tkinter &#8211; it&#8217;s a good GUI, comes with the windows&#8217; version of python and is not very difficult to learn. Then after surfing online for some codes I was introduced to pyGTK (the python version of GTK+). It&#8217;s scientifically better. In addition to beeing more powerful, more flexible, linux-compatible, it also looks very good. Anytime i&#8217;ll be posting up some code with GUI, it will always be with pyGTK. So if you havent done so already, go learn it!</p>
<p>Some great online (easy to find, with a google search) tutorials are:</p>
<p><em>pyGTK 2.0 Tutorial by John Finlay</em></p>
<ul>
<li>http://www.pygtk.org/pygtk2tutorial/index.html</li>
</ul>
<p><em>And the pyGTK docs (mostly useful for widget references)</em></p>
<ul>
<li>http://www.pygtk.org/pygtk2tutorial/index.html</li>
</ul>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=7&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/09/23/python-gui-graphical-user-interface/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>python: sockets</title>
		<link>http://pystart.wordpress.com/2008/09/23/python-sockets/</link>
		<comments>http://pystart.wordpress.com/2008/09/23/python-sockets/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 00:22:01 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[sockets]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=5</guid>
		<description><![CDATA[I&#8217;ll talk alittle bit about python sockets. I&#8217;ve been doing some coding with them for a while and think they would make for an interesting topic. Socket coding in python isnt very complicated. There are several things to keep in mind. First, we set up a server. A server is accepts connections from clients. A [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=5&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll talk alittle bit about python sockets. I&#8217;ve been doing some coding with them for a while and think they would make for an interesting topic.</p>
<p>Socket coding in python isnt very complicated. There are several things to keep in mind.</p>
<p>First, we set up a server. A server is accepts connections from clients. A client is another file which has similar code, but it is what connects to the server.</p>
<p>Here is how to set up a server (there are two types of sockets, STREAM, and DGRAM. I wont go in detail on their difference but i&#8217;ll be using the STREAM in all my code examples as it&#8217;s the best option for 98% of the time):</p>
<p>from socket import *</p>
<p>s = socket(AF_INET, SOCK_STREAM)</p>
<p>port=  2000</p>
<p>s.bind((&#8216;localhost&#8217;, port))</p>
<p>s.listen(5)</p>
<p>client, ap = s.accept()</p>
<p>So, what happend here? it&#8217;s mostly self explanatory  but i&#8217;ll go  over it. First we import the socket module. Then define s so be the socket, the port to be 2000 (could be any number, as long as it&#8217;s 4 digits, and the same in both server and client codes). After that we bind the server to a host and port. In this example the host is &#8216;localhost&#8217; which is lan network connection (the sockets only send info on your local internet connection, so they are not &#8216;online&#8217;). also empty quotes are the same thing, &#8221;.</p>
<p>with s.listen(5) the server listens for client connections, and with client, ap = s.accept() we define client and ap to be the information on the client which was accepted by the server. (the server pauses and waits for a connection).</p>
<p>&#8212;&#8212;&#8211;client code</p>
<p>The client code is set up like this:</p>
<p>from socket import *</p>
<p>c = socket(AF_INET, SOCK_STREAM)</p>
<p>host = &#8216;localhost&#8217;</p>
<p>port = 2000</p>
<p>c.connect((host, port))</p>
<p>What happend here? again, mostly self-explanatory (and very similar to the server code) but i&#8217;ll go over it.</p>
<p>We import the socket module, then define c to be a socket, again using localhost and the same port as the server (2000). With c.connect((host,port)) the client tries to connect to the server with such info (the host and port).</p>
<p>This is it! pretty simple. Now, once the client has connected to the server you can use some other commands like</p>
<p>client.send(&#8216;..&#8217;) to send something and client.recv(&#8216;&#8230;.&#8217;) to wait until something is received.</p>
<p>Sockets are mostly used in Instant Messengers (Might make a post about those, one day).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=5&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/09/23/python-sockets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
		<item>
		<title>PyStart is born!</title>
		<link>http://pystart.wordpress.com/2008/09/22/pystart-is-born/</link>
		<comments>http://pystart.wordpress.com/2008/09/22/pystart-is-born/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 23:43:03 +0000</pubDate>
		<dc:creator>root4is2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[pystart]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://pystart.wordpress.com/?p=3</guid>
		<description><![CDATA[what is pystart.wordpress.com? It&#8217;s a great place to check for python code/tutorials and other interesting topics, of course! Mostly python-oriented, I hope this blog will be an interesting one to browse for python beginners to more advanced users! and just to check out some interesting topics and ideas. If you ever have any suggestions for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=3&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>what is pystart.wordpress.com?</p>
<p>It&#8217;s a great place to check for python code/tutorials and other interesting topics, of course!</p>
<p>Mostly python-oriented, I hope this blog will be an  interesting one to browse for python beginners to more advanced users! and just to check out some interesting topics and ideas.</p>
<p>If you ever have any suggestions for content, or want to submit some awesome python code,  you can always message me at root4is2@gmail.com and i&#8217;ll gladly put it up.</p>
<p>I hope you&#8217;ll like what you see!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pystart.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pystart.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pystart.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pystart.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pystart.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pystart.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pystart.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pystart.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pystart.wordpress.com&amp;blog=4945647&amp;post=3&amp;subd=pystart&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pystart.wordpress.com/2008/09/22/pystart-is-born/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/870405c567e42206963e69e75a596eb0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">root4is2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
