금요일, 8월 19, 2011

LG전자를 떠나며 CEO에게 남긴 글

아래 글은 많이 복사해서 비단 국내 IT 뿐만 아니라,
국내 모든 경영자들에게 이메일로 보내야 한다고 생각한다.

우리나라 IT... 개발 및 근무환경... ? 물론 좋다고 생각한다. 좋은 곳도 많다.
하지만 아직 멀었다. 소프트웨어 개발자들???... 대접을 바라는 것이 아니다.
기계처럼 찍어 내거나, 기계에 들어가는 일련의 부속품이 아니라는 것이다.

"애플? 구글? 페이스북? ... 우리는 왜 그들과 같은 인재가 없나?"
이런 얘기 신문, 방송에서 나올때면 한숨만 나온다.

한 가지 재미있는 얘기를 하자면,
회사에서 어느날 아이디어 공모를 한다며 전사원에게 메일을 보냈다.
내용을 대충 요약하면 다음과 같다.
"이번달 xx까지 아이디어 및 구현 결과물을 제출하면, 1등은 000원, 2등은 000원,
등등... 이며, 제출된 아이디어 및 결과물은 회사에 귀속된다."

참 재미있지 않는가? 이런식의 회사는 당장 어떻게든 돈은 많이 벌어서
매출과 자본금은 늘릴 수 있을지 몰라도 절대 발전할 수 없다고 생각한다.

위의 이야기가 이해가 되질 않는다면, 다시한 번 읽어보면서
내가 전달하고자 하는 의미는 잘 생각해보면 알 것이다.


여튼, 음... 곧 개봉하는 인도 영화 "세 얼간이" 꼭 보길 바란다.


요즘 기사를 보면 모 회사들 간부들이 해외 대학들에 가서 석/박사급 인재들에게
기술세미나 및 회사관련 홍보를 한다고 하는데,

인재를 해외에서만 찾지 말고 국내에서 찾아 보길 바랍니다.
인재가 꼭 석/박사만 있는것은 아니라는 걸 알았으면 하는데,
느낀건 그러한 학력들이 곧 인재이며 그들을 원한다는 것이다.

제발로 들어온 인재를 발로 차버리는 실수를 계속 반복하면서
과연 해외에 나가선 잘 찾을 수 있을지...
그러한 인재들이 현재의 이러한 회사들을 보고 제발로 들어올지...
차~암 궁금하다...

아래 글, 공감이 참 많이 가는 글입니다.
같은 회사는 아니지만, 비슷한 얘기로 저도 CEO/CTO 님에게 이메일이라도
보내고 퇴사할 걸 그랬나 봅니다. 저도 5년 가까이, 정도 많이 들고 애착도 가지만,,,
마지막에는 그러한 마음이 들지 않았는지도...


-----
Cheers,
June



--------------------------------------------------------
이하 복사한 글...

Source: http://ppassa.wordpress.com/2011/08/16/leaving_lg/


LG전자를 떠나며 CEO에게 남긴 글

