'잡동사니'에 해당되는 글 13451건

  1. 2023.07.12 canvas 없는 getcontext
  2. 2023.07.12 nvidia 채굴 그래픽 카드 hybrid mode
  3. 2023.07.12 octave audioread wav
  4. 2023.07.12 sfft
  5. 2023.07.11 지하철 연착
  6. 2023.07.10 rpi bear metal
  7. 2023.07.10 RC 회로 - RC 발진 / LPF / HPF
  8. 2023.07.10 gcovr - gocv 를 html로
  9. 2023.07.10 gprof gui
  10. 2023.07.09 기절 2

document 객체를 이용해서 element를 생성만 하고 추가하지 않으면 되는건가?

// Create a canvas element
var canvas = document.createElement('canvas');
canvas.width = 500;
canvas.height = 400;

// Get the drawing context
var ctx = canvas.getContext('2d');

// Then you can do stuff, e.g.:
ctx.fillStyle = '#f00';
ctx.fillRect(20,10,80,50);

 

var offscreen = new OffscreenCanvas(256, 256);

[링크 : https://stackoverflow.com/questions/3892010/create-2d-context-without-canvas]

 

크롬에서 확인해보니 먼가 되는것 같긴 하다?

버전 114.0.5735.198(공식 빌드) (64비트)

var offscreen = new OffscreenCanvas(256, 256);
undefined
ctx = offscreen.getContext("2d")
OffscreenCanvasRenderingContext2D {canvas: OffscreenCanvas, globalAlpha: 1, globalCompositeOperation: 'source-over', filter: 'none', imageSmoothingEnabled: true, …}

 

+

OffscreenCanvas() 에는 toDataURL()이 없나보다.

 

+

getContext("2d").canvas 로 하면 굳이 복잡하게 하지 않아도 바로 imf로 떨어지는 듯.

var first = document.getElementById('first').getContext('2d');
var sec = document.getElementById('second').getContext('2d');

// draw on first canvas
first.fillStyle = '#07C';
first.fillRect(0, 0, first.canvas.width, first.canvas.height);

// draw image on second canvas
var img = new Image();
img.src = "http://lorempixel.com/300/300";
img.onload = function() {
   sec.drawImage(img, 0, 0, sec.canvas.width, sec.canvas.height);
   sec.drawImage(first.canvas, 100, 100, 100, 100); // draw first canvas on a portion of second canvas
};

[링크 : https://stackoverflow.com/questions/44574228/copying-and-pasting-one-canvas-inside-another-canvass-corner]

Posted by 구차니
Microsoft/Windows2023. 7. 12. 12:24

채굴 전용 그래픽 카드의 경우 디스플레이 출력이 없는데

인텔 내장 그래픽을 통해서 출력하고, 연산은 그래픽 카드가 하는 식으로

약간의 성능 하락은 있지만 사용이 가능한 방법이 있다고 하는데, 어떤 기술을 쓰는지 궁금해서 조사

 

NVIDIA® Nsight Graphics™ is able to profile and debug applications on laptops using Windows 10 Hybrid mode. In order to do so, you will need to configure your machine to use the high-performance NVIDIA GPU for NVIDIA Nsight Graphics.

[링크 : https://docs.nvidia.com/nsight-graphics/2018.4/content/nsight_graphics/setup_hybrid_mode.htm]

 

Windows 8.1 WDDM(Windows Display Driver Model) 드라이버는 통합 GPU와 불연속 GPU 간에 어댑터 간 리소스가 공유되고 애플리케이션의 요구 사항에 따라 애플리케이션을 GPU에서 실행할 수 있는 하이브리드 시스템을 지원할 수 있습니다. 운영 체제와 드라이버는 함께 애플리케이션이 실행되어야 하는 GPU를 결정합니다.

[링크 : https://learn.microsoft.com/ko-kr/windows-hardware/drivers/display/using-cross-adapter-resources-in-a-hybrid-system]

 

\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318} 이동
 
0000 0001 0002 각각 폴더에 EnableMsHybrid 이름으로 dword 32비트값 생성 생성후 값데이터 1로 변경
 
리부팅후 엔비디아 제어판 실행. 테스트 그래픽카드는 p106-90 3g 입니다..

[링크 : https://www.ddengle.com/ko/mining/12240170]

 

 

새로만들기 32BIT DWORD값 EnableMSHybrid 1

[링크 : https://m.blog.naver.com/dogrllee/221939026564]

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

원격 데스크톱 포트 변경하기  (0) 2024.01.15
mstsc 제한된 계정  (0) 2023.12.18
win11 notepad 별루야!  (0) 2023.04.10
7세대는 윈도우 11이 안되는 군!  (2) 2023.03.04
윈도우 시리얼 날리기  (0) 2023.02.24
Posted by 구차니
프로그램 사용/octave2023. 7. 12. 11:30

various 치고는 wav, flac, ogg 세개는 너무하지 않냐.. mp3는 어디갔어 ㅠㅠ

 

33.1 Audio File Utilities
The following functions allow you to read, write and retrieve information about audio files. Various formats are supported including wav, flac and ogg vorbis.

Loadable Function: info = audioinfo (filename)
Return information about an audio file specified by filename.

Loadable Function: [y, fs] = audioread (filename)
Loadable Function: [y, fs] = audioread (filename, samples)
Loadable Function: [y, fs] = audioread (filename, datatype)
Loadable Function: [y, fs] = audioread (filename, samples, datatype)

[링크 : https://docs.octave.org/v4.0.0/Audio-File-Utilities.html]

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

octave csv에서 읽어들이기  (0) 2024.11.26
공짜 matlab? octave  (0) 2015.11.05
Posted by 구차니

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

FFT RBW  (0) 2023.09.19
tek.com fft 관련 문서  (0) 2023.07.19
fft window type과 진폭 보정계수  (0) 2023.07.04
fft window 함수  (0) 2023.07.03
pFFFT 사용법  (0) 2023.06.15
Posted by 구차니

비가 하도 많이 와서 지하철이 연착된거 오랫만인가..

아니 이제 잦으려나?

기상 이변으로 인해 국지성 호우나 스콜이 기본이 된 느낌..

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

줘같네  (0) 2023.07.31
현타  (0) 2023.07.18
하루가 짧다  (0) 2023.06.29
먼가 갑자기 한가해진 느낌?  (2) 2023.05.23
사설? 다른 길은 안 보이는 ‘코딩 권하는 사회’ 괜찮나?  (0) 2023.05.22
Posted by 구차니
embeded/raspberry pi2023. 7. 10. 19:04

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

bmp280 HW-611  (0) 2023.09.19
라즈베리 파이 openOCD jtag?  (0) 2023.07.24
라즈베리 3 전원 off  (2) 2023.07.02
rpi win 10 IoT  (0) 2023.02.02
i2cdetect UU  (0) 2023.01.18
Posted by 구차니
이론 관련/전기 전자2023. 7. 10. 16:18

 

Low Pass Filter

[링크 : http://www.ktword.co.kr/test/view/view.php?m_temp1=4806]

 

High Pass Filter

[링크 : http://www.ktword.co.kr/test/view/view.php?no=3968]

 

RC 발진

[링크 : http://www.ktword.co.kr/test/view/view.php?m_temp1=5257]

[링크 : https://murcielrago.tistory.com/93]

 

어떻게 보면 RC oscilator와 HPF가 비슷한 구조인 것 같기도 하고..

'이론 관련 > 전기 전자' 카테고리의 다른 글

유선 전화기 들면 들리는 소리  (0) 2023.07.25
envelope detection  (0) 2023.07.14
pvt - process voltage temperature  (0) 2023.06.30
필터 차수(order)  (0) 2023.06.21
진폭 복조  (0) 2023.06.09
Posted by 구차니

 

$ gcovr 
(WARNING) GCOV produced the following errors processing /proj/bin/app-config.gcno:
/proj/bin/app-config.gcda:cannot open data file, assuming not executed
Cannot open source file config.c

 

 

gcovr -r ../.. --html-details -o ../../../coverage.html ...

[링크 : https://github.com/gcovr/gcovr/issues/368]

 

GCOVR(1)                                                    User Commands                                                    GCOVR(1)

NAME
       gcovr - generate simple coverage reports

DESCRIPTION
       usage: gcovr [options] [search_paths...]

       A utility to run gcov and summarize the coverage in simple reports.

OPTIONS
       -h, --help
              Show this help message, then exit.

       --version
              Print the version number, then exit.

       -v, --verbose
              Print progress messages. Please include this output in bug reports.

       -r ROOT, --root ROOT
              The  root  directory  of your source files. Defaults to '.', the current directory. File names are reported relative to
              this root. The --root is the default --filter.

 

You can use __gcov_flush() method inside your code. You will need to invoke this from registered signal handler.

[링크 : https://stackoverflow.com/questions/13957649/gcov-not-showing-any-coverage-data]

 

Note the comment by Paweł Bylica -- __gcov_flush() has been removed in GCC 11, you should use __gcov_dump().

[링크 : https://stackoverflow.com/questions/19655479/undefined-reference-to-gcov-flush]

 

 

[링크 : https://educoder.tistory.com/entry/소프트웨어-공학gcov테스트-커버리지-측정]

  [링크 : https://gcovr.com/en/stable/guide.html]

[링크 : https://jchern.tistory.com/16]

[링크 : https://velog.io/@kongsub/GCOV-사용해보기-Lab1-Triangle]

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

gcov와 gcovr  (0) 2023.07.20
gprof gui  (0) 2023.07.10
gcc -p -pg  (0) 2016.02.25
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니

 

gprof 의 텍스트 결과는 솔찍히 보기 편하다고는 할 수 없는데, 그래서 gui를 찾아보는 중

 

[링크 : https://github.com/jrfonseca/gprof2dot]

   [링크 : https://stackoverflow.com/questions/2439060]

 

역시 역사와 전통의(?) k접두인가..

[링크 : https://kprof.sourceforge.net/]

 

solaris나 motif 같네? 아무튼 cgprof 라는 툴은 call graph로 그려준다.

[링크 : http://mvertes.free.fr/]

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

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gcc -p -pg  (0) 2016.02.25
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니

어제 예식장의 여파인가 아니면 5시 일어났던 것의 여파일까

점심도 안 먹고 저녁전까지 기절해서 전화에 강제 부활

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

악당 2호 아빠 새끼 발톱 공격  (0) 2023.07.16
토닉워터 먹어봄  (0) 2023.07.15
개피곤  (0) 2023.07.08
더워어어어어  (0) 2023.06.28
6.25  (0) 2023.06.25
Posted by 구차니