ååã®è¨äºã§ãNginxã«ãµã¼ããã¼ãã£ã¢ã¸ã¥ã¼ã«ã追å ãã¦ã³ã³ãã¤ã«ãã¦ã¤ã³ã¹ãã¼ã«ããæé ãæ¸ãã¾ããããUbuntu(Debian)ã®ä½æ³ã«ä¹ã£åã£ã¦dpkgã使ãã¨ããã£ã¨ç°¡åã«ã¢ã¸ã¥ã¼ã«è¿½å ãã§ããã®ã§ãã®æé ãã¡ã¢ãã¦ããã¾ããdpkg-devã®ã¤ã³ã¹ãã¼ã«â¦
S3ã«ä¿åããããã¡ã¤ã«ãç´æ¥S3ã«ã¢ã¯ã»ã¹ãããããªãå ´åã®Nginxã®è¨å®ã§ããé常ã¯ãç´ ç´ã«ã¯ã©ã¦ãããã³ããå©ç¨ããã°ãããããªæ°ããã¾ããã調ã¹ã¦ã¿ãã®ã§ã¡ã¢ãã¦ããã¾ããNginxããèªè¨¼ä»ãã§S3ã«ã¢ã¯ã»ã¹ããã«ã¯ãµã¼ããã¼ãã£ã®ã¢ã¸ã¥ã¼ã«Aâ¦
Macã®å ´åãmvã³ãã¼å ã«ååã®ãã£ã¬ã¯ããªãããã¨-fä»ãã¦ãã¯ããããã®ã§éå®ãããã(å¯è½ãªãªãã·ã§ã³ãããã§ãããï¼)ã«ã¬ã³ããã£ã¬ã¯ããªã®å ¨ã¦ãã¡ã¤ã«ããã³ãã£ã¬ã¯ããªãã¿ã¼ã²ããããã£ã¬ã¯ããª(target_dir)ã«ã³ãã¼ $ tar cf - * | ( cd /â¦
ã¯ã©ã¦ãä¸ã§ãµã¼ãã¹ãæä¾ããå ´åãã¼ã¿ã®å®å ¨æ§ã«ã¤ãã¦ã¯ããã¼ãé¢ã®HAã¯ãµã¼ãã¹ãæä¾ãã¦ãããã*1ãã¢ããªã±ã¼ã·ã§ã³ã®é害ã人çºçãã¹ã«ãããã¼ã¿æå·ã«å¯¾å¿ããããã®ããã¯ã¢ãããæä½éå¿ è¦ã«ãªãã¾ããco-meetingã¯ããã¼ã¿ãã¼ã¹ä»¥å¤ã®â¦
ãµã¼ãã¼éã§ãã¡ã¤ã«ãããåããããå ´åã«ãã¤ãã³ãã³ããæ¤ç´¢ããªããã¦ãã¾ãã®ã§sshè¶ãã«ãã¡ã¤ã«ãã³ãã¼ããã³ãã³ããã¾ã¨ãã¦ã¿ã¾ãããã¾ãããã®è¨äºãæ¸ãã¦ããéä¸ã«åæ§ã®å 容ãã¾ã¨ãã¦ããããã°ãè¦ã¤ããã®ã§ãªã³ã¯ãè²¼ã£ã¦ããã¾ããâ¦
以ä¸ã®å³ã®ãããªãstunnelã¨HAProxyã使ã£ã¦node.jsã¨nginxã1ã¤ã«ã¾ã¨ããæ§æã®ãµã¼ãã¼æ§ç¯æé ãã¾ã¨ãã¦ãã¾ãããã®1ã§ã¯HAProxyã®ã¤ã³ã¹ãã¼ã«ããã®2ã§ã¯ãããã·ã®è¨å®ä¾ã«ã¤ãã¦ã¾ã¨ãã¾ããã OSã«ä¾åããç®æã¯Ubuntu 10.04ãä¾ã«èª¬æãã¦ãã¾â¦
Nginxã¨node.jsãHAProxy+stunnelã§ã¾ã¨ããæ¹æ³ã«ã¤ãã¦ã¾ã¨ãã¦ãã¾ãããµã¼ãã¼ã®æ§æã¯ä»¥ä¸ã®ããã«ãªãã¾ããååã®è¨äºã¯HAProxyã®ã¤ã³ã¹ãã¼ã«ã¾ã§ç´¹ä»ãã¾ããã http://d.hatena.ne.jp/hrendoh/20120328/1332917793ä»åã¯ãHAProxyã§Nginxã¨node.jsâ¦
WebSocketã®ã¹ãã¼ã¿ã¹ã¯ãæ¨å¹´12æã«RFC6455ã¨ãã¦proposed standardï¼æ¨æºåã¸ã®æå±ï¼ã®ã¹ãã¼ã¿ã¹ã«ãªãã¾ãããnode.js+socket.ioãjetty(Java)ãå§ããµã¼ãã¼ãµã¤ãã®å®è£ ã¯æ¢ã«å¤ããããã¯ã©ã¤ã¢ã³ãã¯Google Chromeã¨Safariãå®è£ ãã¦ãã¾ãã Fireâ¦
çºè¡¨ããã¦ãããï¼å¹´ã¡ãã£ã¨ãã£ãAWS Elastic Beanstalkã«ã¤ãã¦èª¿æ»ãã¦ã¿ã¾ãããhttp://www.publickey1.jp/blog/11/amazonjavapaasbeanstalkruby_on_rails.htmlBeanstalkã¯ãJavaã®ã¢ããªã±ã¼ã·ã§ã³ããããã¤å¯è½ãªPaaSã§ãã ç¾å¨ãã¾ã ãã¼ã¿ã§ããâ¦
ãã¤ãå¿ããã®ã§ã¡ã¢ãã¦ãã $ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:sun-java-community-team/sun-java6 $ sudo apt-get update $ sudo apt-get install sun-java6-jdk æ å ±å :http://stackoverflow.com/questâ¦
Javaã®å®è¡ç°å¢ã§ãRuby on Railsã®ãã©ã°ã¤ã³Deviseã®ããã«ã¡ã¼ã«èªè¨¼ä»ãã®ãã°ã¤ã³æ©æ§ãç°¡åã«å®è£ ã§ããªãããªãã¨æã調ã¹ã¦ã¿ã¾ãããã¾ããJavaå®è¡ç°å¢ã§åãRoRã¹ã¿ã¤ã«ã®ãã¬ã¼ã ã¯ã¼ã¯ã¯ãæè¿ã®ã¡ã¸ã£ã¼ã©ããã¯ä»¥ä¸ã®ãããªã¨ãããã¨æãã¾â¦
ruby 1.9ã§åãã å ¬å¼ã®s3syncã¯ã¾ã ruby1.9ã§åããªãã 対å¿ãã¦ããã¢ã¸ã¥ã¼ã«ãgithubã«ããã¾ããã https://github.com/aproxacs/s3sync s3syncã³ãã³ããbinã«ããã®ã§å®è¡ã¯ä»¥ä¸ã®éã /bin/s3sync US East 以å¤ã§ä½¿ãã¨ãã®æ³¨æ 以ä¸ã®ã¨ã©ã¼ã«ãªâ¦
Rails3ã§ãããããã°ã©ã ãå®è¡ããæ¹æ³ã¯å ¬å¼ã¬ã¤ãã§ã¯ä»¥ä¸ã®ããã«è¨è¼ããã¦ãã¾ã http://guides.rubyonrails.org/command_line.html#rails-runner $ rails runner "Model.long_running_method" runnerã®ä½¿ãæ¹ã«ä»ãã¦ããã£ã¦ã¿ã¾ãããRailsã®æ§æâ¦
é常ã¯ããã³ãã®Webãµã¼ãã¼ã«ç»åãç½®ãã®ã§ãã¾ã使ããªããããããªãã§ãããRailsã®publicãã©ã«ãã«favicon.icoãç½®ããå ´åã«ãµã¤ãã®ã¢ã¤ã³ã³ã¨ãã¦è¨å®ããæ¹æ³ãåãããªãã£ãã®ã§ã¡ã¢ãã¦ããã¾ããpublic/imagesã«favicon.icoãç½®ããå ´å以ä¸â¦
åè·ã®ããã¯éçºç°å¢ãWindowsã ã£ãã®ã§ãJavascriptãæ¸ãã¨ãã®ã¨ãã£ã¿ã¯xyzzyã使ã£ã¦ãã¾ããã ä»ã¯Ubuntuã§éçºãã¦ãã¦ããã°ããgeditã§é å¼µã£ã¦ãã¾ãããããã£ã±ãemacsã®ç°å¢ãä½ããã¨ã«ãã¡ãªã¿ã«ãä»ã¨ãã£ã¿ã¯ãããªé¢¨ã«ä½¿ãåãã¦ãã¾ãâ¦
Gemã®ã¤ã³ã¹ãã¼ã« RubyGemsã«ãããã¼ã¸ã§ã³ã ã¨æ°ããdeviseã ã¨ä½¿ãã¾ããã®ã§ãããã¥ã¡ã³ãã®éãã«å¤ãdeviseãæå®ãã¾ãã gem 'devise', '~>1.2.0' gem 'devise_invitable', '~> 0.4.0' $ bundle install Gitã®ã½ã¼ã¹ãç´æ¥æå®ããã°1.4ã§ã使ãã¾â¦
mongoid(http://mongoid.org/)ã¯ãRailsã§MongoDBãæ±ãããã®Object-Document-Mapperã§ãã ORMã§ã¯ãªãã¦ODMthinitã«è©³ãã解説ãããã¾ãã http://thinkit.co.jp/story/2010/10/27/1829以ä¸ãèªåã§è©¦ããéã®ã¡ã¢ã§ãã ããã¸ã§ã¯ãã®ä½æã¨mongoidã®â¦
co-meetingã§ã¯ã¦ã¼ã¶ç®¡çãDeviseããã¼ã¹ã«éçºãã¦ãã¾ãã éçºéç¨ã§Deviseã«ã¤ãã¦èª¿ã¹ããã¨ããä½åº¦ãã«åãã¦æ¸ãã¦ãããã¨æãã¾ããDevise(http://rubygems.org/gems/devise)ã¨ã¯ãRailsã¢ããªã«ãã°ã¤ã³ã®ä»çµã¿ãçµã¿è¾¼ãå ´åã«ããã¡ã¯ãã¹ã¿â¦
æ®æ®µãMySQLã§ã¯Webã®ç®¡çãã¼ã«PhpMyAdminã使ã£ã¦å± ãã®ã§ãããMongoDBã使ã£ãéçºãããããã«ãªã£ãã®ã§Webã®ãã¼ã«ããããªãã¨æ¢ãã¦ã¿ãã¨ããphpMoAdminã¨ãããã¼ã«ããã£ãã®ã§è©¦ãã¦ã¿ã¾ãããPHP+Apache+MongoDBç°å¢ãä¸ããä½æããã«ã¯ä»¥ä¸â¦
Redistã¨ã¯ãæ°¸ç¶åæ©è½ãåããKVSã§ãã http://redis.io/ ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯memcachedã¨ã»ã¼åãã§ãããRedisã®æ¹ãæ°¸ç¶åãå«ãã¦ã§ãããã¨ãå¤ãã®ã§æè¦ã§ããã¨ããã¯ããããããããã§ãã ã¨ãããããco-meetingã®ã»ãã·ã§ã³ç®¡çã«ä½¿ããã¨ã«â¦
protocol buffersã¨ã¯ãGoogleãèªç¤¾ã®ãµã¼ãã¹ç¨ã«éçºãããªãã¸ã§ã¯ãã·ãªã¢ã©ã¤ãºã®ä»æ§ã§ãã JSONã«ä¼¼ã¦ãã¾ããã.protoã¨ããååã®ãã¡ã¤ã«ã§æ§é ãå®ç¾©ããJSONã®ãã¼ã¯æ°å¤ã«å¤æãããããã¼ã¿ãµã¤ãºãå°ããå½¢ã§ããã¨ãå¯è½ã§ããéçºãããèâ¦
ãPayPalã®ä½¿ãæ¹ ãã®ï¼ - Express Checkout APIã«ãã課éã·ã¹ãã ã®å®è£ 解説ãã§ä½æããExpress Checkoutã®å®è£ ãå¤æ´ãã¦å®ææ¯æãã試ãã¦ã¿ãã®ã§ã¾ã¨ãã¦ã¿ã¾ããã å®ææ¯æãã®æ¦è¦ã¾ã¨ã å®ææ¯æãã®æ¦è¦ã«ã¤ãã¦ã¯gihyoã®ãµã¤ãã®PayPalã®é£â¦
ãUbuntu 10.10ã®MySQLã¨SSLéä¿¡ã§JDBCæ¥ç¶ãããã§MySQLã®SSLéä¿¡ã試ãã¦ã¿ãã®ã§ã次ã«SSLéä¿¡æã«ããã©ã¼ãã³ã¹ãã©ãã»ã©è½ã¡ãã®ã調æ»ãã¦ã¿ã¾ããã ããã¥ã¡ã³ãã«ã¯30%ãã50%ããã©ã¼ãã³ã¹ãè½ã¡ãã¨ãããã¦ãã¾ãã è¨æ¸¬ç°å¢ è¨æ¸¬ãã¼ã«ã¯æ¨â¦
ãªãã¸ããªã®URLã¯å¤ãæ å ±ãå¤ããã¤ãæ¢ãåã£ã¦ãã¾ãã®ã§ã2011å¹´6æ30æ¥ç¾å¨ã®æ å ±ãèªåç¨ã«ã¡ã¢ãã¦ããã¾ãã ã¤ã³ã¹ãã¼ã«æé # rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm # rpm -ivh http://rpâ¦
apt-getã§Ubuntu 10.10ã«ã¤ã³ã¹ãã¼ã«ããMySQLã¯my.cnfã¸è¨å®ã追å ããã°SSLã§ã®æ¥ç¶ãå¯è½ã§ãã MySQLã®SSLæ¥ç¶ã«ã¤ãã¦ã¯ããããªãã¯ã¯ã©ã¦ãä¸ã®MySQLã¨ç¤¾å ãµã¼ãã¼ãã»ãã¥ã¢ã«ç¹ãæ¹æ³ã®ï¼ã¤ã¨ãã¦èª¿ã¹ã¦ãã¾ãã 社å ãµã¼ãã¼ã§ããã°LANãåã£ã¦â¦
ååã¯ãPayPalã®ä½¿ãæ¹ ãã®ï¼ - Express Checkout APIã«ãã課éã·ã¹ãã ã®å®è£ 解説ãã§Express Checkout APIã®å®è£ ã«ã¤ãã¦è§£èª¬ãã¾ããã ä»åã¯ã説æããExpress Checkout APIã®å¿ç¨ã§ããªãã¡ã¬ã³ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã«ã¤ãã¦èª¿æ»ããã®ã§ã¾ã¨ãã¦ã¿â¦
Yahoo!ãã¯ã¦ãªã¯åãµã¼ãã¹ãã¨ã«ãµããã¡ã¤ã³ã§ã¢ã¯ã»ã¹ãã¾ãããã©ããã£ã¦ã»ãã·ã§ã³ç¶æãã¦ãã®ããªã¨æãããµããã¡ã¤ã³ã«Cookieã渡ãæ¹æ³ã調ã¹ãã¨ãã Cookieã®Domainå±æ§ã«Domain=.mydomain.comã®æ§ã«æå®ããã°è¯ããã§ãããRails 3ã§ã®è¨å®â¦
ååã®è¨äºãPayPal APIã®ä½¿ãæ¹ - Sandboxã®ã¢ã«ã¦ã³ãã§Checkout Expressã試ãã¦ã¿ããã§PayPalãµã³ãããã¯ã¹ã§ã¢ã«ã¦ã³ããä½æãã¦ãExpress Checkoutã®Integration Wizardãå©ç¨ãã¦ã·ã³ãã«ãªèª²éã¢ããªã±ã¼ã·ã§ã³ã®ãµã³ãã«ãä½æãã¦ã¿ã¾ããããµâ¦
PHPFog(https://phpfog.com/)ã¯ãRuby on Railsã®PaaS Herokuã®PHPçã§ãã PHPFogãHerokuåæ§ã«EC2ä¸ã§æä¾ããããµã¼ãã¹ã§ããä¾¡æ ¼ã¯ãEC2ããã®ã¾ã¾ä½¿ãããã¯å²é«ã§ãããéç¨ã®æéãèããã¨ãã©ãããã©ã¼ã ã®ã²ã¨ã¤ã¨ãã¦æ¤è¨ãããã¨ããã§ãã以â¦
ç§ã¯Mercurialãªãã¸ããªããã®ã½ã¼ã¹ã³ã¼ãã®åå¾ã¯Eclipseã®ãã©ã°ã¤ã³ãå©ç¨ãã¦ãã¾ããããã©ã°ã¤ã³ã®å ¥æå ´æããã¤ãå¿ããã®ã§ãã®ã¡ã¢ã§ãã Google codeä¸ã®ããã¸ã§ã¯ãã¯Mercurialãé¸æã§ããããã«ãªã£ãã®ã§ããã¾ã«å©ç¨ãããã¨ãããã¾ããâ¦