'잡동사니'에 해당되는 글 13738건
- 2024.08.27 잠 좀 자자 ㅠㅠ
- 2024.08.27 라즈베리 파이에 파이썬 스크립트를 서비스로 등록하기
- 2024.08.26 pulseaudio error : access denied
- 2024.08.25 컴퓨터 수리와 부품 털어내기
- 2024.08.24 영풍문고 다녀옴
- 2024.08.23 blender set origin
- 2024.08.23 SDV - software defined vehicle
- 2024.08.22 개피곤 개더워
- 2024.08.21 gqrx, gnu radio, rfcat
- 2024.08.21 js DataView()
결국은 systemd에 등록인데..
python 프로그램의 경우 pip -g로 인스톨 해서 전역으로 하지 않으면
대부분(?) 에러가 나던데.. 그건 언급이 없네
| cd /lib/systemd/system/ sudo nano hello.service The service definition must be on the /lib/systemd/system folder. Our service is going to be called "hello.service": [Unit] Description=Hello World After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/python /home/pi/hello_world.py Restart=on-abort [Install] WantedBy=multi-user.target Here we are creating a very simple service that runs our hello_world script and if by any means is aborted is going to be restarted automatically. You can check more on service's options in the next wiki: https://wiki.archlinux.org/index.php/systemd. Now that we have our service we need to activate it: sudo chmod 644 /lib/systemd/system/hello.service chmod +x /home/pi/hello_world.py sudo systemctl daemon-reload sudo systemctl enable hello.service sudo systemctl start hello.service |
[링크 : https://gist.github.com/emxsys/a507f3cad928e66f6410e7ac28e2990f]
'embeded > raspberry pi' 카테고리의 다른 글
| 라즈베리 파이 gui 재시작(lxde) (0) | 2024.09.19 |
|---|---|
| 라즈베리 파이 gui 자동실행 (0) | 2024.09.19 |
| pgadmin4 를 rpi에 설치하기 성공 (0) | 2024.07.29 |
| pgadmin3 안되잖아?! (0) | 2024.07.26 |
| rpi 콘솔 옮기기 (0) | 2024.02.26 |
gqrx를 설치해서 원격으로 음악이나 들으려고 했더니
연결 거부되었다고 에러가 나서 검색.
| $ gqrx "Pulseaudio error: 연결 거부됨" $ pax11publish -r $ gqrx gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.1.1 |
-r 곱션을 찾아보니 remove의 r인 것 같은데.
| $ pax11publish -help pax11publish [-D display] [-S server] [-O sink] [-I source] [-c file] [-d|-e|-i|-r] -d X11 디스플레이에 연결된 최신 PulseAudio 데이터 표시 (기본값) -e X11 디스플레이에 로컬 PulseAudio 데이터를 내보내기 -i X11 디스플레이에서 로컬 환경 변수 및 쿠키 파일에 PulseAudio 데이터 가져오기. -r X11 디스플레이에서 PulseAudio 데이터 삭제 |
이걸 한다고 해서 SSH client 쪽으로 소리가 나는 것도 아니고.. 애매하네
| $ man pax11publish pax11publish(1) General Commands Manual pax11publish(1) NAME pax11publish - PulseAudio X11 Credential Utility SYNOPSIS pax11publish -h pax11publish [options] [-d] pax11publish [options] -e pax11publish [options] -i pax11publish [options] -r DESCRIPTION The pax11publish utility can be used to dump or manipulate the PulseAu‐ dio server credentials that can be stored as properties on the X11 root window. Please note that the loadable module module-x11-publish exports the same information directly from the PulseAudio sound server, and should in most cases be used in preference over this tool. Use the following command to dump the raw PulseAudio-specific data that is stored in your X11 root window: xprop -root | grep ^PULSE_ OPTIONS -h Show help. -d Read the PulseAudio server credentials currently set on the X11 root window and dump them in a human readable form. This reads the PULSE_SERVER, PULSE_SINK, PULSE_SOURCE and PULSE_COOKIE properties. -i Similar to -d, however dumps them in a Bourne shell compatible format so they may be used together with the eval shell command to set the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables. Also reads the authentication cookie from the root window and stores it in ~/.config/pulse/cookie. -e Export the currently locally used sound server, sink, source configuration to the X11 root window. This takes the data from the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment vari‐ ables and combines them with the data from ~/.con‐ fig/pulse/client.conf (or /etc/pulse/client.conf if that file does not exist). If specific options are passed on the command line (-S, -O, -I, -c, see below), they take precedence. Also up‐ loads the local authentication cookie ~/.config/pulse/cookie to the X11 server. -r Removes the configured PulseAudio configuration from the X11 root window. -D DISPLAY Connect to the specified X11 display, instead of the default one configured in $DISPLAY. -S SERVER Only valid for -e: export the specified PulseAudio server as de‐ fault to the X11 display instead of the one configured via local configuration. -O SINK Only valid for -e: export the specified sink as default sink to the X11 display instead of the one configured via local configu‐ ration. -I SOURCE Only valid for -e: export the specified source as default to the X11 display instead of the one configured via local configura‐ tion. -c FILE Only valid for -e: export the PulseAudio authentication cookie stored in the specified file to the X11 display instead of the one stored in ~/.config/pulse/cookie. AUTHORS The PulseAudio Developers <pulseaudio-discuss (at) lists (dot) freedesktop (dot) org>; PulseAudio is available from http://pulseau‐ dio.org/ SEE ALSO pulseaudio(1), xprop(1) Manuals User pax11publish(1) |
'프로그램 사용 > rtl-sdr' 카테고리의 다른 글
| openwebrx (0) | 2024.09.06 |
|---|---|
| gnu radio를 이용한 커스텀 gqrx 만들기 (0) | 2024.09.06 |
| gqrx, gnu radio, rfcat (0) | 2024.08.21 |
| rtl sdr 다중 채널 디코딩 (0) | 2022.08.30 |
| ubuntu 18.04에 사운드 카드가 갑자기 사라졌다? (0) | 2022.07.20 |
다운로드 받은걸 가져와서 회전하려니까
이상한 곳에서 회전되는데 도무지 삭제가 되지 않는 커서도 아닌 무언가가 있어서 찾아보니
origin 인듯.
아무튼 오리진을 도형(?)의 중심으로 옮기는건 우클릭 - Set Origin - Origin to Geometry 해주면 된다.
| Type Geometry to Origin Moves the model to the origin and this way the origin of the object will also be at the center of the object. Origin to Geometry Moves the origin to the center of the object. Origin to 3D Cursor Moves the origin of the model to the position of the 3D cursor. Origin to Center of Mass Moves the origin to the calculated center of mass of model (assuming the mesh has a uniform density). Center Median Point Center, Bounding Box Center |
[링크 : https://docs.blender.org/manual/en/latest/scene_layout/object/origin.html]
커서는 마음대로 옮길수 있으니 커서로 오리진을 이동시키는 듯.
'프로그램 사용 > Blender' 카테고리의 다른 글
| blender render - cycle, eevee (0) | 2024.08.30 |
|---|---|
| blender shader editor (4.2 bloom) (0) | 2024.08.29 |
| blender 4.x 구동 실패 (0) | 2024.08.20 |
| blender snap(붙이기) (0) | 2024.08.16 |
| 블렌더 축이동 제한하기 (0) | 2024.08.14 |
뉴스레터가 와서 보는데 SDV...?
Software Defined Vehicle 의 약자인데 도대체 이건 머하는건가 싶은데..
[링크 : https://ko.wikipedia.org/wiki/Software_Defined_Vehicle]
가.. 갑자기 devops는 왜 나와?!?!?
[링크 : https://blog.naver.com/avl-korea/223245170275]
그 와중에 HIL 테스트 이런게 보여서 검색해보니, MBD(Model Based Design)에서 나오는 테스트 방법론(?)인가 보다.
[링크 : https://en.wikipedia.org/wiki/Model-based_design]
[링크 : https://kr.mathworks.com/matlabcentral/answers/440277-what-are-mil-sil-pil-and-hil-and-how-do-they-integrate-with-the-model-based-design-approach] MIL SIL PIL HIL ...
[링크 : https://blog.naver.com/suresofttech/220772067577] HILS
'분류가 모호한 글' 카테고리의 다른 글
| 시간을 소비한다? (0) | 2025.09.24 |
|---|---|
| buildroot rootfs overlay (2) | 2023.06.16 |
| FMCW, MMIC (0) | 2022.03.22 |
| 베르세르크 작가 미우라 켄타로 사망 (2) | 2021.05.22 |
| good bye 척 예거 (2) | 2020.12.09 |
자동차 RF 키가 발생시키는 rf 주파수를 녹음하고, 분석하고, 송신하는 예제
'프로그램 사용 > rtl-sdr' 카테고리의 다른 글
| gnu radio를 이용한 커스텀 gqrx 만들기 (0) | 2024.09.06 |
|---|---|
| pulseaudio error : access denied (0) | 2024.08.26 |
| rtl sdr 다중 채널 디코딩 (0) | 2022.08.30 |
| ubuntu 18.04에 사운드 카드가 갑자기 사라졌다? (0) | 2022.07.20 |
| RTL-SDR 11시 땡! (0) | 2022.01.07 |
웹 소켓으로 float 형을 보내고 받는 예제를 만들어 달라고 gpt에 요청했더니
처음보는 객체...? 메소드가 보여서 검색
그런데 push 하면 안느리려나? 조금 걱정되네
Int32Array나 Float32Array로 좀더 해보고 안되면 DataView로 해봐야겠다.
| socket.onmessage = function(event) { const data = event.data; const floatData = []; const intData = []; const floatSize = 4; // float32는 4바이트 const intSize = 4; // int32는 4바이트 const floatArrayLength = 4; const intArrayLength = 4; const view = new DataView(data); // float32 배열 추출 for (let i = 0; i < floatArrayLength; i++) { floatData.push(view.getFloat32(i * floatSize, true)); } // int32 배열 추출 for (let i = 0; i < intArrayLength; i++) { intData.push(view.getInt32(floatArrayLength * floatSize + i * intSize, true)); } document.getElementById("floatData").textContent = JSON.stringify(floatData); document.getElementById("intData").textContent = JSON.stringify(intData); }; |
[링크 : https://chatgpt.com/share/fb063d40-1441-457c-a209-0f594d2c482d]
[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/DataView/DataView]
[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat32]
'Programming > javascript & HTML' 카테고리의 다른 글
| Uncaught TypeError: object.at is not a function (0) | 2025.03.04 |
|---|---|
| javascript ... (rest parameter) (0) | 2024.08.12 |
| qr decoder (0) | 2024.04.19 |
| QR decoder로 로또 추첨하기 (0) | 2024.04.16 |
| javascript 집합(set) 내용 출력하기 (0) | 2024.04.16 |