æ¬ããã¥ã¡ã³ãã¯ã¯ã¦ãªãã¤ã¢ãªã¼ã«ããã Atom Publishing Protocol ã®ä»æ§ã解説ãããã®ã§ãã主ã«ã¯ã¦ãªã¹ã¿ããããã®ä½æã¨æ´æ°ãè¡ã£ã¦ãã¾ãã
Perlã®XML::Atom, XML::Atom::Service, XML::Atom::Ext::Threading, AtompubãRubyã«portingãã¦ã¿ã¾ããã atompubã¨ãããã¼ã ã¹ãã¼ã¹ã¯æ¢ã«ç¢ºä¿ããã¦ã(ãã¼ã ã¹ãã¼ã¹ã ã8æã«ç¢ºä¿ããã¦ã¦ãå ·ä½çãªãã¡ã¤ã«ããªãã¸ããªã¯ä½ãç¡ãâ¦)ã®ã§ atomutilã¨ããååã«ãã¦ããã¾ããã RubyForge RDoc gem install atomutil ã¾ã DocumentãTestã足ãããé常ã«ãã®ã¼ã ã¨æãã¾ããã試ãã¦ã¿ããæ¹ã¯ã©ããã 使ãæ¹ã¯Perlã®ãã®ã¨ã»ã¼ä¸ç·ã§ãã詳ããã¯ä¸ã®ãªã³ã¯ããRDocãåç §ãã¦ä¸ããã entry = Atom::Entry.new entry.title = 'My Entry' entry.summary = 'Summary' entry.updated
2009å¹´08æ27æ¥ rubyã«ããLivedoorããã°ã¸ã®ç»åã¢ãããã¼ã Livedoorããã°ã«ãAtomã使ã£ã¦ãæå®ãã£ã¬ã¯ããªå ã®å ¨ç»åãã¡ã¤ã«ãæ稿ããrubyã§ã®ã¢ãããã¼ãã¼ãä½ãã¾ããã ã½ã¼ã¹ã¯ãã¡ãã§ãã åæè¨å®ã®é ã«ã以ä¸ã®é ç®ãæå®ãã¦ãã ããã Livedoor IDãã¹ã¯ã¼ãBlog IDã¢ãããã¼ãããç»åããããã£ã¬ã¯ããªæ¡å¼µå(jpegãããã¯jpg) ç»åã¿ã¤ãã«ãå ã®ãã¡ã¤ã«åã«ãªãã¾ãã ã¬ã¹ãã³ã¹ã¯æ¨æºåºåã«ãã®ã¾ã¾åºã¾ãã®ã§ããããå å·¥ãããã¨ã§ãå ãã¡ã¤ã«ã¨ã¢ãããã¼ãå¾ã®URLãé¢é£ä»ãããã¨ãã§ãã¾ãã WSSEèªè¨¼ã®ãããä½æã¯ã以ä¸ã®ãµã¤ãã®ã½ã¼ã¹ã使ããã¦ããã ãã¾ããã WebOS Goodies ã¾ããNet::HTTPã®ä½¿ãæ¹ã¯ã以ä¸ã®ãµã¤ããã¨ã¦ãåèã«ãªãã¾ããã åå¿é² ãããã¨ããããã¾ãã ãprogrami
2009å¹´08æ27æ¥ atomupload.rb #!/bin/ruby # # Image File Uploader for Livedoor blog # 2008-08-27 Yasuki # require 'net/http' require 'time' require 'digest/sha1' require 'uri' require 'kconv' # # åæè¨å® username="aaaaaaaaaa" password="xxxxxxxxxx" blogId="9999999" targetDirectory="images" fileSerfix="jpeg" #------------------------------------ endPoint="http://cms.blog.livedoor.com/atom/blog_id="+blogId+
2010å¹´03æ02æ¥ Rubyã§Typepad Atom APIã使ã£ã¦æ稿ãã Typepadã«ã¯RestfulãªAPIãããããããéãã¦ã¨ã³ããªã¼ãåå¾ãããæ稿ããããããã¨ãã§ããï¼API詳細ï¼ãæ稿ã®èªååãå®ç¾ãããã¨æãç¨éããã£ãã®ã§èª¿ã¹ã¦ã¿ãã RubyããAtomã§Blogãã´ãã§ã´ãã§ããã¨ããã®ã¯ããã¾ããã¼ãºããªãã®ãæ å ±ãå°ãªããã©ã® gem ãããã®ããè¦ã¤ããã¨ããããä¸è¦å´ãTypepadã®å ´åã¯WSSEã¨ããèªè¨¼ãæ¡ç¨ãã¦ããã®ã§ãããã«å¯¾å¿ãã¦ãããã©ãããã¾ãããã®å ´åã«ã©ããã£ã¦ä½¿ãã®ããã¨ããã®ããã¢ã WSSEèªè¨¼ã«ã¤ãã¦ã¯ä¸è¨ã®ãã¼ã¸ãé常ã«åèã«ãªã£ãï¼ãããã¨ããããã¾ãï¼ã ã¯ã¦ãªããã¯ãã¼ã¯ããã¦ã³ãã¼ãããã¹ã¯ãªãã ããçµå± atom-tools ã¨ãã gem ãå ¥ããã¨ãããä¸è¨ã®ãããªã³ã¼ãã§WSSEã®å¦çãèªåã§æ¸ããª
å¿ è¦ãªãã® â Ruby 1.8.2 1.8.4 Iconv 1.8.2 ã 㨠RSS::DublinCoreModel? ã« dc_subjects ããªãã®ã§ãã¼ã¸ã§ã³ãä¸ããã â ã©ããã¼ã¯ã©ã¹ ãµã³ãã« â (get_rss.rb) require 'rss/1.0' require 'open-uri' class RssSite attr_accessor:url attr_accessor:content attr_accessor:rss def initialize(url) @url = url end def get() @content = "" open(url) {|u| @content = u.read } parse() end def parse() begin @rss = RSS::Parser::parse(content) rescue RSS
ã¯ããã« Rubyã¨åºä¼ã£ãããããã®ç°¡æ½ãã«æåããèè ã¯ããããã¾ã§èªç¶è¨èªã«è¿ãå½¢ã§ããã°ã©ã ãæ¸ããã®ã§ããã°ãã¤ã³ã¿ã¼ãããã¨PCã®éãããç解ããªã妻ã§ããå°ãã¯ããã°ã©ãã³ã°ãã§ããããã«ãªããããããªããã¨ã家åºã§ã®æ®åã«ææ¦ãããã¨ãããã¾ãã ãã®è©¦ã¿ã¯ã渡ããå ¥éæ¸ããã¯ããã¦ã®RUBAIãã¨èªã¾ããæç¹ã§é æ«ããããã§ããããã®çµé¨ãããRubyã®ææ³ã«å¾ã£ã¦ã¯ããããä½ããä»è¨èªã®åããæããã³ã¼ããã®ãã¨ããRubyã®æ½å¨åãçããããã¦ããªãã¨ããæå³ã§ãRUBAIã³ã¼ããã¨å¼ã¶ãã¨ã«ãã¾ããã ããã¦ã社å ã®ãã¾ãã¾ãªåéã®ããã°ã©ãã«Rubyéçºãæå°ãã¦ã¿ã¦åãã£ãã®ã¯ã"RUBAIã³ã¼ã"ã«ã¯ãå®è£ ã¬ãã«ã®ééãã¨ãè¨è¨ã¬ãã«ã®ééããããã¨ãããã¨ã§ãã å®è£ ã¬ãã«ã®ééãã¨ã¯ãå¦çãä»è¨èªã®ç¿æ £ã«å¾ã£ã¦è¨è¿°ãããã¨ã§å¼ãèµ·ãããã¾ããJavaããã°
ããã«ã¡ã¯ãtypesterã®é°è¬ã«ããVimmerã¯ã¢ããªãã¨ãããããæµãã¦ããã¾ãããæ®å¿µãªãããããããã ã¨ãããã¨ã身ããã£ã¦è¨¼æã§ããªãã§ããVimmerã®å¤æã§ãã å æ¥ããæ©ã¿ç¸è«ã®è¨äºããããã¨ã³ããªã¼ã«å ¥ã£ãã彼女ãã§ããã¨ããåãç«ã¡ãä½ãééããããããã¨ã³ããªã¼ã«å ¥ã£ã¦ãã¾ã£ãã®ã§ã©ãããããã¨æã£ãã®ã§ãããããã°ã©ããããã®åé¡ãããã°ããã°ã©ã ã§è§£æ±ºãã¹ãã ããã¨èãã¾ããã ã¨ããããã§å½¼å¥³ãä½ã£ã¦ã¿ã¾ãããã©ããããã®ãã¨ããã¨ã åã ãã«å®æçã«ã¤ã¶ãã åã®ãªãã©ã¤ã ãã«åå¿ãã¦ãªãã©ã¤ãè¿ãã¦ããã ã¾ãã«åã ãã®ããã彼女ã§ããä»åã¯ãããGoogleAppEngine+JRubyã§å®è£ ããã®ã§ãç°å¢ãã¤ããã¨ãããå®éã«åããã¨ããã¾ã§èª¬æãã¾ãã 1. ç°å¢ãã¤ãã ã¾ãã¯GoogleAppEngineã®ã¢ã«ã¦ã³ãããªãã¨å§ã¾ããªãã®ã§ä»¥ä¸ã
Ruby 㨠MessagePack-RPC ãããã°ãç°¡åãªkey-valueã¹ãã¬ã¼ã¸ã¯ç°¡åã«ä½ãã¾ãã54è¡ã§æ¸ãã¾ãï¼ã¬ããªã±ã¼ã·ã§ã³ã¨è² è·åæ£æ©è½ä»ãããµã¼ãã¼38è¡ãã¯ã©ã¤ã¢ã³ã16è¡ï¼ã ç°¡åãªKVSããã¼ã¹ã«ãã¦ããã°éè¨ãé éãããã¤ãé é管çæ©è½ãªã©ã®æ©è½ã追å ãã¦ããã°ãã¡ãã£ã¨ä¾¿å©ãªãµã¼ãã¼ããã°ã©ã ããµã¯ãµã¯èªä½ã§ããããºã ãã®åæ£KVSã¯ãï¼keyã®ããã·ã¥å¤ % ãµã¼ãã¼ã®å°æ°ï¼çªç®ã®ãµã¼ãã¼ã«keyãä¿åãã¾ããã¾ãããµã¼ãã¼ã®ååé ã§ã½ã¼ãããã¨ãã®ã次ã®ãµã¼ãã¼ãã¨ã次ã®æ¬¡ã®ãµã¼ãã¼ãã«ãã¼ã¿ãã¬ããªã±ã¼ã·ã§ã³ãã¾ãã ãã¹ã¦ã®ãµã¼ãã¼ã§åãè¨å®ãã¡ã¤ã«ã使ãã¾ãããµã¼ãã¼ãã¨ã®è¨å®ã¯å¼æ°ãèªåã®ãã¹ãåã«æ¸ãæããã ããªã®ã§ããããã¤ã容æã§ãã MessagePack-RPC for Ruby ã使ãã¨ãåæ£ããªãkey-valueã¹ãã¬ã¼ã¸*1ã¯
ã¯ããã« SinatraãRamazeã¨ãã£ãRubyã®Webã¢ãã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã«èå³ããæã¡ã®æ¹ã§ããã°ãRackã¨ããååããã°ãã°ç®ã«ãã¦ããããããã¾ãããã©ãããæ§ã ãªãã¬ã¼ã ã¯ã¼ã¯ã«ä½¿ããã¦ãããããã®ã ãã©ãããã¤ãä¸ä½ãªããªã®ãããããããªãããããªããªãã®ããã«ä»æ¥ã¯ãã®Rackããç´¹ä»ãããã¨æãã¾ãã æ§ã ãªãã¬ã¼ã ã¯ã¼ã¯ãæ§ã ãªã¢ããªã±ã¼ã·ã§ã³ãµã¼ã ãã°ããåãªããRuby on Railsãã¼ã ã®çã£åªä¸ãRubyã¨è¨ãã°RailsãWebã¢ããªã±ã¼ã·ã§ã³ãä½ããªãRailsãã¨ãã£ãã¤ã¡ã¼ã¸ãæããã¦ããæ¹ãå¤ãã£ãã¨æãã¾ããå®éã«Webã¢ããªã±ã¼ã·ã§ã³ãä½ã£ãããRubyã«è§¦ããããããã£ãããRailsã ã£ãã¨ããæ¹ãå¤ãã§ãããã ãããæè¿ã¯ãRubyã®Webã¢ãã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã¨ä¸å£ã«è¨ã£ã¦ããé常ã«ç°¡åã«ã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã¦
åç1â楽天ãã¯ããã¸ã¼ã«ã³ãã¡ã¬ã³ã¹ã§ã½ã¼ã¹ã³ã¼ãå ¬éãçºè¡¨ããROMAã®éçºè 西澤ç¡ææ°ï¼å·¦ï¼ã¨ãRubyã®éçºè ã§æ¥½å¤©æè¡ç 究æãã§ãã¼ã®ã¾ã¤ãã¨ããã²ãæ°ï¼å³ï¼ 楽天ã¯2009å¹´10æ24æ¥ãå社ãç¬èªéçºããåæ£ãã¼ã»ããªã¥ã¼åãã¼ã¿ã¹ãã¢ãROMAãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã¨ã¢ã¨ãã¦å ¬éãããROMAã¯ã¹ã±ã¼ã«ã¢ã¦ãã容æã§ãèé害æ§ã®é«ããã¼ã¿ã¹ãã¢ãã楽天å¸å ´ãã¨ã楽天ãã©ãã«ãã§ãã¦ã¼ã¶ã¼ã«ããé²è¦§å±¥æ´ã®ä¿åã«ROMAã使ç¨ãã¦ãããåæ¥ã«éå¬ããã楽天ãã¯ããã¸ã¼ã«ã³ãã¡ã¬ã³ã¹ãã«åããã¦ããgithubãã§ã½ã¼ã¹ã³ã¼ããå ¬éããã ROMAã¯ã楽天æè¡ç 究æãã§ãã¼ã®ã¾ã¤ãã¨ããã²ãæ°ï¼ããã°ã©ãã³ã°è¨èªãRubyãã®éçºè ï¼ã¨ååãã¦ã2007å¹´ããéçºãã¦ããåæ£ãã¼ã»ããªã¥ã¼åãã¼ã¿ã¹ãã¢ã§ããï¼åç1ï¼ãRubyã使ã£ã大è¦æ¨¡ã·ã¹ãã ãå®ç¾ããããã®åæ£å¦
Ruby ã®ãµã³ãã«ããã°ã©ã ãè¦ã¤ãã¾ãããã ãµã³ãã«ããã°ã©ã ã¯èªç±ã«ä½¿ç¨ãããã¨ãã§ãã¾ãã(詳ãã㯠ãã¡ã) ä¾: Array#delete Hash Masaru(âã¾ããâãã)ã¯ã Ruby ã®ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«ãèªãã ã¦ã¼ã¶ãã ãããå°ããµã³ãã«ãå¤ããã°ããã®ã«ãã¨ãã ããã®ã¡ã½ããã§ãããªãã¨ãã§ããã®ã«ãã¨æã£ãã¨ãã«ã ã¦ã¼ã¶èªèº«ã§ãµã³ãã«ããã°ã©ã ãç»é²ã§ããããã«ããããã«éçºããã·ã¹ãã ãå©ç¨ããã Ruby ã®ãµã³ãã«ããã°ã©ã ãç»é²ãé²è¦§ãããããã®ãµã¤ãã§ãã String#* / yasuda-h at netlab dot jp åãæååãè¤æ°ä¸¦ã¹ã¦è¡¨ç¤ºããã 47pt | 2008-08-23 02:27:19 String#% / yasuda-h at netlab dot jp æ°å¤ã§æååæ°ãæå®ããåºåãããå 容ã®æ´å½¢ã
ãpng ã®ãã©ã¼ããã㯠gif ã«æ¯ã¹ã¦é£ããããªã©ã¨èãããã¨ãããã¾ããããzlib ã使ããå¦çç³»ãªããç°¡å㪠png ç»åã¯ããããç°¡åã« (ãããæ¼ç®ãªã©ä¸è¦ã§) ä½ããã¿ããã§ãã 2015/03/12追è¨ï¼ãã®è¨äºã¯åãªãç¥ç好å¥å¿ã§èªå png çæãã¦ããã«éãã¾ããã以ä¸ã®ãµã³ãã«ã³ã¼ãããã¢ã«éããªãã®ã§ãå®ç¨ç®çã§ä½¿ããã¨ã¯ãããããã¾ãããRuby ã§ãã¿ãã¼ã¿ã® png åãããã人㯠chunky_png ãã綺éºãªçµµãæ¸ããã人㯠rcairo ã使ãã¨ããã¨æãã¾ãã ã¾ãã¯ãµã³ãã«ã³ã¼ã é»ãã赤ã¸ã®ã°ã©ãã¼ã·ã§ã³ç»åãä½ãããã°ã©ã ã # coding: UTF-8 require "zlib" width, height = 100, 20 depth, color_type = 8, 2 # ã°ã©ãã¼ã·ã§ã³ã®ãã¿ãã¼ã¿ line = (0...
Perl ã§ã® print debug ã®æ¹æ³ã®ç´¹ä»ããã¼ã (?)ã ã£ãã®ã§ãèªåãããè¡ã£ã¦ã Ruby ã§ã® debug æ¹æ³7ã¤ã«ã¤ãã¦æ¸ãã¦ã¿ã¾ãã p ãåãã®äººãå¤ã Kernel#p ã¡ã½ãããããã使ãã¨ãªãã¸ã§ã¯ãã®å 容ãè¦ãããå½¢ã§åºåãã¦ããã¾ãã >> p ({:foobar => :baz}) {:foobar=>:baz}Object#inspect ã使ãã¨ãp ã§åºåããã¨ãã¨åãæååã String ã¨ãã¦åå¾ã§ãã¾ãã >> puts ({:foobar => :baz}).inspect {:foobar=>:baz}åå¿è ã®é ãã® p ã§ã®åºåã使ãæ¹æ³ãããããªãã¦å°ã£ãè¨æ¶ãâ¦ã pp pp ã¨ããã©ã¤ãã©ãªã使ãã¨ãp ãããããè¦ãããå½¢å¼ã§åºåãã¦ããã¾ãããã¨ãã° >> a = Array.new(10) { {:foobar => :
第40åRVMï¼Ruby Version Managerï¼ã«ããç°å¢æ§ç¯ï¼2ï¼ ä¸æçé 2010-04-27
PDFãä½æããã©ã¤ãã©ãªã¯æ°å¤ãåå¨ãããWebã·ã¹ãã ã§ãã£ã¦ãããã¶ãæ軽ã«ã¯ãªã£ã¦ãããã ãããã³ãã¬ã¼ãã®ã¡ã³ããã³ã¹æ§ã®è¯ãã¨ä½¿ãåæã®è¯ããå ¼ãåããPDFä½æã©ã¤ãã©ãªã¨ãªãã¨ã¾ã ã¾ã æ°ã¯å°ãªãã®ãå®æ ã ã GhostScriptã使ã£ãPDFä½æã©ã¤ãã©ãª Railsãã¯ããã¨ããRubyã«ããPDFåºåãè¡ããªãã°ãRGhostã使ãã®ãè¯ãããã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯RGhostãPDFãç»åãçæããRubyã©ã¤ãã©ãªã ã RGhostã¯RubyGemsããã¤ã³ã¹ãã¼ã«ã§ããã©ã¤ãã©ãªã§ãã¹ã¯ãªããããPDFãçæããä»ãPostScriptãPNGãTIFãJPEGã¨ãã£ãç»åã¸ã®å¤æãã§ããããªãã¸ã§ã¯ãæåãããå¤ã®åãè¾¼ã¿ã«ãã£ã¦PDFãçæã§ããã®ã§ã使ãåæã¯è¯ãããã ã EPSããã³ãã¬ã¼ãã«ããPDFçæãå¯è½ TrueTyp
An easy-to-use Ruby web spider framework What is it? Anemone is a Ruby library that makes it quick and painless to write programs that spider a website. It provides a simple DSL for performing actions on every page of a site, skipping certain URLs, and calculating the shortest path to a given page on a site. The multi-threaded design makes Anemone fast. The API makes it simple. And the expressive
ãç¥ãã
é害
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}