삶을 바꾸는 책읽기
[구매하기] 아내의 강추로 삶을 바꾸는 책읽기를 읽었다. (아내의 글 003:) 삶을 바꾸는 책 읽기를 참고) 작가인 정혜윤씨는 세상을 바꾸는 시간 15분(이후 세바시)에서 처음 봤었다.. 세바시에는 말도 두서없고 너무 정신이 없어서 좀 이상한 여자로 봤었는데, 책을 읽고 나서 그 내공과 … Continue reading
[구매하기] 아내의 강추로 삶을 바꾸는 책읽기를 읽었다. (아내의 글 003:) 삶을 바꾸는 책 읽기를 참고) 작가인 정혜윤씨는 세상을 바꾸는 시간 15분(이후 세바시)에서 처음 봤었다.. 세바시에는 말도 두서없고 너무 정신이 없어서 좀 이상한 여자로 봤었는데, 책을 읽고 나서 그 내공과 … Continue reading
정리의 기술 4단계 1. 정리의 목적을 분명히 한다 정리할 공간이 무엇을 위해 사용되는 지 어떠한 이유로 정리를 하는것인지 생각 큰그림을 먼저그리면 목적과 먼물건을 빠르게 정리할수 있다. 2. 물건을 분류한다. 스스로의 기준에 비추어 버릴것과 남길것을 선택 목저고이의 물건, 목적에 맞더라고 … Continue reading
[구매하기] 만들면서 배우는 기계 학습 1장 기계 학습이란 1.1 기계 학습의 역사 기계 학습 : 컴퓨터나 로봇처럼 생물이 아닌것이 하는 학습 학습 : 어떤 과정으로 내부상태를 변화시키는 행동 주어진 조건을 일반화 하거나 구체적인 사례에서 법칙을 끄집어내 내부상태를 변경하는 학습 … Continue reading
Hadoop 의 HA 구성 때문에 Avatar Node 를 검토하던중에, Cloudera 에서 배포된 CDH4.1에 quorum-based journal node에 대해서 알게 되었다. http://touk.pl/blog/en/2012/10/30/hadoop-ha-setup/ https://ccp.cloudera.com/display/CDH4DOC/CDH4+Installation https://ccp.cloudera.com/display/SUPPORT/CDH4+Downloadable+Tarballs https://ccp.cloudera.com/download/attachments/21438336/CDH4_High_Availability_Guide_4.1.pdf?version=3&modificationDate=1349301318000 영문으로 보기가 벅차서 누가 번역하지 않았을까 해서 찾아보니 역시!! http://charsyam.wordpress.com/2012/11/02/%EB%B0%9C-%EB%B2%88%EC%97%AD-quorum-based-journaling-in-cdh4-1/ 그리도 이미 설치해보신 분들도 있다. http://geekdani.wordpress.com/2012/12/22/hadoop-2-0-journal-node-%EC%84%A4%EC%B9%98/ … Continue reading
구글 drive api 사용기 python 구글 drive api 홈페이지 : https://developers.google.com/drive/ 죄측 메뉴 Quickstart > python : https://developers.google.com/drive/quickstart-python 비디오 https://developers.google.com/drive/quickstart-python#optional_view_a_quickstart_video 1단계 : Enable the Drive API 1. Create an API project in the Google APIs Console. 2. Select the Services … Continue reading
svn 리파지토리를 웹으로 봐야 하는 일이 생겼다. 그래서 리파지토리 뷰를 위해 websvn 을 설치해보았다. 1. WebSVN 다운로드 – http://websvn.tigris.org 2. WebSVN 압축 해제
1 2 3 4 |
$ tar zxvf websvn-2.3.3.tar.gz $ mv websvn-2.3.3 /var/www $ cd /var/www $ ln -s ./websvn-2.3.3 websvn |
3. config.php 수정
1 2 3 4 5 6 7 |
$ cd websvn/include $ cp distconfig.php config.php $ vi config.php ... $config->parentPath('/svnrepos'); // svn 프로젝트 폴더 설정 $config->expandTabsBy(4); // tab 간격을 4로 지정 ... |
4. command.php 수정
1 2 3 4 5 6 |
$ vi config.php ... function detectCharacterEncoding($str) { $list = array(/*'ASCII',*/ 'UTF-8', 'ISO-8859-1'); -> $list = array(/*'ASCII',*/ 'UTF-8', 'EUC-KR', 'ISO-8859-1'); // 소스 한글(EUC-KR) ... |
5. 인증은 apache의 기본인증을 사용하기 위해 passwd … Continue reading
블로그 이전을 하면서 기존링크를 새로운 blog로 연결시키기위해 좋은 방법이 없을까 고민하다가 .htaccess을 사용하기로 했다. 간단하게 htaccess의 사용법을 정리하면..
1 |
RewriteEngine On |
-> Rewrite 모듈 호출
1 2 |
RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(abc\.php) cba.php [L] |
-> RewriteCond 조건이 맞으면 RewriteRule을 적용한다는 의미 즉, 위의 2줄의 의미는 “만약 요청한 파일이 있다면 … Continue reading
nexus 설치 및 설정 URL : http://www.sonatype.org/nexus/go Download Nexus 2.3.0 설치 및 서비스 포트 변경
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
]$ wget http://www.sonatype.org/downloads/nexus-2.3.0-04-bundle.tar.gz ]$ tar xvzf nexus-2.3.0-04-bundle.tar.gz ]$ cd nexus-2.3.0-04 ]$ vi conf/nexus.properties ... # Jetty section application-port=8090 application-host=0.0.0.0 nexus-webapp=${bundleBasedir}/nexus nexus-webapp-context-path=/nexus ... ]$ ./bin/nexus start Starting Nexus OSS... Started Nexus OSS. |
관리자웹 로그인 http://domain:8090/nexus/ Username: admin Password: admin123 기본설정 Administration > Server 에서 Anonymous Access에서 체크를 풀어서 로그인 안하면 못들어오도록 설정 Security > user … Continue reading
mysql DB별 또는 Table별 사용량(Size) 확인 1. Database 별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임)
1 2 3 4 5 6 7 8 9 10 |
SELECT count(*) NUM_OF_TABLE, table_schema,concat(round(sum(table_rows)/1000000,2),'M') rows, concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA, concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx, concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size, round(sum(index_length)/sum(data_length),2) idxfrac FROM information_schema.TABLES GROUP BY table_schema ORDER BY sum(data_length+index_length) DESC LIMIT 10; |
2. 테이블별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임)
1 2 3 4 5 6 7 8 9 10 |
SELECT table_name, table_rows, round(data_length/(1024*1024),2) as 'DATA_SIZE(MB)', round(index_length/(1024*1024),2) as 'INDEX_SIZE(MB)' FROM information_schema.TABLES where table_schema = 'dbname' GROUP BY table_name ORDER BY data_length DESC LIMIT 10; |
mysql replication 구성 1. mysql rpm 설치 mysql 홈페이지에서 최신버전 다운로드 http://www.mysql.com/downloads/mysql/ MySQL Community Server 5.5.20 – Linux – Generic 우리가 필요한 Client Utilities와 MySQL Server를 받는다. (MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm) Master에 Mysql rpm으로 설치
1 2 3 4 5 6 7 |
Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing... ########################################### [100%] 1:MySQL-server ########################################### [100%] ... Master]# rpm -ivh MySQL-client-5.5.20-1.linux2.6.x86_64.rpm Preparing... ########################################### [100%] 1:MySQL-client ########################################### [100%] |
Slave에 Mysql rpm으로 설치
1 2 3 4 |
Slave]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm error: Failed dependencies: MySQL conflicts with mysql-5.0.95-1.el5_7.1.x86_64 MySQL conflicts with mysql-5.0.95-1.el5_7.1.i386 |