아이폰 앱 생명주기

이미지
아이폰을 개발하면서, 필요한 항목을 정리 중입니다. 앱의 생명주기는 아래와 같이 4가지로 나뉜다. Not Running: 앱이 실행되지 않은 상태 (Inactive와 Active 상태를 합쳐서 Foreground 라고 함) Inactive: 앱이 실행중인 상태 그러나 아무런 이벤트를 받지 않는 상태 Active: 앱이 실행중이며 이벤트가 발생한 상태 Background: 앱이 백그라운드에 있는 상태 그러나 실행되는 코드가 있는 상태 Suspened: 앱이 백그라운드에 있고 실행되는 코드가 없는 상태     AppDelegate.swift의 delegate 설명 application(_:didFinishLaunching:) - 앱이 처음 시작될 때 실행 applicationWillResignActive: - 앱이 active 에서 inactive로 이동될 때 실행 applicationDidEnterBackground: - 앱이 background 상태일 때 실행 applicationWillEnterForeground: - 앱이 background에서 foreground로 이동 될때 실행 (아직 foreground에서 실행중이진 않음) applicationDidBecomeActive: - 앱이 active상태가 되어 실행 중일 때 applicationWillTerminate: - 앱이 종료될 때 실행 ViewController 생명주기

android webpage capture (url 캡쳐하기)

webview를 이용한 캡쳐 방법입니다. 출처 :  http://zettystory.tistory.com/entry/Webpage-%EC%8A%A4%ED%81%AC%EB%A6%B0-%EC%BA%A1%EC%B3%90%ED%95%B4-Bmp%EB%A1%9C-%EC%A0%80%EC%9E%A5%ED%95%98%EA%B8%B0 캡쳐 방법 : webView.setWebChromeClient(new MyWebChromeClient()); ..... /*webViewClient 에 onPageFinished 이벤트가 있지만 테스트해 본 결과 웹페이지가    완전히 로드되지 않았는데도 이벤트가 발생한다.  그래서 아래와 같은 방법으로 웹페이지가   완전히 로드되면 캡쳐를 한다.  그렇치 않으면 완전하 스크린샷을 얻을 수 없다. */ public class MyWebChromeClient extends WebChromeClient{      @Override   public void onProgressChanged(WebView view, int newProgress) {    super.onProgressChanged(view, newProgress);    progressbar.setProgress(newProgress);            if (newProgress == 100){               //screen capture     String url = view.getUrl();      ...

nightwish - elan 가사 & 해석

이미지
Leave the sleep and let the springtime talk In tongues from the time before man Listen to a daffodil tell her tale Let the guest in, walk out, be the first to greet the morn The meadows of heaven await harvest The cliffs unjumped, cold waters untouched The elsewhere creatures yet unseen Finally your number came up, free fall awaits the brave Come Taste the wine, race the blind They will guide you from the light Writing noughts till the end of time Come Surf the clouds, race the dark It feeds from the runs undone Meet me where the cliff greets the sea The answer to the riddle before your eyes Is in dead leaves and fleeting skies Returning swans and sedulous mice Writings on the garden book, in the minute of a lover's look Building a sandcastle close to the shore A house of cards from a worn out deck A home from the fellowship, poise and calm Write a lyric for the song only you can understand Come ...

SVN repository 파일시스템 에러 처리

[SVN repository 파일시스템 에러] tortoiseSVN 클라이언트를 이용해서 repository 생성후 svn 경로에 접근 하면 파일 시스템 에러 메세지가 발생한다. 해결 방법 : 1) cmd 창 실행                2) Subversion\bin 경로 이동                3) svnadmin create c:\repository --pre-1.4-compatible                    ->svnadmin create 실제경로 --pre-1.4-compatible

MS Security Essential 다운로드

이미지
윈도우 정품 사용자를 위한 백신 Ms Security Essential 다운로드 :  http://microsoft.com/security-essentials

MQTT SERVER 설치 하기 (mosquitto broker)

   MQTT SERVER 설치 하기 (mosquitto broker)      * MQTT 를 간단히 설명하면 경량하된 메세지 프로토콜 이다.     - mosquitto 는 MQTT Broker 서버의 한 종류다. ( MQTT 공식 페이지 )     우분투 서버에서 mosquitto 설치 하기   1. 필요한 구성요소 설치  sudo apt-get install software-properties-common  sudo apt-get install python-software-properties  sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa  sudo apt-get update    sudo apt-cache search mosquitto   2. 서버 설치   sudo apt-get install mosquitto   3. 서버 실행   mosquitto  

우분투에서 JAVA 8 JDK(8u25) 설치 하기

우분투에서 JAVA 8 JDK(8u25) 설치 하기 1. Install Java8 (JDK 8) $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer 2. Verify JAVA Version $ java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode) 3. Setup JAVA Environment $ sudo apt-get install oracle-java8-set-default