Ruby
ã©ããï¼well-formedãããªãHTMLã®å ´åã«ï¼ãã©ã¼ã ã®ä¸é¨ãåããªãã¿ããï¼ä¾ãã°ï¼ä»¥ä¸ã®ãããªãã©ã¼ã ãããã¨ãã«barãåããªã(WWW::Mechanize#page.forms.first.field('bar').nil? == trueã«ãªã)ï¼ <p> <form> <input name="foo"> </p> <input name="bar"> æ¤ç´¢ãã¦ã¿ããã©æ å ±ãç¡ãï¼ã¿ããªå°ã£ã¦â¦
Twitter ã§ã¤ãã¤ã follow ããã®ãé¢åããã ãã ãã©èªåã§ã¡ã¼ã«ãµã¼ããç«ã¦ã¦ãªã - Djangoã¸ã®çæãæ¥è¨ é¢é£ï¼Rubyã ã¨ãããªæãããª? 以ä¸ï¼ä»å±ã©ã¤ãã©ãªã®ã¿ä½¿ç¨ï¼ èªåã®IMAP4ãµã¼ãã«å¯¾ãã¦ãããã¹ããã¦ãªããã©ï¼ãã¶ãGmailã§ãåããâ¦
ãæ æ ¢ã¯ããã°ã©ãã®ç¾å¾³ãã¨ããããã© - kãªãã¨ãã®æ¥è¨ ãè¦ã¦ï¼ ä¾ãã°ãã¹ã¯ãªããè¨èªã§æ¬¡ã®ãã㪠Hash ã Dict ãæ¸ããã¨ããã data = [ {'name'=>'Foo', 'age'=>20, 'email'=>'[email protected]'}, {'name'=>'Bar', 'age'=>21, 'email'=>'bar@mail.â¦
ãããã°ç¨ã«ã¡ãã£ã¨ããWebãµã¼ããä½ã£ã¦ã¿ãããªã£ãã®ã§ï¼WEBrickã触ã£ã¦ã¿ãï¼ #!/usr/local/bin/ruby require 'webrick' require 'pp' class MyServlet < WEBrick::HTTPServlet::AbstractServlet # Process GET Request # # _req_:: WEBrick::HTTPReâ¦
å¿ è¦ã«ãããï¼MHå½¢å¼ã®ãã©ã«ããMaildirã«å¤æããã¹ã¯ãªãããæ¸ãã¾ããï¼Rubyã§ï¼MHããMaildirã«ç§»è¡ããå ´åã«ä¾¿å©ã«ä½¿ããã¨æãã¾ãï¼Googleãªã©ã®æ¤ç´¢ã¨ã³ã¸ã³çµç±ã§è¦ã¤ããmh2maildirã¨ãããã¼ã«ãããããã§ããï¼ä»¥ä¸ã®ç¹ããã¾ãã¡ã«æãã¾â¦
è¤æ°ã®Maildirã«æ ¼ç´ãããã¡ã¼ã«ãï¼ã²ã¨ã¤ã®Maildirã«çµ±åããã¹ã¯ãªãããæ¸ãã¾ããï¼Rubyã§ï¼ããã¯ã¢ããããMaildirããªã¹ãã¢ããæãªã©ã«ä½¿ãããããããªãã®ã§ï¼å ¬éãã¦ããã¾ãï¼ æ¦è¦ æå®ããã2ã¤ã®Maildirã«æ ¼ç´ãããã¡ã¼ã«ãï¼ã²ã¨ã¤ã®Maâ¦
æ¥æããã°ã©ãã¨ãã¦ã¯ï¼ãã£ããããæ°(wikipedia)ãçæããé¢æ°ãããã¯å¼å¸ãããã®ãã¨ãæ¸ããããã«ãªãããã¨æã£ãã®ã§ï¼æ¸ãã¦ã¿ãï¼Rubyã§ï¼ãããã¾ã doukaku.orgã«æ稿ããã¦ããªãã®ã¯ä¸æè°ã ãªãâ¦â¦ï¼ ã¤ãã¬ã¤ãã£ãã«æ¸ããç ã¯ããã«ï¼wâ¦
Mutex#synchronize synchronizeã®éä¸ã§nextã使ãã¨ã¤ãã¬ã¼ã¿ãããã¯ãæãããï¼breakã¨åä½ã®éãããããæ°ã«ãªã£ãããæ¤è¨¼ããã¨ããï¼ã©ã¡ããåãåä½(åç´ã«synchronizeãããã¯ãæãã¦æ¬¡ã®è¡ã«è¡ã)ã¨ãªã£ãï¼ãã ãï¼ããã°ã©ã ã®è¦ãç®çã«ã¯â¦
ããªã¼ã®ãããªãã¼ã¿æ§é ãä½ã£ã¦ããã¨ï¼èªåã®ã¯ã©ã¹ã®æ°ããã¤ã³ã¹ã¿ã³ã¹ãä½ããããªãå ´åãããã¾ãï¼ç§ã¯æåï¼ä»¥ä¸ã®ãããªã³ã¼ããæ¸ãã¦ãã¾ããï¼
(ToDo) åè RFC1459 æï¼èª¿ã¹ããã©ãã£ããå¿ãã¦ãâ¦â¦ï¼ Test::Unit http://www2.ruby-lang.org/ja/man/?cmd=view;name=Test%3A%3AUnit