<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>e168f08 - Latest Comments in Cooler</title><link>http://e168f08.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 27 Jan 2009 11:50:59 -0000</lastBuildDate><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5582171</link><description>This sounds like a plan.&lt;br&gt;&lt;br&gt;Having been laid off mid last week, a new adventure begins. I want to use this time to retool.&lt;br&gt;&lt;br&gt;The calculus I am trying to solve is how long it will take for me to become employable in RoR. It seems to me,  6 to 18 months.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vaughanatworld</dc:creator><pubDate>Tue, 27 Jan 2009 11:50:59 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5577817</link><description>Yes, by all means. Why don't you ask some questions right here.&lt;br&gt;&lt;br&gt;Here are some brief notes on getting a Rails job:&lt;br&gt;&lt;br&gt;0. The course is good for looking for a job, but it would be a component in a whole package involving who you know, what you know, and how you grow as a developer.&lt;br&gt;&lt;br&gt;1. Who: You really should start networking by going to meetings of the Boston Ruby Group (&lt;a href="http://bostonrb.org/" rel="nofollow"&gt;http://bostonrb.org/&lt;/a&gt;). For women, e-mail Amy about her new group for Women and Ruby and Boston.&lt;br&gt;&lt;br&gt;2. What: I would advise everyone to start downloading and reading code. There are countless awesome Ruby/Rails packages you can find at RubyForge and/or Github. What you want to find are full apps. Then go over the code. Also, you may well find projects that need documentation or light fixes. You would be amazed at how many sophisticated projects have open tickets that are essentially one-line fixes. To learn how to contribute patches and fixes, Google for a screencast on using Github.&lt;br&gt;&lt;br&gt;3. Growing: You need to think of your developer status as a work in progress. Make a list of things to learn. E.g., if you've never configured a Linux system, learn by doing it. If you've never used source control (e.g., subversion), set it up. If you've never used a bug tracker, set it up. All of these tools can be useful for your personal use.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Tue, 27 Jan 2009 11:06:41 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5577221</link><description>John, can we talk about employment with RoR?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vaughanatworld</dc:creator><pubDate>Tue, 27 Jan 2009 10:59:19 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5453096</link><description>Off-topic, did anyone else rsvp to that 4-week rails class at sermo that John forwarded a few days ago?  I haven't heard anything back and was wondering if anyone knows if it's actually happening.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ana</dc:creator><pubDate>Wed, 21 Jan 2009 21:14:56 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5442140</link><description>Strange.&lt;br&gt;&lt;br&gt;The e168:submit task uses the standard rake package target, so it should be grabbing the Rakefile normally.&lt;br&gt;&lt;br&gt;I just verified the e168:submit task, but I'm on a Mac.&lt;br&gt;&lt;br&gt;Just ZIP up your project with any tool -- or, if you like, use the e168:submit task and zip up the Rakefile separately.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Wed, 21 Jan 2009 15:41:58 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5442150</link><description>Nothing is really coming to mind -- sorry!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Wed, 21 Jan 2009 15:41:50 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5441840</link><description>Rakefile not getting packaged?&lt;br&gt;Hi, I am trying to rake package to submit but for some reason the rakefile isn't getting packaged up.  It seems to be the only file that's missing.  The weird thing is, it's in the package directory but it's not in the .zip.  (I'm using the zip_in_ruby script that came with metricsmine)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ana</dc:creator><pubDate>Wed, 21 Jan 2009 15:27:28 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5437512</link><description>last minute cleaning-&lt;br&gt;I was making the code clean now few things don't work and I do not know why.&lt;br&gt;&lt;br&gt;My logout does not logout anymore - &lt;br&gt;Console shows that email is genereated and sent, but i never get in my inbox.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sa</dc:creator><pubDate>Wed, 21 Jan 2009 13:32:20 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5273925</link><description>Pat,&lt;br&gt;&lt;br&gt;I just sent an e-mail out on that topic. I covered some of the expectations here: &lt;a href="http://e168f08.plugh.org/assignments/final-project-tips-for-the-writeup-and-features/" rel="nofollow"&gt;http://e168f08.plugh.org/assignments/final-proj...&lt;/a&gt;&lt;br&gt;&lt;br&gt;As far as length, "what it should look like," etc.: The key is to think about the audience. The audience is a developer like yourself who must understand (1) What the app is supposed to do; and (2) how it is implemented. If you are like me, this is a high standard -- I personally need very clear and complete documentation to understand someone else's work.&lt;br&gt;&lt;br&gt;John</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Sun, 18 Jan 2009 21:15:37 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5273767</link><description>Would it be possible to get some more information about what the write up for the final project should contain, or maybe an example of what the write up should look like?  I've got my project just about done, but I'm lost on the write up.&lt;br&gt;&lt;br&gt;Thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pat</dc:creator><pubDate>Sun, 18 Jan 2009 21:00:08 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5230885</link><description>yes</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GeorgeS</dc:creator><pubDate>Fri, 16 Jan 2009 23:47:21 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5158286</link><description>Fantastic, thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ana</dc:creator><pubDate>Thu, 15 Jan 2009 22:36:38 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5157378</link><description>auto_discovery_link_tag :atom, { :controller =&amp;gt; :posts, :action =&amp;gt; :feed, :id =&amp;gt; @user.login, :format =&amp;gt; :atom } %&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kmorrison</dc:creator><pubDate>Thu, 15 Jan 2009 21:33:39 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5154682</link><description>Quick question about links/routes/atom feeds:&lt;br&gt;&lt;br&gt;I'm exposing an atom feed for a user at the url:  &lt;a href="http://localhost:3000/posts/feed/username.atom" rel="nofollow"&gt;http://localhost:3000/posts/feed/username.atom&lt;/a&gt;&lt;br&gt;&lt;br&gt;In my posts controller:&lt;br&gt;  def feed&lt;br&gt;    @user = User.find_by_login(params[:id])&lt;br&gt;    @posts = @user.posts.find(:all, :order =&amp;gt; :created_at).reverse&lt;br&gt;    respond_to do |format|&lt;br&gt;      format.html&lt;br&gt;      format.atom&lt;br&gt;    end&lt;br&gt;  end&lt;br&gt;&lt;br&gt;Now in the html I want to put in an link tag using &amp;lt;%= auto_discovery_link_tag :atom, {:controller=&amp;gt;:posts, :action=&amp;gt;:feed, :id=&amp;gt;@user.login }, {} %&amp;gt;&lt;br&gt;&lt;br&gt;But that gives me &lt;br&gt;    &lt;a href="http://localhost:3000/posts/feed/username" rel="nofollow"&gt;http://localhost:3000/posts/feed/username&lt;/a&gt; &lt;br&gt;instead of &lt;br&gt;    &lt;a href="http://localhost:3000/posts/feed/username.atom" rel="nofollow"&gt;http://localhost:3000/posts/feed/username.atom&lt;/a&gt;&lt;br&gt;&lt;br&gt;Is there any way I can get the suffix in there?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ana</dc:creator><pubDate>Thu, 15 Jan 2009 18:12:37 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5112301</link><description>Very good. Did you use a "text" column for the data?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Wed, 14 Jan 2009 08:58:00 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5107235</link><description>I serialized the rows, and it seems to be much quicker now</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GeorgeS</dc:creator><pubDate>Wed, 14 Jan 2009 00:37:45 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5104241</link><description>Where is everybody?  &lt;br&gt;&lt;br&gt;Can anyone suggest a good summary of the differences between all the different ajax remote tags and when to use which?  &lt;br&gt;&lt;br&gt;Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 13 Jan 2009 21:40:31 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5088561</link><description>George -- I wrote a little simulation app like yours (similar columns) that updates 3000 rows.&lt;br&gt;&lt;br&gt;The total time to update 3000 rows, row by row, in Sqlite3, is: 60 seconds.&lt;br&gt;&lt;br&gt;I also tried it on MySQL: 47 seconds.&lt;br&gt;&lt;br&gt;You are updating each row separately.  3000 / 60 is 50, so you're updating 50 rows per second.&lt;br&gt;&lt;br&gt;I don't know enough about your application to know what to recommend. What does your application do? Does this need to happen very frequently? Or can it happen once a night or once per hour? If the answer is "Yes," then you should run this update code periodically with a scheduled task or cron job.&lt;br&gt;&lt;br&gt;Does the data need to be access immediately after it is updated? If the answer is "no," you could update the data asynchronously with Workling (see &lt;a href="http://github.com/purzelrakete/workling/tree/master" rel="nofollow"&gt;http://github.com/purzelrakete/workling/tree/ma...&lt;/a&gt;)&lt;br&gt;&lt;br&gt;Does the data need to be accessed "row-wise" or do you tend to want to grab all 3,000 rows each time? If the answer is the latter, then the data should not be kept in rows. Let us say that it is a Hash, and you want to grab it once, update the 3,000 items, and save it back at once. What you would want to look at is the ActiveRecord "serialize" feature which allows for saving a big object as one column value. If you want to know more about this, let me know.&lt;br&gt;&lt;br&gt;If it is the former -- the data has to be accessed row-wise, and you also need to update 3,000 rows at a time -- we should talk.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Tue, 13 Jan 2009 02:13:26 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5088296</link><description>Must you save every single word? Or can you be more selective?&lt;br&gt;&lt;br&gt;How much RAM is on your computer?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Tue, 13 Jan 2009 01:46:04 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5088269</link><description>If you want to scrape only, use hpricot or nokogiri. If you want to "click buttons" on a live web site, and follow links, etc., then you would additional want to use Mechanize.&lt;br&gt;&lt;br&gt;In your case: Use hpricot or nokogiri.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Tue, 13 Jan 2009 01:43:07 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5087563</link><description>Forgot to mention, the Word table in question has a text column, 4 integer columns, and a creation timestamp column, if that informatoin is helpful</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GeorgeS</dc:creator><pubDate>Tue, 13 Jan 2009 00:31:39 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5087531</link><description>I collected the Word table rows in an array, and wrote them out like this:&lt;br&gt;    save_these_words.each { |each| each.save }&lt;br&gt;&lt;br&gt;I read Time.now before that statement and again aftewards, and it confirms that this is the major bottleneck. (The value is 6.8 seconds)&lt;br&gt;&lt;br&gt;In the ouput of script/server there are a bunch of these lines:&lt;br&gt;UPDATE "words" SET "current_index" = 816, "current_position" = 19239 WHERE "id" = 2166&lt;br&gt;&lt;br&gt;A bunch print out at once, there's a pause, then another bunch, etc, for around 5 seconds, for roughly a thousand rows from id=1300 to id=2300. There is a lot of hard disk activity too.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GeorgeS</dc:creator><pubDate>Tue, 13 Jan 2009 00:29:01 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5083372</link><description></description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 19:37:06 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5080727</link><description>You say something like:&lt;br&gt;&lt;br&gt;filenames = Dir.glob("*.html")&lt;br&gt;filenames.each do |filename|&lt;br&gt;  doc = Nokogiri::HTML(open(filename))&lt;br&gt;end&lt;br&gt;&lt;br&gt;see &lt;a href="http://www.ruby-doc.org/core/classes/Dir.html#M002347" rel="nofollow"&gt;http://www.ruby-doc.org/core/classes/Dir.html#M...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Mon, 12 Jan 2009 16:52:55 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5080585</link><description>Nokogiri seemed simpler to me and the reviews seemed quite positive.  I never tried Hpricot.  The glob I wrote was just to show what I was trying to achieve, although I understood that wasn't the way to do it.  I guess what I'm asking is, how would you suggest handling this in ruby?  Would I need to use "mechanize"? &lt;br&gt;thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 16:46:35 -0000</pubDate></item></channel></rss>