Tuesday, November 22, 2011

yii gii

1. First, modify main.php in protected/config
    Uncomment the gii part

1-1. urlManager
    Uncomment the urlManager part in main.php
    That will enable the url to be user-friendly as shown below

2. Browse to gii
    http://localhost/yii/index.php/gii


3. Select Model Generator
    And enter a table name (like Employee), and preview and generate it
    Do the work for as many DB Tables as there should be
    New files will be created in protected/models
    (like protected/models/Employee.php, protected/models/Department.php)


4. CRUD Generator
   (CRUD stands for Create, Retrieve, Update, Delete)

    Do the same for Employee and Department as in the Model Generator
    New controllers will be created in protected/controllers
    (like protected/controllers/EmployeeController.php, protected/controllers/DepartmentController.php)
    And new view directories will be created in protected/views
    (like protected/views/employee/, protected/views/department)



5. See how the webapp changed
    Log out of the gii, and select webap in the menu on the top
    Web-browse to http://localhost/yii/index.php/employee
    Nothing can be done without using password (default is admin/admin)









yii

Site: http://www.yiiframework.com/

Tutorial for starters: http://www.larryullman.com/series/learning-the-yii-framework/

1. Download and test

    Make a directory (like yii) under the web root directory (like j:\vhosts\yii)
    Copy the directories of framework and reqirements into it (like j:\vhosts\yii\framework, j:\vhosts\yii\requirements)

    For testing, Web-browse to the requirements directory like http://localhost/yii/requirements

2. Install

    Make a directory (like yii) outside the web root directory (like j:\yii)
    and Copy all under the framework directory into it (like j:\yii\base\, j:\yii\caching, j:\yii\yiic.bat ...)

3. First webapp

    Go into the yii directory and run the batch script

    c:\wamp\bin\php\php5.3.5\php yiic webapp ..\vhosts\yii


    Web-broswse to the newly created webapp like http://localhost/yii

4. Configuration of main.php


<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'defaultController' => 'login',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
// /*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
// */
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
// /*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
// */
/*
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
*/
// uncomment the following to use a MySQL database
// /*
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=tzang',
'emulatePrepare' => true,
'username' => 'abcdefghij',
'password' => 'abcdefghij',
'charset' => 'utf8',
),
// */
'errorHandler'=>array(
// use 'site/error' action to display errors
           'errorAction'=>'site/error',
       ),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
// /*
array(
'class'=>'CWebLogRoute',
),
// */
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'arbago@gmail.com',
),
);

CodeIgniter + Chrome

http://www.chromephp.com/

1. Download the Chrome Extension
    https://chrome.google.com/webstore/detail/noaneddfkdjfnfdakjjmocngnfkfehhd

    Visit the site and just click Add to Chrome button to get it installed

2. Download the Class
    https://github.com/ccampbell/chromephp

    Download the the class "ChromePhp.php" and copy it into applicaiton/libraries

3. Usage

include 'ChromePhp.php';
ChromePhp::log('hello world');
ChromePhp::log($_SERVER);

// using labels
foreach ($_SERVER as $key => $value)
{
ChromePhp::log($key, $value)
}

// warnings and errors
ChromePhp::warn('this is a warning');
ChromePhp::error('this is an error');


Monday, November 7, 2011

๋ฐฐ์—ฝ derms

์ถœ์ฒ˜ copied and modified from http://www.bodymania.co.kr/detail.php?number=2594&thread=22r04

