Search This Blog

Friday, January 29, 2010

SVN address change Operation

svn info
svn stat

vi /etc/hosts

find . -name entries | xargs perl -pi -e 's/older-IP/New-IP/

svn switch --relocate svn://MingZ@10.0.1.136 svn://MingZ@dublin-svn

Thursday, January 28, 2010

HOW TO DISPLAY PHONE NUMBER(IPHONE)




[[NSUserDefaults standardUserDefaults] valueForKey:@"SBFormattedPhoneNumber"];


Don't forget set Phone-number in your iPhone's setting.

Saturday, January 23, 2010

Linux(Ubuntu) set password of Root

After Ubuntu be installed, the password of root is "NULL",Since you did not set password
for root,However your first user account was admin "User" ,So you can login your first User and set password for root , so ...

sudo passwd root
[sudo] password for you :---> input your password
Enter new UNIX password: --- > Set password for root
Retype new UNIX password: --> Reset

Friday, January 8, 2010

problem of "[super dealloc]"


- (void)dealloc {
[super dealloc];
[a release];
[b release];
}


- (void)dealloc {
[a release];
[b release];
[super dealloc];
}


What's the difference between them?

If a or b extends super!!!!! [super dealloc] at front will lead problems