IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
http://webpy.org/install にあるインストール方法によると、site-packages ディレクトリにコピーするだけということだ。 Debian環境では、site-packagesは"/usr/lib/python2.4/site-packages/"にある。 web.pyの本体をもらってきてコピーする。 # wget http://webpy.org/web.py # cp web.py /usr/lib/python2.4/site-packages/ # chmod 644 /usr/lib/python2.4/site-packages/web.py とりあえず、動作しているthttpdを使って動かして見ることに。 速度的な問題になるようなら、reddit.comでやっているように、lighttpd上でfastcgiすればいいだろう。 ここのcgi-binには
■ Trac からリポジトリ内全文検索やってみた リポジトリの全文検索 with HyperEstraier プラグイン ver 0.1 を試してみた。 この WeekBuildのHACK日記 は他にも色々と Trac のハックをされているので、Trac フリークにはお勧め。ページランクアップにも貢献しておきたい :-) さて本題。HyperEstraier 検索プラグインは、主に Windows ユーザ向けに説明されている感じなので、せっかくだから Unix 系でもやってみましたよっていうご紹介。 環境は Trac0.9.4 on Debian/Sarge。まず最初に必要なもののインストールから。 HyperEstraier は大昔にソースから入れたので省略。Debian Etch だとすでにパッケージ化されていたはずなので、apt-get で入ると思うけどそうじゃない人はソースから m
http://pyusb.berlios.de/ libusb経由でUSBデバイスを制御できる。 http://libusb.sourceforge.net/
【1.3】 コンフファイルの作成 PyFileServer-example.confを「PyFileServer.conf」という名前で複製。 以下の記述を必要に応じて書き加えてください。 以下のように、リソース名(任意の名前をつけてください)とローカルパス名を記述すると関連付けを定義できます。 addrealm('docs', 'C:\PyFileServer') また、ユーザー認証をつけるには(リソース名,ユーザーID,パスワード,説明)というパラメータで「adduser」メソッドを記述します。 adduser('docs', 'localhost\\user_id', 'user_password', 'user_description')
Pyny - a clone of Winny file sharing system Pyny is a clone of Winny, and a port of Poeny. Pyny is developped in Pyny Project. Our goal is a network without danger of helping any crimes: infringing a copyright, outflowing of information, and so on. Acknowledge Original Winny was developed by Isamu Kaneko. Poeny, open source Winny clone is developped by one^. Copyright© 2006 Pyny Project. All Right
http://www.pytyon.orgがリニューアルされたようだが、過去のVersionから、DOS用のpython(16bit)がなくなってしまった。 かわりに、以下のところに健在であることを確認。台湾の大学ですね。 http://ftp.ntu.edu.tw/ftp//python/python/pc/index.html なにに使うかって、実は、いまだ現役のHP200LX。 このDOSのPythonは、1.0.1というしろものなので、unicodeはもちろん(1.6以降)、制約だらけのもの。しかし、1.2のLibのtarボール(上記URLにリンクあり)のpyファイルをよみながら、動くようにしていく、ということを楽しめる。 PPC2002で、Python2.2+が動いているが、こっちは、ほとんどさわらないけのに、200LXの方は、なにかと重宝しているのです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 #!/usr/bin/local/python # -*- coding: utf-8 -*- import sys
PLEAC - Programming Language Examples Alike Cookbook Following the great Perl Cookbook (by Tom Christiansen & Nathan Torkington, published by O'Reilly; you can freely browse an excerpt of the book here) which presents a suite of common programming problems solved in the Perl language, this project aims to gather fans of programming, in order to implement the solutions in other programming language
[Home] [Setting up Mac OS X] [Python]: [ファイルを読む] 日本語を使う Pythonで日本語を使う Python 2.4以降では、標準で日本語を扱うことができます。 PythonのソースコードをUTF-8で書くには 日本語を扱うPythonのスクリプトの中では、UTF-8の文字コードを使うのが 楽です。 Mac OS Xのターミナルで日本語を扱う場合は、 ここの「4. Terminalの設定を変える」の 指示に従ってください。 以下、ソースコードの簡単な例を示します。 #!/usr/bin/env python # -*- coding: utf-8 -*- import re jtext = u'子猫が隠れんぼをしています' print 'jtext has', len(jtext), 'Japanese characters.' if re.se
【2】 ファイルリスト resource.xrc wx_editor.py wx_utils.py setup.py main_icon.ico main_icon.py custom/ - __init__.py - default.py - python.py - others.py 例によっておなじ構成に加えて、 カスタマイズ用フォルダといくつかのサンプルを置いています。 【4.1】 概要 ノートブックの使い方、stc(ScintillaTextCtrl)の使い方の一例です。 pickleを使った、ウィンドウジオメトリの保存と復旧を行っていますので、 ウインドウの位置と大きさを記憶してくれます。 タブでミドルクリックするとクローズします(Firefox風) セットアップスクリプトでは、カスタマイズ用フォルダのスクリプトをバンドルしないように
Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く