지난 4월 퇴사를 하면서, 그동안 생각했던 바를 정리해서 CEO에게 메일을 보냈다. 아쉽게도 CEO로부터 답장은 받지 못했다. 사실 CEO가 답장을 할 회사라면 그렇게 떠나지도 않았겠다라는 생각이 드니, 그렇게 아쉽지는 않았다.
물론, 메일이라는 것이 개인적인 것이라 이렇게 공개하는 것이 안맞는 것일지 모르나, 메일 내용에 사적인 내용은 없고, 이러한 울림이 커져서 LG전자가 방향을 바로 잡는데 도움이 되었으면 좋겠기에 이곳에 올린다.
——————————————————————————————-
(2011년 4월 12일)
안녕하세요, 구본준 CEO님.
저는 CTO소속의 최세윤 선임연구원입니다.
구본준 CEO님께서는 다른 분들의 의견을 경청한다는 이야기를 들은 적이 있습니다.
이제 곧 퇴사를 앞두고, 제가 사랑하는 우리 회사의 발전을 위해서, 지난 5년동안 LG전자에서 느낀 점들을 용기를 내어 적어봅니다.
아마 CEO님께서 여러 채널을 통해 들으신 내용이 있을 수도 있을 것 같지만, 혹시나 하는 마음에 면식도 없지만 결례를 무릎 쓰고 메일을 보냅니다.
제가 느낀 점 중에 우리 LG전자가 바뀌었으면 하는 부분을 2가지 관점에서 말씀 드리겠습니다. 물론, 우리회사에서 잘하고 있는 것들도 많지만 이 부분은 생략하도록 하겠습니다.
- Innovation
저는 우리회사가 진정으로 Innovation을 하는 회사가 되었으면 합니다. 그리고, 그렇지 않으면 살아 남을 수 없다고 생각합니다. 하지만 연구원으로서 제가 느낀 바로는, Innovation을 하는 회사가 아니라, Innovation을 하겠다고 ‘주장’만 하는 회사처럼 보입니다. Innovation은 risk-taking이 가능한 문화 속에서 가능하다고 생각합니다. 그런데, 지금 우리 회사의 연구환경은 우리 연구원들이 risk-taking 할 수 있는 연구환경이 아닌 것 같습니다. 아이디어가 구현될 지도 확실치 않은데, 프로젝트 초기부터 ROI를 계산하는 것은 뭔가 맞지 않은 것 같은 생각이 듭니다.
그리고, 또 큰 문제 중의 하나가 지나친 ‘보안(security)’ 강조 입니다. 보안이 중요하지 않다는 것은 아닙니다. 문제는 보안을 지나치게 강조하면서 생기는 엄청난 ‘기회비용’입니다. 이런 기회 비용은 계산하기 힘들어서 그렇지 분명이 엄청 크다고 생각합니다. 몇 가지 예를 들어 보겠습니다.
저는 아이디어를 얻는 데에 인터넷만큼 좋은 곳이 없다고 생각합니다. 그런데 보안이라는 이유로 접근이 막힌 사이트들이 의외로 많습니다. 오늘도 KT의 클라우드(cloud) 서비스를 알아보기 위해 http://ucloud.com을 접근 하려 하니 막혀 있었습니다. 어떤 사이트들을 막았고, 어떤 이유로 막았는지 연구원에게 전혀 공지는 없습니다. 연구원들은 그저 받아들일 뿐입니다. 아이디어 조사 차원으로, 그리고 기술에 대한 궁금중으로 인터넷에서 검색하다가 이렇게 접근조차 막히면, 대부분 포기할 수밖에 없습니다. LG전자가 앞으로 크게 수익을 낼 수 있는 제품을 만들 기회를, 그 동안 이런 이유로 놓치지 않았다고 장담하기는 어려울 것 같습니다.
또, HE본부의 경우 소프트웨어 개발자들이 보안 상의 이유로, 개인 컴퓨터가 아닌 중앙서버에 접속 후 작업을 합니다. 문제는 중앙 서버로 데이터를 넣고 빼는 것이 매우 불편하기 때문에 개발자들이 보고 자료라도 만들려고 하면, 중앙서버에 접속해서 내용을 화면으로 보면서 로컬컴퓨터에서 다시 타이핑해서 만들어야 합니다. 또, 개발자들이 필요한 프로그램이 중앙서버에 없으면, 담당자에게 신청해서 설치해야 합니다. 몇 일이 걸리는 일이고, 설치된다는 보장도 없습니다. 개발자들은 불편한 환경에서 제한된 사고의 자유를 가지고 개발해야 합니다. 정확히 그 비용을 계산하기는 힘들지만 개발자들의 생산성을 엄청나게 갉아먹고 있는 것은 분명합니다. 이 얼마나 우스운 광경입니까. 저는 DTV 기술의 경우 아주 일부를 제외하고는 이제 일반화되었다고 생각하는데, 굳이 모든 정보를 지금처럼 중앙 서버에서 해야 하는 지에 대해서 의문이 갑니다.
- 조직 문화
저는 이전에 벤처 회사를 다녔는데, 지금 우리 회사에서 제일 안타까운 것 중에 하나가 자유로운 토론 문화의 부재입니다. 자유롭게 의견을 개진하고 합리적인 의사 결정이 이루어져야 할 텐데 그렇지 않은 경우가 많이 있습니다. 특히 ‘Top management(CEO/CTO)나 연구소장의 코멘트가 있었다’라고 이야기 되면, 그 진위 여부나 이유에 대해서는 논의가 없고 바로 그 코멘트에 맞게 의사 결정이 납니다. 또, 경쟁사, 특히 삼성이 어떻게 한다더라 하면 이 역시 비판적인 토론 없이 의사 결정이 많이 나버립니다. 비록 top에서 코멘트가 있는 경우라도, 또 경쟁사가 그렇게 하더라도, 의사 결정 시에 관련자들이 반드시 이유를 이해하고 필요하면 이를 반박할 수 있는 조직 문화가 되어야, 진정으로 고객이 원하는 제품을 만들 수 있을 거라고 생각합니다.
또, 회사에서 많이 듣는 이야기 중에 하나가 ‘주인의식을 가져라’입니다. 저는 주인의식은 주인이 되어야 갖는 의식이라고 생각합니다. 회사에서 연구원들을 주인이라고 생각하고 대해주지 않는데 주인의식이 생길 리가 만무합니다. 최근에 서초 R&D 캠퍼스에서는 본부/연구소를 불문하고, 지각을 체크해서 각 조직 별로 통계를 매일 보고 하겠다는 이야기를 들었습니다. 또, 화장실에는 ‘기본을 지키자’며 ‘슬리퍼를 신지 말라’, ‘복장을 단정히 해라’, ‘식사 시간을 준수해라’ 등의 문구가 붙어 있습니다. 분명 이런 것들이 중요하기는 하겠지만, 이렇게 전면적으로 연구원들에게 이야기하는 건, 연구원들을 주인으로 대하는 것이 아니라 철부지 중고생으로 대하는 것이 아닌가 생각합니다. 최근에 ‘Rework’란 책을 보니, ‘직원을 13살짜리 아이처럼 대하지 말라’라는 내용이 있었는데 참으로 뜨끔한 내용이었습니다.
저는 LG전자를 사랑합니다. 저는 우리 회사에서 참 많은 걸 배웠습니다. 그리고 총각으로 입사해서, 이제는 돌이 지난 아이 아버지가 되었습니다. 젊은 시절 제가 열심히 일한 회사가 앞으로도 계속 성장해나가기를 진심으로 바라고 있습니다. 새로 부임하신, 그리고 저의 학과 선배이시기도 한 구본준 CEO님께서 분명히 그렇게 해주시리라 믿고, 저는 또 새로운 도전을 향해 떠나도록 하겠습니다.
LG전자와 모든 구성원의 건승을 항상 기원하고 응원하겠습니다.
감사합니다.
최세윤

