2011년 6월 14일 화요일

안드로이드에서 강제로 터치 이벤트 발생시키기 - How to raise touch event forcely in Android

long downTime = SystemClock.uptimeMillis();
long eventTime = SystemClock.uptimeMillis();
MotionEvent down_event = MotionEvent.obtain(downTime, eventTime,   MotionEvent.ACTION_DOWN, 0,0, 0);
MotionEvent up_event = MotionEvent.obtain(downTime, eventTime,   MotionEvent.ACTION_UP, 0, 0, 0);
yourWidget.dispatchTouchEvent(down_event);
yourWidget.dispatchTouchEvent(up_event);

2011년 4월 19일 화요일

arm-none-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

cc1파일은 해당 컴파일러 설치 디렉토리 기준으로
The cc1 file is located

libexec/gcc/arm-none-eabi/4.2.0/cc1
에 위치한다. 컴파일러가 이 파일을 참조할 수 있도록 적절히 PATH 환경변수에 추가한다.
based on installed directory. You must add PATH, so that your compiler can refer the cc1 file.

2011년 4월 17일 일요일

백트랙에서 해상도 크게하기 - How to adjust resolution largely in backtrack.

VMware나 virtual box에서 최대 800*600 해상도만 지원한다.
이 문제를 해결하기 위해 콘솔 모드에서 아래 명령어를 실행하면 해결된다.

In VMware or virtual box, only maximum 800*600 resoluition is available.
If u want to solve the problem, just type below instruction in console mode.
# fix-vesa

그러면 800*600을 넘어서는 해상도가 가능할 것이다.
Then, u can set more lage resolution than previous.

리눅스 맥주소 변경 - how to change mac address in linux

맥 주소 변경은 아래와 같이 3줄만 쓰면 된다.
If you want to change the mac address, type instruction like below.

#ifconfig [interface name] down
#ifconfig [interface name] hw ether [fake mac addr]
#ifconfig [interface name] up


예를들면,
for example,

#ifconfig eth0 down
#ifconfig eth0 hw ether 00:11:22:33:44:55:66
#ifconfig eth up

2011년 2월 17일 목요일

비주얼 스튜디오에 거북이 SVN을 쓰기 위한 옵션 - How to set tortoise SVN option for using visual studio

비주얼 스튜디오에 거북이 SVN을 쓰기 위한 옵션
Tortoise SVN Setting의 [Global Ignore Pattern] 항목에 추가

In tortoise SVN, for using visual studio, you must add the below option of Global Ignore Pattern of Tortoise SVN Setting.


*.suo *.user *.ncb *.aps bin obj Debug Release temp debug release