티스토리 툴바

  
NOTICE 

string basename(string path, string suffix)

파일 경로가 입력되었을 때 순수하게 파일 이름만을 추출해내는 함수이다.

$path = "/Users/irony/Desktop/test.avi";
$filename = basename( $path );

$filename은 test.avi를 갖는다.


만약 확장자를 제외하고 싶다면 suffix를 주면 된다.

$filename = basename( $path, ".avi" );

$filename은 test를 갖는다.


만약 어떤 형식의 파일이 들어올지 모른다면?

end와 explode를 이용한다.
explode는 구분자로 나누는 함수이고 end는 마지막 원소를 가리킨다.

$filename = "test.avi";
explode( '.', $filename );

explode는 { "test", "avi" }를 리턴한다.

즉 end( explode( '.', $filename ) ) 는 확장자인 avi를 가리키게 되고

$filename = basename( $filename, ".".end(explode('.', $filename)) );
으로 항상 확장자를 제외한 파일명을 추출해낼 수 있다.

사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지


Which is the winner?
“The nanny Diaries” VERSUS “The Devil Wears Prada”
The Nanny Diaries looks like The Devil Wears Prada. A social beginner woman struggles on an overnice and overbearing boss and finally, her dream comes true in both movies. Both movies' original are also famous chick- lit(chick+literature). Furthermore, Both movies take the trendy life in New York. "The Devil Wears Prada" sympathizes partly at the trendy life. On the other hand, "The Nanny Diaries" levels criticism at the trendy life perfectly. As movie reads Annie's narraion, "In Africa, there is a saying that It takes a village to raise a child. But for the tribe of the Upper East Side, it takes just one person. the nanny!", Annie treats the X family as her research materials. Incidentally, In the scene of the beach party, Grayer's grandmother is sitting on the beach reading a paperback copy of "The Devil Wears Prada" written by Lauren Weisberger. It means paying homage to "The Devil Wears Prada".

DO YOU KNOW WHAT UMBRELLA MEANS?
"Mary Poppins" is a series of children's books and Mary Poppins is a magical English nanny. She has a carpet bag and umbrella. This bag is bottomless and is filled with children's nursery. Especially, this umbrella makes her to drift up and down. The umbrella in "The Nanny Diaries" is the same. When Annie is having dinner with her mom, Lynette and Lynette's boyfriend, Mrs. X calls Annie. Her ringtone is "Chim, Chim, Cheree," a song from "Mary Poppins". Grayer asked Annie what is the longest word in the whole world is and she answered, "Antidisestablishmentarian- ism". Why did he suddenly? Maybe, a director wanted to inform us of "Supercalifragilis- ticexpialidocius", not "Antidisestablish- mentarianism". "Supercalifragilisticexpi- alidocius" is the word that Mary poppins teach Michael and Jane as the cheery word with chanting on "Mary Poppins".

BEHIND STORY OF CASTING
Laura Linnley who played Mrs. X and Paul Giamatti who played Mr. X played Truman's wife and Control Room Director each. Both of them are people who have trouble because of Truman.
Donna Murphy who played An- nie's mother played Rosalie Oc- tavius on "Spider-man 2" which is most famous cartoon in Mar- vel and Chris Evans who played Harvard Hottie played Johnny Storm on "Fantastic Four" which make "Spider-man" birth in Marvel in big. Both of them are about Marvel Cartoons. Is it funny?

SUBWAY IN THE UNITED STATE OF AMERICA
In 1980's New York, 600 thousand felonies occured each year. At that time, New York 's public security was terrible that there was a saying "going around not to take the subway in New York". Spider-man’s background is New-York. So would hero appear in New York if public security had not terrible?

We were concerned about adapting our novel for a movie because of a possibility for an issue of a satire on high class. However we feel relieved now and express our thank s to actors and actresses for pleasant actings. Sensuous and polished images, actors and actresses enhance "The Nanny Diaries". - Nicola Kraus & Emma McLaughlin, The authors of best-selling novel, "The Nanny Diaries"

THE NAME
Mrs. X and Mr. X are the upper class people who live high on the hog in a gay life. However they have a strictly private life and a lack of feeling. So, the X is a name that point out the above.Mrs. X's name is Alexandra.
Harvard Hottie is named after 'Har- vard University' showing his social position in the United States of America and Hottie means a charm- ing person. We can read off Annie's a mind for him, from the name 'Har- vard Hottie'.
Grayer is named after 'gray'. Gray means a gloomy feeling and a lack of something. He is well off in a wealthy family, yet what is this lack does he lack in? And yes, he runs short of the concern and hankers after affection from his parents. Scarlett Johansson, a nanny in this movie, has a name "Annie". It means a nanny indirectly.



