<?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>PHP Architect blog &#187; Python</title>
	<atom:link href="http://www.php-architect.com/blog/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>me, myself, and my code</description>
	<lastBuildDate>Wed, 14 Sep 2011 12:50:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Where I am ?</title>
		<link>http://www.php-architect.com/blog/2010/10/19/where-i-am/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=where-i-am</link>
		<comments>http://www.php-architect.com/blog/2010/10/19/where-i-am/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 01:31:57 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[lamptag]]></category>
		<category><![CDATA[status]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=7059</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/19/where-i-am/" title="Where I am ?"></a>Looks like i have stopped blogging for a while. except from some trips and tricks I am keeping for my reference and public users. well that&#8217;s not the case but since the team I am working with grew to around &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2010/10/19/where-i-am/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2010/10/19/where-i-am/" title="Where I am ?"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2010/10/19/where-i-am/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Looks like i have stopped blogging for a while. except from some trips and tricks I am keeping for my reference and public users.</p>
<p>well that&#8217;s not the case but since the team I am working with grew to around 22 developer, which i believe considered the biggest php team in one company in Egypt, things were going so crazy, lots of projects going, lots of new approaches, new integrations, and i have to be on top of it all the time.</p>
<p>meanwhile i am driven by four ideas for projects that i believe is gonna make a little difference in their business areas, I am prototyping each one of them, jumping from one to other, I launched one of them already which is <a title="Lamp Tag" href="http://www.lamptag.com" target="_blank">www.lamptag.com</a>, which is simply a crawler for LAMP resources and related technologies, after less than a month from launching he prototype, the feedback is good, the twitter page reached 100 follower. and the number of clicks on the links is good too.</p>
<p>Soon i will blog about the recent challenged i have encountered in the field, weather they are technically or management related.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2010/10/19/where-i-am/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manage your notes / Code snippets with Snippely</title>
		<link>http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=manage-your-notes-code-snippets-with-snippely</link>
		<comments>http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 17:27:35 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Favorites]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[Snippely]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=351</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/" title="Manage your notes / Code snippets with Snippely"></a>It has been a challenge for me to keep tracking code snippets I want to remember, I have always used text files, or sending my self email with the snippet that I feel I am gonna need to look at &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/" title="Manage your notes / Code snippets with Snippely"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p style="text-align: left;">It has been a challenge for me to keep tracking code snippets I want to remember, I have always used text files, or sending my self email with the snippet that I feel I am gonna need to look at again in the future, same for notes also.</p>
<p style="text-align: left;">Today I have found this nice Air App called Snippely, it allow you to manage your notes / code snippets, It is enough for me and better than text files and emails, I believe I am gonna stick to it for now.</p>
<p style="text-align: center;">
<a href="http://code.google.com/p/snippely/"><img title="Snippely" src="http://mootools.net/snippely.png" alt="Snippely" width="256" height="256" /></a>
<p style="text-align: left;">Only Two options I wish to see in the coming version, to backup / restore the data &amp; to sync the data across many machines, but like I said, I am happy with what I have now.</p>
<p style="text-align: left;">You can get Snippely from their Google Code page : <a href="http://code.google.com/p/snippely/" target="_blank">http://code.google.com/p/snippely/</a></p>
<p style="text-align: left;">I hope you will find it as much useful as I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/11/14/manage-your-notes-code-snippets-with-snippely/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add &amp; Subtract time code in Python</title>
		<link>http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-add-subtract-time-code-in-python</link>
		<comments>http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:58:20 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[edl]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[timecode]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=167</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/" title="How to Add &amp; Subtract time code in Python"></a>I have been developing some tools for the media production lately, i found a neat way to add or subtract certain amount of seconds to a given time code. for example i have a video that starts from 12:45:05 and &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/" title="How to Add &amp; Subtract time code in Python"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>I have been developing some tools for the media production lately, i found a neat way to add or subtract certain amount of seconds to a given time code.</p>
<p>for example i have a video that starts from 12:45:05 and i want to add 59 seconds to it and use the new time.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">from datetime import datetime
from datetime import timedelta
&nbsp;
<span style="color: #000000; font-weight: bold;">time</span> = datetime<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2009</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">45</span>, 05, <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">diff</span> = timedelta<span style="color: #7a0874; font-weight: bold;">&#40;</span>seconds = <span style="color: #000000;">59</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
final_time = <span style="color: #000000; font-weight: bold;">time</span> + <span style="color: #c20cb9; font-weight: bold;">diff</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/08/08/how-to-add-subtract-time-code-in-python/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Python &amp; PyGTK on Mac OsX</title>
		<link>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-python-pygtk-on-mac-osx</link>
		<comments>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:16:23 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[glade]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[pygtk]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=157</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/" title="Installing Python &amp; PyGTK on Mac OsX"></a>Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it. The &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/" title="Installing Python &amp; PyGTK on Mac OsX"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it.</p>