ํ˜„์žฌ, ๋ฐฐ์—ฝ์„ ์ž˜๋ชป ์ธ์‹ํ•˜๊ณ  ๊ณ„์‹ ๋ถ„๋“ค์ด ๋„ˆ๋ฌด๋‚˜ ๋งŽ์Šต๋‹ˆ๋‹ค.
๋งˆ์น˜, ํŠน์ •๋ฐฐ์—ฝ์„ ํƒ€๊ณ ๋‚˜์„œ ๊ทธ์—๋งž๋Š” ์šด๋™๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค๊ณ  ์ฐฉ๊ฐ ํ•˜์‹œ๋Š” ๋ถ„๋“ค์ด ๊ฑฐ์˜ ๋Œ€๋ถ€๋ถ„ ์ด์ง€๋งŒ ์‚ฌ์‹ค์€ ๊ทธ๋ ‡์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
๋จผ์ € ๋ฐฐ์—ฝ์ด๋ž€๊ฒŒ ๋ฌด์—‡์ธ์ง€๋ฅผ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.
๋ฐฐ์—ฝ์ด๋ž€๊ฒƒ์€, ์ •์ž์™€ ๋‚œ์ž๊ฐ€ ๋งŒ๋‚˜์„œ ์ˆ˜์ •์„ ํ•˜์—ฌ ์ˆ˜์ •๋ž€์ด ๋˜๋ฉด, ๊ทธ๋•Œ๋ถ€ํ„ฐ ์—ฌ๋Ÿฌ๋‹จ๊ณ„๋ฅผ ๊ฑฐ์ณ์„œ ์„ธํฌ๋ถ„์—ด์„ ๊ฑฐ๋“ญํ•œ๊ฒฐ๊ณผ ๋‚˜ํƒ€๋‚˜๋Š” 3 ๊ฐœ์˜ ์„ธํฌ์ธต์„ ๋งํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์ด๋Ÿฐ 3 ๊ฐœ์˜ ์„ธํฌ์ธต์„ ๋‚ด๋ฐฐ์—ฝ, ์™ธ๋ฐฐ์—ฝ, ์ค‘๋ฐฐ์—ฝ ์ด๋ผ๊ณ  ํ•˜๊ณ , ๊ฐ๊ฐ์˜ ๋ฐฐ์—ฝ์—์„œ ์ผ์ •ํ•œ ๊ธฐ๊ด€์ด ๋งŒ๋“ค์–ด์ง€๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์‚ฌ๋žŒ๊ฐ™์€ ๋‹ค์„ธํฌ  ๋™๋ฌผ์€ ๋ฐœ์ƒ์ดˆ๊ธฐ์— 3 ๋ฐฐ์—ฝ์ด ํ˜•์„ฑ๋œ๋‹ค๊ณ  ๋ฐฐ์šฐ์…จ ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์ด๊ฒƒ์„ ๋ฐ”ํƒ•์œผ๋กœ ํ•˜์—ฌ,๋ฏธ๊ตญ์˜ ์…€๋“ ์ด๋ผ๋Š” ํ•™์ž๋Š” ๋ฐฐ์—ฝ ๊ธฐ์›์„ค์„ ์ฃผ์žฅํ–ˆ์Šต๋‹ˆ๋‹ค.
์‚ฌ๋žŒ์˜ ์ฒด์งˆ๊ตฌ์กฐ๋Š” ์ถœ์ƒ์ „์— ์–ด๋А์ •๋„ ๊ฒฐ์ •์ด ๋˜์–ด, ์ฒดํ˜•์€ 6 ์„ธ๋•Œ ๊ฒฐ์ •๋œ๋‹ค ๋ผ๊ณ  ํ•˜์˜€๊ณ , ๋‚ด๋ฐฐ์—ฝ์„ ๋‚ด์žฅ๊ธด์žฅํ˜• ์ด๋ผ๊ณ  ์นญํ•˜์—ฌ, ๋‚ด์žฅ์ด ๋ฐœ๋‹ฌํ•˜์—ฌ ๋ณต๋ถ€๊ฐ€ ํ‰๋ถ€ ๋ณด๋‹ค ํฌ๊ณ  ์‚ฌ์ง€๊ฐ€ ์งง๊ณ  ๋์ด ๋ฝ€์กฑํ•˜์—ฌ ์–ด๊นจ๋Š” ์ˆ˜ํ‰์ด ๋˜๋ฉฐ ์–ผ๊ตด์€ ๋„“๋‹ค ๋ผ๊ณ  ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ค‘๋ฐฐ์—ฝ์€, ์‹ ์ฒด๊ธด์žฅํ˜• ์ด๋ผ๊ณ ํ•˜์—ฌ, ๊ทผ์œก์˜ ๋ฐœ๋‹ฌ์„ ์˜๋ฏธํ–ˆ๊ตฌ์š”, ์™ธ๋ฐฐ์—ฝ์€, ๋‘๋‡Œ๊ธด์žฅํ˜• ์ด๋ผ๊ณ  ํ•˜์—ฌ, ์‹ ์ฒดํ‘œ๋ฉด์— ์žˆ๋Š” ๊ฐ๊ฐ๊ธฐ๊ด€, ์ฆ‰, ์‹ ๊ฒฝ๊ณ„ํ†ต์ด ๋ฐœ๋‹ฌํ•˜์—ฌ, ํ™€์ญ‰ํ•˜๊ณ  ํ—ˆ์•ฝํ•œ ์ฒด์งˆ๋กœ ๊ตฌ๋ถ„์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
์ฆ‰, ์™ธ๋ฐฐ์—ฝ ์ด๋ผ๋Š”, ๊ฐ€์žฅ ๋ฐ”๊นฅ์ชฝ์˜ ์„ธํฌ์ธต์—์„œ๋Š”, ํ”ผ๋ถ€๋‚˜, ๋‡Œ, ์œ ๋ฐฉ, ๋•€์ƒ˜์ด ๋งŒ๋“ค์–ด ์ง€๊ณ , ๋‚ด๋ฐฐ์—ฝ ์ด๋ผ๋Š” ๊ฐ€์žฅ ์•ˆ์ชฝ์˜ ์„ธํฌ์ธต์—์„œ๋Š”, ์†Œํ™”๊ธฐ๊ด€ ๋“ฑ์˜ ๋‚ด์žฅ๊ธฐ๊ด€์ด ๋งŒ๋“ค์–ด ์ง€๋ฉฐ, ์ค‘๊ฐ„์— ์œ„์น˜ํ•œ ์„ธํฌ์ธต์ธ ์ค‘๋ฐฐ์—ฝ ์—์„œ๋Š”, ์„ฌ์œ ์กฐ์ง, ์—ฐ๊ณจ, ๋ผˆ, ๊ทผ์œก, ์ง€๋ฐฉ ๋“ฑ์ด ๋ถ„ํ™”๋˜์–ด ๋งŒ๋“ค์–ด ์ง€๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์ด๋Ÿฌํ•œ ๊ฐ๋ถ€๋ถ„์˜ ๋ฐฐ์—ฝ์„ ๊ฐ•์กฐํ•œ๊ฒƒ์ด, ์ฒดํ˜•์˜ ๋ถ„๋ฅ˜๋ผ ํ• ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค ์—ฌ๊ธฐ์„œ ์ค‘์š”ํ•œ๊ฒƒ์€, ๊ฐ๊ฐ์˜ ๋ฐฐ์—ฝ์— ์žˆ์–ด์„œ ํŠน์ •ํ•œ ์šด๋™๋ฐฉ๋ฒ•์„ ๋งํ•œ๊ฒƒ์ด ์•„๋‹ˆ๋ผ๋Š” ์ ์ž…๋‹ˆ๋‹ค.
์ด๊ฒƒ์„ ์ด์šฉํ•˜์—ฌ ํ˜„๋Œ€์— ์™€์„œ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๋ฐฐ์—ฝ์— ๋งž๊ฒŒ ์šด๋™๋ฒ•์ด ์žˆ๋‹ค๊ณ  ํ•˜์ง€๋งŒ, ๊ทธ๊ฒƒ์€ ์ž˜๋ชป๋œ ๊ฑฐ๊ณ , ๋ชธ์˜ ๋ฐœ๋‹ฌ์ •๋„์— ๋”ฐ๋ผ์„œ ์ž์‹ ์—๊ฒŒ ๋งž๋Š” ํŠธ๋ ˆ์ด๋‹๋ฒ•์ด ์žˆ๋‹ค๋Š”๊ฒƒ์œผ๋กœ ํ•ด์„์„ ํ•ด์•ผํ• ๊ฑฐ ๊ฐ™ ๊ตฐ์š”.
์™ธ๋ฐฐ์—ฝ์˜ ์šด๋™๋ฒ•์„ ์†Œ๊ฐœํ•œ๊ฒƒ์„ ๋ณด๋ฉด, ๊ณ ์ค‘๋Ÿ‰ ์ €๋ฐ˜๋ณต์ด ๋Œ€๋ถ€๋ถ„์ธ๋ฐ, ์ด์ œ ๊ฐ“ ์šด๋™์„ ์‹œ์ž‘ํ•œ ์ดˆ์‹ฌ์ž๊ฐ€ ๊ณ ์ค‘๋Ÿ‰ ์ €๋ฐ˜๋ณต์„ ํ•˜๊ฒŒ๋˜๋ฉด ๋ถ€์ƒ์˜ ์œ„ํ—˜๋งŒ ์žˆ์„๋ฟ์ด์ง€, ์šด๋™์€ ์ œ๋Œ€๋กœ ๋˜์ง€๋ฅผ ์•Š๋Š”๊ฒƒ์ž…๋‹ˆ๋‹ค.
์›จ์ดํŠธ๋„ ๊ธฐ์ˆ ์ด ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
์ด๋Ÿฐ ๊ธฐ์ˆ ์˜ ๋ถ€๋‹จํžˆ ์—ฐ์Šตํ•œ ๊ฒฐ๊ณผ๋กœ ์ธํ•ด์„œ ๋ณด๋””๋นŒ๋”๊ฐ€ ํƒ„์ƒ์„ ํ•˜๋Š”๊ฒƒ์ด๊ณ , ๋ชธ์งฑ์ด ๋งŒ๋“ค์–ด ์ง‘๋‹ˆ๋‹ค.
์ž์‹ ์˜ ์ฒดํ˜•์ด ์–ด๋–ป๋‹ค๋Š”๊ฒƒ์€, ์šด๋™์ „์—๋Š” ์ ˆ๋Œ€๋กœ ์•Œ์ง€๋ฅผ ๋ชปํ•ฉ๋‹ˆ๋‹ค ์šด๋™๋„ ์•ˆํ•ด๋ณด๊ณ  ๋‚ด๊ฐ€ ๋ฌด์Šจ ๋ฐฐ์—ฝ์ธ์ง€๋ฅผ ์–ด๋–ป๊ฒŒ ์•Œ์ˆ˜ ์žˆ์„๊นŒ์š”? ๋ฐฐ์—ฝ ์ด๋ž€๊ฒƒ์€ ํƒ€๊ณ ๋‚˜๊ธด ํ•˜์ง€๋งŒ ์‚ด์•„๊ฐ€๋Š” ๋™์•ˆ์— ์˜จ๊ฐ– ์Šต๊ด€์— ์˜ํ•ด์„œ ๋ฎํ˜€๋ฒ„๋ฆฌ๊ณ  ๋ฒ ์ผ์— ๊ฐ€์ ธ์ง€๊ฒŒ ๋˜๋Š” ๊ฒ๋‹ˆ๋‹ค.
์–ด๋–ค ์˜์—…๋งจ์ด ์ž๋™์ฐจ ํ•œ๋Œ€๋ฅผ ํŒ”๊ธฐ ์œ„ํ•ด์„œ ๋ณธ๋ž˜๋Š” ์„ฑ์งˆ ๋”๋Ÿฌ์› ์ง€๋งŒ ํŒ”๊ธฐ ์œ„ํ•ด์„œ ๋‚˜๊ธ‹๋‚˜๊ธ‹ ๋ฐ”๋€Œ๊ฒŒ๋˜๊ณ  ์ด๊ฒŒ ์ƒํ™œํ™” ๋˜๋‹ˆ ๋‚ด๊ฐ€ ์–ธ์ œ ์Šน์งˆ ๋”๋Ÿฌ๋ฒ˜๋ƒ๋Š”๊ฒƒ์„ ๊นŒ๋งฃ๊ฒŒ ์žŠ๊ฒŒ ๋˜๋Š” ๊ฒ๋‹ˆ๋‹ค.
์ด ์ธ๊ฐ„์ด ์ •๋ง ์„ฑ์งˆ ๋”๋Ÿฌ์› ๋‹ค๋Š”๊ฒƒ์„ ์•Œ๊ธฐ ์œ„ํ•ด์„  ์˜†์—์„œ ๊ณ„์† ์•ฝ์„ ์˜ฌ๋ ค๋ด์•ผ๋งŒ ์•„๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์ด๋ฏธ ์˜ค๋žœ์„ธ์›” ๋‚˜๊ธ‹๋‚˜๊ธ‹ํ•จ์ด ๋ชธ์— ๋ฐฐ์˜€๊ธฐ ๋•Œ๋ฌธ์— ๋Œ€์ถฉ ์•ฝ์„ ์˜ฌ๋ ค์„  ๊ทธ ์ž˜๋‚œ ์„ฑ์งˆ ์•ˆ๋‚˜์˜ต๋‹ˆ ๋‹ค.
์ง€์†์ ์œผ๋กœ ๊ณ„์† ๊พธ์ค€ํžˆ ์—ด๋ฐ›์„๋•Œ ๊นŒ์ง€ ์•ฝ์„ ์˜ฌ๋ ค์•ผ ์ง„์ • ๋””๋ฆฝ๋‹ค ๋”๋Ÿฌ๋ฒˆ ์Šน์งˆ์„ ๋ณผ์ˆ˜๊ฐ€ ์žˆ๋Š” ๊ฑฐ์˜ˆ์š”..
์ด๋Ÿฐ ์›๋ฆฌ๊ฐ€ ๋ฐ”๋กœ ์šด๋™์— ์žˆ์–ด์„œ ์ฒดํ˜• ์ด๋ผ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์šด๋™ ์ด๋ผ๋Š” ์•ฝ์˜ฌ๋ฆฌ๊ธฐ๊ฐ€ ์—†์œผ๋ฉด ๋‚ด ์ฒดํ˜•์„ ๋ฏธ๋ฆฌ ์•Œ์ˆ˜๋Š” ์—†๋Š” ๊ฑฐ์˜ˆ์š”..
์ด๊ฒŒ ํ•œ๋‘๋‹ฌ์— ๋˜๋Š”๊ฒŒ ์•„๋‹ˆ๋ผ ์ ์–ด๋„ 1๋…„ ์ด์ƒ์€ ํ•ด๋ด์•ผ ์•Œ๊ฒŒ๋˜๋Š” ๊ฒƒ์ด๊ณ ..
์šด๋™์„ 1 ~ 2 ๋…„ ํ•ด๋ณด์•˜์„๋•Œ, ์ž์‹ ์˜ ๊ทผ์œก์ด ๋ฐœ๋‹ฌ๋˜๋Š” ์ƒํ™ฉ์— ๋”ฐ๋ผ์„œ ์•Œ๊ฒŒ๋ฉ๋‹ˆ๋‹ค.
๊ทธ๋•Œ, ๊ณ ์ค‘๋Ÿ‰ ์ €๋ฐ˜๋ณต, ์ €์ค‘๋Ÿ‰ ๊ณ ๋ฐ˜๋ณต ๋“ฑ์„ ์ฐธ๊ณ ๋งŒ ํ•˜์‹œ๋ฉด ๋˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
๋ฏธ๋ฆฌ๋ถ€ํ„ฐ ์ฒดํ˜•์„ ์•Œ๊ณ  ์ฒดํ˜•์— ๋งž๊ฒŒ ์šด๋™ํ•˜๋Š” ๋ชจ์ˆœ์ ์ธ ํ–‰๋™์„ ํ•ด์„œ๋Š” ์•ˆ๋˜๊ฒ ์Šต๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ, ์œ„์˜ ์„ค๋ช…๋“ค์„ ๊ณ ๋ คํ• ๋•Œ, "๋‚˜๋Š” ์™ธ๋ฐฐ์—ฝ ์ด๋‹ค" ๋ผ๋Š” ๋ง์€, "๋‚˜๋Š” ์„ธํฌ์ธต ์ค‘์— ๊ฐ€์žฅ ๋ฐ”๊นฅ์ชฝ์— ์œ„์น˜ํ•œ ์„ธํฌ์ธต ์ด๋‹ค" ๋ผ๋Š” ๋ง๊ณผ ๋‹ค๋ฅผ๊ฒŒ ์—†๋Š”๊ฒƒ์ด๊ณ , ์šด๋™๋ฐฉ๋ฒ•๊ณผ๋Š” ์ „ํ˜€ ๋ฌด๊ด€ํ•จ์„ ์•„์…”์•ผ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
๋‹จ์ง€, ๋ชธ์˜ ๋ฐœ๋‹ฌ์ •๋„์— ๋”ฐ๋ผ์„œ, ํŠธ๋ ˆ์ด๋‹ ๋ฐฉ๋ฒ•๋งŒ ๋ณ€ํ• ๋ฟ์ž…๋‹ˆ๋‹ค.
๋ฌด๊ฒ๊ฒŒ ๋ช‡๊ฐœ๋งŒ ํ•ด๋„ ๋œ๋‹ค๋Š” ๊ฒฝํ—˜์„, ์˜ค๋žœ๊ธฐ๊ฐ„ ์šด๋™์„ ํ•˜๋ฉด์„œ ํ„ฐ๋“์„ ํ•˜์˜€๋‹ค๋ฉด, ๊ตณ์ด ๋งŽ์€๊ฐฏ์ˆ˜๋กœ ์šด๋™์„ ํ•  ํ•„์š”๋Š” ์—†์„๊ฒƒ์ž…๋‹ˆ๋‹ค ์ด๋Ÿด๋•Œ, ๋‚˜์˜ ์ฒดํ˜•์ด ๊ทผ์œก๋ฐœ๋‹ฌํ˜•์ธ ์ค‘๋ฐฐ์—ฝ ์ด๊ตฌ๋‚˜ ๋ผ๊ณ  ์ƒ๊ฐ์„ ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค.
์ด๋ ‡๋”๋ผ๋„, ๊ฐ๊ฐ์˜ ํŠธ๋ ˆ์ด๋‹์˜ ๋ฐฉ๋ฒ•์„ ๋ชจ๋‘ ๋Œ€์ž… ์‹œ์ผœ์•ผ๋งŒ ์ข‹์€ ๋ชธ์ด ํƒ„์ƒํ•˜๋Š” ์ง„๋ฆฌ๋Š” ๋ณ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
๊ทผ์œก์€ ํƒ€์„ฑ์— ์ž˜ ์ –์Šต๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ, ๋ณ€ํ™”๋ฅผ ์ฃผ๋Š” ํŠธ๋ ˆ์ด๋‹์ด ์—†์œผ๋ฉด ๊ทผ์œก์€ ๊ธธ๋“ค์–ด์ ธ์„œ ๋” ์ด ์ƒ ๋ฐœ๋‹ฌํ•˜์ง€ ์•Š๋Š” ๋‹จ๊ณ„์— ์ด๋ฆ…๋‹ˆ๋‹ค.
์ด๊ฒƒ์„ ์ •์ฒด๊ธฐ๋ผ ํ•˜์ฃ ? ์ด๋Ÿฐ ์ •์ฒด๊ธฐ๋Š”, ์™ธ๋ฐฐ์—ฝ, ์ค‘๋ฐฐ์—ฝ, ๋‚ด๋ฐฐ์—ฝ ํ• ๊ฑฐ์—†์ด ๋ชจ๋“  ์‚ฌ๋žŒ์—๊ฒŒ ๋‹ค ์˜ค๊ฒŒ ๋งˆ๋ จ์ž…๋‹ˆ๋‹ค.
์ฆ‰, ๋ณ€ํ™”์—†๋Š” ํŠธ๋ ˆ์ด๋‹์€ ๊ทผ์œก์˜ ๋ฐœ๋‹ฌ์„ ๋”๋””๊ฒŒ ํ•˜๋ฏ€๋กœ, ํ•ญ์ƒ ๋ณ€ํ™”๋ฅผ ์ถ”๊ตฌํ•ด์•ผ ํ• ๊ฒƒ์ด๋‹ˆ, ์ด๋Ÿด๋•Œ ์ฒดํ˜•์˜ ๊ตฌ๋ถ„์€ ์•„๋ฌด๋Ÿฐ ์˜๋ฏธ๊ฐ€ ์—†๋‹ค๋Š”๊ฒƒ์ž…๋‹ˆ๋‹ค.
์™ธ๋ฐฐ์—ฝ์ด ์šด๋™์„ ํ•ด์„œ ์ค‘๋ฐฐ์—ฝ์œผ๋กœ ๋ณ€ํ•˜๋Š” ์ผ์€ ์—†์Šต๋‹ˆ๋‹ค.
๋‹จ์ง€, ์™ธ๋ฐฐ์—ฝ์ด ์šด๋™์„ ์—ด์‹ฌํžˆ ํ•˜๋ฉด, ๋ชธ์ด ์ข‹์•„์ง€๋Š”๊ฒƒ๋ฟ ์ž…๋‹ˆ๋‹ค.
์ด๋ฏธ ์„ธํฌ์ธต์ด ๊ทธ๋ ‡๊ฒŒ ๋ถ„ํ™”๊ฐ€ ๋๋‚˜์„œ ๊ฐ๊ฐ์˜ ๊ธฐ๊ด€์œผ๋กœ ๋ณ€ํ–ˆ๋Š”๋ฐ ์šด๋™์„ ํ•œ๋‹ค๊ณ  ์–ด๋–ป๊ฒŒ ๋ฐ”๋€Œ๊ฒ ์Šต๋‹ˆ๊นŒ? ์ž์‹ ์ด ๊ฐ€์žฅ ๋ฐœ๋‹ฌ๋œ ์„ธํฌ์ธต์„ ์•Œ๊ธฐ์œ„ํ•ด์„œ๋Š”, ์šด๋™์— ์ต์ˆ™ํ• ๋งŒํผ ์šด๋™์„ ํ•ด๋ด์•ผ๋งŒ ํŒ๋‹จ์ด ๋‚ด๋ ค์ง‘๋‹ˆ๋‹ค.
์ž˜๋ชป๋œ ์‹์ƒํ™œ๋กœ ์ธํ•ด์„œ ๋šฑ๋šฑํ•˜๊ธฐ๋งŒ ํ•œ ์–ด๋–ค์‚ฌ๋žŒ์„, ๋šฑ๋šฑํ•˜๋‹ค๊ณ  ๋‚ด๋ฐฐ์—ฝ ์ด๋ผ๊ณ  ํ•œ๋‹ค๋ฉด, ๋„ˆ๋ฌด ๊ฒฝ์†”ํ•œ ํŒ๋‹จ์„ ๋‚ด๋ฆฌ๊ฒŒ ๋˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์ด ๋šฑ๋šฑํ•œ ์‚ฌ๋žŒ์„, ์šด๋™์„ ์‹œ์ผœ๋ณด๋ฉด, ์ง€๋ฐฉ์ด ๋น ์ง€๊ณ  ์›๋ž˜์˜ ์ž์‹ ์˜ ๋ชจ์Šต์ด ๋‚˜ํƒ€๋‚˜๊ฒŒ ๋˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์™ธ๋ฐฐ์—ฝ์ด ๋ ์ˆ˜๋„ ์žˆ๊ณ  ์ค‘๋ฐฐ์—ฝ์ผ์ˆ˜๋„ ์žˆ๋Š”๊ฒƒ์ž…๋‹ˆ๋‹ค.
์šด๋™์— ์ต์ˆ™ํ•˜๊ธฐ ์ „์—๋Š” ์ž์‹ ์ด ํƒ€๊ณ ๋‚œ ๋ฐฐ์—ฝ์„ ์•Œ๊ธธ์ด ์—†์Šต๋‹ˆ๋‹ค.
๋˜, ์•Œ๊ฒŒ๋œ๋‹ค ํ•˜๋”๋ผ๋„, ํŠธ๋ ˆ์ด๋‹์˜ ๊ธฐ๋ณธ์ด ๋ณ€ํ•ด์„œ ๋Œ€์ž…์ด ๋˜์–ด์„œ๋Š”, ํšจ๊ณผ๋ฅผ ๋ณด์ง€ ๋ชปํ•ฉ๋‹ˆ๋‹ค ํŠธ๋ ˆ์ด๋‹์˜ ๊ธฐ๋ณธ์ธ ์ ์ง„์ ๊ณผ๋ถ€ํ•˜ ๋ผ๋Š”๊ฒƒ์€, ๋‚ด๋ฐฐ์—ฝ, ์ค‘๋ฐฐ์—ฝ, ์™ธ๋ฐฐ์—ฝ์„ ๋ง‰๋ก ํ•˜๊ณ  ๋ชจ๋“  ์šด๋™ํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์ด ํ•ญ์ƒ ์ถ”๊ตฌํ•ด์•ผํ•  ์šด๋™์˜ ๋ณ€ํ™”์ด๊ธฐ ๋•Œ๋ฌธ์—, ์™ธ๋ฐฐ์—ฝ ์ด๋ผ๊ณ  ํ•ด์„œ ๊ณ ์ค‘๋Ÿ‰ ์ €๋ฐ˜๋ณต์ด ํ•ญ์ƒ ์ ์ง„์ ๊ณผ๋ถ€ํ•˜๋Š” ๋ ์ˆ˜๊ฐ€ ์—†๋Š”๊ฒƒ์ด๊ณ , ์ €์ค‘๋Ÿ‰ ๊ณ ๋ฐ˜๋ณต์ด ์™ธ๋ฐฐ์—ฝ ์—๊ฒŒ ์ ์ง„์ ๊ณผ๋ถ€ํ•˜๊ฐ€ ๋ ๋•Œ๋„ ๋งŽ์€๊ฒƒ์ž…๋‹ˆ๋‹ค ์ด๋Ÿฌํ•œ ํŠธ๋ ˆ์ด๋‹์˜ ๊ธฐ๋ณธ์›์น™์€ ์–ด๋–ค ๋ฐฐ์—ฝ์—์„œ๋„ ํ•ญ์ƒ ์กด์žฌ๊ฐ€์น˜๊ฐ€ ์ถฉ๋ถ„ํ•œ๊ฒƒ์ž…๋‹ˆ๋‹ค.
๋์œผ๋กœ ์šด๋™์ดˆ์‹ฌ์ž ๋ถ„๋“ค๊ป˜ ๋‹น๋ถ€๋“œ๋ฆฌ๊ณ  ์‹ถ์€๋ง์€, ์ž์‹ ์˜ ๋ฐฐ์—ฝ์„, ์šด๋™๋„ ์‹œ์ž‘ํ•˜๊ธฐ์ „์— ๊ฒฐ์ •ํ•ด ๋ฒ„๋ฆฌ๋Š” ๋ถ„๋“ค์ด ๋งŽ์€๋ฐ, ์ด๋Š” ๋งค์šฐ ์–ด๋ฆฌ์„์€ ํ–‰๋™์„ ํ•˜๋Š”๊ฒƒ์ž„์„ ๋ง์”€๋“œ๋ฆฌ๊ตฌ์š”, ์ดˆ์‹ฌ์ž์—๊ฒŒ๋Š” ๊ธฐ๋ณธ์ด ๋˜๋Š” ์šด๋™๋ฒ• ๋งŒ์ด ์กด์žฌํ• ๋ฟ, ๋ฐฐ์—ฝ์ด๋ž€๊ฒƒ์€ ์ƒ๊ฐํ•  ํ•„์š”๋„ ์—†๋Š”๊ฒƒ์ž„์„ ์•Œ๋ ค๋“œ๋ฆฝ๋‹ˆ๋‹ค.
์šด๋™์„ ์‹œ์ž‘ํ•˜๊ธฐ๋„ ์ „์—, ์ž์‹ ์—๊ฒŒ ๋งž๋Š” ํŠธ๋ ˆ์ด๋‹๋ฒ•์„ ์ •ํ•˜๊ณ  ๋ณด์ถฉ์ œ๋ฅผ ์ฃผ๋ฌธํ•˜๋Š”๊ฒƒ์€, ๋ณต๊ถŒ์— ๋‹น์ฒจ๋˜๊ธฐ๋ฅผ ๋ฐ”๋ผ๋ฉฐ ๋ณต๊ถŒ์„ ์‚ฌ์„œ, ๋ˆ์„๋นŒ๋ ค ์ง‘์‚ฌ๊ณ , ์ž๋™์ฐจ์‚ฌ๊ณ , ๋•…์‚ฌ๊ณ  ๋“ฑ๋“ฑ........๋งˆ๊ตฌ์‚ฌ๊ณ ....
๋นŒ๋ฆฐ๋ˆ์€, "๋‹น์ฒจ๊ธˆ์œผ๋กœ ๊ฐš์•„์•ผ์ง€" ํ•˜๋Š” ๊ณ„ํš๊ณผ๋„ ๊ฐ™์Šต๋‹ˆ๋‹ค.
์ฒดํ˜•๋ณ„ ์šด๋™๋ฒ•์ด ๋”ฐ๋กœ ์žˆ๋‹ค๊ธฐ ๋ณด๋‹ค๋Š”, ๋‹จ๊ณ„๋ณ„ ์šด๋™๋ฒ•์ด ๋”ฐ๋กœ์žˆ๋‹ค๊ณ  ์ดํ•ด๋ฅผ ํ•˜์…”์•ผ ํ•˜๊ณ , ๊ทธ ๋‹จ๊ณ„์—์„œ ๊ทผ์œก๋ฐœ๋‹ฌ์ด ๋‚จ๋ณด๋‹ค ๋” ์ž˜๋œ๋‹ค๊ณ  ์ธ์ง€๊ฐ€ ๋˜๋ฉด, ๋‚˜๋Š” ์ค‘๋ฐฐ์—ฝํ˜• ์ธ๊ฐ„์ด๊ตฌ๋‚˜ ๋ผ๊ณ  ์ฐธ๊ณ ๋งŒ ํ•˜์‹œ๋ฉด ๋˜๊ฒ ์Šต๋‹ˆ๋‹ค.
ํƒ€๊ณ ๋‚œ ๋ฐฐ์—ฝ์€ ๋ณ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
------------------------------------------------------------------
์ฒดํ˜•์˜ ๊ตฌ๋ถ„์€, ๋ฏธ๊ตญ์˜ ์…€๋“  ์ด๋ผ๋Š” ์‚ฌ๋žŒ์ด ๋ฐฐ์—ฝ๊ธฐ์›์„ค์„ ์ฃผ์žฅ ํ•˜๋ฉด์„œ ์ƒ๊ฒจ ๋‚ฌ์Šต๋‹ˆ๋‹ค .
๊ทธ๋Ÿฌ๋‚˜, ๋ฐฐ์—ฝ๊ธฐ์›์„ค์—๋Š” ์šด๋™์„ ์ฒดํ˜•์— ๋งž๊ฒŒ ํ•ด์•ผ ํ•œ๋‹ค๋Š” ๋ง์€ ์—†์–ด์š” .
๋‹จ์ง€, ์ˆ˜์ •๋ž€์ด ๋ถ„ํ™”ํ•˜๋ฉด์„œ, 3 ๊ฐœ์˜ ์„ธํฌ์ธต์ด ์ƒ๊ฒจ๋Š”๋ฐ, ์ด๊ฒƒ์„ ๋ฐฐ์—ฝ ์ด๋ผ ๊ณ  ํ•˜๊ณ , ์ด๋ฆ„์„, ๋‚ด๋ฐฐ์—ฝ, ์ค‘๋ฐฐ์—ฝ, ์™ธ๋ฐฐ์—ฝ, ์ด๋ผ๊ณ  ํ•˜๋ฉฐ, ๊ฐ๊ฐ์˜ ๋ฐฐ์—ฝ์—์„œ, ์šฐ๋ฆฌ๋ชธ์˜ ๊ธฐ๊ด€์„, ์„œ๋กœ ๋‹ค๋ฅด๊ฒŒ ๋งŒ๋“ค๊ธฐ ๋•Œ๋ฌธ์— ๋‚ด๋ฐฐ์—ฝ ์—์„œ ํ•˜๋Š”์ผ์€, ์†Œํ™”๊ธฐ๊ด€ ๋“ฑ์„ ๋งŒ๋“ค์–ด์„œ, ๋šฑ๋šฑํ•œ ์ฒดํ˜• ์ค‘๋ฐฐ์—ฝ ์—์„œ ํ•˜๋Š”์ผ์€, ๊ทผ์œก๋“ฑ์„ ๋งŒ๋“ค๊ธฐ ๋•Œ๋ฌธ์—, ๊ทผ์œกํ˜• ์ฒดํ˜• ์™ธ๋ฐฐ์—ฝ์—์„œ ํ•˜๋Š”์ผ์€, ํ”ผ๋ถ€๋“ฑ์„ ๋งŒ๋“ค๊ธฐ ๋•Œ๋ฌธ์—, ๋งˆ๋ฅธ์ฒดํ˜• ์ด๋ผ๊ณ  ๋ถ„๋ฅ˜ํ•ด ๋†“์€๊ฒƒ ๋ฟ์ž…๋‹ˆ๋‹ค .
์ฆ‰, ์šด๋™์„ ์‹œ์ž‘ํ•˜๋Š” ์‚ฌ๋žŒ์ด, ์ž์‹ ์˜ ๋ชธ์ด ๋šฑ๋šฑํ•ด์„œ ๋šฑ๋šฑํ•œ ์‚ฌ๋žŒ์ด ํ•ด์•ผํ•  ์šด๋™์ด ๋”ฐ๋กœ ์žˆ๋‹ค๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ๋‚ด๋ฐฐ์—ฝ์ด ๋งŒ๋“ค์–ด๋‚ด๋Š” ๊ฒƒ์ด ์†Œํ™”๊ธฐ๊ด€ ๋“ฑ์ด๊ธฐ ๋•Œ๋ฌธ์— ๋šฑ๋šฑํ•œ ์ฒดํ˜•์œผ๋กœ ๋ถ„๋ฅ˜๋งŒ ํ•œ๊ฒƒ์ž…๋‹ˆ๋‹ค .
๋”ฐ๋ผ์„œ, ์šด๋™์€ ์ด ์„ธ๋ฐฐ์—ฝ์„ ๊ฐ€์ง„ ๋ชจ๋“  ์‚ฌ๋žŒ์€, ์ฒจ ์ดˆ์‹ฌ์ž ๋•Œ๋Š”, ๋ชจ๋‘ ๊ฐ™์€ ๋ฐฉ์‹์— ์˜ํ•ด์„œ ์šด๋™์ด ์‹œํ–‰๋˜์–ด์•ผ ํ•˜๊ฒ  ์Šต๋‹ˆ๋‹ค .
๊ทธ๊ฒƒ์€, ๊ธฐ๋ณธ์ด ๋˜๋Š” ์šด๋™์€, ์ฒดํ˜•์ด ์•„๋ฌด๋ฆฌ ๋‹ฌ๋ผ๋„, ํ‹€๋ ค์ ธ์„œ๋Š” ์•ˆ๋˜๊ธฐ ๋•Œ๋ฌธ ์ด๋ž๋‹ˆ๋‹ค .
๊ธฐ๋ณธ์€ ๋ชจ๋‘์—๊ฒŒ ๋˜‘๊ฐ™์ด ์ ์šฉ๋˜์–ด์•ผ ํ•˜๋Š”, ๊ฐ€์žฅ ๊ธฐ์ดˆ์ ์ธ ๊ฒƒ๋“ค์„ ๋งํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค .
๋˜๋ž˜๋ณด๋‹ค ๋จธ๋ฆฌ๊ฐ€ ์ข‹์•„์„œ ์ผ์ฐ๋ถ€ํ„ฐ ์˜์žฌ๊ต์œก์„ ๋ฐ›๋Š” ํ•™์ƒ๋“ค์ด ์žˆ์Šต๋‹ˆ๋‹ค .
๊ทธ๋ ‡๋‹ค๊ณ  ์ด๋Ÿฐ ์˜์žฌ๋“ค์ด ๋ง์…ˆ๊ณผ ๋ปด์…ˆ ๊ณฑํ•˜๊ธฐ ๋‚˜๋ˆ„๊ธฐ ๋“ฑ์˜ ๊ธฐ์ดˆ์ ์ธ ์‚ฐ์ˆ˜๊ณต๋ถ€๋ฅผ ํ•˜์ง€ ์•Š๊ณ , ์˜์žฌ๋ฐ˜์— ์žˆ๋Š”๊ฒƒ์ด ์•„๋‹ˆ์ฃ  ? ๋‹จ์ง€, ์ตํžˆ๋Š” ์†๋„๊ฐ€ ๋นจ๋ผ์„œ, ์ง„๋„๋ฅผ ๋นจ๋ฆฌ ๋‚˜๊ฐ€๋Š”๊ฒƒ ๋ฟ์ž…๋‹ˆ๋‹ค, ๋‹ฌ๋ฆฌ๋งํ•˜๋ฉด, ๋ฐฐ์›Œ์•ผ ํ• ๊ฒƒ์„ ๋ฐฐ์šฐ์ง€ ์•Š๊ณ  ๊ฑด๋„ˆ๋›ฐ๋Š”๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ๋นจ๋ฆฌ ๋ฐฐ์šฐ๋‹ˆ, ์ดˆ๋“ฑํ•™๊ต ๊ณผ์ • 6 ๋…„, ์ค‘ํ•™๊ต 3 ๋…„, ๊ณ ๋“ฑํ•™๊ต 3 ๋…„ ๋“ฑ์˜ ํ–‡์ˆ˜๊ฐ€ ์ค„์–ด๋“œ๋Š” ๊ฒƒ์ด๊ฒ ์ฃ  ? ๋ณด๋””๋นŒ๋”ฉ ์—์„œ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€ ์ž…๋‹ˆ๋‹ค .
์ดˆ์‹ฌ์ž๋Š” ์ดˆ์‹ฌ์ž์ผ๋ฟ,  ๋‹ฌ๋ฆฌ ํŠน๋ณ„ํ•˜๊ฒŒ ๋ฐฐ์›Œ์•ผํ•  ์–ด๋–ค๋ถ€๋ถ„๋„ ์—†์Šต๋‹ˆ๋‹ค .
๊ธฐ๋ณธ์ด ๋˜๋Š” ์šด๋™์„ ์—ด์‹ฌํžˆ ๋ฐ˜๋ณตํ›ˆ๋ จ๋งŒ ํ•˜๋Š”๊ฒƒ์ด ์ดˆ์‹ฌ์ž์—๊ฒŒ ๋‚จ์•„์žˆ๋Š” ๊ณผ์ œ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค .
๊ทธ๋ ‡๊ฒŒ ๊ธฐ๋ณธ์ ์ธ ํ›ˆ๋ จ์„ ์‹ค์‹œํ•˜๋‹ค๋ณด๋ฉด, ์˜์žฌ๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค .
๊ทธ ์ฒดํ˜•์ด ๋ฐ”๋กœ ์ค‘๋ฐฐ์—ฝ ์ด์ฃ  ? ์ด๋Ÿฐ ์ค‘๋ฐฐ์—ฝ์€, ๋ง์”€๋“œ๋ ธ๋“ฏ์ด ๋”ฐ๋กœ ์ค‘๋ฐฐ์—ฝ ๋งŒ์˜ ์šด๋™๋ฒ•์ด ์กด์žฌํ•˜ ๋Š”๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ์ผ์ฐ ๋ชจ๋“ ๊ณผ์ •์„ ๋นจ๋ฆฌ ๋งˆ์น˜๊ธฐ ๋•Œ๋ฌธ์—, ๋”ด ์ฒดํ˜• ๋ณด๋‹ค ๋” ๋งŽ์€ ์šด๋™๋™์ž‘๋“ฑ์„ ์ˆ™์ง€ํ•ด ๋†“์Œ์œผ๋กœ ์ธํ•ด์„œ, ์ž์—ฐํžˆ, ๋”ด ์ฒดํ˜•๋ณด๋‹ค ๋ชธ์ด ๋” ์ข‹์•„์ ธ ์žˆ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค .
์ด๋Ÿฐ ์ฒดํ˜•์˜ ๊ตฌ๋ถ„์€, ์ž์‹ ์˜ ๋ชธ์—์„œ ๊ทผ์œก์ด ์ƒ๊ฒจ๋‚˜๊ณ  ์ ์–ด๋„, ๊ฒฝ๋ ฅ 2 ๋…„ ~ 3 ๋…„ ์ •๋„๊ฐ€ ๋˜์—ˆ์„๋•Œ ์ž์‹ ์˜ ๊ทผ์œก๋ฐœ๋‹ฌ ์†๋„์— ๋”ฐ๋ผ์„œ ๋ฏธ๋ฆฌ ์•ž์ง€๋ฅด๋Š” ํ•™์Šต์„ ํ• ์ˆ˜๋„ ์žˆ์„๊ฒƒ์ด๊ณ , ์ž˜๋˜์ง€ ์•Š์•„์„œ ๋ณต์Šต์„ ๋งŽ์ดํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์ƒ๊ธธํ…Œ๋‹ˆ, ์ด๋•Œ ๊ตฌ๋ถ„์„ ํ•ด๋ณผํ•„์š”๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
์ง€๊ธˆ์€ ์•„๋ฌด๊ฒƒ๋„ ์ƒ๊ฒจ๋‚˜์ง€ ์•Š์•˜๊ณ , ์•„๋ฌด๊ฒƒ๋„ ํ•˜์ง€ ์•Š์€ ์ดˆ์‹ฌ์ž๋•Œ ์ž…๋‹ˆ๋‹ค .
์ด๋•Œ๋Š”, ๊ธฐ๋ณธ๊ธฐ์— ์ถฉ์‹คํ•œ ๋งŽ์€ ๋ฐ˜๋ณตํšŸ์ˆ˜์™€ ๋งŽ์€ ์„ธํŠธ๋ฅผ ํ•จ์œผ๋กœ์จ ์ž์‹ ์˜ ์šด๋™์‹ ๊ฒฝ์„ ๋ฐœ๋‹ฌ์‹œํ‚ค๋Š”๋ฐ ๋…ธ๋ ฅ์„ ํ•ด์•ผ๋งŒ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค .
์ด๋Ÿฐ ์˜๋ฏธ์—์„œ ๋ณธ๋‹ค๋ฉด, ์ดˆ์‹ฌ์ž์—๊ฒŒ ์ฒดํ˜•์„ ์•Œ๋ ค์ฃผ๊ณ  ๊ทธ ์ฒดํ˜•์— ๋งž๊ฒŒ ์šด๋™์„ ์‹œํ‚จ๋‹ค๋Š” ์ž์ฒด๋Š” ์™„์ „ํžˆ ๋ชจ์ˆœ์ด๋ผ๊ณ  ํ• ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค .
์™ธ๋ฐฐ์—ฝ์˜ ์šด๋™๋ฐฉ๋ฒ•์— ์žˆ์–ด์„œ,๊ณ ์ค‘๋Ÿ‰ ์ €๋ฐ˜๋ณต์„ ๊ถŒํ•˜์ง€๋งŒ, ์™ธ๋ฐฐ์—ฝ๋„ ์ดˆ๋ณด์ž ์ž…๋‹ˆ๋‹ค, ์ค‘๋ฐฐ์—ฝ๋„ ์ดˆ๋ณด์ž ์ž…๋‹ˆ๋‹ค, ๋ชจ๋‘๊ฐ€ ๋‹ค ์ดˆ๋ณด์ผ๋•Œ, ๊ณ ์ค‘๋Ÿ‰์€ ํ• ๋ž˜์•ผ ํ• ์ˆ˜๊ฐ€ ์—†๋Š” ๊ฒƒ์ด๊ณ , ์ €๋ฐ˜๋ณต์€, ์Šค์œ™์—ฐ์Šต์€ ํ•˜์ง€ ์•Š์œผ๋ฉด์„œ ํ™ˆ๋Ÿฐ๋งŒ ์น ๋ ค๊ณ  ํ•˜๋Š” ์‹œ๊ฑด๋ฐฉ ์ง„ ์•ผ๊ตฌ์„ ์ˆ˜๊ฐ€ ํ•˜๋Š” ํ•˜๋ฃจ ์Šค์œ™์—ฐ์Šต 10 ๋ฒˆ์— ๊ทธ์น˜๋Š” ์šด๋™๋ฐฉ๋ฒ•์ด ๋˜ ๊ฒ ๊ตฐ์š”, ์™ธ๋ฐฐ์—ฝ, ์ค‘๋ฐฐ์—ฝ, ๋‚ด๋ฐฐ์—ฝ ๋ชจ๋‘ ์ดˆ์‹ฌ์ž๋•Œ๋Š” ๊ณ ๋ฐ˜๋ณต์ด ๊ธฐ๋ณธ ์ž…๋‹ˆ๋‹ค .
์‹œ๊ฐ„์ด ๊ฐ์— ๋”ฐ๋ผ์„œ, ์—ฌ์ „ํžˆ ๊ณ ๋ฐ˜๋ณต์„ ํ•ด์•ผํ•  ๋ถ€๋ฅ˜๊ฐ€ ์žˆ๊ณ , ๊ณ ๋ฐ˜๋ณต์ด ํ•„์š”์—†๋Š” ๋ถ€๋ฅ˜๊ฐ€ ์ƒ๊ฒจ ๋‚ฉ๋‹ˆ๋‹ค .
10 ์‚ด์งœ๋ฆฌ ์˜์žฌ๊ฐ€ ์ค‘ํ•™๊ต ๊ณผ์ •์„ ๊ณต๋ถ€ํ•˜๋Š”, ๋‹น์—ฐํ•œ ์ƒํ™ฉ์ด์ฃ  ? ์ด๋•Œ, ๊ณ ๋ฐ˜๋ณต์„ ํ•˜์ง€ ์•Š์•„๋„ ๊ทผ์œก๋ฐœ๋‹ฌ์ด ๋‚จ๋ณด๋‹ค ์ž˜๋œ๋‹ค๊ณ  ํ™•์—ฐํžˆ ๋А๊ปด์ง€๊ณ , ๋ชธ์˜ ๋ฐœ๋‹ฌ๋„ ๊ฐ™์ด ์‹œ์ž‘ํ•œ ๋”ด ์ฒดํ˜•๋ณด๋‹ค ๋งŽ์ด ๋ฐœ๋‹ฌ๋˜์–ด ์žˆ๋‹ค๋ฉด, ๊ทธ๋•Œ ๋น„๋กœ์†Œ, "์•„ํ•˜ ! ๋‚˜์˜ ์ฒดํ˜•์€ ์ค‘๋ฐฐ์—ฝ ์ด๊ตฌ๋‚˜ ! " ๋ผ๊ณ  ํ•˜๋Š”๊ฒƒ์ž…๋‹ˆ๋‹ค .
๋ฏธ๋ฆฌ ์ •ํ•ด๋†“๊ณ  ์‹œ์ž‘ํ•˜๋ผ๊ณ  ํ•œ๊ฒƒ์ด ์ฒดํ˜•์˜ ๊ตฌ๋ถ„์ด ์•„๋‹ˆ๋ž€๊ฒƒ์„ ๋ง์”€๋“œ๋ ธ์Šต๋‹ˆ๋‹ค .
๋ชจ๋ฆ„์ง€๊ธฐ ์ดˆ์‹ฌ์ž๋Š”, ์„ ํƒ์˜ ๊ถŒํ•œ์ด ์—†๊ณ , ๊ธฐ๋ณธ๊ธฐ๋ฅผ ์ตํ˜€์•ผ๋งŒ ํ•˜๋Š” ์˜๋ฌด๋งŒ ์žˆ๋‹ต๋‹ˆ๋‹ค .
-----------------------------------------------------------------

