月別アーカイブ: 2017年4月
コメントを残す
wwwなしに統一するapacheの設定
<VirtualHost *:80> ServerName www.example.com Redirect permanent / http://example.com/ </VirtualHost>
urlの最後のスラッシュは必ずつけること、つけないと例えば、www.example.com/archives/1がexample.comarchives/1にリダイレクトされて.comの後にスラッシュがつかない
apacheのリダイレクトのドキュメント
Pythonクローリング&スクレイピング ―データ収集・解析のための実践開発ガイド― | 加藤 耕太 | 工学 | Kindleストア | Amazon
Scrapy 1.2 ドキュメント — Scrapy 1.2.2 ドキュメント
Python機械学習プログラミング 達人データサイエンティストによる理論と実践 impress top gearシリーズ | Sebastian Raschka, 株式会社クイープ, 福島 真太朗 | 工学 | Kindleストア | Amazon
peeweeについて
生のクエリを発行して戻り値にpeeweeのオブジェクトを取得するにはRawQueryを使う
詳しくは http://docs.peewee-orm.com/en/latest/peewee/api.html#RawQuery
sqlのwhereでnullを比較するには.is_null()を使う
xpathのドキュメント
https://msdn.microsoft.com/ja-jp/library/ms256122(v=vs.120).aspx
https://msdn.microsoft.com/ja-jp/library/ms256086(v=vs.120).aspx
ディレクトリだけパーミッションを変更する
例
find /path/to/the/dir -type d -exec chmod a+x {} +;
-execでコマンドを指定
最後の {} +;の{}は展開して何をするのか分からない、おまじない、まだ調べていない
material designのboxshadowについて
http://qiita.com/sho5nn/items/38ec4adba519c2977e2a
デモ
codepen.io/sdthornton/pen/wBZdXq
スティッキーフッター をflexboxで
A showcase of problems once hard or impossible to solve with CSS alone, now made trivially easy with Flexbox.