Vim Editor 환경설정

Linux 2012. 4. 30. 13:02

~/.vimrc 에 저장하면 된다.

set tabstop=4 "탭 간격을 4칸으로 설정

set shiftwidth=4 "shift 간격 4

set expandtab "탭 문자를 공백문자로 변환

set softtabstop=4 "탭문자를 공백문자로 변환하면 삭제할때 탭간격만큼 삭제하지안하고 탭문자를 삭제하는 것 처럼 삭제

set visualbell "사용자 실수를 할때 비프음 대신 화면을 한번 빤짝

set nobackup "백업 파일을 생성하지 않음.

set cindent "c언어 스타일의 들여쓰기 작성

set autoindent "자동 들여쓰기

set smartindent

set incsearch


syntax on "구문 강조

filetype on " 파일 종류에 따라 강조

set backspace=eol,start,indent

set history=1000 "편집기록 저장 1000개 까지

set hlsearch "검색어 강조

set ignorecase "검색시 대,소문자 구별안함.

set showmatch "매칭 되는 괄호 표현

set number "옆에 코드라인 표시



Posted by 다엘
,


'Everyday' 카테고리의 다른 글

내일 출국.  (0) 2009.07.20
Posted by 다엘
,

Linear Layout

Android 2011. 6. 9. 15:13

Linear Layout

LinearLayout is a ViewGroup that displays child View elements in a linear direction, either vertically or horizontally.

지나친 LinearLayout사용에 주의를 할 필요가 있습니다.중첩된 여러 LinearLayout들을 사용하려면, RelativeLayout 사용을 고려할 수 있습니다.

  1. HelloLinearLayout.라는 이름의 새로운 프로젝트를 생성합니다.
  2. res/layout/main.xml 를 열어 삽입합니다.
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
    android:orientation="vertical"
       
    android:layout_width="fill_parent"
       
    android:layout_height="fill_parent">

     
    <LinearLayout
         
    android:orientation="horizontal"
         
    android:layout_width="fill_parent"
         
    android:layout_height="fill_parent"
         
    android:layout_weight="1">
         
    <TextView
             
    android:text="red"
             
    android:gravity="center_horizontal"
             
    android:background="#aa0000"
             
    android:layout_width="wrap_content"
             
    android:layout_height="fill_parent"
             
    android:layout_weight="1"/>
         
    <TextView
             
    android:text="green"
             
    android:gravity="center_horizontal"
             
    android:background="#00aa00"
             
    android:layout_width="wrap_content"
             
    android:layout_height="fill_parent"
             
    android:layout_weight="1"/>
         
    <TextView
             
    android:text="blue"
             
    android:gravity="center_horizontal"
             
    android:background="#0000aa"
             
    android:layout_width="wrap_content"
             
    android:layout_height="fill_parent"
             
    android:layout_weight="1"/>
         
    <TextView
             
    android:text="yellow"
             
    android:gravity="center_horizontal"
             
    android:background="#aaaa00"
             
    android:layout_width="wrap_content"
             
    android:layout_height="fill_parent"
             
    android:layout_weight="1"/>
     
    </LinearLayout>
           
     
    <LinearLayout
       
    android:orientation="vertical"
       
    android:layout_width="fill_parent"
       
    android:layout_height="fill_parent"
       
    android:layout_weight="1">
       
    <TextView
           
    android:text="row one"
           
    android:textSize="15pt"
           
    android:layout_width="fill_parent"
           
    android:layout_height="wrap_content"
           
    android:layout_weight="1"/>
       
    <TextView
           
    android:text="row two"
           
    android:textSize="15pt"
           
    android:layout_width="fill_parent"
           
    android:layout_height="wrap_content"
           
    android:layout_weight="1"/>
       
    <TextView
           
    android:text="row three"
           
    android:textSize="15pt"
           
    android:layout_width="fill_parent"
           
    android:layout_height="wrap_content"
           
    android:layout_weight="1"/>
       
    <TextView
           
    android:text="row four"
           
    android:textSize="15pt"
           
    android:layout_width="fill_parent"
           
    android:layout_height="wrap_content"
           
    android:layout_weight="1"/>
     
    </LinearLayout>

    </LinearLayout>

    신중하게 XML을 확인하십시요. LinearLayout 는 최상위 입니다.that defines its orientation to be vertical—all child Views (of which it has two) will be stacked vertically. The first child is another LinearLayout that uses a horizontal orientation and the second child is a LinearLayout that uses a vertical orientation. Each of these nested LinearLayouts contain several TextView elements, which are oriented with each other in the manner defined by their parent LinearLayout.

  3. Now open HelloLinearLayout.java and be sure it loads the res/layout/main.xml layout in the onCreate() method:

    public void onCreate(Bundle savedInstanceState) {
       
    super.onCreate(savedInstanceState);
        setContentView
    (R.layout.main);
    }

    The setContentView(int) method loads the layout file for the Activity, specified by the resource ID — R.layout.main refers to the res/layout/main.xml layout file.

  4. Run the application.

