Use the best tool for the job. https://github.com/kennethreitz http://twitter.com/kennethreitz
NLTK 2.0.1, a.k.a NLTK 2, was recently released, and what follows is my favorite changes, new features, and highlights from the ChangeLog. New ClassifiersThe SVMClassifier adds support vector machine classification thru SVMLight with PySVMLight. This is a much needed addition to the set of supported classification algorithms. But even more interesting… The SklearnClassifier provides a general inte
Posted by fRui Apps | Filed under python, web-framework In this post lets talk about choosing a python framework. Choosing a language/framework is one of the most difficult things that every programmer has to face. Many a times you choose a framework or language because there is a gut feeling that you like it, but you can't explain why and how. Few of the times you see the learning curves of the l
本書は社会ネットワーク分析の基礎理論への理解を、オープンソースのプログラミング言語Pythonを使って体感しながら深めるための書籍です。ソーシャルネットワーク分析の背景となる理論を学びたいスタートアップ企業や、社会学の理論をプログラミング言語を使って実践的に研究したい研究者などにとって、役立つ知識を学ぶ助けとなります。なお本書はEbook版のみの販売となります。 2012/7/20 誤植等を修正してファイルをアップデートしました。2012-7-20版をダウンロード可能です。 2013/5/20 誤植を修正してファイルをアップデートしました。2013-5-20版をダウンロード可能です。 正誤表 書籍発行後に気づいた誤植や更新された情報を掲載しています。お手持ちの書籍では、すでに修正が施されている場合がありますので、書籍最終ページの奥付でお手持ちの書籍の刷数をご確認の上、ご利用ください。 第1
Few days ago, I decided to try to generate QRCodes. This article just shows a possibility using Python. Tools Googling for QRCodes generation I found some websites proposing to generate QRCodes for you. The ZXing Generator and the Kaywa Generator seem really powerful and complete, but I was looking for a way of integring QRCode-generation in an piece of software without requiring an Internet acces
Python の CLI フレームワークに Cliff というのがある。 http://readthedocs.org/docs/cliff/en/latest/ ドキュメントを読んでコマンドラインなアプリケーションを作る場合に使えそうだったので、試してみたら Python2.6 では動かなかった。 ちょっとソースを読んでみた所簡単に直せたので、修正して Pull Request したら取り込んでくれた。 で、ドキュメントでは cliffdemo というアプリケーションがサンプルであるが、setup.py を実行して cliffdemo という実行ファイルを作成する。 cliffdemo から main.py を呼び出して実行する。 が、いちいち setup.py するの手間かかるし、作成しなくても直接 main.py を実行して動かないかなと思って色々試してみた。 GitHub - he
Conventions Used in This BookUsing Code ExamplesSafari® Books OnlineHow to Contact Us What Is This Book About?Why Python for Data Analysis?Python as GlueSolving the “Two-Language” ProblemWhy Not Python?Essential Python LibrariesNumPypandasmatplotlibIPythonSciPyInstallation and SetupWindowsApple OS XGNU/LinuxPython 2 and Python 3Integrated Development Environments (IDEs)Community and ConferencesNav
One of the really useful things in python are the setup scripts. When doing “serious” business, you really should look into them. Setup scripts are amazingly powerful. But they don’t necessarily need to be complex. But because of this flexibility, the documentation around them seems like a lot to read. Additionally, the state of packaging has changed quite a bit over the years. So you now have a c
Summary¶ The Python Software Foundation (PSF) is accepting proposals for architecture, design, development, and maintenance of the primary web site for the Python programming language, www.python.org. The existing Python web site was originally discussed at PyCon 2003. The site was then designed, developed and deployed in Spring 2006. The site is currently maintained by a team of community volunte
Pinterestの急成長を支えてきたアーキテクチャとは? Pythonで開発しAmazonクラウドで運用 急速に人気が急上昇するWebサービスでは、どのようにスケールするアーキテクチャを構築し運用していくのかはサービスの成否を分けるほど重要です。Pinterestのように急成長してきたサービスのソフトウェア構成やリソース構成はどうなっているのでしょうか、Web上でいくつか情報が公開されているのでまとめてみました。 Pythonで開発し、Amazonクラウドで運用 1年ほど前なので少し古い情報ではあるのですが、Q&AサイトのQuoraにPinterestのco-founder Paul Sciarra氏が書き込んだソフトウェア構成の説明があります。 PinterestはPythonで開発されており、MemcachedやNginxなど高速なレスポンスに配慮した構成になっている様子がうかがえま
Rails の Asset Pipeline の Django porting っぽいものとして、django-pipeline があります。 他にいくつか類似のものがあるんですが、正直どれも Compressor 部分には、CSS だと YUICompressor、JavaScript だと Closure Compiler のように、pipeline ライブラリ自身が仕事をするのではなく、肝心のコア部分は同じものを使っているので、半日ぐらい調べましたがあまり差はない印象です。 最後まで Django Compressor とどっちを使おうか迷ったんですが、最終的には記述方法の好みで選びました。 django-pipeline の場合は、pipeline の対象に指定するファイルは settings.py に dict で書きます。 PIPELINE_CSS = { 'colors':
Raymond Hettinger @raymondh #python tip: The set.discard(k) method unconditionally removes k from a set. For dictionaries, use dict.pop(k, None). 2011-05-03 05:18:53 Raymond Hettinger @raymondh #python tip: The fast itertools recipes can be copied to a utils module with a single cut-and-paste. http://bit.ly/itertools_plus 2011-05-13 23:54:45
The other day, I thought it would be fun to create a little program that could generate QR codes and show them onscreen with wxPython. Of course, I wanted to do it all with Python, so after a little looking, I came across 3 candidates: python-qrcode on github pyqrcode on sourceforge and pyqrnative on Google code I tried python-qrcode and pyqrnative since they worked on Windows as well as Mac and L
The Architecture of Open Source Applications (Volume 2) PyPy Benjamin Peterson PyPy is a Python implementation and a dynamic language implementation framework. This chapter assumes familiarity with some basic interpreter and compiler concepts like bytecode and constant folding. 19.1. A Little History Python is a high-level, dynamic programming language. It was invented by the Dutch programmer Guid
Focus.py helps you keep focused by applying schedulable firewall rules to distracting websites. An example firewall rule looks like this: def domain_reddit_com(dt): return dt.hour == 21 # allow from 9-10pm Starting Linux Add the following line to the top of your /etc/resolv.conf, before any other nameservers: nameserver 127.0.0.1 Mac OS X Go to System Preferences -> Network -> Advanced -> DNS and
Posted May 16, 2012 I like Python, a lot. I'm one of those people who would use it all the time if they could, especially for web development. Which is convenient, since I'm currently working on my own company. One of the drawbacks of using Python, though, has always been getting it to play nicely with web servers. I've never been completely happy with the options out there: mod_python, mod_wsgi,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く