<?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>Mon, 23 Jan 2012 10:56:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
		<item>
		<title>Insane Game for Android</title>
		<link>http://whatstheplot.com/blog/2012/01/19/insane-game-for-android/</link>
		<comments>http://whatstheplot.com/blog/2012/01/19/insane-game-for-android/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 09:55:40 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=629</guid>
		<description><![CDATA[just for fun, i had written this (really simple) game for Android not long ago. i decided that i should release it rather than keep it on my hard drive doing nothing. it is really simple, but still, it is fun enough to try if you have an android phone, download it a shot and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://whatstheplot.com/images/insane_icon.png" alt="insane game icon" /></p>
<p>just for fun, i had written this (really simple) game for Android not long ago.  i decided that i should release it rather than keep it on my hard drive doing nothing.  it is really simple, but still, it is fun enough to try <img src='http://whatstheplot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>if you have an android phone, <a href="https://market.android.com/details?id=com.whatstheplot.insane" title="insane game" target="_blank">download it</a> a shot and let me know what you think &#8211; and if you have better graphical skills than i do, please feel free to send me some images <img src='http://whatstheplot.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2012/01/19/insane-game-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>core boids</title>
		<link>http://whatstheplot.com/blog/2011/07/10/core-boids/</link>
		<comments>http://whatstheplot.com/blog/2011/07/10/core-boids/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 00:05:12 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[boids]]></category>
		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=605</guid>
		<description><![CDATA[so it&#8217;s been nearly 6 years since i posted here about pyboids&#8230;  and since i love the idea of the boids algorithm so much (and was trying to play with core animation), i decided to try to write boids using core animation.  it&#8217;s imperfect, but it works (and, technically speaking, it is 3d, although i [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<p><a href="http://whatstheplot.com/images/coreboids-07.11.2011.png"><img class="alignright" title="coreboids!" src="http://whatstheplot.com/images/coreboids-07.11.2011.png" alt="coreboids screenshot" width="294" height="282" /></a>so it&#8217;s been nearly 6 years since i posted here about <a title="pyboids!" href="http://whatstheplot.com/blog/2005/08/06/pyboids/">pyboids</a>&#8230;  and since i love the idea of the boids algorithm so much (and was trying to play with core animation), i decided to try to write boids using core animation.  it&#8217;s imperfect, but it works (and, technically speaking, it is 3d, although i don&#8217;t really have the functionality to rotate and such to prove it&#8230; well, not yet anyway).</p>
<p>the cool thing is that (theoretically speaking), this same code can easily run (without many changes) on an iOS device.  core animation itself is really powerful &#8211; it helps make snazzy apps possible by making animations really simple (in many cases, core animation takes care of the animation for you, automagically and behind the scenes).</p>
<p>for those who don&#8217;t know, boids is an algorithm developed by <a title="craig reynolds" href="http://www.red3d.com/cwr/">craig reynolds</a> to simulate the flight of birds.  a good explanation (and pseudocode) of the algorithm can be found <a title="boids pseudocode" href="http://www.vergenet.net/~conrad/boids/pseudocode.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2011/07/10/core-boids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>death star for android released!</title>
		<link>http://whatstheplot.com/blog/2011/06/30/death-star-for-android-released/</link>
		<comments>http://whatstheplot.com/blog/2011/06/30/death-star-for-android-released/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 01:10:35 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[gamedev]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=592</guid>
		<description><![CDATA[dstar (well, death star as @wnafee chose to name it instead) is a simple puzzle game from the ti days. i posted a link to an html5 version a few days ago, and today, we&#8217;re releasing an ad-supported android version (just for fun).  it was done by @wnafee and i. it&#8217;s simple, but challenging &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>dstar (well, death star as <a title="@wnafee" href="http://twitter.com/wnafee">@wnafee</a> chose to name it instead) is a simple puzzle game from the ti days. i posted a link to an html5 version a few days ago, and today, we&#8217;re releasing an ad-supported android version (just for fun).  it was done by <a title="@wnafee" href="http://twitter.com/wnafee">@wnafee</a> and i.</p>
<p>it&#8217;s simple, but challenging &#8211; if you like puzzle games, try it out and see if you can beat all the 32 levels! you can find it on the <a title="android market" href="https://market.android.com/details?id=com.whatstheplot.dstar">android market</a>.</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://whatstheplot.com/images/ds.android.home.07.01.2011.jpg"><img title="dstar android home" src="http://whatstheplot.com/images/ds.android.home.07.01.2011.jpg" alt="screenshot of dstar android home" width="400" height="240" /></a><p class="wp-caption-text">dstar android home</p></div>
<p>here&#8217;s a screenshot of the <a title="dstar android level selector" href="http://whatstheplot.com/images/ds.android.levs.07.01.2011.jpg">level selector</a> and another of the <a title="dstar android gameplay screenshot" href="http://whatstheplot.com/images/ds.android.play.07.01.2011.jpg">game play</a>.  graphics by <a title="somaiagabr on twitter" href="http://twitter.com/somaiagabr">@somaiagabr</a>.  levels come partially from the <a title="ti83 version of dstar" href="http://www.ticalc.org/archives/files/fileinfo/50/5094.html">ti83 version</a> and partially from <a title="gstar" href="http://gstar.sf.net">gsta</a>r.  as far as i know, the game was originally made on the ti by <a title="joe w." href="http://joewing.net">joe w</a>, although i think there&#8217;s also an hp48 version somewhere as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2011/06/30/death-star-for-android-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dstar html5</title>
		<link>http://whatstheplot.com/blog/2011/06/19/dstar-html5/</link>
		<comments>http://whatstheplot.com/blog/2011/06/19/dstar-html5/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 13:38:46 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[gamedev]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=588</guid>
		<description><![CDATA[wanted to play around with html5, so came up with this html5 version of dstar.  it&#8217;s less than 100 lines of code (not including the levels and simple html).  it&#8217;s based on the ti and hp48 versions of the same game.  this version only has 2 levels.  graphics by @somaiagabr. source code could be better, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/code/dstar_html5/levels.js" title="levels javascript code"></a>wanted to play around with html5, so came up with <a title="dstar5 html" href="/code/dstar_html5/">this</a> html5 version of dstar.  it&#8217;s less than 100 lines of code (not including the levels and simple html).  it&#8217;s based on the ti and hp48 versions of the same game.  this version only has 2 levels.  graphics by <a title="somaiagabr on twitter" href="http://twitter.com/somaiagabr">@somaiagabr</a>.</p>
<p>source code could be better, but you can find the non-minified game logic <a title="dstar source" href="/code/dstar_html5/dstar.js">here</a> and the levels <a title="levels" href="/code/dstar_html5/levels.js">here</a>.  if i were to try to optimize this, i would start at the levels, since each level could be represented as 27 bytes (+2 bytes metadata) instead of 108 bytes.</p>
<p><strong>click <a href="/code/dstar_html5/" title="dstar html5">here</a> to play!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2011/06/19/dstar-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>quran android 1.3</title>
		<link>http://whatstheplot.com/blog/2011/05/28/quran-android-1-3/</link>
		<comments>http://whatstheplot.com/blog/2011/05/28/quran-android-1-3/#comments</comments>
		<pubDate>Sat, 28 May 2011 10:57:38 +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=555</guid>
		<description><![CDATA[al7amdulillah, quran android 1.3 has been released!  new features include improved ui and graphics, better page scrolling, multiple translations, basic search, and more! download it from the android market or check out the code on github!]]></description>
			<content:encoded><![CDATA[<p>al7amdulillah, <a title="Quran Android - Android Market" href="https://market.android.com/details?id=com.quran.labs.androidquran">quran android 1.3</a> has been released!  new features include improved ui and graphics, better page scrolling, multiple translations, basic search, and more!</p>
<p><a href="/images/qa1.3_title.png"><img class="alignnone" style="border: 4px solid white;" title="Quran Android 1.3 Title" src="/images/qa1.3_title.png" alt="" width="288" height="480" /></a><a href="/images/qa1.3_index.png"><img class="alignnone" style="border: 4px solid white;" title="Quran Android 1.3 Index" src="/images/qa1.3_index.png" alt="" width="288" height="480" /></a></p>
<p>download it from the <a title="quran android - android market" href="https://market.android.com/details?id=com.quran.labs.androidquran">android market</a> or check out the code on <a title="quran android - github" href="https://github.com/ahmedre/quran_android">github</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2011/05/28/quran-android-1-3/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>quran android 1.2</title>
		<link>http://whatstheplot.com/blog/2010/12/31/quran-android-1-2/</link>
		<comments>http://whatstheplot.com/blog/2010/12/31/quran-android-1-2/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 21:31:34 +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=534</guid>
		<description><![CDATA[in case you haven&#8217;t seen it, check out version 1.2 of quran android (released on december 23rd).  you can see screenshots and a more detailed change log on hussein&#8217;s blog. more features and improvements are in the pipeline.  feel free to check out the code on github and let us know if you have any [...]]]></description>
			<content:encoded><![CDATA[<p>in case you haven&#8217;t seen it, check out version 1.2 of <a title="quran android on appbrain" href="http://www.appbrain.com/app/quran-android/com.quran.labs.androidquran">quran android</a> (released on december 23rd).  you can see screenshots and a more detailed change log on <a title="quran android 1.2 - hussein's blog" href="http://hmaher.blogspot.com/2010/12/quran-android-12.html">hussein&#8217;s blog</a>.</p>
<p>more features and improvements are in the pipeline.  feel free to check out the code on <a title="quran android - github" href="https://github.com/ahmedre/quran_android">github</a> and let us know if you have any suggestions, thoughts, or contributions!</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/12/31/quran-android-1-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>searching the quran on ios</title>
		<link>http://whatstheplot.com/blog/2010/10/25/searching-the-quran-on-ios/</link>
		<comments>http://whatstheplot.com/blog/2010/10/25/searching-the-quran-on-ios/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 03:31:22 +0000</pubDate>
		<dc:creator>ahmedre</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[quran]]></category>
		<category><![CDATA[screenshots]]></category>

		<guid isPermaLink="false">http://whatstheplot.com/blog/?p=526</guid>
		<description><![CDATA[just for fun, here&#8217;s an ios universal version of the quran search application. screenshots: ipad:  1 (shown above) and 2. iphone: 1 and 2. you can find the source code here (update: added a link to a tar download and removed the code from github since i am not really maintaining this &#8211; june 26th, [...]]]></description>
			<content:encoded><![CDATA[<p>just for fun, here&#8217;s an ios universal version of the quran search application.</p>
<p><a href="http://whatstheplot.com/images/quransearch.ipad.1.10.25.2010.png"><img class="alignnone" style="border: 1px solid black;" title="ipad screenshot 1" src="http://whatstheplot.com/images/quransearch.ipad.1.10.25.2010.png" alt="" width="512" height="384" /></a></p>
<p>screenshots:</p>
<ul>
<li>ipad:  <a href="http://whatstheplot.com/images/quransearch.ipad.1.10.25.2010.png">1</a> (shown above) and <a href="http://whatstheplot.com/images/quransearch.ipad.2.10.25.2010.png">2</a>.</li>
<li>iphone: <a href="http://whatstheplot.com/images/quransearch.iphone.1.10.25.2010.png">1</a> and <a href="http://whatstheplot.com/images/quransearch.iphone.2.10.25.2010.png">2</a>.</li>
</ul>
<p>you can find the source code <a title="quran search ios" href="/code/quransearch_ios-10.26.2010.tar.bz2">here</a> (update: added a link to a tar download and removed the code from github since i am not really maintaining this &#8211; june 26th, 2011).</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/10/25/searching-the-quran-on-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>searching the quran on android</title>
		<link>http://whatstheplot.com/blog/2010/10/18/searching-the-quran-on-android/</link>
		<comments>http://whatstheplot.com/blog/2010/10/18/searching-the-quran-on-android/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 19:57:33 +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=524</guid>
		<description><![CDATA[just for fun, i hacked together a simple prototype of quran search on android. in reality, it&#8217;s more close to the autocomplete transliteration demo that i did some time back. for now, it&#8217;s only transliteration search, but later on, it can be expanded to search other languages. ultimately, it should probably be integrated into quran [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://whatstheplot.com/images/quransearch.completion-10.18.2010.png"><img class="alignnone" style="border: 1px solid black; margin-left: 4px; margin-right: 4px;" title="quran search android auto completion" src="http://whatstheplot.com/images/quransearch.completion-10.18.2010.png" alt="" width="285" height="475" /></a><a href="http://whatstheplot.com/images/quransearch.options-10.18.2010.png"><img class="alignnone" style="border: 1px solid black; margin-right: 4px; margin-left: 4px;" title="quran search android options" src="http://whatstheplot.com/images/quransearch.options-10.18.2010.png" alt="" width="285" height="475" /></a></p>
<p>just for fun, i hacked together a simple prototype of quran search on android. in reality, it&#8217;s more close to the autocomplete transliteration demo that i did some time back. for now, it&#8217;s only transliteration search, but later on, it can be expanded to search other languages. ultimately, it should probably be integrated into quran android.</p>
<p>you can find the source <a title="quran search android" href="/code/quransearch_android-10.26.2010.tar.bz2">here</a>.  (update: added a link to a tar download and removed the code from github since i am not really maintaining this &#8211; june 26th, 2011).</p>
]]></content:encoded>
			<wfw:commentRss>http://whatstheplot.com/blog/2010/10/18/searching-the-quran-on-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>4</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[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 usb stick. update (june 16, 2011) &#8211; @AhmedElGamil sent this post to @EtisalatMisr [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
#!/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>
<p><strong>update (june 16, 2011)</strong> &#8211; @<a title="Ahmed ElGamil on Twitter" href="http://twitter.com/AhmedElGamil">AhmedElGamil</a> sent this post to @<a title="Etisalat Misr on Twitter" href="http://twitter.com/EtisalatMisr">EtisalatMisr</a> over twitter, and they said they would forward it to the responsible team insha&#8217;Allah.  you can see the conversation on twitter <a title="@EtisalatMisr status on Twitter" href="http://twitter.com/#!/EtisalatMisr/statuses/76235255383728128">here</a>.</p>
<p>&nbsp;</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>
	</channel>
</rss>