You should see the following:

Notice how the XML attributes define each View's behavior. Try experimenting with different values for android:layout_weight to see how the screen real estate is distributed based on the weight of each element. See the Common Layout Objects document for more about how LinearLayout handles the android:layout_weight attribute.

References

↑ Go to top

← Back to Hello, Views

'Android' 카테고리의 다른 글

WebView  (0) 2011.06.09
안드로이드 스터디 시작!  (0) 2011.06.09
Posted by 다엘
,

WebView

Android 2011. 6. 9. 14:58
http://developer.android.com/reference/android/webkit/WebView.html


WebView는 웹킷 엔진을 이용하여 View에 웹페이지를 보여준다.
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.AbsoluteLayout
         ↳ android.webkit.WebView

 웹킷엔진을 이용하려면  INTERNET permission이 필요함.

<uses-permission android:name="android.permission.INTERNET" />
 manifest파일에 위 코드 추가.


 <WebView

android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/webView"
/>


layout에 위 코드 추가 

엑티비티 소스 코드

package com.daelity.WebViewTest;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class mainActivity extends Activity {
WebView browser; //WebView
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        browser = (WebView) findViewById(R.id.webView);
        browser.loadUrl("http://m.naver.com");//Url을 로드
        browser.getSettings().setJavaScriptEnabled(true);//자바스크립트 사용
    }

'Android' 카테고리의 다른 글

Linear Layout  (0) 2011.06.09
안드로이드 스터디 시작!  (0) 2011.06.09
Posted by 다엘
,
안드로이드 스터디를 시작합니다.

이 Category에 안드로이드를 공부하면서 자료를 정리할 예정임.

'Android' 카테고리의 다른 글

Linear Layout  (0) 2011.06.09
WebView  (0) 2011.06.09
Posted by 다엘
,

커피의 재배 및 수확

Coffee 2010. 10. 31. 15:06

커피나무는 심어진 후 3~4년 뒤 열매를 맺고 보통 15년까지 열매를 수확합니다.
10m까지 자랄 수 있지만 수확의 편리성을 위해 3m가 넘지 않게 가지를 자르며 재배합니다.

커피나무의 커피체리는 흰 꽃이 피었다 열매가 처음엔 녹색이었다가 시간이 지나면서 점점 붉어져 30~35주 정도 되면 진한 붉은색으로 변합니다. 이 때가 최상의 수확기이며 3~4개월동안 약 2주 간격으로 익은 열매만 골라서 6~8회 수확합니다.

나라마다 차이는 있지만 대개 5~10월에 가장 많이 수확하는데
브라질은 6~9월, 콜럼비아는 10월~익년 1월이 수확기입니다.

수확하는 방법에 따라 품질의 차이가 발생합니다.
농부가 일일이 열매를 수확하는것과 나무 전체를 흔들거나 기계로 수확하는것은 품질의 차이가 있습니다.
당에 떨어진 열매는 시간이 지나면 흙의 좋지 않은 냄새를 흡수하거나 벌래로 인한 흠집이 생길 수 있습니다.

'Coffee' 카테고리의 다른 글

커피의 분류 방법  (0) 2010.10.29
Coffee! 종별 특징 요약  (0) 2010.10.29
Posted by 다엘
,

커피의 분류 방법

Coffee 2010. 10. 29. 09:25

가공방법에 의한 분류 방법

원두 커피 : 원두를 분쇄하여 기구를 이용해 추출하는 커피를 말함
인스턴트 커피 : 일반적으로 솔루블 커피(Soluble Cofffee)라고 함



