<?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>Tokyo's Muslim</title>
	<atom:link href="http://www.tokyomuslim.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tokyomuslim.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 27 Aug 2010 07:24:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Python2.6, mod_wsgi, and Python-MySQL on a CentOS box.</title>
		<link>http://www.tokyomuslim.com/2010/08/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box/</link>
		<comments>http://www.tokyomuslim.com/2010/08/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 07:24:28 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/?p=1510</guid>
		<description><![CDATA[I&#8217;ve always hated Centos, probably because I&#8217;ve never been in a situation where I had to deal with the network security (other than the obvious stuff to ward off cross-site-scripting attacks and the such).  Of course, that being the case, I did wind up dealing with CentOS at work and I had to get [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always hated Centos, probably because I&#8217;ve never been in a situation where I had to deal with the network security (other than the obvious stuff to ward off cross-site-scripting attacks and the such).  Of course, that being the case, I did wind up dealing with CentOS at work and I had to get Django, Python 2.6 and the such functional.</p>
<p>Centos throws a few curveballs your way..  YUM is built on Python 2.4, and upgrading to a newer version supposedly breaks the program.  Going back to Python 2.4 was not an option, mainly because all my python experience is on Python 2.5 / 2.6, and I don&#8217;t want to go back and learn an older non-maintained version of the language for a server.  On the other hand, I didn&#8217;t want to lobby to just install Ubuntu.</p>
<p>This assumes you already have a normal LAMP setup.  Furthermore, I&#8217;m assuming you do not have mod_python installed.  This threw me for a loop for the longest time, so take this for what its worth.</p>
<p>The first step, for me, was installing Python 2.6.  Follow these instructions to get the repositories setup:</p>
<blockquote><p>http://www.geekymedia.com/tech-articles/rhel5-centos-5-python-2-62-rpms/</p></blockquote>
<p>Once that&#8217;s done, run yum update to get everything setup, and then </p>
<p><code><br />
yum install python26<br />
yum install python26*<br />
</code></p>
<p>This installs pretty much everything python related that you need.  You will need to run the following to get an extra piece of information:<br />
<code><br />
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)<br />
[GCC 4.4.3] on linux2<br />
Type "help", "copyright", "credits" or "license" for more information.<br />
>>> import sys<br />
>>> sys.prefix<br />
'/usr'<br />
</code></p>
<p>The prefix (/usr) is important for later.  Set it aside and finish up.</p>
<p><code>cd ~<br />
wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download<br />
sudo tar xzvf MySQL-python-1.2.3.tar.gz<br />
cd MySQL-python-1.2.3*<br />
python26 setup.py install<br />
</code></p>
<p>(Don&#8217;t forget to create a user for use by Django in the database)</p>
<p><code>cd ~<br />
wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz<br />
sudo tar xzvf mod_wsgi-3.3.tar.gz<br />
cd mod_wsgi-3.3*<br />
./configure --with-python=/usr/bin/python2.6<br />
make<br />
make install<br />
</code></p>
<p>Now you need to fix up your Apache configuration.  I won&#8217;t pretend to be an expert with WSGI (although I&#8217;ve managed to get it running on 3 different OSes running Apache), but make sure you include the following, somewhere near the Module block in the httpd.conf file.</p>
<p><code><br />
WSGIPythonHome /usr/<br />
</code></p>
<p>As long as you have this setup, and a proper WSGI script, you should be able to get up and running.</p>
<p>The Django installation is quite easy. Go into the Django source directory and type in</p>
<p><code>python2.6 setup.py install</code></p>
<p>That will take care of making sure Python2.6 also has access to django.</p>
<p>That&#8217;s pretty much it.  I&#8217;m sure there is something unclear, but I&#8217;ve got to get back to work -_-</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/08/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Japan as a Hostage Society</title>
		<link>http://www.tokyomuslim.com/2010/08/japan-as-a-hostage-society/</link>
		<comments>http://www.tokyomuslim.com/2010/08/japan-as-a-hostage-society/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 06:51:31 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Japan]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/?p=1494</guid>
		<description><![CDATA[I have had the opportunity, over the past few weeks, to read a few of the interesting links posted on Hacker News about Japan; positive and negative.  The one thing that comes out over and over again (to the point of being a cliche) is that Japan does not raise people to be creative, [...]]]></description>
			<content:encoded><![CDATA[<p>I have had the opportunity, over the past few weeks, to read a few of the interesting links posted on Hacker News about Japan; positive and negative.  The one thing that comes out over and over again (to the point of being a cliche) is that Japan does not raise people to be creative, and this is hindering development.  I do not believe this to be true; I run into far more displays of spontaneous creativity in Japan than I did in Montreal (street musicians with original songs, people with odd but interesting/original fashions, etc..)   I certainly think that the various art fairs in Japan held at Tokyo Big Site are significantly more energetic and outright interesting than any of the staid nonsense that I used to force myself to visit back home.<br />
<br />
However, these all have something in common.  Producing street music in the evening, making artwork on the side and doing a little stitching is, at most, a hobby.  It&#8217;s a Google 15% project, done after the grueling 11 hour work day is done.  These are not and cannot contribute as industry or as a business because no one is capable of doing them full time, even if they want to.  This is because Japan is a hostage society where the inevitable sacrifices that one makes would leave painful financial ratifications for people around you.<br />
<br />
After the Sengoku Jidai era of Japan,  the Shogun would have his various regional leaders (Daimyo) submit themselves or high-ranking family members as hostages in a rotational system that would ensure good behavior on the part of the leader himself.   Furthermore, this process was extremely expensive;  25%-30% of the income of any domain would be spent to satisfy this need. (<a href="http://www.nakasendoway.com/tokupols.xhtml">1</a>)   Whether through imitation or coincidence, this practice continues unabated until today in several ways.<br />
</p>
<ol>
<li><em>Housing</em> is the most obvious example.  Finding housing, in Japan, without a guarantor (保証人) <span style="color: #c0c0c0;">(cough..)</span> who will be held personally responsible for any issues after you leave is ridiculous.  There is the concept of a guarantor company (保証会社) that takes the risk, but in many cases these companies require that you be gainfully employed by a company, even if you have cash in the bank to pay for an entire year&#8217;s worth of rent.  I have offered a full year&#8217;s worth of rent in advance and have been rejected simply because I &#8220;don&#8217;t understand the Japanese way&#8221;.<br />
<br />
Whether that complaint is true or not, shelter is a basic need, second only to food.  An inability to secure housing without placing someone in harm&#8217;s way feels morally bankrupt; no one knows if they are going to lose their job, yet in such a situation there is going to be consequences for the people around you.    In a society where conflict is considered anathema, is it a surprise that no one is going to want to go down a route that most likely will lead to this?<br />
<br />
People protest that there are some ways around this.  Get a place built in the 1950s (No one wants to rent those so they are usually relatively easy).  Live in a share house.  Stay with your family.   Yet these are not practical solutions.  The process of beginning a business requires concentration and hard work, while your feet are held to the fire by the requirements of everyday life.  Dealing with the huge black swans that are a part of the first two (such as plumbing / heating  / personality problems) and the inertia of the third are often too much to overcome.  Spare me the whining of the propertied class, isn&#8217;t the bubble on their hands in the first place?<br />
<br />
The message given here is, &#8220;Don&#8217;t bother being creative full time; we won&#8217;t let you live&#8221;.<br />
<br />&nbsp;
</li>
<li><em>Work</em>. There are so many patsies and fall-guys involved in employment in Japan that it is hard to even start.  First, every company uses recruiters.  Every single one.  All because they need someone to take responsibility <span style="color: #c0c0c0;">(cough..)</span> if the employee doesn&#8217;t &#8220;work out&#8221; after his interviews (I&#8217;ve had to deal with 7, to &#8216;ensure a proper match&#8217;), the recruiting company is held responsible.  Of course, once the employee enters the company, they sometimes have to have another &#8220;guarantor&#8221; <span style="color: #c0c0c0;">(&#8230;)</span> who is supposedly personally responsible if you screw something up.<br />
<br />
It&#8217;s nice for us to laugh at people stuck in their day job, but the truth is you need to make your money somewhere.  If you&#8217;ve survived the gauntlet and are making your nice $30k/year job as a seishain at Proto Corporation, I doubt you&#8217;re going to have the strength of will necessary to deal with the stress of leaving and creating your own job.  The long forced overtimes perversely sap you of the willpower to leave (much like how spending 25% of your income on maintaining a presence at the court sapped your ability to raise an army)<br />
<br />
And forget trying to find good help for your new venture without a recruiter; that might be risky for the applicant!
</li>
</ol>
<p>
There are other examples I could bring up (bank account, credit, etc..), but frankly, not being able to make money and not being able to rent even a mediocre shelter is proof enough.<br />
<br />
Yes, in Western societies we have our own hostages; we call them insurance companies and when we let them down and ge them in trouble, it isn&#8217;t personal.  However, unless you want to leave a trail of injured people for the 9 times out of 10 that your product fails, you aren&#8217;t going to want to be an innovator in Japan.  The outcome is probably going to be too painful.<br />
<br />
(Perversely, I enjoy every second living in this country, go figure)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/08/japan-as-a-hostage-society/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just got the best spam comment ever.</title>
		<link>http://www.tokyomuslim.com/2010/08/just-got-the-best-spam-comment-ever/</link>
		<comments>http://www.tokyomuslim.com/2010/08/just-got-the-best-spam-comment-ever/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 04:51:36 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Entertainment]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/?p=1492</guid>
		<description><![CDATA[I’m currently being held prisoner by the Russian mafia penis enlargement and being forced to post spam comments on blogs and forum! If you don’t approve this they will kill me. penis enlargement  They’re coming back now.  vimax Please send help
Admittedly I almost approved that.
]]></description>
			<content:encoded><![CDATA[<blockquote><p>I’m currently being held prisoner by the Russian mafia penis enlargement and being forced to post spam comments on blogs and forum! If you don’t approve this they will kill me. penis enlargement  They’re coming back now.  vimax Please send help</p></blockquote>
<p>Admittedly I almost approved that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/08/just-got-the-best-spam-comment-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So I haven&#8217;t touched my blog in ages.</title>
		<link>http://www.tokyomuslim.com/2010/07/so-i-havent-touched-my-blog-in-ages/</link>
		<comments>http://www.tokyomuslim.com/2010/07/so-i-havent-touched-my-blog-in-ages/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 05:34:40 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Free-For-All]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/2010/07/so-i-havent-touched-my-blog-in-ages/</guid>
		<description><![CDATA[I&#8217;m sure I could make an interesting graph showing periods of utter inactivity on my blog.
For what its worth, Twitter takes care of most of my shallow utterances, while more interesting stuff is left to stew in my head.
I&#8217;m going to try to post a few things this week in regards to certain things that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure I could make an interesting graph showing periods of utter inactivity on my blog.</p>
<p>For what its worth, Twitter takes care of most of my shallow utterances, while more interesting stuff is left to stew in my head.</p>
<p>I&#8217;m going to try to post a few things this week in regards to certain things that have been niggling at me all week.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/07/so-i-havent-touched-my-blog-in-ages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FREE SPEECH doesn&#8217;t mean&#8230;</title>
		<link>http://www.tokyomuslim.com/2010/05/free-speech-doesnt-mean/</link>
		<comments>http://www.tokyomuslim.com/2010/05/free-speech-doesnt-mean/#comments</comments>
		<pubDate>Wed, 05 May 2010 13:40:13 +0000</pubDate>
		<dc:creator>Photos by Jawaad Mahmood</dc:creator>
				<category><![CDATA[Free-For-All]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/2010/05/free-speech-doesnt-mean/</guid>
		<description><![CDATA[


FREE SPEECH doesn&#8217;t mean&#8230;, originally uploaded by HeadOvMetal.

]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;padding: 3px">
<a href="http://www.flickr.com/photos/headovmetal/1759826930/" title="photo sharing"><img src="http://farm3.static.flickr.com/2250/1759826930_94a7020d1e.jpg" style="border: solid 2px #000000" alt="" /></a><br />
<br />
<span style="font-size: 0.5em;margin-top: 0px"><a href="http://www.flickr.com/photos/headovmetal/1759826930/">FREE SPEECH doesn&#8217;t mean&#8230;</a>, originally uploaded by <a href="http://www.flickr.com/people/headovmetal/">HeadOvMetal</a>.</span>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/05/free-speech-doesnt-mean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SHE MAY LOOK CLEAN &#8211; BUT</title>
		<link>http://www.tokyomuslim.com/2010/04/she-may-look-clean-but/</link>
		<comments>http://www.tokyomuslim.com/2010/04/she-may-look-clean-but/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 12:55:10 +0000</pubDate>
		<dc:creator>Photos by Jawaad Mahmood</dc:creator>
				<category><![CDATA[Free-For-All]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/2010/04/she-may-look-clean-but/</guid>
		<description><![CDATA[


SHE MAY LOOK CLEAN &#8211; BUT, originally uploaded by HeadOvMetal.


I love old WW2 propaganda posters
]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;padding: 3px">
<a href="http://www.flickr.com/photos/headovmetal/1758988833/" title="photo sharing"><img src="http://farm3.static.flickr.com/2317/1758988833_cff25c7552.jpg" style="border: solid 2px #000000" alt="" /></a><br />
<br />
<span style="font-size: 0.5em;margin-top: 0px"><a href="http://www.flickr.com/photos/headovmetal/1758988833/">SHE MAY LOOK CLEAN &#8211; BUT</a>, originally uploaded by <a href="http://www.flickr.com/people/headovmetal/">HeadOvMetal</a>.</span>
</div>
<p>
I love old WW2 propaganda posters</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/04/she-may-look-clean-but/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP class to interact with PDFcrowd.com</title>
		<link>http://www.tokyomuslim.com/2010/04/php-class-to-run-pdfcrowd-com/</link>
		<comments>http://www.tokyomuslim.com/2010/04/php-class-to-run-pdfcrowd-com/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 05:54:37 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Free-For-All]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/?p=1474</guid>
		<description><![CDATA[PDFcrowd looks incredibly cool, but there&#8217;s no PHP version of the interface.  I mocked one up very crudely.  It needs some work for throwing / catching exceptions, but I&#8217;m sure someone out there is interested in it.
It works as follows:

$pdf = new PDFCrowd($username, $app_id);
$pdf-&#62;urltopdf(&#8216;http://www.tokyomuslim.com/2010/04/php-class-to-run-pdfcrowd-com/&#8217;, $location)

This deposits a PDF version of the document in $location on [...]]]></description>
			<content:encoded><![CDATA[<p>PDFcrowd looks incredibly cool, but there&#8217;s no PHP version of the interface.  I mocked one up very crudely.  It needs some work for throwing / catching exceptions, but I&#8217;m sure someone out there is interested in it.</p>
<p>It works as follows:</p>
<blockquote>
<div id="_mcePaste">$pdf = new PDFCrowd($username, $app_id);</div>
<div id="_mcePaste">$pdf-&gt;urltopdf(&#8216;http://www.tokyomuslim.com/2010/04/php-class-to-run-pdfcrowd-com/&#8217;, $location)</div>
</blockquote>
<div>This deposits a PDF version of the document in $location on your system.  The htmltopdf method handles HTML streaming and filetopdf handles File uploads &amp; conversions.  It&#8217;s definitely worth a try so give it a shot and let me know what breaks :-)</div>
<div>You can download it <a href="http://jawaadmahmood.com/pdfcrowd/pdfcrowd.php.zip">here</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/04/php-class-to-run-pdfcrowd-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notifo kicks ass.</title>
		<link>http://www.tokyomuslim.com/2010/03/notifo-kicks-ass/</link>
		<comments>http://www.tokyomuslim.com/2010/03/notifo-kicks-ass/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 07:41:22 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Free-For-All]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/2010/03/notifo-kicks-ass/</guid>
		<description><![CDATA[Saw Notifo on Hackernews and fell in love.  It solves all my irritating headaches when making web apps (mainly that I need access to notifications and can&#8217;t do it without a simple free app installed).
I made a quick PHP class for using with Notifo.  Give it a whirl if you want to.
Notifo PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Saw Notifo on Hackernews and fell in love.  It solves all my irritating headaches when making web apps (mainly that I need access to notifications and can&#8217;t do it without a simple free app installed).</p>
<p>I made a quick PHP class for using with Notifo.  Give it a whirl if you want to.</p>
<p><a href="http://jawaadmahmood.com/notifo/Notifo-1.01.gz">Notifo PHP Class</a> (Version 1.01, thanks to Ethan and Michael!)</p>
<p>Be sure to include it; then try this:</p>
<blockquote>
<div id="_mcePaste">$a = new Notifo();</div>
<div id="_mcePaste">try {</div>
<div id="_mcePaste">$a-&gt;subscribe_user(&#8216;username&#8217;);</div>
<div id="_mcePaste">$a-&gt;send_notification(&#8216;username&#8217;, &#8216;message&#8217;, &#8216;title&#8217;, &#8216;URL&#8217;);</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">catch(Exception $e){</div>
<div id="_mcePaste">echo &#8220;You had an error; {$e-&gt;getMessage()}&#8221;;</div>
<div id="_mcePaste">}</div>
</blockquote>
<div id="_mcePaste">Be sure to catch exceptions, there are bound to be quite a few when you get up and running.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/03/notifo-kicks-ass/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LOL: Implementing &#8220;Margins&#8221; on an old Docomo phone.</title>
		<link>http://www.tokyomuslim.com/2010/03/lol-implementing-margins-on-an-old-docomo-phone/</link>
		<comments>http://www.tokyomuslim.com/2010/03/lol-implementing-margins-on-an-old-docomo-phone/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 04:40:00 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Free-For-All]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/?p=1466</guid>
		<description><![CDATA[Docomo phones don&#8217;t recognize margins and are irritating as hell to program for.
The odd thing is that they do recognize table widths.  As a result, you can make the following horrible code (that &#8220;DOEZ THE JOB&#8221;)

&#60;BODY&#62;
&#60;table&#62;
&#60;tr&#62;
&#60;td width=&#8221;(left margin)&#8221;&#62;&#60;/td&#62;
&#60;td&#62;(whatever)&#60;/td&#62;
&#60;td width=&#8221;(right margin)&#8221;&#62;&#60;/td&#62;
&#60;/tr&#62;
&#60;/table&#62;
&#60;/BODY&#62;

Hey don&#8217;t look at me; I haven&#8217;t used Tables since y2k.
]]></description>
			<content:encoded><![CDATA[<p>Docomo phones don&#8217;t recognize margins and are irritating as hell to program for.</p>
<p>The odd thing is that they do recognize table widths.  As a result, you can make the following horrible code (that &#8220;DOEZ THE JOB&#8221;)</p>
<blockquote>
<div id="_mcePaste">&lt;BODY&gt;</div>
<div id="_mcePaste">&lt;table&gt;</div>
<div>&lt;tr&gt;</div>
<div id="_mcePaste" style="padding-left: 30px;">&lt;td width=&#8221;(left margin)&#8221;&gt;&lt;/td&gt;</div>
<div id="_mcePaste" style="padding-left: 30px;">&lt;td&gt;(whatever)&lt;/td&gt;</div>
<div style="padding-left: 30px;">&lt;td width=&#8221;(right margin)&#8221;&gt;&lt;/td&gt;</div>
<div>&lt;/tr&gt;</div>
<div>&lt;/table&gt;</div>
<div>&lt;/BODY&gt;</div>
</blockquote>
<div>Hey don&#8217;t look at me; I haven&#8217;t used Tables since y2k.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/03/lol-implementing-margins-on-an-old-docomo-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email Validation in Google App Engine</title>
		<link>http://www.tokyomuslim.com/2010/03/email-validation-in-google-app-engine/</link>
		<comments>http://www.tokyomuslim.com/2010/03/email-validation-in-google-app-engine/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 00:20:26 +0000</pubDate>
		<dc:creator>Jawaad</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.tokyomuslim.com/?p=1464</guid>
		<description><![CDATA[My current project is building a mobile website for Japanese cellphones that can stand about 10-20k hits within an hour without getting completely trashed.  Admittedly, this isn&#8217;t exactly the easiest thing in the world to do, but Google App engine makes it a lot easier.  In the process, I had to brush up on my [...]]]></description>
			<content:encoded><![CDATA[<p>My current project is building a mobile website for Japanese cellphones that can stand about 10-20k hits within an hour without getting completely trashed.  Admittedly, this isn&#8217;t exactly the easiest thing in the world to do, but Google App engine makes it a lot easier.  In the process, I had to brush up on my Python, and in particular, email validation.</p>
<p>The obvious way to deal with email validation is to use google&#8217;s &#8220;mail.is_email_valid&#8221; function.  Unfortunately, this seems to return true as long as you have a string, as it mentions on <a href="http://aralbalkan.com/1353">Aral Balkan&#8217;s helpful post on the subject</a>.  I had to dig a little more to find out how to use mail_re; here&#8217;s the code for anyone curious.</p>
<blockquote>
<div id="_mcePaste">from django.core.validators import email_re</div>
<div></div>
<div>print (email_re.match(&#8216;test_email@fakedomain.com&#8217;) != None)</div>
<div>
<div>print (email_re.match(&#8216;bademail&#8217;) != None)</div>
</div>
</blockquote>
<div>Seems to work properly.</div>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.tokyomuslim.com/2010/03/email-validation-in-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.239 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-09-04 23:52:16 -->
