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

  1. 2018.12.18 lp lpr
  2. 2018.12.18 localstorage sessionStorage
  3. 2018.12.18 cups / lp로 출력하기
  4. 2018.12.17 네이버 지도 API - 열지도(가시화)
  5. 2018.12.17 출장.. 2
  6. 2018.12.16 ffmpeg 레이턴시 관련 옵션 조사
  7. 2018.12.15 ajax success 콜백 사용하기
  8. 2018.12.14 jquery ajaxsetup()
  9. 2018.12.14 js __proto__
  10. 2018.12.14 node-red 자동시작 관련
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 구차니

자바 스크립트는 프로토타입 언어라고 한다..(아니 인터프리터 언어 아니었어 -ㅁ-?)

아무튼.. naver api 보다가 이상한게 나와서 분석하다 막히는 중.. 끄응...


[링크 : https://medium.com/@bluesh55/javascript-prototype-이해하기-f8e67c286b67]

[링크 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto]

[링크 : https://msdn.microsoft.com/ko-kr/library/dn342818(v=vs.94).aspx]


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

localstorage sessionStorage  (0) 2018.12.18
ajax success 콜백 사용하기  (0) 2018.12.15
canvas dataURL to Formdata(file)  (0) 2018.12.07
js 부모창 변수 접근하기  (0) 2018.12.04
크로스 브라우징 관련..  (0) 2018.11.30
Posted by 구차니
Programming/node.js2018. 12. 14. 10:34

라즈베리에 node-red 가지고 릴레이 달고 장난질 쳐볼까나...


[링크 : https://nodered.org/docs/getting-started/running]

[링크 : https://nodered.org/docs/platforms/windows]

[링크 : https://nodered.org/docs/hardware/raspberrypi]

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

npm npx yarn bower  (0) 2019.01.28
node-red rpi 접속  (0) 2018.12.20
node.js express static  (0) 2018.12.11
node.js sso  (0) 2018.12.11
node.js rpi gpio  (0) 2018.12.08
Posted by 구차니