
ãSonny Boyãã¨ããã¢ãã¡ãæ¾éããã¦ãã¾ããå¦æ ¡ãç°æ¬¡å ã«æ¼æµãã¦ãã¾ããè¶ è½åã«ç®è¦ããçå¾ãã¡ããµãã¤ãã«ããªããããã¾ãã¾ãªå¥å¦ãªç¾è±¡ã®è£ã«ããã«ã¼ã«ã解ãæãããå ã®ä¸çã«å¤ããæ¹æ³ãæ¢ããã¨ããã¹ãã¼ãªã¼ã§ããã«ã¼ã«ãåãã£ããã¨ã§ä½åº¦ãè¦ç´ããããªãã¾ãã anime.shochiku.co.jp ãã¦ä»åããSonny Boyãã«ãããã°ã©ã ãå¯ç¨¿ãã¾ãããããã°ã©ã ã§ãããããCGãä½ã£ãã¨ãã§ã¯ãªããããã°ã©ã ã®å®è¡ã®æ§åãã®ãã®ããSonny Boyãã®5話ã®ä¸ã§æ¾éããã¾ããã ããããããã°ã©ã ã§ãã nankai.rb ãã®ããã°ã©ã ãã©ããããã®ã ã£ããã解説ãã¾ãã ã©ããªããã°ã©ã ï¼ å®è¡ããã¨ããé£è§£ãã¨ããæåãã»ã©ãã¦ãªããªãã¢ãã¡ã¼ã·ã§ã³ããã¾ãã èµ·åãããã¾ããããã°ã©ã èªèº«ãç»é¢ã«è¡¨ç¤ºããã¾ãã ãã°ããããããé£è§£ããå·¦ããå³ã¸ã»ã©
ç¸ãã£ã¦ãã«ããªã¼ã¡ã¤ããªãããã®ããã¢ã¼ã·ã§ã³ç¨ã«ã¡ãã£ã¨ãã Ruby ããã°ã©ã ãæ¸ããã¦ãããã¾ããã www.otsuka.co.jp âã®ãªã³ã¯ãéãã¦ãcd .Quine ããã¨ããã«ãã CML_quine.rb ãããã§ãã cat CML_quine.rb ã¨ããã¨ä¸èº«ãè¦ãã¾ããruby CML_quine.rb ããã¨åãã¾ãã CalorieMate-Liquid-Quine å®è¡ãã¦ã¿ã¾ãããï¼ãµã¤ãä¸ã§æ°æ¥½ã«å®è¡ã§ããã®ã§ããã²è©¦ãã¦ã¿ã¦ãã ããã ãããã©ãããããã°ã©ã ãªã®ããç°¡åã«è§£èª¬ãã¦ããã¾ã *1 ã ãã¼ã«ã«ã§ã®éã³æ¹ ãµã¤ãä¸ã§ ruby CML_quine.rb ãããã ãã§ã楽ããã¾ãããèªåã®ãã½ã³ã³ã«ä¿åããã¨ãã楽ããã¾ãã ã¾ããcat CML_quine.rb ããä¸èº«ãã¾ããã¨ã³ãã¼ãã¦ãã ããã n=2;ã§å§ã¾ãè¡ã®é ããã'
ï¼»éå ±ï¼½AWS LambdaãRubyã«å¯¾å¿ãããã«ã«ã¹ã¿ã ã©ã³ã¿ã¤ã ã§ããããããã°ã©ãã³ã°è¨èªã«ã対å¿ã¸ãAWS re:Invent 2018 Amazon Web Servicesã¯ã©ã¹ãã¬ã¹ã§å¹´æ¬¡ã¤ãã³ããAWS re:Invent 2018ããéå¬ä¸ã§ãã Amazon.com CTOã®Werner Vogelsæ°ã«ããåºèª¿è¬æ¼ã§ã¯ãAWS Lambdaã対å¿ããããã°ã©ãã³ã°è¨èªã«Rubyãå ãã£ããã¨ãçºè¡¨ããã¾ããã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? å æ¥ãå ¨ã¦ã®éçºè ãå¦ã¶ã¹ã5ã¤ã®è¨èªã¨ãã翻訳è¨äºãæ稿ããã¦é ããã®ã§ããããããã°ã©ãã³ã°åã伸ã°ããã¨ãã観ç¹ã«ããã¦ã¯è¨äºä¸»ã®æ¹ã®ãæè¦ã«å¤§ããªç°è«ã¯ãªããã®ã®ãããããã¨ã³ã¸ãã¢ãç®æãåå¦è ã®æ¹ãçµé¨ã®æµ ãæ¹ããæ¥æ¬ã®Webæ¥çã§ãã£ãªã¢ãçéã§æé·ãããããã®æé©ãªç¿å¾é åºãã¨ãã¦ã¯ã¾ãå¥ã®çµã¿åãããå¿ è¦ã ã¨æãã¾ãã®ã§ããã®è¨äºã§ã¯ããã«é¢ããç§ã®èããç°¡åã«è¿°ã¹ããã¦é ãããã¨æãã¾ãã (注ï¼ä¸»ã«ããã¯ã¨ã³ãã¨ã³ã¸ãã¢ã®æ¹ã対象ã¨ãã¦ãã¾ã) çµè« æªçµé¨ããæ¥æ¬ã®Webæ¥çã§ãã£ãªã¢ãçéã§æé·ãããããã«ã¯R
LINEBOT APIå ¬éè¨å¿µã§ãã åãäºãè¿ãã ãã®ããããä½ã£ã¦ã¿ãã ã¢ã«ã¦ã³ããè¨å®ã¨ãã¯ã https://developers.line.me ããé©å½ã«ãã£ã¦ãã ããã ã¾ãæåã«ãããã¨ããã¯ãCallback URLã§ããã©ããããã¼ãçªå·ãå¿ è¦ãªã®ã§ãhttps://example.com:443/callbackãªã©ã®ããã«443ãæå®ãã¦ãã ããã LINE_CHANNEL_ID, LINE_CHANNEL_SECRET, LINE_CHANNEL_MIDã¯é©å½ãªç©ãæå®ãã¦ä¸è¨ãå®è¡ããã¨ããªã¦ã è¿ãBotãã®åºæ¥ä¸ããã APIãå¼ã¶ã«ã¯Whitelistã«IPãç»é²ããå¿ è¦ãããã®ã§ãHerokuãªã©ã§åããäºã¯ã§ãã¾ããã ã追è¨ã LINE BOT ãã¨ããããã¿ã㧠Heroku ã§åãããè¦ãã¨ãFixieã£ã¦ããã¢ããªã³ã使ãã°Herokuã§ãè¡ãã
ããã«ã¡ã¯ãããã¯ã¨ã³ãã¨ã³ã¸ãã¢ã®éã·ã£ãªã§ãã ä»åã¯ãå½¹ç«ã¤ææ°æè¡ãã¤ã¾ã¿é£ãçã«è©¦ãã¦ã¿ãé£è¼ãææ°ããã¯ã¨ã³ãæè¡ã¤ã¾ã¿é£ããã®ç¬¬ä¸åç®ã æ¨å¹´é ããWebã¨ã³ã¸ãã¢çéã§å¤§ããªçãä¸ãããè¦ãã¦ããè¨èªããElixirï¼ã¨ãªã¯ãµã¼ï¼ãã«ã¤ãã¦ç´¹ä»ãã¾ãã Elixirã¨ã¯ï¼ Elixirã¯ãBEAMã¨å¼ã°ããErlangï¼ã¢ã¼ã©ã³ï¼ä»®æ³ç°å¢ä¸ã§åä½ããé¢æ°åè¨èªã§ãRuby on Railsã®coreãã¼ã ã¡ã³ãã¼ã§ãããJosé Valimã«ãã£ã¦2012å¹´ã«éçºããã¾ããã å°é£ããæ¸ãã¾ããããErlangã¨Elixirã«ã¤ãã¦ã¯ãJavaã¨ScalaãJavaScriptã¨CoffeeScriptã®ãããªé¢ä¿æ§ã ã¨æã£ã¦ãã ããã Elixirãçãä¸ãã2ã¤ã®çç± ãããªElixirãæè¿çãä¸ãã£ã¦ããã®ã«ã¯ã以ä¸ã®ãããªçç±ãããã¾ãã Erlangä»®æ³ç°å¢ä¸ã§
ãä¸è©±ã«ãªãã¾ããããã³ãã¨ã³ãæ å½ããã¦ããå°åæ£å¤§ã§ããWebãã¼ã¸ã®è¡¨ç¤ºãç£è¦ãã¦å·®ç°ããã£ãå ´åãã©ã®ãã¼ã¸ã§è¡¨ç¤ºã®å¤åãèµ·ãã¦ããããç¥ããã¨ãåºæ¥ãããã°ã©ã ãå®è£ ããã®ã§ãã®ãã¨ã«ã¤ãã¦æ¸ããã¨æãã¾ãã ä½ã«ã¤ãã£ãã®ï¼ åãããã³ãã¨ã³ããæ å½ãã¦ãããµã¼ãã¹ãæçãµããªãã§å¤§è¦æ¨¡ãªããã³ãã¨ã³ãã³ã¼ãã®ãªãã¡ã¯ã¿ãªã³ã°è¡ãéã«è¡¨ç¤ºãã¹ããèªååããããã«ä½æãã¾ããããæçãµããªãã¯PCã»ã¹ããåããã¦å¤§ä½350-400ãã¼ã¸ã®è¡¨ç¤ºãã¿ã¼ã³ãåå¨ããæ¯è¼çè¦æ¨¡ã®å¤§ãããµã¤ãã§ããå ¨ãã¼ã¸ã«å½±é¿ãä¸ãããããªä½æ¥ã¯å¤§è¦æ¨¡ãªååã¨ãªããä»åã®ãªãã¡ã¯ã¿ãªã³ã°ã§ã¯è¡¨ç¤ºãã¹ãã®è¨ç»ãªã©ã®æ®µåããå¿ è¦ã§ãããå¾æ¥ã®äººæã«ããQAã§ã¯ç´°ãããã°ãè¦éããããæéããããå¹çãæªãã®ã§ãå¯è½ãªéãèªååãããã¨èãå®è£ ãã¾ããã å®è£ ã®æ¦è¦ ãã®ç£è¦ã®ã·ã¹ãã ã¯ä»¥ä¸ã®ï¼ã¤å®è£ ãçµåã
ããæè¿ãElixirã¨ããè¨èªãWebããã°ã©ãã¼çéã§è©±é¡ã«ãªã£ã¦ãã¾ãã Elixirã¯Erlangã®VMä¸ã§åãRuby風å³ã®é¢æ°åè¨èªã§ãRailsã³ããã¿ã®Jose Valimãããä½ã£ãããã°ã©ãã³ã°è¨èªã§ãã ãã®è¨èªã¯Erlangã®ä¸¦è¡æ§ã¨Rubyã®éçºçç£æ§ãæã£ã¦ãã¾ãã ä»åã¯ãã®è¨èªãåºã¦ããèæ¯ã¨ææ³ã®ç¹å¾´ã«ã¤ãã¦æ¸ããã¨æãã¾ãã Elixirã注ç®ããã¦ããçç± ããæ°å¹´ãWebã¢ããªã±ã¼ã·ã§ã³ã¯ä»¥ä¸ã®åé¡ãæ±ãã¦ãã¾ãã C10Kåé¡ 10000以ä¸ã®ã¯ã©ã¤ã¢ã³ãããµã¼ãã«åææ¥ç¶ããã¨ãHWã®æ§è½ã¯è¶³ãã¦ãã¦ãOSãã½ããã¦ã§ã¢ã®åé¡ã§å¦çãç ´ç¶»ãã ã ã¼ã¢ã®æ³åã®éç CPUãããã¡ã¼ã«ã¼ã®è£½é ãããããã®ã¯ããã¯ã¬ã¼ãã®æé·ã«é°ãã代ããã«ãã«ãã³ã¢ã¢ã¼ããã¯ãã£ã®CPUãéçºããã¦ãã ãªã¢ã«ã¿ã¤ã Web ãµã¼ããã¯ã©ã¤ã¢ã³ãã常ææ¥ç¶ããã¢ããªã±
å½¢æ ç´ è§£æãè¡ãªãããã®ã©ã¤ãã©ãªã¨ãã¦æåãªãã®ã«MeCabãããã¾ãã ãããç¨ãã¦åè©ãæ½åºããæ©ä¼ããã£ãã®ã§ã mecab-noun_parser ã¨ãã¦å ¬éãã¾ããã ã¤ã³ã¹ãã¼ã«æ¹æ³ Gemfile ã«ä»¥ä¸ãæ¸ã㦠bundle ãã¾ãã gem 'mecab' gem 'mecab-noun_parser' ãã¡ãããå¥é MeCab æ¬ä½ã®ã¤ã³ã¹ãã¼ã«ãè¡ãªãå¿ è¦ãããã¾ãã 使ãæ¹ ä½¿ãæ¹ã¨ãã¦ã¯ã MeCab::NounParser ã®ã¤ã³ã¹ã¿ã³ã¹ãçæããããã«è§£æãããæç« ã追å ãã¾ãã parse ã¡ã½ããã§ããã解æãã nouns ã¡ã½ããã§çµæãåå¾ã§ãã¾ãã require 'mecab' require 'mecab-noun_parser' parser = MeCab::NounParser.new parser << 'Rubyã¯ãæ軽ãªãªãã¸ã§
ããããããã«ã³ãé£éã¨ã¯ä½ãªã®ãï¼å ¨ãèãããã¨ããªãã£ããããã¦ãæç« ãè¦ç´ããã®ã¯ã¨ã£ã¦ãé«åº¦ãªãã¨ã ã¨æã£ã¦ãã¦ãèªåã®ã¬ãã«ã§ã¯ãã®æ¹æ³ããä»ã¾ã§æãä»ããããªãã£ãã ãããã以ä¸ã®ãããªã·ã³ãã«ãªRubyã³ã¼ãã§ãããåºæ¥ã¦ãã¾ãã¨ç¥ã£ãæãç®ããé±ã§ãã...ãä¸ä½ãä½ãã©ããªã£ã¦ããã®ã ï¼ã³ã¼ãã追ããªããããã«ã³ãé£éãå©ç¨ããã¨ããçºæ³ã®ç´ æ´ããããç¥ã£ãï¼ ä½æ¥ç°å¢ MacBook OSX 10.5.7 ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] mecab utf8ç°å¢ã§ã¤ã³ã¹ãã¼ã«æ¸ã¿ ãã«ã³ãé£éã«åºé¢ã rssãæµãèªã¿ãã¦ããã¨ã以ä¸ã®æ¥è¨ã«ç®ãæ¢ã¾ã£ããï¼ç´ æ´ãããæ å ±ã«æè¬ã§ãï¼ï¼ MeCabã使ã£ã¦ãã«ã³ãé£é ä¸ä½ä½ãåºæ¥ãã³ã¼ããªã®ããæ¥è¨ãèªãã ã ãã§ã¯ãã³ã¨æ¥ãªãã£
ã¯ããã« ãã¤ã¦ã¯JavaãC#ãæ¸ãã¦ããåãRailsãå§ãã¦ããããããã3å¹´ãããçµã¡ã¾ãã Railsãå§ããã¨ããæåã«ãã©ã¤ããå¦ç¿è³æããRuby on Railsãã¥ã¼ããªã¢ã«ãã§ããã Railsããã°ã©ãã¨ãã¦ã¯ããªãçµé¨å¤ãç©ãã ã®ã§ãåå¿è ã¬ãã«ã¯ãã§ã«è±ããã¨æã£ã¦ãã¾ãã ãããªåãæè¿ãµã¨ãããä¸åRailsãã¥ã¼ããªã¢ã«ããã£ã¦ã¿ãããã¨æãã¾ããã ããã«ãåã«Railsãã¥ã¼ããªã¢ã«ãããã ãã ã¨é¢ç½ããªãã®ã§ã³ã¼ãã£ã³ã°ããæ§åãã¹ã¯ãªã¼ã³ãã£ã¹ãã«ãã¦é ä¿¡ãããã¨ãæãã¤ãã¾ããã ããã¦å®æããã®ããRailsãã¥ã¼ããªã¢ã«ç¬¬3çã»ã³ã¼ãã£ã³ã°å®æ³åç»ãã§ãã ä»åã®ã¨ã³ããªã§ã¯åãä½ã£ããã®åç»ï¼ã¹ã¯ãªã¼ã³ãã£ã¹ãï¼ãç´¹ä»ãã¾ãã ãRailsãã¥ã¼ããªã¢ã«ç¬¬3çã»ã³ã¼ãã£ã³ã°å®æ³åç»ãã«ã¤ã㦠ãRailsãã¥ã¼ããªã¢ã«ç¬¬3çã»ã³ã¼ãã£ã³ã°å®
åãgemã§ãã¢ããªã«ãã£ã¦ä¾åãããã¼ã¸ã§ã³ãéã£ããããå ´åãã¡ãã£ã¨è©¦ãããå ´åã«ãrbenv-gemsetãã¤ãã£ã¦ãgemsetãåãã¦ããã¨ä¾¿å©ã ä¾ãã°ãbundlerã¨ãpryã¨ãå ±éã«ä½¿ãgemã¯ãglobalã¨åä»ããgemsetã«ãã¦ãrailsã¨ãsinatraã¨ãã®gemã¯ã¢ããªãã¨ã«gemsetãä½ãã¨ã¯ãã©ãã ã¾ãä¸ã®ããã«globalãªgemsetãä½ãã å½ç¶ãªãããgemsetã¯rubyã®ãã¼ã¸ã§ã³ãã¨ã«ä½ã決ã¾ãã $ rbenv gemset create 2.0.0-p247 global ä½ã£ãgemsetãç¢ºèª $ rbenv gemset list 2.0.0-p247: global ç¾å¨æå¹ãªgemsetã確èªãã $ rbenv gemset active global globalãå°åãããã°,ä¸ã§ä½ã£ãglobalç¨ã®gemse
rbenv ã®ã¤ã³ã¹ãã¼ã«æé ã¯å人ã®ãã¼ã«ã«ç°å¢ã«å¯¾ãããã®ã«ãªã£ã¦ãã¾ããããããã 㨠Passenger ã¨çµã¿åãããã¨ãã«é½åããããããªãã ã¨ãããã¨ã§ rbenv ãã·ã¹ãã ã¯ã¤ãã«ã¤ã³ã¹ãã¼ã«ããæé ãæ´çãã¾ããã ç®æ¨ã¯ä»¥ä¸ã®éãã§ãã /usr/local/rbenv ã«ã¤ã³ã¹ãã¼ã« (RBENV_ROOT=/usr/local/rbenv) Ruby ã®ã¤ã³ã¹ãã¼ã«ãã·ã¹ãã ã¸ã® RubyGem ã®ã¤ã³ã¹ãã¼ã«ç㯠sudo ãçµç±ããã ã§ã¯è¡ã£ã¦ã¿ã¾ãããã sudoers ã®è¨å® ã¾ã sudoers ãè¨å®ãã¾ãã ããã©ã«ã㧠PATH ãåç §ããªãå ´æã«ã¤ã³ã¹ãã¼ã«ãã¾ãã®ã§ãsudo ããããèªèããªãã¨å°ãã¾ãã.profile çã§æä½ã¦ã¼ã¶ã® PATH ãå¤æ´ãã¦ãé常㯠sudo ã¯ãããèªèãã¦ããã¾ããã®ã§ãæä½ã¦ã¼ã¶ã® PATH ã s
ç¶æ³ rbenvã使ã£ã¦ã ãã¤ã®ã¾ã«ãå¤ãRailsï¼rails-0.9.5ï¼ãã¤ã³ã¹ãã¼ã«ããã¦ã $ gem uninstall rails -v 0.9.5ã§å¤ãæ¹ãåé¤ å¿µã®ãã$ gem install rails && rbenv rehash ãªã®ã«railsã³ãã³ãã§ã¿ã¤ãã«ã®ã¨ã©ã¼ãçºç 対å¦æ¹æ³ railtiesãã¤ã³ã¹ãã¼ã«ããã°è¯ãã ï¼åç §ï¼sstephenson / rbenv - rbenv: rails: command not found ã¡ãªã¿ã« $ which railsããã¨~/.rbenv/shims/railsãåãã¦ããã¨æãã ããã¯rbenvãrailsã³ãã³ããã©ãããããã®ã§ãå®ä½ãã©ãã«ãããã¯$ rbenv which railsã§èª¿ã¹ããã¨ãã§ãã ã§ãããã¯~/.rbenv/versions/1.9.2-p290/lib/ru
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}