Programming/neon2018. 9. 10. 19:46

cluster 라는 패키지를 이용하면 손쉽게 한다는데

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

[링크 : https://jdm.kr/blog/166]


PM2 라는 Process Manager나

rabbitMQ(Message Queue?)를 쓰라는데 PM2가 무난해 보이긴 한다.

[링크 : http://pm2.keymetrics.io/]

[링크 : https://www.rabbitmq.com/]

  [링크 : https://medium.com/.../switching-from-cluster-module-to-pm2-rabbitmq-in-node-js-d0cce5eb96f4]

  [링크 : https://blog.outsider.ne.kr/1197]


찾다 보니 express 웹 렌더러를 클러스터로 하는 방법이 따로 있는듯 한데..

전체를 cluster로 하는거랑 다르려나/

[링크 : https://www.npmjs.com/package/express-cluster]

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

neon auto vectoring  (0) 2015.05.06
kernel mode neon support?  (0) 2015.05.06
NEON instruction  (0) 2015.05.05
neon 예제 실행 + 커널 교체  (0) 2015.05.04
arm neon 예제 컴파일  (0) 2015.05.03
Posted by 구차니

높은 위치의 사람도 이렇게 각오를 해야 한다면 일반 소시민들은 그게 가능할까?

남자던 여자던 일자리 포기할 각오로 육아휴직을 해야 한다는게 슬프다.


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

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

물티슈 난리났네  (2) 2018.09.21
오늘의 기부(?)  (0) 2018.09.14
에어컨 필터구매  (2) 2018.09.05
아내님 컴백  (0) 2018.09.01
처갓댁 옴  (0) 2018.08.25
Posted by 구차니
embeded/raspberry pi2018. 9. 10. 19:26

USB 사운드 카드가 잠시 생겨 일단 테스트 해보고 싶은 마음에 찾아보니..


arecord --device=hw:1,0 --format S16_LE --rate 44100 -c1 test.wav -V mono

aplay --device=plughw:1,0 test.wav 

[링크 : https://www.instructables.com/id/How-to-Record-Voice-With-USB-Microphone-Then-Play-/]


speaker-test -c2 -D plughw:1,0 

[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/testing-audio]

[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/recording-audio]

[링크 : https://scribles.net/voice-recording-on-raspberry-pi/]


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


+

[433655.786504] usb 1-1.4: new full-speed USB device number 4 using dwc_otg

[433655.924800] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=013c

[433655.924820] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[433655.924831] usb 1-1.4: Product: USB PnP Sound Device

[433655.936390] input: USB PnP Sound Device as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.3/0003:0D8C:013C.0001/input/input1

[433656.007216] hid-generic 0003:0D8C:013C.0001: input,hidraw0: USB HID v1.00 Device [USB PnP Sound Device] on usb-3f980000.usb-1.4/input3

[433656.114545] usbcore: registered new interface driver snd-usb-audio 


$ arecord -l

**** List of CAPTURE Hardware Devices ****

card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]

  Subdevices: 1/1

  Subdevice #0: subdevice #0 


$ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]

  Subdevices: 8/8

  Subdevice #0: subdevice #0

  Subdevice #1: subdevice #1

  Subdevice #2: subdevice #2

  Subdevice #3: subdevice #3

  Subdevice #4: subdevice #4

  Subdevice #5: subdevice #5

  Subdevice #6: subdevice #6

  Subdevice #7: subdevice #7

card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]

  Subdevices: 1/1

  Subdevice #0: subdevice #0 


일단 해보는데 극성이 문제인지

그냥은 안되고 마이크 쇼트 시키니 볼륨 메터가 뜨긴 한다.


결론 : 되긴하는데 마이크를 잘 골라야 할지도?


+

2019.09.11

윈도우에서 꽂으니 아래와 같은 식별자로 뜬다.

일단은(?) CM108 인듯?


[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/figure-out-your-chipset]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=74982]

'embeded > raspberry pi' 카테고리의 다른 글

라즈비안 업데이트  (0) 2018.09.11
node.js on rpi  (0) 2018.09.11
라즈베리 파이 SPI 속도  (0) 2018.05.18
라즈베리 2B + waveshare 35a + MAME 0.182  (0) 2018.05.18
odroid u3 headless setup중 문제..  (0) 2018.05.14
Posted by 구차니

마커를 추가하고 클릭시에 이벤트를 어떻게 발생시키는지 찾는중

(네이버 지도에서 검색하고 마커를 누르면 목록에서 선택되는데 이런 작동을 찾는중)


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

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

[링크 : https://developers.naver.com/forum/posts/24051]

Posted by 구차니

getBounds()로 화면상에 영역의 정보를 얻고

mapBounds.hasLatLng()를 통해서 인자로 받는 영역이 해당 바운드에 속하는지 확인한다.


function updateMarkers(map, markers) {


    var mapBounds = map.getBounds();

    var marker, position;


    for (var i = 0; i < markers.length; i++) {


        marker = markers[i]

        position = marker.getPosition();


        if (mapBounds.hasLatLng(position)) {

            showMarker(map, marker);

        } else {

            hideMarker(map, marker);

        }

    }

}


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

[링크 : https://developers.naver.com/forum/posts/15738]

Posted by 구차니
Programming/web 관련2018. 9. 10. 18:45


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

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

[링크 : https://en.wikipedia.org/wiki/Single_sign-on]

'Programming > web 관련' 카테고리의 다른 글

chrome 보안 무시  (0) 2018.11.13
REST API HTTP 에러코드  (0) 2018.11.06
tinestamp(epoch) to utc / localtime  (0) 2018.09.07
li 글자 수직정렬하기  (0) 2018.08.30
user agent stylesheet  (0) 2018.08.29
Posted by 구차니
Programming/node.js2018. 9. 10. 14:58

node.js 에서 다른 REST 서버로 요청하는걸 찾는중


option의 type을 지정하는거군..


[링크 : http://devnauts.tistory.com/95]

[링크 : http://shiya.io/send-http-requests-to-a-server-with-node-js/]

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

node.js 글로벌 모듈 목록보기  (0) 2018.09.11
node-rtsp-stream 윈도우에서 설치하기는 실패?  (0) 2018.09.11
cURL 그리고 REST  (6) 2018.09.09
node.js rtsp 스트리밍  (0) 2018.09.07
RESTful  (0) 2018.09.07
Posted by 구차니