ãã®ãã©ã¦ã¶ ãã¼ã¸ã§ã³ã®ãµãã¼ãã¯çµäºãã¾ããããµãã¼ãããã¦ãããã©ã¦ã¶ã«ã¢ããã°ã¬ã¼ããã¦ãã ããã
MacBook Air 11ã¤ã³ã欲ããï¼ MacBook Air 11ã¤ã³ã欲ããï¼ å¤§äºãªãã¨ãªã®ã§2åè¨ãã¾ãã ããããã¯ãã£ã¡ã«æ¸ããã¨æãã¾ãã http://d.hatena.ne.jp/s5ot/ youRoomã®APIã使ã£ã¦ãªã«ããã¦ã¿ããã¨æãã¾ããã APIã使ãã«ã¯ç³ãè¾¼ã¿ãå¿ è¦ã§ããç³ãè¾¼ã¿ã¯ããããã§ãã¾ããã youRoom APIããã¼ã¿ã¦ã¼ã¶åãã«éå®å ¬éãã¾ãï¼ ããããã¨ãConsumer Keyã¨Consumer Secretãããã«çºè¡ãã¦ãããã¾ãã çºè¡ãã¦ããã£ãConsumer Keyã¨Consumer Secretããã¨ã«APIããããããã«å¿ è¦ãªã¢ã¯ã»ã¹ãã¼ã¯ã³ãåã£ã¦ã¿ã¾ãã ãã¡ãã®è¨äºãåèã«ãã¦ã¾ãã Sinatra 㨠OAuth ã使ã£ã¦ Twitter ã®ã¿ã¤ã ã©ã¤ã³ãåå¾ãã¦ã¿ã ãããªç°å¢ã§è©¦ãã¾ããã # ruby
å æ¥ãéªéããGoogle I/Oå ±åä¼ in æ±äº¬ã§App Engineãªãã¿ãçºè¡¨ããããã¾ããããå®ã¯App Engineãã¡ããã¨ä½¿ã£ããã¨ã¯ç¡ãã£ãããã¾ãã以åã«ãã£ããã¨ã¯ã¨ããã°ã¢ã«ã¦ã³ããä½ã£ã¦è©¦ãã«éçãªãã¡ã¤ã«ããããã¤ãã¦ã¿ã¦çµäºã¨ãããªããªãæ²ããæãã§ããã£ã¨å½æã®ç§ã«ã¯å¿ è¦ãªãã£ãã®ã ã¨æãã¾ãã ããGoogle I/Oã§ã»ãã·ã§ã³ã«è§¦ããã¾ãä»å¾betaãåæ¥ãã¦ãã£ãã諸ã ã®(å ¨ææ¤ç´¢å«ã)æ©è½å¼·åãããã¦ãããã¨ãèããã¨ããããPython 2.5ã¨ããä»ããããã¨ã¡ãã£ã´ãå¤ãè¨èªãã¡ã¤ã³ã§ãã£ã¦ã(Javaã§æ¸ãæ°ã¯ããã¾ãç¡ãã¦ããã£ããApp Engine使ããªãPythonã§æ¸ããã)App Engine使ãããæ°æã¡ãé«ã¾ã£ã¦ããä»æ¥ãã®é ããããªã¨ããã«ä¸åº¦ãã¿æ¯ãããã£ãã®ã§ä»åã¯App Engineã§æ¸ãã¦ã¿ããã¨ãã次第ãã¡ãªã¿ã«
æ¨æ¥Trooisã¨ããæ°ãããªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãããªãªã¼ã¹ãã¾ãããGoogle App Engineã§åä½ããAmazon S3ã®ã¯ãã¼ã³ã§ãã Amazon S3ã¯ãã¡ã¤ã«ãæ¸ãããã ããèªã¿è¾¼ãã ãããã¢ããªã±ã¼ã·ã§ã³ã«ããã便å©ã§ããã¨ãã«ï¼ ã»ã¯ã©ã¦ãã®è¤æ°ã®ãã¼ãã§åä½ãã¦ããã¢ããªã±ã¼ã·ã§ã³ï¼ãã®å ´åã¯ãã¡ã¤ã«ã·ã¹ãã ã使ãã¾ããï¼ ã»Herokuï¼ã¯ã©ã¦ãPaaSï¼ã使ã£ã¦ãå ´åãHerokuã®ãã¡ã¤ã«ã·ã¹ãã ã¯ãªã¼ããªã³ãªã¼ã§ãããHerokuã®ãã¼ã¿ãã¼ã¹ã¯è²»ç¨ãé«ããªã½ã¼ã¹ã§ãã ãããAmazon S3ã¯ææã§ããå®ä¾¡ã§ãããç¡æã®é¸æè¢ãããã°ãä¸è¨ã®å ´åã«ã¡ãªãããããã¾ãï¼ ã»è«æ±æ¸ãªã©ã®è¤éæ§ãæ¸ããããã ã»ã©ã³ãã³ã°ã³ã¹ããã¼ãã«ããããä¾ï¼éå¶å©ããã¸ã§ã¯ã ã»è«å¤§ãªæ¯æãã®ãªã¹ã¯ãé¿ããããææãµã¼ãã¹ã®å ´åãããã°ã©ã ã¨ã©ã¼ãæå³çç¯è¡ã§è«å¤§
éããã App Engine ãã heroku ã«å¼ã£è¶ããã App Engine ãå¤ä¸ããããã®ã§ããã«å¯¾å¿ããã Twitter 㧠App Engine ã®å¤ä¸ãã®è©±ã§çãä¸ãã£ã¦ãã¦ã課éå±¥æ´ããæ°æéã§ã®èª²éé¡ãåãããã¨ãã話ã ã£ãã®ã§ãè¦ã¦ã¿ãã¨éããã®å ´åæ°æéã§ã¯ä¸æ¥ $1.5 ã»ã©åãããã¨ã®ãã¨ãããã 話ã«ãªããªããéã欲ããã¦ä½ã£ãã®ã«æ¯æ $45 ãæã£ã¦ããããã®ã¯çæ°ã®æ²æ±°ã ã ãã㧠App Engine ãã heroku ã«ç§»è¡ãããã¨ã«ããã App Engine çã®ã½ã¼ã¹ã³ã¼ãã¯ç´å¤±ãã¦ãã¾ã£ã¦ããã®ã§ã¹ã¯ã©ããã§ä½ãç´ãããããããæ®ã£ã¦ããã¨ãã¦ã App Engine ã«æ§ã ãªé¨åãæé©åããã¦ãã(JRuby ã使ã£ã¦ã¯ãããã®ã®)åå©ç¨ã¯é£ããã£ãã¨æãã ãã¼ã¿ãæ¨æºã®æ©è½ã§ã¨ã¯ã¹ãã¼ãããããªããªãåå©ç¨ã®é£ãããã¼ã¿ãã¨ã¯
GAE ã§ãµã¼ãã¹éå¶ããã¦ãçæ§ã®ã¨ããã«ãã¡ã¼ã«ãå±ãã¦ããã¨æãã¾ãããGAEã11æã«ä¾¡æ ¼æ¹è¨ããäºå®ã§ãã ç´°ããéé¡ã«ã¤ãã¦ã¯ Google cloud services â App Engine ãã覧ãã ããã¨ãããã¨ã§ãããä»ã¾ã§ CPU æéåä½ã§ã®èª²é ($0.10/CPU hour) ã ã£ãã®ãã¤ã³ã¹ã¿ã³ã¹æéã§ã®èª²é ($0.08/IH) ã«ãªãã¨ããä¾¡æ ¼æ¹è¨ãå«ã¾ãã¦ã¾ãã¦æµ·å¤ã§ãç©è°ããããã¦ãããã§ãã Hacker News ã¨ãè¦ãã¨$510/æã$2070/æã«ãªã£ã¡ãããã¨ãè¨ã£ã¦ã人ããã¾ããã davepeck 4 days ago One of my clients, whose app sees a decent amount of traffic, is going to go from $510/month to $2070/month
ããæ°ã¶æãGoogle App Engine/Pythonã使ããåãã¦ã¡ãã£ã¨ãããã®ãä½ã£ã¦ã¿ã¦ããã®ã ãã©ãéçºåæããç¥ã£ã¦ããã°ããã£ããªã¼ãã¨æããã¦ãã¦/tipsçãªãã®ãããããã¨æ¸ãã¦ã¿ãã åºæ¬çãªç°å¢è¨å®ã¯ã 以åæ¸ãã ã¾ã¾ã 0. å ¬å¼ããã¥ã¡ã³ããè¯ãèªã è¨ãã¾ã§ããªããã ãã©ã ããã¥ã¢ã« ã¯ãã¡ããã ãã®è¾º ã®ä¸ã®èªã¿ç©ããæµãèªã¿ã ãã§ããã¦ãããã»ããããã datastoreã¨modelçãªã¨ãã 1. key nameã使ãããªã key nameã¯ãã¬ã³ã¼ãã®ä½ææã«æå®ã§ãã(RDBã§ãã)primary keyã®å¥åã¿ãããªãã®ãprimary keyèªä½ã¯èªåçã§ä½æãããã®ã§éçºè ãæå®ã§ããã®ã¯key nameã ãã key nameããã¾ã使ããã¨ã§ãdatastoreã使ãããããããã¨ãã§ãããç¹ã«datastoreä¸ã§"un
ä»æ¥ã¯GoogleAppEngineãRailsã§ä½¿ã£ã¦ã¿ããã¨æãã¾ããJavaã¨ãPythonã¨ããã¹ã¿ã¼ããå¿ è¦ã¯ããã¾ãããRubyã¨Railsã§ãããã§ããå®ã¯çµæ§åã«ç¥ã£ã¦ã®ãã®ã§ãããæ¨æ¥ã1å¹´ã¶ããããã«ä½¿ã£ã¦ã¿ã¦ãã£ã±ãå¿«é©ã§æåããã®ã§ã¡ãã£ã¨ããæ¹ãå ¬éãã¦ãããã¨æãã¾ãã Rails2.3.8 on AppEngin(DataMapper) https://gist.github.com/825451 åºæ¬çã«ããã«æ¸ãã¦ãããã¨ããã£ã¦ããã¾ããRVMã¯ä½¿ããªãã§ãã ããã¨ã®ãã¨ãæ¸ãã¦ããã¾ããã¡ãªã¿ã«åã®ç°å¢ã¯Ruby1.8.7ã§RVMã使ããã«ãã£ã¦ã¾ããRails3ã¯ã¡ãã£ã¨ã¾ã æ£å¼ã«ãµãã¼ããã¦ãªãã¿ããã®ã§ï¼èª¿æ»ä¸ï¼ãä»åã¯Rails2ã§è¡ãã¾ãã ã¤ã³ã¹ãã¼ã« sudo gem install google-appengine Rails2.3.1
追è¨: ç¶ç·¨çãªãã®ãæ¸ããã ä»å¹´ã¯è²ã ãªãã¨ã«æãåºãã¦ã¿ãããã£ã¦ãã¨ã§å°ãåããGoogle App Engine(以ä¸GAE)ã§ãããã¢ããä½ã£ã¦ãããã¢ãèªä½ã¯è¿ããã¡ã«å ¬è¡¨ã§ããã¨æãã åºæ¬çã«ãPythonã¨æ¨æºã£ã½ããã¬ã¼ã ã¯ã¼ã¯ã ãã§ãã£ã¦ã¿ã¦ãããä½ã£ã¦ãããã®ããããªãã«ã·ã³ãã«ãªã®ã¨(ã ããããGAE!)ãGAEã§ãããªãã®è¦æ¨¡ã®éçºãããã®ãèªåèªèº«åãã¦ã¨ãããã¨ãããããã¾ãè²ã ãªã¬ã¤ã¤ã¼ãéãã¦æããããããªãã£ããã£ã¦ã®ããã®çç±ã ãã ãGAEåå¿è ãªã®ã§ããããããããã¯ä»æãªããããXXã®æ¹ã100åãããã¨ããã£ããæãã¦ãããã¨å¬ããã®ã§ä»ã®ã¨ããã®ç°å¢ãæ¸ãã¦ãããã¨ã«ãããä»ãªãã¹ã¤ããå¯è½ã ä»ä½ã£ã¦ãããã®ãJSONãã¡ã¤ã«ãå ¥åºåããã ãã®ãã®ãªã®ã§ãHTMLçæãã¼ãã¿ããã®ã¯ãªãã 1. ãã¬ã¼ã ã¯ã¼ã¯ ä¸ã«ãæ¸ããããã«ãä»å
August 2011 (1) July 2011 (1) June 2011 (2) April 2011 (2) March 2011 (2) February 2011 (2) January 2011 (6) December 2010 (6) November 2010 (5) October 2010 (8) September 2010 (2) August 2010 (3) July 2010 (9) June 2010 (4) March 2010 (1) February 2010 (7) January 2010 (2) ã¯ããã« GAE/Python ã§ã¯ã¹ã¬ãããåããã»ã¹çã«ãã並ååãåºæ¥ãªãã®ã§ãã¿ã¹ã¯ãã¥ã¼ã使ãã®ãä¸è¬çã§ãã ããããURLãã§ããã«ã¤ãã¦ã¯ãéåæãªã¯ã¨ã¹ããå©ç¨ãããã¨ã§ãã¿ã¹ã¯ãã¥ã¼ã使ããã«è¤æ°ã®HTTPéä¿¡ãåæå®è¡åºæ¥ã¾ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}