python
pythonã§twitterã®OAuthå¨ãã試ãã¦ããã以åDjangoããæ±ããã®ã触ã£ã¦ãããã©ãä»åã¯bot対å¿ããããã£ãã®ã§ãè²ã 調æ»ãããä»botã¯ã»ã¼èªä½ã®twitterã©ã¤ãã©ãªã使ã£ã¦ãã®ã§ãOAuthå¨ããèªä½ãã¦ã¿ããã©ããã¬ã¤ã«æ¸ããæ°ãããªããªã£ãã®ã§â¦
Tornadoãå ¬éããä¸æ®µã¨çãä¸ãããè¦ãã¤ã¤ããPythonçéã§ããããã®ããã°ã¦ã§ã¼ãã«ä¹ããªãæã¯ç¡ãã®ã§Tornadoãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ãã Tornadoã®ã¤ã³ã¹ãã¼ã«èªä½ã¯ç°¡åã§ãæ¦è¦ â Tornado v0.2 documentationã«ããéãã«é²ããã°çµäºã§ãããâ¦
ä¼ç¤¾ã®å 輩ã«ããã°æ¸ãã¨è¨ãããã®ã§ãããã¨ã³(@tohae_call)ã®ã½ã¼ã¹ãå°åºãã¦ãããã¨æãã¾ãã ä»åã¯Javascriptã®ã©ã¤ãã©ãªã¨ãã¦æåãªJQueryã®æ§ã«DOMæä½ã§ãããpyqueryã¨ããã©ã¤ãã©ãªã®ä½¿ãæ¹ãç´¹ä»ãã¾ããã¯ãã¼ã©ã¨ãã¹ã¯ã¬ã¤ãã³ã°ã¨ãâ¦
@tohae_callã¨ããbotãä½ã£ã¦ããã®ã§ãããä»ã¾ã§ã¯followãã¦ããã人ãæåã§followè¿ããã¦ãã®ã§ãããæè¿@tohae_callãremoveãã人ãå¢ãã¦ãã¦ããããã«æåremoveã¯ããã©ãããããã®ã§ã両æ¹ã¨ãèªååãããã¨ã«ãã¾ããã ãã®ããã«ã¯ãçâ¦
ã°ãã£ãã¼ã¿ãããªãã®ãä½ãããã¦ãMecabã§ã»ãã»ããã¦ãã®ã§ãããYahoo!ãããªãã便å©ãããªAPIãåºãã®ã§ä½¿ã£ã¦ã¿ã¾ããã Yahoo!ãããããã¼ãããã¯ã¼ã¯ - ããã¹ã解æ - ãã¼ãã¬ã¼ãºæ½åºãã®APIã¯JSONã§è¿ãã¦ãããã®ã§ãè¶ ç°¡åã«ä½¿ãã¾ããâ¦
ã¿ã¤ã ã©ã¤ã³ãåå¾ããããpostãããã§ããã®ã¯ä¾¿å©ãªãã§ãããæ®å¿µãªãã¨ã«Statusã¯ã©ã¹ããã¯ã©ã¤ã¢ã³ããªã©ã®æ å ±ãåå¾ã§ããªããJSONãã¼ã¹ããã ããªãã ããããã®è¾ºããåå¾ã§ããããã«ãã¨ããï¼
ä½ã¨ãªãæã ã£ãã®ã§ãCentOS5ã«TOkyoCabinetãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã moved TokyoCabinetæ¬ä½ã¯ä¸è¨ãªã³ã¯ãããã¦ã³ãã¼ããææ°çã¯1.4.14 $ wget http://tokyocabinet.sourceforge.net/tokyocabinet-1.4.14.tar.gz $ tar xvzf tokyocabinet-1.4.14.tarâ¦
Yahooã®OpenIDã試ããã¨ãããããªãããã¼ãçªå·ãã»ãã»ãã§ã©ãããããããã¨ãç¥ã£ãã®ã§ãmod_pythonãå ¥ãã¦ã¡ããã¨åããã°ä½¿ããã®ããªã¼ãã¨æã£ã¦CentOSãå ¥ãã¦ã¿ãã¡ã¢ã MacBookã®Apacheã®è¨å®ããã¦ãããã£ããã ãã©ãæå ã®MacBookã«ã¯â¦
URLå¤æ´ã®ãç¥ããããã¯çµ¶å¯¾ã«è²·ãã Djangoã¯ãªã³ã©ã¤ã³ããã¥ã¡ã³ããããªããããã©ãã©ããã©ãèªãã°è¯ãã®ãããããããªãã ãããã£ã¦æ¸ç±ã«ã¾ã¨ãã¦ããã ããã¨å¤§å¤ãããããã ãã åé¡ã¯å¤æ®µã4410åã£ã¦é«ããã ããJK
Djangoã¯ã¨ã¦ããã°ãããã¬ã¼ã ã¯ã¼ã¯ã ã¨æãããæåã®è¨å®ãããªãé¢åã ã£ãããã¾ãã $ django-admin.py startproject tohae $ cd tohae $ django-admin.py startapp blogããããã¨ã²ãªå½¢ã¨ãªããã¡ã¤ã«ãªã©ã¯çæãããã®ã§ããããããããçµæ§å¤§â¦