이글루스 로그인


WxPython 을 소개합니다

 

파이어썬의 GUI 라이브러리 라고 볼수 있습니다.

별도로 설치를 해야 합니다.

근데 놀랄만한 사실은 wxWidgets 이라는 C++ 라이브러리가 Python 에서 그대로 사용되는거 같습니다.

win32 가지고 놀까 Python 가지고 놀까 고민했던 제가 Python 을 택하고 다시 한번 기뻐 할수 밖에 없었습니다.

http://myevan.net/category/python/wxPython 에서 우선 간단한 예제를 볼수 있을듯 합니다만 ^^

하여튼 기분이 좋습니다. ^^

1996년도 겨울 부터 2000 년도 초까지 분명 저는 win32 와 MFC 를 비교적 그떄 당시에 잘 다루었지만....

이제는 잘 모르겠습니다... 그떄의 기억과 작년에 잠시 며칠 다시 봤던 페촐드 아저씨 책을 기억을 가지고 한번 해볼랍니다.

메뉴얼 보니 매우 재미있겟습니다 ^^

입문서로는 :: http://www.holdenweb.com/PyConTX2006/wxPythonIntro.pdf 게 좋을듯 합니다 ^^

아님 Getting Started

by Gerald | 2007/05/18 14:12 | Python | 트랙백 | 덧글(7)

트랙백 주소 : http://kicom95.egloos.com/tb/1194682
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Commented by conv2 at 2007/05/18 21:19
"WxPython in Action" 책이 있습니다. 자세한 내용은 고감자님께 문의를... ^^;
Commented by Gerald at 2007/05/18 23:35
네 알겠습니다 감사합니다 ^^
Commented by kim at 2007/05/19 05:10
저 부탁좀 드려도 될까요.. 오랫동안 너치(nutch)를 현 윈도우2003에 깔아서 사용해 보려고
했습니다. 그런데 리눅스용 설명서는 있는데 윈도우용이 없네요.
현재 컴에는 톰캣 깔려 있습니다.
건 한달째 돌아 다니는데요... 못찾겠어요.. 부탁 드릴께요.. 관련 싸이트라도 아무거나 좋으니
ㅡ.ㅜ 도움좀 주세요.. 지능형검색엔진 개발중입니다. (초보입니다. 부푼 꿈을 가지고 있고
지난 몇년동안 인공지능 알고리즘을 완성한 상태입니다.<== 이녀석 와우보단 100배 똑똑하다고 자신합니다) 꼭좀 도와 주세요 실무경력이 없다보니.. 이렇게 주섬주섬 주워서 프로그램 하고 있습니다..

객체지향 잘 모르지만 무조건 달려들어 하고 있습니다 제가 배운언어는 c 언어 입니다 ㅡ.ㅜ
책보면서 자바를 좀 했는데 도통 모르겠네요. ㅜ.ㅡ 붙여쓴다는거 외에는 부탁드립니다. .


Commented by Gerald at 2007/05/19 21:43
저도 너치를 하다가 관둔지가 오래되어서 좀 ;;; 1년 넘었고 저도 자바는 젬병인지라

기억이 전혀 나지가 않네요 ㅠ.ㅠ

lucene.egloos.com 의 typos 님에게도 한번 도움을 부탁하심이...

간곡히 부탁하셨는데 도움이 못 되드릴듯하여 죄송합니다.

제가 사무실 가서 한번 어떻게 했는지 찾아는 보겠지만 장담은 못하겠습니다 ㅠ.ㅠ

제 시스템이 현재 너치를 돌릴 상황은 아닌지라...


참고로 윈도 2003 에 cygwin 을 설치해서 한번 그 기반으로 설치를 해보심이 어떠 할지요 ?

저도 그렇게 한 기억으로 있습니다... 아마도 ...

cygwin 이 어느 정도의 리눅스 환경을 제공해줍니다....... 참고하세요....

