Thursday, December 2, 2010

UIAlertView Text Aligment

Below is the code to left align the text in UIAlertView.

UIAlertView *someAlert = [[UIAlertView alloc] initWithTitle:@”Alert" message:@”Here long Description goes." delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[someAlert show];
[someAlert release];
((UILabel*)[[someAlert subviews] objectAtIndex:1]).textAlignment = UITextAlignmentLeft;//left alignment

Thursday, February 4, 2010

DevFest 2010 developer conference in Hyderabad and Pune

Google is excited to announce DevFest 2010 developer conference in Hyderabad and Pune in the month of february and march. This event is focused on sharing latest offerings for Google developer products : App Engine, Maps APIs, Chrome Extensions and Orkut APIs.
More information and to register click here
http://sites.google.com/site/devfest2010/

Sunday, January 17, 2010

Configuration file is not well-formed XML-ApplicationHost.config

This is totally IIS configuration related issue as applicationHost.config marked as corrupted. You may get this error due to various reasons unmanaged restoration, erroneous editing of applicationHost.config, etc. Here I am going to show you quick recovery method without going any deep. Technically we are going to restore the applicationHost.config file form IIS generated backups by using AppCmd.exe command line tool.

Go to the Command Prompt.

Change the path to > %windir%\system32\inetsrv\

Find the current backup list > %windir%\system32\inetsrv\appcmd.exe list backup

Select the latest backup by sequence number
Restore the backup > %windir%\system32\inetsrv\appcmd.exe restore backup