<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUcGSHg4cCp7ImA9WhZQFE4.&quot;"><id>tag:blogger.com,1999:blog-29431631887878124</id><updated>2011-04-21T18:50:29.638-07:00</updated><category term="ruby" /><category term="indonesia" /><title>from monkeying to grokking</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://grokmonkey.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://grokmonkey.blogspot.com/" /><author><name>edpratomo</name><uri>http://www.blogger.com/profile/12016303829017769696</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/FromMonkeyingToGrokking" /><feedburner:info uri="frommonkeyingtogrokking" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><entry gd:etag="W/&quot;DUINRHw9eyp7ImA9WxZUFkk.&quot;"><id>tag:blogger.com,1999:blog-29431631887878124.post-3121800081069411388</id><published>2008-04-07T20:23:00.001-07:00</published><updated>2008-04-08T02:39:55.263-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-08T02:39:55.263-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="indonesia" /><title>Video Kucing Diblok Mohamad Nuh</title><content type="html">Beginilah sekarang penampakan dari &lt;a href="http://ariekusumaatmaja.wordpress.com/2008/04/05/wc-l-172-aries-random-note/trackback/"&gt;blog salah seorang teman&lt;/a&gt;, penuh dengan blank spaces.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3wqJGBgqA6A/R_rm6q4mLyI/AAAAAAAAAAU/mXmenRu6G84/s1600-h/cat-video-blocked-by-mohamad-nuh.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_3wqJGBgqA6A/R_rm6q4mLyI/AAAAAAAAAAU/mXmenRu6G84/s400/cat-video-blocked-by-mohamad-nuh.png" alt="" id="BLOGGER_PHOTO_ID_5186711816489021218" border="0" /&gt;&lt;/a&gt;Jadi ingat &lt;a href="http://republik-idiot.blogspot.com/"&gt;Republik Idiot-nya RMS&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29431631887878124-3121800081069411388?l=grokmonkey.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://grokmonkey.blogspot.com/feeds/3121800081069411388/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=29431631887878124&amp;postID=3121800081069411388" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/29431631887878124/posts/default/3121800081069411388?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/29431631887878124/posts/default/3121800081069411388?v=2" /><link rel="alternate" type="text/html" href="http://grokmonkey.blogspot.com/2008/04/video-kucing-diblok-mohamad-nuh.html" title="Video Kucing Diblok Mohamad Nuh" /><author><name>edpratomo</name><uri>http://www.blogger.com/profile/12016303829017769696</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_3wqJGBgqA6A/R_rm6q4mLyI/AAAAAAAAAAU/mXmenRu6G84/s72-c/cat-video-blocked-by-mohamad-nuh.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0AAQXg_fip7ImA9WxZUEEQ.&quot;"><id>tag:blogger.com,1999:blog-29431631887878124.post-8453243368534914781</id><published>2008-04-01T05:35:00.000-07:00</published><updated>2008-04-01T18:29:00.646-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-01T18:29:00.646-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><title>Symbolic Mode chmod Support</title><content type="html">I put my implementation of symbolic mode support for ruby's chmod on &lt;a href="http://code.google.com/p/idruby/source/browse/trunk/symbolic-mode-chmod/extensions.rb"&gt;id-ruby's googlecode svn repository&lt;/a&gt;. This uses &lt;code class="prettyprint"&gt;Regexp#global_match&lt;/code&gt; in my previous post, and handles all symbolic mode chmod cases. Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29431631887878124-8453243368534914781?l=grokmonkey.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://grokmonkey.blogspot.com/feeds/8453243368534914781/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=29431631887878124&amp;postID=8453243368534914781" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/29431631887878124/posts/default/8453243368534914781?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/29431631887878124/posts/default/8453243368534914781?v=2" /><link rel="alternate" type="text/html" href="http://grokmonkey.blogspot.com/2008/04/symbolic-mode-chmod-support.html" title="Symbolic Mode chmod Support" /><author><name>edpratomo</name><uri>http://www.blogger.com/profile/12016303829017769696</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CE8HQXo_eyp7ImA9WxZUEEg.&quot;"><id>tag:blogger.com,1999:blog-29431631887878124.post-9202210977972509262</id><published>2008-04-01T05:22:00.000-07:00</published><updated>2008-04-01T05:27:10.443-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-01T05:27:10.443-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><title>Global Match for Ruby</title><content type="html">An equivalence of Perl regular expression's /g (global match) modifier. If this doesn't make sense to you, please read perlretut manpage.&lt;br /&gt;&lt;pre&gt;&lt;code class="prettyprint"&gt;&lt;br /&gt;class Regexp&lt;br /&gt;  def global_match(str, &amp;proc)&lt;br /&gt;    retval = nil&lt;br /&gt;    loop do&lt;br /&gt;      res = str.sub(self) do |m|&lt;br /&gt;        proc.call($~) # pass MatchData obj&lt;br /&gt;        ''&lt;br /&gt;      end&lt;br /&gt;      break retval if res == str&lt;br /&gt;      str = res&lt;br /&gt;      retval ||= true&lt;br /&gt;    end&lt;br /&gt;  end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;and the cat dog house example from &lt;a href="http://perldoc.perl.org/perlretut.html"&gt;perlretut&lt;/a&gt; rewritten:&lt;br /&gt;&lt;pre&gt;&lt;code class="prettyprint"&gt;&lt;br /&gt;re = /(\w+)/&lt;br /&gt;words = []&lt;br /&gt;re.global_match("cat dog house") do |m|&lt;br /&gt;  words.push(m[0])&lt;br /&gt;end&lt;br /&gt;p words # ["cat", "dog", "house"]&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29431631887878124-9202210977972509262?l=grokmonkey.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://grokmonkey.blogspot.com/feeds/9202210977972509262/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=29431631887878124&amp;postID=9202210977972509262" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/29431631887878124/posts/default/9202210977972509262?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/29431631887878124/posts/default/9202210977972509262?v=2" /><link rel="alternate" type="text/html" href="http://grokmonkey.blogspot.com/2008/04/global-match-for-ruby.html" title="Global Match for Ruby" /><author><name>edpratomo</name><uri>http://www.blogger.com/profile/12016303829017769696</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry></feed>

