Thursday, September 3, 2009

Xcode: The centerpiece of developer tools.

The centerpiece of the developer tools included with Mac OS X is the Xcode application. Xcode is a full-featured IDE for developing Mac applications and includes a world-class code editor, a graphical debugger, and integrated Objective-C, C, and C++ compilers. Xcode has intimate knowledge of the Cocoa frameworks that power Mac OS X, and it is even able to identify bugs by analyzing the code you write — without running the application. The intuitive development experience makes it easy to get your first application up and running, yet Xcode is so powerful that Mac OS X itself is built using the exact same toolset.

MAC OS X

Mac OS X is the world’s most advanced operating system. Built on a rock-solid UNIX foundation and designed to be simple and intuitive, it’s what makes the Mac innovative, highly secure, compatible, and easy to use. Quite simply, there is nothing else like it.

Tuesday, August 18, 2009

Android

Android is a "just another mobile Linux" ,which is a software stack for mobile devices that includes an operating system, middleware and key applications. The beta version of the Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.We have explored & implemented many of the Android's features for its application development.Some of them are
  • Application framework enabling reuse and replacement of components
  • Dalvik virtual machine optimized for mobile devices
  • Integrated browser based on the open source WebKit engine
  • Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)
  • SQLite for structured data storage
  • Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
  • GSM Telephony (hardware dependent)
  • Bluetooth, EDGE, 3G, and WiFi (hardware dependent)
  • Camera, GPS, compass, and accelerometer (hardware dependent)
  • Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

PHP Development


PHP
a recursive acronym for "Hypertext Preprocessor", is an open-source server-side scripting language designed for creating robust and reliable dynamic Web pages for e-commerce and other mission critical Web applications.PHP has introduced number of bonus new features that can help you write better code and gain access to new functionality.Some of them are :
  • SimpleXML or SXML is a great extension that makes manipulating XML data a breeze.
  • JSON and SOAP support for web service functionality built into PHP 5 through the JSON and SOAP interfaces which makes PHP a viable choice for complex backend applications.
  • PDO seems to be one of the great mysteries of PHP 5. it allows developer to access their database of choice using a simple, consistent interface that promotes good coding practices and provides important functionality.
  • SPL Standard PHP Library allows userland code to present itself as one of a number of built-in PHP language elements like arrays.
  • SQLite is a simple but full-featured DBMS packs all the punch of MySQL in a format that doesn't require a database server and runs on every platform on which PHP 5 can be compiled.

Monday, August 17, 2009

iPhone SDK


  • Cocoa Touch
    • Multi-touch events and controls
    • Accelerometer support
    • View hierarchy
    • Localization (i18n)
    • Camera support
  • Media
    • OpenAL
    • audio mixing and recording
    • Video playback
    • Image file formats
    • Quartz
    • Core Animation
    • OpenGL ES
  • Core Services
    • Networking
    • Embedded SQLite database
    • Core Location
    • Threads
  • OS X Kernel
    • TCP/IP
    • Sockets
    • Power management
    • File system
    • Security

Flash in iPhone

The iPhone OS does not support Flash. Adobe has announced plans to release a version of its Flash Lite software as a third-party application for the iPhone, though it has not yet launched. Furthermore, Flash Lite supports only a subset of the features of standard Flash. Unofficially, Flash videos can be viewed by using a jailbroken iPhone with certain third-party applications such as iMobileCinema.

Java in iPhone

Apple has not announced any plans to enable Java to run on the iPhone. Sun MicrosystemsJava Virtual Machine (JVM) for iPhone OS, based on the Java Platform, Micro Edition version of Java. This would enable Java applications to run on iPhone and iPod Touch. announced plans to release a Soon after the announcement, developers familiar with the SDK's terms of agreement believed that by not allowing 3rd-party applications to run in the background (answer a phone call and still run the application, for example),allowing an application to download code from another source, or allowing an application to interact with a 3rd-party application (Safari with JVM, for example), it could hinder development of the JVM without Apple's cooperation.