cygwin 까시고 그 기반위에 하시면 될듯 합니다.
Commented by kim at 2007/05/21 02:51
cygwin. 감사합니다.. ^^; 그렇지 않아도 리눅스로 가야하지 않을까 하고생각 중 이었습니다.
신경써주시는 말씀 너무 감사합니다..
Commented by kim at 2007/05/21 16:32
cygwin 을 이용한 방법을 찾았습니다 ^^; (그런데 별루 마음에 아들어유 ㅡ.ㅜ 부가적인 변경사항들이 많더군요 그럴바에야 리눅스를 쓰는게 낫을듯)
-------------------------------------------------------------------
http://wiki.apache.org/nutch/GettingNutchRunningWithWindows
-------------------------------------------------------------------

GettingNutchRunningWithWindows
Since Nutch is written in Java, it is possible to get Nutch working in a Windows environment, provided that the correct software is installed.

The following documents describe how I got it working on Windows XP Pro running Tomcat 5.28.

Java
You will need to have Java 1.4.2 (or Java 1.5 for Nutch 0.8.x or higher) installed.

Cygwin
You'll need cygwin to run the shell commands since there are no separate scripts for NT cmd (the NT cmd shell does not nest environments recursively). Mks ksh does not work correctly with the scripts. Make sure you have installed the utility 'uname' in cygwin.

Tomcat
You'll need Tomcat 4.* or higher running on your machine.

Setup
Download the release and extract anywhere on your hard disk e.g. c:\nutch-0.7.1

Create an empty text file in your nutch directory e.g. "urls" and add the urls of the sites you want to crawl as shown in the tutorial.

Add your urls to the crawl-urlfilter.txt (e.g. C:\nutch-0.7.1\conf\crawl-urlfilter.txt). An entry could look like this: +^ http://([a-z0-9]*\.)*apache.org/

Load up cygwin and naviagte to your nutch directory. When cygwin launches you'll usually find yourself in your user folder (e.g. C:\Documents and Settings\username).

If your workstation needs to go through a windows authentication proxy to get to the internet then you can use an application such as the NTLM Authorization Proxy Server: http://www.geocities.com/rozmanov/ntlm/ to get through it. You'll then need to edit the nutch-site.xml file to point to the port opened by the app.

Intranet Crawling
Follow the tutorial instructions to begin the crawl by entering commands in cygwin. Nutch will create a crawl directory and a log file.

For example, if you enter the following command from the root of your Nutch install:

bin/nutch crawl urls -dir crawl -depth 3 >& crawl.log
then a folder called crawl/ is created in your nutch directory, along with the crawl.log file. Use this log file to debug any errors you might have. You'll need to delete or move the crawl directory before starting the crawl off again unless you specify another path on the command above.

Web Interface for Search
In your Environment Variables settings, add NUTCH_JAVA_HOME and the location of your JVM (e.g. C:\j2sdk1.4.2_09) as a new Environment Variable

Open up a web browser and navigate to the Tomcat webapps manager (e.g. http://localhost:8080/manager/html) and upload the nutch WAR file to the context.

If a root context already exists, undeploy it.

You now need to create a context fragment file so that the root url points to your nutch webapp. Navigate to your [tomcat_home]/conf/Catalina/localhost/ and put it there. Create a new xml file (name it the same as the webapp?) e.g. nutch-0.7.1.xml and add something like the following line to it

<Context path="" debug="5" privileged="true" docBase="nutch-0.7.1"/>
Next, navigate to your nutch webapp folder then WEB-INF/classes. Edit the nutch-site.xml file and add the following to it (make sure you don't have two <nutch-conf></nutch-conf> tags!):

<nutch-conf>
<property>
<name>searcher.dir</name>
<value>your_crawl_folder_here</value>
</property>
</nutch-conf>
For example, if your nutch directory resides at C:\nutch-0.7.1 and you specified crawled as the directory after the -dir command, then enter C:\nutch-0.7.1\crawl\ instead of your_crawl_folder_here.

Restart Tomcat using the windows services tool, open up a browser and enter the url http://localhost:8080. The nutch search page should appear. As long as you've defined the correct location of your nutch index directory as shown above then clicking search should yield results.

last edited 2006-11-05 18:06:00 by RenaudRichardet

Commented by Gerald at 2007/05/21 19:58
열심히 하셔서 좋은 결과 내시기를 바랍니다

제가 작년에 너치를 9월달 초에 관두었는데.... ^^ 문서는 11월달에 나온거네요

:         :

:

비공개 덧글


◀ 이전 페이지          다음 페이지 ▶