<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>plusHa</title>
	<atom:link href="http://plusha.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://plusha.com</link>
	<description>in the light</description>
	<lastBuildDate>Mon, 06 Jul 2009 07:25:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>ko</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/cef3ecdfc41fd0de73c05ae06d1d89f5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>plusHa</title>
		<link>http://plusha.com</link>
	</image>
			<item>
		<title>Quick backup</title>
		<link>http://plusha.com/2009/04/14/quick-backup/</link>
		<comments>http://plusha.com/2009/04/14/quick-backup/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 05:07:29 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/04/14/quick-backup/</guid>
		<description><![CDATA[수치해석을 위한 프로그래밍을 주로 하는 제 경험상 프로그램들을 크게 수정하기 전후로 backup을 해야겠는데 CVS, Subversion, Git과 같은 version관리 프로그램은 쓰기가 거추장스럽더군요. 그렇다고 매번 복사하기는 귀찮고 해서 빠르고 간단하게 backup 할 수 있는 python script를 작성하여 사용하고 있습니다. quickBackup.py라는 script로, 실행하면 현재 디렉토리 아래에 ./bak라는 디렉토리를 만들고 파일을 backup해줍니다. 파일 이름이 source.f90일 경우 ./bak/source.bak01.f90 과 같이 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=229&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>수치해석을 위한 프로그래밍을 주로 하는 제 경험상 프로그램들을 크게 수정하기 전후로 backup을 해야겠는데 <a href="http://www.nongnu.org/cvs/" target="_blank">CVS</a>, <a href="http://subversion.tigris.org/" target="_blank">Subversion</a>, <a href="http://git-scm.com/" target="_blank">Git</a>과 같은 version관리 프로그램은 쓰기가 거추장스럽더군요. 그렇다고 매번 복사하기는 귀찮고 해서 빠르고 간단하게 backup 할 수 있는 python script를 작성하여 사용하고 있습니다. <a href="http://sites.google.com/site/libgpl/Home/files/quickBackup.py?attredirects=0" target="_blank">quickBackup.py</a>라는 script로, 실행하면 현재 디렉토리 아래에 ./bak라는 디렉토리를 만들고 파일을 backup해줍니다. 파일 이름이 source.f90일 경우 ./bak/source.bak01.f90 과 같이 복사를 하는 것이죠.</p>
<p>Backup 파일 이름은 option으로 조절할 수 있고, 자동으로 log file을 만들어 언제 어떤 파일을 backup했는지 알려줍니다. 원한다면 backup하면서 간단한 comment도 달 수 있습니다. 가장 마지막에 backup한 파일과 지금 backup하려는 파일이 동일할 경우에는 backup하지 않습니다. 한번에 여러 개의 파일을 backup할 수도 있습니다.^^</p>
<p>&#160;</p>
<blockquote><p>Gpl Quick Backup     <br />&#160;&#160;&#160; make &#8216;./bak&#8217; directory and backup files      <br />Usage :      <br />&#160;&#160;&#160; quickBackup.py [-h/-b/-t] filename</p>
<p>Required parameters :     <br />&#160;&#160;&#160; filename </p>
<p>Optional parameters :&#160; <br />&#160;&#160;&#160; -h&#160;&#160; : place backup number at head ( bak01.filename.extension )      <br />&#160;&#160; -b&#160;&#160; : place backup number between filename and extension ( filename.bak01.extension )      <br />&#160;&#160;&#160; -t&#160;&#160; : place backup number at tail ( filename.extension.bak01 )      <br />&#160;&#160;&#160; ** default : -b      <br />&#160;&#160;&#160; -c&#160;&#160; : add comment to the log file ( ./bak/quickBackup.log ) </p>
<p>Examples :     <br />&#160;&#160;&#160; quickBackup.py file1.f90 file2.f      <br />&#160;&#160;&#160; (edit file1.f90)      <br />&#160;&#160;&#160; quickBackup.py file1.f90      <br />&#160;&#160;&#160; ls ./bak      <br />&#160;&#160;&#160; -&gt; file1.bak01.f90&#160; file1.bak02.f90&#160; file2.bak01.f&#160; quickBackup.log</p>
</blockquote>
 Tagged: backup, Linux, Python <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/229/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=229&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/04/14/quick-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>
	</item>
		<item>
		<title>Backup script</title>
		<link>http://plusha.com/2009/03/07/backup-script/</link>
		<comments>http://plusha.com/2009/03/07/backup-script/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 05:20:18 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shellscript]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/03/07/backup-script/</guid>
		<description><![CDATA[1. gplBackup.sh
이 스크립트는 실수로 rm * 또는 rm –rf * 등의 명령을 내려 작업중인 source code를 삭제했을 때 복구할 수 있도록 파일들을 주기적으로 backup하는 스크립트입니다. 이 스크립트와 cron 명령을 함께 사용하게 되는데, 사용하기 위한 설정 과정은 다음과 같습니다.
1) 위의 스크립트를 Backup하고자 하는 디렉토리들이 있는 가장 상위의 디렉토리에 복사합니다.
예를 들어, /home/userid/codes/modeling과 /home/userid/codes/inversion 두 개의 디렉토리를 backup하고 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=216&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>1. <a href="http://sites.google.com/site/libgpl/Home/files/gplBackup.sh" target="_blank">gplBackup.sh</a></strong></p>
<p>이 스크립트는 실수로 rm * 또는 rm –rf * 등의 명령을 내려 작업중인 source code를 삭제했을 때 복구할 수 있도록 파일들을 주기적으로 backup하는 스크립트입니다. 이 스크립트와 cron 명령을 함께 사용하게 되는데, 사용하기 위한 설정 과정은 다음과 같습니다.</p>
<p>1) 위의 스크립트를 Backup하고자 하는 디렉토리들이 있는 가장 상위의 디렉토리에 복사합니다.</p>
<p>예를 들어, /home/userid/codes/modeling과 /home/userid/codes/inversion 두 개의 디렉토리를 backup하고 싶을 때 위 스크립트를 다음의 디렉토리에 복사합니다.</p>
<p>/home/userid/codes/gplBackup.sh</p>
<p>2) 스크립트를 수정하여 backup하고자 하는 디렉토리와 확장자, backup에서 제외하고자 하는 디렉토리를 설정합니다.</p>
<p>Backup할 디렉토리는 dirList라는 배열에 저장합니다. Backup은 recursive하게 수행되기 때문에 subdirectory들 중 제외하고 싶은 디렉토리가 있을 경우, excDirList에 제외하고 싶은 디렉토리명을 써줍니다. Backup은 확장자나 파일명을 기준으로 하게 됩니다. Backup하고 싶은 확장자나 파일명을 extList라는 배열에 적어줍니다. 마지막으로 backupdir 이라는 변수에 backup한 파일들이 들어갈 디렉토리명을 적어주면 기본적인 스크립트 수정이 끝나게 됩니다.</p>
<p>예&gt; backupdir = “/home/userid/codes/backup”</p>
<p>여기 적은 디렉토리는 미리 만들어 놓도록 합니다.</p>
<p>3) crontab -e로 crontab 파일 연 다음 아래의 줄을 추가합니다.</p>
<blockquote><p>10 * * * * /home/userid/codes/gplBackup.sh</p></blockquote>
<p>위의 6개의 항목이 의미하는 바는 다음과 같습니다.</p>
<p>분, 시, 일, 달, 요일, 실행 명령</p>
<p>따라서 위의 명령은 매 달, 매 일, 매 시 10분에 backup 스크립트를 실행하라는 명령입니다. 위의 줄을 추가한 후에는 crontab -l로 위의 줄이 추가되었는지 확인할 수 있습니다. 여기까지 해 놓으면 설정이 끝납니다.</p>
<p>위의 스크립트는 매 시 10분에 해당 디렉토리의 해당 파일들을 backup하고 스크립트 40번째 줄에 지정된 시간이 되면 디스크 용량 절약을 위해 지금까지 backup했던 파일들을 삭제합니다. 매일 지정된 시간에 생성된 파일은 남겨둡니다. 지정된 시간에 생성된 파일은 이름이 다릅니다. 기본적으로 매 시간 생성되는 파일은 “backup20090307-1210.tgz” 와 같은 이름을 가지고, 지정된 시간에 생성되는 파일은 “Backup.20090307-1510.tgz”와 같은 이름을 가집니다.</p>
<p><strong>주의사항</strong>) 위 스크립트는 rm *과 같은 상황에 대비하기 위해 만든 것이기 때문에 되도록이면 주로 작업하는 code들만 backup하도록 하세요. 현재 컴퓨터에 있는 source code를 전부 backup하고 싶은 경우에는 아래의 gplFullBackup 스크립트를 사용합시다.</p>
<p>또, 공용 서버를 사용하는 경우, 위의 10분이라고 나온 예에서 10분을 27분, 38분과 같이 다른 사람들이 안 쓸 것 같은 시간으로 바꾸세요. 모두가 같은 시간에 backup하도록 한다면 그 시간에 컴퓨터에 많은 부하가 걸리겠죠.</p>
<p><strong>2. <a href="http://sites.google.com/site/libgpl/Home/files/gplFullBackup.sh" target="_blank">gplFullBackup.sh</a></strong></p>
<p>이 스크립트는 위의 스크립트와 유사한데, 매 시간 실행되는 것이 아니라 사용자가 직접 실행하도록 만든 스크립트입니다. 실행하면 “./backup/FullBackup20090226-1536.tgz” 과 같은 파일을 만들어줍니다.</p>
 Tagged: backup, Linux, Shellscript <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=216&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/03/07/backup-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>
	</item>
		<item>
		<title>30 boxes</title>
		<link>http://plusha.com/2009/02/28/30-boxes/</link>
		<comments>http://plusha.com/2009/02/28/30-boxes/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 07:24:10 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[30boxes]]></category>
		<category><![CDATA[calendar]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/02/28/30-boxes/</guid>
		<description><![CDATA[최근 30 boxes라는 site를 이용하고 있다. 일정 관리하는 프로그램이 하나 필요해서 Outlook, Google Calendar, Windows live calendar 등을 써보다가 다 별로 마음에 안 들던 차에 30 boxes라는 site를 알게 되었다. 단순하게 보이지만 달력 기능에 충실하고, todo list와 api도 지원하며 blog에 올린 글이나 rss등도 관리할 수 있는 site였다. 최근 site 관리자의 활동이 좀 뜸한 듯 하긴 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=210&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>최근 <a href="http://30boxes.com/" target="_blank">30 boxes</a>라는 site를 이용하고 있다. 일정 관리하는 프로그램이 하나 필요해서 Outlook, <a href="http://calendar.google.com" target="_blank">Google Calendar</a>, <a href="http://calendar.live.com/" target="_blank">Windows live calendar</a> 등을 써보다가 다 별로 마음에 안 들던 차에 <a href="http://30boxes.com/" target="_blank">30 boxes</a>라는 site를 알게 되었다. 단순하게 보이지만 달력 기능에 충실하고, todo list와 api도 지원하며 blog에 올린 글이나 rss등도 관리할 수 있는 site였다. 최근 site 관리자의 활동이 좀 뜸한 듯 하긴 하지만, 결국 30 boxes를 선택했다. 매번 접속해서 확인하는 것은 귀찮기 때문에 항상 사용하는 Linux terminal에서 확인할 수 있는 프로그램이 있나 찾아봤다. 하지만 그런 프로그램이 없어서 30 boxes api를 이용하는 command line program을 직접 작성해서 사용하고 있다. 참 잘 만든 site라 생각한다.</p>
<p style="text-align:center;"><a href="http://plusha.files.wordpress.com/2009/02/30boxes.jpg"><img class="aligncenter" style="display:inline;border:0;" title="30boxes" src="http://plusha.files.wordpress.com/2009/02/30boxes-thumb.jpg?w=380&#038;h=349" border="0" alt="30boxes" width="380" height="349" /></a></p>
 Tagged: 30boxes, calendar <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=210&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/02/28/30-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2009/02/30boxes-thumb.jpg" medium="image">
			<media:title type="html">30boxes</media:title>
		</media:content>
	</item>
		<item>
		<title>Application launcher</title>
		<link>http://plusha.com/2009/02/28/application-launcher/</link>
		<comments>http://plusha.com/2009/02/28/application-launcher/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 06:40:23 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[application launcher]]></category>
		<category><![CDATA[Find And Run Robot]]></category>
		<category><![CDATA[Launchy]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/02/28/application-launcher/</guid>
		<description><![CDATA[한동안 windows에서 여러 개의 application launcher들을 설치해서 사용해봤다.
처음에는 Rocket Dock이나 Object Dock과 같은 docking program들을 사용했었다. Rocket dock이 더 안정적이었으나, Object dock에서 taskbar 기능을 제공했기에 taskbar를 숨기고 Object dock을 사용했다.
그러다가 Launchy를 발견했다. 마우스보다는 키보드를 사용하여 작업하는 것을 선호하는 나에게 딱 좋은 프로그램이었다. 잠깐 Launchy를 사용하다가 Launchy와 유사하고 더 많은 기능을 제공하는 Find And Run Robot(FARR)을 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=205&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>한동안 windows에서 여러 개의 application launcher들을 설치해서 사용해봤다.</p>
<p>처음에는 <a href="http://rocketdock.com/" target="_blank">Rocket Dock</a>이나 <a href="http://www.objectdock.com/" target="_blank">Object Dock</a>과 같은 docking program들을 사용했었다. Rocket dock이 더 안정적이었으나, Object dock에서 taskbar 기능을 제공했기에 taskbar를 숨기고 Object dock을 사용했다.</p>
<p>그러다가 <a href="http://www.launchy.net/" target="_blank">Launchy</a>를 발견했다. 마우스보다는 키보드를 사용하여 작업하는 것을 선호하는 나에게 딱 좋은 프로그램이었다. 잠깐 Launchy를 사용하다가 Launchy와 유사하고 더 많은 기능을 제공하는 <a href="http://www.donationcoder.com/Software/Mouser/findrun/" target="_blank">Find And Run Robot</a>(<a href="http://www.donationcoder.com/Software/Mouser/findrun/" target="_blank">FARR</a>)을 발견하게 되었다. FARR 또한 훌륭한 프로그램이고, Launchy보다 다양한 plugin들을 제공해줘서 FARR을 사용했다.</p>
<p>하지만, 쓰다 보니 FARR은 자체 인터넷 브라우저까지 제공하느라 그런지 메모리 소비량이 Launchy보다 좀 더 많았다. Launchy는 application list를 저장해놓고 그 list에서만 검색하기 때문에 빠른 반면 list를 update해줄 필요가 있다. FARR은 typing하는 순간 컴퓨터를 검색하기 때문에 항상 최신의 정보를 이용하는 대신 Launchy보다는 느렸다. 각각 장단점이 있겠으나, 나는 결국 Launchy를 선택하였고, 매일 Launchy를 사용하고 있다.</p>
<p><a href="http://plusha.files.wordpress.com/2009/02/launchy.jpg"><img title="launchy" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="96" alt="launchy" src="http://plusha.files.wordpress.com/2009/02/launchy-thumb.jpg?w=244&#038;h=96" width="244" border="0" /></a></p>
 Tagged: application launcher, Find And Run Robot, Launchy <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=205&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/02/28/application-launcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2009/02/launchy-thumb.jpg" medium="image">
			<media:title type="html">launchy</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding a new hard disk to Linux</title>
		<link>http://plusha.com/2009/02/28/adding-a-new-hard-disk-to-linux/</link>
		<comments>http://plusha.com/2009/02/28/adding-a-new-hard-disk-to-linux/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 06:12:55 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/02/28/adding-a-new-hard-disk-to-linux/</guid>
		<description><![CDATA[1. 리눅스에서 하드 추가하는 법
컴퓨터를 끄고 하드를 추가하고 bios에서 하드가 인식되는 것을 확인한 후 부팅합니다. Root 계정으로 로그인한 후,
# /sbin/fdisk -l
로 새 하드가 추가된 것을 확인합니다(예 /dev/sdc).
# /sbin/fdisk
를 실행하여 추가된 하드 디스크에 새로운 partition을 만듭니다. 새 파티션을 만드는 명령은 &#8216;n&#8217;이고 새 파티션을 쓰는 명령은 &#8216;w&#8217;입니다.
# /sbin/mkfs.ext3 /dev/sdc
로 새 파티션을 포맷합니다.
# mkdir /u1
과 같이 새 하드디스크를 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=202&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>1. 리눅스에서 하드 추가하는 법</p>
<p>컴퓨터를 끄고 하드를 추가하고 bios에서 하드가 인식되는 것을 확인한 후 부팅합니다. Root 계정으로 로그인한 후,<br />
# /sbin/fdisk -l<br />
로 새 하드가 추가된 것을 확인합니다(예 /dev/sdc).<br />
# /sbin/fdisk<br />
를 실행하여 추가된 하드 디스크에 새로운 partition을 만듭니다. 새 파티션을 만드는 명령은 &#8216;n&#8217;이고 새 파티션을 쓰는 명령은 &#8216;w&#8217;입니다.<br />
# /sbin/mkfs.ext3 /dev/sdc<br />
로 새 파티션을 포맷합니다.<br />
# mkdir /u1<br />
과 같이 새 하드디스크를 마운트할 directory를 만듭니다.<br />
# mount -t ext3 /dev/sdc1 /u1<br />
과 같이 마운트합니다.<br />
/etc/fstab 파일에<br />
/dev/sdc1               /u1           ext3    defaults        1 2<br />
과 같이 추가해줍니다. 끝.</p>
<p>2. 리눅스에서 네트워크 하드 디스크를 마운트하는 법</p>
<p>node01에 위의 하드를 추가했을 때, 위의 하드를 node02에도 마운트하는 법은 다음과 같습니다.<br />
node01에서 /etc/exports 파일에 다음과 같이 추가해줍니다.<br />
/u1     *(rw,no_root_squash)<br />
여기서 *은 허용하는 ip 주소입니다. 그리고<br />
# /usr/sbin/exportfs<br />
# /etc/init.d/nfs restart<br />
를 실행합니다.<br />
다음에는 node02로 가서(rsh)<br />
# mount -t nfs -o nolock node01:/u1 /u1<br />
을 실행합니다. 끝.</p>
<p>참고할만한 파일들<br />
/etc/fstab<br />
/etc/mtab<br />
/proc/mount</p>
 Tagged: Linux <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=202&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/02/28/adding-a-new-hard-disk-to-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>
	</item>
		<item>
		<title>SCI Journal impact factor</title>
		<link>http://plusha.com/2009/02/05/sci-journal-impact-factor/</link>
		<comments>http://plusha.com/2009/02/05/sci-journal-impact-factor/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 13:14:33 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[impact factor]]></category>
		<category><![CDATA[journal]]></category>
		<category><![CDATA[SCI]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/02/05/sci-journal-impact-factor/</guid>
		<description><![CDATA[SCI Journal의 impact factor 찾아보기
ISI web of Knowledge에 들어가서 “Select a Database” tab을 선택한 후 “Journal Citation Reports”에 들어간다.

그럼 다음과 같은 화면이 뜨는데, ‘Search for a specific journal’을 선택하고 ‘SUBMIT’을 누른다.

다음 화면에서 Journal 이름 또는 ISSN 을 가지고 impact factor를 찾아볼 수 있다.

다음은 Geophysics로 검색해본 결과.

 Tagged: impact factor, journal, SCI     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=197&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>SCI Journal의 impact factor 찾아보기</p>
<p><a href="http://apps.isiknowledge.com/databases.do?highlighted_tab=databases&amp;product=UA&amp;SID=4FpDIIbOCBfmFbHeBmK&amp;cacheurl=no">ISI web of Knowledge</a>에 들어가서 “Select a Database” tab을 선택한 후 “Journal Citation Reports”에 들어간다.</p>
<p><a href="http://plusha.files.wordpress.com/2009/02/image.png"><img style="display:inline;border-width:0;" title="image" src="http://plusha.files.wordpress.com/2009/02/image-thumb.png?w=504&#038;h=301" border="0" alt="image" width="504" height="301" /></a></p>
<p>그럼 다음과 같은 화면이 뜨는데, ‘Search for a specific journal’을 선택하고 ‘SUBMIT’을 누른다.</p>
<p><a href="http://plusha.files.wordpress.com/2009/02/image4.png"><img style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" title="image" src="http://plusha.files.wordpress.com/2009/02/image-thumb4.png?w=504&#038;h=346" border="0" alt="image" width="504" height="346" /></a></p>
<p>다음 화면에서 Journal 이름 또는 ISSN 을 가지고 impact factor를 찾아볼 수 있다.</p>
<p><a href="http://plusha.files.wordpress.com/2009/02/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://plusha.files.wordpress.com/2009/02/image-thumb2.png?w=504&#038;h=311" border="0" alt="image" width="504" height="311" /></a></p>
<p>다음은 Geophysics로 검색해본 결과.</p>
<p><a href="http://plusha.files.wordpress.com/2009/02/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://plusha.files.wordpress.com/2009/02/image-thumb3.png?w=504&#038;h=358" border="0" alt="image" width="504" height="358" /></a></p>
 Tagged: impact factor, journal, SCI <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=197&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/02/05/sci-journal-impact-factor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2009/02/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2009/02/image-thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2009/02/image-thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2009/02/image-thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Excluding nodes from qsub command</title>
		<link>http://plusha.com/2009/01/05/excluding-nodes-from-qsub-command/</link>
		<comments>http://plusha.com/2009/01/05/excluding-nodes-from-qsub-command/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 08:05:00 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[MPI]]></category>
		<category><![CDATA[qsub]]></category>

		<guid isPermaLink="false">http://plusha.wordpress.com/2009/01/05/excluding-nodes-from-qsub-command/</guid>
		<description><![CDATA[qsub 로 job 올릴 때 특정 node 빼고 돌리는 법
#!/bin/sh
#$ -cwd
#$ -V
#$ -v MPIHOME={mpi home}
#$ -N {job name}
#$ -S /bin/sh
#$ -pe mpich 20
#$ -A teragonhpc
#$ -j y
#$ -o log.out
#$ -q *@node*&#38;!*04&#38;!*01&#38;!*12
$MPIHOME/bin/mpirun -np $NSLOTS -machinefile $TMPDIR/machines 실행파일
위의 내용은 qsub로 job을 올릴 때 사용하는 script.sh 파일 내용입니다. #$ 마지막 줄에 있는 -q 명령이 node 지정해주는 명령입니다. 위의 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=219&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>qsub 로 job 올릴 때 특정 node 빼고 돌리는 법</p>
<blockquote><p>#!/bin/sh<br />
#$ -cwd<br />
#$ -V<br />
#$ -v MPIHOME={mpi home}<br />
#$ -N {job name}<br />
#$ -S /bin/sh<br />
#$ -pe mpich 20<br />
#$ -A teragonhpc<br />
#$ -j y<br />
#$ -o log.out<br />
#$ -q *@node*&amp;!*04&amp;!*01&amp;!*12</p>
<p>$MPIHOME/bin/mpirun -np $NSLOTS -machinefile $TMPDIR/machines 실행파일</p></blockquote>
<p>위의 내용은 qsub로 job을 올릴 때 사용하는 script.sh 파일 내용입니다. #$ 마지막 줄에 있는 -q 명령이 node 지정해주는 명령입니다. 위의 명령을 해석해보겠습니다.</p>
<p>1. &amp;는 fortran의 .and. 연산자와 같은 역할을 합니다.<br />
2. *@node* 은 모든 node를 사용하라는 명령입니다.<br />
3. !은 .not. 즉, 부정을 의미합니다.<br />
4. 따라서 !*04 는 04로 끝나는 node는 사용하지 말라는 의미입니다. 마찬가지로 !*01, !*12도 01번과 12번 node를 사용하지 말라는 의미입니다.</p>
<p>정리하면 -q *@node*&amp;!*04&amp;!*01&amp;!*12 옵션을 붙여주면, 01번, 04번, 12번 node를 제외한 나머지 node만 사용해서 mpi를 돌리게 됩니다.</p>
 Tagged: cluster, MPI, qsub <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=219&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2009/01/05/excluding-nodes-from-qsub-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>
	</item>
		<item>
		<title>Gnuplot and PyXPlot</title>
		<link>http://plusha.com/2008/12/18/gnuplot-and-pyxplot/</link>
		<comments>http://plusha.com/2008/12/18/gnuplot-and-pyxplot/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 05:55:14 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Gnuplot]]></category>
		<category><![CDATA[PyXPlot]]></category>

		<guid isPermaLink="false">http://plusha.com/?p=177</guid>
		<description><![CDATA[PyXPlot은 gnuplot의 확장 interface로 그림을 그릴 수 있게 해주는 프로그램입니다. 내부적으로는 Python과 PyX package를 이용하죠. 그림은 eps파일로 만들어 gv로 보여줍니다. 위의 그림과 아래의 그림은 아래의 명령으로 각각 Gnuplot과 PyXPlot에서 그린 결과를 보여줍니다.
set xlabel &#8216;Time (s)&#8217;
set ylabel &#8216;Amplitude&#8217;
set xrange [0:10]
p sin(x)
그림 그려주는 속도는 Gnuplot이 훨씬 빠릅니다. 하지만, Gnuplot 결과물은 presentation이나 paper에 쓰기에 부적합하다는 생각이 듭니다. 경험상 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=177&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="attachment_178" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-178" title="gnuplot_sine" src="http://plusha.files.wordpress.com/2008/12/gnuplot_sine.jpeg?w=450&#038;h=341" alt="gnuplot" width="450" height="341" /><p class="wp-caption-text">gnuplot</p></div>
<p>PyXPlot은 gnuplot의 확장 interface로 그림을 그릴 수 있게 해주는 프로그램입니다. 내부적으로는 Python과 <a href="http://pyx.sourceforge.net/" target="_blank">PyX</a> package를 이용하죠. 그림은 eps파일로 만들어 <a href="http://www.gnu.org/software/gv/" target="_blank">gv</a>로 보여줍니다. 위의 그림과 아래의 그림은 아래의 명령으로 각각 Gnuplot과 PyXPlot에서 그린 결과를 보여줍니다.</p>
<blockquote><p>set xlabel &#8216;Time (s)&#8217;<br />
set ylabel &#8216;Amplitude&#8217;<br />
set xrange [0:10]<br />
p sin(x)</p></blockquote>
<div id="attachment_179" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-179" title="pyxplot_sine" src="http://plusha.files.wordpress.com/2008/12/pyxplot_sine.jpeg?w=450&#038;h=320" alt="pyxplot" width="450" height="320" /><p class="wp-caption-text">pyxplot</p></div>
<p>그림 그려주는 속도는 Gnuplot이 훨씬 빠릅니다. 하지만, Gnuplot 결과물은 presentation이나 paper에 쓰기에 부적합하다는 생각이 듭니다. 경험상 간편한 presentation 준비를 위해서는 PyXPlot을 쓰는 것도 괜찮더군요. Paper를 위해서는 <a href="http://plusha.com/tag/pyx/" target="_self">PyX</a>와 <a href="http://plusha.com/tag/postscript/" target="_self">Postscript</a>를 다 쓰는 것이 좋고요^^.</p>
 Tagged: Gnuplot, PyXPlot <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=177&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2008/12/18/gnuplot-and-pyxplot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/gnuplot_sine.jpeg" medium="image">
			<media:title type="html">gnuplot_sine</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/pyxplot_sine.jpeg" medium="image">
			<media:title type="html">pyxplot_sine</media:title>
		</media:content>
	</item>
		<item>
		<title>PyX example &#8211; Typecurve, Reserve</title>
		<link>http://plusha.com/2008/12/16/pyx-example-type-curve/</link>
		<comments>http://plusha.com/2008/12/16/pyx-example-type-curve/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 02:45:20 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[PyX]]></category>

		<guid isPermaLink="false">http://plusha.com/?p=152</guid>
		<description><![CDATA[위 그림을 그리기 위한 python code는 다음과 같습니다.


from pyx import *

g=graph.graphxy(width=10,
                x=graph.axis.log(
                        title=&#039;$t_{Dd}$&#039;,min=0.01,max=1000,
     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=152&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="attachment_154" class="wp-caption aligncenter" style="width: 460px"><a href="http://plusha.files.wordpress.com/2008/12/typecurve.png"><img class="size-full wp-image-154" title="typecurve" src="http://plusha.files.wordpress.com/2008/12/typecurve.png?w=450&#038;h=281" alt="Arps typecurve" width="450" height="281" /></a><p class="wp-caption-text">Arps typecurve</p></div>
<p>위 그림을 그리기 위한 python code는 다음과 같습니다.</p>
<pre name="code" class="python">

from pyx import *

g=graph.graphxy(width=10,
                x=graph.axis.log(
                        title=&#039;$t_{Dd}$&#039;,min=0.01,max=1000,
                        painter=graph.axis.painter.regular(gridattrs=[color.gray(0.5)],tickattrs=[color.gray(0.5)])
                        ),
                x2=graph.axis.log(min=0.01,max=1000,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.gray(0.5)])),
                y=graph.axis.log(
                        title=&#039;$q_{Dd}$&#039;,min=0.001,max=10,
                        painter=graph.axis.painter.regular(gridattrs=[color.gray(0.5)],tickattrs=[color.gray(0.5)]))
                ,y2=graph.axis.log(min=0.001,max=10,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.gray(0.5)]))
                        )
g.plot([graph.data.file(&quot;arps.dat&quot;,x=1,y=j) for j in [3,4,5,6,8,9,10,11]],
                [graph.style.line([style.linestyle.solid,style.linewidth.Thin,color.gray(0.3)])])
g.plot([graph.data.file(&quot;arps.dat&quot;,x=1,y=j) for j in [2,7,12]],[graph.style.line([style.linestyle.solid,style.linewidth.Thick])])

g.text(5,0.5,r&quot;$b=0.0$&quot;)
g.text(6.7,0.5,r&quot;$b=0.5$&quot;)
g.text(8.8,0.5,r&quot;$b=1.0$&quot;)

g.writeEPSfile(&#039;typeCurve&#039;)
</pre>
<p>그리고 데이터를 만들기 위한 code는 다음과 같습니다.</p>
<pre name="code" class="python">

import math
fout=&#039;arps.dat&#039;
f=open(fout,&#039;w&#039;)

for it in range(-30,40):
        tdd=10.0**(it/10.0)
        q=range(11)
        q[0]=math.exp(-tdd)
        for ib in range(1,11):
                b=ib*0.1
                q[ib]=(1+b*tdd)**(-1/b)

        f.write(&quot;%s&quot;%tdd)
        for j in range(0,11):
                f.write(&quot; %s&quot;%q[j])
        f.write(&quot;\n&quot;)

f.close()
</pre>
<p>아래의 그림들은 다음의 data를 이용하여 그렸습니다.<br />
<span id="more-152"></span></p>
<blockquote><p>6       2070<br />
12      1755<br />
18      1510<br />
24      1315<br />
30      1155<br />
36      1025<br />
42      915</p></blockquote>
<div id="attachment_162" class="wp-caption aligncenter" style="width: 460px"><a href="http://plusha.files.wordpress.com/2008/12/hwlin.png"><img class="size-full wp-image-162" title="hwlin" src="http://plusha.files.wordpress.com/2008/12/hwlin.png?w=450&#038;h=285" alt="linear" width="450" height="285" /></a><p class="wp-caption-text">linear</p></div>
<pre name="code" class="python">
from pyx import *

g=graph.graphxy(width=10,
                x=graph.axis.lin(
                        title=&#039;$t \ (month)$&#039;,min=1,max=100,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange])
                        ),
                x2=graph.axis.lin(min=1,max=100,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange])),
                y=graph.axis.lin(
                        title=&#039;$q(t) \ (bbls/day)$&#039;,min=1,max=3000,texter=graph.axis.texter.decimal(),
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange]))
                ,y2=graph.axis.lin(min=1,max=15000,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange]))
                        )
g.plot( [graph.data.file(&quot;hwb05535.dat&quot;,x=1,y=2)],
                [graph.style.symbol(graph.style.symbol.circle, size=0.1,
                        symbolattrs=[deco.stroked([color.rgb.blue])])]
                )   

g.writeEPSfile(&#039;hwlin.eps&#039;)
</pre>
<p>Log scale로 그리기</p>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 460px"><a href="http://plusha.files.wordpress.com/2008/12/hwlog.png"><img class="size-full wp-image-164" title="hwlog" src="http://plusha.files.wordpress.com/2008/12/hwlog.png?w=450&#038;h=295" alt="logarithmic" width="450" height="295" /></a><p class="wp-caption-text">logarithmic</p></div>
<pre name="code" class="python">
from pyx import *

g=graph.graphxy(width=10,
                x=graph.axis.log(
                        title=&#039;$t \ (month)$&#039;,min=1,max=100000,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange])
                        ),
                x2=graph.axis.log(min=1,max=100000,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange])),
                y=graph.axis.log(
                        title=&#039;$q(t) \ (bbls/day)$&#039;,min=10,max=100000,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange]))
                ,y2=graph.axis.log(min=10,max=100000,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange]))
                        )

g.plot( [graph.data.file(&quot;hwb05535.dat&quot;,x=1,y=2)],
                [graph.style.symbol(graph.style.symbol.circle, size=0.1,
                        symbolattrs=[deco.stroked([color.rgb.blue])])]
                )       

g.writeEPSfile(&#039;hwlog.eps&#039;)
</pre>
<p>적분 그림 넣기</p>
<div id="attachment_163" class="wp-caption aligncenter" style="width: 460px"><a href="http://plusha.files.wordpress.com/2008/12/hwlinintegral.png"><img class="size-full wp-image-163" title="hwlinintegral" src="http://plusha.files.wordpress.com/2008/12/hwlinintegral.png?w=450&#038;h=285" alt="integral" width="450" height="285" /></a><p class="wp-caption-text">integral</p></div>
<pre name="code" class="python">
from pyx import *

Xmin=0
Xmax=350
Ymin=0
Ymax=2500
g=graph.graphxy(width=10,
                x=graph.axis.lin(
                        title=&#039;$t \ (month)$&#039;,min=Xmin,max=Xmax,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange])
                        ),
                x2=graph.axis.lin(min=Xmin,max=Xmax,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange])),
                y=graph.axis.lin(
                        title=&#039;$q(t) \ (bbls/day)$&#039;,min=Ymin,max=Ymax,texter=graph.axis.texter.decimal(),
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange]))
                ,y2=graph.axis.lin(min=Ymin,max=Ymax,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange]))
                        )
g.plot( [graph.data.file(&quot;hwb05535.dat&quot;,x=1,y=2)],
                [graph.style.symbol(graph.style.symbol.circle, size=0.1,
                        symbolattrs=[deco.stroked([color.rgb.blue])])]
                )
d=g.plot( graph.data.function(&quot;y(x)=2311*(1+0.0276*0.5535*x)**(-1.0/0.5535)&quot;))
g.finish()
p=d.path        

pa=g.xgridpath(42)
pb=g.xgridpath(307)
(splita,),(splitpa,)=p.intersect(pa)
(splitb,),(splitpb,)=p.intersect(pb)
area=(pa.split([splitpa])[0] &lt; &lt;
                p.split([splita,splitb])[1] &lt;&lt;
                pb.split([splitpb])[0].reversed())
area[-1].close()
g.stroke(area,[deco.filled([color.cmyk.RoyalBlue])])

g.text(2,2.3,r&quot;Reserves:&quot;,textattrs=[text.size.Large])
g.text(4.2,2.3,r&quot;\int_{t_{now}}^{t_{el}}q(t)dt&quot;,textattrs=[text.size.Large,text.mathmode])
g.text(8,0.5,r&quot;t_{el}=307&quot;,textattrs=[text.size.large,text.mathmode])

g.writeEPSfile(&#039;hwlinintegral.eps&#039;)
</pre>
<p>다음 그림은 아래의 data를 이용하여 그렸습니다.</p>
<blockquote><p>6       39.42857<br />
12      42.97959<br />
18      46.46154<br />
24      49.3125<br />
30      53.30769<br />
36      55.90909</p>
<div id="attachment_165" class="wp-caption aligncenter" style="width: 460px"><a href="http://plusha.files.wordpress.com/2008/12/nind.png"><img class="size-full wp-image-165" title="nind" src="http://plusha.files.wordpress.com/2008/12/nind.png?w=450&#038;h=295" alt="Nind's method" width="450" height="295" /></a><p class="wp-caption-text">Nind&#39;s method</p></div>
<pre name="code" class="python">
from pyx import *

Xmin=0
Xmax=50
Ymin=30
Ymax=60
g=graph.graphxy(width=10,
                x=graph.axis.lin(
                        title=&#039;$t \ (month)$&#039;,min=Xmin,max=Xmax,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange])
                        ),
                x2=graph.axis.lin(min=Xmin,max=Xmax,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange])),
                y=graph.axis.lin(
                        title=&#039;$ 1/D \ (month)$&#039;,min=Ymin,max=Ymax,texter=graph.axis.texter.decimal(),
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange],tickattrs=[color.cmyk.Orange]))
                ,y2=graph.axis.lin(min=Ymin,max=Ymax,parter=None,
                        painter=graph.axis.painter.regular(gridattrs=[color.cmyk.Orange]))
                        )
g.plot( [graph.data.file(&quot;nind.dat&quot;,x=1,y=2)],
                [graph.style.symbol(graph.style.symbol.circle, size=0.1,
                        symbolattrs=[deco.stroked([color.rgb.blue])])]
                )
g.plot( [graph.data.function(&quot;y(x)=0.5535*x+36.276&quot;)]
                )

g.text(4.5,3.15,r&quot;$1/D=0.5535t+36.276$&quot;,textattrs=[text.size.Large])
g.text(4.55,2.2,r&quot;$b=0.5535$&quot;,textattrs=[text.size.Large])
g.text(4.2,1.65,r&quot;$D_i=0.0276/month$&quot;,textattrs=[text.size.Large])

g.writeEPSfile(&#039;nind.eps&#039;)
</pre>
 Tagged: Python, PyX <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=152&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2008/12/16/pyx-example-type-curve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/typecurve.png" medium="image">
			<media:title type="html">typecurve</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/hwlin.png" medium="image">
			<media:title type="html">hwlin</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/hwlog.png" medium="image">
			<media:title type="html">hwlog</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/hwlinintegral.png" medium="image">
			<media:title type="html">hwlinintegral</media:title>
		</media:content>

		<media:content url="http://plusha.files.wordpress.com/2008/12/nind.png" medium="image">
			<media:title type="html">nind</media:title>
		</media:content>
	</item>
		<item>
		<title>Python plotting libraries</title>
		<link>http://plusha.com/2008/12/16/python-plotting-libraries/</link>
		<comments>http://plusha.com/2008/12/16/python-plotting-libraries/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 01:25:17 +0000</pubDate>
		<dc:creator>plusha</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Matplotlib]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[PyX]]></category>
		<category><![CDATA[PyXPlot]]></category>

		<guid isPermaLink="false">http://plusha.com/?p=147</guid>
		<description><![CDATA[제가 접해본 python을 이용한 그림 그리기 프로그램 중 쓸만한 것으로는 Matplotlib과 PyX가 있습니다. 둘 다 python으로 코드를 짜면 그림을 그려주는 프로그램으로, paper에 출판할 수 있을 정도의 그림을 그릴 수 있습니다. 그 외에 PyXPlot이라고, gnuplot과 유사한 interface를 이용하면 자체적으로 PyX를 이용해 그림을 그려주는 프로그램이 있습니다.
Matplotlib은 제일 처음에 접했는데, 잠깐 쓰다가 말았습니다. 당시에는 기능이 떨어졌는데, 얼마 전에 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=147&subd=plusha&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>제가 접해본 python을 이용한 그림 그리기 프로그램 중 쓸만한 것으로는 <a href="http://matplotlib.sourceforge.net/" target="_blank">Matplotlib</a>과 <a href="http://pyx.sourceforge.net/" target="_blank">PyX</a>가 있습니다. 둘 다 python으로 코드를 짜면 그림을 그려주는 프로그램으로, paper에 출판할 수 있을 정도의 그림을 그릴 수 있습니다. 그 외에 <a href="http://www.pyxplot.org.uk/" target="_blank">PyXPlot</a>이라고, gnuplot과 유사한 interface를 이용하면 자체적으로 PyX를 이용해 그림을 그려주는 프로그램이 있습니다.</p>
<p>Matplotlib은 제일 처음에 접했는데, 잠깐 쓰다가 말았습니다. 당시에는 기능이 떨어졌는데, 얼마 전에 보니 많이 upgrade 되었더군요. 앞으로 많이 사용하게 될 듯 합니다.</p>
<p>PyX는 eps, pdf 파일을 만들어줍니다. 상당히 자세한 부분까지 수정할 수 있어서 개인적으로 좋아하는 프로그램입니다. 하지만 update가 잘 안 되고, contour 그리기 기능이 없네요.</p>
<p>PyXPlot은 gnuplot을 써 보신 분들께서는 쉽게 쓰실 수 있는 프로그램으로, 간편하게 (gnuplot에 비하면 훨씬) 고품질의 그림을 그릴 수 있습니다. 쉽긴 하지만, PyX를 직접 쓰는 경우처럼 자세한 수정은 힘들죠.</p>
<p>앞으로 제가 그림을 그리기 위해 사용했던 코드와 그림들을 나중에 다시 참고하기 위해 블로그에 올릴 생각입니다.</p>
 Tagged: Matplotlib, Python, PyX, PyXPlot <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plusha.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plusha.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plusha.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plusha.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plusha.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plusha.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plusha.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plusha.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plusha.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plusha.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plusha.com&blog=174108&post=147&subd=plusha&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://plusha.com/2008/12/16/python-plotting-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a132f21225fdf3d560a72e1b01e95b90?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">plusha</media:title>
		</media:content>
	</item>
	</channel>
</rss>