Category Archives: Development

mysql DB별 또는 Table별 사용량(Size) 확인

  mysql DB별 또는 Table별 사용량(Size) 확인 1. Database 별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임) 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 … Continue reading

Posted in Database | Tagged , , | Leave a comment

mysql replication 구성

  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으로 설치 Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing… ########################################### … Continue reading

Posted in Database | Tagged , , | 2 Comments

mysql의 grant를 이용해 사용자 추가하기

  mysql의 사용자를 추가하기 위해서 mysql db의 user table에 insert를 하곤했다. 하지만 이 방법은 insert 구문을 작성하는 게 여간 번거로운게 아니다.. 특히 Y를 몇개 했는지 자꾸 세어보게 되는…ㅡㅡ; 그럴때는 아래와 같이 grant 문을 사용해서 하면 편하다. mysql> grant all privileges … Continue reading

Posted in Database | Tagged , , | Leave a comment

Javascript Visualization Library

  Javascript Visualization Library 참고.. 16 Javascript Libraries for Visualizations : http://datavisualization.ch/tools/13-javascript-libraries-for-visualizations/ Choice Free JavaScript Data Visualization Library : http://kraskniga.blogspot.kr/2012/05/choice-free-javascript-data.html 20 Fresh JavaScript Data Visualization Libraries : http://sixrevisions.com/javascript/20-fresh-javascript-data-visualization-libraries/ Dojo GFX : http://dojotoolkit.org/features/graphics-and-charting gRaphael : http://g.raphaeljs.com/ Google Chart Tools : https://google-developers.appspot.com/chart/interactive/docs/index … Continue reading

Posted in Bigdata/Hadoop, Javascript/Html | Tagged , , | Leave a comment

hadoop-장애(Name node is in safe mode.)

  회사에 정전이 일어났다. hadoop 개발 장비가 모두 꺼졌다.. 재부팅을 하고 hadoop namenode 를 구동하니 아래와 같은 에러 발생… 2013-01-03 08:30:29,803 INFO org.apache.hadoop.mapred.JobTracker: problem cleaning system directory: hdfs://namenode:9000/data1/hadoop/filesystem/mapreduce/system org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /data1/hadoop/filesystem/mapreduce/system. Name node is in safe mode. The … Continue reading

Posted in Bigdata/Hadoop | Tagged , , , | Leave a comment

아이폰 앱 해킹그룹 해큘러스 해체와 내생각…

  주제 : 아이폰 앱 해킹그룹 해큘러스 해체 URL : http://www.bloter.net/archives/139385 1. 기억에 남는 문구 / 질문 pass 2. 요약 아이폰 사용자가 탈옥을 하는 주된 이유는 1. 세세한 설정 2. 앱 다운로드(cydia) 해큘러스가 해체된 이유는 ‘유지가 어렵게 됐다’(difficult to keep)는 … Continue reading

Posted in Etc, Security/Hacking | Tagged | Leave a comment

GitHub(깃허브)와 프로그래밍의 민주화와 내생각…

  주제 : GitHub(깃허브)와 프로그래밍의 민주화 URL : http://www.looah.com/article/view/866 1. 기억에 남는 문구 / 질문 / 생각 프로그래밍이 민주화되고 있다 CVS와 SVN은 중앙집중형 버전 컨트롤 시스템으로, 중앙 서버 없이는 아무 것도 할 수 없다 Git은 다르다. 이것은 분산형 버전 컨트롤 … Continue reading

Posted in Etc, SCM/ITS | Tagged , , | Leave a comment

python mysql 연동

  설치 하기 전에 python 버전을 확인. [root@test install]# python -V Python 2.4.3 MySQL-python 을 사용하려고 하는데, MySQL-python 은 2.4-2.7버전을 지원. http://sourceforge.net/projects/mysql-python/ 의 아래부분 참고. * Python versions 2.4-2.7; Python 3 support coming soon. 필요한 라이브러리를 설치. [root@test install]# yum … Continue reading

Posted in Python/Ruby/Perl | Tagged , , | 1 Comment

python 개발환경 설정

  1. python 설치 http://www.python.org/ 다운로드 > 릴리즈 > Python 2.5.6 > 2.5.4 다운로드(http://www.python.org/download/releases/2.5.4/) 2. eclipse 설치 http://eclipse.org/ 다운로드 > Eclipse Classic 4.2 다운로드 pydev plugin 설치 : http://pydev.org/updates svn plugin 설치 : http://subclipse.tigris.org/update_1.8.x/ Python 인터프린터 설정 : 이클립스메뉴 > … Continue reading

Posted in Python/Ruby/Perl, Util/Tools | Tagged , , , | Leave a comment