[์žฌ๋ฏธ ์žˆ๋Š” ์‚ฌ์ƒ ์ฒด์งˆ]

ํ•œ์˜ํ•™, ๊ทธ ์ค‘์—์„œ๋„ ์‚ฌ์ƒ์˜ํ•™์€ ์ฐธ์œผ๋กœ ์ธ๊ฐ„ ๊ฐœ๊ฐœ์ธ์˜ ํŠน์„ฑ์— ๋งž๊ฒŒ, ์•ฝ์žฌ๋ฅผ ๋น„๋กฏํ•˜์—ฌ ๊ฐ์ข… ์Œ์‹๋“ค์˜ ์ฒ˜๋ฐฉ์„ ์†์‰ฝ๊ฒŒ ํ•ด ์ค€๋‹ค.
์ด๋Ÿฌํ•œ ์‚ฌ์ƒ์˜ํ•™์˜ ์‚ฌ์ƒ์ฒด์งˆ์€, 4 ๊ฐ€์ง€๋กœ ๋ถ„๋ฅ˜๊ฐ€๋˜๋ฉฐ, ๊ฐ ์ฒด์งˆ์˜ ํŠน์„ฑ์„, ์žฅ๊ธฐ์˜ ํ—ˆ์™€์‹ค ์„ ๊ฐ€๋ฆผ์œผ๋กœ์จ, ๋ณ‘์— ๊ฑธ๋ ธ์„๋•Œ ์ ๊ทน ์น˜๋ฃŒ์— ์ด์šฉ๋˜๋Š”๊ฒƒ์ด๋‹ค.
๋จผ์ €, ์Œ๊ณผ ์–‘์ด ๊ตฌ๋ถ„๋˜๋Š”๋ฐ, ์Œ์€ ๋•…์ด๊ณ  ๋ฌผ์ด๋ฉฐ ์ฐจ๊ฐ‘๊ณ  ์Šตํ•˜๊ณ  ๋‚ด์„ฑ์ ์ธ ์„ฑ๊ฒฉ์„ ๋งํ•˜๋ฉฐ, ์–‘์€, ํ•˜๋Š˜์ด๊ณ , ๋ถˆ์ด๋ฉฐ, ๋œจ๊ฒ๊ณ  ๊ฑด์กฐํ•˜๋ฉฐ, ์™ธํ–ฅ์ ์ธ ์„ฑ๊ฒฉ์„ ๋งํ•œ๋‹ค.
์•Œ๋กœ์—๊ฐ€ ์‚ฌ๋ง‰์œผ๋กœ ๊ฐ„ ์ด์œ ๋Š” ? ๋ฌด์Šจ ์˜ํ•˜์ œ๋ชฉ ๊ฐ™์ง€๋งŒ, ๊ทธ  ์ด์œ ์— ๋ฐ”๋กœ ์‚ฌ์ƒ์˜ํ•™์ด ๋“ค์–ด์žˆ๋‹ค.
๋ชจ๋“ ๊ฒƒ๋“ค์ด ๋‹ค ์‚ฌ๋ง‰์— ์‚ด์ง€๋Š” ์•Š๋Š”๋‹ค.
๋งŒ์•ฝ ์ž์‹ ์ด ์ฐจ๊ฐ‘๊ณ , ๋ฌผ์ด ๋งŽ์•„์„œ ํ—ˆ๊ตฌํ•œ๋‚  ์ถ•์ถ•ํ•˜๋‹ค๋ฉด, ์‚ฌ๋ง‰๊ฐ™์€๊ณณ์— ๊ฐ€๊ณ ์‹ถ์„๊ฒƒ์ด๋‹ค.
๋ฐ”๋กœ, ์•Œ๋กœ์— ์ž์‹ ์˜ ๋ณธ์„ฑ์„ ์•Œ์ˆ˜์žˆ๋Š”๊ฒƒ์ด ์•Œ๋กœ์—๊ฐ€ ์ž๋ผ๋Š”๊ณณ์„ ๋ณด๊ณ  ์•Œ์ˆ˜์žˆ๋Š”๊ฒƒ์ด๋‹ค.
์ด๋ง์€ ๋“ฃ๊ณ  ์•Œ๋กœ์—๋Š” ์šฐ๋ฆฌ์ง‘์—๋„ ์ž˜ ์ปค๊ณ  ์žˆ๋Š”๋ฐ ๋ผ๊ณ  ํ•œ๋‹ค๋ฉด, ๋‹น์‹ ์€ ์†Œ์Œ์ธ์ผ ๊ฐ€๋Šฅ์„ฑ ์ด ๋งค์šฐ ๋†’๋‹ค.
์†Œ์Œ์ธ์˜ ํŠน์„ฑ์ด, ๊นŒํƒˆ์Šค๋Ÿฝ๊ณ  ๊ทธ๋ƒฅ ๋„˜์–ด๊ฐ€์ง€ ์•Š์œผ๋ฉฐ ๋ฐ˜๋“œ์‹œ ๋”ฐ์ ธ์•ผ๋งŒ ํ•˜๋Š” ์„ฑ๊ฒฉ์ด๊ธฐ๋•Œ๋ฌธ์ด๋‹ค.
๊ทธ๋ž˜์„œ ๊ฒฝ๋ฆฌ์—…๋ฌด๋‚˜ ํšŒ๊ณ„์—…๋ฌด๋ฅผ ๋งก๊ฒจ๋†“์œผ๋ฉด ์ž˜ํ•œ๋‹ค.
์•„๋ฌดํŠผ, ์ด๋Ÿฌํ•œ ์ž์‹ ์˜ ํŠน์„ฑ์ด ์–ด๋–ค๊ฐ€์— ๋”ฐ๋ผ์„œ ์ž๋ผ๋Š”๊ณณ์ด ๋‹ค ํ‹€๋ฆฐ๋‹ค.
์•Œ๋กœ์—๋Š” ์ฐจ๊ฐ‘๊ธฐ๋•Œ๋ฌธ์— ๋œจ๊ฑฐ์šด๊ณณ์—์„œ ์ž๋ž€๋‹ค๋Š”๊ฒƒ์ด ํ•œ์˜ํ•™์ด์ž ์‚ฌ์ƒ์˜ํ•™์˜ ๊ธฐ๋ณธ์ด ๋˜๋Š” ๊ฒƒ์ด๋‹ค.
์ฆ‰, ์•Œ๋กœ์—๋Š”, ์Œ์ ๊ธฐ์งˆ์„ ๊ฐ€์ง„ ์Œ์‹์ด๋ผ ํ• ์ˆ˜์žˆ๋‹ค.
๊ทธ๋ ‡๋‹ค๋ฉด, ์•Œ๋กœ์—๋Š” ๋ˆ„๊ฐ€ ๋จน์–ด์•ผ ํ•˜๋Š”๊ฐ€? ๋งŒ์•ฝ ๋‹น์‹ ์ด ํ•ญ์ƒ ๋ชธ์— ์—ด์ด๋งŽ๊ณ  ์„ฑ๊ฒฉ์ด ๊ธ‰ํ•˜๊ณ , ๋ฐฉ๋ฐฉ๋œจ๋Š” ์„ฑ๊ฒฉ์ด๋ผ๋ฉด, ์•Œ๋กœ์—๋Š” ๋‹น์‹ ์—๊ฒŒ๋งŒ ๋ณด์•ฝ์ด ๋ ๊ฒƒ์ด๋‹ค.
๋˜, ๋‹น์‹  ๋™์ƒ์ด ๋งค์‚ฌ์— ์นจ์ฐฉํ•˜๋ฉฐ, ๋‚ด์„ฑ์ ์ด๊ณ  ๊ฒจ์šธ์„ ์‹ซ์–ดํ•˜๋Š” ์Œ์ ์ธ ์ฒด์งˆ์ด๋ผ๋ฉด, ์•Œ๋กœ์—๋Š” ๋…์ด๋ ์ˆ˜๋„ ์žˆ๋Š”๊ฒƒ์ด๋‹ค.
๋งํ–ˆ์ง€๋งŒ, ์‚ฌ์ƒ์˜ํ•™์€ ์žฅ๊ธฐ์˜ ํ—ˆ์™€์‹ค์„ ๋ณด์™„ํ•˜๋Š” ํ•™๋ฌธ์ด๋‹ค.
์•ฝํ•œ๊ฒƒ์€ ๊ฐ•ํ•˜๊ฒŒ ๋งŒ๋“ค๊ณ , ๊ฐ•ํ•œ๊ฒƒ์€ ์•ฝํ•˜๊ฒŒ ๋งŒ๋“œ๋Š”๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ๊ฐ•ํ•ด์„œ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธฐ๊ณ , ์•ฝํ•ด์„œ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธฐ๋ฏ€๋กœ, ์•ฝํ•œ๊ฒƒ์ด๋‚˜, ๊ฐ•ํ•œ๊ฒƒ์„ ๋ชจ๋‘ ๋Œ์–ด์˜ฌ๋ฆฌ๊ฑฐ๋‚˜, ๋Œ์–ด๋‚ด๋ ค์„œ, ์ •์ƒ๊ถค๋„์— ๊ฐ€์ ธ๋‹ค ๋†“๋Š”๊ฒƒ์ด ์‚ฌ์ƒ์˜ํ•™์ด๋‹ค.
์•Œ๋กœ์—์™€๋Š” ๋ฐ˜๋Œ€๋กœ, ์‘๋‹ฌ์ด๊ณ , ์Šตํ•œ๋ฐ ์ž๋ผ๋Š”๊ฒƒ์ด ์ธ์‚ผ์ด๋‹ค.
์ฆ‰, ์ธ์‚ผ ์ž์‹ ์€ ๋„ˆ๋ฌด๋‚˜๋„ ๋œจ๊ฒ๊ณ  ๊ฑด์กฐํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋ณธ๋Šฅ์ ์œผ๋กœ ์ฐจ๊ฐ‘๊ณ  ์Šตํ•œ๊ณณ์„ ์ฐพ๊ฒŒ ๋œ๋‹ค.
์•„๊นŒ ๋‹น์‹ ์˜ ๋™์ƒ์ด ๋จน์–ด์•ผํ•˜๋Š”๊ฒƒ์€ ๋ฐ”๋กœ ์ด๋Ÿฐ ์ธ์‚ผ์ด ๋˜๋Š” ๊ฒƒ์ด๋‹ค.
๋ผ์ง€๊ณ ๊ธฐ๋Š” ๋ƒ‰ํ•œ์Œ์‹์ด๋ผ๊ณ  ํ•œ๋‹ค, ๋ผ์ง€๋Š” ํ‰์ƒ์„ ์‚ด์•„๋„ ํ•˜๋Š˜์„ ์ณ๋‹ค๋ณด๋Š”๋ฒ•์ด ์—†์„์ •๋„๋กœ ๋งค์ผ ๋•…๋งŒ๋ณด๊ณ  ์‚ด๋ฉฐ, ๊ธ‰ํ•œ๋ฒ•์ด ์—†๋‹ค, ์ฃฝ์„๋•Œ ๋ฉฑ๋”ฐ๋Š” ์†Œ๋ฆฌ๋‚ด๋ฉฐ ๊ธ‰ํ•ดํ•˜๋Š”๊ฒƒ ์™ธ์—๋Š” ํ•ญ์ƒ ๋А๊ธ‹ํ•˜๋‹ค.
์‚ฌ๋žŒ์œผ๋กœ ์น˜์ž๋ฉด ๋‚ด์„ฑ์ ์ธ ์Œ์ธ์ด๋ผ ํ• ์ˆ˜์žˆ๋‹ค.
๋ƒ‰ํ•œ์Œ์‹์ด๊ธฐ๋•Œ๋ฌธ์—, ์œก์‹์ค‘์—๋Š” ๋ผ์ง€๊ณ ๊ธฐ๊ฐ€ ์ œ์ผ ์†Œํ™”๊ฐ€ ์ž˜ ๋˜์ง€๋ฅผ ์•Š๋Š”๋‹ค.
์ด๋Ÿฐ ๋ผ์ง€๊ณ ๊ธฐ์˜ ์ตœ์ƒ์˜ ๊ถํ•ฉ์„ ์ฐพ๋Š”๋‹ค๋ฉด, ์•„๋งˆ๋„ ์–‘์ ๊ธฐ์งˆ์„ ๊ฐ€์ง„ ๋ฌด์–ธ๊ฐ€๊ฐ€ ๋ ๊ฒƒ์ด๋‹ค ์ด๋Ÿฌํ•œ ์ด์œ ๋กœ ์ธํ•ด์„œ, ๋ผ์ง€๊ณ ๊ธฐ๋ฅผ ๋จน์„๋•Œ ์ƒˆ์šฐ๊ฐ€ ๋“ฑ์žฅํ•˜๊ฒŒ ๋˜๋Š”๊ฒƒ์ด๋‹ค.
์ƒˆ์šฐ์•ผ ๋ง๋กœ ๊ทธ ์›€์ง์ž„์ด ์งธ๋น ๋ฅด๊ธฐ ๋•Œ๋ฌธ์— ์–‘์ ์ธ ์Œ์‹์ž„์—๋Š” ํ‹€๋ฆผ์ด ์—†๋‹ค.
๋ƒ‰ํ•œ์Œ์‹์ธ ๋ผ์ง€๊ณ ๊ธฐ์™€ ์—ด์„๋‚ด๋Š” ์Œ์‹์ธ ์ƒˆ์šฐ์˜ ๋งŒ๋‚จ์ด, ํ™˜์ƒ์ ์ธ ์Œ์‹๊ถํ•ฉ์ด ๋˜๋Š”๊ฒƒ๋„ ํ•œ์˜ํ•™์ด๋ผ ํ• ์ˆ˜์žˆ๋‹ค.
์–ด๋–ค ์†Œ์–‘์ธ์˜ ์ฒด์งˆ์„ ๊ฐ€์ง„ ์ˆ˜์œ ๋ถ€๊ฐ€, ์‹œ์–ด๋จธ๋‹ˆ๊ป˜์„œ ํ•ด์ฃผ์‹  ๊ฐ€๋ฌผ์น˜๋ฅผ ๋จน๊ณ  ์ –์ด ๋‚˜์˜ค์งˆ ์•Š์•˜๋‹ค.
์ด๋Ÿด๋•Œ ์‚ฌ์ƒ์˜ํ•™์—์„œ๋Š”, ์ด๋ ‡๊ฒŒ ํŒ๋‹จํ•œ๋‹ค.
์–‘์ ์ธ ๊ธฐ์งˆ์„ ๊ฐ€์ง„ ์ˆ˜์œ ๋ถ€๊ฐ€, ๊ฐ€๋ฌผ์น˜์ฒ˜๋Ÿผ ์–‘์ ์ธ ์Œ์‹์„ ๋จน์œผ๋‹ˆ, ๊ทธ๋ ‡์ง€์•Š์•„๋„ ์—ด์ด ๋งŽ์€๋ฐ, ๊ฑฐ๊ธฐ์—๋‹ค๊ฐ€ ์—ด์ด๋งŽ์€ ๊ฐ€๋ฌผ์น˜๋ฅผ ๋จน์–ด๋‹ˆ, ์—ด์—๋‹ค๊ฐ€ ๋˜์—ด์„ ๊ฐ€ํ•ด์„œ ์ด์ƒ์ด ์ƒ๊ฒผ๋‹ค.
๋ผ๊ณ  ๋ง์ด๋‹ค.
๊ทธ ์ฒ˜๋ฐฉ์€ ๋ผ์ง€์กฑ๋ฐœ ์ด์—ˆ๋‹ค.
๋ผ์ง€์ž์ฒด๊ฐ€ ๋ƒ‰ํ•˜๊ณ  ๊ธฐ์šด์ด ๋‚ด๋ ค๊ฐ€๋Š” ์Œ์‹์ด๊ณ , ๊ทธ ์ค‘์—์„œ๋„ ๊ฐ€์žฅ๋‚ฎ์€์œ„์น˜์— ์žˆ๋Š” ์กฑ๋ฐœ์„ ๋จน๊ฒŒํ•จ์œผ๋กœ์จ, ์—ด์„ ๋‚ด๋ฆฌ๊ณ  ์ •์ƒ์ ์ธ ์ˆ˜์œ ๊ฐ€ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ–ˆ๋‹ค๋Š” ๋‚ด์šฉ์ด๋‹ค.
์šฐ์œ ๋Š” ์†Œ์ –์ด๋‹ค.
์†Œ๋Š” ์ „์ง„๋งŒ์„ ํ• ์ˆ˜์žˆ๋‹ค.
์ด๋Ÿฐ ์†Œ๋Š” ์–‘์ ๊ธฐ์งˆ์„ ๊ฐ€์ง€๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ์šฐ์œ ๊ฐ€ ์ œ์ผ ์ž˜ ๋งž๋Š” ์‚ฌ๋žŒ์€, ์Œ์ธ์ด๋ผ ํ• ์ˆ˜์žˆ๊ฒ ๋‹ค.
ํƒœ์–‘์ธ์€ ๊ฐ„์ด ์•ฝํ•˜๊ณ  ํ๊ฐ€ ๊ฐ•ํ•˜๋‹ค.
๋”ฐ๋ผ์„œ, ํƒœ์–‘์ธ์˜ ํ‰์ƒ๋ณด์•ฝ์€ ๋ชจ๊ณผ๊ฐ€ ๋œ๋‹ค.
ํƒœ์Œ์ธ์€ ํ๊ฐ€ ์•ฝํ•˜๊ณ  ๊ฐ„์ด ๊ฐ•ํ•˜๋‹ค.
๋”ฐ๋ผ์„œ, ํƒœ์Œ์ธ์˜ ํ‰์ƒ๋ณด์•ฝ์€ ๋งค์‹ค์ด ๋œ๋‹ค.
์†Œ์–‘์ธ์€, ๋น„์žฅ์ด ๊ฐ•ํ•˜๊ณ , ์‹ ์žฅ์ด ์•ฝํ•˜๋‹ค ๋”ฐ๋ผ์„œ, ์†Œ์–‘์ธ์˜ ํ‰์ƒ๋ณด์•ฝ์€ ๊ตฌ๊ธฐ์ž๊ฐ€ ๋œ๋‹ค ์†Œ์Œ์ธ์€, ์‹ ์žฅ์ด ๊ฐ•ํ•˜๊ณ  ์œ„์žฅ์ด ์•ฝํ•˜๋‹ค.
๋”ฐ๋ผ์„œ, ์†Œ์Œ์ธ์˜ ํ‰์ƒ๋ณด์•ฝ์€ ํ™์‚ผ์ด ๋œ๋‹ค.
์–ด๋–ค ์Œ์‹์˜ ๊ทธ์ž์ฒด์˜ ์Œ์–‘์„ ์•Œ๊ณ , ์ž์‹ ์˜ ์ฒด์งˆ์„ ์ž˜ ์•Œ์•„์„œ ๋Œ€์ž…์„ ํ•˜๋ฉด, ๊ฑด๊ฐ•ํ•˜๊ฒŒ ์‚ด์ˆ˜์žˆ๋Š”๋ฐ ๋งŽ์€ ๋„์›€์ด๋ ๊ฒƒ์ด๋‹ค.

