Ruby
æ¦è¦ ãããã èªã®æåã³ã¼ãã¯ãæè¿ã¯ UTF-8 ã¸åæãã¤ã¤ããããã ããããã èªã®æ£æ¸æ³ã¯ãã¢ã«ãã¡ãããï¼å£°èª¿è¨å·ã§ãããã ããæºå¸¯é»è©±ããã£ãããªã©ã®éå ¬å¼ã®æç« ã§ã¯ã声調è¨å·ãçç¥ãããã¨ãå¤ãããã®ããã°ã©ã ã¯ã声調è¨å·ä»ãã®ãããâ¦
ãããã ã«ã¯ Ruby ã³ãã¥ããã£ãããã®ãï¼ããããæ¤ç´¢ãã¦ã¿ãã¨ãããé常ã«èå³ã¶ããã¹ã¬ããã«ééãããhttp://cntt.tv/nodes/show/388cntt.tv (CCTT = Công nghá» thông tin, æ å ±å·¥å¦ï¼ã¨ãããµã¤ãã§ã®è°è«ã§ããããã®ãµã¤ãã®ä¸»å¬è ã¯ãNgoc Daâ¦
æ¦è¦ ãã®è©±é¡ã¯ãã¾ãã«ããã¢ãã¯ããã¦ãã©ãã»ã©ã®äººã«ãã£ã¦æç¨ãããããªãããèªåã®ããã®ã¡ã¢ã¨ãã¦æ¸ãã¦ã¿ãããããã èªã¯ãæ¥æ¬èªåæ§ããã¾ãã¾ãªæåã³ã¼ãã使ããã¦ãããã¨ã§æªåé«ããæè¿ã¯ UTF-8 ã¸åæãã¤ã¤ããããã ããæ°å¹´åã¾â¦
æºå¸¯é»è©±ã®ã¨ãã¥ã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ãã ssb ã®ã¤ã³ã¹ãã¼ã«ã試ã¿ãã % svn co http://svn.coderepos.org/share/lang/ruby/ssb/trunk ssb % ruby ssb-webrick.rbããã§ã¨ãããã ssb ã¯åããã»ã»ã»ã¯ããªã®ã ããå®ã¯ã¨ã©ã¼ãåºã¦åããªãã£ããã©ããã â¦
UCS-2 ã¨ããã®ã¯2ãã¤ãã® Unicode ã®æåéåï¼ããã³ãã®ã³ã¼ã表)ã®ãã¨ã§ããã UTF-8 ã¨ããã®ã¯ããASCII ã¨äºææ§ã®ããå¤ãã¤ã Unicode ã®ç¬¦å·åãã®ãã¨ã§ãããLinux ã® man page http://www.linux.or.jp/JM/html/LDP_man-pages/man7/utf-8.7.htâ¦
æ¨æ¥ã»ä»æ¥ã¨è¨åçã¤ãã°å¸ã§éå¬ããã Ruby ä¼è° 2008 ã«åå ããã ã¹ãã¼ã«ã¼ã®æ¹ã ã¯ã¿ãªåªç§ã§æ ç±ã«ããµãã楽ããã¤ãã³ãã§ãã£ãã é«æ©ããã»è§è°·ãããã¯ããã¨ããéå¶ã®æ¹ã ã«ã¯æ¬å½ã«é ãä¸ããã 楽ããã¤ãã³ããæ¬å½ã«ãããã¨ããããã¾â¦
è¶£æ¨ Rails ã¢ããªã§ãããã¿ã¤ããä½ã£ãã¨ãã«ãBASIC èªè¨¼ãæãã¦éå®å ¬éãããã¨æãã¨ãããããããããªããã¨ããã Rails ã§ã¯ãããæ¡å¤é£ãããApache ããã¾ããªã㨠BASIC èªè¨¼ãã§ããªãããã ããã㧠WEBrick ã使ã£ã¦ BASIC èªè¨¼ãè¡ããâ¦
è¶£æ¨ GETA ã Ruby ã使ã£ã¦æä½ãã GETA-Ruby ããªãã¸ãä½ã£ã¦ã¿ããRuby ã®æ¡å¼µã©ã¤ãã©ãªã®åå¼·ãå ¼ãã¦ã®ãã¨ã ãä¹ ãã¶ãã® C ããã°ã©ãã³ã°ã ã£ãããRuby ã®æ¡å¼µã©ã¤ãã©ãªã®æ¸ããããã¯ç°å¸¸ãã¾ã¤ãã¨ããã®ããã°ã©ãã³ã°ããããã¸ã®ãã ããâ¦
ãã¹ã¦ã®æ¼¢åãåãåºãæ£è¦è¡¨ç¾ãã¨ã¦ãåèã«ãªã£ããçµå±æ¬¡ã®ãããªåç´ãªã³ã¼ãã§ãããããã ï¼æåã³ã¼ã㯠UTF-8 ãä»®å®) $KCODE = 'u' require 'jcode' puts 'aA0&ï¼æ¼¢åã§ã'.gsub(/[^ä¸-é¾ ]/, '') # => "æ¼¢å" ãã½ã¯ã$KCODE = 'u' ã㦠requireâ¦
è¶£æ¨ ç§ã¯ Windows (ãã¹ãOS) + VWMare ä¸ã® Linux(ã²ã¹ãOS) ã¨ããæ§æã§éçºãè¡ã£ã¦ããã®ã ããã©ããã¦ã Linux å´ãã Excel ãã¡ã¤ã«ãèªã¿ãããªã£ããããã§ãdRuby ã使ã£ã¦ Windows å´ãã Excel ãã¡ã¤ã«ã®ä¸èº«ãèªã¿åºã Ruby ããã°ã©ã ãæ¸â¦
Java ã® RMI ã¿ãããªåæ£ã³ã³ãã¥ã¼ãã£ã³ã°æè¡ã§ãã dRubyãããã使ããã¨ãã¦ã¯ã¾ã£ããã¤ã³ãããã£ãã®ã§ã¡ã¢ã dRuby èªä½ã¯æ¶ãåºãã»ã©ä½¿ãã®ãç°¡åããã¨ãã°ãåããã·ã³ã®ä¸ã§ãserver.rb 㨠client.rb ã¨2ã¤å®è¡ãã¡ã¤ã«ãç¨æãããã # serâ¦
è¶£æ¨ Ruby æ¨æºæ·»ä»ã©ã¤ãã©ãªã® CSVã¯ã©ã¹ 㯠CSV ãã¡ã¤ã«ã®èªã¿æ¸ãã«ä¾¿å©ã§ããããã æ®å¿µãªãã¨ã«æ¨æºå ¥åãããã¼ã¿ãåãä»ãã¦ãããªããUNIX ã®ãã£ã«ã¿çã³ãã³ããä½ããã¨ããã¨ãã«ã¯ãä¸ä¾¿ã ã ããã§ãæ¨æºå ¥åãããã¼ã¿ãåãä»ãããããªâ¦
ãã°ãã¼ãã¼ã·ã§ã³ã®è½ã¨ãç©´ Rails ã§ã®ããã©ã«ãã®ãã¬ã¼ã¯ãRuby æ¨æºæ·»ä»ã® Logger ã¯ã©ã¹ãå°ãå¤ãããã®ã§ããããã°ã®ãµã¤ãºã大ãããªã£ãã¨ãããµã¤ãºããæ¥ä»ãããåºæºã«ãã°ã®ã¢ã¼ã«ã¤ãåãè¡ãï¼ãã°ãã¼ãã¼ã·ã§ã³ï¼ãããã¨ãå¤ããä¸çªâ¦
Rails ã«ã¯ç´æ¥é¢ä¿ãªãå°ãã¿ãã²ã¨ã¤ãExcel ã®ä¸èº«ã Ruby ã®ããã°ã©ã ããåç §ããããã¨ããããããã¯ã次ã®ããã«å®ç¾ã§ãããwin32/clipboard 㨠win32ole ã¨ãã2ã¤ã®ã©ã¤ãã©ãªã使ãã require 'rubygems' require "win32/clipboard" require 'wâ¦
æ¥æ¬èªã®æç« ãå½¢æ ç´ åæããã¨ä½ãèµ·ããã ããï¼ã¨ãããµã¨ãã好å¥å¿ãããå½¢æ ç´ åæã¨ã³ã¸ã³ãè¶ç(ChaSen)ããå°å ¥ããã å ãã¿ã¯ãYet Another ä»äºã®ãã¼ã«(45) æ¥æ¬èªå½¢æ ç´ è§£æãã¼ã«ãChaSenãã ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯ãDarts ã¨â¦
緯度ã»çµåº¦ããè·é¢ãæ±ããæ¹æ³ã«åºã¥ãã¦2ç¹ã®è·é¢ãæ±ãã¦ã¿ãã 次ã®2ç¹ãèãã¦ã¿ãã座æ¨ç³»ã¯10é²æ°ã®ä¸ç測å°ç³»ã§ããã é§ å 緯度 çµåº¦ æ±äº¬é§ (1) 35.680737 139.767044 ç¥ç°é§ (2) 35.691569 139.770654 æ±äº¬é§ ã¨ç¥ç°é§ ã¨ã®è·é¢ã¯ï¼ çµåº¦ã®å·® Îλ = (â¦
é¦é½åã®ééé§ ã«ã¤ãã¦ãGoogle Maps ã§ä½¿ç¨å¯è½ãªä¸ç測å°ç³»ã®ç·¯åº¦çµåº¦ãåå¾ãããã¨ãç®æ¨ã¨ããã 1. ééé§ ã®ç·¯åº¦çµåº¦ãåå¾ éé網ã®åæ: ç 究æ¦è¦: ç¯ ç° åç¥ ãã é§ æ å ±ãã¼ã¿ ãåå¾ãç¯ ç°ããããããã¨ãï¼ 2. ä¸ç測å°ç³»ã«å¤æ ä¸ã®ãã¼ã¿ã¯â¦
Ruby ã®é©æ°æ§ã¯ããã°ã©ãã«ã¨ã£ã¦ã®æ°æã¡ããã«æé©åããã¦ããã¨ããç¹ã«ãããããã°ã©ãã³ã°è¨èªã¯ãåé¡ã解決ããããã«è¨è¨ããã¦ãããããããããã°ã©ãèªèº«ã®ãã¨ãèæ ®ã«ããã¦ããªãã£ãã®ã§ã¯ãªããï¼ãããåé¢ã«æã¡åºãã¦ãã Ruby ã®é©â¦
ç¾å¨ Ruby ä¼è° 2007ï¼ æ±äº¬ã«åå ãã¦ãããå®ã«å¤å½©ãªã¹ãã¼ã«ã¼ãããããªè©±ããã¦ããããããã§ããç¹ã«é¢ç½ãã¹ãã¼ãã¨ããã®ãããããéå±ãªã¹ãã¼ãã¨ã®éãã¯ã©ãã«ããã®ãï¼ããã¯ã¦ã¼ã¢ã¢ããããã©ãããããããã§ã¯ã¦ã¼ã¢ã¢ãæãããã«ã¯ã©â¦
Fizz-Buzz åé¡ã¨ããã®ãã¡ãã£ã¨ã¾ããããã§æµè¡ã£ã¦ããããããã©ããã¦ããã°ã©ãã«ã»ã»ã»ããã°ã©ã ãæ¸ããªãã®ã?åé¡ã¯ããã ã 1ãã100ã¾ã§ã®æ°ãããªã³ãããããã°ã©ã ãæ¸ãããã ã3ã®åæ°ã®ã¨ãã¯æ°ã®ä»£ããã«ï½¢Fizzï½£ã¨ã5ã®åæ°ã®ã¨ãã¯ï½¢Buâ¦
RMagick ãã¤ã³ã¹ãã¼ã«ããã®ããããåå¾ãã¦å¤§å¤ã ã£ããããããããããã£ã¨çµäºãããã®ããã«æ¸ããRMagick 㯠ImageMagick ã® Ruby ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§ãããããã¾ã㯠ImageMagic ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ããããyum ã aptitude ãªã©ã使ã£ã¦ããâ¦
Ruby çéã§ã¯éæ¨å³°éæ°ãããããããã® Yugui æ°ãæ¬å½ã«ããããæ°å¦ã»ç¤¾ä¼ç§å¦ã»ã³ã³ãã¥ã¼ã¿ã®ç¥èã縦横ç¡å°½ã«é§ä½¿ããå覧強è¨ã®äººã Yugui æ°ã«ãããRubyã®å¼ã³åºãå¯è½ãªãã¸ã§ã¯ãã®æ¯è¼ã3åã·ãªã¼ãºãã¾ãé常ã«ããã http://idm.s9.xrea.comâ¦
天æã®åã«ãµãããã人ç©ããRubyã½ã¼ã¹ã³ã¼ãå®å ¨è§£èª¬ãã®éæ¨å³°éæ°ã§ãããéæ¨æ°ã¯ãã®èè ã¨ãã¦ãRuby ã®å é¨æ§é ã«ã¤ãã¦å ¨19ç« ãã¾ãã«æ¸¾èº«ã®è§£èª¬ãå ãã¦ãããéæ¨æ°ã®é è³ã®æ±ãé£ã³æ£ããããªè¿«åã«ã¿ã¡ãä½åã§ãããç§ã¯ããã®æ¬ã®è½ã¡çããâ¦
äºæ³ä»¥ä¸ã«æ¥½ããã£ãããã¯ã Ruby é¢ä¿è ã¯ã¬ãã«ã®é«ã人ãå¤ããªãã ããã¯æè¿è²·ã£ãWZero3 es ã®ä¸ã§æ¸ãã¦ã¾ãã ã»ã»ã»ã¨å®¶ã«å¸°ã£ã¦ãã½ã³ã³ã§ç¶ããæ¸ãã¦ãã¾ãã ãã¯ã W03es ã«æ¯ã¹ãã¨ãã£ã¡ã§æ¸ãã®ã¯å¤©å½ã®ããã«æ¥½ã§ãã ã¾ãããã£ã¡ããâ¦
ããã°çã®ããã人ãã¾ãä¸äººçºè¦ãfromdusktildawn æ°ã ã ãRubyã®çç£æ§ã®é«ãã¯ã©ãã¾ã§æ¬å½ãï¼ãã¨ããã¨ã³ããªã§ãå ãã¿ã®ãPart1 ãªãä»äºã§ä½¿ãã¨ããããã®ãã ãããã§ãããããã§ãããã¨ããã¶ã£ã¦ãããç§ã¯ãã¯ã£ããè¨ã£ã¦ãæ°ã®è¨ããâ¦