본문 바로가기

전체 글

(72)
안드로이드 스튜디오 자주 사용하는 단축키 Shift + Shift 어디서나 검색 기능 Ctrl + B 선언부로 이동 Ctrl + Alt+ B 구현부로 이동 Alt + F7 함수가 어디서 사용되었는지 검색 Shift + F6 이름 바꾸기 Ctrl + Alt + / 이전(이후)에 사용했던 커서로 이동 Alt + / 탭 좌우로 이동 Ctrl + / 주석
window에서adb 사용하여 안드로이드 폰 캡쳐 cap.bat @echo off for /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set t=%%G set dt=%t:~0,4%-%t:~4,2%-%t:~6,2%_%t:~8,2%-%t:~10,2%-%t:~12,2% adb shell screencap -p /sdcard/screen.png adb pull /sdcard/screen.png adb shell rm /sdcard/screen.png move /y screen.png screen-%dt%.png
bash 스크립트 날지 시간 출력 #!/bin/sh timestamp=`date +%Y%m%d%H%M` echo "$timestamp"
windows 원격 linux wireshark 캡쳐 pcap plink 로 실행시 에러 발생. unrecognized libpcap format or not libpcap data Data written to the pipe is neither in a supported pcap format nor in pcapng format. please report this to the developers of the program writing to the pipe. plink 최신 버전으로 사용하니 안되여서 기존 버전으로 하니 정상동작 확인. plink -ssh 아이디@서버아이피 -P 포트 -pw 비번 "tcpdump -i any -w - " | "C:\Program Files\Wireshark\wireshark.exe" -k -i - 아래 최신버전에서는 -ssh 옵션이..
Python의 newspaper라는 모듈을 이용하여 뉴스 기사를 크롤링하는 방법 newspaper 모듈 소개 newspaper는 사용자가 지정한 url에서 text를 추출해주는 모듈이다. 자세한 내용은 https://pypi.org/project/newspaper3k/ 에서 확인할 수 있다. 아래의 내용은 newspaper에 대한 소개이다. “Newspaper is an amazing python library for extracting & curating articles.” “Newspaper delivers Instapaper style article extraction.” 그럼 newspaper의 설치방법에서부터 사용법을 알아보도록 하자. newspaper 설치 newspaper 모듈은 python2와 python3에서 각각 설치방법이 다르다. python 2에서는 pip in..
python news paper 설치 apt-get install python3-pip apt-get install python-dev apt-get install libxml2-dev libxslt-dev apt-get install libjpeg-dev zlib1g-dev libpng12-dev apt install curl pip3 install newspaper3k
jansson_funcs.c:25:21: warning: jansson.h: No such file or directory CC (gcc) [M jansson.so] jansson_funcs.ojansson_funcs.c:25:21: warning: jansson.h: No such file or directoryIn file included from jansson_funcs.c:30:jansson_path.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenjansson_path.h:14: error: expected ‘)’ before ‘*’ tokenIn file included from jansson_funcs.c:32:jansson_utils.h:31: error: expected declaration specifiers or ‘..
async_http.c:42:26: warning: event2/event.h: No such file or directory make[3]: `libsrdb1.so.1.0' is up to date.LD (gcc) [M dialplan.so] dialplan.soCC (gcc) [M gzcompress.so] gzcompress_mod.oLD (gcc) [M gzcompress.so] gzcompress.soCC (gcc) [M http_async_client.so] async_http.oasync_http.c:42:26: warning: event2/event.h: No such file or directoryasync_http.c: In function ‘async_http_init_worker’:async_http.c:71: warning: implicit declaration of function ‘event_base_..