移転しました http://please-sleep.cou929.nu/20110525.html
2012 Pythonアドベントカレンダー(Webフレームワーク) - connpass 6日目担当です。軽めにざっくりとした入門的なことをかきます。ほんとうはもっと早めの日程にかけたらよかったんですが、ぼーっとしてたらこうなってしまいました。すみません。 この記事を書こうと思ったきっかけは 「サーバーサイドの知識の無さに全俺が泣いた」レベルの入社当時の人に読ませたら少しはアドバイスになったであろうPythonとDjangoの前提知識メモ - 憧れ駆動開発 の記事にいまでも一日10アクセスとかずっとあってなんだかそれの罪滅ぼしになればいいかなという感じです。Python でウェブサービスつくろうとして Django にいきついた人にとってこのアドベントカレンダーなどを通じてなんらかの手がかりになれば幸いです。 前回のおさらい そのVirtualBoxで仮想環境をつくるメモ - 憧れ駆動開発
Verified details These details have been verified by PyPI Maintainers gnebehay gotcha Unverified details These details have not been verified by PyPI Project links Homepage GitHub Statistics View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery Meta License: BSD License (BSD) Author: Godefroid Chapelle Tags pdb, ipython Requires: Python >=2.7, !=3.0.*
In Python, there is a difference between functions and bound methods. >>> def foo(): ... print "foo" ... >>> class A: ... def bar( self ): ... print "bar" ... >>> a = A() >>> foo <function foo at 0x00A98D70> >>> a.bar <bound method A.bar of <__main__.A instance at 0x00A9BC88>> >>> Bound methods have been "bound" (how descriptive) to an instance, and that instance will be passed as the first argume
Python Imaging Libraryの関数を使いながらのメモです。 テスト用のモジュールTestPIL.pyを作成し、同じディレクトリに全て同じサイズの適当なRGB画像"test.bmp","test2.bmp","mask.bmp"を用意して実行してみました。以下使えそうな関数をひたすらピックアップ&リストアップ。関数の書き方は、変数名:型、関数名(引数名:引数型):返却値型という表記を使うことにします。 モジュールのインポート from PIL import Image Imageクラスのメンバ変数 format:string 画像ファイルのフォーマット mode:string 階調。"1":2値画像,"L":グレースケール,"RGB","CMYK"など size:turple (width, height) 画像サイズ pallete:palette 画像モードが"P"のとき
1.5 さん、まだ出る気配が無いので github の master から拾ってきて Custom User 組み込んで使ってます。 # coding: utf-8 import re from django.db import models from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) from django.core import validators from django.core.mail import send_mail from django.utils.translation import ugettext_lazy as _ from django.utils import timezone class UserManager(BaseUserManager): d
PyCon JP 2012参加レポート 第3回Open Spaces、ライトニングトーク、Sprints─PyConならではのセッションたち─そして来年は? 2012年9月15日から17日までの3日間、都立産業技術大学院大学で、毎年恒例になったPyCon JP 2012が開催されました。 本記事では3回に渡り、PyCon JP 2012で行われたセッションについてレポートします。最終回の今回は、PyCon JP 2011よりも規模が大きくなって行われたOpenSpacesやライトニングトーク、PyCon JP 2012 PartyなどPyCon JP 2012の特色ある催しの様子をお伝えします。また、来年の開催についても知らせします。 Open Spaces OpenSpacesは2日目のお昼休みに開催されました。OpenSpacesとは、話したい事がある参加者向けに各教室が開放されて、そ
Werkzeug¶ werkzeug German noun: “tool”. Etymology: werk (“work”), zeug (“stuff”) Werkzeug is a comprehensive WSGI web application library. It began as a simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility libraries. Werkzeug doesn’t enforce any dependencies. It is up to the developer to choose a template engine, database adapter, and ev
Simple and efficient tools for predictive data analysis Accessible to everybody, and reusable in various contexts Built on NumPy, SciPy, and matplotlib Open source, commercially usable - BSD license Classification Identifying which category an object belongs to. Applications: Spam detection, image recognition. Algorithms: Gradient boosting, nearest neighbors, random forest, logistic regression, an
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く