<?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>Kushal , kD &#38; FOSS &#187; Python</title>
	<atom:link href="http://kushaldas.in/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://kushaldas.in</link>
	<description>FOSS and life. Kushal Das talks here</description>
	<lastBuildDate>Fri, 18 May 2012 09:02:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Darkserver in production</title>
		<link>http://kushaldas.in/2012/03/23/darkserver-in-production/</link>
		<comments>http://kushaldas.in/2012/03/23/darkserver-in-production/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 06:47:49 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[darkserver]]></category>

		<guid isPermaLink="false">http://kushaldas.in/?p=619</guid>
		<description><![CDATA[In the last few days we managed to get Darkserver live in production. Thanks to Nirik and Dgilmore, without their help it was not possible. This service is providing the API(s) based on which other developers can write tools to query details of build-ids. We Have build-id in every ELF we build from Fedora 8, [...]]]></description>
			<content:encoded><![CDATA[<p>In the last few days we managed to get <a href="https://fedoraproject.org/wiki/Darkserver" target="_blank">Darkserver</a> live in production. Thanks to Nirik and Dgilmore, without their help it was not possible.</p>
<p>This service is providing the API(s) based on which other developers can write tools to query details of build-ids. We Have build-id in every ELF we build from Fedora 8, but there was no good way to query them. More details on why we need the service can be found at the <a href="https://fedoraproject.org/wiki/Darkserver" target="_blank">wiki page</a>.</p>
<p>For now it is handling only primary architecture builds. Within last 4 days we have around 118k build-id(s) in the database.</p>
<p>I am working on a small command line client for the same, called darkclient. Hope to have the first release out in next week.<br />
API details can be found at the <a href="https://darkserver.fedoraproject.org/" target="_blank">home page</a> of the <a href="https://darkserver.fedoraproject.org/" target="_blank">service</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2012/03/23/darkserver-in-production/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Michael Foord&#8217;s python-mock for testing</title>
		<link>http://kushaldas.in/2012/03/22/michael-foords-python-mock-for-testing/</link>
		<comments>http://kushaldas.in/2012/03/22/michael-foords-python-mock-for-testing/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 12:37:57 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://kushaldas.in/?p=615</guid>
		<description><![CDATA[The project page is here. Why you need it ? Say you are writing unittests for your favourite application  and in some function you are using xmlrpclib module to interact with a web-application. Now for testing you can easily mock that interaction out, which will help to run your code in fast and easy way. [...]]]></description>
			<content:encoded><![CDATA[<p>The project page is <a href="http://www.voidspace.org.uk/python/mock/" target="_blank">here</a>.</p>
<p>Why you need it ?<br />
Say you are writing unittests for your favourite application  and in some function you are using xmlrpclib module to interact with a web-application. Now for testing you can easily mock that interaction out, which will help to run your code in fast and easy way. Mocking database calls can be another example.</p>
<p>Example:</p>
<pre>
import unittest
import xmlrpclib
from mock import patch

class TestFoo(unittest.TestCase):
    """
	A simple test
    """
    @patch('xmlrpclib.Server')
    def test_first(self, mock_xmlrpc):
        m = mock_xmlrpc.return_value
        m.multiply.return_value = 6
        server = xmlrpclib.Server("http://kushaldas.in/")
        res = server.multiply(2, 3)
        self.assertEqual(res, 6)

if __name__ == '__main__':
    unittest.main()
</pre>
<p>In Fedora you can just yum install python-mock.</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2012/03/22/michael-foords-python-mock-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mukti 11.2 at NIT Durgapur</title>
		<link>http://kushaldas.in/2011/02/11/mukti-11-2-at-nit-durgapur/</link>
		<comments>http://kushaldas.in/2011/02/11/mukti-11-2-at-nit-durgapur/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 09:55:14 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[mukti]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2011/02/11/mukti-11-2-at-nit-durgapur/</guid>
		<description><![CDATA[We reached Durgapur around 3:30AM on Friday, woke up by 6AM due to the really cold temperature. The inauguration event started few hours late and after that Mether started doing his RPM workshop. My workshop started after 6:30PM , around 60+ students. Started with basics of python as a language. I did this workshop slowly [...]]]></description>
			<content:encoded><![CDATA[<p>We reached Durgapur around 3:30AM on Friday, woke up by 6AM due to the really cold temperature. The inauguration event started few hours late and after that Mether started doing his RPM workshop.
<div></div>
<div>My workshop started after 6:30PM , around 60+ students. Started with basics of python as a language. I did this workshop slowly so that everyone can pick the things we were discussing.&nbsp;</div>
<div></div>
<div> Next day morning my second session started from 10AM and in the afternoon I had my PyGtk workshop in the lab. After finishing talking for more than 6 hours did the final talk for the night with the first year students. Total time I spoke was more than 7 hours , which is a record for me :)</div>
<div></div>
<div> 3rd day again started at 10AM and I was surprised to see more than 30 students in the seminar hall where I was doing the python workshops. We discussed in details various modules in python and also discussed about projects for the students.</div>
<div></div>
<div>Generally I don&#8217;t get many mails from the students after the workshops or even if they do mail , they don&#8217;t continue. But here I found &nbsp;3 students still continuing. I hope at least one of them will be able his/her journey in the path of freedom. &nbsp;</div>
<div></div>
<div>Photos can be found <a href="http://www.facebook.com/album.php?aid=58406&amp;id=100000186712778&amp;l=3e4c598fc2">here</a>. Will update the post with flickr set when I upload there.</div>
<p>UPDATE: flickr set can be found <a href="http://www.flickr.com/photos/kushaldas/sets/72157626024030408/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2011/02/11/mukti-11-2-at-nit-durgapur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Report from PyCon India 2010</title>
		<link>http://kushaldas.in/2010/09/28/report-from-pycon-india-2010/</link>
		<comments>http://kushaldas.in/2010/09/28/report-from-pycon-india-2010/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 04:05:07 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[pycon]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2010/09/28/report-from-pycon-india-2010/</guid>
		<description><![CDATA[So I am back from PyCon India 2010. I missed last year, so was waiting for this year&#8217;s event. Met many faces after very long time and to be in a place with so many other python lovers is always a nice experience. The total attendance was around 700 but the venue was too big [...]]]></description>
			<content:encoded><![CDATA[<p>So I am back from <a href="http://in.pycon.org/2010/">PyCon India 2010</a>. I missed last year, so was waiting for this year&#8217;s event. Met many faces after very long time and to be in a place with so many other python lovers is always a nice experience. The total attendance was around 700 but the venue was too big for that number , so except the lunch time, corridors had lesser number of people discussing. The selection of the talks were also matching the environment as they came from different directions. We saw talks with hardware accessibility to web development to GUI application toolkits, network programming, scientific computing, terminal based works etc.&nbsp;
<div></div>
<div>Day 1 started a bit late, David Goodger gave the keynote, it was fun. Next talk I liked was from Dhananjay Nene on &#8220;<a href="http://in.pycon.org/2010/talks/66">Functional Programming with Python</a>&#8220;, he managed to show many things within the short time.&nbsp;</div>
<div></div>
<div>I stood in the queue for lunch as soon as possible, it was late, too much crowd at the same time, but the taste of the food was delicious. &nbsp;During and after the lunch I was discussing with Jace about <a href="https://wingware.com/">Wing IDE</a>, I had a thought of buying that previously also but the price is high for me. Wait, not anymore, they gave a 90% discount for the PyCon India :) Started using it right away with vi mode and it works like a charm.</div>
<div></div>
<div>After lunch, thought of going in&nbsp;Mahendra M&#8217;s&nbsp;<a href="http://in.pycon.org/2010/talks/48">Twisted programming</a>&nbsp;talk, but the room was full, no place for standing also. So hoped over to the auditorium for&nbsp;Vijay Kumar B.&#8217;s&nbsp;<a href="http://in.pycon.org/2010/talks/52">Device Interfacing with Python and ZIO</a>&nbsp;, it was one of the best talk I ever attended.</div>
<div></div>
<div>Met DP and Jacob after long time :)&nbsp;</div>
<div></div>
<div>This was first time my laptop&#8217;s X crashed while trying to use the projector, so after few tries I started my talk with the black terminal on the big screen :) newt widgets looked great on that screen though :)</div>
<div></div>
<div>Day 2: I came a bit late as I had to meet few seniors from my college in the city (event was in a far corner of the city), I spent the day mostly in the corridors talking with people. I met so many Pune based python lovers there :) Strangely enough few speakers were absconding from the talks, so the organizers had to innovate to fill in. &nbsp;</div>
<div></div>
<div>At the very end we had first AGM of Indian Python Software Society, too much fun in that :p. I applied for membership, I still need two votes. I also resumed my work on <a href="https://fedorahosted.org/pym/">&#8220;Python for you and me&#8221;</a> 2nd edition. You can also read <a href="http://kushal.fedorapeople.org/ml_IN/">ml-IN</a> or <a href="http://kushal.fedorapeople.org/zh-CN/">zh-CN</a> translation of the book.</div>
<div></div>
<div>Any python lover from the country should attend this event, next year it will be in Chennai. Photos will come later this week.</div>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2010/09/28/report-from-pycon-india-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Timelapse using Fedora and D80</title>
		<link>http://kushaldas.in/2010/06/05/timelapse-using-fedora-and-d80/</link>
		<comments>http://kushaldas.in/2010/06/05/timelapse-using-fedora-and-d80/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 18:48:28 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Photo]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[entangle]]></category>
		<category><![CDATA[timelapse]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2010/06/05/timelapse-using-fedora-and-d80/</guid>
		<description><![CDATA[My first timelapse movie: /me trying to clean the kitchen&#160; ogv or in youtube Shot in a Nikon D80 using entangle (#yum install entangle ) and a small python script. Resized using imagemagick and video created using mencoder.&#160; Comments are welcome :)]]></description>
			<content:encoded><![CDATA[<p>My first timelapse movie: /me trying to clean the kitchen&nbsp;
<div><a href="http://kushaldas.in/tmp/timelapse.ogv">ogv</a> or in <a href="http://www.youtube.com/watch?v=eS_ucocsMpQ">youtube</a></div>
<div>Shot in a Nikon D80 using entangle (#yum install entangle ) and a small python script.</div>
<div>Resized using imagemagick and video created using mencoder.&nbsp;</div>
<div>Comments are welcome :)</div>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2010/06/05/timelapse-using-fedora-and-d80/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://kushaldas.in/tmp/timelapse.ogv" length="958974" type="video/ogg" />
		</item>
		<item>
		<title>Trying out the upcoming version of lekhonee-gnome</title>
		<link>http://kushaldas.in/2010/03/13/trying-out-the-upcoming-version-of-lekhonee-gnome/</link>
		<comments>http://kushaldas.in/2010/03/13/trying-out-the-upcoming-version-of-lekhonee-gnome/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 17:51:20 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2010/03/13/trying-out-the-upcoming-version-of-lekhonee-gnome/</guid>
		<description><![CDATA[Testing the upcoming version of lekhonee-gnome frontend. Status: One can write post in the direct view mode Still one can edit the html by clicking the view source button Spell checking is only working while working with raw HTML source Supposed to work properly with any unicode string like কুশল দাস The post is brought [...]]]></description>
			<content:encoded><![CDATA[<p>Testing the upcoming version of lekhonee-gnome frontend.
<div>Status:</div>
<div>
<ul>
<li>One can write post in the direct view mode</li>
<li>Still one can edit the html by clicking the view source button</li>
<li>Spell checking is only working while working with raw HTML source</li>
<li>Supposed to work properly with any unicode string like কুশল দাস</li>
</ul>
</div>
<p> The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.8.1</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2010/03/13/trying-out-the-upcoming-version-of-lekhonee-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNUnify2010 and my python workshop</title>
		<link>http://kushaldas.in/2010/02/26/gnunify2010-and-my-python-workshop/</link>
		<comments>http://kushaldas.in/2010/02/26/gnunify2010-and-my-python-workshop/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 05:53:02 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2010/02/26/gnunify2010-and-my-python-workshop/</guid>
		<description><![CDATA[GNUnify2010 was the first for me. Started a bit early to the venue, Rahul was along with me. His talk was in top of schedule. I slowly moved to the lab where my python workshop was scheduled. The main target of the workshop was to show/teach the basics of the python programming language. I hear [...]]]></description>
			<content:encoded><![CDATA[<p>GNUnify2010 was the first for me. Started a bit early to the venue, Rahul was along with me. His talk was in top of schedule. I slowly moved to the lab where my python workshop was scheduled. </p>
<p>The main target of the workshop was to show/teach the basics of the python programming language. I hear mostly students asking &#8220;How to start working on a project?&#8221; but as the learning curve is not so easy in most of the things, they run away. The only students we have from India who are contributing to any FOSS projects are the people who came in their own interest. I found programming with python can be an easy entry point for the general students and they can become better programmer in life. This is the main reason behind my python workshops in different places.</p>
<p>No need to buy books, great online community, projects working on different dimensions, all of these can generate interest in the students.</p>
<p>Coming back to my workshop, I generally try to follow my own <a href="https://fedorahosted.org/pym">book </a>(which I have to update). Slowly going through simple examples and showing that it is not difficult. I ask the students to solve the lab works they do in any programming lab in python. This will help them to understand the basics of the language. The workshop lab was supposed to have 30 students, but many more came so I had to ask them to seat in groups in the computers (most of them was running Fedora ). The basic feedback I got, states that it was easy, but how the students are going to use this, I have no clue. Btw, most of the students in my workshop were from Pune University Maths department, I told them to attend Ramki&#8217;s workshop in the second half as his workshop was about explaining how to solve mathematical problems. </p>
<p><a href="http://www.flickr.com/photos/kushaldas/4386156995/" title="my python workshop by Kushal Das, on Flickr"><img src="http://farm5.static.flickr.com/4047/4386156995_db562c9fce.jpg" width="500" height="335" alt="my python workshop" /></a></p>
<p>At the end of the workshop I showed few applications written in python and talked about job opportunity in market. 2 students contacted me after the event.</p>
<p>Full set of the event photos can be found <a href="http://www.flickr.com/photos/kushaldas/sets/72157623380817951/">here</a>.</p>
<p>Coming month, I will be in Durgapur, doing another python workshop , I will also conduct a Django workshop.</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.8</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2010/02/26/gnunify2010-and-my-python-workshop/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>sparcy &#8212; command line utility for Spac Systems Limited GPS loggers</title>
		<link>http://kushaldas.in/2009/11/20/sparcy-command-line-utility-for-spac-systems-limited-gps-loggers/</link>
		<comments>http://kushaldas.in/2009/11/20/sparcy-command-line-utility-for-spac-systems-limited-gps-loggers/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 06:14:12 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[OSM]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2009/11/20/sparcy-command-line-utility-for-spac-systems-limited-gps-loggers/</guid>
		<description><![CDATA[Few days back I bought a new GPS data logger from Sparc Systems Limited , GDL 3204. It comes with a nice 3 page manual. The last page explains the data format of the logs. The device works in a very nice and easy way, it is having 32 channels. We already had a nice [...]]]></description>
			<content:encoded><![CDATA[<p>Few days back I bought a new <a href="http://www.flickr.com/photos/runa-sankarshan/4039585218/in/set-611848/">GPS data logger</a> from <a href="http://sparcsys.com/profile.htm">Sparc Systems Limited</a> , GDL 3204. It comes with a nice 3 page manual. The last page explains the data format of the logs.<br />
The device works in a very nice and easy way, it is having 32 channels.</p>
<p>We already had a nice <a href="http://bitbucket.org/lawgon/osmindia/">python script</a> to parse the log and create gpx files. But for me , every time &#8220;cat&#8221;ing the device and then convert the log is a difficult task. </p>
<p><a href="https://fedorahosted.org/releases/s/p/sparcy/sparcy-0.1.tar.gz">Sparcy</a> , which can get the data from the device and convert them into gpxfor you. If you already have the raw data, you can convert them to gpx too. People from #osm helped me a lot to understand how latitude and longitude calculations are done.<br />
RPMs are available <a href="http://kushal.fedorapeople.org/repo">here</a>.</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.8</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2009/11/20/sparcy-command-line-utility-for-spac-systems-limited-gps-loggers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dependency chart for kde-settings</title>
		<link>http://kushaldas.in/2009/11/05/dependency-chart-for-kde-settings/</link>
		<comments>http://kushaldas.in/2009/11/05/dependency-chart-for-kde-settings/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 09:59:22 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2009/11/05/dependency-chart-for-kde-settings/</guid>
		<description><![CDATA[Download from here. Warning 18MB , may crash your browser and system, download and view with a desktop image viewer. The post is brought to you by lekhonee v0.8]]></description>
			<content:encoded><![CDATA[<p><img src="http://kushaldas.in/tmp/kde-settings2-small.png" title="" alt="" align="middle" /></p>
<p>Download from <a href="http://kushaldas.in/tmp/kde-settings2.png">here</a>.<br />
Warning 18MB , may crash your browser and system, download and view with a desktop image viewer.</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.8</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2009/11/05/dependency-chart-for-kde-settings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>packages dependent on wireless-tools</title>
		<link>http://kushaldas.in/2009/11/03/packages-dependent-on-wireless-tools/</link>
		<comments>http://kushaldas.in/2009/11/03/packages-dependent-on-wireless-tools/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:47:27 +0000</pubDate>
		<dc:creator>kd</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://kushaldas.in/2009/11/03/packages-dependent-on-wireless-tools/</guid>
		<description><![CDATA[The post is brought to you by lekhonee v0.8]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/kushaldas/4072595746/" title="wireless-tools dependencies by Kushal Das, on Flickr"><img src="http://farm3.static.flickr.com/2796/4072595746_a2be92e56f.jpg" width="500" height="286" alt="wireless-tools dependencies" /></a></p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.8</p>
]]></content:encoded>
			<wfw:commentRss>http://kushaldas.in/2009/11/03/packages-dependent-on-wireless-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

