<?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>Mehmet Ali Ertürk &#187; Python</title>
	<atom:link href="http://mehmetalierturk.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://mehmetalierturk.com</link>
	<description>Innovation is the ability to see change as an opportunity, not a threat</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:28:47 +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>Book Review: Django 1.0 Template Development</title>
		<link>http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=book-review-django-1-0-template-development</link>
		<comments>http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:14:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=857</guid>
		<description><![CDATA[I have finished reading free copy of Django 1.0 Template Development to review which is written by Scott Newman and published by Packt Publishing. I have already posted a blog entry about the free chapter of the book. Django is &#8230; <a href="http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have finished reading free copy of <a href="http://www.packtpub.com/django-1.0-template-design-practical-guide/book">Django 1.0 Template Development</a> to review which is written by Scott Newman and published by <a href="http://www.packtpub.com/">Packt Publishing</a>. I have already posted a <a href="http://www.mehmetalierturk.com/2009/07/30/about-django-template-development/">blog entry</a> about the <a href="http://www.packtpub.com/files/django-1-0-template-development-sample-chapter-6-serving-multiple-templates.pdf">free chapter of the book</a>.</p>
<p>Django is a powerful Python web development framework which has challenging built in features like templating system, admin pages… etc.  I have been developing web based applications for years and worked on variety of languages and platforms however Django’s clean and clear architecture is unique. The book focuses on the template development with Django and the content;</p>
<ul>
<li>Chapter 1: An Introduction to the Django Template System</li>
<li>Chapter 2: Views, URLs, and Generic Views</li>
<li>Chapter 3: Template Context</li>
<li>Chapter 4: Using the Built-In Tags and Filters</li>
<li>Chapter 5: Loading and Inheriting Templates</li>
<li>Chapter 6: Serving Multiple Templates</li>
<li>Chapter 7: Custom Tags and Filters</li>
<li>Chapter 8: Pagination</li>
<li>Chapter 9: Customizing the Admin Look and Feel</li>
<li>Chapter 10: Caching Your Pages</li>
<li>Chapter 11: Internationalization</li>
</ul>
<p>Detailed information about book <a href="http://www.packtpub.com/article/django-1.0-template-design-practical-guide-table-of-contents">content is available</a>.</p>
<p>Django 1.0 Template Development is designed for both beginners and advanced developers and template authors with variety of examples and detailed topics of template development.</p>
<p>The book starts with introduction to template development and an overview of Django template system. Also, following Chapter 4 discusses built-in tags, filters and Chapter 7 focuses on custom tags and filters which are highly used important issues in Django application development.</p>
<p>I would recommend Django 1.0 Template Development for developers who want better understanding and efficient use of template systems in Django.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=a1a28929-332c-44c2-83a5-cfa6f151d3bf"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>About Django Template Development</title>
		<link>http://mehmetalierturk.com/2009/07/30/about-django-template-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=about-django-template-development</link>
		<comments>http://mehmetalierturk.com/2009/07/30/about-django-template-development/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 13:56:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=849</guid>
		<description><![CDATA[As you know I’m a python and django fan. I try to use python and django in every project including academic studies. A few days ago, I had the book &#8220;Django 1.0 Template Development&#8221; and still exploring it. Thanks to &#8230; <a href="http://mehmetalierturk.com/2009/07/30/about-django-template-development/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you know I’m a python and django fan. I try to use python and django in every project including academic studies. A few days ago, I had the book &#8220;<a href="http://www.packtpub.com/django-1.0-template-design-practical-guide/book">Django 1.0 Template Development</a>&#8221; and still exploring it. Thanks to <a href="http://www.packtpub.com">Packt Publishing</a>.</p>
<p>As long as I finalize my current study, I’m going to start writing about django template development and a review about the book. There is a sample chapter &#8220;<a href="http://www.packtpub.com/files/django-1-0-template-development-sample-chapter-6-serving-multiple-templates.pdf">Serving Multiple Templates</a>&#8221; which you can download and read for free.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=8d0e1bfa-8b7a-4814-a4e3-c0ffaefd0cc6"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/07/30/about-django-template-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Python?</title>
		<link>http://mehmetalierturk.com/2009/05/04/why-python/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=why-python</link>
		<comments>http://mehmetalierturk.com/2009/05/04/why-python/#comments</comments>
		<pubDate>Mon, 04 May 2009 17:48:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=799</guid>
		<description><![CDATA[Why Python? I have been thinking and asking myself why I have chosen python while there are so many programming languages. Is it powerful, scientific, elegant, community, different??? You can find all of it in any programming language (or platform) &#8230; <a href="http://mehmetalierturk.com/2009/05/04/why-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Why Python? I have been thinking and asking myself why I have chosen <a href="http://www.mehmetalierturk.com/tag/python/">python</a> while there are so many programming languages. Is it powerful, scientific, elegant, community, different???  You can find all of it in any programming language (or platform) so, what is it? Yesterday, I found something that can help to answer this question. <a href="http://www.paulgraham.com/pypar.html" rel="nofollow">The Python Paradox </a>article written by Paul Graham. He says:</p>
<p>&#8220;… Python programmers are smart. It&#8217;s a lot of work to learn a new programming language. And people don&#8217;t learn Python because it will get them a job; they learn it because they genuinely like to program and aren&#8217;t satisfied with the languages they already know…&#8221;</p>
<p>Neither java nor c# describes me, the closest one is python.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=bd5ec0f8-1b74-4585-a813-ac758a7d1d21"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/05/04/why-python/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Software Development &amp; Deployment with Google App Engine</title>
		<link>http://mehmetalierturk.com/2009/04/27/software-development-deployment-with-google-app-engine/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=software-development-deployment-with-google-app-engine</link>
		<comments>http://mehmetalierturk.com/2009/04/27/software-development-deployment-with-google-app-engine/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:45:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=790</guid>
		<description><![CDATA[I have been developing applications for 5 years and worked on wide range of programming languages and platforms. If we exclude my undergraduate studies (like; tiny applications working on embedded devices or cross platform compiled iphone apps &#8230; etc.) briefly &#8230; <a href="http://mehmetalierturk.com/2009/04/27/software-development-deployment-with-google-app-engine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have been developing applications for 5 years and worked on wide range of programming languages and platforms. If we exclude my undergraduate studies (like; tiny applications working on embedded devices or cross platform compiled iphone apps &#8230; etc.) briefly my experience on software development;</p>
<ul>
<li>php on unix/linux </li>
<li>java/j2ee using hibernate on unix/linux</li>
<li>java/jee using glassfish on unix/linux</li>
<li>asp/asp.net on windows </li>
<li>python using <a href="http://www.mehmetalierturk.com/2009/01/11/django-on-shared-hostings/">django</a> unix/linux</li>
<li>python using django on google app engine</li>
</ul>
<p>So, far I have dealt with many programming languages, platforms and most of them have painful development/deployment processes except one.  Google App Engine is the only platform that I have never had problems with software deployment.  I doesn’t matter which box you have (mac, win, linux ..etc)  for development, deployed application works as it in your local. You don’t have to worry about changes about model, app engine handles it smoothly. It is amazing. I have never seen such a thing before. Even I had problems with php but not with app engine. That’s why Google like companies must exits, they are the real innovators.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=b261fe79-fb57-406a-908b-580e45b01d7e" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/04/27/software-development-deployment-with-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Twisted Weekend</title>
		<link>http://mehmetalierturk.com/2009/03/16/a-twisted-weekend-p2p-semantic/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-twisted-weekend-p2p-semantic</link>
		<comments>http://mehmetalierturk.com/2009/03/16/a-twisted-weekend-p2p-semantic/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 15:00:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Semantic Web]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[NLP]]></category>
		<category><![CDATA[P2P]]></category>
		<category><![CDATA[Peer-to-Peer]]></category>
		<category><![CDATA[South Park]]></category>
		<category><![CDATA[Twisted]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=678</guid>
		<description><![CDATA[I spent my weekend working on my graduate studies and watching South Park. Only a few episodes left to complete all missed episodes. I made my mind with help of my advisers and decided to study on Peer-to-Peer (P2P) Semantic &#8230; <a href="http://mehmetalierturk.com/2009/03/16/a-twisted-weekend-p2p-semantic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spent my weekend working on my graduate studies and watching South Park. Only a few episodes left to complete all missed episodes.</p>
<p>I made my mind with help of my advisers and decided to study on Peer-to-Peer (P2P) Semantic Networks and made a three phase plan. First phase is supposed to finish in three weeks time. That’s why I spent most of my weekend implementing a <a class="zem_slink" href="http://en.wikipedia.org/wiki/Peer-to-peer" title="Peer-to-peer" rel="wikipedia">p2p network</a> using <a href="http://twistedmatrix.com/trac/">twisted</a> networking framework.</p>
<p>It is an implementation of simple client-client p2p network which is designed to work in local networks and doesn’t support file transfer protocol at the moment. So, it is the simplest p2p network that each peer can discover and talk each other for specific tasks. It is planned to accomplish basic p2p operations to test our main semantic application.</p>
<p>Now, next step is to add some semantics to this p2p network, so, I’ll be working on <a href="http://www.nltk.org/">NLTK</a> (NLP, Natural Language Toolkit) for two weeks.</p>
<p>PS: Twisted GUI integration easier then cli (command line interface). Strange, isn&#8217;t it?</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://browsers.suite101.com/article.cfm/how_the_semantic_web_is_changing_search_engines">How the Semantic Web is Changing Search Engines</a> (browsers.suite101.com)</li>
</ul>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif" alt=""><span class="zem-script more-related"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/03/16/a-twisted-weekend-p2p-semantic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tell Me Again, What was The Semantic Web?</title>
		<link>http://mehmetalierturk.com/2009/03/12/tell-me-again-what-was-the-semantic-web/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tell-me-again-what-was-the-semantic-web</link>
		<comments>http://mehmetalierturk.com/2009/03/12/tell-me-again-what-was-the-semantic-web/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 22:28:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Semantic Web]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Kevin Kelly]]></category>
		<category><![CDATA[Linked Data]]></category>
		<category><![CDATA[P2P]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web 3.0]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=667</guid>
		<description><![CDATA[My semantic web interest is almost two years old however, I haven’t focused it enough till this year. It was something like a magazine or a blog that I like to read or follow but never involved. Somehow, my viewpoint &#8230; <a href="http://mehmetalierturk.com/2009/03/12/tell-me-again-what-was-the-semantic-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://www.mehmetalierturk.com/tag/semantic-web/">semantic web</a> interest is almost two years old however, I haven’t focused it enough till this year. It was something like a magazine or a blog that I like to read or follow but never involved. Somehow, my viewpoint on semantic web extremely changed and I’ve started scientific (also business) researches on semantic web.</p>
<p>Today, I felt much better when I saw the following videos. It was a right choice to make investments on semantic web. I hope, it will much better… Thanks <a href="http://castemelijn.tumblr.com/">Cas </a>for sharing these nice videos:</p>
<p><object data="http://vimeo.com/moogaloop.swf?clip_id=3505601&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" width="400" height="281"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=3505601&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1"></object><br />
<a href="http://vimeo.com/3505601">Future Internet Video</a> from <a href="http://vimeo.com/user611476">Castemelijn</a> on <a href="http://vimeo.com">Vimeo</a></p>
<p><object width="446" height="326"><param name="movie" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf"></param><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent"></param><param name="bgColor" value="#ffffff"></param><param name="flashvars" value="vu=http://video.ted.com/talks/embed/KevinKelly_2007P-embed-PARTNER_high.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/KevinKelly-2007P.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=319" /><embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgColor="#ffffff" width="400" height="326" allowFullScreen="true" flashvars="vu=http://video.ted.com/talks/embed/KevinKelly_2007P-embed-PARTNER_high.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/KevinKelly-2007P.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=319"></embed></object></p>
<p>Impressed Kevin Kelly’s presentation and the quote about web:  “Have to get better in believing the impossible”</p>
<p>Tomorrow, I have a meeting with my advisers about Semantic Web for P2P networks and if it goes successfully, I’ll start build my project in the following weeks. First, I want to up and running simplest p2p network in my local machine using twisted on python or jxta on java. Then give this thing a mining: semantic &#8230;</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=9e381e43-7f89-4511-b99c-bfe8ab2a16cf"><span class="zem-script more-related"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/03/12/tell-me-again-what-was-the-semantic-web/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A Real Django Application On A Shared Hosting</title>
		<link>http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-real-django-application-on-shared-hosting</link>
		<comments>http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 20:27:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=596</guid>
		<description><![CDATA[I got working a simple django application on a shared hosting before but never tried a real application till to night. I was developing a project for fun nothing much and it is about to finish and ready for a &#8230; <a href="http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got working a <a href="http://www.mehmetalierturk.com/2009/01/11/django-on-shared-hostings/">simple django application on a shared hosting</a> before but never tried a real application till to night. I was developing a project for fun nothing much and it is about to finish and ready for a real time test. After struggling with .haccess mod_rewrite issues<sup>1</sup> (mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use &#8216;RewriteOptions MaxRedirects&#8217; to increase the limit if neccessary) my application is deployed and first http request is called. No, as you guess it didn&#8217;t work. My hosting provider uses an old version of mysql driver for python which is MySQLdb-1.2.0 but django 1.0 requires  MySQLdb-1.2.1p2 or newer. So, planning to email and ask them if it is possible to upgrade driver if not I&#8217;m going to use my friends home servers to host it.</p>
<p><sup>1</sup> To fix this issue add your domain name to rewrite condition like<br />
<code>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} yoursite.com<br />
RewriteCond %{REQUEST_URI} !yoursite.com<br />
RewriteRule ^(.*)$ cgi/yoursite.cgi/$1 [QSA,L]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Free For a While</title>
		<link>http://mehmetalierturk.com/2009/01/15/im-free-for-a-while/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=im-free-for-a-while</link>
		<comments>http://mehmetalierturk.com/2009/01/15/im-free-for-a-while/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 00:05:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Academic]]></category>
		<category><![CDATA[RA3]]></category>
		<category><![CDATA[Semantic]]></category>
		<category><![CDATA[Semantic Web]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=538</guid>
		<description><![CDATA[I woke up at 4:30 am last night and it is about to 2:00 am. Yes, It makes a lot of time. I was dealing with graduate studies for last two weeks and I&#8217;ve completed most important part this night. &#8230; <a href="http://mehmetalierturk.com/2009/01/15/im-free-for-a-while/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I woke up at 4:30 am last night and it is about to 2:00 am. Yes, It makes a lot of time. I was dealing with graduate studies for last two weeks and I&#8217;ve completed most important part this night. I made a paper submission to local conference in Turkey which will be held at <a href="http://www.harran.edu.tr/">Harran Uni.</a> Only a few final exams left which are not a big issue to handle.So, I&#8217;m free for a while and my plan is to complete the following todo list:</p>
<ul>
<li>specify my theses subject ( probably on semantic web)</li>
<li>focus on some important (and funny) projects.</li>
<li>blog more about python(<a href="http://www.europython.eu/">python euro</a> ) and semantic web</li>
<li>practice some Red Alert 3 against Japanese</li>
<li>add new things to this todo list</li>
</ul>
<p>Trying to figure out Is it possible to say &#8220;free for a while&#8221; while having this list.</p>
<p>Why didn&#8217;t I quit and sleep instead of blogging?</p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/01/15/im-free-for-a-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django on Shared Hostings</title>
		<link>http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=django-on-shared-hostings</link>
		<comments>http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 19:06:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Komodo]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=521</guid>
		<description><![CDATA[I spent last night setting up django a cgi enabled shared hosting. I faced some problems during this process and I decided to write a how to about “django on shared hosting”. First of all, make sure your editor supports &#8230; <a href="http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spent last night setting up django a cgi enabled shared hosting. I faced some problems during this process and I decided to write a how to about “django on shared hosting”.</p>
<p>First of all, make sure your editor supports Unix file format. It took my whole night to determine why I was getting internal server error. I tried some free editor on windows and it seems <a href="http://www.openkomodo.com/" rel="nofollow">Komodo</a> Edit is the best one.</p>
<p>Second, make sure your hosting supports python, to test it you can use this script below. Don’t forget to change file permissions (755 is fine) to run it.<br />
<code>#!/usr/bin/python<br />
print &#34;Content-type: text/html&#34;<br />
print<br />
print &#34;&lt;pre&gt;&#34;<br />
import os, sys<br />
from cgi import escape<br />
print &#34;&lt;strong&gt;Python %s&lt;/strong&gt;&#34; % sys.version<br />
keys = os.environ.keys()<br />
keys.sort()<br />
for k in keys:<br />
    print &#34;%st%s&#34; % (escape(k), escape(os.environ[k]))<br />
print &#34;&lt;/pre&gt;&#34;<br />
</code><br />
Now, prepare two folders to store your python lib and django projects, in your hosting something like /home/username/python and /home/username/projects, then get <a href="http://www.djangoproject.com/" rel="nofollow">django</a> and <a href="http://trac.saddi.com/flup" rel="nofollow">flup</a> unzip and upload these libraries to python folder and upload your site to projects folder. Don’t forget to change permissions of your project to 755.</p>
<p>Almost done, a script is need to handle request;<br />
<code>import sys, os<br />
sys.path += &#91;&#34;/home/username/python&#34;&#93;<br />
sys.path += &#91;&#34;/home/username/projects &#34;&#93;<br />
os.environ&#91;'DJANGO_SETTINGS_MODULE'&#93; = 'mysite.settings'<br />
from django.core.servers.fastcgi import runfastcgi<br />
runfastcgi(method=&#34;threaded&#34;, daemonize=&#34;false&#34;)<br />
</code><br />
You may need to place this script under the cgi-bin(or cgi) director. Some hosting providers don’t support fastcgi to run everywhere.</p>
<p>Now, modify and place following lines to your .htaccess file. mysite.cgi is the script above.<br />
<code>RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^(.*)$ cgi/mysite.cgi/$1 &#91;QSA,L&#93;<br />
</code><br />
Done, call your domain, you will have django welcome message.</p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Building Python Modules on Windows</title>
		<link>http://mehmetalierturk.com/2009/01/10/building-python-modules-on-windows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-python-modules-on-windows</link>
		<comments>http://mehmetalierturk.com/2009/01/10/building-python-modules-on-windows/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 11:09:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[MinGW]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=503</guid>
		<description><![CDATA[Python is a great cross platform application development environment. There is a  wide range of python modules (libraries) available. In most cases, module distributors supply platform specific installers which already built or at least they distribute the source code and &#8230; <a href="http://mehmetalierturk.com/2009/01/10/building-python-modules-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.python.org/">Python</a> is a great cross platform application development environment. There is a  wide range of python modules (libraries) available. In most cases, module distributors supply platform specific installers which already built or at least they distribute the source code and let it to be built and installed by developers.</p>
<p>It is easy to build and install any python module in a Unix system. Because all *nix systems have a built in  development environment to build python modules ( or any language). So, just typing &#8220;python setup.py buil&#8221; and &#8220;python setup.py install&#8221; will be enough to get things done. Hard part is<br />
having a windows. There are some options this issue:</p>
<p>1 -) Using MS Visual Studio ( I hate it)<br />
2 -) Using Cygwin to get gcc for Windows<br />
3 -) Using <a href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.mingw.org%2F&amp;ei=J39oSd7SO5Sg8QTE1LjRBw&amp;usg=AFQjCNEvRga3K2wHNky3Nsi91j4KZaJjEA&amp;sig2=YGAa2UsFb4UbIeeq9n0BPA">MinGW</a> to get gcc for Windows</p>
<p>I choosed the 3rd option, it is the easiest one. What you have to do is get MinGW installer<br />
and install required compilers and set it to your OS path. Mine is &#8220;C:MinGWbin&#8221;. Then, open a command prompt and cd to the source folder of the python module. Run build statement &#8220;python setup.py build -c mingw32&#8243; this will build your module and get it ready to use. The build tool will generate a folder called &#8220;buildlib.win32-*.*&#8221; which contains compiled libraries. Copy those libraries to somewhere in python classpath. Mine is located at &#8220;C:Python25Lib&#8221;. That is it.You are ready to use your module. To test it, you can use <a href="http://www.amk.ca/python/code/crypto">pycrypto</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/01/10/building-python-modules-on-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

