'잡동사니'에 해당되는 글 13788건

  1. 2018.12.18 epson 프린터 유틸리티 관련
  2. 2018.12.18 lpstat
  3. 2018.12.18 lp lpr
  4. 2018.12.18 localstorage sessionStorage
  5. 2018.12.18 cups / lp로 출력하기
  6. 2018.12.17 네이버 지도 API - 열지도(가시화)
  7. 2018.12.17 출장.. 2
  8. 2018.12.16 ffmpeg 레이턴시 관련 옵션 조사
  9. 2018.12.15 ajax success 콜백 사용하기
  10. 2018.12.14 jquery ajaxsetup()
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 구차니
Linux/Ubuntu2018. 12. 18. 19:10

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

epson 프린터 유틸리티 관련  (0) 2018.12.18
lpstat  (0) 2018.12.18
ubuntu desktop shortcut  (0) 2018.12.06
do-release-upgrade와 apt-get dist-upgrade  (0) 2018.09.28
tmux  (0) 2018.08.13
Posted by 구차니


웹 스트로지 생명주기와 범위

로컬 스토리지와 세션 스토리지는 저장된 데이터의 생명주기와 범위에 차이가 있다. 로컬 스토리지를 통해 저장된 데이터는 만료기한이 없고, 웹 애플리케이션이 삭제되기 전이나 사용자가 브라우저의 특정 인터페이스를 통해 삭제하기전까지는 사용자의 컴퓨터에 존재하므로 영구적으로 저장된다고 할 수 있다.

