Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ãããã¡ã¤ã©å¥½ããªã¢ãã¿ã®åã®çããããã«ã¡ã¯ã@sonots ã§ãããã®è¨äºã§ã¯ãRuby ã³ã¼ãã®ã©ã®è¡ãã©ã®ãããã¡ã¢ãªãæ¶è²»ãã¦ããã調ã¹ãæ¹æ³ãç´¹ä»ãã¾ãã ãªãã¸ã§ã¯ãã®æ°ãæ°ãã Ruby ã«ã¯ ObjectSpace ã¨ãããªãã¸ã§ã¯ãã®æ å ±ãéãããæä½ããããã module ãããã¾ãã ãã®ã¢ã¸ã¥ã¼ã«ã® each_object ã¡ã½ããã使ç¨ããã¨ãRubyVM ä¸ã®å ¨ã¦ã®ãªãã¸ã§ã¯ããåãåºããã¨ãã§ãã¾ãã ãã®ã¡ã½ããã使ã£ã¦ã以ä¸ã®ãããªã³ã¼ããæ¸ãã¨ãå®è¡ããå°ç¹ã§ãRubyVM ä¸ã«ã©ã®ã¯ã©ã¹ã®ãªãã¸ã§ã¯ããä½ååå¨ãã¦ããã®ãã«ã¦ã³ãã§ãããããããã§ããèå³æ·±ãã§ãã! ObjectSpace.each_object.inject(Hash.new 0) {|h,o| h[o.class]+=1; h } #=> {Class=>241, Strin
JMeter使ãã®ã ãããªã¼ã¨æã£ã¦ããruby-jmeterã¨ããRubyã§ãã¹ããã©ã³ãæ¸ãããã¼ã«ããã£ããç¥ããªãã£ãï¼è¿«çï¼ã å ¸åçãªRailsã¢ããªã®ãã¹ããã©ã³ ãããã訳ã§å ¸åçãªRailsã¢ããªã®ãã¹ããã©ã³ãæ¸ãã¦ã¿ãã®ããã¡ãã ã¦ã¼ã¶ã¼ãã°ã¤ã³ãã¼ã¸ã§CSRFãã¼ã¯ã³ãåå¾ãã常ã«HTTPãããã«ã¤ããããã«ãã ã¦ã¼ã¶ã¼ãã°ã¤ã³æ å ±ãã¯ããã¼ã«ä¿å ã¨ãã£ãå ¸åçãªå¦çãçãè¾¼ãã§ãã¾ãããã¨ã¯README.mdãèªãã§ããããã°å¤§ä½ã®æ¸ãæ¹ãææ¡ã§ãããã¨æãã¾ãã ã¡ãªã¿ã«ã# Debugã¨ããã³ã¡ã³ãã®ä¸2è¡ãã³ã¡ã³ãã¢ã¦ããã¦ãããã¨ãJMeterä¸ã§ãããã°ç¨ã®åºåã表示ãããã¨ãã§ãã¾ãããã¹ããã©ã³ãä¸æãåããªãã¨ãã«ããªã¯ã¨ã¹ãããããã¬ã¹ãã³ã¹ã確èªããã®ã«ä¾¿å©ã§ãã ã§ããããã³ãã³ãã©ã¤ã³ã§ ruby sample.jmx.rb && j
æè¡é¨ã®å°é(@taiki45)ã§ãããã®è¨äºã§ã¯ç°¡åãªã¢ããªã±ã¼ã·ã§ã³(ããã°ã·ã¹ãã )ã®å®è£ ãéãã¦ãã¯ãã¯ãããã§ä½æã»ä½¿ç¨ãã¦ããã©ã¤ãã©ãªã®Garage ã®ç´¹ä»ã¨ Garage ã使ã£ã RESTful Web API ã®éçºããç´¹ä»ãããã¨æãã¾ãã Garage 㯠RESTful Web API ãéçºããããã®ã Rails gemified plugins ã§ããRails ããã°ã©ã㯠Garage ã使ã£ã¦ Rails ãæ¡å¼µãããã¨ã§ç´ æ©ã Web API ãéçºãããã¨ãã§ãã¾ããGarage ã¯æ°ããã¢ããªã±ã¼ã·ã§ã³ãéçºããå ´åã«ããæ¢åã® Rails ã¢ããªã±ã¼ã·ã§ã³ã«çµã¿è¾¼ã㧠Web API ãå®è£ ããå ´åã§ã使ç¨ã§ãã¾ããGarage ã¯ãªã½ã¼ã¹ã®ã·ãªã¢ã©ã¤ãºãã¢ã¯ã»ã¹ã³ã³ããã¼ã«ãªã© Web API ã®å®è£ ã«å¿ è¦ãªæ©è½ãã«ãã¼ãã¦ãã¾ãã Ruby
ã¯ããã« ãã¼ã¿ã®ä¸¦ã³é ãèªç±èªå¨ã«å ¥ãæ¿ããããã¨ããè¦æ±ããã£ãã¨ãããã©ãã°ã¢ã³ãããããã§é çªãå¤ããããã¨ãªããªã便å©ã§ãã ããã§æ¬è¨äºã§ã¯ãã©ãã°ã¢ã³ãããããã«ãã表示é å¤æ´æ©è½ãRails 4ã§å®è£ ããæé ã説æãã¾ãã è£è¶³è³æ ç解ããããããããã®è£è¶³è³æãããããç¨æãã¦ã¿ã¾ããã ãã¢ãµã¤ã Herokuã«ãã¢ãµã¤ããä½ã£ã¦ã¿ã¾ããã å ã ã®ãµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ã¯CRUDãã§ããããã«ãªã£ã¦ãã¾ããããã®ãã¢ãµã¤ãã§ã¯ãã¼ã¿ã®æ´æ°ã¯ã§ãã¾ããã(å¤æ´ã§ããã®ã¯é çªã®ã¿) ãã©ãã°ã¢ã³ãããããããã¨ã©ããªãããå®éã«åããã¦ã¿ã¦ãã ããã ã¹ã¯ãªã¼ã³ãã£ã¹ã ãµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ãä½ãéç¨ãé²ç»ãã¦ã¿ã¾ããã ãã«ã¹ã¯ã©ããã§rails newããã¨ããããå§ãã¦ãã¾ãã http://www.youtube.com/watch?v=YQ-6HkBhVy
Milkodeã㢠Mikodeã®ãã¢ãè¨ç½®ãã¦ã¿ã¾ããã ã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã®é度 ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®é°å²æ° çãåããã¨æãã¾ãã ãã£ããURLãå ±æåºæ¥ãããã«ãªã£ãã®ã§ããã¤ãæ¤ç´¢ä¾ãæãã¦ã¿ã¾ããã©ããæ¤ç´¢ã¨ã³ã¸ã³ç¡ãã§ãããã¨ããã¨ãããã大å¤ã§ãã åå¨çã®å®ç¾©ç®æãæ¢ã test*.rbãæ¢ã Enumerable#each_with_indexã¡ã½ããã®ãã¤ã³ãç®æ String#splitã®Cè¨èªå®è£ é¨å 詳ããã¯ä»¥ä¸ãã覧ä¸ããã Milkodeãã¼ã ãã¼ã¸ Milkode ã¤ã³ã¹ãã¼ã«æ¹æ³ ãã¦ã³ãã¼ã - Milkode ãã¥ã¼ããªã¢ã« ãã¥ã¼ããªã¢ã« - Milkode Milkodeã㢠Milkode
require 'parslet' include Parslet # Constructs a parser using a Parser Expression Grammar parser = str('"') >> ( str('\\').ignore >> any | str('"').absent? >> any ).repeat.as(:string) >> str('"') result = parser.parse %Q("this is a valid \\"string\\"") result # => {:string=>"this is a valid \"string\""@1} A small Ruby library for constructing parsers in the PEG (Parsing Expression Grammar) fashion
ï¼ ITã¨ã¢ã¼ã«ã©ã¼ãã³ã°ã¯å ±åã§Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãRuby on Railsãï¼ä»¥ä¸ãRoRï¼ã®æè¡è èªå®è³æ ¼å¶åº¦ãä¼ç»ãã19æ¥ã«Railsæè¡è èªå®è©¦é¨éå¶å§å¡ä¼ãè¨ç«ãããã¡ãã£ã¢ã¨çµãã§å®æ½ãããITæ è¡è èªå®è³æ ¼ã¨ãã¦ã¯å½å åã®è©¦ã¿ã ï¼ ITã¨ã¢ã¼ã«ã©ã¼ãã³ã°ã¯å ±åã§Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãRuby on Railsãï¼ä»¥ä¸ãRoRï¼ã®æè¡è èªå®è³æ ¼å¶åº¦ãä¼ç»ãã19æ¥ã«Railsæè¡è èªå®è©¦é¨éå¶å§å¡ä¼ãè¨ç«ãããã¡ãã£ã¢ã¨çµãã§å®æ½ãããITæè¡è èªå®è³æ ¼ã¨ãã¦ã¯å½å åã®è©¦ã¿ã å§å¡é·ã«ã¯ã¢ã¤ãã£ã¡ãã£ã¢æ ªå¼ä¼ç¤¾ ï¼ ITç·¨éé·ã®ä¸æ¨æ³æ°ãæ ªå¼ä¼ç¤¾ã¢ã¼ã«ã©ã¼ãã³ã° 代表åç· å½¹ã®åºå¸è²¢ä¸éæ°ã®ä¸¡åã就任ããã¯ãã«ã«ã¢ããã¤ã¶ã¼ã¨ãã¦å¢äºéä¸éæ°ã¨æ¾ç°ææ°ããµãã¼ãããã ãRoRã®æµ·å¤ã§ã®çãä¸ããã«æ¯ã¹ãå½å ã®ãã¸ãã¹å©ç¨ã¯ã¾ã 追éã§ãã¦ããª
ã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã¨ã³ã¸ã³ã¯ãã£ã¨è©ä¾¡ãããã¹ãã ã¨æãã éå»ã«èªåãæ¸ããã½ã¼ã¹ã³ã¼ãããç¹å®ã®æ©è½ãæ¤ç´¢ããã åªç§ãªäººãæ¸ããã³ã¼ãããç¹å®ã® API ã®ä½¿ãæ¹ã調ã¹ãã ã¨ããæã«ãèªåç¨ã®ã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã¨ã³ã¸ã³ã æã£ã¦ããã°ãããå®ç¾ã§ããã å人ã§ä½¿ããã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã¨ã³ã¸ã³ã¨ã㦠Ruby ã§æ¸ããã gonzui ãããã ã¤ã³ã¹ãã¼ã«ãå°ãé¢åã ã£ãã gonzui ã¯ãã£ãã Ruby ã§æ¸ããã¦ããã®ã§ gem åããã¨ããã®ãä»åã®ã話ã ãã£ãã㨠Gonzui - |â½ï¿£)ã ãªãã¼ã¸å帰 㧠GNU Make ã使ã£ãã¤ã³ã¹ãã¼ã«æ¹æ³ãã setup.rb ã使ã£ãã¤ã³ã¹ãã¼ã«æ¹æ³ã«æ¸ãæãã¦ãã ã³ã¼ããå ¬éããã¦ããã®ã§ãããããã¼ã¹ã« gem åããã ã¤ãã§ã«éä¸ã¾ã§æ¸ããã¦ãã Git 対å¿ã³ã¼ãã åãããã«ä¿®æ£ããã ä¸ã®äººã«æ¬å½ã«æè¬ã
Spring Bootã«ããAPIããã¯ã¨ã³ãæ§ç¯å®è·µã¬ã¤ã 第2ç ä½å人ãã®éçºè ããInfoQã®ããããã¯ãPractical Guide to Building an API Back End with Spring BootããããSpring Bootã使ã£ãREST APIæ§ç¯ã®åºç¤ãå¦ãã ããã®æ¬ã§ã¯ãåºçæã«æ°ãããªãªã¼ã¹ããããã¼ã¸ã§ã³ã§ãã Spring Boot 2 ã使ç¨ãã¦ãããããããSpring Boot3ãæè¿ãªãªã¼ã¹ãããéè¦ãªå¤...
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
2009å¹´01æ20æ¥ RaisãWindows2003Serverã§ç¨¼åããã RaisãWindows2003Serverã§ç¨¼åããã âä½æ¥ç°å¢ Windows2003Server One-Click Ruby Installer 1.8.6-27_rc2 (ruby186-27_rc2.exe) FastCGI Extension for Internet Information Services 6.0(6.1.36.1) (fcgisetup32.msi) ISAPI_Rewrite 3 Lite (ISAPI_Rewrite3_0058_Lite.msi) Rails 2.2.2 Gem 1.3.1 ãã¼ã¿ãã¼ã¹ Sqlserver2005 è¨å®æ¹æ³ã¯ãã£ã¡ âä½æ¥ âOne-Click Rubyãã¤ã³ã¹ãã¼ã« âRailsãã¤ã³ã¹ãã¼ã« gem install rails
Ruby 㧠MySQL ã«ã¢ã¯ã»ã¹ããã«ããããRuby/MySQL ãå©ç¨ããã¡ã¢ã ã»ç°å¢ ãµã¼ãã¼ï¼MySQL 5.0 ã¯ã©ã¤ã¢ã³ãï¼MySQL 4.0 ã»ã½ã¼ã¹ (snip) HOST = "foo" USER = "user" PASSWD = "passwd" DB = "hoge" PORT = "3306" (snip) begin my = Mysql::new(HOST, USER, PASSWD, DB, PORT) rescue Mysql::DatabaseError => e puts e.errstr rescue Exception => ex puts ex ensure (snip) end ã»å®è¡çµæ Client does not support authentication protocol requested by server; consid
[English page] Ruby ã§è¨è¿°ããã MySQL ã® Ruby API ã§ããMySQL ã® C API ã¨ã»ã¼åçã®æ©è½ãããã¾ããMySQL/Ruby 㨠ã»ã¼äºæãããã¾ãã ç¾å¨ã®ã¨ãããMySQL 4.1.x ã§ã¯ä½¿ç¨ã§ãã¾ããï¼mysqld ã« --old-passwords ãªãã·ã§ã³ãã¤ããã°ä½¿ç¨ã§ããããï¼ã é»ç° 亮 <akuroda at gmail.com> ããã MySQL 4.1.x ã§ã使ç¨ã§ããããããä½ã£ã¦ããã¾ããã ãã®ãã¡åãè¾¼ãã¤ããã§ãããã¨ããããç½®ãã¦ããã¾ãã å¿ è¦ãªãã® Ruby 1.8.2 ã©ã¤ã»ã³ã¹ ãã®ããã°ã©ã 㯠Ruby ã©ã¤ã»ã³ã¹ã«å¾ãã¾ãã ãã¦ã³ãã¼ã ruby-mysql-0.2.6.tar.gz ruby-mysql-0.2.5.tar.gz ruby-mysql-0.2.4.tar.gz ruby-
â Ruby ã¹ã¯ãªããã®ãããã¡ã¤ã© ãããã¡ã¤ã©ã£ã¦? èªåãæ¸ããã¹ã¯ãªããããå®éã©ã®ããã«åããã確èªãã¦ã¿ããããã¾ããã? æ¸ããã¹ã¯ãªããã¯ãå¼æ°ã§æ¸¡ããããã¼ã¿ã«ãã£ã¦åä½ãéã£ã¦ããããã¾ãã ãã®ã¨ããããä¸çªãã使ãããé¨åããããã°ããã®é¨åã®å¦çããã¾ãé«éåã§ããã°å¦çã®å¹çããããªãã¾ãã ã¾ããå®è¡ããã¦ããªãé¨åããããã°ããã®é¨åã«ã¯ bug ãæ®ã£ã¦ããããããã¾ããã ããããã¨ãã«ãããã¡ã¤ã©ã¨ãããã®ãå½¹ç«ã¡ã¾ãã ããã§ã¯ãã¨ã¦ãç°¡åãªãããã¡ã¤ã©ãç¨æãã¾ããã åºæ¬çã«ã¯ãããããã¹ã¯ãªããã«è¨æ¸¬ç¨ã®å¦çãåãè¾¼ã¿ããã®ã¹ã¯ãªãããå®è¡ãã¾ãã å®è¡ä¸ã«å¦çã®çµæããã¡ã¤ã«ã«åºåãããã®çµæãã¹ã¯ãªããã®ãªã¹ãã¨åããã¦è¡¨ç¤ºããã¨ãããã¨ããã¾ãã 使ãæ¹ ã½ã¼ã¹ã³ã¼ã 解説 ä½è« åèæç® å±¥æ´ ã¡ãªã¿ã« Ruby ã¯ãæ¨æºã§ãããã¡ã¤
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}