<p>The application worked fine on my Ubuntu, but when i moved it to Mac OSx (Leopard), i had a problem importing the PyGTK module and the program GUI didn&#8217;t run. so i tried to install PyGTK from sources with all its dependencies, but after spending a day doing so i ended up with many errors in compiling the dependencies and finding them.</p>
<p>after some search i found out that i can do this using MacPorts.</p>
<p>so here is the steps i followed :</p>
<p>- Install X11 <a title="Installing X11 on Mac OSx Leopard" href="http://guide.macports.org/#installing.x11" target="_blank">http://guide.macports.org/#installing.x11</a></p>
<p>- Install Xcode tools <a title="Installing XCode tools on Mac OSx Leopard" href="http://guide.macports.org/#installing.xcode" target="_blank">http://guide.macports.org/#installing.xcode</a></p>
<p>- Install MacPorts <a title="Installing MacPorts on Mac OSx Leopard" href="http://guide.macports.org/#installing.macports" target="_blank">http://guide.macports.org/#installing.macports</a></p>
<p>- Make sure the paths are configured in your shell profile <a title="Installing MacPorts on Mac OSx Leopard" href="http://guide.macports.org/#installing.shell" target="_blank">http://guide.macports.org/#installing.shell</a></p>
<p>- Restart your shell, and follow the next commands :</p>
<p>1- Install Python</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python25</pre></div></div>
<p>2- Install Python select</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python_select</pre></div></div>
<p>3- Activate our installed python version</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python25</pre></div></div>
<p>4- Install pygtk</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> py25-gtk</pre></div></div>
<p>5- Install some gnome themes and engines</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gnome-themes
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-nodoka-engine
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-smooth-engine
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-aurora
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-clearlooks
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-extra
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-industrial
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-murrine</pre></div></div>
<p>6- Install theme switch</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-theme-switch</pre></div></div>
<p>7- Select which theme to be used by your applications by running the theme switch</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">switch2</pre></div></div>
<p>Now you can have the applications you develop using python and pygtk running smoothly on mac os leopard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Appcelerator :: Building RIA Apps and Use Cases with ease</title>
		<link>http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=appcelerator-building-ria-applications-and-use-cases-with-ease</link>
		<comments>http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 21:35:17 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Favorites]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[SOUI]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[use cases]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[zf]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=125</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/" title="Appcelerator :: Building RIA Apps and Use Cases with ease"></a>Yesterday i was browsing Zend Framework Webinars, and i stopped by the title : Get &#8220;Rich&#8221; Quick : Building Ajax-based RIAs with the Zend Framework and Appcelerator i didn&#8217;t hear about the Appcelerator thing before, but the title was really &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/" title="Appcelerator :: Building RIA Apps and Use Cases with ease"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Yesterday i was browsing Zend Framework <a href="http://www.zend.com/resources/webinars/framework" target="_blank">Webinars</a>, and i stopped by the title :</p>
<h4><a href="http://www.zend.com/en/webinar/Framework/webinar-rec-framework-bus-EN-appcelerator-20081015.flv" target="_blank">Get &#8220;Rich&#8221; Quick : Building Ajax-based RIAs with the Zend Framework and Appcelerator</a></h4>
<p>i didn&#8217;t hear about the Appcelerator thing before, but the title was really interesting as i use Zend framework extensively and it is a great idea to add some interactivity and UI to my apps.</p>
<p>after watching the webinars, i really liked the idea of being able to build the full prototype and have it working with no server side code, and then in the development phase with some slight changes to the prototype, it becomes the working front end interacting with the server side code with no problems @ all.</p>
<p>i went to <a href="http://try.appcelerator.org/" target="_blank">try.appcelerator.org</a> and gave it a try on the fly, that got me more interested. so i downloaded the sdk installer for MAC and installed it, the installation was at ease, even creating the projects and testing.</p>
<p>Appcelerator supports what we call &#8220;technology driven agile development&#8221; and we call that process Interactive Use Cases. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/11/20/appcelerator-building-ria-applications-and-use-cases-with-ease/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install mysql support for python on linux ubuntu</title>
		<link>http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-mysql-support-for-python-on-linux-ubuntu</link>
		<comments>http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 11:37:31 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=90</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/" title="Install mysql support for python on linux ubuntu"></a>to add the MySQL database support on Linux Ubuntu use the following command : sudo apt-get install python-mysqldb and to import this module into your scripts use this command : me2resh@me2resh-desktop:~/Desktop/MySQL-python-1.2.2$ python Python 2.5.2 &#40;r252:60911, Jul 31 2008, 17:28:52&#41; &#91;GCC &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/" title="Install mysql support for python on linux ubuntu"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>to add the MySQL database support on Linux Ubuntu use the following command :</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python-mysqldb</pre></div></div>
<p>and to import this module into your scripts use this command :</p>
<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">me2resh@me2resh-desktop:~/Desktop/MySQL-python-1.2.2$ python
Python 2.5.2 <span style="color: black;">&#40;</span>r252:<span style="color: #ff4500;">60911</span>, Jul <span style="color: #ff4500;">31</span> <span style="color: #ff4500;">2008</span>, <span style="color: #ff4500;">17</span>:<span style="color: #ff4500;">28</span>:<span style="color: #ff4500;">52</span><span style="color: black;">&#41;</span>
<span style="color: black;">&#91;</span>GCC 4.2.3 <span style="color: black;">&#40;</span>Ubuntu 4.2.3-2ubuntu7<span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> on linux2
Type <span style="color: #483d8b;">&quot;help&quot;</span>, <span style="color: #483d8b;">&quot;copyright&quot;</span>, <span style="color: #483d8b;">&quot;credits&quot;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">&quot;license&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> more information.
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> MySQLdb
<span style="color: #66cc66;">&gt;&gt;&gt;</span></pre></div></div>
<p>and enjoy the power of MySQL in your python applications <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/08/24/install-mysql-support-for-python-on-linux-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

