본문 바로가기
728x90

전체278

우분투 - 이전 설치가 완료되지 못함. 위와 같이 나오면 $ sudo apt-get install -f [sudo] password for sunny: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 위에서 시키는 대로 sudo dpkg --configure -a 를 실행 $ sudo dpkg --configure -a kdebase-data (4:4.4.5-0ubuntu1.2) 설정하는 중입니다 ... 그런 후에 다시 sudo apt-get install -f 를 실행하면 이전에 중지 되었던 설치가 실행되면서 오류가 해결됨. $ sudo apt-get install -f 2012. 4. 12.
아웃룩(outlook): Mail notify 아웃룩 사용시 메일알림 설정 관련 Creating a permanent New Mail Desktop Alert http://www.howto-outlook.com/howto/newmailalert.htm#always_alert OWA Tray monitor http://www.owatray.com/ 2012. 3. 23.
fflush(stdin)? __fpurge(stdin)! 간단한 테스트 프로그램을 짜려고 getchar()를 사용하다가 뻘짓만.... ㅡ.ㅡ while(1) { print_usage(); choice = getchar(); switch(choice) { 어쩌고... choice2 = getchar(); 저쩌고... } } 위와 같이 만들면 두번째 입력에서 꼭 엔터키가 먹어버리는 현상이 발생한다. 그래서, getchar() 다음에 __fpurge(stdin) 실행하면 원하는 대로 결과를 얻을 수 있다. 아래 방법은 테스트 해보지 않았음. while (getchar() != '\n') continue; 2012. 2. 10.
cgrep #!/bin/bash function usage() { echo 'cgrep grep pattern from *.[chSs] or *.cpp or *.hpp or *.mk or [Mm]akefile' } if [ $# -eq 0 ]; then usage exit 1 fi find . -type f -name "*.[chSs]" -o -name "*.cpp" -o -name "*.hpp" -o -name "*.mk" -o -name "[Mm]akefile" | xargs grep --color=auto -n "$1" 2012. 1. 27.
728x90