Sunday, October 9, 2011

[MySQL] Data Type: int(5)


Numeric Type Attributes

MySQL supports an extension for optionally specifying the display width of integer data types in parentheses following the base keyword for the type. For example, INT(4) specifies an INT with a display width of four digits. This optional display width may be used by applications to display integer values having a width less than the width specified for the column by left-padding them with spaces. (That is, this width is present in the metadata returned with result sets. Whether it is used or not is up to the application.)

The display width does not constrain the range of values that can be stored in the column. Nor does it prevent values wider than the column display width from being displayed correctly. For example, a column specified asSMALLINT(3) has the usual SMALLINT range of -32768 to 32767, and values outside the range permitted by three digits are displayed in full using more than three digits.

When used in conjunction with the optional (nonstandard) attribute ZEROFILL, the default padding of spaces is replaced with zeros. For example, for a column declared as INT(4) ZEROFILL, a value of 5 is retrieved as 0005.

Note

The ZEROFILL attribute is ignored when a column is involved in expressions or UNION queries.

If you store values larger than the display width in an integer column that has the ZEROFILL attribute, you may experience problems when MySQL generates temporary tables for some complicated joins. In these cases, MySQL assumes that the data values fit within the column display width.

All integer types can have an optional (nonstandard) attribute UNSIGNED. Unsigned type can be used to permit only nonnegative numbers in a column or when you need a larger upper numeric range for the column. For example, if an INT column is UNSIGNED, the size of the column's range is the same but its endpoints shift from -2147483648 and 2147483647 up to 0 and 4294967295.

