난 언제 돌아올지 모르겠지만
일단 장모님 댁으로 고고
'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글
| 스튜디오 촬영 (2) | 2019.01.11 |
|---|---|
| 크리스마스라는 느낌이 안드네? (2) | 2018.12.25 |
| 간만에.. 대청소? (0) | 2018.12.22 |
| 에어컨 필터 빼냄 (0) | 2018.12.05 |
| 샤오미 미에어 필터를 이용한 자작 공기 청정기 (2) | 2018.12.05 |
난 언제 돌아올지 모르겠지만
일단 장모님 댁으로 고고
| 스튜디오 촬영 (2) | 2019.01.11 |
|---|---|
| 크리스마스라는 느낌이 안드네? (2) | 2018.12.25 |
| 간만에.. 대청소? (0) | 2018.12.22 |
| 에어컨 필터 빼냄 (0) | 2018.12.05 |
| 샤오미 미에어 필터를 이용한 자작 공기 청정기 (2) | 2018.12.05 |
운이 좋게(?) 첫애가 자서
습기 제거제 교체하고
이불 다 털고(안방, 내방).
빨래 개키고
빨래 널고
마루 정리하고
애 옷 정리하다가 포기하고
내 옷 이랑 아내옷 (거실 서랍장)( 정리하고
그것만 해도 시간이 훅훅 지나가네
| 크리스마스라는 느낌이 안드네? (2) | 2018.12.25 |
|---|---|
| 장모님 댁 고고씽 (0) | 2018.12.23 |
| 에어컨 필터 빼냄 (0) | 2018.12.05 |
| 샤오미 미에어 필터를 이용한 자작 공기 청정기 (2) | 2018.12.05 |
| 아 몰랑 일단 질러 (5) | 2018.12.03 |
희한하리 만치 시간축에 대해서 년/월/일 시:분:초 까지 출력을 하기 힘드네?
가장 바라는건 일 단위는 전부 출력하고 그 외에는 시분초만 출력하는건데 가능하려나?
[링크 : http://bl.ocks.org/ssmaroju/8af70edf235c6fcfe01bd7c1a4f95b96]
[링크 : https://stackoverflow.com/questions/33388547/time-axis-in-d3-js-with-specific-time-zone]
[링크 : http://www.d3noob.org/2012/12/formatting-date-time-on-d3js-graph.html]
| d3 axis / time domain (0) | 2018.12.26 |
|---|---|
| d3 mouseover (0) | 2018.12.23 |
| d3 double line graph (0) | 2018.12.21 |
| d3 axis (0) | 2018.11.27 |
| d3 온도/습도 그래프 (0) | 2018.11.26 |
d3.v4 기준
두개의 값을 출력하는 녀석(2계열)
[링크 : https://bl.ocks.org/brianbancroft/d4e65c54a1e7f16d5187ea03820e7c36]
| d3 mouseover (0) | 2018.12.23 |
|---|---|
| d3 time domain (0) | 2018.12.21 |
| d3 axis (0) | 2018.11.27 |
| d3 온도/습도 그래프 (0) | 2018.11.26 |
| d3 multi line graph (0) | 2018.11.21 |
between 이나 TIMEDIFF 이런걸로 될 줄 알았는데 영안되서
결국에는 +-15로 계산을 해야겠네.. 끄응
select T.temperature, T.humidity, T.created as tcreated, P.ph, P.voltage, P.created as pcreated from (select * from dht11 where DATE(created) >= '2018-12-20' ) as T, (select * from ph where DATE(created) >= '2018-12-20' ) as P WHERE TIME_TO_SEC(P.created) - 15 < TIME_TO_SEC(T.created) AND TIME_TO_SEC(T.created) < TIME_TO_SEC(P.created) + 15; |
[링크 : https://www.w3resource.com/mysql/date-and-time-functions/mysql-time_to_sec-function.php]
[링크 : https://stackoverflow.com/questions/7636599/calculating-time-difference-between-2-dates-in-minutes]
[링크 : https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_timestampdiff]
| mysql / unix-socket (0) | 2019.09.04 |
|---|---|
| mysql exists (0) | 2019.07.05 |
| mysql join과 필드명 변경하기 (0) | 2018.12.21 |
| join은 위험한 동물이다(?) (0) | 2018.12.21 |
| mysql client 다른 호스트 접속하기 (0) | 2018.12.20 |
필드명도 table.field AS newfilename 으로 하면 되네
[링크 : https://statkclee.github.io/sql-ecology-lesson/kr/03-sql-joins-aliases.html]
| mysql exists (0) | 2019.07.05 |
|---|---|
| mysql timestamp 1분 이내 매치하기 (0) | 2018.12.21 |
| join은 위험한 동물이다(?) (0) | 2018.12.21 |
| mysql client 다른 호스트 접속하기 (0) | 2018.12.20 |
| ubuntu 18.04 apparmor와 mysql 충돌 (0) | 2018.11.19 |
데이터가 좀 지랄 같이(?) 많은 녀석이긴 한데
mysql> select count(*) from dht11; +----------+ | count(*) | +----------+ | 57186 | +----------+ 1 row in set (0.09 sec) mysql> select count(*) from ph; +----------+ | count(*) | +----------+ | 57637 | +----------+ 1 row in set (0.17 sec) |
아무생각 없이 조인하고 조건식을 돌리니 8초.. ㄷㄷ
select * from dht11 as T,ph as P where T.created = P.created and DATE(T.created) >= '2018-12-20'; |
97 rows in set (8.12 sec)
날짜 쳐내고 조인하니 0.44초!
select * from (select * from dht11 where DATE(created) >= '2018-12-20' ) as T, (select * from ph where DATE(created) >= '2018-12-20' ) as P WHERE T.created = P.created; |
98 rows in set (0.44 sec)
| mysql timestamp 1분 이내 매치하기 (0) | 2018.12.21 |
|---|---|
| mysql join과 필드명 변경하기 (0) | 2018.12.21 |
| mysql client 다른 호스트 접속하기 (0) | 2018.12.20 |
| ubuntu 18.04 apparmor와 mysql 충돌 (0) | 2018.11.19 |
| mariaDB 필드와 테이블 데이터저장방식 변경하기 (4) | 2018.09.14 |
소스는 아래와 같고
$ cat dump.c #include <stdio.h> void main() { unsigned char data[] = { 0x1b,'@',0x1b,'(','R',0x08,0x00 ,0x00 ,'R','E','M','O','T','E','1','C','H', 0x02 ,0x00 ,0x00 ,0x00 ,0x1b ,0x00 ,0x00 ,0x00 ,0x1b ,0x00 ,0x0c ,0x1b ,0x00 ,0x1b ,0x00 }; int len = sizeof(data); int idx = 0; for(idx = 0; idx < len; idx++) printf("%c,",data[idx]); } |
아래의 명령어를 통해서 raw 명령어를 생성하면 헤드 청소가 시작된다.
$ gcc dump.c $ a.out > dump $ lp -o raw dump |
다만.. 어느 시점에 끝나는지 알기가 힘드네..
escputil 로는 -s 주면 애가 응답이 없고
lpstat -t 로도 idle 타이밍이 애매~하다
일단 덤프해서 만든 16진수 명령어 인자
0x1b,0x40,0x1b,0x28,0x52,0x08,0x00,0x00,0x52,0x45,0x4d,0x4f,0x54,0x45,0x31,0x43,0x48,0x02,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x1b,0x00,0x0c,0x1b,0x00,0x1b,0x00 |
| epson 개발자 사이트 (0) | 2019.03.26 |
|---|---|
| esc/p 예제 (0) | 2019.03.19 |
| Epson L805 power flush (0) | 2019.02.07 |
| escputil 디버그 모드 (0) | 2018.12.21 |
| rpi epson printer (0) | 2018.12.20 |
빌드해보려니 이래저래 답이 안나와서
(gutenprint/gutenprint-intl-internal.h 요 파일이 포함된 devel 패키지 찾는데 실패..)
소스를 보다보니
오잉?
환경변수로 판별하는 부분을 발견!
static int stp_debug = 10; #define STP_DEBUG(x) do { if (stp_debug || getenv("STP_DEBUG")) x; } while (0) |
[링크 : https://www.ibm.com/support/knowledgecenter/ko/ssw_ibm_i_73/rtref/putenv.htm#putenv]
걍 귀찮으니 아래와 같이 디버그 메시지 출력하는데 성공!
$ export STP_DEBUG=1 $ escputil -c Gutenprint 5.2.10 18 May 2014 Escputil version 5.2.10, Copyright (C) 2000-2006 Robert Krawitz Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l' This is free software, and you are welcome to redistribute it under certain conditions; type 'escputil -l' for details. ***Initialize print command ***Initialize print command ***Start remote sequence ***Remote command: CH 02 00 00 00 ***End remote sequence Cleaning heads... ***Sending print command to lpr -l: *** 0: 1b @ 1b ( R 08 00 00 R E M O T E 1 C *** 16: H 02 00 00 00 1b 00 00 00 1b 00 0c 1b 00 1b 00 |
-l은 -o raw와 동일한 내용이라고 한다.
| epson 개발자 사이트 (0) | 2019.03.26 |
|---|---|
| esc/p 예제 (0) | 2019.03.19 |
| Epson L805 power flush (0) | 2019.02.07 |
| epson L805 헤드 청소(성공) 및 종료 시점 확인하기(실패) (0) | 2018.12.21 |
| rpi epson printer (0) | 2018.12.20 |
-o scaling=[0~100]
일정 비율로 줄일순 있는데 원하는 크기대로 출력하는건 아직 못 찾음..
pdf 등으로 변환해서 크기를 조절해야 하려나?
[링크 : https://www.cs.utexas.edu/facilities/documentation/printing-options]
[링크 : https://vincenttam.github.io/blog/2014/12/10/print-actual-sized-images/]
[링크 : https://www.cups.org/doc/options.html]
[링크 : http://www.it.uu.se/datordrift/maskinpark/skrivare/cups/]
| lpoptions 로 기본 프린터 지정하기 (0) | 2018.12.21 |
|---|---|
| cups banner file format (0) | 2018.12.20 |
| CUPS 외부에서 접근 가능하도록 설정하기 (0) | 2018.12.20 |
| 리눅스에서 프린터 추가 (0) | 2018.12.20 |
| cups / lp로 출력하기 (0) | 2018.12.18 |