토요일, 7월 02, 2011

TransTweet

* Codename: TransTweet
* Project home: http://code.google.com/p/transtweet/
* License: GNU GPL
* Distribution: APK, Source code (Not available for now)

Android 용 번역 App 입니다.
"Sharing" (보내기, 공유하기, 등등) 을 지원하는 App 에서 사용가능 합니다.
App 내에서 "Sharing" 을 이용해서 여러나라 언어를 바로 번역해서 보실 수 있습니다.

TransTweet 은 원래 Twitter 번역만 지원을 하려고 했으나 필요에 의해서
트위터 번역 뿐만 아니라 다른 App 에서도 사용가능 합니다.


* Screenshots











feedback은 언제나 환영입니다.
감사합니다.

-----
Cheers,
June

일요일, 5월 08, 2011

Robot Operating System

Robot Operating System
http://www.ros.org/wiki/



-----
Cheers,
June

[CV] Cheap Motion Capture System (OpenCV Motion Capture)

Cheap Motion Capture System (OpenCV Motion Capture)
Source: http://www.motioncapturedata.com/2009/06/cheap-motion-capture-with-free-software.html

Project Home (Cheap Motion Capture System)
http://motion.capture.free.fr/





-----
Cheers,
June

일요일, 4월 03, 2011

A Day Made Of Glass Corning's Vision For The Future With Specialty Glass At The Heart Of It VIDEO

A Day Made Of Glass Corning's Vision For The Future With Specialty Glass At The Heart Of It VIDEO

Source: http://www.youtube.com/watch?v=9qmwdbhsbVs




-----
Cheers,
June

토요일, 4월 02, 2011

ListenMyStory

* Codename: ListenMyStory
* Project home: http://code.google.com/p/listenmystory/
* License: GNU GPL
* Distribution: Full of Source Code, APK 설치파일 및 아래 contents (Revolution In The Valley)


Android 용 ebook reader 입니다.
일반적으로 알고있는 PDF, CHM, TXT 등의 문서가 아닌 text 와 image 를 zip 파일과
xml (목록 및 정보) 형태로 제작된 컨텐츠를 읽을 수 있는 리더입니다.

Zip 파일 구성:
 - 텍스트 파일
 - 이미지 파일
 - xml (컨텐츠 정보)

원래, 인터넷에서 접할 수 있거나 따로 모은 자료를 하나로 합쳐서 개인적으로 단말에서
보려고 제작한 것인데요, 이렇게 공개를 하게 되었습니다.

아래는 screenshot 입니다.
사용된 contents는 Apple 컴퓨터의 히스토리를 담은 "Revolution In The Valley" 입니다.
책으로 출간이 되었으며 http://www.folklore.org/index.py 사이트에 공개되어있습니다.
위의 사이트에서 이미지와 텍스트를 가져와서 출력에 알맞게 작업을 하였습니다.









자신이 만든 컨텐츠를 SD card에서 로드할 수 있는 기능이 있습니다.
(설정 -> Resource Path에서 path 지정 후 해당 directory에 zip 파일 복사)

인터넷 소설 및 시나리오를 작성하시는 분들이 배포용으로 이용하셔도 좋을 듯 합니다.

현재 Windows 기반에서 컨텐츠를 제작할 수 있는 tool을 제작 중입니다.
오래 걸리는 작업은 아니지만, 언제 완성이 될지는 모르겠습니다. ^^

컨텐츠로 사용한 "Revolution In The Valley" zip 파일을 열어 보시면
어떻게 만들었는지 아실 수 있습니다. 수작업으로 작성 하셔도 됩니다.

feedback은 언제나 환영입니다.
감사합니다.


-----
Cheers,
June

일요일, 2월 20, 2011

[Editor][Eclipse] Eclipse Helios 3.6.1 Code Assist (Auto-Completion) Bug Patch

Eclipse Helios 3.6.1 Code Assist (Auto-Completion) Bug Patch


Code Assist still Slow
 - Source: http://groups.google.com/group/android-developers/msg/0f9d2a852e661cba

Patch
 - Source: http://adt-addons.googlecode.com/svn/patches/


You can replace your /plugins/org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar plugin
with one from http://adt-addons.googlecode.com/svn/patches/org.eclipse.jdt.core_3.6.1.v_A68_R36x.zip
and restart Eclipse. Content Assists will be much better. Just try it.

Don't forget backup your original plugins.




:: Eclipse GALILEO start problem
Add this into eclipse.ini:
...
-vm
C:\java\jdk1.6.0_13\bin\javaw.exe
...




-----
Works good for me...

Cheers,
June

일요일, 1월 23, 2011

Prominy LPC Library Demo - Surreal!

Prominy LPC Library Demo - Surreal!

Source: http://www.youtube.com/watch?v=BqGJ8y67SU8

This is probably library author AKHITO! playing the LPC Guitar library. Close your eyes and you can't tell it's not a real guitar player.




great!!!
-----
Cheers,
June

수요일, 1월 19, 2011

Lexar, A Behind the Scenes Look - How We Make Our Products

A Behind the Scenes Look: How We Make Our Products
Source: http://www.youtube.com/watch?v=kvf29R7nXlM


