<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="http://rss.egloos.com/style/blog.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title>Tearas tEaras teAras teaRas tearAs tearaS</title>
	<link>http://tearas.egloos.com</link>
	<description>type 6</description>
	<language>ko</language>
	<pubDate>Wed, 18 Jan 2006 18:08:07 GMT</pubDate>
	<generator>Egloos</generator>
	<image>
		<title>Tearas tEaras teAras teaRas tearAs tearaS</title>
		<url>http://pds2.egloos.com/logo/1/200511/30/21/c0034221.jpg</url>
		<link>http://tearas.egloos.com</link>
		<width>80</width>
		<height>79</height>
		<description>type 6</description>
	</image>
  	<item>
		<title><![CDATA[ Long time no see, pascal! ]]> </title>
		<link>http://tearas.egloos.com/1260610</link>
		<guid>http://tearas.egloos.com/1260610</guid>
		<description>
			<![CDATA[ 
  I have decided to support Pascal language in my online judge.<br />
I wrote a simple program in Pascal. I haven't used Pascal for 6 years, but - <br />
<br />
<pre><br />
program main;<br />
var<br />
    a, b : integer;<br />
<br />
begin<br />
    while not eof do begin<br />
        readln( a, b );<br />
        writeln( a + b );<br />
    end;<br />
end.<br />
</pre><br />
<br />
Surprisingly, I could still write a Pascal source code! ;ㅁ; I honor my long term memories.<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1260610#comments</comments>
		<pubDate>Wed, 18 Jan 2006 18:08:07 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Rolling with python ]]> </title>
		<link>http://tearas.egloos.com/1254372</link>
		<guid>http://tearas.egloos.com/1254372</guid>
		<description>
			<![CDATA[ 
  $PYTHONDIR/site-packages/croissant/hello.py:<br />
<br />
<br />
<pre><br />
from mod_python import apache<br />
<br />
def handler(req,str):<br />
    req.content_type = "text/plain"<br />
    req.write( str + '_handler_' )<br />
    return apache.OK<br />
<br />
class requester(object):<br />
    def __init__(self, req):<br />
        self.a='_init_'<br />
        self.req = req<br />
<br />
    def run(self, req):<br />
        self.a=self.a+'_run_'<br />
        self.env = req.subprocess_env<br />
        return handler(req,self.a + '[' + self.env.get('REQUEST_URI') + ']' )<br />
</pre><br />
<br />
$HTDOCS/croissant/.htaccess:<br />
<br />
<pre><br />
SetHandler python-program<br />
PythonHandler Croissant.hello::requester.run<br />
</pre><br />
<br />
then, http://localhost/croissant/somewhat/long/uri?insomnia=terrible results:<br />
<br />
<pre><br />
_init__run_[/croissant/somewhat/long/uri?insomnia=terrible]_handler_<br />
</pre><br />
<br />
Conclusion:<br />
If we specify a class member as a PythonHandler, mod_python automatically instantiates the class.<br />
We need not change httpd.conf to join a directory with mod_python. Just setup .htaccess - <br />
<br />
Now I can roll with mod_python. ;')<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1254372#comments</comments>
		<pubDate>Tue, 17 Jan 2006 19:21:43 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ MoinMoin has been installed successfully on my PC! ]]> </title>
		<link>http://tearas.egloos.com/1254159</link>
		<guid>http://tearas.egloos.com/1254159</guid>
		<description>
			<![CDATA[ 
  I have been trying to install MoinMoin, and it has been succeeded. It works just fine! And I could have been made Apache settings -- .htaccess, .htpasswd, and etc -- to make nobody to access my MoinMoin. Good! It is working fine. I am afraid that somebody can access my private information. I often peeps out my apache access log file. I believe that .htaccess can avoid unexpected access.<br />
<br />
I need to go back to the PanoJudge project. I noticed that MoinMoin implementation is mainly in the Python site-package directory as a module. External scripts to just a few things, even nothing when I configured to run in mod_python mode. There is no instance of MoinMoin in the htdocs directory. Apache just calls the MoinMoin module, not running a script in the htdocs directory. Interesting! It will affect my design of PanoJudge.<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1254159#comments</comments>
		<pubDate>Tue, 17 Jan 2006 18:09:32 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Turning to be in English ]]> </title>
		<link>http://tearas.egloos.com/1228828</link>
		<guid>http://tearas.egloos.com/1228828</guid>
		<description>
			<![CDATA[ 
  I'm sorry for Korean friends, but I want to show my thoughts to more people. So I will turn this blog to be written in English.<br />
<br />
Since I desperately want to make my English better, I would open my mind to all grammar corrections, style suggestions, and complains. ;') Please do not hesitate to say your dissatisfaction to me.<br />
<br />
<br />
<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1228828#comments</comments>
		<pubDate>Fri, 13 Jan 2006 15:19:32 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 프로그래밍 입문이 더 어려워지지 않았나? ]]> </title>
		<link>http://tearas.egloos.com/1152672</link>
		<guid>http://tearas.egloos.com/1152672</guid>
		<description>
			<![CDATA[ 
  1990년대 초, 컴퓨터 학원들에서는 많은 학생들이 MS-DOS에서 GW-BASIC으로 화면에 점 선 원, 조금 똘똘한 아이는 스프라이트를 찍으면서 프로그래밍의 꿈을 키우곤 했다.<br />
<br />
하지만 21세기가 도래하면서 MS-DOS는 소멸되고, 윈도우의 시대가 도래하니..<br />
Visual Studio에서 이쁜 그래픽이 나오는 프로그램을 만들기 위해서는 <br />
머리아픈 DirectX를 붙잡다가 COM을 붙잡다가 하며 정신없어하거나<br />
MFC와 Win32 API를 배우며 '도대체 메세지 큐는 왜 쓰는거야' 하면서 혼란스러워해야 했다.<br />
<br />
화면에 그림 그리는게 이리도 어려워졌나. <br />
터보 씨 시절에는 커맨드 몇 개 만으로 그래픽 모드로 전환할 수 있었는데.<br />
<br />
하지만, 약간의 도움으로 그때 그, 쓰레드가 뭔지 알 필요가 없었던 단순한 시절의 플랫폼을 제공해줄 수 있다. -<br />
<br />
http://araste.net/arch/2006/20060101_MFCTutorialPlatform.zip<br />
Visual Studio .NET 2003 솔루션입니다.<br />
<br />
MFCTutorialPlatform이 MFC의 윈도우, 메세지 프로세싱을 Wrapping하는 라이브러리,<br />
MFCTutorialTest가 그것을 이용한 간단한 응용 프로그램입니다. -<br />
<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1152672#comments</comments>
		<pubDate>Sun, 01 Jan 2006 08:11:22 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ MySQL 초보, AUTO_INCREMENT를 배우다. ]]> </title>
		<link>http://tearas.egloos.com/1146516</link>
		<guid>http://tearas.egloos.com/1146516</guid>
		<description>
			<![CDATA[ 
  auto_increment key를 가진 테이블에 하나의 Row를 삽입했을 때, <br />
방금 삽입한 Row의 key를 알고 싶을 때가 있다. <br />
<br />
이 때는 <br />
select * from table where autoincrement_col is null; <br />
<br />
이렇게 하면 된다. <br />
<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html</a> <br />
auto_increment 를 검색해보라. <br />
<br />
thread-safe 한지를 알고 싶을텐데.. 이 테스트를 해 보면 된다. <br />
<br />
두 개의 mysql 클라이언트를 띄우고, <br />
아래 스키마의 테이블을 만든다. <br />
<br />
create table user ( <br />
user_no int not null auto_increment, <br />
user_id char(12), <br />
primary key (user_no) <br />
); <br />
<br />
<br />
Client 1: <br />
insert into user (user_id) values('abc'); <br />
<br />
Client 2: <br />
insert into user (user_id) values('def'); <br />
<br />
Client 1: <br />
select * from user where user_no is null; <br />
<br />
Client 2: <br />
select * from user where user_no is null; <br />
<br />
그럼 결과는? <br />
<pre><br />
+---------+---------+<br />
| user_no | user_id |<br />
+---------+---------+<br />
|       1 | abc     |<br />
+---------+---------+<br />
<br />
Client 2: <br />
+---------+---------+<br />
| user_no | user_id |<br />
+---------+---------+<br />
|       2 | def     |<br />
+---------+---------+<br />
</pre><br />
<br />
얼쑤 좋구나..<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1146516#comments</comments>
		<pubDate>Sat, 31 Dec 2005 06:44:31 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Python 공부 go go ]]> </title>
		<link>http://tearas.egloos.com/1137612</link>
		<guid>http://tearas.egloos.com/1137612</guid>
		<description>
			<![CDATA[ 
  대세는 패키지다, 패키지.<br />
<br />
<a href="http://www.python.org/doc/2.4.2/tut/node8.html">http://www.python.org/doc/2.4.2/tut/node8.html</a> 오늘은 이걸 보고 진득하게 공부했다.<br />
<br />
아직 __all__ 에 대한 개념이 잘 안 서기는 하지만, 계속 달려보자.<br />
'getattr' 함수를 기억하자, 그리고.<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1137612#comments</comments>
		<pubDate>Thu, 29 Dec 2005 14:41:09 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Visual C++, C# 2005 Express를 깔다, ]]> </title>
		<link>http://tearas.egloos.com/1048616</link>
		<guid>http://tearas.egloos.com/1048616</guid>
		<description>
			<![CDATA[ 
  승엽이와 함께 Microsoft Imagine Cup 2005에 출전하기로 했다.<br />
함께 하기로 한 과제는 Project Hosimi.<br />
<br />
http://www.project-hoshimi.com/<br />
<br />
C&C의 MCV같은 유닛이 유닛을 생산해내고, 자원을 모으고, 공격하고, ... 하는 실시간 전략 시뮬의 인공지능을 만들어 겨루는 대전이다.<br />
헌데.. 솔루션이 .NET 2005로 만들어진 것이었다. .NET 2003에서는 안 열리네? 그래서 Microsoft에서 다운로드받아 깔아봤다. 11월 7일까지 사용하도록 허락해주더군. 이 사람들, 불완전한 제품들 유저들에게 무상 배포해서 버그 잡으려는 심보인가.. 하는 삐딱한 생각을 해 보았다.<br />
<br />
이거 쓸만할까.. 하는 생각에 이전에 만든 프로젝트들을 열어봤는데, 감히 2005 전용 버전으로 컨버팅을 무조건 해야 한다는 것이었다.<br />
못된 것들. 쓰나 봐라. 꼭 필요할 때에만 써야겠다.<br />
<br />
<br />
<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1048616#comments</comments>
		<pubDate>Tue, 13 Dec 2005 10:25:09 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 웹 보드 깔기. ]]> </title>
		<link>http://tearas.egloos.com/1040940</link>
		<guid>http://tearas.egloos.com/1040940</guid>
		<description>
			<![CDATA[ 
  아침에는 여러 가지 웹 보드를 찾았다. trac은 Wiki와 issue tracking만 잘 지원할 뿐, 커뮤니티 기능이 탄탄하지는 않기 때문이다.<br />
<br />
Fedora Core 4에 돌릴만한 웹 보드를 찾는데..<br />
<br />
Zeroboard 는 install.php 스크립트를 실행하면 무한루프를 돈다.<br />
php5를 지원 안하는 것 같네.. 업데이트가 빨리빨리 이루어지면 좋을텐데.<br />
punBB가 가볍다고 해서 써봤는데, UTF-8을 지원을 안 하는지 한글이 깨진다.<br />
phpNuke는 언제 상용화가 됐지.<br />
<br />
결론은 phpBB.<br />
www.phpbbhacks.com 에서 iMac 테마를 받아 깔아봤는데, 글자가 흐려 가독성이 영 아니었다. 결국 기본 테마로. ( -_)y-~ .<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1040940#comments</comments>
		<pubDate>Mon, 12 Dec 2005 05:36:00 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Trac 관리 ]]> </title>
		<link>http://tearas.egloos.com/1032504</link>
		<guid>http://tearas.egloos.com/1032504</guid>
		<description>
			<![CDATA[ 
  trac 을 설치해서 돌리고 있다. URL은 개인적으로 물어보시기를 -  너무 알려지면 테러당할 염려가 있어서 안 된다. 권한 설정과 보안 설정이 아직 완성되어 있지 않다.<br />
<br />
한 달 전에 있었던 괴로운 경험이 내게 준 경험은, 이제 무슨 프로젝트를 하든 혼자서 하면 안 되겠다는 것을 깨우쳐 주었다. 스스로가 알고 있는 것이 전부가 아니고, 끊임없이 다른 사람으로부터 배우고, 자기가 알고 있는 것을 알려주어야 한다는 것을.<br />
<br />
주변 사람을 키워야 내가 편하고, 내가 커야 주변 사람들이 편하다는 단순한 철학을 의심 없이 받아들이기로 했다.<br />
그런 의미에서, 취미 삼아, 또는 공부 삼아 해보고 싶은 프로젝트가 있다면 연락하시라. 언제든지 프로젝트를 오픈할 준비가 되어 있으니.<br /><br />			 ]]> 
		</description>

		<comments>http://tearas.egloos.com/1032504#comments</comments>
		<pubDate>Sat, 10 Dec 2005 13:26:10 GMT</pubDate>
		<dc:creator>Pan　</dc:creator>
	</item>
</channel>
</rss>
