Inspired by Deploying Django on Heroku (Mac OSX), i've tried to make Tornado working on Heroku platform. Tornado is a non-blocking web server and tools, suitable for handling thousands of simultaneous connections. Setup First, you need to create the directory (heroku-tornado), and setup virtualenv. Then, install the required modules. 1 2 3 4 5 6 7 8 mkdir heroku-tornadocd heroku-tornadovirtualenv
Twinado = Tornado + async-python-twitter 2009-09-23 (Wed) 0:37 Uncategorized Twinadoã¨ããæºå¸¯åãã®Twitterã¯ã©ã¤ã¢ã³ããæ¸ãã¦ã¿ã¾ãããæ¥å¸¸çã«ä½¿ããã¬ãã«ã«ã¯ãªã£ã¦ããã¨æãã¾ãã Twinado: æºå¸¯ç«¯æ«åãTwitterã¯ã©ã¤ã¢ã³ã ç¹å¾´ã¨ãã¦ã¯æè¿Facebookãå ¬éããTornadoã¨ãããã¬ã¼ã ã¯ã¼ã¯ã使ã£ã¦ãTwitter APIå¼ã³åºããå ¨ã¦éåæã«è¡ããã¦ããç¹ã§ãããªã®ã§ãã³ãã¯ã·ã§ã³æ°ãå¢ãã¦ãé«éã«åãã¯ãã§ããç¾ç¶DoCoMo P905iã§ããåä½ç¢ºèªãã¦ãã¾ããã ãã£ããã¨ãã¦ã¯ãæè¿Perlçéã§éåæå¦çãæµè¡ã£ã¦ããã®ãè¦ã¦ã楽ãããã ã¨æã£ã¦ããã¨ããã«ãTornadoãå ¬éãããã®ã§ãå°ã使ã£ã¦ã¿ããã¨æãç«ã£ãäºã§ããTornadoã«ã¤ãã¦ã¯ä»¥ä¸ãåèã«
ã¬ã¹ãã³ã¹ã®é ãå¿çãè¿ããããã¯ç¨ãµã¼ããã»ããã£ãã®ã§ã Tornadoã§ä½ã£ã¦ã¿ã¾ããã Tornado ã¯ã URLãã¿ã¼ã³ä¸ã«æ£è¦è¡¨ç¾ãå ¥ããã¨ããªã¯ã¨ã¹ããã³ãã©ã¼ã¸ãªã¯ã¨ã¹ãå¼æ°ã¨ãã¦æ¸¡ããã¨ãã§ãã¾ãã class himote_check_handler(tornado.web.RequestHandler): # ([0-9]+)ã«ãããããç®æãã uidã¨ãã¦æ¸¡ããã def get(self, uid): response_json = "{'mote_event_avg': %2.11f, 'user_id': %s}" # response delay uid_val = int(uid) if uid_val > 6000: os.system('sleep %d' % (uid_val / 1000)) # response json format sel
2009.09.13 ã¨ã£ã¦ãéã Tornade ã¨ãã¨ã£ã¦ãæ©ãããã¥ã¡ã³ãã®å訳ã®ãªãªã¼ã¹ ã«ãã´ãªï¼Python FriendFeed ã§ä½¿ããã¦ããã¦ã§ããµã¼ãããªã¼ãã³ã½ã¼ã¹ã§ Tornade ã¨ãã¦å ¬éãããããããFriendFeed èªä½ã¯ä½¿ã£ããã¨ããªãã®ã ããPython ã§æ¸ããã¦ããããè¨äºãè¦ãéãé åçã«è¦ããã®ã§èª¿ã¹ã¦ã¿ãã ã¡ãªã¿ã«ãFriendFeed ã«é¢ãã¦ã¯ãããã°ã®æ´æ°æ å ±ã¯ãFriendfeedãã§æµããã¨ã«ãã ã ããã°ãæ¸ãã¦ãã人ã FriendFeed ãå§ããã¹ãï¼ã¤ã®çç± ãªã©åç §ãã§ããFriendFeedâãã°ãããã誰ã使ããªãã¢ããªã«ãªãå±éºãã ã¨ããããã¨ãããªã®ããFacebookãã½ã¼ã·ã£ã«ã¢ã°ãªã²ã¼ã¿ã®FriendFeedãè²·å ã¨ãªããããã« Facebookããªã¢ã«ã¿ã¤ã Webãµã¼ããTornadoããå ¬é
ã©ã¤ã»ã³ã¹Â¶ Tornado㯠Facebookã®ãªã¼ãã³ã½ã¼ã¹æè¡ ã®ä¸ã¤ã§ãããã®ããã°ã©ã 㯠Apache Licence, Version 2.0 ã§ä½¿ç¨ãããã¨ãã§ãã¾ãã ãã®ã¦ã§ããµã¤ãã¨ããã¹ã¦ã®ããã¥ã¡ã³ã㯠Creative Commons 3.0 ã®ã©ã¤ã»ã³ã¹ã®å ã«å ¬éããã¦ãã¾ãã 翻訳ã«ã¤ãã¦Â¶ 翻訳ããªãªã¸ãã«ã® ææ¸ ã¨åãã Creative Commons 3.0ã«æºæ ãã¾ãã 翻訳ã¯ä»¥ä¸ã®ã¡ã³ãã¼ãè¡ã£ã¦ãã¾ãã æ¸å· å±±å£ (ymotongpoo) a2c nishio
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}