본문 바로가기

Setting Up SSL Certificates and Keys for MySQL 출처 : http://dev.mysql.com/doc/refman/5.0/en/creating-ssl-certs.html This section demonstrates how to set up SSL certificate and key files for use by MySQL servers and clients. The first example shows a simplified procedure such as you might use from the command line. The second shows a script that contains more detail. The first two examples are intended for use on Unix and both use the opensslc.. 더보기
난수 만들기 (randomize) 출처 : http://forum.falinux.com/zbxe/index.php?document_srl=406196&mid=gcc C 언어에서 난수를 만들려면 rand() 함수를 이용합니다. rand()는 0 부터 RAND_MAX 사이의 난수를 생성합니다. 32bit 리눅스 시스템에서 RAND_MAX값은 2147483647입니다. 즉, int 변수값의 양의 값 최대값입니다.난수 생성에는 rand()일단 예제를 보시겠습니다.#include #include int main( void) { int ndx; printf( "RAND_MAX = %dn", RAND_MAX); for ( ndx = 0; ndx < 5; ndx++) { printf( "%d %dn", ndx, rand()); } return 0; }.. 더보기
error : Incompatible types: "Cardinal" and "TSearchRec" (FindClose 사용 시) TSearchRec 로 선언한 변수를 FindClose 함수에 쓸때다음과 같은 에러가 발생하는 경우Incompatible types: "Cardinal" and "TSearchRec" 해결방법 :uses 절에 SysUtils 보다 앞에 Windows 를 사용하면 해결 FindFirst, FindNext, FindCloseSeems I've used the above routines with a TSearchRec several times before. I'm now having trouble getting FindClose(SomeSearchRec) to compile. The compile time error message is: Incompatible types: "Cardinal" and "TSea.. 더보기