Floating-point and fixed-point types also can be UNSIGNED. As with integer types, this attribute prevents negative values from being stored in the column. Unlike the integer types, the upper range of column values remains the same.

If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column.

Integer or floating-point data types can have the additional attribute AUTO_INCREMENT. When you insert a value ofNULL (recommended) or 0 into an indexed AUTO_INCREMENT column, the column is set to the next sequence value. Typically this is value+1, where value is the largest value for the column currently in the table.AUTO_INCREMENT sequences begin with 1.

Saturday, October 8, 2011

[SQL] JOIN


http://www.firebirdfaq.org/faq93/


What's the difference between LEFT, RIGHT, INNER, OUTER, JOIN?


The difference is in the way tables are joined if there are no common records.

JOIN is same as INNER JOIN and means to only show records common to both tables. Whether the records are common is determined by the fields in join clause. For example:

FROM t1
JOIN t2 on t1.ID = t2.ID

means show only records where the same ID value exists in both tables.

LEFT JOIN is same as LEFT OUTER JOIN and means to show all records from left table (i.e. the one that precedes in SQL statement) regardless of the existance of matching records in the right table.

RIGHT JOIN is same as RIGHT OUTER JOIN and means opposite of LEFT JOIN, i.e. shows all records from the second (right) table and only matching records from first (left) table.

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



