프로그램 사용/sqlite2017. 3. 23. 13:36

쿨 메신저라는 녀석을 백업하면 udb라고 나온다는데

파일 열어 보니 sqllite


그래서 검색을 해보니.. 이거 열어 보는 프로그램이 존재하네?


[링크 : http://sqlitebrowser.org/]

    [링크 : http://aspdotnet.tistory.com/1285]

'프로그램 사용 > sqlite' 카테고리의 다른 글

sqlite primary key  (0) 2019.03.12
sqlite dateime  (0) 2018.11.27
sqlite3 도움말  (0) 2017.04.02
라즈베리 sqlite 버전  (0) 2017.04.02
sqlite  (0) 2013.07.19
Posted by 구차니

/etc/webalizer/webalizer.conf 에 보면 아래 세가지가 보이는데

생각을 해보니.. 이 기능을 이용하면 logrotate를 비활성화 하지 않아도 문제가 될거 없는 느낌?

logrotate를 잠시 꺼둔 이유가 모이지 않아서였는데


history 파일은 이전달들이니까.. 복수형인거 같고

즉, logrotate 당해도 이전 데이터 들은 남아 있다 정도일거 같은데


incremental은 파싱할 내용의 범위를 줄여주는 기능이려나?


 45 # HistoryName allows you to specify the name of the history file produced

 46 # by the Webalizer.  The history file keeps the data for previous months,

 47 # and is used for generating the main HTML page (index.html). The default

 48 # is a file named "webalizer.hist", stored in the output directory being

 49 # used.  The name can include a path, which will be relative to the output

 50 # directory unless absolute (starts with a leading '/')


 54 # Incremental processing allows multiple partial log files to be used

 55 # instead of one huge one.  Useful for large sites that have to rotate

 56 # their log files more than once a month.  The Webalizer will save its

 57 # internal state before exiting, and restore it the next time run, in

 58 # order to continue processing where it left off.  This mode also causes

 59 # The Webalizer to scan for and ignore duplicate records (records already

 60 # processed by a previous run).  See the README file for additional

 61 # information.  The value may be 'yes' or 'no', with a default of 'no'.

 62 # The file 'webalizer.current' is used to store the current state data,

 63 # and is located in the output directory of the program (unless changed

 64 # with the IncrementalName option below).  Please read at least the section

 65 # on Incremental processing in the README file before you enable this option

 

 69 # IncrementalName allows you to specify the filename for saving the

 70 # incremental data in.  It is similar to the HistoryName option where the

 71 # name is relative to the specified output directory, unless an absolute

 72 # filename is specified.  The default is a file named "webalizer.current"

 73 # kept in the normal output directory.  If you don't specify "Incremental"

 74 # as 'yes' then this option has no meaning. 



[링크 : http://se.uzoogom.com/17]

[링크 : http://blog.naver.com/fogwhite/20050962196]



+

그나저나.. 이게 원래 보던건데..


테스트 한다고 access.log 를 비워버리고 webalizer 실행하니까 이렇게 kB In/Out 이라는 못보던 항목이 생겨났다

무슨 옵션으로 인해 생겨난거지?


Posted by 구차니

많이 쓰는게 N-8-1 이니까

1byte 전송에 10bit를 주로 쓰니까 일단 둘다 계산



많이 사용되는(?) 비트레이트 저장

[링크 : http://www.cermetek.com/Catalog/High-Speed-Modems/DataSheet/...CH1794_607-0003/]

Posted by 구차니
embeded/Cortex-M3 Ti2017. 3. 15. 10:07

테스트 코드

19200bps와 38400bps를 오가면서 1바이트씩 보내는 예제


  SysCtlPeripheralEnable(SYSCTL_PERIPH_UART1);

GPIOPinTypeUART(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1);


while(1)

{

UARTConfigSetExpClk(UART1_BASE, SysCtlClockGet(), 19200, UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE);

UARTCharPut(UART1_BASE,'A');

MDINDLY_mSec(100);

UARTConfigSetExpClk(UART1_BASE, SysCtlClockGet(), 38400, UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE);

UARTCharPut(UART1_BASE,'B');

MDINDLY_mSec(100);

}



근데 도대체.. 예전에는 왜 안되었던 거지??


+

추가로

FIFO 설정은 UARTConfigSetExpClk 에서 무조건 Enable 시키니 주의

Posted by 구차니

약간의 제약이 있긴 하지만

view로 만든 것으로도 insert가 가능하군.


[링크 : http://recoveryman.tistory.com/181]


+

2017.04.07


볼수 있는건 다 뷰로 만들수 있는듯 조인도 되고


[링크 : https://dev.mysql.com/doc/refman/5.7/en/create-view.html]

[링크 : http://stackoverflow.com/questions/12352048/mysql-create-view-joining-two-tables]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

db에 mac / ip 저장하기(자료형)  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
db designer  (0) 2017.03.14
데이터베이스 구조 버전관리  (0) 2017.02.13
mysql 통화관련 변수타입  (0) 2017.02.07
Posted by 구차니
Programming/php2017. 3. 14. 19:02

php 에서는 삽입후 해당 id값을 받을수 있는데

mysql에서 sql로 할때는 어떻게 해야 하려나?


[링크 : http://php.net/manual/kr/function.mysql-insert-id.php]


http://adgw.tistory.com/m/entry/%EA%B3%84%EC%B8%B5%ED%98%95-%EA%B2%8C%EC%8B%9C%ED%8C%90-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98-%EB%8C%93%EA%B8%80-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98


5.20

http://stackoverflow.com/questions/15821532/get-current-auto-increment-value-for-any-table

'Programming > php' 카테고리의 다른 글

php 세션주의사항(?)  (0) 2017.04.13
php mvc 구현(+ PDO)  (2) 2017.04.07
php zend guard ?  (2) 2017.03.14
php -> exe (윈도우)  (0) 2017.03.14
php $_REQUEST  (0) 2017.01.25
Posted by 구차니

mysql 디자인 해서 좀 편하게 하고 이력남겨 볼까 했는데

아주 구버전인거 같고 유지보수가 안되는 것 같아서 고민..


[링크 : https://blog.outsider.ne.kr/286]

[링크 : http://fabforce.eu/dbdesigner4/]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql innodb compress  (0) 2017.04.12
mysql view  (0) 2017.03.14
데이터베이스 구조 버전관리  (0) 2017.02.13
mysql 통화관련 변수타입  (0) 2017.02.07
mysql 다국어 문자길이  (0) 2017.02.06
Posted by 구차니
Programming/php2017. 3. 14. 15:04

외주 주었던 회사 홈페이지를

다른 경로에 올리면 작동하지 않아서 어떤 원리로 돌아가는지 분석해보려다 막혔었는데

다시 찾아 보니.. 매우 간단(?)한 원리인듯


index.html에서

include.inc.html을 include once로 불러오고

해당 파일은 zend guard로 난독화(?) 처리 되어 있는데

그 안에서 무언가 hostname이라던가 도메인을 확인 후 아니면 return false 해서

프로세싱을 멈춰버리는 듯?


$ file *.html

include.inc.html: PHP script Zend Optimizer data


[링크 : http://www.zend.com/en/products/zend-guard]

[링크 : http://stackoverflow.com/questions/4298001/decode-a-php-encoded-with-zend-guard]

[링크 : http://stackoverflow.com/questions/12226890/this-is-not-a-text-filezend-optimizer]



잘 찾아 보면 dezend도 있네

[링크 : http://jobdahan.net/language_php/1498450]

[링크 : http://ziumb.tistory.com/41] << dezend

[링크 : http://egloos.zum.com/zzong75/v/2813381]

[링크 : https://sir.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=24083]



zend 암호화 한걸 풀어서 보니 호스트를 비교하는게 맞았군!

$_SERVER['HTTP_HOST']

[링크 : http://php.net/manual/en/reserved.variables.server.php]

[링크 : http://pro.thinkangel.com/10]


+

자세한건 모르겠지만 호스팅 업체는 PHP5.2 + Zend Optimizer v3.3.9를 돌리고 있어서

별도의 Zend Loader 없이 돌리는것 같긴한데.. Zend Optimizer 조차도 없는 PHP 5.6에서는 작동하려나?

[링크 : http://www.zend.com/en/products/zend-guard#OptimizerL]


+

라즈베리에 올려서 해보니.. 얘가 그냥 뱉어내네?!

5.6이라 그런가 zend optimizer가 없어서 그런가?


+

5.6용으로 나왔는데 가입안하면 못 받음 크리

물론.. x86 linux용일거 같은데 arm용도 있을려나?

'Programming > php' 카테고리의 다른 글

php mvc 구현(+ PDO)  (2) 2017.04.07
php mysql 자동증가값 받기  (0) 2017.03.14
php -> exe (윈도우)  (0) 2017.03.14
php $_REQUEST  (0) 2017.01.25
php global  (0) 2017.01.23
Posted by 구차니
Programming/php2017. 3. 14. 14:57


[링크 : https://sourceforge.net/projects/bamcompile/]

[링크 : http://www.bambalam.se/bamcompile/]


[링크 : http://blog.naver.com/mirazi9/140157951251]

'Programming > php' 카테고리의 다른 글

php mysql 자동증가값 받기  (0) 2017.03.14
php zend guard ?  (2) 2017.03.14
php $_REQUEST  (0) 2017.01.25
php global  (0) 2017.01.23
html+php login form  (0) 2017.01.18
Posted by 구차니
Linux2017. 3. 13. 16:29

fing이 좋아 보이나 어떤 특정 유틸리티인것 같고

ubuntu쪽에서 패키지로 보이는건 arping 정도 뿐인 듯..

(nmap은 쓰기 어려우니 일단 패스)


[링크 : http://unix.stackexchange.com/questions/120153/resolving-mac-address-from-ip-address-in-linux]

[링크 : https://superuser.com/questions/188799/how-to-find-the-mac-address-of-a-remote-computer]



$ apt-cache search arping

arping - sends IP and/or ARP pings (to the MAC address) 

[링크 : https://linux.die.net/man/8/arping]



설마.. 이 Fing ip 스캐너 인가?

[링크 : https://www.fing.io/download-free-ip-scanner-for-desktop-linux-windows-and-osx/]


+

2017.03.14

라즈베리로 하는데...

안되는데?!? arping?!??!


$ sudo arping -c 1 host

'Linux' 카테고리의 다른 글

cpulimit 백그라운드 실행 이유  (0) 2017.05.10
wget 로그인 정보 설정  (0) 2017.04.17
리눅스 쉘에서 시리얼 포트로 쓰기  (0) 2017.02.15
리눅스 파일 시간관련  (0) 2017.01.01
ctime mtime.. 엌?!  (0) 2016.12.31
Posted by 구차니