2011년 10월 21일 금요일
2011년 10월 13일 목요일
자기혁명 -박경철-
요즘 어느 인터넷 서점을 가도 상위에 있는 그 책!
2011년 대한민국을 살아가는 청년들에게 무엇을 향해야 하는지, 어떻게 해야 하는지 길을 터주는 책이다.
이 몇 줄안되는 감상문 조차 몇번이고 다시 생각하고 다시 가다듬게 한다.
청년이란 말이 어울리지 않는 나이가 되어 버렸지만, 마음속에 잠자고 있던 청년의 열정을 다시 일깨워 줬다.
출퇴근 틈틈히 읽느라 4일이나 걸렸지만, 그 4일간의 시간덕에 앞으로의 30년을 바라볼 수 있게 되었다.
이 감사하는 마음을 어떻게 표현할 방법이 없어, 이렇게 몇 자 적어 창작의 고통을 미약하나마 공감해 본다.
2011년 10월 6일 목요일
ssh client에 있는 Xserver를 DISPLAY에 설정하기
ssh접속하는 경우에, DISPLAY를 자동으로 설정하게 하여서 추가적인 작업없이 Xserver를 바로 사용할 수 있게 하는 script. .bash_profile에 넣어두면 된다.
This bash script set "DISPLAY" environment variable automatically with your ssh client IP address. Put this line in ".bash_profile" if you want to run this whenever you login with ssh connection.
export DISPLAY=`echo $SSH_CLIENT |cut -d ' ' -f 1`:0.0
This bash script set "DISPLAY" environment variable automatically with your ssh client IP address. Put this line in ".bash_profile" if you want to run this whenever you login with ssh connection.
2011년 10월 5일 수요일
Eclipse Helios + CDT에서 tab as space설정
Window ->Preferences -> C/C++ -> Code Style
Profile에 있는 Edit...버튼
Profile name변경
Indentation탭 -> General settings에 있는 Tab policy에서 Spaces only선택
Open Window -> Preferences -> C/C++ -> Code Style dialog
Press "Edit..." button at the right of profile.
Edit profile name
Indentation tab -> General settings -> Tab policy : Select "Spaces only"
Profile에 있는 Edit...버튼
Profile name변경
Indentation탭 -> General settings에 있는 Tab policy에서 Spaces only선택
Open Window -> Preferences -> C/C++ -> Code Style dialog
Press "Edit..." button at the right of profile.
Edit profile name
Indentation tab -> General settings -> Tab policy : Select "Spaces only"
2011년 7월 28일 목요일
vim search pattern tips
1. regex 중 matching pattern reuse
1) %s/abcd\(.*\)z/aaaa\1a/g
--> "abcd"로 시작해서 "z"로 끝나는 문자열을 "aaaa"로 시작해서 "a"로 끝나는 문자열로 바꾼다.
--> 예) abcd1234z --> aaaa1234a, abcdefghi..z --> aaaaefghi..a
2) %s/abcd\(.*{1,10}\)123\(.*\)0/1234\1abc\2z/g
--> "abcd*123*0" 형태의 문자열을 "1234*abc*z"형태로 바꾼다.
--> 예) abcdefg1234560 --> 1234efgabc456z
1) %s/abcd\(.*\)z/aaaa\1a/g
--> "abcd"로 시작해서 "z"로 끝나는 문자열을 "aaaa"로 시작해서 "a"로 끝나는 문자열로 바꾼다.
--> 예) abcd1234z --> aaaa1234a, abcdefghi..z --> aaaaefghi..a
2) %s/abcd\(.*{1,10}\)123\(.*\)0/1234\1abc\2z/g
--> "abcd*123*0" 형태의 문자열을 "1234*abc*z"형태로 바꾼다.
--> 예) abcdefg1234560 --> 1234efgabc456z
피드 구독하기:
글 (Atom)
