2009년 9월 25일 금요일

nokia 6210s

제품정보 : http://www.nokia.co.kr/find-products/products/nokia-6210s

M470이라는 스마트폰을 1년가까이 사용했다.

PDA는 잠시 사용해 봤지만, 스마트 폰은 처음이었다.

처음에는 여느 핸드폰과 다르게 프로그램을 설치해서 사용해 보는 재미에 즐거웠지만

전화기에 PDA기능을 넣은게 아니라, PDA에 전화기능을 넣었기 때문에 발생하는 ...

전화기가 기본 기능이 안되니 여간 답답한게 아니었다.

전화를 받아도 아무소리 안들리거나... 문자받고 먹통이 되거나...

결국.. 세번의 A/S를 받고서 환불을 받았다.

그리고... 다시 일반폰으로...

그러나, 이미 길들여진 스마트폰의 기능에 조금씩 답답함이 밀려왔고

어느새 나도 모르게 스마트폰을 뒤적이고 있었다... ㅡㅜ

그러다 찾은게 nokia 6210s

처음엔 공짜폰이라 문제가 많나? 하는 생각을 가지게 만들었지만

사용기를 뒤지다보니 괜찮은 폰임을 알게 되고, 결국 주문을 해버렸다...^^;;;

그러나... 처음보는 인터페이스에... 영 ~~ 어색함이란... 그리고... 한없이 부족한 기본기능들...

우리나라 업체들이 잘만들긴 하나보다... 아직은 한국에 적응이 안되서 그러겠지 하면서...

익숙해지는데 필요한 시간이 지나고... symbian이란 os의 안정성에 점점 빠지게 되었다

한가지 아쉬운건... 내가 원하는 기능들 중 대부분은 구매를 해야 한다는데 조금 실망을 했다.

무료 프로그램들도 있지만 조금더 편해지길 원하는 사용자 입장에서는 역시 상용 프로그램에 눈이가게 마련...

하지만... 지금껏 3달 가까이 써오면서 한번도 문제를 일으키지 않았다는게...

WM기반의 폰들을 쳐다보지 않게 만들고 있다.

요새, 아이폰이 나온다고들 난리다.

하지만 난 nokia에서 두번째로 내보낼 5800에 더 관심이 가고 있다.

물론 가격적인 이유도 있겠지만, 안정성이란 측면에서 symbian에 더 끌리고 있기 때문이다.

2009년 9월 8일 화요일

오늘도 이쁜 하늘~

어제 비가 와서인가... 오늘도 하는이 넘 이쁘다

역시 하늘은 가을 하늘이다.

웬지 나무 그늘 아래 누워 하염 없이 바라 보고 싶은 날씨다... ㅋㅋ


2009년 8월 31일 월요일

About Native XMLHTTP

Ref. : About Native XMLHTTP

XMLHTTP in IE7 vs. IE6

The native implementation of the XMLHTTP object is designed with cross-browser compatibility in mind. With just a bit of script, it is easy to build a function that works with either version of Internet Explorer, or any browser that supports XMLHTTP. See XMLHttpRequest for complete documentation and examples.

var xmlHttp = null;
if (window.XMLHttpRequest) {
// If IE7, Mozilla, Safari, and so on: Use native object.
xmlHttp = new XMLHttpRequest();
}
else
{
if (window.ActiveXObject) {
// ...otherwise, use the ActiveX control for IE5.x and IE6.
xmlHttp = new ActiveXObject('MSXML2.XMLHTTP.3.0');
}
}

VI에서 대소문자 변환하기

대소문자 반전 키
~ (물결 무늬) 키를 누르면 현재 커서가 위치한 글자 1개의 대소문자가 반전됩니다. 대문자는 소문자로, 소문자는 대문자로 변경됩니다.