It is clear that Java running on the iPhone is outside the bounds of the iPhone SDK Agreement. The guideline in question is rule 3.3.2, which reads: 3.3.2 — An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s). However, some iPhone users have shown that it was possible to install and use a J2ME stack on an iPhone, though it involved jailbreaking. It has also been revealed that there were talks between Sun and Apple concerning the availability of Java on the iPhone, and that Sun was working in that intent with a company called Innaworks.

Since its required that all ARM9 or later processors include Jazelle support, the iPhone includes the hardware for accelerated Java execution.
It has also been revealed that there were talks between Sun and Apple concerning the availability of Java on the iPhone, and that Sun was working in that intent with a company called Innaworks. Since its required that all ARM9 or later processors include Jazelle support, the iPhone includes the hardware for accelerated Java execution.

Friday, August 14, 2009

What is MySQL?

MySQL is a backbone of any application developed with LAMP.It tightly holds data but very smooth with integration with PHP or APACHE applications. Below Features are the proof of it :


  • Scalability and Flexibility
  • High Performance & Availability
  • Robust Transactional Support
  • Web and Data Warehouse Strengths
  • Strong Data Protection & Comprehensive Application Development

What is PHP?

  • PHP stands for PHP: Hypertext Preprocessor
  • PHP is a server-side scripting language, like ASP
  • PHP scripts are executed on the server
  • PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
  • PHP is an open source software
  • PHP is free to download and use

Wednesday, August 5, 2009

iPhone Technology

Multi-Touch
With its large Multi-Touch display and innovative software, iPhone lets you control everything using only your fingers. How does it work? A panel underneath the display’s glass cover senses your touch using electrical fields. It then transmits that information to an LCD screen below it. The display also features an oil-resistant coating that keeps the iPhone screen clean.


Accelerometer
iPhone responds to motion using a built-in accelerometer. When you rotate iPhone from portrait to landscape, the accelerometer detects the movement and changes the display accordingly. The accelerometer also gives you amazing game control.

Sensors
When you lift iPhone to your ear, the proximity sensor immediately turns off the display to save power and prevent accidental dialing. The ambient light sensor in iPhone automatically brightens the display when you’re in sunlight or a bright room and dims it in darker places.

Accessories in iPhone

A way to connect:
Apps for iPhone and iPod touch can now communicate with accessories via the dock connector or wirelessly over Bluetooth.Enhance your accessory by developing an iPhone app to extend its functionality, or create entirely new integrated solutions that combine an iPhone app with dedicated hardware. For example, you can display a fully interactive Multi-Touch equalizer for your speaker system. Create an inventory app for your barcode reader. Or, build an app that logs and tracks the readings from an attached heart-rate monitor. The potential solutions are limitless.

Create your own protocol:
As with current Made for iPod accessories, your accessory can use Apple-provided protocols to control music and video playback in the iPod app. With iPhone SDK 3.0, you can also create your own custom protocols to exchange data and commands with your app. Use the new Accessory APIs to allow your app to communicate with and control your accessory.To learn how to add support for iPhone apps in your dock connector or Bluetooth accessory, join the Made for iPod and Works with iPhone Licensing Program and the iPhone Developer Program.

iPod Library Access

Audio content on tap:
With iPhone SDK 3.0, you can access a user’s music, podcasts and audio books from within your app. You can even leverage a user’s custom, On-The-Go, Genius and Smart playlists.For example, you could create a trivia game that uses the metadata of the user’s songs. Improve on an arcade game by using a playlist as its soundtrack, or add the ability to listen to podcast lectures in a note taking app. You can make almost any app more enjoyable by bringing a user’s personal music and audio choices into your app.


Take control:
Once you have access to the music and playlists, you have full control of the playback. You can play, pause, shuffle and repeat. While the user is listening to an audio track, you can follow where they are and even move to a specific part.

Playlists on-the-fly:
You can also build playlists using custom searches. Leveraging all of the metadata in the audio files, you can create custom playlists that match particular criteria. For example, if you want your app to play all of the podcasts from yesterday—you can build that from a search on Date Created and Content Type.

