You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Rubyã ã! JSãä¸å使ããªãç¡çããããã³ãã¨ã³ãéçºTRICK - Download as a PDF or view online for free
Writing command-line apps in Ruby By Starr Horne on Jan 5, 2016 While it's fun to write little one off utility scripts, sometimes you need to write a real honest to God command-line application. One that takes arguments and plays nicely with unix conventions for input, output, error reporting, etc. Fortunately, Ruby gives you all the building blocks you need to command-line applications fairly eas
dotsã§éå¬ãããReactã®å°å ¥ãæ¤è¨ããã¦ãæ¹åãã®åå¼·ä¼ã§ã話ãã¾ãã https://eventdots.jp/event/597088
ãRubyã®caseããä¸ç¥ãããã¼è¦ã¯ãã(è¨èªå)ã®switchãããªã©ã¨æ©åç¹ãããã®å¾ããã®çã®ä¾¡å¤ãç¥ããã¨ãªãä¸çãçµããããã°ã©ããè¿å¹´è·¡ã絶ããªããå ãã¦ããä»æ´æ¡ä»¶åå²ï¼Rubyã¯OOPãªãã ããããªã¢ãã£ãºã ãããï¼ãã¨ããHashã«Procçªã£è¾¼ãã§callããã®ããªã¬æµããã¨ãããã¶ã人ãã¡ãã¾ãå¢å ã®ä¸éã辿ã£ã¦ããã ãããªä¸ã®ä¸ã«ãã£ã¦ãã¼ãã¯ä¸è¨ãã§ããã°ã¬ãã³ã¨ä¸è¨ç³ãä¸ããããçã¾ããè²ã¡ãRubyãªã¼ããããæ¯éã¨ããããªäººãã¡ã«ãRubyã®caseãã«ã¤ãã¦ä¸è¨ç³ãä¸ãã¦ããããã â åé¡ï¼ â åånameãã¬ãã«levelããã¤ã³ãpointã®åå±æ§ãæã£ãè¤æ°ã®Characterãªãã¸ã§ã¯ãcharlie, liz, benãããã class Character < Struct.new(:name, :level, :point) def
21:26 15/12/11 åå¨çãã¼ãæ in Ruby åå¨ç Ï = 3.14159265... ãèªååãã㧠ãç£å»å¸«ç°å½ã«åããâ¦ã ã¨ãã¦è¦ããã¿ãããªã®ããã¾ãããã è±èªã§ã¯ Piphilology ã¨è¨ã£ã¦ããã¨ãã°ããããªã®ã How I wish I could recollect pi easily today... é·ã 3 ã®åèª (How)ãé·ã 1 ã®åèª (I)ãé·ã 4 ã®åèª (wish)ã⦠ã¨ããåã§æ°åã®åãè¦ãããããããã§ãã ãã®æ¹å¼ã ã¨ã¼ãã®æ¡ã®è¡¨ç¾ã«å°ãããã§ãããã¼ãã®æã«ã¯å·§ã¿ã«å¥èªç¹ãªã©ã®è¨å·ãé ãããã ãããã¯ããå°ãåç´ã«ãé·ã 10 ã®åèªãå½ã¦ã¦è¡¨ãã®ã ãããªã ã¨ãããããã§ã in Ruby é·ã 3 ã®ãã¼ã¯ã³ãé·ã 1 ã®ãã¼ã¯ã³ãé·ã 4 ã®ãã¼ã¯ã³ã é·ã 5 ã®ãã¼ã¯ã³ãé·ã 9 ã®ãã¼ã¯ã³ãé·ã 2
Rubyã¯ãã®ããè¨èªã§ããRubyã触ã£ã¦ããã¨ããã¥ã¢ã«ã«ãæ¸ãã¦ããªããå°ããªçºè¦ãã«ééãããã¨ãããããã¾ãããã®ãããªãçºè¦ãã¯ãããã°ã©ã ã®è³ªãå¹çã®æ¹åã«ã¯ç´çµããªãããããã¾ããããããããããã¼ã ããã°ã©ãã³ã°ã§ã¯å¦¨ãã«ãªãå¯è½æ§ããããã¾ããããããã®ä¸æ¹ã§ãè¨èªèªä½ãèªåã®ç¥ããªãé åãæã¡ç¶ãã¦ãããã¨ãããã®å¯¾è±¡ã«å¯¾ããèå³ã失ãããªãããã®å¤§ããªè¦å ã§ãããã¨ããã®ãã¾ãçãã®ãªãäºå®ãªã®ã§ããã¤ã¾ããçºè¦ãã¯ãã®ããã«ç´çµãã¦ããã®ã§ãã ãã®ããã°ã«ããã¦ãç¥ã£ã¦å¾ããRubyã®ããªãã¢ãªè¨æ³ãã¨ããã¿ã¤ãã«ã§ãä»ã¾ã§ï¼åè¨äºãæ¸ãã¾ããã âç¥ã£ã¦å¾ãã21ã®Rubyã®ããªãã¢ãªè¨æ³â â第ï¼å¼¾ï¼ç¥ã£ã¦å¾ãã12ã®Rubyã®ããªãã¢ãªè¨æ³â â第ï¼å¼¾ï¼ç¥ã£ã¦å¾ãã12ã®Rubyã®ããªãã¢ãªè¨æ³â ãããã®ããªãã¢ã«ã¯ããããæ¤ç´¢ã§è¦ã¤ãããã®ãTwitt
Mock Object Mock Objectã®ä½æ my_mock = mock(<name>) my_mock = mock(<name>, <options>) person = mock('person', :null_object => true) Mockã¯ååãå¼æ°ã«åããä»æ§ã®æ¤è¨¼ãçµãã£ãéã«å ¨ã¦ã®Mockãæ¤è¨¼ãããã optionå¼æ°ãããã·ã¥ã§ä¸ãããã¨ã§Mockã®æ¯ãèãã調æ´ã§ãããç¾å¨ã:null_objectã®ã¿ããµãã¼ãããã¦ããã:null_object => trueãå¼æ°ã«æ¸¡ãã¨Mockã«å¯¾ããå ¨ã¦ã®ã¡ã½ãããMockèªèº«ãè¿ãããã«ãªãã Mockã«å¯¾ãã¦ã¹ã¿ãã¡ã½ãããå®ç¾©ãã person.should_receive(:name) # person.name => nil person.should_not_receive(:name) #
Railsã¤ã³ã¹ãã¼ã« - tetu1984ã®æ¥è¨ã®ç¶ã ç¶æ³ scrip consoleã使ããã¨ããã以ä¸ã®æãã§æããã $ ./script/console Loading development environment (Rails 2.3.5) /usr/local/ruby/1.8.7/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError) from /usr/local/ruby/1.8.7/lib/ruby/1.8/irb/completion.rb:10 from /usr/local/ruby/1.8.7/lib/ruby/1.8/irb/init.rb:254:in `require' from /usr/local/ruby/1.8.7
第4ç« å®è¨¼ããRuby ã®ç¹å¾´ãæ´»ããéçºææ³ã®çµæ¶ æ¬ç« ã§ã¯ãç 究å®è¨¼ãéãã¦æããã«ãªã£ããã¨ãå®æ½ã¡ã³ãã¼ã®å£°ã交ã詳ããã«ããã 1. å®è¨¼ããéçºææ³ããã©ã¯ãã£ã¹ã®æå¹æ§ã¨èª²é¡Â¶ å®è¨¼ããéçºææ³ã«ã¯ããã¸ãã¹èª²é¡ã解決ããä¸ã§ã®å¤ãã®æå¹æ§ã確èªããããããã§ã¯ããã®æå¹æ§ãæ´çããã¨ã¨ãã«ãæ°ãã«æµ®ãã³ä¸ãã£ã課é¡ãæããã 1.1. å®è¨¼ããéçºææ³ã®æå¹æ§Â¶ ã 第3ç« 1.2. å®è¨¼ããéçºææ³ã®é¸å® ãã§è¿°ã¹ãããã« å®è¨¼ç 究ã®å¯¾è±¡ã¨ãªã£ããæ¥å¸¸ç¹æ¤ã·ã¹ãã ãã®ã·ã¹ãã ç¹æ§ã¯ä»¥ä¸ã®3ç¹ã§ãã£ãã é«ã使ç¨æ§ ä¸ç¢ºå®æ§ã¸ã®æè»ãªå¯¾å¿ é«ãä¿å®æ§ ãããã®è¦ä»¶ã«å¯¾ããæå¹æ§ãæ´çããã é«ã使ç¨æ§Â¶ å¾æ¥ã®ã¦ã©ã¼ã¿ã¼ãã©ã¼ã«åã®éçºææ³ã§ã¯ãè¨è¨æ®µéã§ä½¿ç¨æ§ãçãè¾¼ãã®ãçæ³ã§ã¯ããããå®éã«åãã½ããã¦ã§ã¢ãã¦ã¼ã¶ã¼ã確èªã§ããã®ã¯ãæçµå·¥ç¨ã稼åå¾ã§ãããããã¦
David Heinemeier Hansson: you can install Rails 2.2 through RubyGems. We now require RubyGems 1.3.1, so be sure to update that first Problem: $ gem -v 1.2.0 $ gem update --system ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems can be updated \ using the official Debian repositories by aptitude or apt-get Solution: $ wget http://rubyforge.org/frs/do
Ruby 1.9ãã½ã¼ã¹ã³ã¼ãããMac OS X 10.5.1ã«ã¤ã³ã¹ãã¼ã«ããæ¹æ³ã示ãã å¿ è¦ãªãã¡ã¤ã«ã®ãã¦ã³ãã¼ã ä»åãrubyã®ã½ã¼ã¹ã³ã¼ãã¨GNU Readline Libraryãã¤ã³ã¹ãã¼ã«ããäºã«ããããã¡ã¤ã«ã¯æ¬¡ã®å ´æãããã¦ã³ãã¼ãããã http://core.ring.gr.jp/pub/GNU/readline/ããreadline-5.2.tar.gz Rubyããruby-1.9.0-0.tar.bz2 readlineã®ã¤ã³ã¹ãã¼ã« ã¿ã¼ããã«ã§ä½æ¥ããã $ tar zxfv readline-5.2.tar.gz $ cd readline-5.2 $ ./configure $ make $ sudo make install ãã¹ã¯ã¼ãå ¥å Ruby 1.9ã®ã¤ã³ã¹ãã¼ã« ã¿ã¼ããã«ã§ä½æ¥ããããã¡ã¤ã«ã¯/usr/localã«ã¤ã³ã¹ãã¼ã«ããM
Passengerã®PhusionããããRuby Enterprise Editionããªã製åããªãªã¼ã¹ãããããã§ãã Ruby Enterprise Edition Ruby Enterprise Edition is a drop-in, transparent solution for improving your Ruby on Rails website's scalability and performance, while decreasing memory usage. Railsã¢ããªã®åä½ãé«éãã¤ã¡ã¢ãªæ¶è²»ãæãããã¨ãã§ããããã« ãã¥ã¼ãã³ã°ãããRubyã®ããã§ãã ãã¡ã ã§tarballãé å¸ããã¦ãã¾ããã 以ä¸ã®ãããªç¹å¾´ãããããã§ãã Passengerä¸ã§ã®Railsã¢ããªã®ã¡ã¢ãªä½¿ç¨éãå¹³å33ï¼ å°ãªããã¾ã æ®éã®Ruby-1.8.6ã¨1
Ruby on Railsããããã¤ã³ã¿ã¼ãããã«ã¤ã³ã¹ãã¼ã«ãã¦å®è¡ããã¾ã§ã ãã£ãããªã®ã§ææ°çãå ¥ãããããããå¢ãã§ã¤ã¾ã¥ãã¾ãã£ããã Ruby on Railsã®ã¤ã³ã¹ãã¼ã« åèï¼ ãããã®ã¬ã³ã¿ã«ãµã¼ãã¼ã« Ruby on Rails ãã¤ã³ã¹ãã¼ã«ããæé ãããã®ã¬ã³ã¿ã«ãµã¼ãã¼ã«Ruby on Rails 2.0.2ãã¤ã³ã¹ãã¼ã«ããæ¹æ³ åèãµã¤ãã©ããã«ããã°åé¡ãªããã %ruby -version ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-freebsd6] ç¾å¨ã®ãããã®rubyã®ãã¼ã¸ã§ã³ã¯1.8.6ã§ãã [rubygemsã®ã¤ã³ã¹ãã¼ã«] rubygemsã®ææ°çã1.3.1ãåå¾ããã¤ã³ã¹ãã¼ã«ãã¾ãã ã¤ã³ã¹ãã¼ã«å ã¯ããããªã®ã§$HOMEå ã§ãã--prefix=$HOMEãå¿ããã«ã %mkdi
æ¨æ¥ã®è¨äºã§ãRuby on RailsãApacheã§CGIã¨ãã¦åãããã« ãªã£ãããRuby on Railsã®åä½ãé常ã«é ãã®ã§ãFastCGIã å°å ¥ãã¦ãé«éã«åä½ããããè¨å®ãè¡ãã ã»ååã¾ã§ã®è¨äº Windowsã§Ruby on Rails ãã®ï¼ XAMPPã®ã¤ã³ã¹ãã¼ã« Windowsã§Ruby on Rails ãã®ï¼ Rubyã»Ruby on Railsã®ã¤ã³ã¹ãã¼ã« Windowsã§Ruby on Rails ãã®ï¼ Ruby on RailsãCGIã§åãã ï¼ï¼FastCGIã®DLLã®åå¾ FastCGIã®ãµã¤ãã®ãã¦ã³ãã¼ãã³ã¼ãã¼ããã mod_fastcgi-2.4.6-AP22.dllããã¦ã³ãã¼ãã ãã¡ã¤ã«åã®2.4.6ã¯FastCGIã®ãã¼ã¸ã§ã³ãAP22ã¯å¯¾å¿ããApacheã® ãã¼ã¸ã§ã³ã ä»åã¯ãApacheã®2.2.8ã使ç¨ãã¦ããã®
ç®æ¬¡ 2005å¹´11æ30æ¥ - å稿åºã / 2005å¹´11æ29æ¥ - ã»ãã¥ãªãã£ã·ã¹ãã ããã¯ããã¸ã¼ããã©ã¯ãã£ã¹ãåæã»è©ä¾¡ãã5ã¤ã®ã¹ããã / ä»äº / ãæå·æè¡å ¥é ââ ç§å¯ã®å½ã®ã¢ãªã¹ãå¢å· / 2005å¹´11æ26æ¥ - é«æ©ã¡ã½ããã®ãã¬ã¼ã³ãã¼ã·ã§ã³ãflashã®ãã¼ã«ã«ãã¡ã¤ã«ã¨ãã¦ä½ãã«ã¯ï¼ / 2005å¹´11æ25æ¥ - æ¥è¨ãã¤ã¸ã§ã¹ãæ´æ° / 2005å¹´11æ23æ¥ - ããã£ãæ¢ããªã¼ã¹ / æã¡åãã / 2005å¹´11æ22æ¥ - ãããã©ã¡ããã¨ç¸å ç¸ä¹å¹³åãã®LaTeXãã¡ã¤ã«å ¬é / æ°æã¡ã®ããæ / 2005å¹´11æ21æ¥ - å¹´æ«é²è¡ / ãä»äºã¡ã¼ã«ã¨Webãµã¤ã / 2005å¹´11æ20æ¥ - æ¥ææ¥ / æ°å¦ã¬ã¼ã« / 2005å¹´11æ19æ¥ - ãããã¹ãã®å¯¾è©± / 2005å¹´11æ18æ¥ - Tropy: 2005å¹´11æ
ãã©ã¸ã«äººã®Fabio Akitaããã¨ããæ¹ãRails 2.0ã®ãã¥ã¼ããªã¢ã«ãè±èªã§ä½ã£ã¦ãã ãã£ã¦ããããããã¨ãï¼ï¼ %w(Akita On Rails) * 2.0 - Rolling with Rails 2.0 - The First Full Tutorial - Part 1 %w(Akita On Rails) * 2.0 - Rolling with Rails 2.0 - The First Full Tutorial - Part 2 ãã®ãã¥ã¼ããªã¢ã«ã®ã¡ã¢ãã¾ãã¯ä½æ¥ãã£ã¬ã¯ããªãã¤ãã£ãä¸ã§ãã¥ã¼ããªã¢ã«ããã£ããå§ãã¦ã¿ãã % mkdir Rails2.0 % cd Rails2.0 % rails blogAkitaããæ°ããRailsã®è¨å®ç°å¢ã¯å ¨é¨configã®ä¸ã«ããã以ä¸ã®3ã¤ã®ãã¡ã¤ã«ãéè¦ã ã¨ã®ãã¨ã config/environment
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}