키보드 가장 왼쪽에 ~ 이렇게 물결 무늬처럼 생긴 "틸데(Tilde)" 키가 있습니다. Shift키를 누르면서 `(백틱)키를 누르면 ~가 찍힙니다.



한 줄을 모두 대문자로 변환하는 명령어
gUU 라는 명령을 주면, 현재 커서가 위치한 줄이 모두 대문자로 변경됩니다.


한 줄을 모두 소문자로 변환하는 명령어
guu 라는 명령을 주면, 현재 커서가 위치한 줄이 모두 소문자로 변경됩니다.



선택 영역(블록)의 대소문자 변경
v 키를 누릅니다. (vim 에디터 화면 맨 밑에 --VISUAL-- 이라는 글자가 나와야 합니다.) 참고: ▶▶ Vim (Vi)에디터] 블록 선택, 복사, 붙이기; Select Copy Paste

이제 shift-화살표 키를 눌러 텍스트의 특정 부분만 선택합니다.

소문자 u 를 누르면, 선택 영역의 모든 알파벳이 소문자로 변경됩니다.

대문자 U 를 누르면, 선택 영역의 모든 알파벳이 대문자로 변경됩니다.

2009년 8월 28일 금요일

Resource Injection using Annotation - Java EE5

In web application.

 

      Container-managed object에만 사용할 수 있다.

            - container가 생성을 관리할 수 있어야 injection을 할 수있기 때문.

            - 따라서 일반 Javabean에서는 사용할 수 없다. 그러나 JavaServer Faces에서 사용하는 bean에는 사용할 수 있다.

 

      Resource injection JSP에 사용할 수 없다.

            - Resource Injection을 위한 annotaion deployment time에 적용되기 때문에 JSP에서는 사용할 수 없다.

 

Table 3-1 Web Components That Accept Resource Injections

Component

Interface/Class

Servlets

javax.servlet.Servlet

Servlet Filters

javax.servlet.ServletFilter

Event Listeners

javax.servlet.ServletContextListener

javax.servlet.ServletContextAttributeListener

javax.servlet.ServletRequestListener

javax.servlet.ServletRequestAttributeListener

javax.servlet.http.HttpSessionListener

javax.servlet.http.HttpSessionAttributeListener

Taglib Listeners

Same as above

Taglib Tag Handlers

javax.servlet.jsp.tagext.JspTag

Managed Beans

Plain Old Java Objects

 

Declaring Resource References

 

@Resource annotation deployment descriptor 내의 resource-ref element와 동일하다.

 

@Resource javax.sql.DataSource catalogDS;

public getProductsByCategory() {

// get a connection and execute the query

Connection conn = catalogDS.getConnection();

..

}

 

@Resources ({
    @Resource (name="myDB" type=java.sql.DataSource),
    @Resource(name="myMQ" type=javax.jms.ConnectionFactory)
})

 

 

Declaring a Reference to a Web Service

The @WebServiceRef annotation provides a reference to a web service. The following example shows uses the @WebServiceRef annotation to declare a reference to a web service. WebServiceRef uses the wsdlLocation element to specify the URI of the deployed services WSDL file:

...
import javax.xml.ws.WebServiceRef;
...
public class ResponseServlet extends HTTPServlet {
@WebServiceRef(wsdlLocation=
    "http://localhost:8080/helloservice/hello?wsdl")
static HelloService service;

JSP EL(expression language)에서 사용하는 객체들

The JSP expression language defines a set of implicit objects:

■ pageContext: The context for the JSP page. Provides access to various objects including:
■ servletContext: The context for the JSP page’s servlet and any web components contained in the same application. See “Accessing the Web Context” on page 124.
■ session: The session object for the client. See “Maintaining Client State” on page 125.
■ request: The request triggering the execution of the JSP page. See “Getting Information from Requests” on page 110.
■ response: The response returned by the JSP page. See “Constructing Responses” on page 112.
■ In addition, several implicit objects are available that allow easy access to the following objects:
■ param:Maps a request parameter name to a single value
■ paramValues:Maps a request parameter name to an array of values
■ header:Maps a request header name to a single value
■ headerValues:Maps a request header name to an array of values
■ cookie:Maps a cookie name to a single cookie
■ initParam:Maps a context initialization parameter name to a single value
■ Finally, there are objects that allow access to the various scoped variables described in “Using Scope Objects” on page 105.
■ pageScope:Maps page-scoped variable names to their values
■ requestScope:Maps request-scoped variable names to their values
■ sessionScope:Maps session-scoped variable names to their values
■ applicationScope:Maps application-scoped variable names to their values

DB2에서 CODESET을 지정하여 새로운 DB만들기

db2 create db mywiki  USING CODESET UTF-8 TERRITORY KR

Windows에서 기본 설정으로 만들면 CODEPAGE와 CODESET이 1363으로 지정되어 JDBC 연결 사용시 UnsupportedEncodingException : Cp1363C 에러가 발생함.