Lexar, a division of Micron technology, is a leading global provider of memory products
for digital media. Check out this behind the scenes look at the extensive work and
care put into each Lexar product.

(This entire video was shot on the Canon 5D Mark II DSLR with
32GB Lexar Professional 600x CF cards.)




great!!!
-----
Cheers,
June

월요일, 11월 29, 2010

카라 강지영 일본 예능 활약

카라 강지영에 일본 예능 활약 동영상이다.
사실 카라는 알지만 멤버 강지영은 잘 모른다.
하지만 이제는 알게 되었다.

정말 귀엽다. ㅋㅋ

일단 한 번 보시라...


-----
Cheers,
June

일요일, 11월 14, 2010

일기 (2010.11.14)

<고도원의 아침편지>

어중간한 사원


"최악의 사원을 고용하는 것보다
어중간한 사원을 고용하는 것이 더
최악의 결과를 초래한다"라고 게이츠는 단언한다.
"일을 게을리 하는 사원이 있어도 상관없다.
해고하면 되기 때문이다. 그런데 적당히 일을 하는
어중간한 사원을 고용하면 골치 아픈 상황이 된다."
그래서 게이츠는 업무에 필요하다고 생각하는
인원수보다 적은 인원을 채용했다.
일은 인원수가 아니라 우수한 두뇌가
이루어내는 것이라는 생각 때문이었다.


- 다케우치 가즈마사의《스티브잡스 VS 빌게이츠》중에서 -


* 사람은 '일'을 하는 존재입니다.
그런데, 그 일을 하는 곳에서 알게 모르게
자신의 위치가 드러납니다. 행여라도 그 위치가
'어중간한' 자리라면 얼른 옮겨가야 합니다.
지쳐 쓰러지더라도 흠뻑 땀흘리는 자리,
실수를 하더라도 혼을 쏟아붓는 자리,
지금은 힘들지만 나중엔 기쁨과
보람을 얻을 수 있는 자리로!


-----
요즘 참 와닿는 글이다.
어떻게 보면 불평을 하는 것 아니냐고 할 수 있겠지만,
나는 열심히 공부하면서 일하고 싶다.
세상사가 다 그렇다고 하기보단,
그러한 환경을 만들어가고 싶다.
공부도 열심히 하고 나를 가슴뛰게 하는 일들도 열심히 하자...

Cheers,
June

토요일, 11월 13, 2010

[Music][Homebrew] 자작 곡

내가 컴퓨터로 음악(Sequencer) 작업을 처음 시작한 것이 1998, 1999 사이니깐..
음... 2010년 기준으로 약 10~11년 정도 되는 것 같다.
물론 꾸준히 이어서 작업을 한 것은 아니지만... 연수로는 그렇다는 거다.

그러니깐, 처음 시작할 당시엔 MS-DOS 기반에서 ST32 (Stream Tracker) 로 작업을 했다.
이때 컴퓨터로 Sequencer 를 다루어 본 사람이라면 모르지는 않을 것이다.

보통 피아노로 연주했던 걸 tape 으로 녹음한 다음 sequencer 로 대충 (ㅠ.ㅠ) 작성하는 정도다.
이때가 가장 자유스럽고 여유있고 감각이 좋았다고 생각한다.
물론 지금도 자유 (-_-;) 스럽고, 여유있고 (ㅠ.ㅠ) 감각이 (^0^) 좋다고 생각한다.

그동안 세월이 변함에 따라 Sequencer 에도 많은 변화가 있었던 만큼,
Tracker (MOD Plug; aka Impulse Tracker) 에서 다른 Tool 로 전향도 했었고
나름 괜찮다고 생각되는 작품들이 나오고 있다.

현재는 ElectroAcoustic 이지만 (물론 이 장르를 선호한다.) Acoustic 만으로 작업을 해보고 싶은 바람이 있다.
아직 해당되는 장비들은 없지만, 구비가 되면 꼭 해보려고 한다.

요즘 완성이 되었다고 생각되는 괜찮은 곡들이 있어 MySpace 에 등록을 하고 있는데
부담없이 들을 수 있는 곡이니 한 번 들어봐 주시는 것도 괜찮지 않나 싶다.

충고는 따끔하게 받겠으니 feedback 은 꼭 해주시길 바랍니다.
주소는 다음과 같습니다.
http://www.myspace.com/hojungkim

ADD: January 1st, 2011
Jamendo에 음악을 등록하였습니다. 앞으로 계속 추가할 예정입니다. ^^
http://www.jamendo.com/en/artist/Ho-Jung_Kim
2011년 새해 복 많이 받으세요~ ^^


-----
Cheers,
June

수요일, 11월 10, 2010

[Editor][Eclipse] how to exclude Subversion directory (.svn) in the Eclipse?

how to exclude Subversion directory (.svn) in the Eclipse?

1. Open a properties from the project
2. Select "Source Tab" in Java Build Path menu
3. Expands tree and double-click "Excluded:" each other for add two exclusion patterns
.../gen
.../src
4. adds below two exclusion patterns each other into .../gen and .../src
.svn/**
**/.svn/**
5. clean & rebuild the project


-----
Cheers,
June

일요일, 11월 07, 2010

일기 (2010.11.06)

아...
오늘 영화를 네 편을 몰아서 보았다... 흠...
피곤하기는 커녕 기분이 아~주 좋다... ㅎㅎ

먼저 일본영화 "그때는 그에게 안부 전해줘(そのときは彼によろしく)" 를 보았다.
어려서 뜻 깊은 추억을 간직한 세 명의 소꿉친구들이 성인이 되어서 만남을 다룬 영화다.
음... 뭐랄까,,, 잔잔하면서도 어릴 때 추억도 생각나게 해주고,
나는 친구들에게 얼마나 잘 하고 있는지를 물어보게 해주는 그런 영화다.
영화처럼은 아니지만 나도 초등학교 다닐 때 같이 알던 여자, 남자 친구가 있었다.
남자친구는 지금도 연락을 하고 한번씩 만나기도 한다.
나에게 음악에 대해 좀 더 깊게 다가갈 수 있게 해준 정말 좋은 친구다.
여자 애는 고등학교 때 연락 한번 한 이후론 연락을 해본적이 없다.
마지막 연락 때 진로에 대해서 잠깐 얘기한 적이 있는데 공부에 전념하는 모습에...
그만... ^^  음... 지금은 어떻게 변해있을지 참 궁금하다.
친구가 우연히 길에서 봤다고 했다. 순간 마음이 두근 거렸지만...
뭐라고 얘기를 해야할지 몰라서 그냥 넘겨버렸다. 음...
언젠가는 꼭 한번 만나고 싶다.

두 번째 영화는 "The American" 이라는 영화이다.
도통봐도 무슨 내용인지 모르겠다.
George Clooney 와 Violante Placido 가 나오는 영화인데,
영화 색채와 분위기는 좋았던 것 같다. 물론 이상한 장면 (*^^*)은 빼고... ^^;

세 번째 영화는 우리나라 영화 "악마를 보았다"다.
음... 개인적으로 Gore (Splatter Film) 은 좋아하지 않아서인지 보고나서 괜히 보았다고 후회한 영화다.
최민식씨는 정말 연기를 잘 하는 것 같다. 잔인하고 폭력적인 것 보단 좀 더 상냥하고 다정한
그런 역할을 한 번 해주었으면 좋겠다는 개인적인 바람이다.

마지막 영화는 중국영화인 "聽說(Hear Me)" 라는 영화다.
청객장애를 갖고있는 언니를 위해 모른일에 헌신적으로 다하는 여동생과 수영 선수로써 동생에게
꼭 금메달을 안겨주려고 노력하는 언니, 그리고 그 여동생 Yang-yang을 첫눈에 반해 좋아하게되는 Tian 의 이야기다.
영화내용의 대부분이 수화로 이루어져있다. 내가 이렇게 듣고 말하고 볼 수 있다는게 얼마나 행복한 것인지
다시한 번 알게 해준 영화다.
보는 내내 Yang-yang 역시 말을 하지않고 수화로 하다보니 정말 Yang-yang도 청각장애인일까? 라고 생각 하면서도
분명 마지막에 말 할줄 알꺼야라고 생각하며 본 영화다. 물론 마지막에 듣고 말도 할 줄 안다. ^^

참 오랜만에 좋은 영화들을 접해서 너무 좋았다.
음... 갑자기 "Buena Vista Social Club" 다큐멘터리 영화가 생각이 난다.
Cuba 의 Jazz 를 다룬 영화인데 소개되는 음악들이 사람마다 다르겠지만 정말 최고다.
이 영화는 추천을 드리니 꼭 한 번 보시길 바란다.

-----
Cheers,
June

수요일, 10월 27, 2010

[Android] My Tip; RemoteService Example

RemoteService Example

Reference Source:
http://developer.android.com/guide/developing/tools/aidl.html
http://developer.android.com/reference/android/app/Service.html
http://www.androidpub.com/102370



// -----------------------------------------------
// more Activity
// AndroidManifest.xml
// -----------------------------------------------
<activity android:name=".MainActivity"
android:label="MainActivity"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar"
android:launchMode="singleTask"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".anotherActivity"
android:label="anotherActivity"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar"
android:launchMode="singleTask"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

// -----------------------------------------------
// RemoteService
// AndroidManifest.xml
// -----------------------------------------------
<service android:enabled="true" android:name=".testActivity">
</service>


// -----------------------------------------------
// RemoteService
// AndroidManifest.xml
// -----------------------------------------------


// -----------------------------------------------
// RemoteService
// Service.java
// -----------------------------------------------
package com.test.testActivity;

// Service
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
import android.os.RemoteCallbackList;

import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.MediaController;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;

/*
@Activity A (test)
startService( new Intent(test.testActivity, testService.class).putExtra("tag", "data") );

String[] strList = {
{"strList1"},
{"strList2"}
};
startService( new Intent(test.testActivity, testService.class).putExtra("tag2", strlist) );

@Service B (testService)
Bundle extras = getIntent().getExtras();
String[] strList = extras.getStringArray( "strlist" );
*/
public class testService extends Service {
private String TAG = "testService";

// Service
private NotificationManager mNM;
private Intent m_InvokeIntent;
private volatile Looper m_ServiceLooper;
private volatile ServiceHandler m_ServiceHandler;
public String m_Str = null;

final RemoteCallbackList m_Callbacks
= new RemoteCallbackList();

private final class ServiceHandler extends Handler {
public ServiceHandler(Looper looper) {
super(looper);
}

@Override
public void handleMessage(Message msg) {
Bundle extras = (Bundle)msg.obj;
String strTagValue = null;

/*
{
// Broadcast
strTagValue = extras.getString( "command" );
if( strTagValue != null ) {
if( strTagValue.equals("pause") ) {
stopSelf( msg.arg1 );
return;
}
else if( strTagValue.equals("stop") ) {
stopSelf( msg.arg1 );
return;
}
}
}
*/

strTagValue = null;
strTagValue = extras.getString( "tag" );
Log.d( TAG, "Message: " + msg + ", tagValue = " + strTagValue );

if( strTagValue != null ) {
if( strTagValue.equals("data") ) {
}
else if( strTagValue.equals("strlist") ) {
m_strPlayList = extras.getStringArray( "strlist" );
}
else {
Log.d( TAG, "QUIT" );
stopSelf( msg.arg1 );
return;
}
}
else {
stopSelf( msg.arg1 );
return;
}
}
};
  
@Override
public void onCreate() {
mNM = (NotificationManager)getSystemService( NOTIFICATION_SERVICE );
HandlerThread thread = new HandlerThread( "MediaServiceStart" );
thread.start();

m_ServiceLooper = thread.getLooper();
m_ServiceHandler = new ServiceHandler( m_ServiceLooper );
}

@Override
public void onStart(Intent intent, int startId) {
Log.d( TAG, "ServiceStartArguments: Starting #" + startId + ": " + intent.getExtras() );
{
Message msg = m_ServiceHandler.obtainMessage();
msg.arg1 = startId;
msg.obj = intent.getExtras();
m_ServiceHandler.sendMessage( msg );
Log.d( TAG, "ServiceStartArguments: Sending: " + msg );

// Test: Broadcast
/*
final int n = m_Callbacks.beginBroadcast();
Log.d( TAG, "n = " + n );
for( int i = 0; i < n; i++ )
Log.d( TAG, "item = " + m_Callbacks.getBroadcastItem(i) );
m_Callbacks.finishBroadcast();
*/
}
}

@Override
public void onDestroy() {
m_ServiceLooper.quit();
}

@Override
public IBinder onBind(Intent intent) {
return m_Binder;
}

// The IRemoteInterface is defined through IDL
private final IRemoteService.Stub m_Binder = new IRemoteService.Stub() {
public void registerCallback(IRemoteServiceCallback cb) {
if (cb != null) m_Callbacks.register(cb);
}

public void unregisterCallback(IRemoteServiceCallback cb) {
if (cb != null) m_Callbacks.unregister(cb);
}

public String getInfo() {
String str = "i'm service";
return str;
}
public String setInfo(String str) {
Log.d( TAG, "RECEIVED From Activity: " + str );
return str;
}
};
}


// -----------------------------------------------
// testActivity.java
// -----------------------------------------------
// Service
import android.content.ServiceConnection;
import android.content.ComponentName;
import android.os.IBinder;
import android.os.RemoteException;
public class testActivity extends Activity implements {
// Service
private IRemoteService m_Service = null;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

//setContentView(R.layout.main);
//Intent(testActivity.this, testService.class)
//Intent intt = new Intent( testActivity.this, Activity2.class );
//startActivity( intt );

//bindService( new Intent(testService.class.getName()), m_Connection, Context.BIND_AUTO_CREATE );
bindService( new Intent(testActivity.this, testService.class), m_Connection, Context.BIND_AUTO_CREATE );
startService( new Intent(testActivity.this, testService.class).putExtra("tag", "quit") );

/*
if( m_Service != null ) {
try {
m_Service.unregisterCallback( m_Callback );
} catch (RemoteException e) {
}
}

// Detach our existing connection.
unbindService( m_Connection );
stopService( new Intent(testActivity.this, testService.class) );
*/
}

@Override
protected void onDestroy() {
if( m_Service != null ) {
try {
m_Service.unregisterCallback( m_Callback );
} catch (RemoteException e) {
}
}

if( m_Connection != null ) {
// Detach our existing connection.
unbindService( m_Connection );
}
stopService( new Intent(testActivity.this, testService.class) );

super.onDestroy();
}

// Service
private ServiceConnection m_Connection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder service) {
m_Service = IRemoteService.Stub.asInterface(service);
try {
m_Service.registerCallback(m_Callback);
Log.d( TAG, "RECEIVED From Service: " + m_Service.getInfo() );
m_Service.setInfo( "i'm activity" );
} catch (RemoteException e) {
}
Toast.makeText( testActivity.this, "Service Connected", Toast.LENGTH_SHORT ).show();
}

public void onServiceDisconnected(ComponentName className) {
m_Service = null;
Toast.makeText( testActivity.this, "Service Disconnected", Toast.LENGTH_SHORT ).show();
}
};

// This implementation is used to receive callbacks from the remote service.
private IRemoteServiceCallback m_Callback = new IRemoteServiceCallback.Stub() {
public void valueChanged(int value) {
//mHandler.sendMessage(mHandler.obtainMessage(BUMP_MSG, value, 0));
}
};
}

// -----------------------------------------------
// IRemoteService.aidl (default + method)
// Source (v1.6): C:/android-sdk-windows/platforms/android-4/samples/ApiDemos/src/com/example/android/apis/app
// -----------------------------------------------
package com.test.testActivity;
import com.test.testActivity.IRemoteServiceCallback;
interface IRemoteService {
void registerCallback(IRemoteServiceCallback cb);
void unregisterCallback(IRemoteServiceCallback cb);
// ADD
String getInfo();
String setInfo(String str);
}

// -----------------------------------------------
// IRemoteServiceCallback.aidl (default)
// Source (v1.6): C:/android-sdk-windows/platforms/android-4/samples/ApiDemos/src/com/example/android/apis/app
// -----------------------------------------------
default



-----
Cheers,
June

금요일, 10월 22, 2010

[Editor][Vim] Vim in Eclipse, Vrapper

Vrapper: Vim-like editing in Eclipse
Source: http://vrapper.sourceforge.net/home/

1. Eclipse: Help -> Install New Software
Add & Install: http://vrapper.sourceforge.net/update-site/stable

2. Window -> Preferences -> General -> Keys -> Select Vim's key bindings
Replace key:
 - Page Down: Ctrl+F
 - Page Up: Ctrl+B
 - Scroll Line Down: Ctrl+E
 - Scroll Line Up: Ctrl+Y

3. Apply & OK

4. Click Vim(Toggle Vrapper) button onto Toolbar when you need


-----
Cheers,
June

월요일, 10월 04, 2010

[Android] My Tip; Android Resolution Problem

Android Resolution Problem

Your App resolution wil be fixed 320x480(Portrait) if you missed the minSdkVersion.
so, you should be set it to 4(Android SDK Version 1.6) or higher.

Adds this into your AndroidManifest.xml:
Note: Change "(" to "<" and ")" to ">"
(manifest)
...
(uses-sdk android:minSdkVersion="4")(/uses-sdk)
(/manifest)

I've tested on Samsung Galaxy Tab.



-----
Cheers,
June

목요일, 9월 30, 2010

[Editor][Emacs] Emacs Manual

Emacs Manual


:: GNU Emacs Manual
 - Source: http://www.delorie.com/gnu/docs/emacs/emacs_toc.html#SEC_Contents



:: Quick EMACS Commands
 - Source: http://xkahn.zoned.net/help/emacs.html
---------------
[Quitting EMACS:]
Quit:    Ctrl-x Ctrl-c
I pushed the wrong key. Help!:    Ctrl-g
---------------
[Working with files:]
Load a file:    Ctrl-x Ctrl-f
Load a directory:    Ctrl-x Ctrl-f
New file:    Ctrl-x Ctrl-f
Save a file:    Ctrl-x Ctrl-s
Save all open files:    Ctrl-x s
Save the file with a new name    Ctrl-x Ctrl-w
---------------
[Dealing with Buffers]
Switch buffers:    Ctrl-x b
Close buffer:    Ctrl-x k
Split current buffer    Ctrl-x 2
Make current buffer the only one on screen    Ctrl-x 1
Switch between the buffers on-screen    Ctrl-x o
---------------
[Cutting and pasting]
Set mark:    Ctrl-[SPACE]
Cut and save text from here to mark:    Ctrl-w
Paste saved text:    Ctrl-y
Cut text from the cursor to the end of the line:    Ctrl-k
---------------



:: Emacs Command Summary
 - Source: http://www.cs.rutgers.edu/LCSR-Computing/some-docs/emacs-chart.html
---------------
Emacs Command Summary
Emacs command summary, Thu Jul 25.

C-SP     set-mark-command         C-q      quoted-insert
C-a      beginning-of-line         C-r      isearch-backward
C-b      backward-char             C-s      isearch-forward
C-c      exit-recursive-edit         C-t      transpose-chars
C-d      delete-char             C-u      universal-argument
C-e      end-of-line             C-v      scroll-up
C-f      forward-char             C-w      kill-region
C-h      help-command             C-x      Control-X-prefix
TAB      indent-for-tab-command         C-y      yank
LFD      newline-and-indent         C-z      suspend-emacs
C-k      kill-line             ESC      ESC-prefix
C-l      recenter             C-]      abort-recursive-edit
RET      newline             C-_      undo
C-n      next-line             SPC .. ~        self-insert-command
C-o      open-line             DEL      delete-backward-char
C-p      previous-line

C-h v    describe-variable         C-h d    describe-function
C-h w    where-is             C-h k    describe-key
C-h t    help-with-tutorial         C-h c    describe-key-briefly
C-h s    describe-syntax         C-h b    describe-bindings
C-h n    view-emacs-news         C-h a    command-apropos
C-h C-n  view-emacs-news         C-h C-d  describe-distribution
C-h m    describe-mode             C-h C-c  describe-copying
C-h l    view-lossage             C-h ?    help-for-help
C-h i    info                 C-h C-h  help-for-help
C-h f    describe-function

C-x C-a  add-mode-abbrev         C-x 5    split-window-horizontally
C-x C-b  list-buffers             C-x ;    set-comment-column
C-x C-c  save-buffers-kill-emacs     C-x <    scroll-left
C-x C-d  list-directory             C-x =    what-cursor-position
C-x C-e  eval-last-sexp             C-x >    scroll-right
C-x C-f  find-file             C-x [    backward-page
C-x C-h  inverse-add-mode-abbrev     C-x ]    forward-page
C-x TAB  indent-rigidly             C-x ^    enlarge-window
C-x C-l  downcase-region         C-x `    next-error
C-x C-n  set-goal-column         C-x a    append-to-buffer
C-x C-o  delete-blank-lines         C-x b    switch-to-buffer
C-x C-p  mark-page             C-x d    dired
C-x C-q  toggle-read-only         C-x e    call-last-kbd-macro
C-x C-r  find-file-read-only         C-x f    set-fill-column
C-x C-s  save-buffer             C-x g    insert-register
C-x C-t  transpose-lines         C-x h    mark-whole-buffer
C-x C-u  upcase-region             C-x i    insert-file
C-x C-v  find-alternate-file         C-x j    register-to-dot
C-x C-w  write-file             C-x k    kill-buffer
C-x C-x  exchange-dot-and-mark         C-x l    count-lines-page
C-x C-z  suspend-emacs             C-x m    mail
C-x ESC  repeat-complex-command         C-x n    narrow-to-region
C-x $    set-selective-display         C-x o    other-window
C-x (    start-kbd-macro         C-x p    narrow-to-page
C-x )    end-kbd-macro             C-x q    kbd-macro-query
C-x +    add-global-abbrev         C-x r    copy-rectangle-to-register
C-x -    inverse-add-global-abbrev     C-x s    save-some-buffers
C-x .    set-fill-prefix         C-x u    advertised-undo
C-x /    dot-to-register         C-x w    widen
C-x 0    delete-window             C-x x    copy-to-register
C-x 1    delete-other-windows         C-x {    shrink-window-horizontally
C-x 2    split-window-vertically     C-x }    enlarge-window-horizontally
C-x 4    ctl-x-4-prefix             C-x DEL  backward-kill-sentence

ESC C-SP mark-sexp             ESC =    count-lines-region
ESC C-a  beginning-of-defun         ESC >    end-of-buffer
ESC C-b  backward-sexp             ESC @    mark-word
ESC C-c  exit-recursive-edit         ESC O    ??
ESC C-d  down-list             ESC [    backward-paragraph
ESC C-e  end-of-defun             ESC \    delete-horizontal-space
ESC C-f  forward-sexp             ESC ]    forward-paragraph
ESC C-h  mark-defun             ESC ^    delete-indentation
ESC LFD  indent-new-comment-line     ESC a    backward-sentence
ESC C-k  kill-sexp             ESC b    backward-word
ESC C-n  forward-list             ESC c    capitalize-word
ESC C-o  split-line             ESC d    kill-word
ESC C-p  backward-list             ESC e    forward-sentence
ESC C-s  isearch-forward-regexp         ESC f    forward-word
ESC C-t  transpose-sexps         ESC g    fill-region
ESC C-u  backward-up-list         ESC h    mark-paragraph
ESC C-v  scroll-other-window         ESC i    tab-to-tab-stop
ESC C-w  append-next-kill         ESC j    indent-new-comment-line
ESC ESC  ??                 ESC k    kill-sentence
ESC C-\  indent-region             ESC l    downcase-word
ESC SPC  just-one-space             ESC m    back-to-indentation
ESC !    shell-command             ESC q    fill-paragraph
ESC $    spell-word             ESC r    move-to-window-line
ESC %    query-replace             ESC t    transpose-words
ESC '    abbrev-prefix-mark         ESC u    upcase-word
ESC (    insert-parentheses         ESC v    scroll-down
ESC )    move-past-close-and-reindent     ESC w    copy-region-as-kill
ESC ,    tags-loop-continue         ESC x    execute-extended-command
ESC -    negative-argument         ESC y    yank-pop
ESC .    find-tag             ESC z    zap-to-char
ESC 0 .. ESC 9  digit-argument         ESC |    shell-command-on-region
ESC ;    indent-for-comment         ESC ~    not-modified
ESC <    beginning-of-buffer         ESC DEL  backward-kill-word

C-x 4 C-f       find-file-other-window     C-x 4 d  dired-other-window
C-x 4 .  find-tag-other-window         C-x 4 f  find-file-other-window
C-x 4 b  pop-to-buffer             C-x 4 m  mail-other-window
---------------



:: Quick EMACS Commands
 - Source: http://en.opensuse.org/Emacs
---------------
Action     Key-sequence     Command
Open file     C-x C-f     find-file
Close     C-x C-c     save-buffers-kill-emacs
Save file     C-x C-s     save-buffer
Save as     C-x C-w     write-file
Page down     C-v     scroll-up
Page up     M-v     scroll-down
Goto top     M-<     beginning-of-buffer
Goto end     M->     end-of-buffer
Goto line     M-g g     goto-line
Goto start of line     C-a     beginning-of-line
Goto end of line     C-e     end-of-line
Search forwards     C-s search term     isearch-forward search term
Repeat last search forwards     C-s C-s     isearch-repeat-forward
Search backwards     C-r search term     isearch-backward search term
Repeat last search backwards     C-r C-r     isearch-repeat-backward
Cancel command     C-g     keyboard-quit
Kill line     C-k     kill-line
Kill sentence     M-k     kill-sentence
Yank last kill     C-y     yank
Yank previous kill     M-y     yank-pop
Split window horizontally     C-x 2   
Split window vertically     C-x 3   
Swap active window     C-x o   
Merge windows     C-x 1   
List buffers     C-x C-b     list-buffers
Switch to buffer     C-x b     switch-to-buffer
Switch active buffer left     C-x [LEFT]     previous-buffer
Switch active buffer right     C-x [RIGHT]     next-buffer
Kill Buffer     C-x f     kill-buffer
Spell-check current buffer    none     ispell-buffer
Spell-check current word    none     ispell-word
Indent code     C-M-\     indent-region
Goto matching closing bracket     C-M-f   
Goto matching opening bracket     C-M-b   
---------------


-----
Cheers,
June