Sunday, June 28, 2009

Tethering iPhone over any network

Peace be upon you
I have figured out away to tether your iPhone with any mobile network, let us start

The first thing we will need is to write the configuration file, Here is link for sample configuration file, actually it is working for Egypt Mobinil users

http://cid-e2c1100334a33877.skydrive.live.com/self.aspx/.Public/MISC/eg%7C_mobinil.mobileconfig

Now, for each network it will need little bit of effort to make it work, we have to edit the configuration file, here is snapshot for the keys that is going to be modified


"APN" , this is the string that has the Access Point Gateway, you can get this from the operator, or u can get it from any phone with internet capabilities ,


"password" , This is the access point password, get it from the Operator


"Username", This is the access point username, get it from the Operator

"PayloadIdentifier", becareful with this one, because it may change something that u don't deser, I recommend for this one is to be like this pattern "..profile.apn"


for instance

eg.mobinil.profile.apn

This keys is the keys that have effect and will make your tethering work.


After that, put the file on a Web Server and log to it from Safari mobile and install it













Happy tethering :)


Thanks for your time.


BR

Ahmed Essam

Sunday, June 07, 2009

Cheap way to develop for iPhone

Peace be upon you

How are you guys? I am sorry for not posting a lot.
Today I am gonna write how to start iPhone development in a very cheap way, first let us talk about why, I thought about that.
In Egypt we have don't have Apple it self, we have punch of people who has the reseller logo, they offer SUCK service, high prices for nothing, they are even not cool in manner of human treatment, it is like "we sell Apple products, we are from heaven (YAKHHHHH)"
anyways, I have noticed that people likes the idea of developing for the iPhone and how it can get quite good money for simple application, this is happen because of the huge number which is use 1 place to shop for software "App store", the only thing that makes people step back is the prices of the Apple machines, in Egypt we pay double prices so there is always something to be done to get out of this CRAP, high price and need of equipment, so I have started messing around the netbooks as a low end machines that can do HELL of things (little monster)

so what do u need to start?
 - MSI Wind U123x
 - Externel DVD reader
 - Mac OS X (10.5.2 (this what I have tried) or higher) -> Kalyway (get it from http://wiki.osx86project.org/wiki/index.php/Main_Page )
 - Combo Update to (10.5.3)
 - iPhone SDK (get it for free from http://developer.apple.com/iphone )
 - Chain0 (get it from http://wiki.osx86project.org/wiki/index.php/Chain0 )

Here is snapshots for what the operation 

Insert the Mac OS X Kalyway DVD and boot

From the customize screen select the proper kernel and VGA driver 
Now after installing the combo update (VERY TRICKY to be installed) and installing the XCode and iPhone SDK everything up and running and 100% running 

Screen shot from the MSI Wind U123x after having a simple trail.

I will post in detail how to make everything running, I have exams this days so pray for me and I hope that I have much time for my BELOVED blog and BELOVED readers, I really miss the nice feeling when I write something

Thanks for your time.
BR
Ahmed Essam

Saturday, May 09, 2009

NSOpreation

Peace be upon you

How are you guys? I am sorry that it has been long time since last post, but I have exams, work and my beloved iPhone projects.

Now, let us get to the point of todays post, it is about something called NSOpreation and NSOpreationQueue, this classes are part of the "iPhone Threading programming", which means that this things are mostly used when u do some threading in the iPhone app

The point here that makes me really get stunned was that this thing manages that queue of tasks, it is really critical to have something like that done for you, this thing manages that threads combined with locks combined with queue management, imagine that you have some kind of big thing, I will never have example better than Standford CS193p sample, flicker, imagine that you get some list of information from flicker and u wanna display it, considering that it is coming from the web, it will take some time, so there will be a need to handle it really wisely to make user feels Ok and don't get bored from your application, if I am going to do it on Windows, I may use "Threads", "Locks" to handle it and I think it will be a bit headache.

In the iPhone development "as far as I know such class is not exist for Mac OS yet", this classes will save all that time that will be sucked by implement this stuff, I really recommend downloading the sample and check it out, it is available online on the CS193p page, I really wish that I have some time to write example to show you how much it can be efficient to use such thing.
ohh, I forgot to mention that iPhone considered a subset of unix, which means internally it uses the pthread, I think it has all the POSIX , can u imagine that this little device runs UNIX :D

anyways, it was nice writing to you :) and I hope u like it as I do ;)

thanks for your time.

BR
Ahmed Essam