知之者 不如好之子 好之者 不如樂之者 (dev1.egloos.com)-(seungmin.han@gmail.com,msn:hansv905@hotmail.com):칼날 위에 스다...xmp.div.ss
by -seungmin-
| 이글루스 | 로그인
rss

skin by -seungmin-


이전 블로그
2009년 06월
2009년 05월
2009년 04월
2009년 03월
2009년 02월
2009년 01월
2008년 12월
2008년 11월
2008년 10월
2008년 09월
2008년 08월
2008년 07월
2008년 06월
2008년 05월
2008년 04월
2008년 03월
2008년 02월
2008년 01월
2007년 12월
2007년 11월
2007년 10월
2007년 09월
2007년 08월
2007년 07월
2007년 06월
2007년 05월
2007년 04월
2007년 03월
2007년 02월
2007년 01월
2006년 12월
2006년 11월
2006년 10월
2006년 09월
2006년 07월
2006년 06월
2006년 05월
2006년 04월
2006년 03월
2006년 01월
2005년 12월
2005년 11월
2005년 10월
2005년 09월
2005년 08월
2005년 07월
2005년 06월
2005년 04월

즐겨찾기

[] web dev map

몇년 사이에 혁신이 일어났구나.

by -seungmin- | 2009/06/24 15:04 | _개발_part 1 | 트랙백 | 덧글(0)
[] 가상화 test OS

여러가지 OS를 이미지로 만들었다.
wmware에서 OS간에 test할때 사용하면 편할 듯.

깔끔하니 좋음
http://www.thoughtpolice.co.uk/vmware/

정리가 잘되있음
http://www.bagside.com/bagvapp/

vmware에서 하는 마켓같은데...찾기는 좋음

http://www.vmware.com/appliances/

by -seungmin- | 2009/06/19 14:53 | _개발_part 1 | 트랙백 | 덧글(0)
[] visual studio 2010 UI
visual studio 2010 UI

by -seungmin- | 2009/06/11 22:55 | _개발_part 1 | 트랙백 | 덧글(1)
[] Factory Pattern
#include
using namespace std;

class CGeneralStamp
{
public:
virtual Draw() = 0;

};

class CAStamp : public CGeneralStamp
{
public:
virtual Draw()
{
cout<<"A draw"< }
};

class CBStamp : public CGeneralStamp
{
public:
virtual Draw()
{
cout<<"B draw"< }
};


class CCStamp : public CGeneralStamp
{
public:
virtual Draw()
{
cout<<"C draw"< }
};

typedef enum
{
eSTAMP_A,
eSTAMP_B,
eSTAMP_C
}ESTAMPTYPE;

class CStampFactory
{
public:
static CGeneralStamp* Create(ESTAMPTYPE type);
};

CGeneralStamp* CStampFactory::Create(ESTAMPTYPE type)
{
switch(type)
{
case eSTAMP_A:
return new CAStamp;
case eSTAMP_B:
return new CBStamp;
case eSTAMP_C:
return new CCStamp;
}
return NULL;
}


void main()
{
ESTAMPTYPE type;
type = eSTAMP_A;

CGeneralStamp* gS = CStampFactory::Create(type);

gS->Draw();
delete gS;
}
by -seungmin- | 2009/05/11 15:08 | _개발_part 1 | 트랙백 | 덧글(0)
[] 안티에이징 10계명
① 먹는 양을 줄여라
    두끼만 먹음으로 pass
② 흡연과 과음을 삼가라
    술은 안하니깐
③ 충분한 수면을 취하라 
    늦어도 3시전에 잠자기    
④ 적당한 운동을 하라
    일주일 두번이상 런닝
⑤ 스트레스를 줄여라
    릴렉스 활용
⑥ 긍정적인 마음을 가져라
    긍정적이므로 pass
⑦ 행복한 성생활을 즐겨라
    결혼해서 즐기면 됨
⑧ 골고루 섭취 깨끗한 물 마셔라
    잘먹음으로 pass 물은 좋은걸로 시켜먹어야겠군..
⑨ 성인병위험 줄이고 노후대비
    노후대비라...
⑩ 안티에이징 정보에 귀 '쫑긋'
    ok
by -seungmin- | 2009/05/06 19:28 | _인생_part 2 | 트랙백 | 덧글(0)
[] 만능 청약통장 탄생
진작에 이런걸 만들었어야지 쯧쯧.
바로 예약가입 +_+

by -seungmin- | 2009/04/22 00:13 | _인생_part 2 | 트랙백 | 덧글(0)
[] APM에러 대응 설치

1) Configure: error: xml2-config not found. Please check your libxml2 installation.

#yum install libxml2-devel


2) Checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's

#yum install openssl-devel


3) Configure: error: Please reinstall the BZip2 distribution

# yum install bzip2-devel


4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

# yum install curl-devel


5) Configure: error: libjpeg.(also) not found.

# yum install libjpeg-devel


6) Configure: error: libpng.(also) not found.

# yum install libpng-devel


7) Configure: error: freetype.h not found.


#yum install freetype-devel


8) Configure: error: Unable to locate gmp.h

# yum install gmp-devel


9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!

# yum install mysql-devel


10) Configure: error: Please reinstall the ncurses distribution

# yum install ncurses-devel


11) Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!

# yum install unixODBC-devel


12) Configure: error: Cannot find pspell

# yum install pspell-devel


13) Configure: error: snmp.h not found. Check your SNMP installation.

# yum install net-snmp-devel
by -seungmin- | 2009/04/16 21:14 | _Linux | 트랙백 | 덧글(0)
[] fast yum
fast yum

yum -y install yum-fastestmirror
by -seungmin- | 2009/04/16 20:30 | _Linux | 트랙백 | 덧글(0)
[] 소스 백업 php
매일 8시 정각에 해당 스크립트 실행

# vi /etc/crontab
00 8 * * * root /usr/local/bin/php /root/bin/home_backup.php > /dev/null 2>&1



######## home_backup.php ##############

#!/usr/local/bin/php -q
<?php
// 기본 설정
$backup_dir = "/back";
$source_dir = "/home";
$back_save = 5; // 5일간 보관

// 새로운 디렉토리 생성
$date = date('Ymd', time());
$backup_path = sprintf("%s/%s", $backup_dir, $date);
if (!file_exists($backup_path)) {
        system(sprintf("mkdir %s", $backup_path));
}

// 압축할 디렉토리로 이동
chdir($source_dir);

// 해당 디렉토리 압축
$dirs = opendir($source_dir);
while ($file = readdir($dirs)) {
        if ($file == '.' || $file == '..') continue;
        system(sprintf("tar cvfzp %s/%s.tar.gz  %s", $backup_path, $file, $file));
}

// 5일 지난  데이타 삭제
$prev_date = date('Ymd', strtotime("-$back_save day $date"));
if (file_exists($backup_dir.'/'.$prev_date)) {
        system(sprintf("rm -rf %s/%s", $backup_dir, $prev_date));
}
?>
by -seungmin- | 2009/04/15 14:51 | _Linux | 트랙백 | 덧글(0)
◀ 이전 페이지 다음 페이지 ▶