GlassFish에 MySQL 연동하기
* OS은 Ubuntu 9.04 입니다.

1. MySQL 설치 (apt-get install mysql-server)

2. JDBC driver를 GLASSFISH_HOME/lib 디렉토리에 카피 한다.
(http://dev.mysql.com/downloads/connector/j/5.1.html 에서 설치된 MySQL의 버전에 맞는 드라이버를 다운받아서
 jar 파일만을 카피 한다. jar 파일명은 mysql-connector-java-5.1.7-bin.jar 과 같다. 가운데 버전은 다를수 있음)

3. MySQLAdmin 등의 툴을 이용하여, root 이외의 사용자를 설정해준다.
(가능하면 user는 any host로 설정, test할 db도 생성한다.)

4. GlassFish admin 화면에 접속한다.

5. Resouces -> JDBC -> Connection Pools 메뉴에 접속

6. New 버튼을 누른다.

7. Name은 .이나 공란이 없게 알파벳으로 입력해 줍니다.

8. Resource Type은 javax.sql.ConnectionPoolDataSource를 선택한다.

9. Database Vendor는 MySQL을 선택하고 Next 버튼을 누른다.

10. Additional Properties에서 User, Password, DatabaseName 등을 설정해준다.
(3번과정에서 했던 내용을 넣어준다.)

11. Finish 버튼을 누른후, ping 테스트를 해본다.
by yonchan | 2009/05/14 00:49 | Programming | 트랙백 | 덧글(0)
Ubuntu에 GlassFishV2 설치
* 설치한 Ubuntu는 9.04이며 설치되는 GlassFish의 버전은 V2 UR1 입니다.

* JDK는 설치되어 있고, JAVA_HOME도 설정되어 있다고 가정

사실 설치는 sudo apt-get install glassfishv2 이 문장 하나면 끝나는데..

매뉴얼과는 다르게 설치시 패스워드를 물어보지도 않고 기본 패스워드도 몰라서 좀 애먹었습니다.

유저명 및 패스워드는 admin/adminadmin 입니다.

실행은 루트 권한으로 asadmin을 실행하면 되고, 어드민 포트는 4848로 유저/패스워드는 위의 내용대로 입력하면 됩니다.

설정 및 deploy는 http://SERVER_ADDRESS:4848/로 접속하시면 됩니다.
by yonchan | 2009/05/13 23:07 | Programming | 트랙백 | 덧글(0)
Windows 용 시계 프로그램
그럭저럭 쓸만한 프로그램이라 생각됩니다. 쉐어웨어이긴 하지만 기본적인 기능은 제공합니다..

다운로드: http://www.4neurons.com/Clock

by yonchan | 2009/05/13 00:04 | Information | 트랙백 | 덧글(0)
초식남자(草食男子)
오늘 저녁에 티비 보다보니 재밌는 단어가 나오더군요.. 이름하여 초식남자..

다이어트를 위해 풀만을 먹는 중년의 남성을 말하는 의미가 아니고..

연애에 있어 적극적이지 못한 남성을 뜻한다고 하네요..

티비의 내용은 최근 이런 남성이 일본 내에서 증가하고 있다는 그런 내용이었습니다..

연애에 적극적이지 못하고.. 집에 있기 좋아하고.. 화장하거나 꾸미는걸 좋아하는..

그런 사람들이 초식남자라고 티비에 소개되어 나오더군요..

이에 반대되는 말은 육식여자(肉食女子)라고 하더군요 ;; 남자를 애완동물처럼 부리고 싶어 하더라는 -_- 안심도 된다고 하고..

뭐 그런 초식남자들과 육식여자들을 미팅시키는 내용도 나오긴 했는데.. 그 부분은 식사 하느라 미처 못봤네요...

암튼 그냥 잠깐 줏어들은 내용 끄적여 봤습니다 ;;
by yonchan | 2009/05/12 22:03 | Freetalk | 트랙백 | 덧글(0)
How to Become a Creative Genius
May 8th, 2007 in Featured, Lifehack, Productivity
How to Become a Creative Genius

Einstein

When we measure the creativity of young children, virtually all of them will record as being ‘highly creative’. However, only a small percentage of adults register as being ‘highly creative’.

What happened?

Schools have crushed creativity. We were told to color within the lines. We were taught to follow instructions. The goal in
school is to get the “right” answer. Unfortunately, if you’re afraid to be wrong, you’ll never be creative or original.

The job of education is to produce employees who follow instructions. And to this endeavor, they are doing a
very good job. However, in terms of creativity, they are falling terribly short.

This is one of the most unfortunate realities in our current education system.

To undo this, we must continuallyexercise our creative juices. That’s why I have put together 6 tips for expanding your creativity.

1. Keep a Notebook and Pencil on hand at all times.

Ideas are like in-laws, you never know when they’re coming over to visit. By keeping a notebook around, you will always
be able to capture your ideas at any time of the day.

Leonardo da Vinci was well known for keeping a journal of his ideas. His notebooks are now prized possessions that hold
the many creative and genius thoughts of this master thinker, painter, and inventor.