[링크 : http://iamawebdeveloper.tistory.com/97]


+

localstorage 저장, 읽기는

setItem()

getItem()을 통해 이루어지고

크롬에서 항목이 없을시 null을 리턴한다.

[링크 : https://stackoverflow.com/questions/2010892/storing-objects-in-html5-localstorage]


+

2018.12.26

삭제시에는 removeitem()을 이용한다.

[링크 : https://developer.mozilla.org/ko/docs/Web/API/Storage/removeItem]

'Programming > javascript & HTML' 카테고리의 다른 글

img vertical-align  (0) 2018.12.28
css text-indent  (0) 2018.12.28
ajax success 콜백 사용하기  (0) 2018.12.15
js __proto__  (0) 2018.12.14
canvas dataURL to Formdata(file)  (0) 2018.12.07
Posted by 구차니
프로그램 사용/CUPS2018. 12. 18. 15:54

lp 파일명

lp 파일명 -o page-top=400 -o page-bottom=400


아래처럼 하니 사진이 무지 작게 나온다. 단위가 멀까?


-o page-bottom=N

-o page-left=N

-o page-right=N

-o page-top=N

Sets the page margins when printing text files. The values are in points - there are 72 points to the inch. 

[링크 : http://www.it.uu.se/datordrift/maskinpark/skrivare/cups/man-lp.html]


+

400/72=5.5 인치(?)

5.5 * 2.54 = 14.097 cm

A4 사이즈가 210mm*297mm 니까 

세로로 찍을때 bottom / top 지정해주면

297 - 140*2 = 17mm 정도 크기로 출력하게 될듯?

Posted by 구차니

열지도 처럼 가중치 줘서 출력 가능하고

출력하는 색상을 바꿀수 있는 듯.

(안개 출력하기 좋으려나?)


[링크 : https://navermaps.github.io/maps.js/docs/data/earthquake_weight.json

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-Visualization.html]

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-5-visualization-dotmap-w.example.html]

Posted by 구차니

아침 5시 반에 일어나서

10시에 업체 도착해서 5:30분까지 시달리다 오니 완전 지치네.. ㅠㅠ


그 와중에 내가 가져간 법카로 회식해야 한다고

회식이라고 강제 소환당한건 안 유머

Posted by 구차니

-fflags nobuffer는 초기 속도에 영향을 안주는 것 같네..


probesize integer (input)

Set probing size in bytes, i.e. the size of the data to analyze to get stream information. A higher value will enable detecting more information in case it is dispersed into the stream, but will increase latency. Must be an integer not lesser than 32. It is 5000000 by default.

[링크 : https://www.ffmpeg.org/ffmpeg-formats.html#Format-Options]


-r[:stream_specifier] fps (input/output,per-stream)

Set frame rate (Hz value, fraction or abbreviation).


As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. This is not the same as the -framerate option used for some input formats like image2 or v4l2 (it used to be the same in older versions of FFmpeg). If in doubt use -framerate instead of the input option -r.


As an output option, duplicate or drop input frames to achieve constant output frame rate fps.

[링크 : https://ffmpeg.org/ffmpeg.html#Video-Options]


Also setting -probesize and -analyzeduration to low values may help your stream start up more quickly (it uses these to scan for "streams" in certain muxers, like ts, where some can appears "later", and also to estimate the duration, which, for live streams, the latter you don't need anyway). This should be unneeded by dshow input.


Reducing cacheing at the client side can help, too, for instance mplayer has a "-nocache" option, other players may similarly has some type of pre-playback buffering that is occurring. (The reality is mplayers -benchmark option has much more effect). 

[링크 : https://trac.ffmpeg.org/wiki/StreamingGuide#Latency]

    [링크 : https://stackoverflow.com/.../how-to-minimize-the-delay-in-a-live-streaming-with-ffmpeg]


+

2018.12.20

ffmpeg -h full | grep 'analyzeduration\|probesize'


-probesize         <int>        .D.... set probing size (from 32 to INT_MAX)

-analyzeduration   <int>        .D.... specify how many microseconds are analyzed to probe the input (from 0 to INT_MAX) 

[링크 : https://lists.ffmpeg.org/pipermail/ffmpeg-user/2013-March/014297.html]


고정적으로 5초 이상 잡히는건 이 녀석 때문이었던 듯?

analyzeduration integer (input)

Specify how many microseconds are analyzed to probe the input. A higher value will enable detecting more accurate information, but will increase latency. It defaults to 5,000,000 microseconds = 5 seconds. 

[링크 : https://www.ffmpeg.org/ffmpeg-all.html]


+

-probesize 32 -analyzeduration 0 

만세~!

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

ffmpeg h264 encoding 옵션  (0) 2019.02.22
ffmpeg으로 비디오 비트레이트 바꾸기  (0) 2019.02.22
ffmpeg / ffplay cli interactive interface  (0) 2018.11.30
ffmpeg concat  (0) 2018.11.05
ffmpeg concat  (0) 2018.10.10
Posted by 구차니

ajax 콜 할때 success에 콜백함수를 쓰는게 아니라

직접 특정 함수로 바로 넘기는 것도 가능하네?

어떻게 보면 당연한건데 왜 생각을 못했을까.. -ㅁ-


$.ajax({

    url: HOME_PATH +'/data/earthquake_weight.json',

    dataType: 'json',

    success: startDotMap

});


function startDotMap(data) {

    var dotmap = new naver.maps.visualization.DotMap({

        map: map,

        data: data.coordinates,

        radius: 20

    });

}

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-5-visualization-dotmap-w.example.html]

'Programming > javascript & HTML' 카테고리의 다른 글

css text-indent  (0) 2018.12.28
localstorage sessionStorage  (0) 2018.12.18
js __proto__  (0) 2018.12.14
canvas dataURL to Formdata(file)  (0) 2018.12.07
js 부모창 변수 접근하기  (0) 2018.12.04
Posted by 구차니
Programming/jquery2018. 12. 14. 16:45

ajax를 콜하기 전에 ajax의 요청 옵션을 지정하는 녀석.

URL을 일괄 변경하는법을 고민했는데 생각해보니.. 이녀석으로는 prefix만 지정은 못하니 의미 없을 듯?


$.ajaxSetup({

  url: "ping.php"

});


$.ajax({

  // url not set here; uses ping.php

  data: { "name": "Dan" }

}); 

[링크 : https://api.jquery.com/jquery.ajaxsetup/]

[링크 : https://www.w3schools.com/jquery/ajax_ajaxsetup.asp]

[링크 : http://findfun.tistory.com/389]

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

ajax / promise / jquery  (0) 2019.01.04
ajax async와 jquery  (0) 2019.01.04
jquery draggable  (0) 2018.12.09
jquery select 인덱스 얻기  (0) 2018.12.05
jquery 셀렉터 - 특정 문장으로 시작하는 id 찾기  (0) 2018.11.07
Posted by 구차니