'잡동사니'에 해당되는 글 13326건
- 2022.07.21 근 한달만의 블로그 정리 2
- 2022.07.20 golang unused import
- 2022.07.20 ubuntu 18.04에 사운드 카드가 갑자기 사라졌다?
- 2022.07.19 KF-21 초도비행 성공!
- 2022.07.18 시간만 지나간다.
- 2022.07.15 golang websocket package
- 2022.07.15 OBS studio 시간 추가하기
- 2022.07.14 node.js 웹소켓 채팅 서버 예제
- 2022.07.14 kms - Kernel Mode Setting
- 2022.07.13 v4l2 debug
import ( "encoding/json" "net/http" "fmt" "io" "github.com/go-resty/resty/v2" "golang.org/x/net/websocket" ) |
./main.go:9:2: imported and not used: "github.com/go-resty/resty/v2" as resty |
밑줄(_) 하나 넣어주면 넘어가긴 한다.
다만, 사용시에는 _를 빼줘야 정상적으로 인식해서 넣으나 마나하니.. 걍 주석처리 하는게 귀찮아도 나을 지도..?
import ( "encoding/json" "net/http" "fmt" "io" _ "github.com/go-resty/resty/v2" "golang.org/x/net/websocket" ) |
[링크 : https://stackoverflow.com/questions/25924749/import-and-not-used-error]
[링크 : https://knight76.tistory.com/entry/golang-imported-and-not-used]
'Programming > golang' 카테고리의 다른 글
golang mariadb 연동 (0) | 2022.08.30 |
---|---|
golang channel (0) | 2022.08.18 |
golang websocket package (0) | 2022.07.15 |
go run ./ (2) | 2022.04.18 |
golang module (0) | 2022.04.13 |
22.04 시대에 18.04라니.. 긴 한데
아무튼 gqrx 틀어 보니 가짜 출력(fake? dummy?) 라고 나오길래 찾아보니
아래의 모듈이 없어서 그렇다는데, 실행하고 나니 아래와 같이 헤드폰으로 잘 나온다.
$ sudo modprobe snd-hda-intel |
[링크 : https://www.linuxuprising.com/2018/06/fix-no-sound-dummy-output-issue-in.html]
생각해보니.. rtl-sdr 관련 /dev/dsp 이런거 해보려고 oss 설치했던게 생각이 나네 -_-
젠장 역시나!!
/etc/modprobe.d$ grep -rni intel . ./blacklist-modem.conf:3:# blacklist snd-intel8x0m ./blacklist-framebuffer.conf:13:blacklist intelfb ./alsa-base.conf:31:options snd-intel8x0m index=-2 ./oss4-base_noALSA.conf:83:blacklist snd-hda-intel ./oss4-base_noALSA.conf:94:blacklist snd-intel8x0 ./oss4-base_noALSA.conf:95:blacklist snd-intel8x0m ./blacklist.conf:21:# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much ./blacklist.conf:23:blacklist snd_intel8x0m |
'프로그램 사용 > rtl-sdr' 카테고리의 다른 글
gqrx, gnu radio, rfcat (0) | 2024.08.21 |
---|---|
rtl sdr 다중 채널 디코딩 (0) | 2022.08.30 |
RTL-SDR 11시 땡! (0) | 2022.01.07 |
gqrx 오디오 스트리밍 (0) | 2022.01.07 |
rpi gqrx (0) | 2022.01.07 |
기사가 자세한건 아니지만 초음속은 아니고 400km 정도 속도로 테스트 했다고
근데.. 전투기가 그 속도로 난다는게 더 어려운걸텐데
의도적으로 저속에서의 기동성, 실속 테스트를 병행한걸려나?
[링크 : https://biz.newdaily.co.kr/site/data/html/2022/07/19/2022071900185.html]
+
22.07.20
'개소리 왈왈 > 밀덕후짓' 카테고리의 다른 글
비행기에 120kg 단말기를 감당할 수 없어?! (2) | 2017.10.14 |
---|---|
엌ㅋㅋ V-22 얼짱각도가 중요했군? (2) | 2017.07.05 |
THAAD (0) | 2011.03.28 |
게임을 줄이고 먼가 공부를 하는게 나은걸 알고 있음에도
사람때문에 묶여서 줄이지 못하는게 조금은 슬프다.
만나는 사람이 없어서 그런식으로라도 누군가와 대화를 하고 싶어서 인걸까..
'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글
니퍼, 롱노우즈 구매 (0) | 2022.08.21 |
---|---|
덥다.. 여름인가 (0) | 2022.08.02 |
상큼한 월요일. 지각 -_- (0) | 2022.07.04 |
회사 야유회 (0) | 2022.06.24 |
총제적 난국 (0) | 2022.06.15 |
아래처럼 넣어주면 끝.
package main import ( "fmt" "log" "golang.org/x/net/websocket" ) func main() { origin := "http://localhost/" url := "ws://localhost:12345/ws" ws, err := websocket.Dial(url, "", origin) if err != nil { log.Fatal(err) } if _, err := ws.Write([]byte("hello, world!\n")); err != nil { log.Fatal(err) } var msg = make([]byte, 512) var n int if n, err = ws.Read(msg); err != nil { log.Fatal(err) } fmt.Printf("Received: %s.\n", msg[:n]) } |
'Programming > golang' 카테고리의 다른 글
golang channel (0) | 2022.08.18 |
---|---|
golang unused import (0) | 2022.07.20 |
go run ./ (2) | 2022.04.18 |
golang module (0) | 2022.04.13 |
golang 구조체 (0) | 2022.04.11 |
TV에 보면 시간이 뜨는데 그런거 하는방법
[링크 : https://obsproject.com/forum/resources/time-and-date-overlay-updated.1461/]
node.js 의 ws 패키지를 이용하여 웹소켓 채팅 서버를 만드는 예제
웹소켓 전체 목록을 통해 접속시 메시지를 보내는게 유용함.
'Programming > node.js' 카테고리의 다른 글
node excel export (0) | 2024.07.18 |
---|---|
web qr decoder (0) | 2024.04.04 |
ubuntu 18.04 / nodej.s 18.x 실패 (0) | 2022.05.19 |
웹소켓 (0) | 2022.03.25 |
broadway / jsmpeg (0) | 2020.09.16 |
linux drm(direct render mode)에서 나오는 용어인데 관계가 어떻게 되는진 모르겠다.
[링크 : https://www.kernel.org/doc/html/v4.15/gpu/drm-kms.html]
'Linux API' 카테고리의 다른 글
리눅스 사운드 시스템 혹은 사운드 라이브러리? (0) | 2024.05.15 |
---|---|
syslog c api(?) (0) | 2021.02.17 |
libescp (0) | 2019.01.03 |
cups api (0) | 2018.12.20 |
system wait stdout (0) | 2018.10.22 |
v4l2 디버깅을 위해서는 아래와 같이 설정해주면 dmesg에 출력되게 된다.
# echo 0x1f > /sys/class/video4linux/video1/dev_debug |
[링크 : https://stackoverflow.com/questions/24330671/v4l2-kernel-space-debugging]
guvcview 유틸리티를 이용해서 테스트.
하단의 exposure, auto / (absolute) / Auto Priority 관련 설정을 바꿀때 나오는 값 확인
Exposure, Auto - Aperture Priority Mode
[ 1041.346246] video2: VIDIOC_DQEVENT: type=0x3, pending=0, sequence=13, id=10094850, timestamp=1040.623934215 [ 1041.346259] changes=0x3, type=1, value=3216, flags=0x10, minimum=39, maximum=10000, step=1, default_value=156 [ 1041.346272] video2: VIDIOC_DQEVENT: error -2: type=0x0, pending=0, sequence=0, id=0, timestamp=0.000000000 |
Exposure, Auto - Manual / 3216
[ 1128.312839] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0901/0x3 [ 1128.312866] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0901/0x3 |
Exposure (Absolute)
[ 621.732496] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xe55 [ 621.733321] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xe55 [ 621.749803] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xe56 [ 621.750586] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xe56 [ 621.784790] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xcbf [ 621.785731] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xcbf [ 621.802333] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xcc0 [ 621.803150] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xcc0 [ 621.833353] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xc90 [ 621.834204] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xc90 [ 621.849972] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xc90 [ 621.850772] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0902/0xc90 |
Exposure, Auto Priority (선택)
[ 1464.855961] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0903/0x1 [ 1464.855989] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0903/0x1 |
Exposure, Auto Priority (미선택)
[ 1519.669796] video2: VIDIOC_S_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0903/0x0 [ 1519.669856] video2: VIDIOC_G_EXT_CTRLS: which=0x9a0000, count=1, error_idx=0, request_fd=0, id/val=0x9a0903/0x0 |
'Linux API > v4l' 카테고리의 다른 글
v4l2-ctl 밝기 조절 (0) | 2022.07.06 |
---|---|
v4l2 timestamp (0) | 2017.04.19 |
uv4l (0) | 2015.09.13 |
리눅스에 웹캠 연결시 인식 (5) | 2009.12.06 |