꼭 필요한 경우, 모른다면 치명적이다.
영아 심폐소생술
http://me2.do/G9qFBJ7G
영아 기도 이물 폐쇄
http://me2.do/IxRZ2glu
영아 심폐소생술
http://me2.do/G9qFBJ7G
영아 기도 이물 폐쇄
http://me2.do/IxRZ2glu
블랙박스, 후방 카메라 알아보다가 언젠가 한번 알아보리라 생각했던 OBD2. 급 관심이 생겨서 막 찾아보았다.
내 차에는 커넥터가 핸들 아래 패달 근처 왼쪽 쯤에 붙어 있는 듯 하다. 찾아봐야지..
16핀 짜리 커넥터를 쓰는데. 차량 관련 다양한 정보를 얻을 수 있다.
통신 방식은 여러가지가 있는데, VPW-PWM (SAE-J1850), CAN(ISO 15765, SAE-J2234), ISO (ISO 1941-2, ISO 14230-4) 이렇게 쓰인다고 한다.
전송 신호 방식은 자체는 PWM이나 UART, GPIO 통신과 비슷한 면이 많은 듯. 처리 IC가 많이들 있다고 한다.
https://en.wikipedia.org/wiki/On-board_diagnostics
OBD2 PID(parameter id)와 그 의미
https://en.wikipedia.org/wiki/OBD-II_PIDs
http://www.totalcardiagnostics.com/support/Knowledgebase/Article/View/21/0/genericmanufacturer-obd2-codes-and-their-meanings
얻을 수 있는 차량 정보가 엄청 많다.. 이거 다 알면 정비 공부 따로 안해도 되겠는데..;;
윈도우즈 환경에서 개발하다보니, Linux 환경에서 사용하는 몇 가지 command들이 그립다.
touch 명령을 주고 싶은데, 다들 설치하라고 할 수도 없고..
Windows 환경에서 touch와 같이 날짜와 시간만 업데이트 하고 싶을 때, 해당디렉토리로 이동한 후, 다음과 같이 하면 된단다.
copy /b filename.ext +,,
이동하기 싫으면 다음과 같이 하면 된다.
copy /b D:\PATH\foo\filename.ext+,, D:\PATH\foo\filename.ext
이걸 왜 하냐고?
다음과 같은 코드 때문이다.
char *pStrTime=__TIME__;
char *pStrDate=__DATE__;
참고: http://superuser.com/questions/10426/windows-equivalent-of-the-linux-command-touch
git을 윈도우즈에서 쓸 때의 꽤 짜증나는 점은 줄바꿈 문자(CR/LF vs LF-윈도우즈에서는 CR,LF를 쓰고, Unix계열에서는 LF만 쓴다)이다.
CR,LF 문자가 바뀌면 git에서는 그냥 소스 파일 전체를 다른 파일로 여기기 때문에, 크로스 플랫폼 환경에선 매우 짜증난다. 그래서 이를 해결하기 위한 옵션이 있는데, core.autocrlf 옵션이다.
autocrlf 옵션은 세가지 값을 가질 수 있다.
1. true: “git config –global core.autocrlf true”
commit할 때 CR,LF -> LF, check out할 때 LF -> CR,LF.
2. input: “git config –global core.autocrlf input”
commit할 때만 CR,LF -> LF.
3. false: “git config –global core.autocrlf false”
그냥 그대로 쓴다. 저장소에도 CR이 저장된다.
또한, patch를 이용하는 경우에도 CR,LF와 LF 문제로 걸리적 거릴 때가 많다.
가령, format-patch를 만들면, patch 파일은 LF를 사용하게 되는데, 이걸 am으로 적용할 때도 제대로 작동하지 않는다. 같은 곳에서 그냥 연달아 format-patch HEAD^ -> reset HEAD^ -> am 0001-blah.patch를 했을 때조차 적용되지 않는 걸 보면 그냥 아주 돌아버린다.
도움을 주기 위한 옵션은 git am의 –keep-cr 이다.
참고: https://git-scm.com/book/ko/v1/Git%EB%A7%9E%EC%B6%A4-Git-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0
Stackoverflow에 외국에 맞는게 올라가 있다.
Locale 설정에 따라 달라져야 한다. 맞게 바꾸면.
set hour=%time:~0,2%
if “%hour:~0,1%” == ” ” set hour=0%hour:~1,1%
echo hour=%hour%
set min=%time:~3,2%
if “%min:~0,1%” == ” ” set min=0%min:~1,1%
echo min=%min%
set secs=%time:~6,2%
if “%secs:~0,1%” == ” ” set secs=0%secs:~1,1%
echo secs=%secs%
set year=%date:~0,4%
echo year=%year%
set month=%date:~5,2%
if “%month:~0,1%” == ” ” set month=0%month:~1,1%
echo month=%month%
set day=%date:~8,2%
if “%day:~0,1%” == ” ” set day=0%day:~1,1%
echo day=%day%
set datetimef=%year%%month%%day%_%hour%%min%%secs%
참고: http://stackoverflow.com/questions/1192476/format-date-and-time-in-a-windows-batch-script
Atom Editor의 유용한 패키지 모음: http://www.atomtips.com/atom-most-useful-packages/
그냥 기본으로 명령 프롬프트에서 telnet을 치면 명령이 없다고 안된다.
‘제어판’ -> ‘프로그램 및 기능’ -> ‘Windows 기능 사용/사용 안함’ -> ‘텔넷 클라이언트’ 에 체크 -> ‘확인’

위 과정을 하고 나면, telnet을 입력하면 잘 되는 것을 볼 수 있다.
도움이 되는 사이트 목록
보건복지부: http://www.mw.go.kr/
아이사랑보육포탈: http://www.childcare.go.kr/
아가사랑: http://agasarang.org/
다음미즈넷: http://miznet.daum.net/
sudo apt-get install alien
근데, i386용 패키지라고 64비트에서 안될 때가 있는데, 다음 과정을 거치면 될 수도 있다.
sudo alien –to-tgz <rpm filename>
sudo alien –to-deb <tgz filename>
아. git-p4를 내가 다시 쓸 일이 생기다니.. OTL
Perforce는 (거지같게도) patch 파일이나 diff 파일 만드는 기능이 빈약해서 git p4 clone 해서 patch 파일을 만들어 사용하면 편하다.
사실 별로 해줄 건 없고,
Git for Windows 깔고,
p4 깔고,
git-p4.py 만 https://raw.github.com/git/git/master/git-p4.py 에서 받아다가 “C:\Program Files (x86)\Git\bin\” 아래에 넣어주면 된다.
git-p4.py 치는 거보다 git p4 로 쓰고 싶으면 “%USERPROFILE%.gitconfig” 를 아래와 같이 고쳐서 alias해주면 된다.
[alias]
p4 = !’C:\\Program Files (x86)\\Git\\bin\\git-p4.py’
기본 config variable은 다음과 같다.
User specified as an option to all p4 commands, with -u
<user>. The environment variable P4USER can be used instead.
Password specified as an option to all p4 commands, with -P
<password>. The environment variable P4PASS can be used
instead.
Port specified as an option to all p4 commands, with -p
<port>. The environment variable P4PORT can be used instead.
Host specified as an option to all p4 commands, with -h
<host>. The environment variable P4HOST can be used instead.
Client specified as an option to all p4 commands, with -c
<client>, including the client spec.
참고: http://ericlathrop.com/2012/12/how-to-set-up-git-p4-in-windows/