<?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>whats the plot &#187; code</title>
	<atom:link href="http://whatstheplot.com/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://whatstheplot.com/blog</link>
	<description>a plotting plotter plotted a plot at whatstheplot.com</description>
	<lastBuildDate>Wed, 11 Aug 2010 09:49:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>quran android released!</title>
		<link>http://whatstheplot.com/blog/2010/08/11/quran-android-released/</link>
		<comments>http://whatstheplot.com/blog/2010/08/11/quran-android-released/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 09:49:12 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[quran]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=494</guid>
		<description><![CDATA[ramadan kareem! just in time for ramadan, we&#8217;ve released the first version of Quran Android. download it and let us know what you think! the source code is on github.]]></description>
			<content:encoded><![CDATA[<p><a href="http://whatstheplot.com/images/quran.android_barcode.png"><img src="http://whatstheplot.com/images/quran.android_barcode.png" alt="quran android qr code" width="150" height="150" /></a></p>
<p>ramadan kareem!  just in time for ramadan, we&#8217;ve released the first version of Quran Android.  download it and let us know what you think!  the source code is on <a href="http://github.com/ahmedre/quran_android">github</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/08/11/quran-android-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>what on earth, etisalat?</title>
		<link>http://whatstheplot.com/blog/2010/07/19/what-on-earth-etisalat/</link>
		<comments>http://whatstheplot.com/blog/2010/07/19/what-on-earth-etisalat/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 11:34:57 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=486</guid>
		<description><![CDATA[#!/bin/sh APP_NAME=&#34;Etisalat_3.5G_USB_Modem&#34; APP_PATH=&#34;/Applications/Mobile Partner.app&#34; sudo chmod -R a+rwx &#34;$APP_PATH&#34; chmod -R a+rw &#34;/usr/local/&#34; the above code snippet is from the first few lines of one of the etisalat 3g usb modem&#8217;s postinstall script on osx &#8211; seriously, why chmod -R a+rw "/usr/local/"? no one uses /usr/local except etisalat? the modem is a huawei e1550 hsdpa [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash;">
#!/bin/sh
APP_NAME=&quot;Etisalat_3.5G_USB_Modem&quot;
APP_PATH=&quot;/Applications/Mobile Partner.app&quot;

sudo chmod -R a+rwx &quot;$APP_PATH&quot;

chmod -R a+rw &quot;/usr/local/&quot;
</pre>
<p>the above code snippet is from the first few lines of one of the etisalat 3g usb modem&#8217;s postinstall script on osx &#8211; seriously, why <code>chmod -R a+rw "/usr/local/"</code>?  no one uses <code>/usr/local</code> except etisalat?</p>
<p>the modem is a huawei e1550 hsdpa usb stick.</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/07/19/what-on-earth-etisalat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setting up a blackberry dev environment under linux</title>
		<link>http://whatstheplot.com/blog/2010/06/24/setting-up-a-blackberry-dev-environment-under-linux/</link>
		<comments>http://whatstheplot.com/blog/2010/06/24/setting-up-a-blackberry-dev-environment-under-linux/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 15:53:20 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=475</guid>
		<description><![CDATA[i recently had to look at the blackberry sdk for something. to my disappointment, the blackberry sdk is only available for windows &#8211; no linux or mac versions in site. my first attempt was to run a windows vm under virtualbox, but that brought my system to a screeching halt. so i started doing some [...]]]></description>
			<content:encoded><![CDATA[<p>i recently had to look at the blackberry sdk for something.  to my disappointment, the blackberry sdk is only available for windows &#8211; no linux or mac versions in site.  my first attempt was to run a windows vm under virtualbox, but that brought my system to a screeching halt.</p>
<p>so i started doing some research (see sources at the bottom of the post) and found an easier way.  i did this all under ubuntu linux (lucid).</p>
<p>1.  install wine (<code>sudo apt-get install wine</code>)<br />
2.  get winetricks from <a href="http://wiki.winehq.org/winetricks">here</a> (see <a href="http://wiki.winehq.org/winetricks">http://wiki.winehq.org/winetricks</a> for details).<br />
3.  <code>chmod +x winetricks; ./winetricks gdiplus; ./winetricks msxml3</code><br />
4.  download and install the jdk for windows from sun (oracle?) under wine.<br />
5.  update your windows path to contain the directory of the sdk &#8211; do this by editing <code>~/.wine/system.reg</code> and searching for PATH= and appending your path to it.<br />
6.  ensure that java works under wine (ie run wine javac and see if it works &#8211; if it doesn&#8217;t, try doing a wine cmd followed by a path to see what the path is at the moment).<br />
7.  download the 32 bit eclipse for windows &#8211; unzip it and move it to <code>~/.wine/drive_c</code>.<br />
8.   install the blackberry sdk (<code>wine BlackBerry_JDE_PluginFull_1.1.2.201004161203-16.exe</code>).<br />
9.  <code>mkdir /opt/rim; cp -r ~/.wine/drive_c/eclipse/plugins/net.rim.ejde.componentpack5.0.0_5.0.0.25/components /opt/rim/sdk</code><br />
10.  download the sun java wireless toolkit for linux and install it in <code>/opt/rim/WTK2.5.2</code><br />
11.  finally, set up a <code>/opt/rim/tools</code> directory and add the following files in there (make sure to chmod +x them):</p>
<p><strong>build.sh:</strong></p>
<pre class="brush: bash;">
#!/bin/bash

SDK=/opt/rim/sdk
PREVERIFY=/opt/rim/WTK2.5.2/bin

PATH=$PATH:$PREVERIFY java -jar $SDK/bin/rapc.jar \
   import=$SDK/lib/net_rim_api.jar \
   codename=$1 \
   $1.rapc \
   *.java
</pre>
<p><strong>9550.sh</strong></p>
<pre class="brush: bash;">
#!/bin/bash
cd &quot;`dirname $0`&quot;
/usr/bin/wine /opt/rim/sdk/simulator/fledge.exe /app=/opt/rim/sdk/simulator/Jvm.dll /handheld=9550 /session=9550 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9550.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
</pre>
<p>and that&#8217;s it!  now let&#8217;s compile a sample app, say the helloworld sample (from <code>/opt/rim/sdk/samples/com/rim/samples/device/helloworlddemo/</code>).  to do this, copy the <code>helloworlddemo</code> folder somewhere and add a <code>HelloWorldDemo.rapc</code> file in that folder that looks like this:</p>
<pre class="brush: plain;">
MIDlet-Name: HelloWorldDemo
MIDlet-Version: 0.9
MIDlet-Vendor: Research In Motion Ltd.
MIDlet-Jar-URL: HelloWorldDemo.jar
MIDlet-Jar-Size: 0
MicroEdition-Profile: MIDP-2.0
MicroEdition-Configuration: CLDC-1.1
MIDlet-1: Hello World Demo,img/helloworld_jde.png,
RIM-MIDlet-Flags-1: 0
</pre>
<p>now you can compile it by running <code>/opt/rim/tools/build.sh HelloWorldDemo</code> &#8211; if all is well, you should see a <code>HelloWorldDemo.cod</code> file.</p>
<p>then run <code>9550.sh</code>, which should launch the simulator.  you can choose to install the cod file from the menu.</p>
<p>btw, if you want to use other emulators, run <code>wine fledge.exe /help</code> under <code>/opt/rim/sdk/simulator</code> and you&#8217;ll find what valid parameters there are for the device type.  then edit <code>9550.sh</code> and change it to your device type.</p>
<p>one other note &#8211; another way to compile applications involves using the <a href="http://bb-ant-tools.sourceforge.net/">blackberry ant tools</a>.  i haven&#8217;t tried this yet, however.</p>
<p><strong>sources</strong><br />
- <a href="http://supportforums.blackberry.com/t5/Java-Development/Eclipse-JDE-Plugin-Linux-a-working-environment/m-p/192473">Eclipse + JDE + Linux &#8211; a working environment</a><br />
- <a href="http://www.progweb.com/modules/blackberry/index-en.html">How to use BlackBerry Device with Linux</a><br />
- <a href="http://www.azizuysal.com/2009/07/blackberry-development-on-mac-os-x.html">BlackBerry Development on Mac OS X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/06/24/setting-up-a-blackberry-dev-environment-under-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>google buzz &#8211; friend or follow</title>
		<link>http://whatstheplot.com/blog/2010/02/10/google-buzz-friend-or-follow/</link>
		<comments>http://whatstheplot.com/blog/2010/02/10/google-buzz-friend-or-follow/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 01:21:03 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=452</guid>
		<description><![CDATA[i like the site for twitter, &#8216;friendorfollow,&#8217; which tells me who i am following and isn&#8217;t following me back, who are following me and i am not following back, and so on. given that i got access to google buzz today, i decided to write a little script to help me determine the breakdown of [...]]]></description>
			<content:encoded><![CDATA[<p>i like the site for twitter, &#8216;friendorfollow,&#8217; which tells me who i am following and isn&#8217;t following me back, who are following me and i am not following back, and so on.  given that i got access to google buzz today, i decided to write a little script to help me determine the breakdown of my friends (specifically, who i am following and isn&#8217;t following me back, since the rest of the information is easy to read off of the website anyway).</p>
<p>this script will tell you who your friends are (lol, i wish), who your fans are, and who you are following but isn&#8217;t following you back.  unfortunately, there&#8217;s a manual step involved (getting the server response with your friends and followers).  there&#8217;s really no point in trying to automate this right now, because soon enough, i expect that one of the google apis will expose this functionality.</p>
<p>download it from github <a href="http://gist.github.com/301093">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/02/10/google-buzz-friend-or-follow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>salam, android!</title>
		<link>http://whatstheplot.com/blog/2010/01/22/salam-android/</link>
		<comments>http://whatstheplot.com/blog/2010/01/22/salam-android/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 11:01:23 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[quran]]></category>
		<category><![CDATA[screenshots]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=439</guid>
		<description><![CDATA[after the nexus one came out, i became a little more interested in android. while i had written a simple &#8216;salam world&#8217; app some time ago, i figure it would be nice to delve a little deeper and try to write something remotely useful. so without further adieu, introducing a (very simple) quran for android: [...]]]></description>
			<content:encoded><![CDATA[<p>after the nexus one came out, i became a little more interested in android.  while i had written a simple &#8216;salam world&#8217; app some time ago, i figure it would be nice to delve a little deeper and try to write something remotely useful.</p>
<p>so without further adieu, introducing a (very simple) quran for android:</p>
<p><img alt="" src="http://whatstheplot.com/images/android_quranview-01.21.2010.png" title="android quran screenshot" class="aligncenter" width="247" height="407" /></p>
<p>source code on <a href="http://github.com/ahmedre/quran_android">github</a></p>
<p>for the most part, android is fairly fun and easy to develop for.  however, one of the most frustrating parts is the extremely limited memory for apps.  since apps can&#8217;t be on the sd card (due to some security issues), you are limited to the very small amount of memory on the device.  consequently, in order to display the images for the quran in this app, the app must download the data to the user&#8217;s sd card.</p>
<p><b>note</b> &#8211; try it at your own risk, i only tested it on the emulator&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/01/22/salam-android/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>quran jetpack script</title>
		<link>http://whatstheplot.com/blog/2009/11/16/quran-jetpack-script/</link>
		<comments>http://whatstheplot.com/blog/2009/11/16/quran-jetpack-script/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 08:21:13 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[jetpack]]></category>
		<category><![CDATA[quran]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=401</guid>
		<description><![CDATA[so i had a little bit of time before i depart on my journey for hajj, so i wanted to play around with the firefox jetpack extension a little bit. so without further adieu, this post is here to introduce a simple quran plugin for jetpack what is it this is a quran script for [...]]]></description>
			<content:encoded><![CDATA[<p>so i had a little bit of time before i depart on my journey for hajj, so i wanted to play around with the firefox jetpack extension a little bit.  so without further adieu, this post is here to introduce a simple quran plugin for jetpack <img src='http://whatstheplot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><b>what is it</b><br />
this is a quran script for <a href="https://jetpack.mozillalabs.com">jetpack</a>, a plugin for firefox which allows customizing the browser just through javascript.</p>
<p>when you are typing in a textarea (in wordpress, gmail, google talk, etc), if you highlight any text in the format of sura:ayah (ex 1:1) and right click on it, you will be given a menu that allows you to replace that with the actual verse (in arabic, transliteration, or translation).</p>
<p>this is very nifty for taking notes, chatting, sending emails, etc.</p>
<p><b>how does it look like?</b><br />
here is a screenshot:<br />
<img src="http://whatstheplot.com/misc/quran.jetpack/screenshot.jpg" alt="quran jetpack script screenshot" /></p>
<p><b>known issues</b><br />
- sometimes, the server appears to take long to reply so it doesn&#8217;t return and you are forced to try again.<br />
- the plugin doesn&#8217;t work on google docs and other sites that overwrite right click functionality.<br />
- the plugin also doesn&#8217;t seem to be working on gmail when rich formatting is on.</p>
<p><b>how to install it</b><br />
- install <a href="https://jetpack.mozillalabs.com">jetpack</a> for firefox.<br />
- go to <a href="/misc/quran.jetpack/">this page</a>.  on the top right corner of the webpage, you will find a button that says, &#8220;Install&#8230;&#8221;.  click it.<br />
- scroll to the very bottom, click the &#8220;auto-update this feature&#8221; checkbox, and then click on &#8220;i know what i am doing, install it!&#8221;</p>
<p><b>source code</b><br />
the source is also available as on github in <a href="http://gist.github.com/235821">this gist</a>.</p>
<p><b>changelog</b><br />
<i>november 16th, 2009</i><br />
- fixed a bug in which the appended (sura:ayah) to the text was put at the end of the textarea rather than right after the ayah.<br />
- added a little favicon for the menu.</p>
<p><img src="http://whatstheplot.com/misc/quran.jetpack/screenshot_1.jpg" alt="quran jetpack script screenshot" /></p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2009/11/16/quran-jetpack-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>subqueries make life easy</title>
		<link>http://whatstheplot.com/blog/2009/09/13/subqueries-make-life-easy/</link>
		<comments>http://whatstheplot.com/blog/2009/09/13/subqueries-make-life-easy/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 23:35:50 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=358</guid>
		<description><![CDATA[often times while working with databases, you find the need to do some simple tasks (adding a column and populating it with a value from another table, etc). rather than write a script to do this, use mysql&#8217;s native subquery (and temporary table) functionality &#8211; it makes life much easier. consider the case where you [...]]]></description>
			<content:encoded><![CDATA[<p>often times while working with databases, you find the need to do some simple tasks (adding a column and populating it with a value from another table, etc).  rather than write a script to do this, use mysql&#8217;s native subquery (and temporary table) functionality &#8211; it makes life much easier.</p>
<p>consider the case where you have two tables:</p>
<pre class="brush: plain;">
mysql&gt; describe colors;
+-------+-------------+------+-----+---------+-------+
| Field | Type        | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| id    | int(11)     | YES  |     | NULL    |       |
| color | varchar(10) | YES  |     | NULL    |       |
+-------+-------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
</pre>
<p>and</p>
<pre class="brush: plain;">
mysql&gt; describe color_mapping;
+------------+---------+------+-----+---------+-------+
| Field      | Type    | Null | Key | Default | Extra |
+------------+---------+------+-----+---------+-------+
| picture_id | int(11) | YES  |     | NULL    |       |
| color_id   | int(11) | YES  |     | NULL    |       |
+------------+---------+------+-----+---------+-------+
2 rows in set (0.00 sec)
</pre>
<p>let&#8217;s say you want to update the colors table to add a frequency column such that you know how often a given color is used.  it turns out this is really easy using mysql:</p>
<pre class="brush: sql;">
alter table colors add frequency int;
update colors set frequency = (select count(*) from color_mapping \
   where color_mapping.color_id = colors.id);
</pre>
<p>and that&#8217;s it.  also useful are temporary tables:</p>
<pre class="brush: sql;">
create temporary table color_frequencies select color_id, count(*) as cnt \
   from color_mapping group by color_id;
</pre>
<p>if you then attempt to <code>desc color_frequencies</code>, you&#8217;ll see a table with two columns &#8211; a <code>color_id</code> and a <code>cnt</code> column.</p>
<p>hopefully this will save some people some efforts writing scripts next time some simple database updates are needed <img src='http://whatstheplot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2009/09/13/subqueries-make-life-easy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>quran plugin updated for ubiquity 0.5</title>
		<link>http://whatstheplot.com/blog/2009/08/10/quran-plugin-updated-for-ubiquity-0-5/</link>
		<comments>http://whatstheplot.com/blog/2009/08/10/quran-plugin-updated-for-ubiquity-0-5/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 08:55:08 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[quran]]></category>
		<category><![CDATA[ubiquity]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=350</guid>
		<description><![CDATA[i&#8217;ve done a quick port of the quran ubiquity plugin to work under the new version of ubiquity (0.5). as you may know, ubiquity 0.5 and beyond use a new parser (parser 2) that isn&#8217;t compatible with the old parser (parser 1 for 0.1.x versions of ubiquity). you can get it here. make sure to [...]]]></description>
			<content:encoded><![CDATA[<p>i&#8217;ve done a quick port of the quran ubiquity plugin to work under the new version of ubiquity (0.5).  as you may know, ubiquity 0.5 and beyond use a new parser (parser 2) that isn&#8217;t compatible with the old parser (parser 1 for 0.1.x versions of ubiquity).</p>
<p>you can get it <a href="http://gist.github.com/165091">here</a>.  make sure to select &#8220;automatically update this feed&#8221; so that you get any updates i may get around to making. </p>
<p>this version is pretty much identical to the older one, except that now, you can use &#8220;get-ayah,&#8221; &#8220;get ayah,&#8221; or &#8220;ayah&#8221; to get an ayah, and &#8220;search-quran&#8221; or &#8220;search quran&#8221; to do a search.  i hope to support some of the new stuff from the pre-alpha version of the quran api soon insha&#8217;Allah (other translations, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2009/08/10/quran-plugin-updated-for-ubiquity-0-5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>introducing waqt.org</title>
		<link>http://whatstheplot.com/blog/2009/07/10/introducing-waqt-org/</link>
		<comments>http://whatstheplot.com/blog/2009/07/10/introducing-waqt-org/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 10:01:06 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[prayertimes]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=337</guid>
		<description><![CDATA[today, i took the arabeyes php extension of itl, the yahoo geocoding api, and the geonames api and put together waqt.org. it&#8217;s a fairly minimalistic prayertimes site. the code is available on github. note that the calculation method is currently hardcoded to use the isna method, but this is fairly easy to change.]]></description>
			<content:encoded><![CDATA[<p>today, i took the arabeyes <a href="http://svn.arabeyes.org/viewvc/projects/itl/ports/php/">php extension of itl</a>, the <a href="http://developer.yahoo.com/maps/rest/V1/geocode.html">yahoo geocoding api</a>, and the <a href="http://www.geonames.org/">geonames api</a> and put together <a href="http://waqt.org">waqt.org</a>.</p>
<p>it&#8217;s a fairly minimalistic prayertimes site.  the code is available on <a href="http://github.com/ahmedre/waqt.org">github</a>.  note that the calculation method is currently hardcoded to use the isna method, but this is fairly easy to change.</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2009/07/10/introducing-waqt-org/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>quran ubiquity plugin</title>
		<link>http://whatstheplot.com/blog/2009/05/19/quran-ubiquity-plugin/</link>
		<comments>http://whatstheplot.com/blog/2009/05/19/quran-ubiquity-plugin/#comments</comments>
		<pubDate>Tue, 19 May 2009 08:29:12 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[quran]]></category>
		<category><![CDATA[ubiquity]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=324</guid>
		<description><![CDATA[updated and released the first version of the quran ubiquity plugin! you can go here to install it. essentially, it contains two commands - 1. search-quran &#8211; takes a parameter of what to search for and will show the results that match that particular query. hitting enter will bring up the search results page. 2. [...]]]></description>
			<content:encoded><![CDATA[<p>updated and released the first version of the quran ubiquity plugin!  you can go <a href="http://gist.github.com/113971">here</a> to install it.</p>
<p>essentially, it contains two commands -<br />
1.  <strong>search-quran</strong> &#8211; takes a parameter of what to search for and will show the results that match that particular query.  hitting enter will bring up the search results page.<br />
2.  <strong>get-ayah</strong> &#8211; takes a parameter of which ayah (ex 2:2) and an optional parameter of the language/translation you want the ayah in (in english &#8211; muhsin khan, for example &#8211; note that ubiquity will provide suggestions for these).  hitting enter will insert the text into the selection space.</p>
<p>this is uber-useful for muslims imho :p  perhaps i will try to provide a screencast later on that shows how to use this for those who are still afraid to try it <img src='http://whatstheplot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>*update*</strong> &#8211; rather than make my own screencast, i&#8217;ve decided to record a set of audio instructions on how to use it.</p>
<p>by the way &#8211; if you haven&#8217;t used ubiquity before, i highly recommend that you watch <a href="http://vimeo.com/1561578">this video</a> first.  it explains what ubiquity is and gives you an idea of what it is useful for.  to put it quite simply, ubiquity is amazing.  it&#8217;s an indispensable tool for your firefox.  watch the video <img src='http://whatstheplot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>and here is the audio tutorial on the quran plugin for ubiquity.</p>
<p>enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2009/05/19/quran-ubiquity-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://whatstheplot.com/misc/ubiquity_quran-05.19.2009.mp3" length="1235405" type="audio/mpeg" />
		</item>
	</channel>
</rss>