Peer to Peer Connectivity

One-on-one games:
Some games are just not the same when you’re playing against the computer—word games, chess and other strategy games are so much better when you’re playing against another person. You can now create games that are easy to set up and play between two devices, whether it’s an iPhone or an iPod touch.

Easily connect:
The new Game Kit framework opens new opportunities for developers to easily create peer-to-peer apps.Game Kit provides the user interface for initiating a multi-player game, and a data transfer API to share game state. When incorporated into a game, it will automatically discover if the same game is running on other nearby iPhones or iPod touches, allow the user to connect to one of them through Bluetooth, and start sharing game state over a standard IP-based communication channel. The automatic discovery is handled by Bonjour. And making the connection doesn’t require pairing, so it works seamlessly for everyone involved.

Not just for games:
While Game Kit has been designed for games, it can used for any kind of app to share information between iPhones and iPod touches. Use it to exchange business contacts. Share a photo with a friend. Or send a short note to someone nearby.

In game voice:
Game Kit also provides a real-time voice chat API. You provide the network connection, the in game voice capability provides the underlying services to capture your voice through the microphone, transmit it to another player and then playback their responses.

In App Purchase


Flexible payments:
In app purchase gives you the flexibility to support a variety of business models. You can offer your customers additional services and content within your paid app.For example, you can create a subscription magazine app where you ask for payment on a monthly, yearly or periodic basis of your choice. Sell extra levels to extend the experience of your game. Build a general-purpose city travel guide app and let your customers pick the city guides they want to purchase. This new capability opens up many new business opportunities.


You create the app, we'll bring the cash register:
The new Store Kit framework provides the functionality to process payments via the iTunes Store. You submit items to the store and set their price. When a customer chooses to purchase an item, your app creates a payment request and sends it to the iTunes Store for processing. After the iTunes Store verifies and approves the payment, your app is notified so that it can provide features or additional content.


Familiar business terms:
In app purchase uses the same business terms used for apps sold on the App Store. You receive 70% of the purchase price of each item you sell within your app, paid to you on a monthly basis—no credit card fees apply.

Apple Push Notification service

Apple Push Notification
Apple Push Notification service is to keep users up-to-date. This service will benefit a wide variety of applications. e.g., A sports application can now give key game updates even when the appication isn’t running. A chat application can display the latest response in a conversation. Task management applications can track how many tasks you have yet to approve.

Attention Getter
There are a number of ways to send a push notification. Send a message with text that lets the user launch your app. Trigger audible alerts with your own custom sounds. Add a numbered badge to your app icon when it’s important to let the user know how many things are waiting for them.

Optimization for mobile
The Apple Push Notification service is designed with the mobility needs of iPhone and iPod touch users in mind. Most of the heavy lifting is handled between your servers and ours, so there’s less impact on battery life and performance than there would be if you ran the app in the background. The service maintains a persistent IP connection so that it can notify users even when your app isn’t running. We’ve optimized the service to adapt to all different configurations of mobile networks that the iPhone runs on so you don’t have to.

Monday, August 3, 2009

Map View in iPhone

#import "MatchProfile_MapController.h"
#import "POL.h"

@implementation MatchProfile_MapController
@synthesize intTag1;

- (void)viewDidLoad {

self.navigationItem.title=@"Select Person";
appdelegate=[[UIApplication sharedApplication]delegate];

for(int i=0;i<[appdelegate.arrayRecentCompatible count];i++)
{
NSMutableDictionary *dic=[appdelegate.arrayRecentCompatible objectAtIndex:i];

CLLocationCoordinate2D coord;
coord.latitude =[[dic valueForKey:@"Latitude"] doubleValue];
coord.longitude =[[dic valueForKey:@"Longitude"] doubleValue];

POL *poi = [[POL alloc] initWithCoords:coord];
poi.title =[dic valueForKey:@"Name"];
poi.subtitle =[dic valueForKey:@"Country"];
poi.img1=[UIImage imageNamed:[dic valueForKey:@"Image"]];
poi.intTag=i;
[mapView addAnnotation:poi];
}

mapView.delegate=self;

MKCoordinateRegion zoomIn = mapView.region;
zoomIn.span.latitudeDelta *=5;
[mapView setRegion:zoomIn animated:YES];
[super viewDidLoad];
}
- (MKAnnotationView *) mapView:mapView viewForAnnotation:(id ) annotation
{

newAnnotation = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@""];
[newAnnotation setPinColor:MKPinAnnotationColorGreen];
newAnnotation.animatesDrop = YES;
newAnnotation.canShowCallout = YES;
POL *TempPOL=(POL*) annotation;

