http://blog.balancedpayments.com/the-ledger/1 comment | 0 pointsBalancedを取り上げるのは、「オープンカンパニー宣言したBalancedで働くエンジニア」以来、3ヶ月ぶりですが、今回は同社の本業に近い社内向けの会計アプリの話しです。 'balanced'と呼ばれる社内会計システム(社名と同じにしなくてもよいのに。。)のお金の流れの構成は、 Funding Instrument: お金の預け元(source)、もしくは預け先(destination)のこと。例えば、クレカはsourceの役割のみ。借方 (debit)、貸方 (credit)、払戻、取消(借方/貸方の反対仕訳)の取引がありえる。 Transaction (取引) : Marketplaceにあるエスクローアカウント(Funding Instrumentの一つ
Cabot is a free, open-source, self-hosted infrastructure monitoring platform that provides some of the best features of PagerDuty, Server Density, Pingdom and Nagios without their cost and complexity. (Nagios, I'm mainly looking at you.) It provides a web interface that allows you to monitor services (e.g. "Stage Redis server", "Production ElasticSearch cluster") and send telephone, sms or hipchat
INDEX コーディングスタイル ファイル操作 日付・時刻 その他 その他 .pycを作りたくない 環境変数PYTHONDONTWRITEBYTECODEを設定すると、.pycおよび.pyoファイルが作成されなくなる。値は何でもいいので、 export PYTHONDONTWRITEBYTECODE=1 などと書いておけばよい。 辞書(dict)のソート キー(key)の順に取り出す >>> score = {'Jack':300, 'Mike':200, 'Jane':100} >>> for (k, v) in sorted(score.items()): ... k, v ... ('Jack', 300) ('Jane', 100) ('Mike', 200) 値(value)の順に取り出す >>> for (k, v) in sorted(score.items(), key=l
More About Unicode in Python 2 and 3 written on Sunday, January 5, 2014 It's becoming increasingly harder to have reasonable discussions about the differences between Python 2 and 3 because one language is dead and the other is actively developed. So when someone starts a discussion about the Unicode support between those two languages it's not an even playing field. So I won't discuss the actual
ここしばらく python 2.5 に対応した python コードを書いていなかったので気にもとめませんでしたが、 diff-highlight を書くときに python 2.4, 2.5 対応でハマったことについてまとめます。 ちなみに diff-highlight を python 2.4, 2.5 に対応させたのは、 連携先である mercurial が python 2.4-2.7 をサポートしているので、それに合わせたためです。 ちなみに、タイトルに python2.4-3.3 とありますが、この記事では 3.0 と 3.1 は対象としていません。 python 2.4, 2.5 パッケージを手に入れる (Ubuntu) 私がテスト実行環境として使っている drone.io では ubuntu (おそらく 10.04)を使っていますが、 ubuntu の python2.4
前置き Python3.4のSingle-dispatchで遊んでみた - Python Advent Calendar 2013 — hirokiky's blog 読んだ瞬間、脳細胞に衝撃が! 「これはpprintのための新機能だ!」 「あの長いPrettyPrinter._formatがsingledispatchでプリチーに書ける!」 「自作クラスをpprintできるようになったに違いない!」 はやる心を抑え、3.4.0b1をダウンロード し、Lib/pprint.py をgvimで開くと、そこには!? 作ってみた というわけで、 Single-Dispatch を使ったpprintを実装してみました。 doloopwhile / single-dispatch-pprint Re-implementation of 'pprint' in Python Standard Libr
2016-12-09追記 「Pythonクローリング&スクレイピング」という本を書きました! Pythonクローリング&スクレイピング -データ収集・解析のための実践開発ガイド- 作者: 加藤耕太出版社/メーカー: 技術評論社発売日: 2016/12/16メディア: 大型本この商品を含むブログを見る 2015年6月21日 追記: この記事のクローラーは動かなくなっているので、Scrapy 1.0について書いた新しい記事を参照してください。 2014年1月5日 16:10更新: デメリットを修正しました。 以下の記事が話題になっていたので、乗っかってPythonの話を書いてみたいと思います。 Rubyとか使ってクローリングやスクレイピングするノウハウを公開してみる! - 病みつきエンジニアブログ 複数並行可能なRubyのクローラー、「cosmicrawler」を試してみた - プログラマにな
CURD - Tiny ORM for MySQL¶ Release: v0.3.6 (Installation) NOTE: CURD.py may not be stable before version 1.0 NOTE: version 0.3.0 has a lot of Not-Backward-Compatible changes compared to version 0.2.5. Tests status: CURD.py is a tiny orm for mysql database, written in Python. >>> from models import User >>> user = User(name='Tom', email='tom@gmail.com') >>> user.save() # insert 1L >>> user.email =
🚨 Check Out The New PyCharm YouTube Channel 👉👉👉 https://www.youtube.com/c/PyCharmIDE PyCharm Professional Edition provides much more than just your standard Python development tools. John Lindquist will demonstrate the workflow and tools to make using databases, Flask, HTML, CSS, and JavaScript a breeze by building and deploying a Pinterest clone. Come learn many of the tips and tricks PyCha
While dependency injection is easy to do in Python due to its support for keyword arguments, the ease with which objects can be mocked and its dynamic nature, a framework for assisting in this process can remove a lot of boiler-plate from larger applications. That's where Injector can help. It automatically and transitively provides dependencies for you. As an added benefit, Injector encourages ni
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く