Archive

Posts Tagged ‘iphone’

reading quran on the iphone

March 8th, 2009 ahmedre 8 comments

a long time ago, when i got my iphone, i realized that it would be nice to be able to read the quran on my phone. what i wanted was a way to read the arabic text on the phone (page by page, not ayah by ayah). anyhow, i’ll outline the solutions i’ve found here along with my preferred solution and how to set it up.

options

  • quran applications in the app store – there are a few in the app store, but only one version of iQuran is free. it shows you the text (ayah by ayah, however), has translations, and audio.
  • images – copy a set of 604 images to your iphone, with each image representing one page of the Quran. then, when you want to read Quran, you load up the photo viewer and read the pages there. you can find these images in many places. here is one example. this is the best solution for reading the Quran in Arabic if you don’t want to jailbreak your phone.
  • pdfs – in my opinion, the best way to read quran on the iphone (if you have a good pdf viewer). you don’t have to hassle with syncing images, nor do you have to deal with 604 files on your phone that you must go through in order to read Quran. also, pdfs tend to be of higher quality than images. this is the solution i recommend if you have or are willing to jailbreak your phone.

since the first solution is straight forward and instructions for the second solution are available on the link above, i will here outline instructions on how to use pdfs.

first, i need to point something out – you technically don’t need to jailbreak your phone to view the quran pdfs on it – you could download one of the apps in the appstore that views pdfs and use it. however, i’ve tried several of the free ones, and was never satisfied with the speed and performance of any of them. the best pdf viewer i found for the iphone is safari itself. so in order to be able to access these pdfs without a connection, you need to have a webserver running on your phone… and that is why you need to jailbreak your phone :)

preview
here are three screenshots of how it looks like:
menu
quran text
quran text (wide).

