<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Jason Seifer - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-b6c91aa1" type="application/json"/><link>http://jasonseifer.disqus.com/</link><description></description><language>en</language><lastBuildDate>Thu, 05 Nov 2009 11:43:45 -0000</lastBuildDate><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-21945919</link><description>Great article. Only I would use an unless statement, rather than if and a boolean negation operator. more ruby like and more readable IMHO.&lt;br&gt;&lt;br&gt;i.e., &lt;br&gt;&lt;br&gt;unless mail.to.nil?&lt;br&gt;  BEANSTALK = Beanstalk::Pool.new(['127.0.0.1:11300'])&lt;br&gt;  …&lt;br&gt;end</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">twitter-2887911</dc:creator><pubDate>Thu, 05 Nov 2009 11:43:45 -0000</pubDate></item><item><title>Re: 32 Rack Resources to Get You Started</title><link>http://jasonseifer.com/2009/04/08/32-rack-resources-to-get-you-started#comment-21920795</link><description>I subscribed to your blog when is the next post&lt;br&gt;&lt;br&gt;Have a nice day&lt;br&gt;jenny glab&lt;br&gt;______________________________________________</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cristna34214</dc:creator><pubDate>Thu, 05 Nov 2009 00:55:52 -0000</pubDate></item><item><title>Re: Using the Rails logger outside of models and controllers</title><link>http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers#comment-20111765</link><description>Thanks, Jason, it really works.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ki</dc:creator><pubDate>Thu, 15 Oct 2009 07:04:56 -0000</pubDate></item><item><title>Re: 32 Rack Resources to Get You Started</title><link>http://jasonseifer.com/2009/04/08/32-rack-resources-to-get-you-started#comment-19657738</link><description>There's a Rack coding contest starting now if you want to enter. It's at &lt;a href="http://www.coderack.org" rel="nofollow"&gt;http://www.coderack.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;Some great prizes and it promises to be a lot of fun.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pklipp</dc:creator><pubDate>Fri, 09 Oct 2009 08:34:18 -0000</pubDate></item><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-17390335</link><description>I thought the mail_receiver.rb file will be lauched for each email received and then will stick the email in the queue. I realize that it does not do much but it is creating a ruby process and letting it exit for each email. Is that a high overhead on a system?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phegaro</dc:creator><pubDate>Fri, 25 Sep 2009 14:37:24 -0000</pubDate></item><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-17369607</link><description>Doing it this way specifically avoids spinning up a new process each time as you're running it as a daemon.  You wind up having one process running constantly that processes each one as they come in.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jseifer</dc:creator><pubDate>Fri, 25 Sep 2009 07:43:57 -0000</pubDate></item><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-17360937</link><description>Some of the other information that i have read talks about how doing it this way means that a new ruby process is started and killed for each email that comes into the system. According to the math above that would mean that you have about 833 processes being created/deleted per minute on the server. Are you guys having issues with that model? &lt;br&gt;&lt;br&gt;It seems the polling model avoids this but not sure if the tradeoff for less processes is worth the loss in responsiveness and can we just poll more often to get rid of the issue? Like once ever minute?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phegaro</dc:creator><pubDate>Fri, 25 Sep 2009 03:40:10 -0000</pubDate></item><item><title>Re: Using the Rails logger outside of models and controllers</title><link>http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers#comment-16395620</link><description>You can also use the constant RAILS_DEFAULT_LOGGER to get the same thing.&lt;br&gt;In gems/rails-2.3.2/lib/initializer.rb:&lt;br&gt;=====================&lt;br&gt;module Rails&lt;br&gt;    def logger&lt;br&gt;      if defined?(RAILS_DEFAULT_LOGGER)&lt;br&gt;        RAILS_DEFAULT_LOGGER&lt;br&gt;      else&lt;br&gt;        nil&lt;br&gt;      end&lt;br&gt;    end&lt;br&gt;end&lt;br&gt;=================&lt;br&gt;That way you can easily set the constant (ex: in testing) without having to stub and mock Rails and #logger (in case you don't have access to them for some reason...).&lt;br&gt;&lt;br&gt;But in any case, very good tip! I always used the constant, glad to know there's another way.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Grant</dc:creator><pubDate>Thu, 10 Sep 2009 20:08:57 -0000</pubDate></item><item><title>Re: Using the Rails logger outside of models and controllers</title><link>http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers#comment-15051263</link><description>Thanks for that Jason, it surely did.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cndevelopment</dc:creator><pubDate>Wed, 19 Aug 2009 06:59:11 -0000</pubDate></item><item><title>Re: Using the Rails logger outside of models and controllers</title><link>http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers#comment-14787926</link><description>Good one!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">raghunadh</dc:creator><pubDate>Thu, 13 Aug 2009 12:37:06 -0000</pubDate></item><item><title>Re: Using the Rails logger outside of models and controllers</title><link>http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers#comment-14787335</link><description>Nice tip... Thx....&lt;br&gt;&lt;br&gt;Will it work in the rake tasks? I hope it should.....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">karunakar</dc:creator><pubDate>Thu, 13 Aug 2009 12:24:53 -0000</pubDate></item><item><title>Re: Using the Rails logger outside of models and controllers</title><link>http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers#comment-14590087</link><description>It helped me*. I'd even do a commercial where I give one of those (paid) testimonials about it. "Jason Seifer's Rails logger did the trick for me!" Something like that. We'd sell millions. &lt;br&gt;&lt;br&gt;*I don't know what any of this means :(</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Hawkins</dc:creator><pubDate>Mon, 10 Aug 2009 15:26:48 -0000</pubDate></item><item><title>Re: Rails metal call order</title><link>http://jasonseifer.com/2009/04/08/rails-metal-call-order#comment-14467281</link><description>What I can say  is very nice and helpful as well as informative post...really help me &lt;br&gt;&lt;br&gt;very much more!!  Thanks..&lt;br&gt;Cheers,&lt;br&gt;&lt;a href="http://gadgettechblog.com" rel="nofollow"&gt;gadgettechblog.com&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gadget_Blog</dc:creator><pubDate>Sat, 08 Aug 2009 02:52:36 -0000</pubDate></item><item><title>Re: 32 Rack Resources to Get You Started</title><link>http://jasonseifer.com/2009/04/08/32-rack-resources-to-get-you-started#comment-13189423</link><description>Well, you got me on this one. I came in on a rack rail keyword search.  I can say I learned something new reading this. I am pretty good at advising people on the correct server rack to use with there hardware. If I can be of help to anyone, let me know.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Hunt</dc:creator><pubDate>Thu, 23 Jul 2009 00:02:37 -0000</pubDate></item><item><title>Re: Hpricot and utf-8</title><link>http://jasonseifer.com/2008/03/18/hpricot-and-utf-8#comment-12798813</link><description>You are ma saviour. Thanks a lot.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Albert</dc:creator><pubDate>Thu, 16 Jul 2009 23:49:15 -0000</pubDate></item><item><title>Re: Mini DisplayPort to Dual Link DVI Adapter Fix (Temporary)</title><link>http://jasonseifer.com/2009/01/09/mini-displayport-to-dual-link-dvi-adapter-fix-temporary#comment-12713128</link><description>Every thing works great. I get the native resolution on my 30" Cinema HD.&lt;br&gt;&lt;br&gt;Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michael180</dc:creator><pubDate>Wed, 15 Jul 2009 16:23:59 -0000</pubDate></item><item><title>Re: Mini DisplayPort to Dual Link DVI Adapter Fix (Temporary)</title><link>http://jasonseifer.com/2009/01/09/mini-displayport-to-dual-link-dvi-adapter-fix-temporary#comment-12712588</link><description>Are you sure you have the dual link dvi adapter?  What kind of message does it give you?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jseifer</dc:creator><pubDate>Wed, 15 Jul 2009 16:09:10 -0000</pubDate></item><item><title>Re: Mini DisplayPort to Dual Link DVI Adapter Fix (Temporary)</title><link>http://jasonseifer.com/2009/01/09/mini-displayport-to-dual-link-dvi-adapter-fix-temporary#comment-12654642</link><description>My works okay, but I can't get my 30" Cinema Display to display in it's native resolution.&lt;br&gt;&lt;br&gt;Any suggestions?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michael180</dc:creator><pubDate>Tue, 14 Jul 2009 18:15:36 -0000</pubDate></item><item><title>Re: Offline Gem Server RDocs</title><link>http://jasonseifer.com/2009/02/22/offline-gem-server-rdocs#comment-11641730</link><description>It doesn't indeed [hanna doesn't]&lt;br&gt;&lt;br&gt;Also note here's a bdoc that has links to external url's, too: &lt;a href="http://github.com/rogerdpack/bdoc/tree/master" rel="nofollow"&gt;http://github.com/rogerdpack/bdoc/tree/master&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rogerdpack</dc:creator><pubDate>Tue, 23 Jun 2009 16:32:31 -0000</pubDate></item><item><title>Re: Offline Gem Server RDocs</title><link>http://jasonseifer.com/2009/02/22/offline-gem-server-rdocs#comment-10930440</link><description>does it work with 2.4.3?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">roger</dc:creator><pubDate>Mon, 15 Jun 2009 10:16:44 -0000</pubDate></item><item><title>Re: Mini DisplayPort to Dual Link DVI Adapter Fix (Temporary)</title><link>http://jasonseifer.com/2009/01/09/mini-displayport-to-dual-link-dvi-adapter-fix-temporary#comment-9069209</link><description>I returned my adapter to Apple, the replacement doesn't have the same problem...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jhill</dc:creator><pubDate>Wed, 06 May 2009 16:32:51 -0000</pubDate></item><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-8640535</link><description>how do you guys deal with stripping the quoted original message out of the reply?&lt;br&gt;in one of my apps users can reply to message notifications by e-mail and the mail processor parses out their comments and posts them in the thread. we've taken to writing a new regexp every time we come across a new e-mail client and falling back on cutting everything after something like "=== Post your comments above this line ===". any better ideas?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">morgancurrie</dc:creator><pubDate>Fri, 24 Apr 2009 03:36:06 -0000</pubDate></item><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-8640516</link><description>Piping emails to a ruby process can present some scaling issues.  Each email is basically another ruby process that loads rubygems, tmail, mms2r, etc.  It's probably better to just have postfix dump emails to a maildir and have tmail read them in a little ruby daemon: &lt;a href="http://tmail.rubyforge.org/rdoc/classes/TMail/Maildir.html" rel="nofollow"&gt;http://tmail.rubyforge.org/rdoc/classes/TMail/M...&lt;/a&gt; .  I handled all of our email processing fine with ruby pipes for awhile.  But when I moved to our current host, they were quick to suggest using a maildir.&lt;br&gt;&lt;br&gt;I didn't know about mms2r, but I'll take a look at that.  I think I parse the mail parts manually with tmail right now, blah :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">technoweenie</dc:creator><pubDate>Fri, 24 Apr 2009 03:33:55 -0000</pubDate></item><item><title>Re: Receiving Email with Rails</title><link>http://jasonseifer.com/2009/04/24/receving-email-with-rails#comment-8640331</link><description>hey jason - also check out Astrotrain on github. it receives e-mail and issues xmpp or http in response. blatant plug for my employer but it's what enables Tender to turn e-mails into support discussions. like how Tripit turns e-mails into itineraries automagically.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">giles bowkett</dc:creator><pubDate>Fri, 24 Apr 2009 03:14:59 -0000</pubDate></item><item><title>Re: Offline Gem Server RDocs</title><link>http://jasonseifer.com/2009/02/22/offline-gem-server-rdocs#comment-8630859</link><description>Jason,&lt;br&gt;&lt;br&gt;Thank you very much. I really needed the local documentation and find all the steps ready here :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcos Oliveira</dc:creator><pubDate>Thu, 23 Apr 2009 19:30:57 -0000</pubDate></item></channel></rss>