<?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>muhuk.com &#187; share</title>
	<atom:link href="http://www.muhuk.com/tag/share/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.muhuk.com</link>
	<description>know thyself</description>
	<lastBuildDate>Thu, 29 Dec 2011 05:05:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Create A Debian VM With Qemu</title>
		<link>http://www.muhuk.com/2010/07/how-to-create-a-debian-vm-with-qemu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-a-debian-vm-with-qemu</link>
		<comments>http://www.muhuk.com/2010/07/how-to-create-a-debian-vm-with-qemu/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 10:26:39 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vm]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=375</guid>
		<description><![CDATA[I would like to post my notes as a little tutorial here. I am usually using these virtual machines as cheap staging servers. The first part of this tutorial, you hopefully need to do only once: creating a fresh Debian system. In the second part we will build on this image to create many different [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/07/how-to-create-a-debian-vm-with-qemu/' addthis:title='How To Create A Debian VM With Qemu '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>I would like to post my notes as a little tutorial here. I am usually using these virtual machines as cheap staging servers. The first part of this tutorial, you hopefully need to do only once: creating a fresh Debian system. In the second part we will build on this image to create many different servers.</p>

<h2>Creating A Base Debian System</h2>

<p>We will create a Qemu machine and install Debian Lenny on it first:</p>

<pre><code># Download Debian image
wget http://debian.osuosl.org/debian-cdimage/current/i386/iso-cd/debian-504-i386-businesscard.iso

# Create base VM image
qemu-img create -f qcow2 debian.qcow2 2G
</code></pre>

<p>Our disk image will have a 2 Gigabyte size limit. You can pick a different size if you need.</p>

<p>Now we need to power on our VM and install Debian:</p>

<pre><code># Install Debian
qemu -enable-kvm -k tr -cdrom debian-504-i386-businesscard.iso -hda debian.qcow2 -boot d
</code></pre>

<p>You don&#8217;t need to allocate a large swap disk, 128MB should do just fine for a file/web server. Also I wouldn&#8217;t bother creating a seperate partition for <code>/home/</code>.</p>

<p>Next let&#8217;s log in as the user (<code>www</code> here) we have created to make final changes:</p>

<pre><code># logged in as user
dpkg-reconfigure console-data
aptitude install ssh sudo
echo "www ALL=(ALL) ALL" &gt;&gt; /etc/sudoers
</code></pre>

<p>At this point you might want to take a backup of <code>debian.qcow2</code>. (Even though we will open it only read-only from now on)</p>

<h2>Creating The Actual VM</h2>

<p>To save time and space we will use copy-on-write disks and re-use <code>debian.qcow2</code>.</p>

<pre><code># Create the actual VM's disk
qemu-img create -f qcow2 -o backing_file=debian.qcow2 actual.qcow2
</code></pre>

<p>Actually we are done. You can log in to your VM using the following command and start installing/configuring/running:</p>

<pre><code>qemu -enable-kvm -k tr -hda actual.qcow2 -net user -net nic \
                                         -redir tcp:5022::22 \
                                         -redir tcp:9080::80
</code></pre>

<p>A few things to note about the command above:</p>

<ul>
<li><code>-enable-kvm</code> is meaningful only if you have <code>kvm</code> kernel module installed. It improves performance a great deal, so it&#8217;s highly recommended.</li>
<li>You probably need to change <code>-k tr</code> according to your keyboard&#8217;s layout.</li>
<li>We are setting up two TCP redirections. 22 is for SSH and 80 is for HTTP. You can add more ports if you need.</li>
</ul>

<p>Finally, I suggest you to prefer SSHing your VM instead of logging in directly:</p>

<pre><code># SSH into the VM
ssh -p 5022 www@localhost
</code></pre>

<p>I hope some of you find this useful.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/07/how-to-create-a-debian-vm-with-qemu/' addthis:title='How To Create A Debian VM With Qemu '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>No related posts.</p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=375&amp;md5=d713dc941f47b9510d1c7d27eb397b5c" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2010/07/how-to-create-a-debian-vm-with-qemu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=375&amp;md5=d713dc941f47b9510d1c7d27eb397b5c" type="text/html" />
	</item>
		<item>
		<title>Why Not To Localize Community Support</title>
		<link>http://www.muhuk.com/2010/04/why-not-to-localize-community-support/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=why-not-to-localize-community-support</link>
		<comments>http://www.muhuk.com/2010/04/why-not-to-localize-community-support/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:28:51 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[netiquette]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=367</guid>
		<description><![CDATA[If you are reading this, you know English. I would like to pose a question before we go any further; would you prefer community support in your native language over what international community offers?1 By community support, I mean free software support provided by the user community. Every successful project has some form of communication; [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/04/why-not-to-localize-community-support/' addthis:title='Why Not To Localize Community Support '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>If you are reading this, you know <a href="http://www.muhuk.com/2009/04/what-youth-needs-is-vision/">English</a>. I would like to pose a question before we go any further; would you prefer community support in your native language over what international community offers?<sup>1</sup></p>

<p>By <code>community support</code>, I mean <a href="http://www.fsf.org/">free software</a> support provided by the user community. Every successful project has some form of communication; mailing lists, forums, IRC, wikis, etc. And the preferred language is almost always English. Simply because you can reach more people. People who can use your code. Who can test it, file bugs, send patches, etc. It is the <strong>logical</strong> thing to do. But in the spirit of freedom, I think nobody should be forced to use a certain (natural or programming) language for something they have created.</p>

<h3>Real Communities</h3>

<p>I think having local communities is a great idea. I don&#8217;t know, because we don&#8217;t have any in Türkiye<sup>2</sup>. So I am just guessing they should be cultivating and fun at the same time. We do have many local <a href="http://en.wikipedia.org/wiki/Community_building">pseudo-communities</a> though. There is some activity, people come and go, some of them stay much longer than the others. But they never progress towards a community. I think this is because they make the fundamental mistake of localizing community support. They translate documentation intended for highly technical people and create new channels that no advanced user will bother to participate. In short, <strong>they attempt to sidestep the language barrier</strong>.</p>

<p>If want to be a <a href="http://www.catb.org/~esr/faqs/hacker-howto.html#skills4">programmer</a> you need to know English. It is not optional. It is not a requirement of being a good programmer. You are at most an excellent <a href="http://www.urbandictionary.com/define.php?term=script+kiddie">script kiddie</a> without proper English skills. Obviously, knowing perfect English doesn&#8217;t make you a great programmer instantly. It will increase the resources you can access dramatically, though. And most importantly it will give you the chance to <a href="http://jangosteve.com/post/380926251/no-one-knows-what-theyre-doing">know more about what you don&#8217;t know</a>. Stay in your little world to play with your mates <strong>who know just as little as you do</strong> and you will never improve.</p>

<h3>A Foolish Endeavour</h3>

<p>Some people, who spend time with these pseudo-communities, know English well enough. They are probably acting with good intentions when they provide support in their native language. But they are actually wasting their time. Having been solved one specific problem doesn&#8217;t make the other person a better programmer. On the contrary they are giving local users another reason to avoid solving the real issue. The function of a community should be supporting each member&#8217;s continuous improvement. That doesn&#8217;t necessarily mean solving their technical problems for them<sup>3</sup>.</p>

<p>What is wrong with asking questions in a native language if on a local channel or face to face with local people? Nothing. There is absolutely nothing wrong with that. It would be silly to speak another language there. But if you really want to improve, you can tap into a greater source of information. It is your choice. Pseudo-communities will only take you so far. Because <strong>they are only generating more newbies, and not supporting newbies become experienced users</strong>. Do they produce anything but empty talk?</p>

<p>Why should a local community produce anything? What should the product be? I will probably write another post about this soon. But feel free to post your ideas and critics in the comments.</p>

<hr />

<p><strong>1</strong>: Obviously, it only makes sense if your native language is not English.</p>

<p><strong>2</strong>: I would very much like to be proven wrong on this one. If you know any, please write a comment and don&#8217;t forget to include a website and date of the last meeting.</p>

<p><strong>3</strong>: Also note that there is a difference between <em>helping someone solve a problem</em> and <em>solving the problem</em>. Spoonfeeding does more harm than good.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/04/why-not-to-localize-community-support/' addthis:title='Why Not To Localize Community Support '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>No related posts.</p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=367&amp;md5=a1a4d93d0c8174b61683ff77ffff1921" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2010/04/why-not-to-localize-community-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=367&amp;md5=a1a4d93d0c8174b61683ff77ffff1921" type="text/html" />
	</item>
		<item>
		<title>What&#8217;s New in django-formfieldset 1.1</title>
		<link>http://www.muhuk.com/2010/03/whats-new-in-django-formfieldset-1-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=whats-new-in-django-formfieldset-1-1</link>
		<comments>http://www.muhuk.com/2010/03/whats-new-in-django-formfieldset-1-1/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 20:40:04 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[django-formfieldset]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=352</guid>
		<description><![CDATA[I have just released 1.1 version of django-formfieldset. I has been almost a year since version 1.0. Here is a summary of changes for this version: New Example Project There is a new and improved example project. It is designed to be some sort of documentation at the same time. When you run the example [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/03/whats-new-in-django-formfieldset-1-1/' addthis:title='What&#8217;s New in django-formfieldset 1.1 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>I have just released 1.1 version of <a href="http://github.com/muhuk/django-formfieldset/">django-formfieldset</a>. I has been almost a year since <a href="http://www.muhuk.com/2009/05/django-formfieldset/">version 1.0</a>. Here is a summary of changes for this version:</p>

<h3>New Example Project</h3>

<p>There is a new and improved example project. It is designed to be some sort of documentation at the same time. When you run the example project and visit different pages you will see, for each examle, Python code, template code, text of rendered result and finally the result embedded.</p>

<p>If you have <a href="http://pygments.org/">Pygments</a> installed all the code will be nicely highlighted.</p>

<h3>Fieldset &amp; FieldsetMixin Improvements</h3>

<p>Fieldset definitions are validated now. An exception will be raised if all of your fields are not included exactly once.</p>

<p>Template strings that are used by <code>as_table</code>, <code>as_p</code> and <code>as_ul</code> methods are now class attributes. You can simply override them instead of writing your own <code>as_*</code> method.</p>

<p><code>FieldsetMixin</code> provides a <code>fieldset_dict</code> attribute. This dictionary has <strong>slugified</strong> fieldset names as keys and <code>Fieldset</code> instances as values. Your fieldset declarations can still be accessed from <code>fielsets</code> attribute.</p>

<h3>Rendering Improvements</h3>

<p>There are two rendering related improvements: individual fieldset rendering and <code>renderform</code> template filter.</p>

<p><code>Fieldset</code> objects have <code>as_table</code>, <code>as_p</code>, <code>as_ul</code> methods just like forms. Errors from hidden fields are handled correctly, but you still need to call <code>non_field_errors()</code> to get the top level errors. Also it is template author&#8217;s responsibility to make sure all the fieldsets are rendered.</p>

<p>If <code>as_*</code> methods are not enough for you, with <code>renderform</code> filter you can render your forms or <code>Fieldset</code>s through a custom template. It works like this:</p>

<pre><code>{{ form.fieldset_dict.mytitlerenderform:"myapp/mytitle_fieldset.html" }}
</code></pre>

<p>If you call it without an argument <code>formfieldset/form.html</code> template will be used.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/03/whats-new-in-django-formfieldset-1-1/' addthis:title='What&#8217;s New in django-formfieldset 1.1 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-2/' rel='bookmark' title='Working with files in Django &#8211; Part 2'>Working with files in Django &#8211; Part 2</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-3/' rel='bookmark' title='Working with files in Django &#8211; Part 3'>Working with files in Django &#8211; Part 3</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=352&amp;md5=d54ca8e82c4079f5e11ff2997c7e3e44" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2010/03/whats-new-in-django-formfieldset-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=352&amp;md5=d54ca8e82c4079f5e11ff2997c7e3e44" type="text/html" />
	</item>
		<item>
		<title>The Zen of CherryPy</title>
		<link>http://www.muhuk.com/2010/03/the-zen-of-cherrypy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-zen-of-cherrypy</link>
		<comments>http://www.muhuk.com/2010/03/the-zen-of-cherrypy/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 12:25:03 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cherrypy]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[zen]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=349</guid>
		<description><![CDATA[An awesome presentation by Robert Brewer from PyCon 2010. Make sure you watch at a comfortable time. It&#8217;s good to see CherryPy project is pretty much alive. It&#8217;s a web server and a web framework and more. Check it out if you haven&#8217;t! No related posts.<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/03/the-zen-of-cherrypy/' addthis:title='The Zen of CherryPy '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>An awesome presentation by <a href="http://www.aminus.org/blogs/index.php?blog=2">Robert Brewer</a> from PyCon 2010. Make sure you watch at a comfortable time.</p>

<p><embed src="http://blip.tv/play/g4VigczNJAI%2Em4v" type="application/x-shockwave-flash" width="480" height="350" allowscriptaccess="always" allowfullscreen="true"></embed></p>

<p>It&#8217;s good to see <a href="http://www.cherrypy.org/">CherryPy</a> project is pretty much <a href="http://www.cherrypy.org/timeline?from=03%2F14%2F10&amp;daysback=90&amp;changeset=on&amp;update=Update">alive</a>. It&#8217;s a web server and a web framework and more. Check it out if you haven&#8217;t!</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2010/03/the-zen-of-cherrypy/' addthis:title='The Zen of CherryPy '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>No related posts.</p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=349&amp;md5=b031aba153a8b174c30a47f62df72cba" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2010/03/the-zen-of-cherrypy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=349&amp;md5=b031aba153a8b174c30a47f62df72cba" type="text/html" />
	</item>
		<item>
		<title>ProFORMA: Probabilistic Feature-based On-line Rapid Model Acquisition</title>
		<link>http://www.muhuk.com/2009/11/proforma-probabilistic-feature-based-on-line-rapid-model-acquisition/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=proforma-probabilistic-feature-based-on-line-rapid-model-acquisition</link>
		<comments>http://www.muhuk.com/2009/11/proforma-probabilistic-feature-based-on-line-rapid-model-acquisition/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 11:46:43 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[3d reconstruction]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[video tracking]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=310</guid>
		<description><![CDATA[I came across this amazing research project via @dogacan today. The technology described is a combination of video tracking and image-based reconstruction. Watch the video below, it&#8217;s awesome! The final model has some minor artifacts (especially in concave sections) but very nice looking otherwise. I wonder how well it handles complex geometries and deep cavities. [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/11/proforma-probabilistic-feature-based-on-line-rapid-model-acquisition/' addthis:title='ProFORMA: Probabilistic Feature-based On-line Rapid Model Acquisition '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>I came across this <a href="http://mi.eng.cam.ac.uk/~qp202/">amazing research project</a> via <a href="http://twitter.com/dogacan">@dogacan</a> today. The technology described is a combination of <a href="http://en.wikipedia.org/wiki/Video_tracking">video tracking</a> and <a href="http://en.wikipedia.org/wiki/3D_reconstruction">image-based reconstruction</a>. Watch the video below, it&#8217;s awesome!</p>

<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/vEOmzjImsVc&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vEOmzjImsVc&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>

<p>The final model has some minor artifacts (especially in concave sections) but very nice looking otherwise. I wonder how well it handles complex geometries and deep cavities.</p>

<p>They say, in <a href="http://mi.eng.cam.ac.uk/~qp202/">the project page</a>, there will be a Linux-based demo released in a few months. You can leave your e-mail there if you want to get notified.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/11/proforma-probabilistic-feature-based-on-line-rapid-model-acquisition/' addthis:title='ProFORMA: Probabilistic Feature-based On-line Rapid Model Acquisition '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2010/10/morphing-characters-in-real-life-footage/' rel='bookmark' title='Morphing Characters In Real-life Footage'>Morphing Characters In Real-life Footage</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=310&amp;md5=d728ecbcb42d315d65b386d0ea324511" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/11/proforma-probabilistic-feature-based-on-line-rapid-model-acquisition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=310&amp;md5=d728ecbcb42d315d65b386d0ea324511" type="text/html" />
	</item>
		<item>
		<title>Science Fiction: Text-to-Movie</title>
		<link>http://www.muhuk.com/2009/10/science-fiction-text-to-movie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=science-fiction-text-to-movie</link>
		<comments>http://www.muhuk.com/2009/10/science-fiction-text-to-movie/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 15:35:07 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[pixar]]></category>
		<category><![CDATA[rendering]]></category>
		<category><![CDATA[sci-fi]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=299</guid>
		<description><![CDATA[It&#8217;s a really strange feeling, what you read in sci-fi stories coming true. First they made it possible to generate believable images purely out of bits and pixels. And now you can create a complete animation just with a movie script. I have stumbled upon STATE via sjjh today. Check out the demo. I wonder [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/10/science-fiction-text-to-movie/' addthis:title='Science Fiction: Text-to-Movie '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a really strange feeling, what you read in sci-fi stories coming true. First <a href="http://www.pixar.com/companyinfo/about_us/execs.htm">they</a> made it possible to generate <a href="http://www.imdb.com/title/tt0173840/">believable</a> <a href="http://www.imdb.com/title/tt0114709/">images</a> purely out of bits and pixels. And now you can create a complete animation just with a movie script.</p>

<p>I have stumbled upon STATE via <a href="http://unmethodical.posterous.com/response-to-danwtmoon-on-context-vs-content">sjjh</a> today. Check out the <a href="http://www.xtranormal.com/">demo</a>.</p>

<p>I wonder what will be possible next? Hopefully not immortality. There are too many cool things to discover before.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/10/science-fiction-text-to-movie/' addthis:title='Science Fiction: Text-to-Movie '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>No related posts.</p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=299&amp;md5=8fa1e8a25f07e025bcd39a51e07ebf29" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/10/science-fiction-text-to-movie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=299&amp;md5=8fa1e8a25f07e025bcd39a51e07ebf29" type="text/html" />
	</item>
		<item>
		<title>Piracy Tax</title>
		<link>http://www.muhuk.com/2009/09/piracy-tax/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=piracy-tax</link>
		<comments>http://www.muhuk.com/2009/09/piracy-tax/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 12:26:31 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[morality]]></category>
		<category><![CDATA[piracy]]></category>
		<category><![CDATA[pirate party]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[tax]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=282</guid>
		<description><![CDATA[There is a discussion going on about founding The Pirate Party in TürkiyeTurkish. Serdar Kuzuloğlu recently said what if there was a tax on sharing?Turkish. The idea is basically you pay a fixed amount of tax for the content you share, regardless of the amount or if you share at all. This might sound nice [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/09/piracy-tax/' addthis:title='Piracy Tax '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>There is a discussion going on about founding <a href="http://www.piratpartiet.se/international/english">The Pirate Party</a> <a href="http://mserdark.com/genel/turkiye-korsan-partisi-kuruluyor">in Türkiye</a><sup>Turkish</sup>. Serdar Kuzuloğlu recently said <a href="http://mserdark.com/genel/paylasim-vergisi-olur-mu"><code>what if there was a tax on sharing?</code></a><sup>Turkish</sup>. The idea is basically you pay a fixed amount of tax for the content you share, regardless of the amount or if you share at all.</p>

<p>This might sound nice at first. If you are pirating music, movies or whatever, and feel guilty, this way you can say <code>I'm paying my tax, therefore my conscience is clear</code>. Pirating is suddenly legit, content is finally free as in free speech. Moreover there is a good sum of money in the Piracy Tax pool now. Yay! We saved the music industry (or content producers in general)! No, you didn&#8217;t. You just eased your conscience.</p>

<p>Let&#8217;s get real. Suppose you passed the bill of Piracy Tax at the parliament and a good number of people are paying this tax. That&#8217;s just one part of the equation. How will this money be distributed? What will determine the relative share between artists? Do we need distributors anymore? Do we even <strong>need</strong> producers anymore? And most importantly when you cap the total amount of earnings, will this have any negative effects on <em>creativity</em>? And finally <em>which problem exactly is this Piracy Tax solving?</em></p>

<p>In the comments of Serdar Kuzuloğlu&#8217;s post, several people stated that it should be <em>trivial</em> to gather reliable statistics on downloads. This is not true at all. Even if there was a single distributor (I hope we agree this is undesirable) there will be statistical errors. No system is 100% reliable. But HTTP, i.e. web sites are especially not suitable for transactional operations. Aside from this fact, there will likely be a dozen of services. Are you just planning on adding the figures to calculate the final share? How about the differences in these services&#8217; reach? Don&#8217;t you think simply adding the figures makes the system easy to game?</p>

<p>Something everybody seems to forget is <strong>there will be always piracy a.k.a P2P</strong><sup>1</sup>. It would take you to the wrong conclusion to assume everybody is the same. Not everybody is using Windows, not everybody has Flash, there are even people who doesn&#8217;t have a graphical browser. Do you even know what a text browser is?<sup>2</sup> It is not wise to ignore these people because they are the minority. These people are Internet residents, like it or not you are just tourists. They have practically invented the Internet. So please don&#8217;t make the mistake of ignoring the possible effects of technologies like <a href="http://www.torproject.org/">tor</a> and the culture of <a href="http://en.wikipedia.org/wiki/FLOSS">FLOSS</a>.</p>

<p>In any case, statistical errors are unavoidable. I would suggest 3% is an acceptable error margin. Then what happens to the independent artist or the small production company that should have 0.25% and ends up having 0.025% share? Is this fair now? The pirate tax pool would likely benefit the big players and crush the independents. Big players have already been employing <a href="http://en.wikipedia.org/wiki/Portfolio_management">portfolio management</a> strategies, independents just can&#8217;t do that. It is naive to think Piracy Tax could sweep so called <em>low-quality productions</em> away and elevate finer artists. It will be exactly the opposite.</p>

<blockquote>
  <p>Virtue consists, not in abstaining from vice, but in not desiring it. (George Bernard Shaw)</p>
</blockquote>

<p>Piracy Tax will severe the already severed bonds between the artists (the producers of art) and us (the consumers) even more. When we buy a DVD or CD it is not just bread on the tables. It is also sending the message &#8220;I like what you do. Here, I even choose to give my hard earned money willingly to support your art&#8221;. Emphasis on <strong>willingly</strong> and <strong>supporting art</strong>. It&#8217;s not a passive action like listening to the radio. You (consumer) take a conscious step. Your contributions are small materially, but it should mean something to the artist even at the individual level. We need art. It is not just listening to music or whatever. But we <strong>need art to compete in the neverending race of civilization</strong>. No art, no culture. No culture, no civilization. Lack of civilization is inevitable slavery. So, we need to learn to support our artists willingly and directly. Piracy Tax is an obstacle for this social goal.</p>

<p>What about opting-out? If I opted out will I still be able to use legal download services? If I am not allowed to opt out but I continue pirating<sup>3</sup> your download statistics will be further skewed. If this is being done to free the content then why do we have to give up our freedom<sup>4</sup>. If this is being done to increase the profits of content industry&#8230; Well, then it makes sense.</p>

<p>If the free market is a bad idea, why don&#8217;t we shift the whole economy to a controlled market? With pirate tax in effect, content industry&#8217;s income is not only centralized but <strong>falls under government control</strong>. The government controls the art. I don&#8217;t like that idea. Art should be free. In short I don&#8217;t think Piracy Tax is the way to go.</p>

<h3>What Is My Proposal Then?</h3>

<p>I have been thinking hard about Pirate Party and the problem of piracy. The question is not <em>what should we do about piracy</em>? Unless you want to treat the symptoms. The question is <em>how will content industry adapt to the information age</em>? We adapted to information age quite well, didn&#8217;t we? Why can&#8217;t they do the same? I don&#8217;t want to believe they are so stupid that they don&#8217;t really know how. As far as I can understand they don&#8217;t want to change. Because change has a price. And they don&#8217;t want to pay. They want <strong>us</strong> to pay the price for them stagnating like that. Let&#8217;s stop beating around the bush and see it as it is.</p>

<p>Smart artists are already making the move. They let you download their movies and songs for free, and find other channels of monetization. Lots of concerts for example. Not necessarily huge stadium concerts. If you take all those middlemen out of the equation you don&#8217;t have to be all that popular. All in all, it is much better than continuously whine about piracy.</p>

<p>My proposal is not to engage ourselves with Piracy Tax<sup>5</sup>. There has to be a better solution. At least a solution that doesn&#8217;t necessarily make big players more powerful than they are. Let&#8217;s support far-sighted artists who take the steps to adapt new conditions for now. And continue to discuss alternatives.</p>

<hr />

<p><strong>1</strong>: I know piracy doesn&#8217;t equal to P2P. It is possible to <a href="http://torrentfreak.com/elephants-dream/">share content legally</a> via P2P networks. Also P2P is not the only channel you can distribute pirate content. I just think they are interchangeable in the context of this post.</p>

<p><strong>2</strong>: It does matter. Let&#8217;s not go to the extreme. It would be a waste of time and energy for me to even subscribe to a web based service. Torrents are much easier and flexible for me. And I have a graphical browser with Flash capability.</p>

<p><strong>3</strong>: See <strong>2</strong> above.</p>

<p><strong>4</strong>: Money can buy freedom, any objections?</p>

<p><strong>5</strong>: I would like to remind those who would suggest Piracy Tax as a temporary solution; laws might end up being in effect for too long.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/09/piracy-tax/' addthis:title='Piracy Tax '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2011/06/pycon-apac-optimizing-media-performance-with-django_compressor/' rel='bookmark' title='My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor'>My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-2/' rel='bookmark' title='Working with files in Django &#8211; Part 2'>Working with files in Django &#8211; Part 2</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=282&amp;md5=62682e524dd2233392d5ec5d91c537a1" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/09/piracy-tax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=282&amp;md5=62682e524dd2233392d5ec5d91c537a1" type="text/html" />
	</item>
		<item>
		<title>django-renderformplain</title>
		<link>http://www.muhuk.com/2009/07/django-renderformplain/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=django-renderformplain</link>
		<comments>http://www.muhuk.com/2009/07/django-renderformplain/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 18:09:00 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=267</guid>
		<description><![CDATA[django-renderformplain is a Django app that allows you to render forms in plain text. I have found myself implementing quite a bit of styling into my forms and thought why do it once more when I want to render just the data. Renderformplain works both with bound forms (renders bound data) and unbound forms (renders [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/07/django-renderformplain/' addthis:title='django-renderformplain '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/muhuk/django-renderformplain/"><code>django-renderformplain</code></a> is a Django app that allows you to render forms in plain text. I have found myself implementing quite a bit of styling into my forms and thought why do it once more when I want to render just the data. Renderformplain works both with bound forms (renders bound data) and unbound forms (renders initial data). The project is new, so there is no release yet<sup>1</sup>. But I&#8217;d like you to try it out and tell me what you think about it. And maybe find a few bugs.</p>

<h3>An Example</h3>

<p>After you copy <code>renderformplain</code> folder somewhere within your <code>PYTHONPATH</code>, add <code>"renderformplain"</code> to your <code>INSTALLED_APPS</code> setting to be able to run the example.</p>

<p>Let&#8217;s say you have a model <code>File</code>:</p>

<pre><span style="color:#555555">   1 </span><span style="color:#000000; font-weight:bold">class</span> <span style="color:#010181">File</span><span style="color:#000000">(</span>models<span style="color:#000000">.</span>Model<span style="color:#000000">):</span>
<span style="color:#555555">   2 </span>    name <span style="color:#000000">=</span> models<span style="color:#000000">.</span><span style="color:#010181">CharField</span><span style="color:#000000">(</span>max_length<span style="color:#000000">=</span><span style="color:#2928ff">100</span><span style="color:#000000">)</span>
<span style="color:#555555">   3 </span>    path <span style="color:#000000">=</span> models<span style="color:#000000">.</span><span style="color:#010181">CharField</span><span style="color:#000000">(</span>max_length<span style="color:#000000">=</span><span style="color:#2928ff">250</span><span style="color:#000000">)</span>
<span style="color:#555555">   4 </span>    size <span style="color:#000000">=</span> models<span style="color:#000000">.</span><span style="color:#010181">IntegerField</span><span style="color:#000000">()</span>
<span style="color:#555555">   5 </span>    last_modified <span style="color:#000000">=</span> models<span style="color:#000000">.</span><span style="color:#010181">DateTimeField</span><span style="color:#000000">(</span>default<span style="color:#000000">=</span>datetime<span style="color:#000000">.</span>datetime<span style="color:#000000">.</span>now<span style="color:#000000">)</span>
<span style="color:#555555">   6 </span>    created <span style="color:#000000">=</span> models<span style="color:#000000">.</span><span style="color:#010181">DateTimeField</span><span style="color:#000000">(</span>default<span style="color:#000000">=</span>datetime<span style="color:#000000">.</span>datetime<span style="color:#000000">.</span>now<span style="color:#000000">)</span>
<span style="color:#555555">   7 </span>    permissions <span style="color:#000000">=</span> models<span style="color:#000000">.</span><span style="color:#010181">IntegerField</span><span style="color:#000000">()</span></pre>

<p>And a form <code>FileForm</code>:</p>

<pre><span style="color:#555555">   1 </span><span style="color:#000000; font-weight:bold">class</span> <span style="color:#010181">FileForm</span><span style="color:#000000">(</span>forms<span style="color:#000000">.</span>ModelForm<span style="color:#000000">):</span>
<span style="color:#555555">   2 </span>    <span style="color:#000000; font-weight:bold">class</span> Meta<span style="color:#000000">:</span>
<span style="color:#555555">   3 </span>        model <span style="color:#000000">=</span> File</pre>

<p>Now assume you are using <code>django.contrib.formtools.preview.FormPreview</code> to review entered data before saving. In your <code>formtools/preview.html</code> template, instead of rendering the form as an HTML form, you can render it in plain text like this:</p>

<pre><span style="color: #007020">{%</span> <span style="color: #007020; font-weight: bold">load</span> <span style="color: #bb60d5">renderformplain_tags</span> <span style="color: #007020">%}</span>

<span style="color: #007020">{%</span> <span style="color: #007020; font-weight: bold">plainform</span> <span style="color: #bb60d5">form</span> <span style="color: #007020; font-weight: bold">as</span> <span style="color: #bb60d5">plain_form</span> <span style="color: #007020">%}</span>

<span style="color: #062873; font-weight: bold">&lt;h1&gt;</span>Preview your submission<span style="color: #062873; font-weight: bold">&lt;/h1&gt;</span>
<span style="color: #007020">{{</span> <span style="color: #bb60d5">plain_form.as_table</span> <span style="color: #007020">}}</span>

<span style="color: #062873; font-weight: bold">&lt;form</span> <span style="color: #4070a0">action=&quot;&quot;</span> <span style="color: #4070a0">method=&quot;post&quot;</span><span style="color: #062873; font-weight: bold">&gt;</span>
  <span style="color: #007020">{{</span> <span style="color: #bb60d5">form.as_hidden</span> <span style="color: #007020">}}</span>
  <span style="color: #062873; font-weight: bold">&lt;input</span> <span style="color: #4070a0">type=&quot;hidden&quot;</span> <span style="color: #4070a0">name=&quot;</span><span style="color: #007020">{{</span> <span style="color: #bb60d5">stage_field</span> <span style="color: #007020">}}</span><span style="color: #4070a0">&quot;</span> <span style="color: #4070a0">value=&quot;2&quot;</span> <span style="color: #062873; font-weight: bold">/&gt;</span>
  <span style="color: #062873; font-weight: bold">&lt;input</span> <span style="color: #4070a0">type=&quot;hidden&quot;</span> <span style="color: #4070a0">name=&quot;</span><span style="color: #007020">{{</span> <span style="color: #bb60d5">hash_field</span> <span style="color: #007020">}}</span><span style="color: #4070a0">&quot;</span> <span style="color: #4070a0">value=&quot;</span><span style="color: #007020">{{</span> <span style="color: #bb60d5">hash_value</span> <span style="color: #007020">}}</span><span style="color: #4070a0">&quot;</span> <span style="color: #062873; font-weight: bold">/&gt;</span>
  <span style="color: #062873; font-weight: bold">&lt;p&gt;&lt;input</span> <span style="color: #4070a0">type=&quot;submit&quot;</span> <span style="color: #4070a0">value=&quot;Submit&quot;</span> <span style="color: #062873; font-weight: bold">/&gt;&lt;/p&gt;</span>
<span style="color: #062873; font-weight: bold">&lt;/form&gt;</span>
</pre>

<p>This will render the <code>plain_form</code> just like a normal form, except all fields will be replaced with read-only plain text.</p>

<p>Anyway. Try <a href="http://github.com/muhuk/django-renderformplain/">renderformplain</a> and tell me what you think.</p>

<hr />

<p><strong>1</strong>: I will tag releases. Check out <a href="http://github.com/muhuk/django-renderformplain/downloads">the repository</a> for tags.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/07/django-renderformplain/' addthis:title='django-renderformplain '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-2/' rel='bookmark' title='Working with files in Django &#8211; Part 2'>Working with files in Django &#8211; Part 2</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-3/' rel='bookmark' title='Working with files in Django &#8211; Part 3'>Working with files in Django &#8211; Part 3</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=267&amp;md5=be104fa6133a464d5b99bf9fc42169b8" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/07/django-renderformplain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=267&amp;md5=be104fa6133a464d5b99bf9fc42169b8" type="text/html" />
	</item>
		<item>
		<title>Psychic IRC Support In 10 Easy Steps</title>
		<link>http://www.muhuk.com/2009/06/psychic-irc-support-in-10-easy-steps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=psychic-irc-support-in-10-easy-steps</link>
		<comments>http://www.muhuk.com/2009/06/psychic-irc-support-in-10-easy-steps/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 07:53:29 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=253</guid>
		<description><![CDATA[This list is somewhat specific to Django and #django channel on freenode.net. Psychic support is what people are looking for when they expect others to just know their development environment and their code. If one doesn&#8217;t supply enough information on the problem, no matter how good a hacker the person on the other end of [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/06/psychic-irc-support-in-10-easy-steps/' addthis:title='Psychic IRC Support In 10 Easy Steps '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>This list is somewhat specific to <a href="http://www.djangoproject.com/">Django</a> and <code>#django</code> channel on <a href="http://freenode.net/">freenode.net</a>.</p>

<p>Psychic support is what people are looking for when they expect others to <strong>just know</strong> their development environment and their code. If one doesn&#8217;t supply enough information on the problem, no matter how good a hacker the person on the other end of the conversation, it becomes a silly guessing game. So the following list is actually about avoiding psychic support and similar situations.</p>

<h3>What Not To Ask</h3>

<ul>
<li>Don&#8217;t ask to ask! Just ask your question. Don&#8217;t ever say &#8220;<em>I have a question about X, can anybody help me?</em>&#8220;. Even worse is &#8220;<em>Hello! Is anyone there?</em>&#8220;.</li>
<li>Don&#8217;t ask for <code>competency</code>. It&#8217;s unkind to try testing people whether they are worthy of your question or not. This&#8217;ll only decrease your chances to get an answer.</li>
<li>Don&#8217;t ask what&#8217;s already documented. This is the most frequent and the most disturbing problem in IRC support channels. Django is exceptionally well documented. Nobody wants to parrot docs just because you&#8217;re too lazy to read them.</li>
</ul>

<h3>Psychic Support? You&#8217;ll Have To Wait&#8230; Long.</h3>

<ul>
<li>Ideally you should supply related code with your question. But it&#8217;s understandable for beginners to not know what to paste. Even so it becomes annoying when the person asking the question has a <code>you-dont-need-to-know-that</code> attitude. If you know so much, why are you asking here?</li>
<li>Don&#8217;t paste in the channel. It&#8217;s unreadable, I can&#8217;t copy &amp; paste it for testing and worst of all you&#8217;re flooding the channel. If it&#8217;s more than 1 (in writing <code>one</code>) line, use a pasting service.</li>
<li>When pasting tracebacks always use the plaintext version. Don&#8217;t insist it&#8217;s plaintext when you have selected it with mouse from an HTML page and copied. Instead use <em>Switch to copy-and-paste view</em> link right next to <code>Traceback</code> header. Django is civilized.</li>
</ul>

<h3>Hit-N-Run</h3>

<ul>
<li>This is an unsolved mystery. Enter the chat room, send your question, leave as soon as you see it on screen&#8230; If you don&#8217;t get an answer immediately, don&#8217;t get discouraged. If there&#8217;s no activity, your message will be noticed when others check their clients<sup>1</sup>. If there&#8217;s activity and your message gets scrolled, you can repeat your question in reasonable intervals<sup>2</sup>. If you don&#8217;t have time to wait for and work through answers, you should postpone your question. Better not waste somebody else&#8217;s time for nothing.</li>
<li>IRC support is for practical problems. So if you are asking a question; please be kind enough to try out the proposed solutions and tell us about the results. Asking the same question again and again, even tough somebody has suggested a solution, won&#8217;t help you much. Instead try building on the topic, interact with whoever has joined the conversation and give feedback for their answers.</li>
</ul>

<h3>A Winning Effort Begins With Preparation</h3>

<ul>
<li>Django runs on Python. Python is a dynamic language. Just fire up the <em>Django shell</em><sup>3</sup> and try out different possibilities. Make this a habit and you&#8217;ll see it is much more effective to run a couple of commands than asking someone else to guess their result for you.</li>
<li>Again, read the relevant docs <em>before</em> you ask. Don&#8217;t expect the title of a documentation page to be your exact question. Just read whatever you can find on subject. If people see that you&#8217;ve done your homework they will be willing to give you more attention.</li>
<li>Google your question. If your question is generic enough there is probably a blog post about it somewhere. <a href="http://stackoverflow.com/">StackOverflow</a> has quite an impressive repertoire of Django related questions as well. In fact I suggest you to use SO for your non-trivial questions.</li>
</ul>

<hr />

<p><strong>1</strong>: Some of us have work to do you know. <img src='http://www.muhuk.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><strong>2</strong>: Reasonable depends on the number of messages and the number of joins/leaves. In my opinion you should wait 5 minutes at least.</p>

<p><strong>3</strong>: Use <code>manage.py shell</code> command to enter the <a href="http://docs.djangoproject.com/en/dev/ref/django-admin/#shell">Django shell</a>.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/06/psychic-irc-support-in-10-easy-steps/' addthis:title='Psychic IRC Support In 10 Easy Steps '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2011/06/pycon-apac-optimizing-media-performance-with-django_compressor/' rel='bookmark' title='My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor'>My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-2/' rel='bookmark' title='Working with files in Django &#8211; Part 2'>Working with files in Django &#8211; Part 2</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=253&amp;md5=862e683e78dd03f8573763e05391ba05" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/06/psychic-irc-support-in-10-easy-steps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=253&amp;md5=862e683e78dd03f8573763e05391ba05" type="text/html" />
	</item>
		<item>
		<title>django-formfieldset</title>
		<link>http://www.muhuk.com/2009/05/django-formfieldset/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=django-formfieldset</link>
		<comments>http://www.muhuk.com/2009/05/django-formfieldset/#comments</comments>
		<pubDate>Thu, 28 May 2009 07:20:40 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[django-formfieldset]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=234</guid>
		<description><![CDATA[django-formfieldset is a Django application that allows you define and render your forms with fieldsets. Just like in admin. To enable fieldset rendering you need to add FieldsetMixin as a parent class to your form and define a fieldsets attribute: from django import forms from formfieldset.forms import FieldsetMixin class MyForm(forms.Form, FieldsetMixin): # Fields etc... fieldsets [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/05/django-formfieldset/' addthis:title='django-formfieldset '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/muhuk/django-formfieldset/">django-formfieldset</a> is a Django application that allows you define and render your forms with fieldsets. Just like in <code>admin</code>. To enable fieldset rendering you need to add <code>FieldsetMixin</code> as a parent class to your form and define a <code>fieldsets</code> attribute:</p>

<pre><span style="color:#000000; font-weight:bold">from</span> django <span style="color:#000000; font-weight:bold">import</span> forms
<span style="color:#000000; font-weight:bold">from</span> formfieldset<span style="color:#000000">.</span>forms <span style="color:#000000; font-weight:bold">import</span> FieldsetMixin


<span style="color:#000000; font-weight:bold">class</span> <span style="color:#010181">MyForm</span><span style="color:#000000">(</span>forms<span style="color:#000000">.</span>Form<span style="color:#000000">,</span> FieldsetMixin<span style="color:#000000">):</span>
    <span style="color:#838183; font-style:italic"># Fields etc...</span>

    fieldsets <span style="color:#000000">= ((</span>u<span style="color:#ff0000">'Fieldset Title'</span><span style="color:#000000">,</span>
                  <span style="color:#000000">{</span><span style="color:#ff0000">'fields'</span><span style="color:#000000">: (</span><span style="color:#ff0000">'foo'</span><span style="color:#000000">,</span> <span style="color:#ff0000">'bar'</span><span style="color:#000000">,</span> <span style="color:#ff0000">'baz'</span><span style="color:#000000">),</span>
                   <span style="color:#ff0000">'description'</span><span style="color:#000000">:</span> u<span style="color:#ff0000">'This is the description for fieldset.'</span><span style="color:#000000">}),</span>
                 <span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">None</span><span style="color:#000000">,</span>
                  <span style="color:#000000">{</span><span style="color:#ff0000">'fields'</span><span style="color:#000000">: (</span><span style="color:#ff0000">'some_field'</span><span style="color:#000000">,),</span>
                   <span style="color:#ff0000">'description'</span><span style="color:#000000">:</span> u<span style="color:#ff0000">'This fieldset has no title.'</span><span style="color:#000000">}),</span>
                 <span style="color:#000000">(</span>u<span style="color:#ff0000">'Fieldset With No Description'</span><span style="color:#000000">,</span>
                  <span style="color:#000000">{</span><span style="color:#ff0000">'fields'</span><span style="color:#000000">: (</span><span style="color:#ff0000">'some_other_field'</span><span style="color:#000000">,)}))</span></pre>

<p>Then you can render your form with fieldset enabled methods:</p>

<pre><code>&lt;form method="POST" action=""&gt;&lt;table&gt;{{ form.as_fieldset_table }}&lt;/table&gt;&lt;/form&gt;
</code></pre>

<p>It is far from complete<sup>1</sup>, but feel free to <a href="http://github.com/muhuk/django-formfieldset/tree/master">download</a> and play with it.</p>

<hr />

<p><strong>1</strong>: Not released yet.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/05/django-formfieldset/' addthis:title='django-formfieldset '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-2/' rel='bookmark' title='Working with files in Django &#8211; Part 2'>Working with files in Django &#8211; Part 2</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-3/' rel='bookmark' title='Working with files in Django &#8211; Part 3'>Working with files in Django &#8211; Part 3</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=234&amp;md5=8511718843b74b6f195e0eaa723105e6" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/05/django-formfieldset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=234&amp;md5=8511718843b74b6f195e0eaa723105e6" type="text/html" />
	</item>
	</channel>
</rss>