His notebooks were filled with plans for flying machines, a parachute, a helicopter, the extendable ladder, the bicycle,
folding furniture, and a number of automated tools for increasing productivity.

Yes, I am happy to say that Leonardo da Vinci was a productivity junkie.

A blank page is an open invitation for the creative and curious mind. The simple act of writing gets you into a
creative flow that can last for hours.

The free-flowing, exploratory practice of keeping a journal encourages freedom of thought and expanded perspectives.

2. The second key to creativity is to ask questions.

Questions are the root of all knowledge and creativity. By continually asking questions about the world around us, we
fuel our creative fire.

Great minds are those that have asked the greatest questions.

Leonardo da Vinci asked such questions as:

“Why does the thunder last a longer time than that which causes it?” and “Why is the sky blue?”

Socrates asked such questions as:

    * “What is wisdom?”
    * “What is piety?”
    * “What is beauty?”

As a young boy, Albert Einstein asked himself, “What would it be like to run beside a light beam at the speed of
light?”

A number of inventions have been created by asking one simple question…

“What if…..?”

By asking questions we increase our level of consciousness and our perspective of the world.

3. To become a creative genius, you must also be a voracious reader.

Reading enhances your mental ability and lets you experience the world from a brand new perspective.

When we read a book, we let go of our own perspectives and experience the world from the characters that have been crafted by the author.

I have found in my own life that the more I read, the more I want to know. Reading becomes an insatiable desire and an unquenchable thirst.

4. Seek out new experiences.

Our minds are much like a garden. Without proper care, the weeds will take over. Nothing sparks the mind like learning something new.

If you want to expand your creativity, then learn a new skill. It can be anything you choose. Learn a new language.
Learn to water ski. Learn to play an instrument. Pick up photography or even try a new sport.

All of these activities get your mind working outside of its regular patterns.

5. Become a whole-brain thinker.

There are generally two-types of people in this world: left-brained and right-brained.

In most cases, people are either analytical thinkers who enjoy math, science, and logic or they are highly
imaginative and creative individuals who focus on the big-picture.

Unfortunately, our school systems generally cater to those who are left-brained analytical thinkers. This has created
a world of employees who are very good at following directions but are not so good at developing new ideas.

To break the mold, we must become whole-brain, holistic thinkers.

You can do this by using a powerful method known as mind mapping.

Mind mapping has been used by some of history’s greatest brains, including Michelangelo, Mark Twain, and Leonardo da
Vinci.

Mind mapping is a whole-brain activity that will awaken your creative side as well as your analytical side.

Mind mapping will also help you to generate new ideas when needed. It doesn’t matter whether you’re using it for
personal goal setting, problem solving, or simply to become a more creative, whole-brain thinker.

Our mind works in pictures, associating one idea to the next. Mind mapping allows you to continue this natural
thought process on paper.

Mind mapping is one of the most powerful tools for awakening your creativity.

For a detailed explanation of mind mapping, go to: http://en.wikipedia.org/wiki/Mind_map

6. The final tool for developing your creativity is imaginary dialogue.

Yes, I know, it may sound silly at first, but this technique can be an extremely powerful tool for developing your
creativity.

This technique was first introduced in the best-selling book by Napoleon Hill, “Think and Grow Rich”.

Before achieving his success, Napoleon Hill was first meeting with an imaginary mastermind each night. He would
close his eyes and visualize a table occupied by such great men as Abraham Lincoln, George Washington, Napoleon
Bonaparte, Ralph Waldo Emerson, and Elbert Hubbard.

Napoleon Hill would then speak to the members of his imaginary mastermind in the following manner:

    “Mr. Lincoln: I desire to build in my own character those qualities of patience and fairness toward all mankind and
    the keen sense of humor which were your outstanding characteristics.”

    “Mr. Washington: I desire to build in my own character those qualities of patriotism and self-sacrifice and leadership which were your outstanding characteristics.”

    “Mr. Hubbard: I desire to develop the ability to equal and even to excel the ability that you possessed with which to express yourself in clear, concise and forceful language.”

After meeting with his mastermind group for several months, he found that he had developed each of their desired
characteristics into his own personality.

Napoleon also went to his imaginary mastermind to help solve any problem he was facing.

The imaginary mastermind is a master tool for finding new perspectives and looking at your problem from a different angle.

For example, let’s say that you own a business. Why not develop an imaginary mastermind of the greatest business
minds in history? You can call to your table such names as Henry Ford, Andrew Carnegie, Walt Disney, Bill Gates, Ray
Kroc, and Sam Walton.

Call on them daily for advice and you will begin to see your problems in a new light. As once said by Albert Einstein,

“You can’t solve a problem with the same mind that created it.”

You can have even more creative fun by imagining a discussion between two different well-known people.
Some examples to get you started include:

    * Bill Gates Vs. Steve Jobs
    * Leonardo da Vinci vs. Albert Einstein
    * William Shakespeare vs. Maya Angelou

Let your mind wander and you will be surprised at all of the connections you begin to make.

출처: http://www.lifehack.org/articles/lifehack/how-to-become-a-creative-genius.html
by yonchan | 2009/05/12 19:42 | Information | 트랙백 | 덧글(0)
< 이전페이지 다음페이지 >