2016년 3월 7일 월요일

format a floating for __android_log_print

__android_log_print("test=%g", (float)f);

2016년 3월 2일 수요일

allow list cubrid firewall

1523, 30000-30039, 33000-33039, 8001, 8002

2016년 3월 1일 화요일

시스템에 지원하는 JDBC 드라이버가 없습니다. 등록하십시요

cubrid manager 설치 후, 처음 접속하려 하니 다음과 같은 에러 발생

"시스템에 지원하는 JDBC 드라이버가 없습니다. 등록하십시요"

jre, cubrid, cubrid manager 모두 64 bit

CUBRID-Windows-x64-9.3.5.0002
CUBRIDManager-9.3.3.706-windows-x64

D:\CUBRID\jdbc>java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)

1. cubrid manager 시작
2. 찾아보기 버튼
3. 추가 버튼 ( D:\CUBRID\jdbc\cubrid_jdbc.jar 선택 )
4. 드라이버 버전은 auto detect 로 하고 접속


2016년 2월 18일 목요일

CString to wchar_t on MFC

first ansi to uncode

#include <atlbase.h>

...
CString path = m_filename;
pfile = _wfopen(CT2W(path) , L"wb");

2016년 2월 17일 수요일

shutdown with remote desktop ( windows 7 )

shutdown : command prompt > shutdown /p
reboot : command prompt > shutdown /r

2016년 2월 4일 목요일

gateway setting with dual nic

eth0
111.111.111.111
255.255.255.0

eth1
222.222.222.222
255.255.255.0
222.222.222.254

list for route
111.111.12.0
111.111.22.0
111.111.32.0
111.111.42.0

cmd prompt ( administrator )
route print
route -p add 111.111.0.0 mask 255.255.0.0 111.111.111.254

2016년 2월 2일 화요일

YUV Format

YUY2 = YUYV = V422 = Y0, U0, Y1, V0 = Packet Format

Component Range
Y' 16–235
Cb/Cr 16–240, with 128 representing zero

Color R G B Y' Cb Cr
Black 0 0 0 16 128 128
Red 255 0 0 81 90 240
Green 0 255 0 145 54 34
Blue 0 0 255 41 240 110
Cyan 0 255 255 170 166 16
Magenta 255 0 255 106 202 222
Yellow 255 255 0 210 16 146
White 255 255 255 235 128 128