<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - Code Comments</title>
  <id>tag:opensoul.org,2010:mephisto/code/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://opensoul.org/feed/code/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="http://opensoul.org/code" rel="alternate" type="text/html"/>
  <updated>2010-07-31T10:59:08Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Alex</name>
    </author>
    <id>tag:opensoul.org,2006-07-18:494:22309</id>
    <published>2010-07-31T10:59:08Z</published>
    <updated>2010-07-31T10:59:08Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2006/7/18/using-gpg-on-os-x" rel="alternate" type="text/html"/>
    <title>Comment on 'Using GPG on OS X' by Alex</title>
<content type="html">&lt;p&gt;Might be interesting in this context that GPGMail is now available in version 1.3.0 (compatible with 10.6.4 Snow Leopard) with integrated update (Sparkle) and a new dev team.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>ojak</name>
    </author>
    <id>tag:opensoul.org,2007-07-18:3259:22057</id>
    <published>2010-06-30T01:55:19Z</published>
    <updated>2010-06-30T01:55:19Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/7/18/round-floats-to-the-nearest-x" rel="alternate" type="text/html"/>
    <title>Comment on 'Round floats to the nearest X' by ojak</title>
<content type="html">&lt;p&gt;For what it&#8217;s worth&#8230; matt&#8217;s benchmark&#8217;ed as the quickest:&lt;/p&gt;


&lt;pre&gt;
                            user     system      total        real
mjones       0.260000   0.010000   0.270000 (  0.283507)
original       0.330000   0.010000   0.340000 (  0.362051)
dkubb         0.700000   0.010000   0.710000 (  0.717374)
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>ojak</name>
    </author>
    <id>tag:opensoul.org,2007-07-18:3259:22056</id>
    <published>2010-06-30T01:54:17Z</published>
    <updated>2010-06-30T01:54:17Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/7/18/round-floats-to-the-nearest-x" rel="alternate" type="text/html"/>
    <title>Comment on 'Round floats to the nearest X' by ojak</title>
<content type="html">&lt;p&gt;For what it&#8217;s worth&#8230; matt&#8217;s benchmark&#8217;ed as the quickest:
mjones       0.260000   0.010000   0.270000 (  0.283507)
original       0.330000   0.010000   0.340000 (  0.362051)
dkubb         0.700000   0.010000   0.710000 (  0.717374)&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;user     system      total        real&lt;/code&gt;&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>David Lynch</name>
    </author>
    <id>tag:opensoul.org,2007-08-17:3392:21925</id>
    <published>2010-06-08T13:14:30Z</published>
    <updated>2010-06-08T13:14:30Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/8/17/acts_as_ferret-will_paginate" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_ferret will_paginate' by David Lynch</title>
<content type="html">&lt;p&gt;Hi Lucas,&lt;/p&gt;


	&lt;p&gt;I am using acts_as_version 0.4.4 and will_paginate 2.3.11, I have some what same code in my 