UIButton *btnRow1=[[UIButton buttonWithType:UIButtonTypeCustom]retain];
btnRow1.frame=CGRectMake(0, 0, 25, 30);
[btnRow1 setBackgroundImage:TempPOL.img1 forState:UIControlStateNormal];
[btnRow1 addTarget:self action:@selector(selectUSer:) forControlEvents:UIControlEventTouchUpInside];
btnRow1.tag=TempPOL.intTag;
newAnnotation.leftCalloutAccessoryView=btnRow1;

UIButton *btnRow2=[[UIButton buttonWithType:UIButtonTypeDetailDisclosure]retain];
[btnRow2 addTarget:self action:@selector(selectUSer:) forControlEvents:UIControlEventTouchUpInside];
btnRow2.tag=TempPOL.intTag;
newAnnotation.rightCalloutAccessoryView=btnRow2;
return newAnnotation;
}

#pragma mark -
#pragma mark Memory methods

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}

- (void)viewDidUnload {
}

- (void)dealloc {
[super dealloc];
}


#pragma mark -
#pragma mark Methods

-(IBAction)selectUSer:(id)sender
{
if(objProfile==nil)
objProfile=[[ProfileViewController alloc]initWithNibName:@"ProfileViewController" bundle:nil];

for(int i=0;i<4;i++)
{
NSMutableDictionary *dic=[appdelegate.arrayRecentCompatible objectAtIndex:i];

UIButton *btn=(UIButton*)sender;

if(btn.tag==i)
{
objProfile.intPerson=i;
objProfile.strTitle=[dic valueForKey:@"Name"];
}
}

[self.navigationController pushViewController:objProfile animated:YES];
}

@end

364 days left to launch iPhone 4G

Now that the iPhone 3G S is officially behind us, let me be the first--or at least one of the first--to announce the countdown to the next new iPhone. If history is any indication, it should show up right around this time next year.Interestingly, even though the 3G S is technically Apple's third-generation iPhone, some tech pundits were expecting the iPhone 3G S to be called the iPhone 4G. But you could also argue that the iPhone 3G S is more like the iPhone 3.5G, which doesn't have the greatest ring.There's also a chance that in between the iPhone 3G S and iPhone 4G (or whatever it's called), we might see a totally new branch of iPhone, something akin to an iPhone Mini or Lite.I'm not sure Apple needs to answer to the smaller form factor of the Palm Pre, but there are some people out there who think the iPhone's just a tad too big. And there are some people who want a physical keyboard, but don't count on Apple slipping in a slide-out keyboard anytime soon.

All that said, I do think next year's iPhone will feature a new design that also includes a new screen. Some mock-ups floating around have suggested the aluminum unibody design of the new MacBooks. That's possible, but so are a host of other innovative industrial designs.
The point is, the next go-round, it's probably not enough to just stick with upgraded internal components. Some significant cosmetic changes will be required to differentiate the generations and more easily entice upgrades by existing iPod owners. And I'm not talking matte vs. shiny finish.Ultimately, however, it's what's inside that counts and consumers are always wanting faster, more powerful smartphones with more memory that somehow manage to be more energy-efficient and offer better battery life. There's already talk of the next iPhone having a dual-core processor and better graphics chips that can deliver higher video resolutions and better still images when taking pictures (read Brooke Crothers' story on new ARM chips here).The question is whether Apple can continue to increase battery life at the same time. In fact, one big reason a lot of people are interested in upgrading from the 3G to the 3G S is because of the improved battery life.Beyond the hardware, there are still features concerns to address (everybody has their wishlist) and more importantly, carrier and pricing plan issues. Someday, some other carrier, perhaps Verizon, which is preparing to build out a 4G network, will get the iPhone. And someone, maybe Apple, will declare that iPhone the iPhone 4G. Or maybe it'll just be the 3G V. All I know is that come this time next year, we'll most likely be seeing a new iPhone. And it will be here before you know it.

