PrerequisitesThis tutorial assumes RabbitMQ is installed and running on localhost on the standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting. Where to get helpIf you're having trouble going through this tutorial you can contact us through GitHub Discussions or RabbitMQ community Discord. RabbitMQ is a message broker: it accept
レスポンスの遅い応答を返すデバック用サーバがほしかったので、 Tornadoで作ってみました。 Tornado は、 URLパターン中に正規表現を入れると、リクエストハンドラーへリクエスト引数として渡すことができます。 class himote_check_handler(tornado.web.RequestHandler): # ([0-9]+)にマッチする箇所が、 uidとして渡される def get(self, uid): response_json = "{'mote_event_avg': %2.11f, 'user_id': %s}" # response delay uid_val = int(uid) if uid_val > 6000: os.system('sleep %d' % (uid_val / 1000)) # response json format sel
CentOSではPythonが2.4と少々古いが、システムでPythonに依存している箇所が多くデフォルトのPythonを置き換えるのは好ましくない。 そこで/opt/python2.6にソースからインストールし、Djangoで開発が出来る所までの手順メモ。 設定とゴール CentOS 5.3を使用 Django 1.1 /opt/python2.6/ にインストール 利用できる範囲でyumとeasy_installを使う 以下、開発ユーザで作業 準備 - yum sudo yum install zlib zlib-devel sqlite-devel zlibはsetuptoolsのインストールで必要となる。 sqlite3-develをインストールしておかないと、Python2.6のコンパイル時にsqlite3が使えるようにならない Pythonのダウンロードとインストール $ wg
Kay framework を 7/7 にリリースしたわけですが、日本語での情報が無いので少しずつ書いていくことにしようと思います。 始め方 必要なものは下記の通りです。 Python-2.5 App Engine SDK Python Kay framework macports を使って python25 を入れた場合は、他に下記もインストールしましょう。 py25-hashlib py25-socket-ssl py25-pil py25-ipython Kay のリリース版を使う場合は、下記のダウンロードページから tar ball を落として使います。リポジトリを追いかける場合は、mercurial で clone してください。 ダウンロードページ: http://code.google.com/p/kay-framework/downloads/list clone するには
前回のネタの続きです。 前回では、以下のリンクを見て、ソースコードレビューソフトを入れてみました。 【レポート】オール・アバウト・Google Chrome - Google Developer Dayセッションレポート (2) http://journal.mycom.co.jp/articles/2009/06/15/gdd2/001.html Chromeの開発に使用されているツール・・・自動ビルド・自動単体テストのためにBuildbot、コードレビューのためにrietveldというツールが使用されている 今回は、実際に rietveld を入れて動かしてみます。 Google社内で使われているコードレビューシステムと同じようなソフトを手元で動かしてみるなんて、何かワクワクしますよね? 実際、下図のように、結構簡単に動かせますので、興味の沸いた方は、以下をどうぞ。 1 posted
WaveProtocol.org Learn about the Google Wave Federation Protocol and get involved Google Wave Robots: Python Tutorial The easiest way to understand how extensions work in Wave is to build a Wave robot. Robots are applications that interact with a Wave through the Wave protocol (HTTP interface). Currently, we only support robots hosted with Google App Engine. In the future, we will support any
This howto describes how to create plugins for gedit using python. Below follows a list of the different topics you need to know about. Note also that knowledge of GTK (and more importantly, PyGTK) is useful in creating an actual plugin. An extensive tutorial can be found here. Files needed Every python plugin needs at least two files. One file (pluginname.gedit-plugin) is to tell gedit where the
これらの型は全て,オプションの初期化指定子として正しい型と値を使って 作成することができます: >>> c_int() c_int(0) >>> c_char_p("Hello World") c_char_p('Hello, World') >>> c_uint(-3) Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: Value out of range これらの型は可変 (mutable) なので,その値はあとで変更することが できます: >>> i = c_int(42) >>> print i c_int(42) >>> print i.value 42 >>> i.value = -99 >>> print i.value -99 c_char_p , c_wchar_p ,お
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く