목록분류 전체보기 (2068)
준호씨의 블로그
레거시 시스템을 만지다 보니 안쓰는 라이브러리가 있어서 관련 컴파일 옵션을 지웠다. 그 중 하나가 libgd 인데 그래픽 처리와 관련된 라이브러리였다. 참고 삼아 남겨본다. 예제 /* Bring in gd library functions */ #include "gd.h" /* Bring in standard I/O so we can output the PNG to a file */ #include int main() { /* Declare the image */ gdImagePtr im; /* Declare output files */ FILE *pngout, *jpegout; /* Declare color indexes */ int black; int white; /* Allocate the image..
디스크 용량이 또 부족하다. $ df -h Filesystem Size Used Avail Use% Mounted on /dev/disk1s1 466G 459G 179M 100% / /dev/disk1s4 466G 6.1G 179M 98% /private/var/vm /dev/disk1s2 466G 23M 179M 12% /Volumes/Preboot 1 무엇을 정리 해야 하나 사진, 동영상, iMovie, Final Cut Pro X, iLifeMediaBrowser osx - 디스크 정리. 사진, 동영상 파일 관련. iMovie, Final Cut Pro X, iLifeMediaBrowser http://junho85.pe.kr/1009Final Cut Pro X프로젝트 파일 문제 http://jun..
끄적끄적 메모메모. 아직 제대로 써 본 적은 없다. Mocha https://mochajs.org/ Karma Jest https://jestjs.io/ https://www.jetbrains.com/help/webstorm/running-unit-tests-on-jest.html Protractor Cucumber 참고 Testing JavaScript - WebStorm Help
절대경로 use lib '/Users/junho85/perl-lib'; 상대경로 FindBin 모듈 이용 use FindBin; use lib "$FindBin::Bin/./lib"; perl 모듈 경로 perl -V 해 보면 기본적으로 참조 하는 라이브러리 경로들을 확인 할 수 있다. @INC: /Users/junho85/perl5/lib/perl5 /Users/junho85/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-2level /Users/junho85/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 /Users/junho85/perl5/perlbrew/perls/perl-5.26.1/..
C 언어를 처음 할 때에는 변수 선언은 가장 위에만 했어야 했고, for loop index 변수는 밖에서 선언하고 사용 했어야 했다. 하지만 C 언어도 세월이 흘러 그러한 제약들이 사라진지 이미 오래 되었다. C 언어 표준들에 대해 간단히 메모 해 본다. C11 - 2011 https://en.wikipedia.org/wiki/C11_(C_standard_revision)) C99 - 1999 https://en.wikipedia.org/wiki/C99 gcc --std=c99 for loop 에 초기화 변수 선언 가능 for (int i=0; i