If by any chance my report movie analysis, forgive me. I'm exactly an objective movie observer. In conclusion, I hope this childish article has been illuminating for those who think my homework will get A+. It certainly has been for me.
  
트랙백 0  |  댓글 0  |
사용자 삽입 이미지


맥의 필수 유틸이라 볼 수 있는 런쳐 Quicksilver이다.
가장 기본 기능은 프로그램의 이름의 몇 글자를 입력하면 바로 실행할 수 있게 만들어 주는 것이고,
그 외에 파일 복사 및 이동, 노래 재생, 파일 전송 등 다양한 기능을 수행할 수 있다.

iTunes를 예로 들자면, Quicksilver의 환경설정에 들어가 Plug-ins 항목에 iTunes Module을 선택해주면
자동으로 플러그인 설치를 한다.
사용자 삽입 이미지




사용자 삽입 이미지
그 후에 Triggers 항목으로 가서 Quicksilver에서 제공해주는 iTunes의 Command에 대한 Trigger만 선택해주면 된다.


사용자 삽입 이미지




링크
  
트랙백 0  |  댓글 0  |

사용자 삽입 이미지


quietMBP와는 달리 별도의 실행 과정이 필요없고 창도 뜨지 않아 편리하다.
설치만 해두면 언제나 작동을 하며, 삭제는 /Library/StartupItems에 shhMPB를 제거한 후 재부팅하면 된다.


링크
  
트랙백 0  |  댓글 0  |
ARis :: AR
Eyepet :: AR

  
트랙백 0  |  댓글 0  |
줄 단위로 입력받기

scanf("%[^\n]", str);

여기서 ^는 not의 의미
\n은 개행

개행이 아니라면 계속 입력을 받아서 str에 저장

입력 값 무시하기

temp = "0 1 2 3";
scanf( temp, "%d %d %*d %d", num[0], num[1], num[2]);

num[0] == 0
num[1] == 1
num[2] == 3

버퍼 문제 해결하기

표준 fflush는 출력 버퍼를 비우는 기능만을 제공하며, VC에서만 확장하여 사용된다.
여러가지 방법이 있지만 그 중 간단한 방법으론

scanf(" %d", number);
이렇게 해주면 된다.

공백, 개행, 탭을 무시하고 입력을 받는다.
  
트랙백 0  |  댓글 0  |

네이버 뉴스의 리플에 장애물을 장해물이라고 썼다고 기자를 비웃는 글이 있었는데
사실은 둘다 쓰인다고 하네요.

장해물 : 자신에게는 아무런 하자가 없고 잘못도 없지만 자신이 하려는 일에 대해 방해하려는                                            그 어떤 것들.

예) 저놈은 내 일생의 장해물이다.

장애물 : 자신이 하고자 하는 일을 실행 할때 자신이 가지고 있는 문제점 이나 사회적인 문제들

예) 미군기지를 철수 시키고 싶으나 남북한의 휴전상태로 인한 군사적 긴장감이 장애가 되어 철      수주장을 할수 없다.

  
트랙백 0  |  댓글 2  |

능력을 십분 발휘하다.
좀 고급 한자이지만 십(十)은 10개를 뜻하는 십입니다.
그리고 분은... 나눌 분이지만...
수의 단위로 쓰일 때 1/10 (십 분의 일) 을 뜻합니다.
즉 십*분 은 100%를 뜻하며
십분 [十分]의 뜻은 '아주 충분히'라고 나와있네요.
이와 비슷하게 십이분 [十二分]은
같은 원리로 120%를 뜻하며
충분한 정도를 훨씬 넘을 때 쓰인다고 합니다.

100분의 1은 리(釐)라고 하며 1000분의 1은 모(毛) 또는 호(毫)라고 한답니다.

※ [할푼리/割分釐] ‘할푼리’는 한자 割分釐(할분리, 釐는 厘로 나타낸다)를 음역한 것이다.

  
트랙백 0  |  댓글 2  |
 이전  1   다음 

최근트랙백
fotowall :: ncloud RSS Feeds today : 0   yesterday : 0
total : 12,985