본문 바로가기

others

facebook note에 있던 잡다한것들..

jQuery opener 사용법 - 2011년 11월 7일 월요일 오후 4:00

$(opener.document).find("#receiverSection").load("");

$("#receiverSection", opener.document).load("");

cmd codepage 변경 - 2011년 10월 6일 목요일 오후 6:57

change codepage프롬프트 : chcp [codepage]

437 영어 (The original IBM PC code page)

737 그리스어

775 에스토니아, 리투아니아, 라트비아

850 다국어(라틴어 I) 서유럽 언어

852 슬라브어(라틴어 II)

855 키릴 자모(러시아어)

857 터키어

858 다국어(width 유로 심볼)

860 포르투갈어

861 아이슬란드어

862 이스라엘, 헤브라이어

863 프랑스어(캐나다)

865 노르딕

866 키릴 자모

869 현대 그리스어

874 태국어

932 일본어

949 한국어

950 Traditional Chinese characters, 대만

1258 베트남어

65000 — 유니코드 UTF-7

65001 — 유니코드 UTF-8 Unicode

Mac OSX 버전 - 2011년 6월 23일 목요일 오전 10:26

맥을 처음으로 사용하니 OS에 대한 지식이 없다.

10.0 치타(Cheetah)

10.1 퓨마(Puma)

10.2 재규어(Jaguar)

10.3 팬서(Panther)

10.4 타이거(Tiger)

10.5 레퍼드(Leopard)

10.6 스노 레퍼드(Snow Leopard)

10.7 라이온(Lion)

XCode Simulator에 어플 한꺼번에 제거 -  2011년 6월 21일 화요일 오후 12:36

/Users/사용자명/Library/Application Support/iPhone Simulator/ 아래 모든 폴더 삭제!!

Objective-C KVC 연산자 - 2011년 6월 16일 목요일 오후 6:16

//Key-Value Coding에서 값가져올때 대충 이렇게 사용함

 

NSMutableDictionary *people1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:

@"lee", @"name",

@"mail", @"gender",

[NSNumber numberWithInt:34], @"age",

nil];

NSMutableDictionary *people2 = [NSMutableDictionary dictionaryWithObjectsAndKeys:

@"kim", @"name",

@"femail", @"gender",

[NSNumber numberWithInt:22], @"age",

nil];

NSMutableDictionary *people3 = [NSMutableDictionary dictionaryWithObjectsAndKeys:

@"park", @"name",

@"mail", @"gender",

[NSNumber numberWithInt:43], @"age",

nil];

NSMutableDictionary *people4 = [NSMutableDictionary dictionaryWithObjectsAndKeys:

@"song", @"name",

@"femail", @"gender",

[NSNumber numberWithInt:32], @"age",

nil];

NSMutableDictionary *people5 = [NSMutableDictionary dictionaryWithObjectsAndKeys:

@"lee", @"name",

@"femail", @"gender",

[NSNumber numberWithInt:29], @"age",

nil];

 

NSMutableArray *peoples = [NSMutableArray arrayWithObjects:people1, people2, people3, people4, people5, nil];

 

NSLog(@"name : %@", [peoples valueForKey:@"name"]);

NSLog(@"gender distinct : %@", [peoples valueForKeyPath:@"@distinctUnionOfObjects.gender"]);

NSLog(@"age min : %@", [peoples valueForKeyPath:@"@min.age"]);

NSLog(@"age max : %@", [peoples valueForKeyPath:@"@max.age"]);

NSLog(@"age avg : %@", [peoples valueForKeyPath:@"@avg.age"]);

NSLog(@"age sum : %@", [peoples valueForKeyPath:@"@sum.age"]);

Objective-C NSStirng <-> SEL - 2011년 6월 14일 화요일 오후 1:52

Returns the selector with a given name.

SEL NSSelectorFromString (

   NSString *aSelectorName

);

 

Returns a string representation of a given selector.

NSString *NSStringFromSelector (

   SEL aSelector

);

Objective-C @Class - 2011년 6월 13일 월요일 오후 2:23

@class는 해당클래스를 #import하지 않고 선언만 사용할 때..

해당 클래스의 타입만 이용할 수 있다. 

인스턴스변수와 메소드를 다 이용하기 위해서는 #import..!

Objective-C NSStirng <-> int 형변환 방법 - 2011년 6월 9일 목요일 오후 3:03

NSString *str1 = @"10";

int i = [str1 intValue];

 

int j = 20;

NSString *str2 = [NSString stringWithFormat:@"%i", j];

FMDB - 2011년 5월 30일 월요일 오후 3:36

https://github.com/ccgus/fmdb

아이폰개발시 SQLite 사용을 편하게 만들어 주는 wrapper..

아래 블로그에서 간단한 예제를 볼수 있음.

http://www.pcraft.kr/139


'others' 카테고리의 다른 글

AES, SHA 암호화 2, PL/SQL  (0) 2015.08.26
AES, SHA 암호화 1, JAVA  (1) 2015.08.26
JSON Object 정렬하기  (0) 2012.01.30
checkbyte jQuery plugin  (0) 2011.11.11
Velocity에서의 Map 사용  (0) 2009.11.24