Comments? Aside from a carrier choice, what are looking for in a true 4G iPhone?

Finding and Viewing Locations

For important information about driving and navigating safely, see the Important Product Information Guide.Maps provides street maps, satellite photos, a hybrid view, and street views of locations in many of the world’s countries. You can get detailed driving, public transit, or walking directions and traffic information. Find and track your current (approximate) location, and use your current location to get driving directions to or from another place. The built-in digital compass lets you see which way you’re facing. (iPhone 3GS only).

Note: Maps, digital compass (iPhone 3GS only), directions, and location-based applications provided by Apple depend on data collected and services provided by third parties. These data services are subject to change and may not be available in all geographic areas, resulting in maps, compass headings, directions, or location-based information that may be unavailable, inaccurate, or incomplete. Compare the information provided on iPhone to your surroundings and defer to posted signs to resolve any discrepancies. In order to provide your location, data is collected in a form that doesn’t personally identify you. If you don’t want such data collected, don’t use the feature. Not using this feature won’t impact the non–location-based functionality of your iPhone.

Find a location and see a map:

1. Tap the search field to bring up the keyboard.

2. Type an address, intersection, area, landmark, bookmark, contact, or zip code.

3. Tap Search.

Sunday, August 2, 2009

Hacking iPhone by Hackers


Canadian iPhone users may want to think about hanging up for a while if two hacker heavyweights prove they can infiltrate the system and put a worm inside the Apple.

Charlie Miller and Collin Mulliner say they've found a security-weakness in Apple's iPhone which would allow a hacker to gain control of the device by sending one single SMS - or text message - and they're giving a how-to talk Thursday at the 2009 Black Hat security conference in Las Vegas.

Once the technique is made public, it won't be long before it ends up going viral on YouTube and hacker message boards around the globe.Miller, one of the top computer hackers in the U.S. and Mulliner, a PhD student at Technical University of Berlin, focusing on the security of mobile devices, say they found the vulnerability in June and alerted Apple to the problem, but the computer giant hasn't come out with any official statement or a security update to combat the problem. Apple didn't immediately return calls to Canwest News Service Thursday.

Canadian Tech-guru, Jesse Hirsh says if the hackers have cracked the code there is little iPhone users can do, for now.

Almost every mobile-phone user, worldwide, uses text-messaging daily, if not hourly, so Canada's iPhone users are just as vulnerable as those in the rest of the world, said Hirsh.

He said users should think of the iPhone as a computer, which is vulnerable to hacking.



iPhone 3GS

iPhone 3GS is the latest iPhone launched by apple.

If it ain't broke, don't fix it -- right? We know countless reviews of the iPhone 3GS may begin with that cliché, but there's little chance you'd find a better way to describe the strategy that Apple has just put into play with its latest smartphone. In many ways, the 3GS is a mirror image of the iPhone 3G; externally there's no difference. It's inside where all the changes have happened, with Apple issuing a beefed-up CPU, new internal compass, larger capacities for storage, and improved optics for its camera. More to the point, the release of the 3GS coincides with the launch of iPhone OS 3.0, a major jump from previous versions of the system software featuring highly sought after features like cut, copy, and paste, stereo Bluetooth, MMS, tethering, video recording, landscape keyboard options for more applications, and an iPhone version of Spotlight. At a glance, what Apple seems to be doing is less a reinvention of the wheel and more like retreading the wheel it's already got (and what a wheel, right?). So, do the iPhone 3GS and OS 3.0 tweak the details in just the right places, or has Apple gone and gotten lazy on us? Read on to find out.