개소리 왈왈/컴퓨터2022. 11. 23. 23:51

usb 전원으로 작동하는 초기형 스틱 pc라면

usb 보조 배터리로 켜고

들고 다니면서 x86 개발용 장난감으로 쓸수 있지 않을까?

 

근데 아톰

근데 발열

근데 안팜(유행 많이 지남)

 

휴...

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

컴퓨터.. 옆그레이드?  (0) 2022.12.02
intel HD 630 메모리 채널별 성능 차이  (0) 2022.11.27
삼성 플렉스 알파 키보드 백라이트..  (0) 2022.11.09
ai 그림  (0) 2022.11.07
로지텍 M185  (0) 2022.09.26
Posted by 구차니
Linux API/linux2022. 11. 23. 19:03

'Linux API > linux' 카테고리의 다른 글

segfault시 calltree 출력하기  (0) 2022.11.28
pthread 테스트  (0) 2022.11.24
iio(industrial io) 문서  (0) 2022.11.11
mkpipe 와 poll  (0) 2022.10.26
‘F_SETPIPE_SZ’ undeclared  (0) 2022.10.20
Posted by 구차니
Programming/golang2022. 11. 22. 18:11

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

golang unsafe  (0) 2023.01.03
golang 웹 pprof  (0) 2023.01.03
golang net.TCPConn  (0) 2022.10.07
golang 변수 타입 알아내기  (0) 2022.10.05
cgo  (0) 2022.10.04
Posted by 구차니
Microsoft/Office2022. 11. 22. 10:56

그래프를 그릴때 두가지 정보에 대해서 분산형으로 그리고

 

그래프 우측에 +를 눌러 추세선을 추가하고

 

대충 주물주물 하면 나오긴 한데..

의도한 만큼 정확하게 추정은 쉽지 않은 듯..

