vi 만 사용하다보니 이 지경까지 오게 되었지만,

어쨌든 사용해 보니 그럭저럭 잘 동작한다.

 

 

ViEmu (유료) :

http://www.viemu.com/

VsVim :

http://visualstudiogallery.msdn.microsoft.com/59ca71b3-a4a3-46ca-8fe1-0e90e3f79329/

 

 

 

Eclipse 에서 vim 사용하기

http://vrapper.sourceforge.net/home/

:

ifstream 으로 선언하여, 한 줄씩 파일 읽기 예제

 

:

정확도 향상을 위해서 굳이 floating point 를 사용할 필요가 없을 때,

FixedPoint 를 사용해서 사칙연산이 가능하도록 틈틈히 맹글어 두었다.

애초에 point position 을 지정할 수 있게 template 으로 맹글려 했으나,

첫 버전부터 너무 완벽하면 재미가 없을까봐 3 자리 FixedPoint 를 만듬.

FixedPoint.h

 

FixedPoint.cpp

:

가령, std::list<Class *> 타입의 데이터를 소팅하고자 하면,

아래와 같이, static 멤버 function 을 만들어 놓고,

sort() 함수의 파라미터로 그 function 을 주면 된다.

 

:

대략 trace 라는 함수가 있다고 할 때,

 

 

gcc 3.4.4 에서는 매크로를 만들면 문제가 없다.

근데 이놈이 VS2008 에서는 다음과 같은 에러를 일으킨다.

error C2010: '.' : 매크로 정식 매개 변수 목록에 사용할 수 없습니다.

이거 어찌 해결 하는 지 아시는 분 ?

:

c++ 에서 변수 초기화를 괄호를 이용하여 다음과 같이 할 수 있다.

 

초기화 할 때만 되고, 일반적인 assign 문으로는 사용할 수 없다.

즉, 다음과 같은 문장은 에러다.

:

singleton pattern

프로그래밍 2012. 5. 12. 11:16 |

singleton pattern 이란 대략 평생 하나의 instance 만 만들겠다는 것.

대략 constructor 를 private 으로 두어 외부에서는 instance 를 생성하지 못 하게 하고,

하나의 경로로만 instance 를 받게 하는 방식이다.

 

이 코드의 예에서는 외부에서 Babo::getInstance() 함수를 통해서 클래스의 instance 를 받을 수 있다.

그런데, 보면 결국 이 클래스의 instance 의 scope 는 전역이 된다.

즉, 어디서건 접근을 막을 수가 없다. 이렇게 해도 문제가 없을까나 ...

:


일단 대략 CButton 클래스를 서브 클래싱 해서 ImageButton 을 만들었다.
왼쪽 버튼을 누를 때와 뗄 때를 오버라이딩 했다.

보통 하듯이 버튼을 누를 때 SetCapture() 해 두고,
버튼을 뗄 때 ReleaseCapture() 해서 잡고 있던 걸 해제 하도록 만들었다.

그런데,
이렇게 하고 나니 버튼 이벤트를 처리하기 위한 WM_COMMAND 가 parent 로 날아오지 않는다.


한참 삽질 한 뒤에 ReleaseCapture() 구문을 주석처리 하고 나니 정상적으로 이벤트가 날아 온다 ㅠㅠ

어찌된 영문인 지 아직 모르겠다.
아시는 분 좀 알려주시오 ㅠㅠㅠㅠㅠㅠㅠ
:
android.widget.TextView 에서 setTextSize() method 를 보면,
파라미터가 scaled pixel 이라고 되어 있다.

조심해서 쓰자 -_-;

단위까지 표현하고 싶다면 파라미터 2개짜리 method 를 사용하면 된다.

public void setTextSize (float size)

Since: API Level 1

Set the default text size to the given value, interpreted as "scaled pixel" units. This size is adjusted based on the current density and user font size preference.

Related XML Attributes
Parameters
size The scaled pixel size.

public void setTextSize (int unit, float size)

Since: API Level 1

Set the default text size to a given unit and value. See TypedValue for the possible dimension units.

Related XML Attributes
Parameters
unit The desired dimension unit.
size The desired size in the given units.
:
layout 관련
http://rednine.tistory.com/398?srchid=BR1http%3A%2F%2Frednine.tistory.com%2F398
http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110083649927&redirect=Dlog&widgetTypeCall=true#


맵 관련
http://gtko.springnote.com/pages/5409245

http://lomohome.com/316
http://stbaeya.com/tc/215?TSSESSIONstbaeyacomtc=22fef63e7ee321167de9fad2405c475b


multi resolution screen 지원 관련
http://www.slideshare.net/mosaicnet/-5187233
http://www.androes.com/90
http://theeye.pe.kr/entry/few-tips-for-android-programmer-and-ui-designer

preferences 관련
http://rsequence.com/android_blog/node/64


맥에서 안드로이드 하기
http://weasel02.tistory.com/entry/JAVA안드로이드-개발환경-설치하기-For-MAC


xml 관련
http://genieus.tistory.com/76


Content Provider 관련
http://gtko.springnote.com/pages/5151085
http://rsequence.com/android_blog/node/69


커스텀 다이얼로그
http://blog.androgames.net/10/custom-android-dialog/


activity 를 다이얼로그처럼 쓰기
http://comxp.tistory.com/141


Geocoder and reverse Geocoder
http://pheadra.tistory.com/entry/Geocoder-and-Reverse-Geocoding


apk 파일 만들기
http://www.squarelab.net/LectureBoard/2830


Custom Android Button Style and Theme
http://blog.androgames.net/40/custom-button-style-and-theme/


폰트 관련
http://rednine.tistory.com/278


안드로이드 Intent에서 앱 호출하는 방법을 정리
http://nuninaya.tistory.com/580


Rotation and GL Overlay in Android
http://blog.graphtech.co.il/rotation-and-gl-overlay-in-android/


마켓 등록
http://blog.naver.com/PostView.nhn?blogId=drparksc&logNo=20118204397


배포용 키 & apk 등
http://roter.pe.kr/125
http://appleandroidjunhulove.tistory.com/tag/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C%20%EB%A7%88%EC%BC%93%20%EB%B0%B0%ED%8F%AC


이클립스 git 사용하기
http://hightin.tistory.com/16
: