2010년 6월 25일 금요일

Android 개발 환경 구성

참조 : http://developer.android.com/sdk/installing.html
  1. download & unzip
  2. Eclipse에 ADT plugin 설치 ( http://developer.android.com/sdk/eclipse-adt.html )
    eclipse 3.5 ( Galileo ) : Help > Install New Software
    Add : https://dl-ssl.google.com/android/eclipse/
  3. Eclipse 재시작
  4. Eclipse(Window > Preferences)에 SDK 위지 지정
  5. Android SDK and AVD Manager 실행 ( Window > Android SDK and AVD Manager )
  6. Available Packages 선택, 사용할 패키지 선택 , Install Selected
    Antivirus가 실행시 경고창이 나타날 수 있으며, antivirus의 실시간 감시를 끄고 확인을 누르면 다시 진행 됨.
  7. Virtual Devices 작성
  8. Start 버튼을 눌러 AVD 실행

2010년 5월 28일 금요일

JDK logger 초기화

LogManager logMgr = LogManager.getLogManager();
URL configURL = getClass().getResource("/config/JDKLog.properties");
InputStream ins;
           try {
               ins = configURL.openStream();
               if( ins != null )
                   logMgr.readConfiguration(ins);
               else
                   logger.log( Level.WARNING, "Failed to open JDKLog.properties");
           } catch (IOException e) {
               // TODO 자동 생성된 catch 블록
               e.printStackTrace();
           }

---------------------JDKLog.properties-------------------
handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=ALL
.level=FINEST

2010년 1월 27일 수요일

Ubuntu 9.10 + GeForce 7300 LE + Lenovo L2440x wide 설정

gtf를 시행하여 1920x1200@60Hz에 해당하는 Modeilne 값을 찾아 낸다.

# gtf 1920 1200 60 -x

  # 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz
  Modeline "1920x1200_60.00"  193.16  1920 2048 2256 2592  1200 1201 1204 1242  -HSync +Vsync

이 값을 xorg.conf에 추가 하고, 모니터가 지원하는 HorizSync 값을 지정 한다.

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
    HorizSync       29.0 - 90.0
#    VertRefresh     50.0 - 60.0
 # 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz
  Modeline "1920x1200_60.00"  193.16  1920 2048 2256 2592  1200 1201 1204 1242  -HSync +Vsync

    Option         "DPMS"
EndSection

설정이 끝나면 gdm을 다시 시작 한다.

# restart gdm
gdm start/running, process 31107

로그인 후 display에서 해상도를 변경 한다.


2010년 1월 25일 월요일

Ubuntu 9.10에서 윈도 폰트 사용하기

sudo apt-get install ttf-mscorefonts-installer
sudo apt-get install ttf-liberation

또는 시냅틱 관리자에서 ttf-mscorefonts-installer를 선택하여 설치하면 ttf-liberation까지 포함되어 설치 된다.

그리고 나서 다음의 순서대로 .fonts 폴더를 생성하고 폰트를 복사한다.
  1. Go to your home folder
  2. Enable “Show Hidden Files” option from Nautilus View menu
  3. Then create new folder with name “.fonts” (with dot in front)
  4. Now in new folder copy all your true type fonts. If you want to copy your Windows fonts, you can find it in WINDOWS/Fonts folder.
  5. Now restart and new fonts will be in use.

2009년 11월 19일 목요일

Windows에서 호스트 이름 변경 후 DB2 SQL1042C 에러 해결

참조 : http://www.thefillmoregroup.com/blog/?tag=hostname

  1. DB2 instance subdirectory (e.g. “c:\Program Files\IBM\SQLLIB\DB2″) 에 있는db2nodes.cfg 수정
  2. db2extsec -a {hostname}\DB2ADMNS -u {hostname}\DB2USERS

2009년 10월 22일 목요일

Adobe flash player 10 64bit ubuntu에 설치하기

Flash Player 10 for 64-bit Linux를 다운 받는다.

다운 받은 파일의 압축을 풀면 libflashplayer.so 파일이 나온다.

다음의 명령을 실행 한다.

sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/

Firefox를 재시작 하면 flash가 동작 한다. ^^

----------------------------------------------------------

참고 사이트

http://johnbokma.com/mexit/2008/11/25/64-bit-adobe-flash-ubuntu.html

http://www.myscienceisbetter.info/install-native-64bit-flash-player-10-on-linux.html