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

  1. 2018.10.16 node url parametet
  2. 2018.10.16 node.js spawn 과 exec
  3. 2018.10.16 d3 enter exit datum
  4. 2018.10.16 jquery shake
  5. 2018.10.16 d3 arc
  6. 2018.10.16 d3 color
  7. 2018.10.16 jquery ani arc
  8. 2018.10.16 js setinterval
  9. 2018.10.16 ajax each
  10. 2018.10.15 canvas clearRect
Programming/node.js2018. 10. 16. 19:15

node.js에서 url로 데이터를 받는 방법에 대한 글


/api/value 나

/api?key=value 나

POST header로 받는 법이 있음


[링크 : https://scotch.io/tutorials/use-expressjs-to-get-url-and-post-parameters]


(req.params) Checks route params, ex: /user/:id

(req.query) Checks query string params, ex: ?id=12 Checks urlencoded body params

(req.body), ex: id=12 To utilize urlencoded request bodies, req.body should be an object. This can be done by using the _express.bodyParser middleware. 

[링크 : https://stackoverflow.com/.../how-to-get-get-query-string-variables-in-express-js-on-node-js]

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

node spawn args  (0) 2018.10.17
node post header max size  (0) 2018.10.16
node.js spawn 과 exec  (0) 2018.10.16
node tmp uuid  (0) 2018.10.12
node.js mysql PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR 에러  (0) 2018.10.11
Posted by 구차니
Programming/node.js2018. 10. 16. 18:56

실행하는 것에는 child-process 하위의

exec와 spawn이 있는데 exec는 버퍼를 돌려주고 spawn은 스트림을 돌려준다고 한다.

그런 이유로 dir /s와 같이 미친듯한 용량의 데이터를 뿜어주는 애를

exec로 실행할 경우 금세 200KB 버퍼 용량이 차서 node가 뻗어 버리게 된다.


[링크 : https://nodejs.org/api/child_process.html]

[링크 : https://stackoverflow.com/questions/10232192/exec-display-stdout-live]


kill

[링크 : https://stackoverflow.com/questions/18275809/kill-all-child-process-when-node-process-is-killed]


exec buffer 200kb

[링크 : http://ohgyun.com/453]

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

node post header max size  (0) 2018.10.16
node url parametet  (0) 2018.10.16
node tmp uuid  (0) 2018.10.12
node.js mysql PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR 에러  (0) 2018.10.11
node.js 정적 파일 서비스  (0) 2018.10.10
Posted by 구차니
Programming/d32018. 10. 16. 16:17

d3는 차근차근 볼 수 있는 api 문서가 눈에 잘 안띄네...

아무튼 enter / exit / datum에 대한 설명과 전반적인 설명이 그나마 체계적으로 써있는 페이지 


[링크 : http://www.tutorialsteacher.com/d3js/data-binding-in-d3js]

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

d3 arc 직접 그리기  (0) 2018.10.17
d3 pie with padding  (0) 2018.10.16
d3 arc  (0) 2018.10.16
d3 color  (0) 2018.10.16
d3 timeline  (0) 2018.10.12
Posted by 구차니
Programming/jquery2018. 10. 16. 16:12

animation을 쓰지 않아도 되는 녀석으로 발견


<script>

$( document ).click(function() {

  $( "#toggle" ).effect( "shake" );

});

</script> 

[링크 : https://api.jqueryui.com/shake-effect/]

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

jquery selector와 document.getElementById 차이  (0) 2018.11.05
jquery trigger()  (0) 2018.10.25
jqeury ajax 수행 완료 기다리기  (0) 2018.10.23
jquery ajax data, header  (0) 2018.10.23
jquery ani arc  (0) 2018.10.16
Posted by 구차니
Programming/d32018. 10. 16. 15:25

arc 그리는 방법

[링크 : http://bl.ocks.org/mbostock/5100636]

[링크 : https://bl.ocks.org/d3indepth/5cc68ffe573562772bed1e394b50f7dc]


label - 도표에 각 부분 선을 그어서 표기해주는 걔

[링크 : http://bl.ocks.org/dbuezas/9306799]


+

2018.10.17

걍 내가 의도한걸 구현하는데에는 이거 보다는 padding이 들어간 pie graph가 나을 듯

(특정 색상만 지정하도록 하면)

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

d3 pie with padding  (0) 2018.10.16
d3 enter exit datum  (0) 2018.10.16
d3 color  (0) 2018.10.16
d3 timeline  (0) 2018.10.12
d3 관련 검색..  (0) 2018.10.12
Posted by 구차니
Programming/d32018. 10. 16. 15:21

d3 그래프에서 미리 지정된 색을 쓰는게 아닌 원하는 대로 색을 쓰는법 찾는중..


[링크 : http://bl.ocks.org/aaizemberg/78bd3dade9593896a59d]

[링크 : http://bl.ocks.org/WilliamQLiu/292ef433e312ac69ef14]

[링크 : https://github.com/d3/d3-color]

[링크 : https://d3-wiki.readthedocs.io/zh_CN/master/Colors/]


[링크 : https://stackoverflow.com/questions/21208031/how-to-customize-the-color-scale-in-a-d3-line-chart]



+

2018.10.17


    var color = d3.scale.linear()

        .range(['#d73027', '#1a9850'])

        .interpolate(d3.interpolateHcl); 

[링크 : https://github.com/d3/d3-interpolate]


d3랑 d4랑 함수들이 많이 달라진듯..

[링크 : https://stackoverflow.com/questions/41178111/d3js-d3-scale-category10-not-working]



+

donut/pie 그래프에 쓸 색상

    var color = d3.scale.ordinal()

        .range(["#65C400", "#2290EE", "#FFC096", "#5e5e5e"]); 

[링크 : https://stackoverflow.com/questions/33802750/how-to-change-color-of-donut-chart-created-using-d3-js]

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

d3 enter exit datum  (0) 2018.10.16
d3 arc  (0) 2018.10.16
d3 timeline  (0) 2018.10.12
d3 관련 검색..  (0) 2018.10.12
d3 multi level pie 그래프  (0) 2018.10.11
Posted by 구차니
Programming/jquery2018. 10. 16. 15:11

원 모양으로 위치 이동 애니메이션 시킬때 쓰려고 찾는 중


[링크 : https://stackoverflow.com/questions/19653603/how-to-animate-an-image-along-an-arc]

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

jquery selector와 document.getElementById 차이  (0) 2018.11.05
jquery trigger()  (0) 2018.10.25
jqeury ajax 수행 완료 기다리기  (0) 2018.10.23
jquery ajax data, header  (0) 2018.10.23
jquery shake  (0) 2018.10.16
Posted by 구차니

원래 용도는 아니지만 쓰레드나 백그라운드 비슷하게 작동시킬수 있을 듯

(동기 작업으로 해놓고 그걸 백그라운드로 돌린다던가)


[링크 : https://stackoverflow.com/questions/4930439/call-jquery-ajax-request-each-x-minutes]

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

js toHexString()  (0) 2018.10.23
jsmpeg div로 사용시 옵션  (0) 2018.10.18
ajax each  (0) 2018.10.16
canvas clearRect  (0) 2018.10.15
console.log 에 객체 배열 출력하기  (0) 2018.10.15
Posted by 구차니

foreach가 비동기인진 모르겠지만

each는 일단 동기로 작동한다고 한다.


[링크 : https://stackoverflow.com/.../jquery-ajax-each-callback-next-each-firing-before-ajax-completed]

[링크 : https://stackoverflow.com/.../is-jquery-each-function-synchronous]

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

jsmpeg div로 사용시 옵션  (0) 2018.10.18
js setinterval  (0) 2018.10.16
canvas clearRect  (0) 2018.10.15
console.log 에 객체 배열 출력하기  (0) 2018.10.15
ajax를 동기로(?)  (0) 2018.10.15
Posted by 구차니

canvas를 지워주는 녀석

근데.. 투명 이미지의 경우 이상하게 작동하는 것 같으니

투명 이미지를 위해서 이미지 복사시에는 반드시

clearRect() 해주고

drawImage()를 해주어야 한다.


[링크 : https://stackoverflow.com/questions/2142535/how-to-clear-the-canvas-for-redrawing]

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

js setinterval  (0) 2018.10.16
ajax each  (0) 2018.10.16
console.log 에 객체 배열 출력하기  (0) 2018.10.15
ajax를 동기로(?)  (0) 2018.10.15
로컬파일 접근...이 안되는거니까..  (0) 2018.10.12
Posted by 구차니