티스토리 툴바

블로그 이미지
bOBaNa

calendar

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Notice

    2010/03/01 14:50 일상사

    얼마전 Generation Kill을 봤는데, 사실 아~~주 예전에 Graylynx형이 추천해주신건데, 이제야 봤네요ㅋㅋ

    공부도 할 겸, 영어로 "짧게" "짤막하게" 쓰려고했는데 농축해서 쓰는 문장력이 안되서 일일이 글이 늘어지게 되었습니다ㅋ

    에휴. 하고싶은 말을 언제 영어로 쓰게 될까나...ㅜㅜ

    (미완성 : 두 단락 정도 덜씀..ㅋㅋ )
    ____________________________________________________________________________________________________________________

    Title : It's not cool.

    In my opinion, That was a topic of the TV show named "Generation Kill", involved in the Iraq war. The TV show realistically showed pain on the war, everything that can occur in such a war, such as massacre, murder, and so on. All people in the TV show are marines of U.S.A trained for search operation in Iraq. This show tell us irrational and brutality in the war through only seven episodes

    Before beggining their missions, Marines were feeling excitement to attend the war that could kill enemy. Expecting something cool, they were preparing the war. After a while, a man who is a reporter in magazine "Rolling stones" appeared in their camp, and then the story of the TV show was progressed. I think he was a character who has a role looking at the war objectively. The producer of this show might try to expose real facts of war to audiences through him. Because of the fact that he was not army, he watched the war while marines operate their missions as a reporter, and as a civilian. Getting along with marines, he had seen many horrible scenes of war, such as that marines kills a human being and vice versa.

    Marines calmly killed people because they are enemies, marines warmly gave a warm helping hand to people because they are not enemies. There was just one difference between being killed people and being saved people. It was whether they armed or not. During their mission, some marine wanted to kill enemy but when they killed a civilian, they ironically feel guilty. In some episode, a marine said that "I don't feel nothing when i kill enemies anymore.". And some marine said that "If we killed people in America, it would be a crime.". Well. They kill people. There is no difference on killing people. The system called the Iraq war made them kill people. So, there was a tacit agreement in the war. From beggining of the war, their murder will be legal until end of the war. The scene of having a dinner next to dead body in a cold blood might be exactly a brutality of horrible war the producer of this show tried to show.


    posted by bOBaNa
    2010/01/31 14:29 English Study
    People trying to understand me often says "What is wrong with you?", then i answer with the question, "I don't know. Am i abnormal? Do you think i have a serius problem?" Well...These days, i also agree there is some problem with me. I'm losing myself. Living this world, i've faced many problems making me tired. Only two months ago, I had an easy and composed attitude that i can achieve what i want to get.
    Everything i have to do are not processed because of a mess on my mind.

    Useless stuffs, such as Reading comic books, reading novels, and plaing a game, are all i've currently been doing. Why am i being so? I've regularly been studying for TOEIC, the english test to get a qualification to get a job. I feel sad because i hated that when people try to learn english, they study for an examination, TOEIC. Although i hated it, i am studying for TOEIC. I might be youger than my age, so i might not look at reality. I've always escaped from reality and followed an ideal, which makes me weak person. Now, It's time to face up to the reality.

    Seeing many people who trying to improve theirself and to take a better position in their society, i think of myself wasting so much time. If i waste time continously, the possiblity of being such a loser might be getting higher. Let's look at reality, and find my origin problem, then i would be a better man who is more valuable and can influence of others related with me or whoever.

    What i need is just effort to get through the problems faced with and strong mind to do everything if i have to do.
    posted by bOBaNa
    2009/12/26 23:43 분류없음
    사형제도에 대한 의견을 에세이로 정리해봄...빡셈..흑.
     


      Blowing a police siren, armed police enter swiftly the silent apartment that someone fell asleep. Soon, an arrested man is dragged out by police. After a few months, the man was sentenced to death on charges of murder and raping his friend. When the execution is only a few days off, the man call a newswriter to ask a favor. That is to establish his innocence. Next, the newswriter find the evidence, which is the video tape that shows a his innocence. The contents of the tape is that everything was a self-made show by his dead friend. However, the man is finally executed.

     

      This is the story of the movie "David gale", which insists on the repeal of the death penalty. In fact, The executed man and his dead friend sacrifice themselve for proving one reason that the death penalty shouldn't be allowed. How do you fell about the situation? Although it was planned, an innocent man was killed by the government. As you can see above, the government did not intend, of course, but they kill the man. The government have the powers to control many problems in society, one of the powers is a law. In a society where human beings do criminal cases, it needs to protect and defend the crimes, but the death penalty is too cruel punishment.

     

      One reason to abolish the death penalty is that there is a possibility of misjudgment. The case of the introduction showed that misjudgment is possible. Moreover 35 percent of judges said that they have experienced misjudgment. Thus,  Misjudgment could result in the death penalty, there is no chance to save an innocent person. If the death penalty is abolished, despite the misjudgment, the danger of misjudgment would be decresed. Being killed an innocent person will never happen. Instead of the death penalty, the life sentence without parole would be a good alternative. Even when some innocent person is given a decision of guilty by the misjudgment, He can be saved through applying for a retrial, and he can demand compensation for the damage.

     

      The second reason is that nobody has a right to kill others including the government. The constitution specifies that human life cannot be used as a tool or be killed. Every person has a right not to be killed. Even the man to be punished is a serial killer, the government havn't a right to kill him. The death penalty as a punishment is a savage act. Many contries in the world have abolished the death penalty. For example, the EU, which is the European Union, even require abolition of the death penalty as a qualification for joining. Korea has not executed the death penalty for 12 years, since 1997. According to Amnesty International, a country that has not executed the death penalty for 10 years is considered as the country without capital punishmnet , so Korea is an actual death penalty abolition country.

     

      Let's think of the purpose of punishment for crime. In a society, people make laws to manage the society. If someone breaks the rules, the government punishs the man who caused damage to the society. The purpose of punishment is to preserve the order of society and to forces bad guys to reflect themselves. It is not that the society eliminates the existence of the bad guys. A large number of criminals are raised in adversity. Most of them commit a crime for that reason. So, the government should give a good environment to people rather than punish someone who committed crime. If the government only trie to remove the output of bad environment, the vicious circle of crime keeps repeating. The governement should remove the fundamental cause of crimes.

     

      The people who approve of the death penalty might insist that a government should warn bad guys not to do crime, such as murder, by the death penalty. They believe that the death penalty will cause a decrese of the crime rate because of fear of the death penalty. It seems that some statstical data, which is the crime rate decresed after execution of death penalty, show why the death penalty is needed. However, the fact that crime rate decresed after the execution is not enough to prove that the death penalty cause a decrese of the crime rate. Because crime rate also decreased in the country that abolished the death penalty. Furthermore, most people can't know that they will commit a crime, and then will be sentenced the death penalty ahead of time. A large portion of crimes happened in a moment. When a man commmits a crime against others, he cannot aware of his mind. All men have a fear of death, but a momentary impulse is more strong than the fear at that time because the impulse makes him cannot think of it. So, the government should give him one chance to reflect himself.

     

      The death penalty as a punishment for serius criminals is not right. It has many shortcomings and it isn't be proved its social effect. There is also a good alternative better than it. The death penalty put bad guys who commit serius crimes into another place to separate from innocent people. However, a prison work the function very well instead of the death penalty. Thus, A life sentence without parole will be a good alternative. Finally, a government has to try to prevent crimes by well-organized laws. The best way to prevent crimes is not punishmnet, but making society better than the past. And, the government should keep in mind that they has no right to kill others. Nobody wants to be killed.

    posted by bOBaNa
    2009/10/06 20:41 일상사
    2008년 8월과 2009년 8월에 미국 라스베가스에서 열리는 DEFCON에 다녀왔었습니다.

    학교에서 과제를 할 일이 있어서 관련된 에세이를 써봤습니다. 빡시군요..ㅎㅎ

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


    Whenever I thought of the place Las Vegas, it was a dreamy place where i could not go. But, then there was just one opportunity that I can go to Las Vegas. That was "Defcon", which is the most famous hacking conference, hosted every year in Las Vegas. Defcon operates many events; one of the events is the CTF(Capture The Flags), in which that each qualified team competes to get a point by stealing the flag from other team. It is like one team attacks a computer server of another team; then the team that has a targeted server should defend it. When I began the qualification of Defcon CTF, I did not expect that we could pass it. However, We did it!! It was amazing experience to us. Our team had got a qualification, which only eight teams in the world are given. So, I went to Las Vegas to attend the CTF event.

    When I arrived at the hotel where the conference was being hosted, I felt surprised and execited. I can saw many people that seemed to be a hacker or a geek. and, In the whole floor opening event in the hotel there was a festive mood. I couldn't control myself, my mind was elsewhere. "Oh, my god. How am i standing here?" I cannot even know where i stand. Before the CTF started, I walked around and looked at things like a presentation about technique of coumputer or articles on exhibition and I talked with some guys who i had no ever seen about techniques of computer security. Talking with them, I felt that they really were enjoying what they did. In korea, Most people in a conference are strict and try to learn something. It is not that the attitude of learning is bad. I mean to say, the people who I saw in Las Vegas seemed to be free, not strict. They were ready to do what they wanted to. The enthusiasm that came from them made me feel such a fever that i also joined in.

    Time passed, and it was time to participate in the CTF event, So I went to the room where the CTF was opening with the attitude that I would do the best i could and i would going to win this event. While I was going to go to the room, Some men who recognized us as a team of CTF cheered for us. I was very proud of this. I was very proud of being part of a team that got the qualification. Before long, I sat at assigned table to prepare for the competition and composed my thoughts. The staff of CTF declared the opening of CTF. As soon as the CTF began, I tried to find a vulnerability of the server to attrack. After a while, I stopped and looked around because it was hard to find the security holes. I was surprised. It was surprising that the other team were laughing and talking than we were trying to solve problems. Although they were laughing and seem to be playing, they had more points than us. As opposed to us, they were enjoing the competition, not trying to defeat someone. seeing that situation, I realized what the really important thing was. Finally, the CTF ended with a aftertaste.

    When I was coming back to korea, I thought about these things. The most important thing is doing what i want to at the present with enthusiasm, and passion. That is the first thing. And Second thing is about enjoying myself. In every matter, it would better to try to enjoy myself. and lastly, this experience of attending Defcon CTF as a member is my pride and joy. I will never forget it. and It gave me a confidence in my ability.
    That's what i learned in Las Vegas.


    posted by bOBaNa
    2009/09/25 13:54 Reference

    bfd.h 라이브러리는 Binary File Descriptor의 약자로 바이너리 object를 다루기 위한 라이브러리이다.

    우분투에서 이를 사용하려 할 때 간혹 bfd.h가 없을 경우가 존재하는 데 이럴 땐 다음과 같이

    관련 파일들을 설치해주어야 한다.

    apt-get install binutils-dev

    컴파일 시에는 다음과 같이 해준다.
    gcc -o <바이너리파일> <소스파일> -lbfd


    posted by bOBaNa
    2009/04/03 17:00 Programming/Python

    힌트 !
    <!-- urllib may help. DON'T TRY ALL NOTHINGS, since it will never 
    end. 400 times is more than enough. -->

    http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345를 브라우져로 열어보면
     
    다음 페이지에 대한 정보가 나온다. 힌트를 보면 400번 이면 충분하다고 했다는것은

    저 인자값으로 계속 따라가다 보면 뭔가가 나온다는 뜻일 것이다.

    저 정보를 토대로 스크립트를 짜보면,

    import urllib
    import re

    url_str = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=%d'
    tmp = ''

    for i in range(450):
        if i==0:
            tmp = url_str%i
            no = i

        tmp = url_str%no   
        s = urllib.urlopen(tmp)
        str = s.read()
        print str
        try:
            no = int(''.join(re.findall(r'[0-9]', str)))
        except:
            print str
            no = no/2

        print '='*40

    html을 파싱해서 숫자만 추출해내서 다음 페이지의 인자값에 넣기 위하여 숫자형태로 변환해준다.

    계속해서 페이지에 연결하다보면, 해당 숫자를 2로 나누라고 하는데 이는 예외처리를 해줘서 구현했다.

    계속 돌리다보면 결국 다음 레벨의 페이지가 나온다.


    더보기




    posted by bOBaNa
    2009/03/18 21:52 Programming/Python

    :: Rare Character 뽑아내기 !

    힌트문구를 보면, 래어한 문자들을 찾으라고하는데, 딱 보면 빈도수 파악문제란 걸 알 수 있다.

    그래서 작성한 코드!!

    @ 문자의 빈도수 체크 함수
    def count_often_num(str):
        dicts = {}

        for i in range(len(str)):
            if str[i] not in dicts.keys():
                dicts[str[i]] = 1
            else:
                dicts[str[i]] += 1

        return dicts
    -> 이 함수로 각 문자의 빈도수를 사전형태로 돌려준다. (문자와 매칭시켜서..)

    @ 빈도수가 적은(20번미만의) 문자를 출력 ㅎㅎ
    def extract_str(dicts):
        str = ''
        for datas in dicts.items():
            if datas[1] < 20:
                str = str + datas[0]
           
        return str

    -> 위 두개의 함수를 이용하면 처음 빈도수와 문자를 저장할 때 순서가 엉켜서 제대로된 문자가 나오지않는다.
        (빈도수는 확실히 나오는데, 올바른 순서가 아니라 무슨 단어인지 추측하기 어렵다...
         근데 난 알아차렸다는거;;;;;)

       그래서 코드를 다시 작성했음 ! 정답이 출력되는 코드!

    @ 코드!
    def extract_the_answer(str):

        # Get a dict counted its the number of
        dicts = {}

        tmp = str[:]

        for i in range(len(str)):

            if str[i] not in dicts.keys():
                dicts[str[i]] = 1
            else:
                dicts[str[i]] += 1

        for item in dicts.items():
            if item[1] > 10:
                tmp = tmp.replace(item[0], '')
         return str
    -> 위의 코드들과 별로 다를게 없다ㅠㅠ
    -> 여기서 삽질을 한게 있는데 바로
       tmp = tmp.replace(item[0], '')의 사용이었다.
       replace()는 수정된 스트링 값을 돌려주는데, 그 수정된 값을 원래의 변수에 저장하지 않는다는 걸 모르고
       계속 돌리며 실패의 연속이었다...ㅎㅎㅎ
       replace()의 반환값을 돌려받아서 계속 돌려주면... 성공..ㅋㅋ

    아래는 이 문제를 푼 다른 방식들.. (아트다..) 이해하여 써먹으면 도움이 많이 될듯..ㅎㅎ
    난 아직도 C 코딩스타일에서 벗어나지 못하고있음..ㅎㅎㅎㅎ

    더보기


    posted by bOBaNa
    2009/03/15 02:05 English Study

    그 동안 너무 벌여놓은게 많아서 이것저것 하다 제대로 한 것 없이 지내다..

    매일 하겠다던 이것도 못한거 같다..ㅠㅠ

    그래도 차근차근 할 생각이다. (영어는 정말 쉽다가도 어렵고 어렵다가 또 쉬워서 힘들다..ㅠㅠ)
    =============================================================================================

    이번 글은 Deng Xiaoping(등소평)이라는 중국의 예전 지도자에 대한 commentary(논평)이다.

    글의 난이도는 꽤 있는 거 같다. (한번 읽었을때 전체적인 이해도가 40%정도에 불과했음.)

    이번에는 약간 다르게 분석해보자.

    # 1
    was it Margaret Thatcher in her pomp, allying clarity thought to an utter conviction in the rightness of her judgment?

    전부다 분석은 하지 않을거고. 기본적인 문장의 형태는 allying... 이하의 구문이 앞의 pomp를 수식하는 형태이며
    분사구문이다.

    여기서 몰랐던 점을 보면, 우선 단어들이 되겠고..ㅎㅎ(pomp, clarity, utter, conviction)

    알고 넘어가야할 것은 thought가 think의 과거형으로 알고있었는데, 그냥 사고, 생각이라는 의미로 쓰인다는 것!!

    #2. 어려운..ㅠㅠ
    I'd give anything to have sat down with a tiny--barely five feet tall--bridge-playing chain-smoker, who used the spittoon liberally and had a weakness for croissants.
    이거 아는사람 설명 좀 해주시길..ㅠㅠ

    #3
    He had been a Party member for nearly 60 tears, and had been purged more often than a top model's digestive tract, only to claw his way back to the leadership.

    병렬 구조로 연결된 이 문장은 비유법이 사용되어 단번에 이해하기가 힘들었다. top model의 소화기관보다 더 많이 쫒겨났다는 문장인데, 여기서 top model이 뭘 의미하는지 모르겠다. ㅠㅠ

    only to claw his way back to the leadership은 상당히 흥미로운 문장인데,

    only to는 only가 문두에 쓰여서 ~할 뿐이었다 라는 의미로 해석하는게 좋겠다.

    결국, 위 문장의 의미는 수 없이 쫒겨났어도 계속해서 리더쉽을 되찾으려고 claw(햝키는)행동을 계속 했다는 의미이므로

    복귀하기 위해 많은 노력을 했다는 의미이다..ㅎㅎ

    # 응용 문장 #
    I have been a member of hacker team for nearly two years, and have been treated unfriendly, only to claw my way back to the something.

    #4 : as for 에 대한 사용 [ ((보통 문두에 써서)) …에 관한 한은]
    I proposed China's economic policy of opening to the outside world, but as for the details or specifics of how to implement it, I know very little indeed.
    여기서는 as for에 관한 사용만 보면 어떻게 그것을 실현할 것인지 관한한 !! 요런식으로 해석하면 되겠다..ㅋㅋ


    여기까지..ㅋ



    posted by bOBaNa
    2009/03/11 01:12 Programming/Python

    요새 다시 파이썬에 흥미가 생겨서 조금 보고있는데

    역시나 재미있는 언어다..ㅎㅎ

    http://www.pythonchallenge.com 를 통해

    파이썬 코딩연습이나 해보자~ㅋㅋㅋ

    + 레벨0 +

    http://www.pythonchallenge.com/pc/def/0.html

    레벨0의 Url은 위와같은데...

    모니터에 이상한 그림이 있고 힌트는 url을 변경해보라고 되어있다..

    0.html인데...1.html로 바꾸면...

    2**38 is much much larger.

    2**38은 엄청크다고 나온다..뭥미..ㅎㅎ

    처음엔 2**38이 5자리 숫자를 의미하는 줄 알고 다음의 코드를 작성했었다..

    import urllib
    import re

    url_s = 'http://www.pythonchallenge.com/pc/def/2%d38.html'

    for i in range(400):

        f = urllib.urlopen(url_s%i)
        text = f.read()
        m = re.findall('.does not exist.', text)
        if m == []:
            print text
        else:
            print url_s%i

    위는 2138부터 쭈욱~~~~~ 검색하는 허접한 코드다;

    페이지가 없는경우에는 does not exist라는 문장이 출력되어서 그런것들은 제외 해주었다..

    하지만, 위를 돌려도 아무것도 안나온다.. 혹시나해서

    파이썬 인터프리터에 아래를 해보니

    >>> 2**38
    274877906944L

    위 숫자.html로 들어가니...-0-

    이게 정답이다..ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

    앜ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ




    posted by bOBaNa
    2009/01/22 16:33 일상사

    최근들어 사진갤러리를 사용할 일이 있어서 뭔가 하나를 찾고 있었는데

    재밌는 서비스 하나를 우연히 발견했다.

    사진들을 마치 미술관에서 처럼 하나씩 감상할 수 있도록 진열되어 있는 것처럼 느껴지는

    ShowSpace라는 서비스이다. 첫 느낌은 심플한 인터페이스의 지루하지 않은 구성이었다.

    일반적으로 사진들의 나열로 이루어진 갤러리에 반해, 하나의 틀안에 사진들을 진열해

    하나씩 부드러운 화면의 이동으로 디스플레이해준다.

    아래는 Showspace의 사용예이다.  동적으로 구성된 썸네일 화면이 화면을 지루하지

    않게 해준다. ㅎㅎ





    Showspace 하나의 추가로 포스트가 뭔가 동적으로 변한 느낌이다. ^^

    뭔가 프레임 위는 아무것도 없지만, 프레임아래가 "메뉴"(?)로 인해 뭔가 부자연스러운

    느낌이랄까?ㅎㅎ 프레임 스킨을 설정할 수 있게 해줬으면 좋다는 생각이 든다.

    사진파일은 플리커 서비스와 동일하게 해당 서비스를 해주는 서버에 저장되어 링크만으로

    불러 사용할 수 있어 계정용량이 충분치 않은 여러 서비스에 적용가능할 듯하다.

    아래는 사진을 ShowSpace 서버에 등록하는 과정인데, 사진 하나씩 올리도록 되어있다.

    파일들을 드래그해서 한꺼번에 올리는 기능은 아직 베타버전이라 없는 듯 하다.






    다른 서비스에 Showspace에 적용하기 위해 "퍼가기"란 버튼으로 직관적으로 이용가능하다.



    시작한지 얼마 안된 베타서비스라서 그런지 아쉬운점이 몇가지 있는 것 같다.

    사진을 볼 때 확대, 축소 버튼이 있긴 하지만, 요즘같이 귀차니즘이 퍼져있는 시대에는

    그것또한 귀찮을 것 같다. 더블클릭과 같이 단순클릭만으로 확대가 되었으면 더욱 편했을 거란

    생각이 든다.  그리고 재밌는 점이 하나 더 있는데 아이팟의 터치기능처럼 빈공간에 마우스를 클릭하고

    끌면 사진들도 같이 이동한다는 점이다. 재밌는 기능인데, 커서가 손바닥 모양으로 변한다거나 하면

    센스가 없는사람이라도 쉽게 알아차릴 수 있을 것 같다.

    마지막으로, 사진첩의 제목이랄까? 폰트가 커서 그런지 포스팅들의 폰트와 조화가 되질 않아

    Showspace 프레임이 두드러져 보인다. 폰트나 글꼴을 수정할 수 있도록 해주면 좋지 않을까?ㅎㅎ

    이번 베타버전을 통해 약간의 기능들이 개선되면 굉장히 좋은 사진첩 서비스로 많은 사람들이

    사용하게 될 거 같다. 오랜만에 재밌는 서비스를 찾게되어 기분이 좋다..ㅎㅎㅎ





    posted by bOBaNa
    prev 1 2 3 4 next