iyuichiの私的開発ログ

渋谷で働くWebエンジニアのログ. Java, Android, iOS, Docker, GCP, AWS, ゲーム開発

python

Pythonであの問題を解く

ちょっとバズっていたあれです。 ほとんどのエンジニアには解けるが、下位10%のダメなエンジニアにだけ解けないパズル? - Ruby on Railsのビシバシはぁはぁ日記ネタバレはしてません。 curlでやってる人が多かったのですがpythonでやりましたという話。Pyth…

unicodeエスケープシーケンスを読む

pythonで簡単に人間が読める文字で表示できました。 以下のどちらでも可能。 print u'\u3088\u3046\u3053\u305d\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u4e16\u754c\u3078' print '\u3088\u3046\u3053\u305d\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u4e16\u754c…

MacにHomebrewで入れたpyenvでpython3.4.3をインストールする

普通に"pyenv install -v 3.4.3"ってやるとエラーが出ました。 エラーメッセージに記載されていたURLを見てみる。 Common build problems · yyuu/pyenv Wiki · GitHub ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?If you ha…

WebDav接続

2つモジュール試してみた。 easywebdavの方が記述量が少なくてコードの見通しがよさげ。 tinydav # tinydav : http://code.google.com/p/tinydav/ from tinydav import WebDAVClient client = WebDAVClient("hostname", 80) client.setbasicauth("user", "p…

Step 1: Representing Records

Using Lists Using Dictionaries これらの解説。 >>> bob = {'name': 'Bob Smith', 'age': 42, 'pay': 30000, 'job': 'dev'} >>> sue = {'name': 'Sue Jones', 'age': 45, 'pay': 40000, 'job': 'hdw'} これをdbというDictionariesに代入 >>> db = {} >>> db…

off-the-shelf

既成の、市販品といった意味のようですね。 (idiomatic) As purchased or as commonly available, without modification or customization. We can build a specialized part for you, but an off-the-shelf product will probably cost less. "Programing P…