<?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>EvereQ &#187; Python</title>
	<atom:link href="http://blog.evereq.com/blog/index.php/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.evereq.com/blog</link>
	<description>Everything reQuired</description>
	<lastBuildDate>Sun, 11 Jul 2010 08:35:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tips and Tricks in Django on Windows 7</title>
		<link>http://blog.evereq.com/blog/index.php/2009/12/tips-and-tricks-in-django-on-windows-7/</link>
		<comments>http://blog.evereq.com/blog/index.php/2009/12/tips-and-tricks-in-django-on-windows-7/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 20:59:09 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Slow]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[very]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=631</guid>
		<description><![CDATA[Some Tips and Tricks how to use Django on Windows 7 

Question (Q): Why Django build-in Web Server (development server) works VERY SLOWLY on Windows 7 ? And how to fix this?
 Answer (A): seems it&#8217;s all about DNS&#8230; To fix this just open C:\Windows\system32\drivers\etc\hosts file (in notepad for example) and uncomment (i.e. remove &#8220;#&#8221;) [...]]]></description>
			<content:encoded><![CDATA[<div><strong>Some Tips and Tricks how to use Django on Windows 7 </strong></div>
<ul>
<li><strong>Question </strong><strong>(Q):</strong> Why Django build-in Web Server (development server) works VERY SLOWLY on Windows 7 ? And how to fix this?<br />
<strong> Answer (A):</strong> seems it&#8217;s all about DNS&#8230; To fix this just open C:\Windows\system32\drivers\etc\hosts file (in notepad for example) and uncomment (i.e. remove &#8220;#&#8221;) in the following line: <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">127.0.0.1 localhost</span></li>
</ul>
<ul>
<li>to be continue&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2009/12/tips-and-tricks-in-django-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Django Links</title>
		<link>http://blog.evereq.com/blog/index.php/2009/11/some-django-links/</link>
		<comments>http://blog.evereq.com/blog/index.php/2009/11/some-django-links/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 11:01:39 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[djangoproject]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=565</guid>
		<description><![CDATA[Some interesting Django related links:





- Django Project Home




http://www.djangosites.org &#8211; list of Django sites
http://pinaxproject.com &#8211; a platform for rapidly developing websites
http://cloud27.com &#8211; site that was build using Pinax
http://www.django-cms.org/ &#8211; Django CMS
http://code.google.com/p/django-tagging/ &#8211; A generic tagging application for Django projects, which allows association of a number of tags with anyModel instance and makes retrieval of tags simple.
http://djangopluggables.com/ [...]]]></description>
			<content:encoded><![CDATA[<p>Some interesting Django related links:<br />
<a href="http://www.djangoproject.com/"></a></p>
<table border="0">
<tbody>
<tr>
<td><img title="A Django project." src="http://media.djangoproject.com/img/badges/djangoproject120x25.gif" border="0" alt="A Django project." /></td>
<td>- Django Project Home</td>
</tr>
</tbody>
</table>
<ul>
<li><a href="http://www.djangosites.org" target="_blank">http://www.djangosites.org</a> &#8211; list of Django sites</li>
<li><a href="http://pinaxproject.com" target="_blank">http://pinaxproject.com</a> &#8211; a platform for rapidly developing websites</li>
<li><a href="http://cloud27.com/">http://cloud27.com</a> &#8211; site that was build using Pinax</li>
<li><a href="http://www.django-cms.org/">http://www.django-cms.org/</a> &#8211; Django CMS</li>
<li><a href="http://code.google.com/p/django-tagging/">http://code.google.com/p/django-tagging/</a> &#8211; A generic tagging application for Django projects, which allows association of a number of tags with any<tt>Model</tt> instance and makes retrieval of tags simple.</li>
<li><a href="http://djangopluggables.com/">http://djangopluggables.com/</a> &#8211; 3-rd party Django applications</li>
<li><a href="http://www.djangosnippets.org/">http://www.djangosnippets.org/</a> &#8211; useful &#8220;snippets&#8221; of reusable Django code</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2009/11/some-django-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips and Tricks in Installation of PIL on Windows 7 / 2008 64bit</title>
		<link>http://blog.evereq.com/blog/index.php/2009/11/tips-and-tricks-in-installation-of-pil-on-windows-7-2008-64bit/</link>
		<comments>http://blog.evereq.com/blog/index.php/2009/11/tips-and-tricks-in-installation-of-pil-on-windows-7-2008-64bit/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 18:14:11 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[PIL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=505</guid>
		<description><![CDATA[

1) libtiff


download sources (zip) from http://gnuwin32.sourceforge.net/packages/tiff.htm
2) zlib
download sources (zip) from http://gnuwin32.sourceforge.net/packages/zlib.htm
3) libjpg
download sources (zip) from http://gnuwin32.sourceforge.net/packages/jpeg.htm
http://www.wiredfool.com/2005/10/29/how-to-build-the-python-imaging-library-for-windows/
http://boodebr.org/main/python/build-windows-extensions
Installation of Python Image Library (PIL)
It will be a problems with PIL installation on  Windows 7 64 bit, so you will need to install library from source code:

Download PIL library source code from http://www.pythonware.com/products/pil/
Unpack it to any  folder, for example [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">
<ol>
<li>1) libtiff</li>
</ol>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">download sources (zip) from http://gnuwin32.sourceforge.net/packages/tiff.htm</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">2) zlib</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">download sources (zip) from http://gnuwin32.sourceforge.net/packages/zlib.htm</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">3) libjpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">download sources (zip) from http://gnuwin32.sourceforge.net/packages/jpeg.htm</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http://www.wiredfool.com/2005/10/29/how-to-build-the-python-imaging-library-for-windows/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http://boodebr.org/main/python/build-windows-extensions</div>
<p>Installation of Python Image Library (PIL)</p>
<p>It will be a problems with PIL installation on  Windows 7 64 bit, so you will need to install library from source code:</p>
<ol>
<li>Download PIL library source code from http://www.pythonware.com/products/pil/</li>
<li>Unpack it to any  folder, for example C:\PIL</li>
<li>Run in command prompt (cmd):

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">cd</span> c:\PIL
python setup.py install</pre></div></div>

<p>This will install library, but without support for TKINTER, JPEG, ZLIB (PNG/ZIP) and FREETYPE2 (i.e. actually without anything <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</li>
</ol>
<p>So let&#8217;s add support for at least JPEG and PNG. To do this, you will need to download following libraries:</p>
<ol>
<li>libtiff &#8211; download sources (zip) from http://gnuwin32.sourceforge.net/packages/tiff.htm</li>
<li>zlib &#8211; download sources (zip) from http://gnuwin32.sourceforge.net/packages/zlib.htm</li>
<li>libjpg &#8211; download sources (zip) from http://gnuwin32.sourceforge.net/packages/jpeg.htm</li>
</ol>
<p>Following blog posts will help you to continue with installation:</p>
<ul>
<li><a href="http://www.wiredfool.com/2005/10/29/how-to-build-the-python-imaging-library-for-windows" target="_blank">http://www.wiredfool.com/2005/10/29/how-to-build-the-python-imaging-library-for-windows</a> (in case if you want to use Visual Studio to build libraries)</li>
<li><a href="http://boodebr.org/main/python/build-windows-extensions" target="_blank">http://boodebr.org/main/python/build-windows-extensions</a> (in case if you going to use open source software like <a href="http://www.mingw.org/" target="_blank">MinGW</a> or <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> to build libraries)</li>
</ul>
<p><strong>Notes:</strong></p>
<ol>
<li>Possible that you will need to remove

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"> include <span style="color: #339933;">&lt;</span>unistd.<span style="color: #202020;">h</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p>from some *.h source files as this needed to be included only on Unix (ok, at least not on Windows)<br />
For example you will need to delete such line from zconf.h in zlib sources before try to run nmake for zlib.</li>
<li> Don&#8217;t forget to set PIL library pointers (in setup.py of PIL) to point to the locations where you put zlib, libjpg and libtiff. If you forget to setup  - PIL will not found them and you will get what I describe in the beging of post &#8211; I.e. nothing <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .<br />
This is for example what you need to set for zlib in setup.py of PIL in case if you copy zlib sources to c:\PIL\zlib folder (I assume that you unzip PIL into c:\PIL here):</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">ZLIB_ROOT = <span style="color: #483d8b;">'./zlib'</span></pre></div></div>

</li>
<li>
 You also can found yourself with finding all the 32-bit times &#8220;__time32_t&#8221; and changing it to &#8220;time_t&#8221; for 64-bit conversion <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2009/11/tips-and-tricks-in-installation-of-pil-on-windows-7-2008-64bit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
