<?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>Freelancer&#039;s Playground! &#187; snippet</title>
	<atom:link href="http://bayu.freelancer.web.id/category/1-writing/snippet-1-writing/feed/" rel="self" type="application/rss+xml" />
	<link>http://bayu.freelancer.web.id</link>
	<description>Learn Programming, The Freelancer&#039;s Way</description>
	<lastBuildDate>Tue, 20 Jul 2010 10:08:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>HOW TO: Display All Your Monthly Archive In One Page</title>
		<link>http://bayu.freelancer.web.id/2010/03/10/how-to-display-all-your-monthly-archive-in-one-page/</link>
		<comments>http://bayu.freelancer.web.id/2010/03/10/how-to-display-all-your-monthly-archive-in-one-page/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 06:27:15 +0000</pubDate>
		<dc:creator>Arief Bayu Purwanto</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[blogsome]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bayu.freelancer.web.id/?p=722</guid>
		<description><![CDATA[Hi, today I want to talk about archive page. You know, the one that popped when you click on archive link? On normal wordpress themes, archive page will bound to post per page settings you've set on admin. However, what if you want to display it all in one page? Maybe because you just write [...]]]></description>
		<wfw:commentRss>http://bayu.freelancer.web.id/2010/03/10/how-to-display-all-your-monthly-archive-in-one-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get Only n Words From String</title>
		<link>http://bayu.freelancer.web.id/2010/02/03/get-only-n-words-from-string/</link>
		<comments>http://bayu.freelancer.web.id/2010/02/03/get-only-n-words-from-string/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 20:29:23 +0000</pubDate>
		<dc:creator>Arief Bayu Purwanto</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[array_slice]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[trim]]></category>

		<guid isPermaLink="false">http://bayu.freelancer.web.id/?p=703</guid>
		<description><![CDATA[Here's the code: function trim_word( $words, $howmany = 1){ $x = explode(&#34; &#34;, $words); if(count( $x) &#60;=$howmany ){ return $words; } else { return implode(&#34; &#34;, array_slice( $x, 0, $howmany)); } } Here's the output: $words = &#34;this is string that is long enough that I want to trim it.&#34;; echo trim_word($words, 10) . &#34;\n&#34;; [...]]]></description>
		<wfw:commentRss>http://bayu.freelancer.web.id/2010/02/03/get-only-n-words-from-string/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Python File System Operation Snippets Collection</title>
		<link>http://bayu.freelancer.web.id/2009/11/24/python-file-system-operation-snippets-collection/</link>
		<comments>http://bayu.freelancer.web.id/2009/11/24/python-file-system-operation-snippets-collection/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 07:10:53 +0000</pubDate>
		<dc:creator>Arief Bayu Purwanto</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bayu.freelancer.web.id/?p=687</guid>
		<description><![CDATA[In this post, I'll share some simple snippet to do various file system operation. Pretty much as a bookmark for my own usage, in case I needed it someday. How to get current working directory: import os os.getcwd() How to change working directory: import os os.chdir('/tmp/') How to list directory contents: import os os.listdir('/tmp/') How [...]]]></description>
		<wfw:commentRss>http://bayu.freelancer.web.id/2009/11/24/python-file-system-operation-snippets-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automate Facebook Status Update Without Facebook API</title>
		<link>http://bayu.freelancer.web.id/2009/11/20/automate-facebook-status-update-without-facebook-api/</link>
		<comments>http://bayu.freelancer.web.id/2009/11/20/automate-facebook-status-update-without-facebook-api/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 00:45:18 +0000</pubDate>
		<dc:creator>Arief Bayu Purwanto</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[mechanize]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[status update]]></category>

		<guid isPermaLink="false">http://bayu.freelancer.web.id/?p=684</guid>
		<description><![CDATA[Sweet little snippet with only 10 lines of code! Using python mechanize library to update your facebook status. Check out the code: from mechanize import Browser br = Browser() br.open( &#34;http://lite.facebook.com/&#34; ) br.select_form(nr=0) br.form['email'] = 'youremail@example.com' br.form['password'] = 'yourpassword' br.submit() br.select_form(nr=1) br.form['message'] = 'the force is strong with you...' br.submit()]]></description>
		<wfw:commentRss>http://bayu.freelancer.web.id/2009/11/20/automate-facebook-status-update-without-facebook-api/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: bayu.freelancer.web.id @ 2010-07-29 15:56:04 -->