These 3 mysql queries have the same results


mysql> SELECT name FROM animal WHERE id NOT IN (SELECT animal_id FROM animal_food);


mysql> SELECT name FROM animal LEFT JOIN animal_food ON animal.id=animal_id WHERE animal_id IS NULL;



mysql> SELECT name FROM animal WHERE NOT EXISTS (SELECT animal_id FROM animal_food WHERE animal.id=animal_id);



Friday, October 7, 2011

Eclipse Switching Tabs

Alternating File Tabs by pressing Ctrl + TAB

Even with many files open in the eclipse editor, only two files can be navigated alternatingly by Ctrl + TAB

To configure

    Windows -> Preferences -> General -> Keys

1. Unbind "Next Tab"
    Eclipse says that "Next Tab" is Switch to the next tab which I have no knowledge about

    Type in Next Tab to locate Next Tab and click on Unbind Command

Unbind Next Tab


2. Bind "Next Ed"
    Find it and bind a new command with "Ctrl + Tab"

Bind Next Editor


Two things will be noticed

1. While holding the Ctrl key, if the TAB key is pressed, then the previously worked file will be focused

    Let go off the Ctrl + TAB, and doing it again will focus on the previous file again

    So only two files will be alternatingly navigated without being bothered by others which are still open

    If a file tab is mouse-clicked, then it will become the current tab as if it was selected by Ctrl + Tab

2. If the Ctrl key is still being pressed, many TAB keys will navigate the files in the order they file names are buffered


* The alternating navigation between just the two files has nothing to do with "Previous Editor"

Bind Next Editor