Archive

Archive for the ‘code’ Category

Insane Game for Android

January 19th, 2012 No comments

insane game icon

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 let me know what you think – and if you have better graphical skills than i do, please feel free to send me some images :P

Categories: code, gaming Tags:

core boids

July 10th, 2011 No comments

coreboids screenshotso it’s been nearly 6 years since i posted here about pyboids…  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’s imperfect, but it works (and, technically speaking, it is 3d, although i don’t really have the functionality to rotate and such to prove it… well, not yet anyway).

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 – 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).

for those who don’t know, boids is an algorithm developed by craig reynolds to simulate the flight of birds.  a good explanation (and pseudocode) of the algorithm can be found here.

Categories: code Tags: ,

death star for android released!

June 30th, 2011 2 comments

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’re releasing an ad-supported android version (just for fun).  it was done by @wnafee and i.

it’s simple, but challenging – if you like puzzle games, try it out and see if you can beat all the 32 levels! you can find it on the android market.

screenshot of dstar android home

dstar android home

here’s a screenshot of the level selector and another of the game play.  graphics by @somaiagabr.  levels come partially from the ti83 version and partially from gstar.  as far as i know, the game was originally made on the ti by joe w, although i think there’s also an hp48 version somewhere as well.

Categories: code, gaming Tags: ,

dstar html5

June 19th, 2011 No comments

wanted to play around with html5, so came up with this html5 version of dstar.  it’s less than 100 lines of code (not including the levels and simple html).  it’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, but you can find the non-minified game logic here and the levels here. 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.

click here to play!

Categories: code, technology Tags: ,

quran android 1.3

May 28th, 2011 21 comments

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!

Categories: code, islam Tags: , ,

quran android 1.2

December 31st, 2010 3 comments

in case you haven’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’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 suggestions, thoughts, or contributions!

Categories: code, islam Tags: ,

searching the quran on ios

October 25th, 2010 No comments

just for fun, here’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 – june 26th, 2011).

Categories: code, islam Tags: , ,

searching the quran on android

October 18th, 2010 No comments

just for fun, i hacked together a simple prototype of quran search on android. in reality, it’s more close to the autocomplete transliteration demo that i did some time back. for now, it’s only transliteration search, but later on, it can be expanded to search other languages. ultimately, it should probably be integrated into quran android.

you can find the source here.  (update: added a link to a tar download and removed the code from github since i am not really maintaining this – june 26th, 2011).

Categories: code, islam Tags: , ,

quran android released!

August 11th, 2010 4 comments

quran android qr code

ramadan kareem! just in time for ramadan, we’ve released the first version of Quran Android. download it and let us know what you think! the source code is on github.

Categories: code, islam Tags: ,

what on earth, etisalat?

July 19th, 2010 No comments
#!/bin/sh
APP_NAME="Etisalat_3.5G_USB_Modem"
APP_PATH="/Applications/Mobile Partner.app"

sudo chmod -R a+rwx "$APP_PATH"

chmod -R a+rw "/usr/local/"

the above code snippet is from the first few lines of one of the etisalat 3g usb modem’s postinstall script on osx – 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) – @AhmedElGamil sent this post to @EtisalatMisr over twitter, and they said they would forward it to the responsible team insha’Allah.  you can see the conversation on twitter here.

 

Categories: code Tags: