<?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>Hamid Alipour on Web Development &#38; Programming - Coding Recipes &#187; Python</title>
	<atom:link href="http://codingrecipes.com/category/python/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com</link>
	<description></description>
	<lastBuildDate>Thu, 12 Jan 2012 20:08:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Python SQLite3 In Multiple Threads</title>
		<link>http://codingrecipes.com/python-sqlite3-in-multiple-threads</link>
		<comments>http://codingrecipes.com/python-sqlite3-in-multiple-threads#comments</comments>
		<pubDate>Thu, 22 Apr 2010 18:38:59 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://codingrecipes.com/?p=902</guid>
		<description><![CDATA[If you create your database in a thread &#8211; usually the main thread &#8211; and try to use it in another thread your will get: ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id SOME_ID and this is thread id SOME_ID This is [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/python-sqlite3-in-multiple-threads/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Best Python Code Editor: Komodo Edit</title>
		<link>http://codingrecipes.com/the-best-python-code-editor-komodo-edit</link>
		<comments>http://codingrecipes.com/the-best-python-code-editor-komodo-edit#comments</comments>
		<pubDate>Tue, 20 Apr 2010 02:46:59 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Annoying Stuff]]></category>
		<category><![CDATA[IDEs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://codingrecipes.com/?p=894</guid>
		<description><![CDATA[I looked for a Python editor a lot, I found Pydev which is a plugin for Eclipse and since Eclipse sucks, it&#8217;s ugly and the code looks ugly too, it just kills my creativity, it&#8217;s also slow on top of that. Then I found IronPython plugin for Microsoft Visual Studio, this one requires Visual Studio [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/the-best-python-code-editor-komodo-edit/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Check To See If a File Exists</title>
		<link>http://codingrecipes.com/check-to-see-if-a-file-exists-2</link>
		<comments>http://codingrecipes.com/check-to-see-if-a-file-exists-2#comments</comments>
		<pubDate>Fri, 22 May 2009 23:13:36 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://recipes.code-head.com/?p=25</guid>
		<description><![CDATA[import os &#160; if os.path.exists&#40;path_to_file&#41;: # Do stuff]]></description>
		<wfw:commentRss>http://codingrecipes.com/check-to-see-if-a-file-exists-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missing from Python: kill-able threads and popens with timeouts&#8230;</title>
		<link>http://codingrecipes.com/missing-from-python-kill-able-threads-and-popens-with-timeouts</link>
		<comments>http://codingrecipes.com/missing-from-python-kill-able-threads-and-popens-with-timeouts#comments</comments>
		<pubDate>Fri, 15 May 2009 21:15:13 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=647</guid>
		<description><![CDATA[It would be nice to be able to kill threads anytime you wanted, there are solutions to this but are not part of the Python library and I didn&#8217;t yet get a chance to try them&#8230; Actually there is only one promising solution to this. The other thing I would love to have in Python [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/missing-from-python-kill-able-threads-and-popens-with-timeouts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python win32api and pywintypes.error: (5, &#8216;TerminateProcess&#8217;, &#8216;Access is denied.&#8217;)</title>
		<link>http://codingrecipes.com/python-win32api-and-pywintypeserror-5-terminateprocess-access-is-denied</link>
		<comments>http://codingrecipes.com/python-win32api-and-pywintypeserror-5-terminateprocess-access-is-denied#comments</comments>
		<pubDate>Fri, 15 May 2009 21:10:57 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=645</guid>
		<description><![CDATA[I was working on a piece of code that was supposed to close a bunch of processes &#8216;with the same name&#8217; right after each other and was getting this error message: pywintypes.error: (5, &#8216;TerminateProcess&#8217;, &#8216;Access is denied.&#8217;) The problem was that I was doing this in a loop and Windows didn&#8217;t get enough time to [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/python-win32api-and-pywintypeserror-5-terminateprocess-access-is-denied/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ungzip a string in Python &#8211; gzinflate in Python</title>
		<link>http://codingrecipes.com/ungzip-a-string-in-python-gzinflate-in-python</link>
		<comments>http://codingrecipes.com/ungzip-a-string-in-python-gzinflate-in-python#comments</comments>
		<pubDate>Thu, 07 May 2009 02:55:54 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=642</guid>
		<description><![CDATA[I was very surprised that I couldn&#8217;t do this easily in Python, so here is the solution to this: import zlib # ... ungziped_str = zlib.decompressobj&#40;&#41;.decompress&#40;'x\x9c' + gziped_str&#41; Wow, PHP does it like this: $ungziped_str = gzinflate&#40;$gziped_str&#41;;]]></description>
		<wfw:commentRss>http://codingrecipes.com/ungzip-a-string-in-python-gzinflate-in-python/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python &#8220;Unhandled exception in thread started by Error in sys.excepthook:&#8221;</title>
		<link>http://codingrecipes.com/python-unhandled-exception-in-thread-started-by-error-in-sysexcepthook</link>
		<comments>http://codingrecipes.com/python-unhandled-exception-in-thread-started-by-error-in-sysexcepthook#comments</comments>
		<pubDate>Thu, 07 May 2009 02:50:57 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=640</guid>
		<description><![CDATA[I was getting this error message and I was using a Queue object to queue some jobs and block everything until all threads are done with: the_queue.join&#40;&#41; Well, in my particular case, I was getting these error messages the work was not done in worker threads: Unhandled exception in thread started by Error in sys.excepthook: [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/python-unhandled-exception-in-thread-started-by-error-in-sysexcepthook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PML &#8211; A Python template engine</title>
		<link>http://codingrecipes.com/pml-a-python-template-engine</link>
		<comments>http://codingrecipes.com/pml-a-python-template-engine#comments</comments>
		<pubDate>Tue, 31 Mar 2009 17:49:26 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=623</guid>
		<description><![CDATA[I finally decided to release PML as an open source software. I developed this template engine for a project that unfortunately never happened using Python. Here is a sample application using PML and Yahoo! Search API: http://web-search.code-head.com/ You can download it here: https://github.com/Codingrecipes/PML The web search example is also included in the download. PML was [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/pml-a-python-template-engine/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A little Program For Monitoring Your Websites, With Alarm</title>
		<link>http://codingrecipes.com/a-little-program-for-monitoring-your-websites-with-alarm</link>
		<comments>http://codingrecipes.com/a-little-program-for-monitoring-your-websites-with-alarm#comments</comments>
		<pubDate>Fri, 20 Feb 2009 04:08:41 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=578</guid>
		<description><![CDATA[I hope someone will find this useful: ### # Hamid Alipour ### &#160; ### # Config ##################################################### urls = &#91;'http://www.P U T Y O U R U R L S H E R E.com/'&#93; url_timeout = 5 sleep_time = 5 * 60 failed_count_before_alarm = 10 sleep_time_on_failure = 15 ##################################################### &#160; import urllib2 import winsound import [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/a-little-program-for-monitoring-your-websites-with-alarm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web App Security: XSS Attacks</title>
		<link>http://codingrecipes.com/web-app-security-xss-attacks</link>
		<comments>http://codingrecipes.com/web-app-security-xss-attacks#comments</comments>
		<pubDate>Wed, 21 Jan 2009 19:55:54 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=565</guid>
		<description><![CDATA[Today, I saw a funny comment on a website: &#60;script&#62; alert('0wn3d by X - X') &#60;/script&#62; &#160; &#60;meta HTTP-EQUIV=Refresh CONTENT=&#34;0; URL=Some URL&#34;&#62; In case you don&#8217;t know about these types of attacks, an attacker will write this comment on a blog (or any sort of web application) and if the application doesn&#8217;t escape it before [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/web-app-security-xss-attacks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

