Sunday, January 31, 2010

PIT Solutions extends Blue Brain association

Technopark based PIT Solutions to partner Blue Brain Project

THIRUVANANTHAPURAM: PIT Solutions based at the Technopark in Thiruvananthapuram, which focuses on IT solutions to the small and medium sector, has extended its comprehensive IT support to the Blue Brain project.
The project is the first comprehensive attempt to reverse re-engineer the mammalian brain in order to understand brain function and dysfunction through detailed simulations.
PIT Solutions will continue to partner Dr Henry Markram, director of the Swiss Federal Institute’s (EPFL) Brain Mind Institute, for the Blue Brain project. Dr Markram said the mysteries of the mind could be solved, and that it was possible to have a supercomputer that models all the brain’s 100 trillion synapses.
The project attempts to build a computerized copy of a brain, starting with a rat’s brain, and progressing to a human brain, inside one of the world’s most powerful computers. The project hopes to bring into being a mind that will be able to think, reason, express will, lay down memories and perhaps even experience different emotions including love, anger, sadness, pain and joy.

Read More

Thursday, January 28, 2010

Start Developing iPad Apps Today

iPhone Developer Program Members can start developing the next generation of innovative applications for iPad with iPhone SDK 3.2 beta, now available in the iPhone Dev Center.

The iPhone Dev Center also provides members with additional resources including the iPad Programming Guide, iPad Human Interface Guidelines, Preparing Universal Applications, and sample code.

Apple iPad SDK available soon, offers iPad development alongside of iPhone development

Here It Is: Apple Unveils The iPad, SDK Coming Later Today

The traditional Mail and Calendar applications for the iPhone have received a welcomed update for the iPad, and developers will be able to get their hands on the SDK for the device later today in preparation for the upcoming launch.

Tuesday, January 26, 2010

Add work address filds to Addressbook contact programmatically

sample code..

//add work adress         ABMutableMultiValueRef multiAddress1 = ABMultiValueCreateMutable(kABMultiDictionaryPropertyType);                NSMutableDictionary *addressDictionary1 = [[NSMutableDictionary alloc] init];         if(address1_street)        [addressDictionary1 setObject:address1_street forKey:(NSString *) kABPersonAddressStreetKey];         if(address1_city)        [addressDictionary1 setObject:address1_city forKey:(NSString *)kABPersonAddressCityKey];         if(address1_state)        [addressDictionary1 setObject:address1_state forKey:(NSString *)kABPersonAddressStateKey];         if(address1_postalcode)    [addressDictionary1 setObject:address1_postalcode forKey:(NSString *)kABPersonAddressZIPKey];         if(address1_country)    [addressDictionary1 setObject:address1_country forKey:(NSString *)kABPersonAddressCountryKey]; ABMultiValueAddValueAndLabel(multiAddress1, addressDictionary1, kABWorkLabel, NULL); [addressDictionary1 release]; ABRecordSetValue(aRecord, kABPersonAddressProperty, multiAddress1, &anError); CFRelease(multiAddress1);

Tuesday, January 5, 2010

iPhone : Update Addressbook contact

Hope you know how to add a contact to AddressBook,
And have stored the recordid in our application while adding.

following is the piece of code to get the contact id in Addressbook
ABAddressBookAddRecord (addressBook, aRecord, &error);
if(ABAddressBookSave ( addressBook, &error)){

recordid = ABRecordGetRecordID (aRecord);

Update a record
inputs are recordid, NSString* firstName,lastName,companyName

ABAddressBookRef addressBook = ABAddressBookCreate();

ABRecordRef aRecord = ABAddressBookGetPersonWithRecordID(addressBook, recordid);

/*** update firstname, lastname, company name **/
CFErrorRef error = NULL;

if([firstName length]==0) firstName = nil;

ABRecordSetValue(aRecord, kABPersonFirstNameProperty, firstName, &error);
if([lastName length]==0) lastName = nil;
ABRecordSetValue(aRecord, kABPersonLastNameProperty, lastName, &error);
if(companyName!= nil){

if([companyName length]==0) companyName = nil;
ABRecordSetValue(aRecord, kABPersonOrganizationProperty, companyName, &error);

CFErrorRef error = NULL;
BOOL isSaved = ABAddressBookSave ( addressBook, &error);