instructions

  1. jailbreak your phone. on an older iphone, this is easy (install the newest firmware via itunes, then install and run quickpwn). for the 3g iphone, carefully read the instructions on quickpwn’s website, especially if you want your phone to be unlocked and/or are already using it unlocked.
  2. once the phone is jail broken, run cydia. install openssh. then install lighttpd.
  3. when you’re on a wifi network, go to your phone’s settings (from the main screen), click on wifi, and choose the network that you are currently connected to by pressing the blue arrow – note down the value of the ip address
  4. ssh into your iphone as root – in linux or osx, just open a terminal and run “ssh root@[your phone's ip address]“. on windows, you can do this by downloading putty. the default password is alpine. keep this terminal open for the next step (recommendation – once you’re in, change your password. type passwd and choose something else besides the default. this is for security purposes).
  5. now you can set up lighttpd. download com.http.lighttpd.plist and scp it to /Library/LaunchDaemons (using mac/linux, just do scp com.http.lighttpd.plist root@[iphone's ip]:/Library/LaunchDaemons). on windows, download winscp, log in (user name root, password is ‘alpine’ unless you’ve changed it in the above step), navigate to /Library/LaunchDaemons, and copy the file over). this file is what will set up lighttpd to start every time the phone is started, and to read the lighttpd.conf from the path below.
  6. download lighttpd.conf and scp it to /etc. this is the configuration file for the webserver.
  7. download the pdfs and web files. unzip them (you’ll get a web directory), and scp this directory to /var/root/Media (so that the files will be in /var/root/Media/web/*). note that if you change this path, you have to edit lighttpd.conf to reflect wherever you put this.
  8. finally, in the terminal you opened in the earlier step, type the following command (this command is what ultimately makes lighttpd start everytime the phone is started):
    launchctl load -w /Library/LaunchDaemons/com.http.lighttpd.plist.

and that’s it… you should be good to go! open up safari and navigate to http://localhost/index.html and enjoy!

known issues

  • when transferring data to and from the phone (via ssh or scp), you want to make sure that you’re on wireless. you may also want to make sure the iphone doesn’t “sleep” so that the connection doesn’t drop.
  • sometimes, when you choose a particular file to read, you get a “cannot connect to server” error – it usually disappears and loads the page before you have a chance to click “ok.”
  • if you turn the iphone off while reading a pdf (or go to the main screen, etc), when you come back to safari, sometimes, the page may appear malformed and not allow you to read. to solve this problem, hit back to go to the index and choose a juz’ to reload it.

suggestions/additions/comments are welcome and appreciated.

update – i’ve been using batoul apps’ quranreader at the recommendation of a friend. it’s $1 in the app store, but well worth it.

Categories: islam, technology Tags: ,

thoughts on the g1

February 11th, 2009 ahmedre 2 comments

for some (crazy) reason, i decided to try out the g1 after reading gina’s article and finding a good deal on craigslist. the summary is – i think i am going to sell it and keep my iphone :)

thoughts so far:

  • it’s nice to have a keyboard – but something doesn’t feel right about it. i can’t quite put my hands on it yet.
  • no arabic fonts in the browser, and no arabization!! :( iphone doesn’t have it either, but third party solutions (iphone islam) exist that work very well.
  • touch screen isn’t multi touch. also, you have to press with your finger (not the finger tip) – pressing with the finger tip is useless.
  • gmail app totally rocks
  • integration with google (for gmail and calendar) rocks
  • integration with contacts is HORRIBLE. seriously. gmail, as you may know, makes a contact for every person you email. so if you sync your contacts as is with the phone, you’re looking at a ridiculous set of contacts. moreover, if you use the built in google syncing within address book, your address book gets sullied with all these random contacts, duplicates, etc. not very cool. i worked around this by using ab2csv exporter, exporting a csv, and importing it into google contacts under a specific group, then only syncing that group with the phone.
  • one odd caveat – you have to use the supplied usb cable to connect the hone to the pc and be able to mount the micro sd card. using any normal cable you may have (from a camera, for example) will charge the phone, but won’t work for mounting the micro sd card. took me a while to figure this out.

i upgraded the firmware, but haven’t played with google latitude yet (nor with the gps).

i may play with it some more, but at the time being, i am thinking of selling this and sticking with my iphone, as it feels a lot more polished. there are definitely some nice things about it that are missing from the iphone – gears, the fact it runs linux, development seems to be easier (java based), cut and paste, better camera, built in voice dialer, etc. but the iphone feels a lot more polished.

*update* – “compare everywhere” app rocks – iphone has an equivalent (snaptell, and the amazon app is good too), but it doesn’t scan barcodes. the english to arabic dictionary actually renders proper shaped arabic. apparently, some people have gotten arabic (the font and shaping) to work (though i am not sure if it’s throughout all the apps or not). they haven’t documented it all yet but should soon. i doubt it’ll be to the extent that arabization is done on the iphone, however. battery life is sup-par – went from 100% to 82% in a few minutes by installing and trying a handful of apps.

summary – iphone (even the first gen) still wins.

Categories: technology Tags: ,

whatstheplot: iphone edition ™

March 2nd, 2008 ahmedre No comments

thanks to the iwphone wordpress plugin, the blog now looks a lot better on the iphone!

speaking of the iphone, i am really disappointed at the notion that the long awaited sdk coming out on 3/6 will potentially be locked down. i guess we can’t know for sure until the announcement on thursday, but i personally have gone ahead and re-jailbroken my phone, courtesy of zibri’s ziphone.

Categories: technology, website Tags:

my thoughts on the iphone

July 12th, 2007 ahmedre 2 comments

so last thursday, i had the fabulous idea of purchasing an iphone, especially being that i was already in a cingular 2 year contract. so i picked up the 4gb model. after having used it for nearly a week now, here are my thoughts:

pros

  • the screen is amazing.
  • it has wifi.
  • safari on it is awesome.
  • the whole means of navigation (zooming with your two fingers in safari and google maps) is off the hook.
  • visual voicemail rocks! why wasn’t this available before!?
  • pull based email is good for personal email accounts.
  • the screen rotates when the device rotates which is really cool (accelerometer).

cons

  • no 3g. edge is slow! i guess usually, this is not a problem because you have wifi in most places these days, but still, in places with no wifi, 3g would be nice.
  • the phone voice quality is not that good – if you turn the volume on calls to maximum, the voice doesn’t sound right. the speaker phone also doesn’t get too loud.
  • the web browser has no arabic support!
  • no cut and paste… come on, this one should be obvious!
  • while one can supposedly play quicktime videos from within safari, i couldn’t play m3us or mp3s off of an ftp on it. not sure if that’s just me though…
  • no custom mp3 ringtones! you can only use one of the handful of preloaded ones.
  • no custom alarm tones! you have to use one of the handful of preloaded ones.
  • no games! what, so i have to be on the internet playing javascript games?
  • it comes with a youtube application, but only a fraction of all videos are available because they have to be encoded in a certain way. this is supposed to be fixed soon though.
  • no api! i want to write my own apps for it, but i can’t. people are working on it, but still…

so that’s my review in a nutshell. overall, a nice phone, but if they iron out some of those issues, it’d be incredible. a lot of those issues could be fixed by releasing a software update and opening up their api, but whether or not they’ll actually do it, only time will tell. in the meanwhile, hackers have done a good job playing with th internals of the phone, and its only a matter of time until we get unlocked iphones that will run custom applications.

Categories: technology Tags: ,