controller
@ads = Ad.find_with_ferret(params[:q]+&#8221;~&#8221;, :page =&amp;gt; params[&#8216;page&#8217;], :per_page =&amp;gt; 10)&lt;/p&gt;


	&lt;p&gt;view
will_paginate @ads&lt;/p&gt;


	&lt;p&gt;But i only get one page of paginated ads can&#8217;t go second page just get nil results even do I know there is more that 10 result.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Lucas Renan</name>
    </author>
    <id>tag:opensoul.org,2007-08-17:3392:21822</id>
    <published>2010-05-26T19:38:13Z</published>
    <updated>2010-05-26T19:38:13Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/8/17/acts_as_ferret-will_paginate" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_ferret will_paginate' by Lucas Renan</title>
<content type="html">&lt;p&gt;I tried to do a pagination with acts_as_ferret version 0.4.4 and will_paginate version 2.3.1.
I just did:&lt;/p&gt;


controller
&lt;pre&gt;
@data = Model.find_with_ferret(params[&quot;q&quot;]+&quot;~&quot;, :page =&amp;gt; params['page'], :per_page =&amp;gt; 10)
&lt;/pre&gt;

view
&lt;pre&gt;
&amp;lt;%= will_paginate @data %&amp;gt;
&lt;/pre&gt;

	&lt;p&gt;and it seems work fine this way&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>xinuc</name>
    </author>
    <id>tag:opensoul.org,2010-04-07:21491:21788</id>
    <published>2010-05-21T10:30:23Z</published>
    <updated>2010-05-21T10:30:23Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2010/4/7/cucumber-and-sunspot" rel="alternate" type="text/html"/>
    <title>Comment on 'Cucumber and Sunspot' by xinuc</title>
<content type="html">&lt;p&gt;Oh man&#8230; I owe you for this&#8230; Thanks&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Jamie Hill</name>
    </author>
    <id>tag:opensoul.org,2010-05-11:21722:21723</id>
    <published>2010-05-11T14:53:07Z</published>
    <updated>2010-05-11T14:53:07Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2010/5/11/capybaras-eating-cucumbers" rel="alternate" type="text/html"/>
    <title>Comment on 'Capybaras eating cucumbers' by Jamie Hill</title>
<content type="html">&lt;p&gt;Good stuff&#8230; I didn&#8217;t have much luck getting Selenium to play with Cucumber back along, must give it another shot.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Dave</name>
    </author>
    <id>tag:opensoul.org,2008-07-25:6919:21696</id>
    <published>2010-05-06T22:36:17Z</published>
    <updated>2010-05-06T22:36:17Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2008/7/25/safari-bug-with-dls-and-floats" rel="alternate" type="text/html"/>
    <title>Comment on 'Safari bug with DLs and floats' by Dave</title>
<content type="html">&lt;p&gt;Setting an fixed-width (if the layout can accommodate it) will help to override the phantom margin-right. I&#8217;m having to resort to this myself.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Jimmy</name>
    </author>
    <id>tag:opensoul.org,2007-02-13:1084:21676</id>
    <published>2010-05-04T00:04:58Z</published>
    <updated>2010-05-04T00:04:58Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/2/13/geocoding-as-easy-as-1-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Geocoding as easy as 1-2...' by Jimmy</title>
<content type="html">&lt;p&gt;In addition to Chad&#8217;s comments (WRT the issue of Geocode.geocoder in the environment file) I&#8217;d like to add that if you have installed acts_as_geocodable as a gem, that you need to put the following inside your Rails::Initializer block (inside environment.rb):&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;config.gem 'graticule'
config.gem 'acts_as_geocodable'&lt;/code&gt;&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2009-03-06:11438:21673</id>
    <published>2010-05-03T19:08:27Z</published>
    <updated>2010-05-03T19:08:27Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2009/3/6/testing-facebook-with-cucumber" rel="alternate" type="text/html"/>
    <title>Comment on 'Testing Facebook with Cucumber' by Brandon</title>
<content type="html">&lt;p&gt;Jonathan: I wouldn&#8217;t be surprised if the cucumber support in facebooker is very out of date.  I haven&#8217;t used it for nearly a year, and I don&#8217;t know that anyone else was maintaining it.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Jonathan Spooner</name>
    </author>
    <id>tag:opensoul.org,2009-03-06:11438:21672</id>
    <published>2010-05-03T19:03:37Z</published>
    <updated>2010-05-03T19:03:37Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2009/3/6/testing-facebook-with-cucumber" rel="alternate" type="text/html"/>
    <title>Comment on 'Testing Facebook with Cucumber' by Jonathan Spooner</title>
<content type="html">&lt;p&gt;I was trying to add this to my authlogic cucumber example on github but I&#8217;m getting a
&#8221; undefined method `set_facebook_session&#8217; for nil:NilClass (NoMethodError)&#8221;&lt;/p&gt;


	&lt;p&gt;I&#8217;m thinking the problem must be that something is not required in cucumber env.rb.&lt;/p&gt;


	&lt;p&gt;Question:
http://stackoverflow.com/questions/2760461/authlogic-facebook-connect-and-cucumber&lt;/p&gt;


	&lt;p&gt;Source code:
http://github.com/jspooner/authlogic_cucumber_rspec_example&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Michael Gatto</name>
    </author>
    <id>tag:opensoul.org,2006-11-13:658:21625</id>
    <published>2010-04-26T16:05:10Z</published>
    <updated>2010-04-26T16:05:10Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2006/11/13/acts_as_money" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_money' by Michael Gatto</title>
<content type="html">&lt;p&gt;Hi Brandon,&lt;/p&gt;


	&lt;p&gt;I&#8217;m using the rails plugin 2.1 branch. It deploys fine but when I test the app I get this error: NoMethodError (undefined method `price=&#8217;. It seems as if the plugin is not altering activerecord&#8217;s behavior. I installed manually since my dev machine is Windows without git.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>steve keegan</name>
    </author>
    <id>tag:opensoul.org,2009-01-15:10422:21567</id>
    <published>2010-04-18T14:31:42Z</published>
    <updated>2010-04-18T14:31:42Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2009/1/15/network-time-machine-backups-to-another-mac" rel="alternate" type="text/html"/>
    <title>Comment on 'Network Time Machine backups to another Mac' by steve keegan</title>
<content type="html">&lt;p&gt;brilliant, I had 200gb on my macbook pro that was taking days to download, but now I have got my first full sync, the rest happens as usual.. good work, I really don&#8217;t understand why they don&#8217;t let people know about this.. probably want people to buy the time capsule&#8230;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Gregory</name>
    </author>
    <id>tag:opensoul.org,2010-04-03:21456:21497</id>
    <published>2010-04-08T05:45:34Z</published>
    <updated>2010-04-08T05:45:34Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2010/4/3/delayed_job-2-0" rel="alternate" type="text/html"/>
    <title>Comment on 'delayed_job 2.0' by Gregory</title>
<content type="html">&lt;p&gt;I believe it&#8217;s : http://github.com/collectiveidea/delayed_job&lt;/p&gt;


	&lt;p&gt;Great ! At Studio Melipone, we&#8217;re surely gonna upgrade !&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Ivan Drago</name>
    </author>
    <id>tag:opensoul.org,2010-04-03:21456:21495</id>
    <published>2010-04-08T04:56:59Z</published>
    <updated>2010-04-08T04:56:59Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2010/4/3/delayed_job-2-0" rel="alternate" type="text/html"/>
    <title>Comment on 'delayed_job 2.0' by Ivan Drago</title>
<content type="html">&lt;p&gt;Cool. So where is the official repo?&lt;/p&gt;</content>  </entry>
</feed>
