2013-10-26から1日間の記事一覧
wordpress のデータ構造が謎すぎるので、メモ。管理画面とか色んな所で使用するurl が格納されているのは、db内で次のところ。 mysql> use wordpress_db; mysql> select * from wp_options where option_name = 'home' or option_name = 'siteurl'; +-------…
テキストファイルを全文コピペしたい時とかにつかう。パイプで pbcopy に渡せば、ペーストバッファに入れられるので、そのままctrl-pすれば貼り付けられる。こんなかんじ。 % cat sample.txt tie9Yoh8 hahQu8ph Phaxah1a yue8Aoy6 zeoN3toh du6Thio2 uBohs7t…
Debug = True の状態で formのテストしてたら、 Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token missing or incorrect. In general, this can occur when there is a genuine Cross Site Request F…