기본 콘텐츠로 건너뛰기

[Eclipse Shortcut key] select a whole word only with keyboard(similarily double clicking the word)

source:  http://stackoverflow.com/questions/2049834/shortcut-key-to-select-word-in-eclipse Shortcut key to select word in Eclipse Shift  +  Alt  +  ↑  selects enclosing elements. Shift  +  Alt  +  ↓  reverses  Shift  +  Alt  +  ↑ . Shift  +  Alt  +  ←  selects enclosing elements moving  up  the file. Shift  +  Alt  +  →  selects enclosing elements moving  down  the file.

[python] yield keyword

source:  http://stackoverflow.com/questions/231767/the-python-yield-keyword-explained The Python yield keyword explained To understand what  yield  does, you must understand what generators are. And before generators come iterables. Iterables When you create a list, you can read its items one by one, and it's called iteration: >>> mylist = [ 1 , 2 , 3 ] >>> for i in mylist : ... print ( i ) 1 2 3 Mylist is an iterable. When you use a list comprehension, you create a list, and so an iterable: >>> mylist = [ x * x for x in range ( 3 )] >>> for i in mylist : ... print ( i ) 0 1 4 Everything you can use "for... in..." on is an iterable: lists, strings, files... These iterables are handy because you can read them as much as you wish, but you store all the values in memory and it's not always what you want when you have a lot of values. Generators Generators are iterators, but  you can ...

[맞춤법] 안돼(o) vs 안되(x); 안돼요(o) 안되요(x); 안되지(o) vs 안돼지(x);

source:  http://k.daum.net/qna/view.html?qid=0FKVD&l_cid=Q&l_st=1 쉽게 구분하는 방법만 말씀드리겠습니다.   안돼요는 안되어요가 줄어든 말입니다. 예를 들어보겠습니다.   당신이 그러면 안되지. 당신이 그러면 안돼지.   첫번째 문장이 맞고 두번째 문장이 틀립니다. 두번째 문장을 '당신이 그러면 안되어지'로 바꾸면 말이 이상하지요. '안돼지'로 쓸 수 있는 것은 '안되어지'로 쓸 수 있는 것입니다.   요즘 사업이 잘 안(돼서 되서) 죄송합니다. '돼서'와 '되서' 가운데 어떤 것이 맞을까요? 사업이 잘 '안되어서'가 말이 되니까 '안돼서'가 맞습니다.   즉, 이 두가지를 쉽게 구분하는 방법은 '돼' 자리에 '되어'를 넣어봐서 말이 되면 '돼'고 말이 안되면 '되'를 쓰면 됩니다.   아니면   되 자리에 하를 넣어보고   돼 자리에 해를 넣어서 어색하지 않으면 그대로 쓰면 됩니다.   안되요는 안하요가 되니 틀린 말이고   안돼요는 안해요가 되니 맞는 말입니다.   결국 안돼요가 표준어입니다.

[프록시] Difference between proxy server and reverse proxy server

source:  http://stackoverflow.com/questions/224664/difference-between-proxy-server-and-reverse-proxy-server image source:  http://www.jscape.com/blog/bid/87783/ First of all, the word proxy describes someone or something acting on behalf of someone else. In the computer realm, we are talking about one server acting on the behalf of another computer. For the purposes of accessibility, I will limit my discussion to web proxies, however, the idea of a proxy is not limited to web sites. FORWARD proxy Most discussion of web proxies refers to the type of proxy known as a "forward proxy." The proxy event in this case is that the "forward proxy" retrieves data from another web site on behalf of the original requestee. A tale of 3 computers (part I) For an example, I will list three computers connected to the internet. X = your computer, or "client" computer on the internet Y = the proxy web site, proxy.example.org Z = the web site you wan...