'2018/11/26'에 해당되는 글 4건

  1. 2018.11.26 node.js 혹은 sqlite?
  2. 2018.11.26 d3 온도/습도 그래프
  3. 2018.11.26 node.js sqlite3
  4. 2018.11.26 javascript 변수 정확도
Programming/node.js2018. 11. 26. 14:54

어디선가 대충짜서 메모리가 터져나가고 있나 본데..


Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 16777216, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 



sqlite-sync를 쓰는데 connect.close() 안해줘서 메모리 터져나간듯..

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

node.js compressed http  (0) 2018.12.06
waveform-data.js  (0) 2018.11.30
node.js sqlite3  (0) 2018.11.26
node.js xml <-> json  (0) 2018.11.25
node.js mysql blob  (0) 2018.11.23
Posted by 구차니
Programming/d32018. 11. 26. 13:13

서로 다른 계열의 데이터를 출력하는 방법을 찾는 중..


[링크 : https://github.com/LonnyGomes/attic-temperature-graph]



+

2018.12.21


[링크 : http://blog.fraggod.net/2016/08/05/d3-chart-for-common-temperaturerh-time-series-data.html[

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

d3 double line graph  (0) 2018.12.21
d3 axis  (0) 2018.11.27
d3 multi line graph  (0) 2018.11.21
d3.time.format  (0) 2018.11.21
d3 pie 칸색 바꾸기  (0) 2018.11.15
Posted by 구차니
Programming/node.js2018. 11. 26. 10:14

win10에 sqlite3 모듈을 써서 먼가 하려는데 안되서 찾아보니.. 걍 깔면됨 ㅋ


$ npm install


> sqlite3@4.0.4 install D:\work2\hjelec_tf\node\node_modules\sqlite3

> node-pre-gyp install --fallback-to-build


'node-pre-gyp'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는

배치 파일이 아닙니다.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! sqlite3@4.0.4 install: `node-pre-gyp install --fallback-to-build`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the sqlite3@4.0.4 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 



[링크 : https://www.npmjs.com/package/sqlite3]

[링크 : https://github.com/mapbox/node-pre-gyp]



+

sqlite-sync는 sqlite3 와는 API 구조가 많이 다르네..

[링크 : https://www.npmjs.com/package/sqlite-sync]

[링크 : https://github.com/JayrAlencar/sqlite-sync.js/wiki]

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

waveform-data.js  (0) 2018.11.30
node.js 혹은 sqlite?  (0) 2018.11.26
node.js xml <-> json  (0) 2018.11.25
node.js mysql blob  (0) 2018.11.23
sqlite for node.js  (0) 2018.11.21
Posted by 구차니

어쩌면 당연한건데.. 먼가 생소하게만 느껴지는 녀석



The maximum number of decimals is 17, but floating point arithmetic is not always 100% accurate:

Example

var x = 0.2 + 0.1;         // x will be 0.30000000000000004 

[링크 : https://www.w3schools.com/js/js_numbers.asp]

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

HTML border style 지정  (0) 2018.11.30
브라우저 닫기, 창 이동시 이벤트  (0) 2018.11.30
js object array sort by key  (0) 2018.11.21
wavesurfer.js 그리고 HE-AACv2  (0) 2018.11.21
requireJS  (0) 2018.11.21
Posted by 구차니