'2018/12'에 해당되는 글 102건

  1. 2018.12.20 리눅스에서 프린터 추가
  2. 2018.12.20 cairo
  3. 2018.12.20 cups api
  4. 2018.12.20 node-red rpi 접속
  5. 2018.12.20 mysql client 다른 호스트 접속하기
  6. 2018.12.19 dfrobot ph meter
  7. 2018.12.19 촉법소년 기준을 낮출 필요있나?
  8. 2018.12.19 ubuntu test page 위치
  9. 2018.12.18 epson 프린터 유틸리티 관련
  10. 2018.12.18 lpstat
프로그램 사용/CUPS2018. 12. 20. 14:04

대개 CUPS나

우분투의 프린터 프로그램을 통해서 추가하라고 하네..

일단 콘솔로 추가하는거 찾아 보니 cups를 기반으로 하는 듯..


[링크 : https://blog.ostermiller.org/ubuntu-printer-install-command-line/]

Posted by 구차니
파일방2018. 12. 20. 14:03

cairo 라이브러리로 일일이 그리기에는 귀찮네.. -_-

어떻게 보면 RTF를 직접 코딩하는 느낌?


+

2018.12.21

backend로 ps(post script)를 지원하니

이걸로 출력을 위해 장난질 칠 수 있을 듯


[링크 : https://stackoverflow.com/questions/14518004/linux-cups-printing-example-tutorial]

[링크 : https://www.cairographics.org/manual/]

'파일방' 카테고리의 다른 글

git sourcetree  (0) 2019.01.30
vworld  (0) 2019.01.13
swagger.io  (0) 2018.09.07
차트 관련 자바스크립트  (3) 2018.09.04
웹에서 회면 캡쳐하기  (2) 2018.09.03
Posted by 구차니
Linux API2018. 12. 20. 13:06

lp나 lpr 명령어의 소스코드를 보면 좋을텐데 어디서 구할 수 있으려나?

그나저나.. cups 외에는 프린터 관련 api가 없는건가?


원본링크 깨져서..

[링크 : https://wiki.linuxfoundation.org/images/1/15/Lexington06-cups-api.pdf] 구글 웹캐시

[링크 : https://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Printing/LSB-Printing/libcupsman.html]

[링크 : http://janaxelson.com/code/printer.c]


+

lpr.c로 검색하니 하나 나오긴 하네.. 얘도 cups api를 쓴 듯?

[링크 : https://opensource.apple.com/source/cups/cups-86/berkeley/lpr.c.auto.html]


+

[링크 : https://github.com/apple/cups]

'Linux API' 카테고리의 다른 글

syslog c api(?)  (0) 2021.02.17
libescp  (0) 2019.01.03
system wait stdout  (0) 2018.10.22
ncurse  (0) 2015.04.27
lirc - linux IR Remote control  (0) 2015.03.31
Posted by 구차니
Programming/node.js2018. 12. 20. 10:53

실행과 정지는 node-red-start / node-red-stop 으로 하고

서비스는 따로 등록을 해주어야 하는 듯

$ node-red

node-red        node-red-log    node-red-pi     node-red-start  node-red-stop 

[링크 : https://wikidocs.net/16817]


http://localhost:1880

[링크 : https://wikidocs.net/16816]


+

node-red MQTT 사용법

[링크 : https://www.clien.net/service/board/lecture/10699234]

'Programming > node.js' 카테고리의 다른 글

node_modules include  (0) 2019.01.29
npm npx yarn bower  (0) 2019.01.28
node-red 자동시작 관련  (0) 2018.12.14
node.js express static  (0) 2018.12.11
node.js sso  (0) 2018.12.11
Posted by 구차니

걍 아이피 주면 될줄 알았는데 그건 dbname으로 인식하고

-h 옵션 뒤에 호스트 아이피나 도메인을 입력하면 된다.

$ mysql -u fooUser -p -h 44.55.66.77 

[링크 : https://support.rackspace.com/how-to/mysql-connect-to-your-database-remotely/]

Posted by 구차니
embeded/arduino(genuino)2018. 12. 19. 18:19

한동안 가지고 놀게 될(?) 부품

[링크 : https://www.dfrobot.com/wiki/index.php/PH_meter(SKU:_SEN0161)]

[링크 : https://www.dfrobot.com/wiki/index.php/Analog_pH_Meter_Pro_SKU:SEN0169]

[링크 : https://www.dfrobot.com/wiki/index.php/PH_meter_V1.1_SKU:SEN0161]


+

Reads the value from the specified analog pin. The Arduino board contains a 6 channel (7 channels on MKR boards, 8 on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using analogReference().

It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second. 

[링크 : https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/]

[링크 : https://www.arduino.cc/reference/en/language/functions/analog-io/analogreference/]

[링크 : https://forum.arduino.cc/index.php?topic=16585.0]


+

회로도 및 부품 데이터시트

[링크 : http://image.dfrobot.com/image/data/SEN0161/pH%20meter%20V1.0%20SCH.pdf]

[링크 : http://ww1.microchip.com/downloads/en/DeviceDoc/20001358D.pdf]

[링크 : https://pdf1.alldatasheet.co.kr/datasheet-pdf/view/177131/TI/TL081BCDG4.html]

Posted by 구차니

그냥

촉법소년으로 보호받지 못하는 강력범죄를 규정짓고

일반적인 범죄는(?) 보호해주고

일반적인 인식으로 선을 넘어서는 강력범죄에 대해서 예외로

촉법소년으로 보호해주지 않으면 간단하지 않을까?


[링크 : https://news.v.daum.net/v/20181219162419083]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

길빵이 늘어난 이유가..  (0) 2019.01.26
빠른생일인 사람은 좋은줄 아나보네  (2) 2019.01.02
12월 12일  (2) 2018.12.12
일본놈들은 애니라도 있지  (7) 2018.11.11
이틀 늦은 출근일기  (2) 2018.10.06
Posted by 구차니
Linux/Ubuntu2018. 12. 19. 11:04

ubuntu 16.04

/usr/share/cups/data/testpage

/usr/share/cups/data/default-testpage.pdf

[링크 : https://askubuntu.com/questions/47815/where-can-i-find-the-default-printing-test-page]



+

centos 7 에서 확인

[root@localhost data]# ll

합계 48

-rw-r--r-- 1 root root 39852  8월  3  2017 default-testpage.pdf

-rw-r--r-- 1 root root   845  8월  3  2017 default.pdf

-rw-r--r-- 1 root root   234  8월  3  2017 testprint


[root@localhost data]# file *

default-testpage.pdf: PDF document, version 1.5

default.pdf:          PDF document, version 1.5

testprint:            ASCII text 


[root@localhost data]# cat testprint

#PDF-BANNER

Template default-testpage.pdf

Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area job-id options time-at-creation time-at-processing


[링크: https://forums.opensuse.org/showthread.php/478727-CUPS-test-page]

'Linux > Ubuntu' 카테고리의 다른 글

우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
epson 프린터 유틸리티 관련  (0) 2018.12.18
lpstat  (0) 2018.12.18
lp lpr  (0) 2018.12.18
Posted by 구차니
Linux/Ubuntu2018. 12. 18. 19:17

드라이버 안깔고는 안해봤네..

Epson L805 가지고 노는중


[링크 : https://epson.com/Support/wa00821]

[링크 : http://download.ebz.epson.net/faq/linux/inkjetprinter.html]

[링크 : http://download.ebz.epson.net/man/linux/]


제조사 제공은 아님

[링크 : https://linux.die.net/man/1/escputil]


-r /dev/usb/lp0 식으로 쓴다면 -P로 명칭을 쓸 수 있다는데

L805에 맞는 적당한 명칭을 찾지 못하겠다...

그리고 -P로는 잉크청소라던가 여러가지 기능은 못쓰게 제한 되는 듯?

$ escputil -P Stylus-C45 -m C45 -u -c 

[링크 : https://enggaraguilera.wordpress.com/2008/01/02/my-lovely-escputil/]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
ubuntu test page 위치  (0) 2018.12.19
lpstat  (0) 2018.12.18
lp lpr  (0) 2018.12.18
ubuntu desktop shortcut  (0) 2018.12.06
Posted by 구차니
Linux/Ubuntu2018. 12. 18. 19:12

lp lpr lpadmin lpstat 등등

line printer 관련 명령어들인데 lpstat은 queue 관련을 볼 수 있는 듯?

[링크 : https://en.wikipedia.org/wiki/Line_printer]

[링크 : https://askubuntu.com/questions/37247/is-there-an-easy-way-to-view-the-print-queue]

[링크 : https://www.cups.org/doc/man-lpstat.html]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu test page 위치  (0) 2018.12.19
epson 프린터 유틸리티 관련  (0) 2018.12.18
lp lpr  (0) 2018.12.18
ubuntu desktop shortcut  (0) 2018.12.06
do-release-upgrade와 apt-get dist-upgrade  (0) 2018.09.28
Posted by 구차니