<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Friends of maraby</title><link>http://disqus.com/by/maraby/</link><description></description><atom:link href="http://disqus.com/maraby/friends.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 03 Oct 2011 11:18:02 -0000</lastBuildDate><item><title>Re: Recursive Reverse Array in Ruby — Andy Lindeman</title><link>(u'http://www.andylindeman.com/recursive-reverse/',%20112856661L)#comment-112856661</link><description>&lt;p&gt;Thanks Matt!  I knew about monkey patching, but for some reason didn't consider that it might make this code example simpler ... but you're right that it definitely does.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Thu, 16 Dec 2010 08:02:48 -0000</pubDate></item><item><title>Re: Recursive Reverse Array in Ruby — Andy Lindeman</title><link>(u'http://www.andylindeman.com/recursive-reverse/',%20112858206L)#comment-112858206</link><description>&lt;p&gt;... tell that to ActiveSupport, eh? :)  I guess you were at RubyConf so you probably heard it straight from the horse's mouth, but refinements look pretty neat: &lt;a href="http://timeless.judofyr.net/refinements-in-ruby" rel="nofollow noopener" target="_blank" title="http://timeless.judofyr.net/refinements-in-ruby"&gt;http://timeless.judofyr.net...&lt;/a&gt; &lt;a href="http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/" rel="nofollow noopener" target="_blank" title="http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/"&gt;http://yehudakatz.com/2010/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Thu, 16 Dec 2010 08:07:55 -0000</pubDate></item><item><title>Re: http://wavded.tumblr.com/post/2177595595</title><link>(u'http://wavded.tumblr.com/post/2177595595',%20114644052L)#comment-114644052</link><description>&lt;p&gt;Really enjoyed these.  Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Sat, 18 Dec 2010 23:35:51 -0000</pubDate></item><item><title>Re: Learn HTML5, JavaScript and CSS With Mozilla&amp;#8217;s Free &amp;#8220;School of Webcraft&amp;#8221;</title><link>(u'http://mashable.com/2010/12/17/learn-html5-javascript-and-css-with-mozillas-free-school-of-webcraft/',%20115003985L)#comment-115003985</link><description>&lt;p&gt;I just proposed that very course.  Keep your year to the ground in early January :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Sun, 19 Dec 2010 21:04:38 -0000</pubDate></item><item><title>Re: The Life of a Radar - Blog of Ryan Bigg</title><link>(u'http://ryanbigg.com/2010/12/converting-from-wordpress-to-jekyll',%20119932119L)#comment-119932119</link><description>&lt;p&gt;Good stuff!  I've actually decided to host my jekyll-based blog on Github Pages ( &lt;a href="http://alindeman.github.com" rel="nofollow noopener" target="_blank" title="http://alindeman.github.com"&gt;http://alindeman.github.com&lt;/a&gt; ).  Github Pages runs everything through jekyll and automatically regenerates my site when I push to master at &lt;a href="https://github.com/alindeman/alindeman.github.com" rel="nofollow noopener" target="_blank" title="https://github.com/alindeman/alindeman.github.com"&gt;https://github.com/alindema...&lt;/a&gt;  $0 hosting bill and 0 things for me to maintain.&lt;/p&gt;&lt;p&gt;I lose a bit of control, but I don't expect Github to go under any time soon.&lt;/p&gt;&lt;p&gt;More info: &lt;a href="http://pages.github.com/" rel="nofollow noopener" target="_blank" title="http://pages.github.com/"&gt;http://pages.github.com/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;BTW, you're oh so very close to validating as HTML5: &lt;a href="http://validator.w3.org/check?uri=http%3A%2F%2Fryanbigg.com%2F&amp;amp;charset=%28detect+automatically%29&amp;amp;doctype=Inline&amp;amp;group=0" rel="nofollow noopener" target="_blank" title="http://validator.w3.org/check?uri=http%3A%2F%2Fryanbigg.com%2F&amp;amp;charset=%28detect+automatically%29&amp;amp;doctype=Inline&amp;amp;group=0"&gt;http://validator.w3.org/che...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Mon, 27 Dec 2010 17:25:48 -0000</pubDate></item><item><title>Re: Andy Lindeman — P2PU: Introduction to Ruby and Rails</title><link>(u'http://www.andylindeman.com/p2pu-intro-to-ruby-and-rails/',%20128774510L)#comment-128774510</link><description>&lt;p&gt;If you've had no experience, I recommend you not sign up, right.  While we'll start with the basics in Ruby syntax, we will not spend any time on the basics of programming itself.  If you haven't programmed before, I think you'll likely get lost :-/&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Thu, 13 Jan 2011 15:27:55 -0000</pubDate></item><item><title>Re: Iterating Through Time With Rails — Andy Lindeman</title><link>(u'http://www.andylindeman.com/iterate-through-time-with-rails/',%20132634431L)#comment-132634431</link><description>&lt;p&gt;Great catch.  I updated the post with a possible solution, albeit one that doesn't look nearly as nice.  Thoughts?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Fri, 21 Jan 2011 18:22:43 -0000</pubDate></item><item><title>Re: Iterating Through Time With Rails — Andy Lindeman</title><link>(u'http://www.andylindeman.com/iterate-through-time-with-rails/',%20132918082L)#comment-132918082</link><description>&lt;p&gt;Well, there are a couple problems with that:&lt;/p&gt;&lt;p&gt;1) Doesn't work in Ruby 1.9&lt;br&gt;2) In Ruby 1.8, calls Time#succ 86400 times between steps (as a Time instance is not a number).  Terribly inefficient :(&lt;/p&gt;&lt;p&gt;I posted more about that here: &lt;a href="http://alindeman.github.com/2011/01/22/beware-of-ruby-syntactic-sugar.html" rel="nofollow noopener" target="_blank" title="http://alindeman.github.com/2011/01/22/beware-of-ruby-syntactic-sugar.html"&gt;http://alindeman.github.com...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Sat, 22 Jan 2011 10:49:59 -0000</pubDate></item><item><title>Re: Beware of Ruby Syntactic Sugar — Andy Lindeman</title><link>(u'http://www.andylindeman.com/beware-of-ruby-syntactic-sugar/',%20132932278L)#comment-132932278</link><description>&lt;p&gt;Touche, in this case, I like that better.  How might you approach it if you wanted to step by a different unit than in the range?  Say, from now until 5 days from now, step by hour.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Sat, 22 Jan 2011 11:34:45 -0000</pubDate></item><item><title>Re: Beware of Ruby Syntactic Sugar — Andy Lindeman</title><link>(u'http://www.andylindeman.com/beware-of-ruby-syntactic-sugar/',%20132932804L)#comment-132932804</link><description>&lt;p&gt;In general, though, the post is about not assuming that a high level language like Ruby will do what you think it will all the time.  In some cases, this can cause really bad inefficiencies.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Sat, 22 Jan 2011 11:36:36 -0000</pubDate></item><item><title>Re: Episode #144: Iterating Through Time With Rails</title><link>(u'http://ruby5.envylabs.com/episodes/147/stories/1289.html',%20134325907L)#comment-134325907</link><description>&lt;p&gt;I think it'd be best to link to the follow up post: &lt;a href="http://alindeman.github.com/2011/01/22/beware-of-ruby-syntactic-sugar.html" rel="nofollow noopener" target="_blank" title="http://alindeman.github.com/2011/01/22/beware-of-ruby-syntactic-sugar.html"&gt;http://alindeman.github.com...&lt;/a&gt; :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Tue, 25 Jan 2011 10:36:36 -0000</pubDate></item><item><title>Re: Episode #145: Snowpocalypse</title><link>(u'http://ruby5.envylabs.com/episodes/148/stories/1295.html',%20136831102L)#comment-136831102</link><description>&lt;p&gt;Happy Birthday :D&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Sat, 29 Jan 2011 15:39:08 -0000</pubDate></item><item><title>Re: Blog of Ryan Bigg - RTFM</title><link>(u'http://ryanbigg.com/2011/02/rtfm',%20137988443L)#comment-137988443</link><description>&lt;p&gt;Agreed wholeheartedly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Mon, 31 Jan 2011 22:30:27 -0000</pubDate></item><item><title>Re: Beware of Ruby Syntactic Sugar — Andy Lindeman</title><link>(u'http://www.andylindeman.com/beware-of-ruby-syntactic-sugar/',%20138237032L)#comment-138237032</link><description>&lt;p&gt;`&lt;a href="http://1.day" rel="nofollow noopener" target="_blank" title="1.day"&gt;1.day&lt;/a&gt;` creates an `ActiveSupport::Duration` instance, which proxies most methods to the underlying `Fixnum`. While `to_i` does seem to coax it into being a "real" `Fixnum`, `Range#step` still seems to use `#succ`.  The issue is more with the `Range` start and end points not being Numerics than with the step argument.&lt;/p&gt;&lt;p&gt;I didn't spend as much time as I should have tweaking this post.  In general, I just wanted to point out that some decent looking code can be really terrible for performance because of a nuance in how a 'black box' method operates on certain objects.&lt;/p&gt;&lt;p&gt;In this specific case, as argued by another commenter, it seems like `Range#step` should simply check for the existence of the `+` operator (duck typing), rather than checking for whether the arguments are specifically `Numeric` instances.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Tue, 01 Feb 2011 12:16:43 -0000</pubDate></item><item><title>Re: Remote Pair Programming — Andy Lindeman</title><link>(u'http://www.andylindeman.com/remote-pair-programming/',%20162964295L)#comment-162964295</link><description>&lt;p&gt;Sounds great: I would love to!  Shoot me an email (linked in the last sentence of the post).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Wed, 09 Mar 2011 09:12:56 -0000</pubDate></item><item><title>Re: http://pom5.tumblr.com/post/4443648476</title><link>(u'http://pom5.tumblr.com/post/4443648476',%20181004681L)#comment-181004681</link><description>&lt;p&gt;EXCELLENT&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Fri, 08 Apr 2011 13:53:34 -0000</pubDate></item><item><title>Re: http://pom5.tumblr.com/post/4581626474</title><link>(u'http://pom5.tumblr.com/post/4581626474',%20183799619L)#comment-183799619</link><description>&lt;p&gt;lol, the girls look pretty indifferent&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Wed, 13 Apr 2011 11:59:31 -0000</pubDate></item><item><title>Re: Optimistic Locking with MongoDB</title><link>(u'http://highgroove.com/articles/2011/07/06/optimistic-locking-with-mongo',%20244351225L)#comment-244351225</link><description>&lt;p&gt;Interesting!  Does this method deal with the ABA problem/nuance ( &lt;a href="http://en.wikipedia.org/wiki/ABA_problem" rel="nofollow noopener" target="_blank" title="http://en.wikipedia.org/wiki/ABA_problem"&gt;http://en.wikipedia.org/wik...&lt;/a&gt; )?&lt;/p&gt;&lt;p&gt;That is, will you get an error if a document is modified, but changed back to its original values before another process saves it?  What about if a field is added that was not in the document when you first loaded it (MongoDB is schemaless)?&lt;/p&gt;&lt;p&gt;Also, how does it bench sending every field as a search query compared to mm-optimistic_locking which uses a simple counter?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Wed, 06 Jul 2011 15:54:13 -0000</pubDate></item><item><title>Re: Optimistic Locking with MongoDB</title><link>(u'http://highgroove.com/articles/2011/07/06/optimistic-locking-with-mongo',%20244378934L)#comment-244378934</link><description>&lt;p&gt;Nice! That's a great pro/con analysis.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Wed, 06 Jul 2011 16:38:31 -0000</pubDate></item><item><title>Re: Map People</title><link>(u'http://www.thesyntaxofthings.com/map-people/',%20301121305L)#comment-301121305</link><description>&lt;p&gt;These are so neat! I will happily hang them if/when a frame happens :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Fri, 02 Sep 2011 10:11:45 -0000</pubDate></item><item><title>Re: What's The First Release That Contains This Commit? — Andy Lindeman</title><link>(u'http://www.andylindeman.com/whats-the-first-release-that-contains-this-commit/',%20308541554L)#comment-308541554</link><description>&lt;p&gt;Very nice!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Tue, 13 Sep 2011 07:33:21 -0000</pubDate></item><item><title>Re: First World Problems</title><link>(u'http://www.thesyntaxofthings.com/2011/09/first-world-problems/',%20320156250L)#comment-320156250</link><description>&lt;p&gt;:) I like how your blog is helping you reflect on life in general. And, yes, while I would enjoy anything you cook because of the "made with love" aspect, I like that you're passionate about it anyway.&lt;/p&gt;&lt;p&gt;It's definitely tough to keep everything in perspective, though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Mon, 26 Sep 2011 09:09:38 -0000</pubDate></item><item><title>Re: First World Problems</title><link>(u'http://www.thesyntaxofthings.com/2011/09/first-world-problems/',%20320158213L)#comment-320158213</link><description>&lt;p&gt;Hahahahaha&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Mon, 26 Sep 2011 09:13:05 -0000</pubDate></item><item><title>Re: Testing Devise with RSpec Request Specs and Capybara — Andy Lindeman</title><link>(u'http://www.andylindeman.com/testing-devise-with-rspec-request-specs-and-capybara/',%20321786225L)#comment-321786225</link><description>&lt;p&gt;These are great points. It likely makes sense to write a follow-on post with more best practices (or even just "some practices to think about" like your /blog/posts?username=foo example) as opposed to just a quickstart like I was intending here.&lt;/p&gt;&lt;p&gt;Thanks Justin.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Wed, 28 Sep 2011 10:54:00 -0000</pubDate></item><item><title>Re: Callbacks and Background Jobs — Andy Lindeman</title><link>(u'http://www.andylindeman.com/after-save-and-background-jobs/',%20325593165L)#comment-325593165</link><description>&lt;p&gt;Great point about `destroyed?`. I missed this in the article and will update: thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Lindeman</dc:creator><pubDate>Mon, 03 Oct 2011 11:18:02 -0000</pubDate></item></channel></rss>