<?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 ngng</title><link>http://disqus.com/by/ngng/</link><description></description><atom:link href="http://disqus.com/ngng/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 28 Jun 2010 14:07:00 -0000</lastBuildDate><item><title>Re: Dynamically set a domain for a Rails asset host</title><link>http://jonathanng.com/ruby-on-rails/dynamically-set-a-domain-for-a-rails-asset-host/#comment-58985450</link><description>&lt;p&gt;Then spend a little extra time to make it work...the following is my production code.&lt;/p&gt;&lt;p&gt;def find_asset_host&lt;br&gt;  if APP_CONFIG['use_asset_servers'] == true&lt;br&gt;    ActionController::Base.asset_host = &lt;a href="http://Proc.new" rel="nofollow noopener" target="_blank" title="Proc.new"&gt;Proc.new&lt;/a&gt; { |source|&lt;br&gt;        asset_hosts = %w{icarus hades dionysus apollo zeus aphrodite ares poseidon}&lt;/p&gt;&lt;p&gt;        # disable asset host&lt;br&gt;        if is_development?&lt;br&gt;          ""&lt;br&gt;        else&lt;br&gt;          if source.starts_with?('/content')&lt;br&gt;            "http://#{asset_hosts[rand(8)]}.#{@site.domain}"&lt;br&gt;          else&lt;br&gt;            "http://assets.#{@site.domain}"&lt;br&gt;          end&lt;br&gt;        end&lt;br&gt;      } &lt;br&gt;  end&lt;br&gt;end&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Mon, 28 Jun 2010 14:07:00 -0000</pubDate></item><item><title>Re: 18&amp;#215;10 Volk TE37s</title><link>http://projectng.com/brakes/18x10-volk-te37s#comment-23491252</link><description>&lt;p&gt;Through achtuning.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Wed, 18 Nov 2009 19:01:23 -0000</pubDate></item><item><title>Re: Watermarking images paperclip&amp;#8217;s post-processor</title><link>http://jonathansng.com/ruby-on-rails/watermarking-images-paperclips-post-processor/#comment-14753442</link><description>&lt;p&gt;If there is no image, it won't process. It should also only process the original, so it shouldn't matter.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Wed, 12 Aug 2009 19:32:38 -0000</pubDate></item><item><title>Re: Dynamically set a domain for a Rails asset host</title><link>http://jonathansng.com/ruby-on-rails/dynamically-set-a-domain-for-a-rails-asset-host/#comment-7988942</link><description>&lt;p&gt;You set your hosts in the hash.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Wed, 08 Apr 2009 17:42:03 -0000</pubDate></item><item><title>Re: PHP vs Rails | ruby on rails blog</title><link>http://www.jonathansng.com/technology/php-vs-rails/#comment-7383787</link><description>&lt;p&gt;That went way over your head.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Fri, 20 Mar 2009 17:01:27 -0000</pubDate></item><item><title>Re: MySQL gem on OSX Leopard 10.5.x</title><link>http://www.jonathansng.com/ruby-on-rails/mysql-gem-on-osx-leopard-105x/#comment-7268920</link><description>&lt;p&gt;I'm on an Intel&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Mon, 16 Mar 2009 17:45:17 -0000</pubDate></item><item><title>Re: rake db:migrate for production databases</title><link>http://jonathansng.com/ruby-on-rails/rake-dbmigrate-for-production-databases/#comment-6832680</link><description>&lt;p&gt;Thanks for that, that's saved me some undue finger stress :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Tue, 03 Mar 2009 02:24:37 -0000</pubDate></item><item><title>Re: Paperclip doesn&amp;#8217;t accept multiple files in Rails 2.3</title><link>http://www.jonathansng.com/ruby-on-rails/paperclip-doesnt-accept-multiple-files-in-rails-23/#comment-6369994</link><description>&lt;p&gt;I didn't doubt it! This little bug had me scratching my head. Does the Rails 2.3 RC also cause problems where attachments are overwritten even if no file has been selected?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Wed, 18 Feb 2009 03:55:59 -0000</pubDate></item><item><title>Re: A look at the new B8 Audi A4</title><link>http://achtuning.com/site-news/a-look-at-the-new-b8-audi-a4/#comment-1914512</link><description>&lt;p&gt;I don't like it...it looks like BMWs 3 series mated with a Toyota Camry...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ngng</dc:creator><pubDate>Fri, 29 Aug 2008 13:17:42 -0000</pubDate></item></channel></rss>