본문 바로가기
[mac/맥] Mountain Lion에서 Git 사용시 발생하는 'Command Not Found' 에러 해결방법 Mac OS 설범( Snow Leopard )이를 사용하다가 이번에 기회가 닿아서 산사자( Mountain Lion )로 갈아타게 되었습니다. OS 업데이트만 했을 뿐인데, 잘 사용하던 Git 명령어가 안 먹더라구요. 아래와 같은 에러 메세지를 표시하면서요 ㅠ -bash: git: command not found 해결법은 간단합니다. XCode 의 Downloads 에 있는 Command Line Tools 를 설치하기만 하면 됩니다. 고민 해결! 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 10. 4.
[mac/맥] eclipse auto code complete (content assist) 단축키 (shortcut) Eclipse의 최강점 중 하나인, Windows에서의 Ctrl + Space 로 가능한 auto code complete ( 정식명칭 content assist )가 맥에서는 먹히지 않습니다. 왜냐면 맥에서는 Command + Space 는 한/영 전환의 역할로 쓰이고, Control + Space 는 Spotlight 로 연결되도록 되어 있기 때문입니다. 가장 좋은 방법은 새로운 단축키를 지정해서, 그것에 적응하는 것인데, 윈도우에서 개발을 오래한 경우 이에 적응되기가 쉽지가 않습니다. 먼저 단축키를 지정하는 방법을 알아봅니다. [Preferences] - [General] - [Keys] - [Content Assist 검색] - [하단 Binding을 클릭한 후 단축키 입력] 만약 어떻게든 Con.. 2012. 10. 4.
[IDE] eclipse font size 조정 방법 [Preference] - [General] - [Appearance] - [Color and Fonts] 기본 Editor의 font 조정은 "Java Editor Text Font" 를 선택한 후 오른쪽 "Edit" 를 눌러 변경하면 된다. 다른 파트도 찾아서 변경하면 된다. 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 10. 4.
[android/안드로이드] layout xml의 tools:context 은 뭔가요? 이전에는 없던 녀석 tools:context가 SDK 가 없데이트 되면서 등장했군요! 기본 Layout 에 위와 같은 형태로 tools:context 라는 녀석이 추가가 되었더라구요. 요녀석이 뭔가 했더니.. SDK 업데이트 하며 제공되는 "Graphical Layout" 을 정확히 표현하기 위해서 사용됩니다. 바로 요석이 graphical layout!! tools:context에 연결된 activity class 의 theme 내용을 가져와서 graphical layout 에 적용합니다. 뭐 요런 것이니 graphical layout 을 잘 활용하지 않는다면, 있으나 마나한 옵션. 2012. 10. 4.
[android/안드로이드] Restful Get sample code. [HTML] REST or RESTful 이 뭔가요? ( Representational state transfer ) [android/안드로이드] Restful Post sample code Restful Get 은 Post 와 똑같다. 다만, HttpPost 대신 HttpGet Class 를 사용하면 된다. HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost( url ); // Parameters setting. List nameValuePairs = new ArrayList(); nameValuePairs.add( new BasicNameValuePair( key1, value1 ) ); nameValueP.. 2012. 10. 4.
[android/안드로이드] camera take & crop 동시에 하기. Camera 로 사진을 찍으면서 동시에 crop 을 하는 방법에 대해 알아보고자 한다.Intent intent = new Intent( MediaStore.ACTION_IMAGE_CAPTURE );String fileName = System.currentTimeMillis() + ".jpg";mCapturedImageUri = Uri.fromFile( new File( Environment.getExternalStorageDirectory(), fileName ) );intent.putExtra( MediaStore.EXTRA_OUTPUT, mCapturedImageUri );intent.putExtra( "crop", "true" );intent.putExtra( "scale", true );inten.. 2012. 10. 4.
[android/안드로이드] gallery를 통해 pick& crop 동시에 하는 intent 생성. 안드로이드의 강점 중 하나인 intent 를 이용해서 쉽게 gallery 를 통해 사진을 pick 하고, crop 까지 동시에 할 수 있습니다. Intent intent = new Intent( Intent.ACTION_PICK ); intent.setType( TYPE_IMAGE ); intent.putExtra( "crop", "true" ); // 특이하게도 string 값으로 주어야 한다. intent.putExtra( "scale", true ); intent.putExtra( "aspectX", 1 ); intent.putExtra( "aspectY", 1 ); intent.putExtra( "outputX", 100); intent.putExtra( "outputY", 100); intent.. 2012. 10. 4.
[android/안드로이드] string xml에 white space넣는 방법 string xml 작업을 하다 보니 앞 뒤에 있는 white space 들이 자동으로 trim 되는 현상들을 발견했습니다. 어떻게 해야 white space 를 유지할 수 있을까요? xml 규격의 white space code 인 요 녀석을 넣어주면 되겠습니다. 고민 해결! 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 10. 4.
[android/안드로이드] Restful Post sample code [HTML] REST or RESTful 이 뭔가요? ( Representational state transfer ) [android/안드로이드] Restful Get sample code. HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost( url ); // Parameters setting. List nameValuePairs = new ArrayList(); nameValuePairs.add( new BasicNameValuePair( key1, value1 ) ); nameValuePairs.add( new BasicNameValuePair( key2, value2 ) ); try{ httpPost.s.. 2012. 10. 4.
반응형