Ruby ã¨Raspberry Pi 㧠Nintendo Switch ã®èªåå ¥åã·ã¹ãã ãä½ã£ãã話
4. @tricknotes I am a software developer who love JavaScript and Ruby. http://tricknotes.hateblo.jp/
Photo by HeatSync Labs ããã«ã¡ã¯ãè°·å£ã§ãã ããã°ã©ãã³ã°ãããããå¦ã¼ãã¨ãã¦ããæ¹ã§ãã人æ°ã®Rubyãåå¼·ãã¦ã¿ããï¼ãã¨ããæ¹ã¯å¤ãã¨æãã¾ãã Rubyã¯ããªã¼ãã³ã½ã¼ã¹ã®åçãªããã°ã©ãã³ã°è¨èªã§ã ã·ã³ãã«ãã¨é«ãçç£æ§ãåãã¦ãã¾ãã ã¨ã¬ã¬ã³ããªææ³ãæã¡ãèªç¶ã«èªã¿æ¸ããã§ãã¾ããã¨ããã¦ãã¾ãï¼ãªãã¸ã§ã¯ãæåã¹ã¯ãªããè¨èª Rubyï¼ãããã¯ããããã°ã©ãã³ã°çµé¨ã¼ããããããªãåå¼·ãå§ããã«ã¯æ·å± ãé«ããªâ¦â¦ãã¨æã£ã¦ããæ¹ãå¤ãããã£ãããã®ã§ã¯ãªãã§ãããããã¾ããã§ããã°ç¬å¦ãããªãã¦ã¹ã¯ã¼ã«ã«éããããã©ãã³ã¹ãã¯æ¼ãããããã ããªâ¦â¦ãã¨ããæ¹ãããã£ããããã¨æãã¾ãã ããã§ä»åã¯ãããã°ã©ãã³ã°æªçµé¨ï½åå¿è ã®æ¹ãããªãã¹ãã³ã¹ãããããã«æ¥½ããRubyã«è§¦ãããã¦ãå¦ç¿ã«å½¹ç«ã¦ãããã³ã³ãã³ãã10件ãç´¹ä»ãã¦ããã¾ãã
ããã¼åã§çæ§å è対çãã§ãã¦ãã¾ãã¾ãã å ç®ãå¼ã£å¼µããã¨ã§ç¯æ£ã§ãã¦ãã¾ããã§ããã å ç®è¼ªççªã®æ¹ãç®ã伸ã°ããã¨ã§ã ãã ãã¨åºãã£ã¦ããã¾ãã ãã¬ããéèªã§ãç´¹ä»ããå¤ãã®æ¹ãæ©ã¿ã解決ãã¦ãã¾ãã®ã§ããããã§ãã ãããªããã¼åãªã®ã§ããæ¬å½ã«çæ§å èã»ã«ã³ãã³å èã«å¹æãããã®ã§ããããï¼ç¯æ£ã§ããã®ã§ããããã使ãå¿å°ãè©å¤ãæ°ã«ãªãã¾ãããï¼ããã§å£ã³ãã調ã¹ãã失æè«ãªã©ã®å£ã³ããè¦ã¤ããã¾ããã
ãã®è¨äºã¯2014å¹´6æããã«å¤§é¨åãæ¸ããã®ã§ãç¾å¨ã®railsã¨ã¯ç°ãªãé¨åãããã¾ãã ã¾ã åç §ãã¦ãã ããæ¹ãããã®ã§ãããããªãå¤ããããã¾ããå§ãã§ãã¾ãã â»åé¤ãã§ããªãããæ®ãã¦ããã¾ãã ã¯ããã« ãã®æ稿ã¯æ¬æ ¼çã«ããã°ã©ãã³ã°ã«æã¡è¾¼ãã ãã¨ã®ãªã人åãã«ãRuby on Rails Tutorialãéãã¦ããã°ã©ãã³ã°ãå¦ç¿ãã¦ãããã¨ãããã®ã§ãã ãã®ãµã¤ãã¯é常ã«ããåºæ¥ã¦ãã¾ãã®ã§ãï¼â»åºç¤çãªããã°ã©ãã³ã°åããããã°ï¼ã¬ãã¹ã³ãåç´ã«ãªããã ãã§ã誰ã§ãWebã¢ããªã±ã¼ã·ã§ã³ãåºæ¥ã¦ãã¾ãã¾ãã ã§ããããã®ãã¥ã¼ããªã¢ã«ã¯å ¥éã«ã¯é£ãããã¾ãã ãªã®ã§ãåºç¤çãªããã°ã©ãã³ã°åãæã£ã¦ããããRailsTutorialãèªåã§ããªããã¨ãã§ããªã人ã®ããã«ã èªåã§RailsTutorialãé²ããããããã«ãªãã¨ããã¾ã§ããµãã¼ããã¾ãã â»ãã®
åå¼·ä¼ãã¹ã©ã¤ãã§ç´¹ä»ãã¦ãã¾ããããRubyÃã¯ãã¼ã©ã¼ã¨ããé¡æã§ããRubyã«ããã¯ãã¼ã©ã¼éçºææ³ãã¨ããæ¬ãæ¸ããã¦é ãã¾ãããRubyã¨Emacsã®é¬¼ã§ãããã³ãã¡ããã¨ã®å ±èã§ãã Rubyã«ããã¯ãã¼ã©ã¼éçºææ³ å·¡åã»è§£ææ©è½ã®å®è£ ã¨21ã®éç¨ä¾ ä½è : ãã³ãã¡,ä½ã æ¨æéåºç社/ã¡ã¼ã«ã¼: SBã¯ãªã¨ã¤ãã£ãçºå£²æ¥: 2014/08/25ã¡ãã£ã¢: 大åæ¬ãã®ååãå«ãããã° (1件) ãè¦ã ãã®æ¬ãæ¸ããçç± ããããã®ããã«ã±ã¯ããã³ãã¡ããã®ã¨ã³ããªã¼ã«ããéããSBã¯ãªã¨ã¤ãã£ãã®ç·¨éè ããããã¯ãã¼ã©ã¼ã®ä½æçµé¨ã®ãã人ãæ¢ãã¦ãã¦ãç§ã®æ¸ããããªã¼ãã³ã½ã¼ã¹ã®Rubyã®Webã¯ãã¼ã©ã¼"Anemone"ã使ã£ã¦ã¿ãããèªãã§æ診ãã¦ãã ãã£ãã¨ããã®ãå§ã¾ãã§ãã ç§èªèº«ããWebãããã¼ã¿ãåéãã¦åæããã¨ãããã¨ã¯ã趣å³ã¨ãã¦é·å¹´ãã£ã¦ãã¾ãããä¸
2011å¹´12æ20æ¥00:10 Ruby heroku Herokuã£ã¦ä¾¿å©ã ãå©ç¨ã¾ã§ãã£ã3ã¹ãããã§ããï¼ï¼ Ruby Advent Calendar jp: 2011 : ATNDã®20æ¥ç®ã®è¨äºã§ãã19æ¥ç®ã¯tamootããã§Windowsç°å¢ã§ torquebox + JRuby + #tDiary ãåä½ããã - ä¼é·@è ¹é¨æ¥è¨(2011-12-19)ã§ããã ãã¦ãããã°æ¸ãã®ã¡ãã¼ã²ãã³ãã§ãããä»æ¥ã¯ Heroku ã«ã¤ãã¦æ¸ãã¾ãï¼ï¼ # ã¡ãªã¿ã«å»å¹´ã® Ruby Advent Calendar ã§ã¯ãããªè¨äºãæ¸ãã¾ãã ããã°ã©ããããã®ãWebãµã¼ãã¹ãä½ãããã¨èããã®ã¯èªç¶ãªãã¨ã§ãããããã åé¡ã¯ä½ã£ããã®ãã©ããã£ã¦å ¬é/éç¨ããããã§ããèªå® ãµã¼ããã¬ã³ã¿ã«ãµã¼ãã§ããã¡ããè¯ãã®ã§ãããRuby ã®å ´åã 㨠Heroku ãå©ç¨ãããã¨ããé¸æ
ãã®è¨äºã¯ã2011å¹´12æ5æ¥ã«BostInnoã«æ²è¼ããããDan Croakæ°ã«ãã"How to Learn Ruby on Rails in Boston"ã®ç¿»è¨³ã§ããæ¬äººã®è¨±å¯ãå¾ã¦ç´¹ä»ãã¾ãã åæURLã¯ä»¥ä¸ããã http://bostinno.com/2011/12/05/how-to-learn-ruby-on-rails-in-boston/ ãã¹ãã³ã§ã®Ruby on Railsã®å¦ã³æ¹ Ruby on Railsã¯äººæ°ã®Webã¢ããªãã¬ã¼ã ã¯ã¼ã¯ã§ãTwitterãGrouponãAmazonãNew York Timesãªã©ã§ä½¿ããã¦ãã¦ãããã°ã©ãã³ã°è¨èªRubyã§æ¸ããã¦ããã ãã®è¨äºã¯ãã¹ããããã¤ã¹ãããã§å¦ãã§ãããç¸å½ãã¼ããªå¦ç¿ããã°ã©ã ã ã·ã³ãã«ã§ã¯ãªããã©ãä¸ç´ç·ã«å¦ã¶ãç°¡åã§ã¯ãªããã©ãããéããããã æ°é±éããæ°ã¶æããããã©ãæå¾
ãã®ã¦ã§ããµã¤ãã¯è²©å£²ç¨ã§ãï¼ 2read.jp ã¯ãããªãããæ¢ãã®æ å ±ã®å ¨ã¦ã®ææ°ãã¤æé©ãªã½ã¼ã¹ã§ããä¸è¬ãããã¯ããããããæ¤ç´¢ã§ããå 容ã¯ã2read.jpãå ¨ã¦ã¨ãªãã¾ããããªãããæ¢ãã®å 容ãè¦ã¤ãããã¨ãé¡ã£ã¦ãã¾ãï¼
Document Data Structure in MongoDB Express MongoDB lets you easily store structured and unstructured data in a flexible and dynamic database schema. It supports CRUD operations on complex data objects using JSON as the main data type. Its an open source solution so it may not be as robust or well supported as commercial management tools. However it is easy to deploy and works well for most use cas
ç¡æãªã®ã¯ééããªãããï¼ããããï¼æéã«ãã¦ããã¨ããããã½ã éæ³ä½¿ãã«å¿ è¦ãªãã® åºæ¬çãªRubyã®ç¥è åºæ¬çãªhttp, htmlã«é¢ããç¥è Googleã¢ã«ã¦ã³ã éæ³ä½¿ãã«å¿ è¦ã§ãªããã® èªå® ãµã¼ã ã¬ã³ã¿ã«ãµã¼ã MVCã¨ãDBã¨ãã®ç¥è åæ ã¢ããªã±ã¼ã·ã§ã³ã¯Google App Engine(Java)ã®ä¸ã§åãã JRuby+Sinatraã§æ§æãJRubyã¯Javaä»®æ³ãã·ã³ä¸ã®Rubyå®è¡ç°å¢ã®ãã¨ã§ãSinatraã¯Rubyã®è¶ ãæ軽ã»è»½éWebãã¬ã¼ã ã¯ã¼ã¯ã ãããããå§ãã¾ãã俺ã®ç°å¢ãLinuxãªã®ã§ãWinãMacã使ã£ã¦ãæ¹ã¯é©å®èªã¿æ¿ãã¦ãã ï¼ãã¾ãGoogle App Engineã®ã¢ã«ã¦ã³ããåå¾ãããã¢ããªã±ã¼ã·ã§ã³ãé©å½ã«ç»é²ããã Googleã®ã¢ã«ã¦ã³ãããªã人ã¯ã¾ããããããæ¢ã«æã£ã¦ã人ã¯Google App Engineã«ç»
rails APPNAME -m http://gist.github.com/103256.txtããããã¾ã¨ãã¦ãã©ã®ã³åããä¸ã§ãã¢ããªã±ã¼ã·ã§ã³ãã³ãã¬ã¼ãããç¨æè´ãã¾ãããç§å ããã¨ãåèã«Railsãjarã«ã¾ã¨ãã¦ããã®ã§ãã¡ã¤ã«æ°å¶éãä½è£ã§åé¿ãããããçµæ§ããã°ã£ãã GAE/Jã®ã¢ã«ã¦ã³ããæã«å ¥ã£ãã¿ããªã¯ã³ã¬ä½¿ã£ã¦é æ ®ãªãGoogleã¯ã©ã¦ãã§Railsããã°ããã¨æããæã«å ¥ã£ã¦ãªã人ãä»ã®ãã¡ã«éçºãµã¼ãã¼ã§åããã¨ãã°ã5ææ«ã®Google I/Oã§ãã£ã¨ä¸è¬å ¬éããããã ã¦ãã¨ã§ä»¥ä¸æé ã å¿ è¦ãªã©ã¤ãã©ãªãå ¥ãã GAE/Jã®SDKã¨JRubyã¨Railsã¨Warblerã¯æµç³ã«äºåã«å¿ è¦ããã®è¾ºåèã«ã©ããããã§ã«ããããå ¥ã£ã¦ã人ã¯ãã¡ããé£ã°ãã¦ããã ä¸å¿åèã¾ã§ã«èªåã§ã¯è©¦ããã«æ¸ããã©ãå¤åãããªæãã $ svn co http://s
ã¤ãã«ç¡å¶éã«è§£æ¾ãããGoogle App Engine/JavaãRoRãPHPããã¡ããJavaã試ãã 4æ8æ¥ã«çºè¡¨ãããGoogle App Engine/Javaãå©ç¨ã§ããã®ã¯1ä¸äººã¾ã§ã¨å¶éãã¤ãã¦ããã®ã§ããããããæ¤å»ããã¦ã ãã§ããµã¤ã³ã¢ãããã¦å©ç¨ã§ããããã«ãªã£ãã¨ãGoogle App Engine Blogãä¼ãã¦ãã¾ãã Google App Engine/Javaã¯çºè¡¨ããã¦ã¾ã 2ã«æã¨å°ãã§ãããã¯ãããJava VMã®ä¸ã«PHPãRubyãããã«Javaã®ãã¬ã¼ã ã¯ã¼ã¯ãªã©ã®å®è£ ãè¡ããã¦ãã¾ããä»åã¯ããããGoogle App Engine/Javaã®æ´»ç¨æ å ±ãã¾ã¨ãã¦ãç´¹ä»ãã¾ãããã Google App Engineã®åºç¤ç¥è ITproã§ãGoogle App Engineã®å ¥éè¨äºãæ²è¼ããã¦ãã¾ããã¢ã«ã¦ã³ãã®åå¾æ¹æ³ãSDKã®å ¥ææ¹
Google App Engineï¼GAEï¼ã®å¯è½æ§ã¯Javaããµãã¼ããããã¨ã«ãã£ã¦ãã®å¯è½æ§ãé£èºçã«åä¸ããããJavaVMä¸ã§å®è£ ãããè¨èªã§ããã°ä½ã§ãåä½ãããJRubyããã®ä¸ã¤ã§ãRuby on RailsãGoogle App Engineä¸ã§åä½ããã GAEã®ãã¯ã¼ãç´ æ©ãã²ãããã ã¨ã¯è¨ããã¯ããã¤ããªãã£ã ãã«è²ã ãªæºåãå¿ è¦ã¨ããã¦ããããã®ããæ¬é ãã¦ãã人ãå¤ãã ããããRails on GAEã«ãã£ã¦å¤§ããèµãåããã¨ã«ãªãããã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯Rails on GAEãGAEã§Ruby on Railsãåããããã®ãã©ã°ã¤ã³ã ã Rails on GAEã¯Ruby on RailsãGAEã§åä½ãããããã«å¿ è¦ãªã¿ã¹ã¯ãäºãã¤ã³ã¹ãã¼ã«ãããã¨ã§ãå¾ã¯é çªã«å¾ã£ã¦é²ããã ãã§JRuby on Railsãã§ããããã«ãª
ãã«ã¹ã¿ãã¯ãã¦ãªã®Railsãããã¾ã§å¿ è¦ãªãããã¨ãERBã§ã´ãªã´ãªãã¡ã³ãã¯ã»ã¼ããã£ã±ãRailsã§ããªã©ã¨ãé½ã¯ã¾ãã®ã¼ããããããã¦ã¼ãããRubyã®Webãã¬ã¼ã ã¯ã¼ã¯ã¯ä»ã«ããããã©ãã軽ãã¦ãããã ãPHPã使ããããªãã ããªãã ã ãããªæ©ã¾ããã解æ¶ãã¦ããããã¬ã¼ã ã¯ã¼ã¯ãçºè¦ãã¦ãã¾ãã¾ããããSinatraãã§ãããã¾ããããã¤ã¯ã軽ããã ã Sinatra ãµã¤ãã®ããããã¼ã¸ã«æ¸ããã¦ããã³ã¼ãããããããµã¯ãµã¯æããããåºãã¦ããã¦ãã¾ãã require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end 説æèªã¾ãªãã¦ã解ãããããã æ¥æ¬èªã®è§£èª¬ã¹ã©ã¤ããããã¾ãããã解ã解説ã¼ã å ¬å¼ãµã¤ãã®READMEãèªãã°ãã ãããOKã Sinatra: README ãã©ã¡ã¼ã¿ãåå¾ã
Gaineréçºãã¼ã ã¨ãã¦ãµãã¼ããã¦ãããã©ãããã¼ã ã¯ActionScript 2/3ãProcessingãMax/MSPãªã®ã§ãããæè¿ã«ãªã£ã¦ãã以å¤ã®ãã©ãããã¼ã ã§ãå©ç¨ã§ããããã«ãªã£ã¦ãã¾ããã .NETï¼npakaããï¼ Perlï¼å·å´ããï¼ PureDataï¼EXPRE55.NETï¼ Pythonï¼èå°¾ããï¼ Rubyï¼å è¤ããï¼ Squeakï¼æ¨ªå·ããï¼ æåã®å ¬éã¯ã¼ã¯ã·ã§ããã横æµã§è¡ã£ã¦ããç´2å¹´ã«ãªãã¾ãããããã¾ã§åºãã£ã¦ãããã ãªãã¨ãããã¨ãå¼·ãå®æãã¾ããã©ã¤ãã©ãªãå ¬éãã¦ããã ãã¦ããçããã¨ãGainerã«é¢ãã£ã¦ããã ããçããã«ããããã¦æè¬ãã¾ãã ã»ã»ã» ããã®ã¨ããã®ã¢ã¯ã»ã¹å¢å ããããGainer.ccãã¬ã³ã¿ã«ãã¦ããAplus.netã®ãã©ã³ã1ã¤ä¸ã®ãã®ã«å¤æ´ããã®ã§ããããã©ã¼ã©ã ã«é¢ãã¦ã¯ä»ã²ã¨ã¤å®å®ããªãããã§ããè¿æ¥
æ¢ãã°ããã®ã§ãããããRubyã¨Google Maps APIã使ç¨ãã ãä½æãã緯度ã»çµåº¦ã¸ã®å¤æãã®ãµã³ãã«ããã°ã©ã ã§ãã è¨èªã»Web API Ruby 1.8.6 Google Maps API äºåæºå Ruby 1.8.6 ãã¤ã³ã¹ãã¼ã«ãã¦ããã㨠Google Maps APIã® APIãã¼ãåå¾ãã¦ãããã¨*1 ãµã³ãã«ã³ã¼ã require "open-uri" require "nkf" require "cgi" require "rexml/document" class GoogleMapGeocode RequestUrl = "http://maps.google.com/maps/geo" Key = "** APIãã¼ **" attr_reader :lat attr_reader :lng attr_reader :result def ini
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}