준호씨의 블로그
특정 RF 신호를 받았을 때 다른 장치를 같이 동작 시키기 위한 토이프로젝트를 진행중이다. 그래서 일단 해 보려고 하는 것은 다음과 같다. RF 신호 분석 해당 신호를 입력 받고 나면 특정한 동작을 하도록 함 그런데 RF 관련해서는 지식이 많이 부족해서 한참동안 지지부진 했었다. 이런저런 정보들은 많이 찾긴 했지만 정리가 안되고 방향을 잘못 잡은 느낌? 시도 했던 방법은 잘 안되고 어떤 부품을 선택해야 될지도 모르겠다. 그러다가 아래의 동영상을 발견하였다. 호출벨 무선해킹 2015.11.30 여기에 나온 방식으로 모든게 해결이 되지는 않겠지만 몇가지 단서를 얻을 수 있었다. RFCat Gqrx 스펙트럼 분석기 AR-2001N 311MHz 캡쳐? Wave Player (Audacity)로 로딩. 신호를 확..
라이브러리 파일은 실행이 안된다고 생각 했는데 실행이 되는 라이브러리들이 있다. libc 실행해 보니 버전 정보를 표시해 준다. $ /lib/libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al. Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.4.7 20120313..
GNU Mailutils GNU Mailutils curl curl github 사용법이 간단한편이다. curl 은 보통 http 요청 할 때 많이 사용하는데, curl 을 종종 사용하는 사람들 조차도 smtp 가 된다는 사실에 놀라곤 한다. 문제점 수신자가 여러명일 때 한명이라도 실패 하면 모두 실패한다. 보통 수신자가 여러명일 때 rcpt to 2개 중 1개가 실패 해도 발송이 되어야 되는데 curl 에서는 실패한다. https://github.com/curl/curl/issues/2483 이것은 known issue 이다. 2012년 부터 알려진 이슈이지만 아직 수정 되지 않았다. 짬나면 기여해 봐야 겠다. libquickmail libquickmail curl 을 랩핑 해 둔 라이브러리라고 보면 ..
import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s') logging.info("test") import logging import time today = time.strftime("%Y%m%d") logger = logging.getLogger('myapp') logdir = "." logpath = logdir + '/logtest2.' + today + '.log' hdlr = logging.FileHandler(logpath) formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s') hdlr.setF..
$ ./mailstats ./mailstats: error while loading shared libraries: libdb-4.2.so: cannot open shared object file: No such file or directory libdb-4.2.so 가 필요 하다고 함. libdb-4.2.so 를 직접 구해다가 복사 하기도 하지만 yum 으로 설치 할 수 있으면 yum 으로 설치 하는 것이 편하다. 어떤 패키지를 설치 해야 되는지 찾아 보려면 yum whatprovides libdb-4.2.so 를 입력하면 어떤 패키지가 필요 한지 알려 준다. $ sudo yum whatprovides libdb-4.2.so Loaded plugins: security, versionlock compa..
1 - usage 2 - mysql error 3 - conscheck? 4 - EOM - out of memory? 5 - EOF - end of file? 6 - illegal table 참고 Where can I find a list of the mysqldump exit codes? Does mysqldump return a status?
@my_array = (); undef @my_array; $#my_array = -1; splice(@my_array); 참고 How do I completely empty out an array? Perl Clear Array
exit value 구하는 방법 system 함수를 실행하면 결과 정보가 $? 에 담겨진다. 8bit 를 버리고 나면 $? >> 8; 예제 exit5.pl 코드를 작성하고 5 로 종료 하는 코드를 작성한다. exit 5; testexit.pl 코드를 작성한다. system("perl", "exit5.pl"); printf "%d\n", $? >> 8; 코드를 실행해 보면 exit 5 로 넘겨 받은 값이 출력되는 것을 볼 수 있다. $ perl testexit.pl 5 perldoc 의 system 에 있는 예제를 참고 하도록 한다. if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with sig..