2015年6月27日土曜日
HTML: キャッシュのクリアについて
だいたい書いてあることは同じ
http://qa.atmarkit.co.jp/q/6365
http://hungred.com/how-to/tutorial-stop-caching-jquery-javascript/
で、クエリーを変更する(「違うファイルですよー」)も常套手段
http://yuki.silk.to/2006/04/000170.html
jQuerryを使うのは試していない
http://www.koikikukan.com/archives/2011/08/29-015555.php
http://qa.atmarkit.co.jp/q/6365
http://hungred.com/how-to/tutorial-stop-caching-jquery-javascript/
で、クエリーを変更する(「違うファイルですよー」)も常套手段
http://yuki.silk.to/2006/04/000170.html
jQuerryを使うのは試していない
http://www.koikikukan.com/archives/2011/08/29-015555.php
2015年6月23日火曜日
2015年6月20日土曜日
2015年6月19日金曜日
2015年6月17日水曜日
2015年6月12日金曜日
Mac, shellスクリプトで自動スクリーンショット
screencaptureを使って60秒毎にスクショを取るサンプルコード
http://yumulog.hatenablog.com/entry/2014/10/30/230110
screencaptureコマンドの詳細
http://qiita.com/South_STR/items/f4624134726eca839647
http://yumulog.hatenablog.com/entry/2014/10/30/230110
screencaptureコマンドの詳細
http://qiita.com/South_STR/items/f4624134726eca839647
Python, Facebookページに投稿する
このチュートリアルがシンプルでわかりやすい
http://nodotcom.org/python-facebook-tutorial.html
よくあるエラーの一例
http://stackoverflow.com/questions/8823049/facebook-graph-api-error
'publish_stream'とここでは書いてあるが'publish_pages'のことだと思われ(バージョンの問題かな)
このexampleに従うと「自分のアカウント」で投稿する
http://stackoverflow.com/questions/24052651/python-facebook-sdk-post-to-page
そのときのエラーの一例
http://stackoverflow.com/questions/19535885/oauth-exception-200-while-trying-to-post-to-groups-after-recent-facebook-mainte
「アプリの設定」でアプリ自体のpublicへの投稿を許可しておく必要がある(only meではダメ)
Facebookページへの写真投稿についてはハマった
HTTPのリクエストを自力で作るやつが結果的には容易だった
http://stackoverflow.com/questions/17691636/uploading-photos-or-videos-to-facebook-using-python
ここにあるのはvideosの例だけどphotosに書き換えればよい
あとは前述のこれ、
http://nodotcom.org/python-facebook-tutorial.html
のサンプルへの注記にあるようにappへのaccess tokenではなく、Facebookページに対するaccess tokenをゲットすればページ管理人として投稿できる
参考Graph APIのphoto部分のリファレンス
https://developers.facebook.com/docs/graph-api/reference/page/photos/
Facebook-SDKのリファレンス(post_wallはいいんだけどput_photoは使えなかった)
http://facebook-sdk.readthedocs.org/en/latest/api.html#put-photo
リファレンス全体(root node)
https://developers.facebook.com/docs/graph-api/reference/
http://facebook-sdk.readthedocs.org/en/latest/api.html#class-facebook-graphapi
http://nodotcom.org/python-facebook-tutorial.html
よくあるエラーの一例
http://stackoverflow.com/questions/8823049/facebook-graph-api-error
'publish_stream'とここでは書いてあるが'publish_pages'のことだと思われ(バージョンの問題かな)
このexampleに従うと「自分のアカウント」で投稿する
http://stackoverflow.com/questions/24052651/python-facebook-sdk-post-to-page
そのときのエラーの一例
http://stackoverflow.com/questions/19535885/oauth-exception-200-while-trying-to-post-to-groups-after-recent-facebook-mainte
「アプリの設定」でアプリ自体のpublicへの投稿を許可しておく必要がある(only meではダメ)
Facebookページへの写真投稿についてはハマった
HTTPのリクエストを自力で作るやつが結果的には容易だった
http://stackoverflow.com/questions/17691636/uploading-photos-or-videos-to-facebook-using-python
ここにあるのはvideosの例だけどphotosに書き換えればよい
あとは前述のこれ、
http://nodotcom.org/python-facebook-tutorial.html
のサンプルへの注記にあるようにappへのaccess tokenではなく、Facebookページに対するaccess tokenをゲットすればページ管理人として投稿できる
参考Graph APIのphoto部分のリファレンス
https://developers.facebook.com/docs/graph-api/reference/page/photos/
Facebook-SDKのリファレンス(post_wallはいいんだけどput_photoは使えなかった)
http://facebook-sdk.readthedocs.org/en/latest/api.html#put-photo
リファレンス全体(root node)
https://developers.facebook.com/docs/graph-api/reference/
http://facebook-sdk.readthedocs.org/en/latest/api.html#class-facebook-graphapi
2015年6月11日木曜日
python: 配列の追加、appendのアレコレ
基礎
http://www.pythonweb.jp/tutorial/list/index6.html
appendで多次元配列やキー付き配列を作る作り方が下の方に
https://docs.python.org/2/tutorial/datastructures.html
http://www.pythonweb.jp/tutorial/list/index6.html
appendで多次元配列やキー付き配列を作る作り方が下の方に
https://docs.python.org/2/tutorial/datastructures.html
2015年6月6日土曜日
LinuxマシンのWiFiの操作をコマンドラインでする
http://unix.stackexchange.com/questions/92799/connecting-to-wifi-network-through-command-line
Raspberry Piに関してはコレ実績あり
https://www.raspberrypi.org/learning/networking-lessons/lesson-3/README.md
sudo service networking restart
sudo ifup wlan0
Raspberry Piに関してはコレ実績あり
https://www.raspberrypi.org/learning/networking-lessons/lesson-3/README.md
sudo service networking restart
sudo ifup wlan0
2015年6月3日水曜日
pythonでwordpressに投稿
http://python-wordpress-xmlrpc.readthedocs.org/en/latest/overview.html#installation
ポストとページを操作する例
http://python-wordpress-xmlrpc.readthedocs.org/en/latest/examples/posts.html
*実際のxmlrpc.phpのURLはサーバーの情報をちゃんと調べる必要がある
エラー無しで動いた(2015/11/30)
まずコレで、その後に上記のリンクを参照してpublish
http://python-wordpress-xmlrpc.readthedocs.org/en/latest/overview.html
ポストとページを操作する例
http://python-wordpress-xmlrpc.readthedocs.org/en/latest/examples/posts.html
*実際のxmlrpc.phpのURLはサーバーの情報をちゃんと調べる必要がある
エラー無しで動いた(2015/11/30)
まずコレで、その後に上記のリンクを参照してpublish
http://python-wordpress-xmlrpc.readthedocs.org/en/latest/overview.html
登録:
投稿 (Atom)