원두의 혼합유무에 의한 분류 방법

스트레이트 커피(Straight Coffee) : 한 종류의 원두만을 사용한 커피
블랜드 커피(Blend Coffee) : 서로 다른 두 종류 이상의 커피를 혼합



인위적인 향의 첨가 여부에 의한 분류 방법

레귤러 커피(Regular Coffee) : 인공향을 첨가하지 않음
플레이버드 커피(Flavored Coffee) : 인공향을 첨가한 커피



카페인 제거 여부에 의한 분류 방법

디카페인 커피(decaffeinated Coffee) : 카페인을 인위적으로 제거한 커피
레귤러 커피(Regular Coffee) : 카페인을 인위적으로 제거하지 않음

'Coffee' 카테고리의 다른 글

커피의 재배 및 수확  (0) 2010.10.31
Coffee! 종별 특징 요약  (0) 2010.10.29
Posted by 다엘
,

Coffee! 종별 특징 요약

Coffee 2010. 10. 29. 09:17

아라비카 커피(Arabica Coffee) : 아로마(aroma), 바디(body), 새콤함(acidity), 부드러움(smooth), 초콜릿 맛(chocolate taste)
로부스타 커피(canephora Coffee) : 거칠고(harsh), 쓴맛(bitter), 낮은고도에서 잘 자라고 병의 저항력이 크다.
리베리카 커피(liberica Coffee) : 로부스타 종과 유사, 낮은 고도에서도 잘 자라고 아프리카 지역에서 수규모로 재배되고 있다.

'Coffee' 카테고리의 다른 글

커피의 재배 및 수확  (0) 2010.10.31
커피의 분류 방법  (0) 2010.10.29
Posted by 다엘
,

내일 출국.

Everyday 2009. 7. 20. 23:21

내일 출국하는구나..
LA를 경유하는 덴버행.

'Everyday' 카테고리의 다른 글

한 손으로 31까지 세는 법  (0) 2011.08.04
Posted by 다엘
,

mncast.com 엠엔캐스트


엠엔케스트가 근 한달의 동면을 깨고 다시 서비스를 재개하였습니다.
그동안 우리 블로거스피어에 많은 걱정을 끼친 엠엔캐스트 기특하기도 하고 참 고생많았습니다.
다행이 그동안 우려했던 자료유실은 없나 봅니다.
일각에서는 raid구상이 깨졌다는 정보도 흘러나왔었는데 루머였나 봅니다.
참신한 서비스로 우리를 놀래켜줬던 엠엔캐스트. 앞으로 더욱 커져가는 닷컴기업이 되었으면 합니다.
http://www.mncast.com/

아래는 엠엔캐스트 재기 공지사항 전문입니다.
http://www.mncast.com/pages/helpdesk/notice_view.asp?seq=519&page=1
안녕하세요 엠엔캐스트입니다.

힘들었던 시간이 모두 지나고 그동안 일부 언론에서 걱정하신 소중한 컨텐츠의 소실없이
오늘 서비스 재개와 함께 여러분에게 밝은 모습으로 인사드릴 수 있게 되었습니다.

이에 MN CAST 전직원은 기쁨과 더불어 죄송함의 사죄를 엎드려 구하려고 합니다.

지난 번 공지 이후 보내주신 여러분들의 많은 이해와 격려에 다시 한 번
감사드립니다. 보내주신 소중한 내용 하나하나가 모두 저희에게
너무나도 큰 힘이 되어 오늘 서비스 재개의 발판이 되었습니다.

어렵게 다시 서비스를 재개한만큼 그동안 보여주신
여러분의 지속되는 애정과 격려로 꿋꿋이 일어나는
엠엔캐스트가 되겠습니다.

앞으로 엠엔케스트가 회원님들의 관심과 사랑에 보답해서 알찬 서비스,
재미있는 서비스, 1등으로 우뚝 서는 서비스로 자리매김하는 모습 꼭
지켜봐 주시기 바랍니다.

다시 한번 여러분의 깊은 이해와 성원 감사드립니다.


엠엔캐스트 임직원 일동 드림.

mncast.com 캡쳐화면

'Issue' 카테고리의 다른 글

샐러드 드레싱, 짜장면 한 그릇 맞먹는다구?  (0) 2007.10.08
Posted by 다엘
,