[링크 : https://jungwonlab.tistory.com/entry/엑셀Excel에서-데이터를-선형-n차-근사-및-피팅-값-구하기slope-intercept-index-linest]

'Microsoft > Office' 카테고리의 다른 글

워드 서식 복사해서 붙여넣기  (0) 2021.07.20
MS word 그림/표 목차  (0) 2020.11.23
MS Word 그림목차  (0) 2020.11.16
엑셀 배열수식  (0) 2019.12.08
엑셀 SUMPRODUCT()  (0) 2019.12.08
Posted by 구차니

12시간 안 먹었는데도 소화가 덜 되었고..(전날 좀 춥게 자서 그런가..)

수면했는데도 세번 정도 깬 기억이 있고

한달간의 약을 먹고 빨리 대장 내시경까지 하라는데 으아아

준비하는거 너무 힘들어!!! ㅠㅠ

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

dog 피곤  (0) 2022.11.29
멘탈 와사사사사삭  (0) 2022.11.28
으어어어어  (0) 2022.11.10
아 피곤하다  (0) 2022.10.14
개발자 단상  (4) 2022.09.07
Posted by 구차니

장모님 댁으로 고고!

코로나 걸려서 못가고 이래저래 바쁘시다고 못가고 난리치다가

거의 5개월 만에 가는 듯.

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

올해 첫 눈?  (0) 2022.12.03
심장사상충 성충 수명  (0) 2022.12.02
치느님은 옳다  (0) 2022.11.13
코로나 골골골  (0) 2022.11.12
10월 끝  (0) 2022.10.31
Posted by 구차니
개소리 왈왈/블로그2022. 11. 18. 14:03

내 돈 들이는게 아니라 기부금 처리가 안되서 매번 아쉽..

 

이번에는 광고를 많이 놓쳤나.. 금액이 적다.

'개소리 왈왈 > 블로그' 카테고리의 다른 글

티스토리 약관 개정.. 이것 봐라?  (0) 2023.01.04
블로그 공개는 2주나 한달에 한번?  (0) 2022.12.06
티스토리 복구는 개뿔  (0) 2022.10.17
티스토리 드뎌 복구  (2) 2022.10.16
카카오 계정 통합  (0) 2022.08.26
Posted by 구차니
Programming/openGL2022. 11. 17. 17:49

wayland / weston 에서 glReadPixels를 통해 읽어 오는게 실패해서 찾아보니

glUserProgram()을 하면 된다는데.. 문제는 어떤 컨텍스트의 정보를 어떻게 받아오냐 일 듯..

 

glPixelStorei(GL_PACK_ALIGNMENT, 1);
glReadPixels(0, 0, output->width, output->height, GL_RGBA, GL_UNSIGNED_BYTE, data);

[링크 : https://github.com/ereslibre/wayland/blob/master/compositor/screenshooter.c]

 

It's an error to call anything but a very limited set of functions between glBegin and glEnd. That list is mostly composed of functions related to specifying attributes of a vertex (e.g., glVertex, glNormal, glColor, glTexCoord, etc.).

So, if your OpenGL implementation is following the OpenGL specification, glReadPixels should return immediately without executing because of being called within a glBegin/glEnd group. Remove those from around your calls, and glReadPixels should work as expected.

[링크 : https://stackoverflow.com/questions/19351568/glreadpixels-doesnt-work]

 

I figured it out. All I had to do was add glUseProgram(0) at the very end of the draw cylinder function. After more than 3 weeks of looking into this.

[링크 : https://computergraphics.stackexchange.com/questions/8354/why-is-glreadpixels-only-working-in-certain-cases]

 

glUseProgram — Installs a program object as part of current rendering state

[링크 : https://registry.khronos.org/OpenGL-Refpages/gl4/html/glUseProgram.xhtml]

[링크 : https://stackoverflow.com/questions/13546461/what-does-gluseprogram0-do]

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

blender in openGL  (0) 2025.04.28
opengl glortho gluperspective  (0) 2023.08.28
openCV + openGL  (0) 2022.02.08
glMatrixMode()  (0) 2020.04.14
opengl superbible 3rd 리눅스 빌드 패키지  (0) 2020.04.08
Posted by 구차니

'프로그램 사용 > fft, fftw' 카테고리의 다른 글

cabs()  (0) 2023.02.15
FFT 분석 기법  (0) 2023.02.07
fftw @ 22Hz sine파 대충 돌려보니  (0) 2022.11.16
real to complex  (0) 2022.11.04
fftw wisdom  (0) 2022.11.04
Posted by 구차니

요건.. sin() 함수를 이용해서 만든 입력 신호(원본)

대충.. 22.5Hz 되는 것 같은데..

 

fftw 결과의 첫번째 값.. 이게 허수부인지 실수부인지 모르겠다

a+bi 식이니 a 쪽이라 실수부 라고 봐야 할 것 같긴한데..

 

앞 부분만 잘라서 보니 대충.. 22 근처에 피크 하나 발생

 

요건.. 아마도 허수부

 

실수부와는 반대 형태로 발생

 

sqrt(a^2 + b^2) 로 계산해보니

 

23 앞뒤로 샤프하게 주파수 하나 발생한게 보이긴 한데..

 

이걸 10*log(n) 으로 줘보니.. 40dB 라고 보면 되려나? 단위가 어떻게 되는지 감이 안온다.

 

부분만 보면.. 23 근처에 peak로 뜨긴 한데..

 

16000sampling/sec 를 기준으로 데이터를 생성한거라..

결과로 나오는 8khz 대역중 22hz 하나에 peak로 뜨는건.. 너무 무리하게 sharp한 결과를 바라는것 같고..

아니면 window 크기를 조절해서 더 샤프하게 분석이 가능한가 궁금하기도 하네.

 

https://stackoverflow.com/questions/4675457/how-to-generate-the-audio-spectrum-using-fft-in-c#comment5156988_4675457

+

The data is an array of type fftw_complex, which is by default a double[2] composed of the real (in[i][0]) and imaginary (in[i][1]) parts of a complex number.

[링크 : https://www.fftw.org/fftw3_doc/Complex-One_002dDimensional-DFTs.html]

 

 복소수(複素數, 영어: complex number)는 {\displaystyle a+bi}a+bi ({\displaystyle a,b}a,b는 실수) 꼴의 수이다.

[링크 : https://ko.wikipedia.org/wiki/복소수]

'프로그램 사용 > fft, fftw' 카테고리의 다른 글

FFT 분석 기법  (0) 2023.02.07
fft window 함수  (0) 2022.11.16
real to complex  (0) 2022.11.04
fftw wisdom  (0) 2022.11.04
FFT  (0) 2022.10.24
Posted by 구차니