<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for njclarke</title><link>http://disqus.com/by/njclarke/</link><description></description><atom:link href="http://disqus.com/njclarke/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 14 Feb 2012 15:10:18 -0000</lastBuildDate><item><title>Re: Sadly, You Are Probably Several Years Ahead of the Web 2.0 Bullshit Generator - SocialTimes.com</title><link>http://www.adweek.com/socialtimes/sadly-you-are-probably-several-years-ahead-of-the-web-2-0-bullshit-generator/90540#comment-439197316</link><description>&lt;p&gt;The Web 2.0 bullshit generator is pretty much passé. This one is way more up-to-date: &lt;a href="http://bsgen30.com/" rel="nofollow noopener" target="_blank" title="http://bsgen30.com/"&gt;http://bsgen30.com/&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Tue, 14 Feb 2012 15:10:18 -0000</pubDate></item><item><title>Re: Why You Should Be Using Virtualisation</title><link>http://morethanseven.net/2010/11/04/Why-you-should-be-using-virtualisation.html#comment-94264331</link><description>&lt;p&gt;Are you referring to InnoDB? Oracle has not changed the MySQL community edition, only the commercial version. You are only affected by the change if you are distributing embedded MySQL code in your app without providing source. The breathless hype yesterday on Hacker News about Oracle "nerfing" MySQL was just FUD. Unless you are buying a commercial license for MySQL you are in no way shape or form affected by what Oracle has done to MySQL.&lt;/p&gt;&lt;p&gt;Virtual Box, like the MySQL community edition, is released under the GPL. So Oracle is pretty limited in what they can do to screw the project up; they could decide to make all future updates released under a commercial license, but if this happens then the GPL codebase will likely just be forked and maintained as a separate project (like is already happening with Open Office, and MySQL/Drizzle). Virtual Box is a very popular project and isn't going away any time soon!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Fri, 05 Nov 2010 15:10:32 -0000</pubDate></item><item><title>Re: I was wrong - ORDER BY RANDOM is slow - Norman Clarke</title><link>http://njclarke.com/posts/i-was-wrong-random-is-slow.html#comment-62398555</link><description>&lt;p&gt;Sure, it could certainly return empty rows; I guess you could loop until you get the number of results you expect, knowing that with a large dataset you'll almost always be looping only once.&lt;br&gt;&lt;br&gt;If caching the results is doable, then I'd prefer to just periodically cache the output of an ORDER BY RANDOM; like you said, you could randomly select 1000 ids once per hour and store them in memory, shuffle them as an array, or maybe just use them in an IN or EXISTS clause followed by another ORDER BY RANDOM. Perhaps it would be a good idea for a Rails plugin.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Thu, 15 Jul 2010 13:26:49 -0000</pubDate></item><item><title>Re: Keeping Code Aesthetics in Perspective - Norman Clarke</title><link>http://njclarke.com/posts/keeping-code-aesthetics-in-perspective.html#comment-60002304</link><description>&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Wed, 30 Jun 2010 11:51:23 -0000</pubDate></item><item><title>Re: [Off-Topic] Signing off from Locaweb - AkitaOnRails.com</title><link>http://www.akitaonrails.com/2010/03/14/off-topic-signing-off-from-locaweb#comment-39685484</link><description>&lt;p&gt;Good luck in your next endeavor, Fabio, though I'm sure you won't need it. I've always had a great deal of respect for your attitude, your work ethic and your results. Looking forward to meeting up with you again at Railsconf in a few months!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Sun, 14 Mar 2010 18:44:30 -0000</pubDate></item><item><title>Re: The 10 stages of open source project hacking - randomba.org</title><link>http://randomba.org/posts/the-10-stages-of-open-source-project-hacking#comment-12994904</link><description>&lt;p&gt;Well if you want, get to step 6 and send me your patches. :-)&lt;/p&gt;&lt;p&gt;I think the idea of tighter integration with ActiveRecord is interesting, but then again the reason I use Disqus for commenting is because I specifically don't want to have another model in my application. Disqus makes it easier to have a full-featured blog using something like Sinatra, and I think that's where its strength lies.&lt;/p&gt;&lt;p&gt;For code highlighting, you might want to look at some of the Javascript code highlighters out there, such as this one:&lt;/p&gt;&lt;p&gt;&lt;a href="http://code.google.com/p/syntaxhighlighter/" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/syntaxhighlighter/"&gt;http://code.google.com/p/sy...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I'm using that in a soon-to-be-released project and am pretty happy with it.&lt;/p&gt;&lt;p&gt;Thanks for the comment and enjoy a Berliner Weisse for me. :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Tue, 21 Jul 2009 09:25:24 -0000</pubDate></item><item><title>Re: To "I Hate Seattle"</title><link>http://ihateseattle.com/posts/to-i-hate-seattle#comment-12040237</link><description>&lt;p&gt;Just a couple of guys from Seattle. Well in my case, formerly from Seattle since I now live in Buenos Aires where it rains a lot less. One day we saw the domain name "&lt;a href="http://ihateseattle.com" rel="nofollow noopener" target="_blank" title="ihateseattle.com"&gt;ihateseattle.com&lt;/a&gt;" was available and decided to just put a quick site up and see if anyone wanted to use it. Initially we intended it as somewhat of a joke and I've been a little surprised to see the passion of some of the comments posted here.&lt;/p&gt;&lt;p&gt;But our idea has always been, more or less complete freedom for people to post whatever they want (except for anything illegal). We don't interfere editorially because I think it would ruin the site. And I'm glad to see that some people have found it as an outlet for real frustration and pain, as well as a good laugh once in a while.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Thu, 02 Jul 2009 13:54:32 -0000</pubDate></item><item><title>Re: Why I quit my job to work on open source - randomba.org</title><link>http://randomba.org/posts/why-i-quit-my-job-to-work-on-open-source#comment-11984597</link><description>&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Wed, 01 Jul 2009 13:01:29 -0000</pubDate></item><item><title>Re: My idea for installing gems from Github - randomba.org</title><link>http://randomba.org/posts/my-idea-for-installing-gems-from-github#comment-10518917</link><description>&lt;p&gt;I'm not sure it's so important what directories the actual gems are installed into, I'm more concerned about the user interface of the "gem" command. Following the steps I outlined above you could continue to store the gems locally just as they are now (i.e., with the username), but simply allow "gem install mygem" to either automatically install an intelligent default, or ask which one you mean.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Fri, 05 Jun 2009 09:45:01 -0000</pubDate></item><item><title>Re: friendly_id Tutorial - randomba.org</title><link>http://randomba.org/posts/friendly_id-tutorial#comment-8198841</link><description>&lt;p&gt;In this case I think what you need to do is consider the registration a separate model/resource and not just a join table. Rather than using has_and_belongs_to_many, you would make a registration model and  use has_many_through.&lt;/p&gt;&lt;p&gt;Here's a sample pastie:&lt;/p&gt;&lt;p&gt;&lt;a href="http://pastie.org/446180" rel="nofollow noopener" target="_blank" title="http://pastie.org/446180"&gt;http://pastie.org/446180&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Tue, 14 Apr 2009 12:10:14 -0000</pubDate></item><item><title>Re: friendly_id Tutorial - randomba.org</title><link>http://randomba.org/posts/friendly_id-tutorial#comment-8196949</link><description>&lt;p&gt;You haven't really made it clear what you want to have in the friendly_id. Maybe you can show me what you want the URL to look like?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Tue, 14 Apr 2009 11:06:47 -0000</pubDate></item><item><title>Re: friendly_id Tutorial - randomba.org</title><link>http://randomba.org/posts/friendly_id-tutorial#comment-4273019</link><description>&lt;p&gt;Sure. In the first example your State and Event models would use friendly_id, and you would just use Rails' normal routing to set up the route with the event embedded under the state.&lt;/p&gt;&lt;p&gt;To get links like in your second example, you can add a method to your Event model to build a slug that includes the event's state. Take a look &lt;a href="http://randomba.org/posts/friendly_id-tip-use-a-method-in-place-of-a-column-for-slug-generation" rel="nofollow noopener" target="_blank" title="http://randomba.org/posts/friendly_id-tip-use-a-method-in-place-of-a-column-for-slug-generation"&gt;at this tip&lt;/a&gt; for more info on how to do that:&lt;/p&gt;&lt;p&gt;&lt;a href="http://randomba.org/posts/friendly_id-tip-use-a-method-in-place-of-a-column-for-slug-generation" rel="nofollow noopener" target="_blank" title="http://randomba.org/posts/friendly_id-tip-use-a-method-in-place-of-a-column-for-slug-generation"&gt;http://randomba.org/posts/f...&lt;/a&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Mon, 08 Dec 2008 15:58:12 -0000</pubDate></item><item><title>Re: Ruby library for Disqus widgets</title><link>https://disqus.com/home/discussion/disqus/ruby_library_for_disqus_widgets/#comment-1877997</link><description>&lt;p&gt;Awesome. I'll look that over and see about adding in some support for it as soon as I can.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Wed, 27 Aug 2008 17:10:10 -0000</pubDate></item><item><title>Re: Ruby library for Disqus widgets</title><link>https://disqus.com/home/discussion/disqus/ruby_library_for_disqus_widgets/#comment-1877535</link><description>&lt;p&gt;Thanks, Daniel. When the API comes out I'll be pretty interested in adding support for it too. I'm using it on a few sites of mine now and so I have a pretty big vested interest in maintaining it. :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">njclarke</dc:creator><pubDate>Wed, 27 Aug 2008 16:39:08 -0000</pubDate></item></channel></rss>