2014년 8월 29일 금요일

about google API

 * google drive API open a service for development https://console.developers.google.com/project document for python https://developers.google.com/drive/web/quickstart/quickstart-python -- sample copy a document to gdrive #!/usr/bin/python #Copy a document to google drive. import httplib2 import pprint from apiclient.discovery import build from...

2014년 8월 20일 수요일

Image analysis with Python

1. matplotlib ( is a python 2D plotting library )  - site (api) http://matplotlib.org/api/pyplot_api.html 2. opencv (is an open source computer vision and machine learning software library.)  - site (api) http://opencv.org/  - template matching http://docs.opencv.org/doc/tutorials/imgproc/histograms/template_matching/template_matching.html#which-are-the-matching-methods-available-in-opencv 3....

2014년 8월 18일 월요일

somethings about linux

Referred link: http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/ Step 1: Enable Google YUM repository Create a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to it. [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub Step...

2014년 8월 12일 화요일

for using Postgres-XL

INSTALL -- init each instances initgtm -Z gtm -D /var/lib/pgxl/9.2/data_gtm initdb -D /var/lib/pgxl/9.2/coord01 --nodename coord01 initdb -D /var/lib/pgxl/9.2/data01 --nodename data01 initdb -D /var/lib/pgxl/9.2/data02 --nodename data02 -- start each instances gtm_ctl -Z gtm...

2014년 8월 8일 금요일

sample code for collecting a data.

1. data collection using python # python library for pulling data out of html or xml # http://www.crummy.com/software/BeautifulSoup/bs4/doc/index.html -- pulling_data.py import codecs import urllib2 from bs4 import BeautifulSoup f = urllib2.urlopen('http://www.daum.net') html_doc = f.read() soup = BeautifulSoup(html_doc) # for hangul with codecs.open('result_daum.txt','w',encoding='utf8')...

sample code to control the data in hadoop framework.

1. flume -- fox.conf # Name the components on this agent # fox -> zoo -> koala agent.sinks = koala agent.sources = fox agent.channels = zoo # Describe/configure the source agent.sources.fox.type = spooldir agent.sources.fox.spoolDir = /home/flume/dump # Describe the sink agent.sinks.koala.type = hdfs agent.sinks.koala.hdfs.path = /flume/events agent.sinks.koala.hdfs.fileType...

Popular Baby Names Top 50 since 1980

I am studying about data analysis with R. First I thought how many people used my name and else. The word cloud showed me a best visualization. The histogram plot about my name - Mark. R code tested by R version 3.1.1, RStudio Version 0.98.978 # national poplular...