search for: sanheim

Displaying 20 results from an estimated 42 matches for "sanheim".

2006 Feb 07
6
Switchtower not working due to openssl not found
.../reinstall to get things to work. running: "rake remote_exec ACTION=setup" gives me ---> ...executing "mkdir -p -m 775 /usr/apps/hello-rails/releases /usr/apps/hello-rails/shared/system &&\n mkdir -p -m 777 /usr/apps/hello-rails/shared/log" servers: ["www.robsanheim.com"] rake aborted! no such file to load -- openssl "which openssl" returns "/usr/bin/openssl", and I can get an openssl prompt at the command line, so that is installed correctly. I was at ruby 1.8.3 and just upgrade to 1.8.4, thinking that might fix something, but it ha...
2006 Jun 26
4
why can''t I call this without parentheses?
..."post_"}, :author, :title but this works fine: legacy fields({:prefix = "post_"}, :author, :title) The signature looks similar to things like link_to and url_for, which can be called without parentheses. Any idea of what I''m missing? thanks, Rob -- http://www.robsanheim.com
2006 Jun 26
5
using application_helper.rb
I have a simple Yes/No selection list that I am using in a number of places. Thinking that I could DRY things out a bit, I added it to application_helper.rb ... YES_NO = [ [ "Yes", true ], [ "No", false ] ].freeze So I figured I would use it there instead of in each model.rb where needed. anyway, in webrick screen, I am continually seeing this...
2006 Mar 23
2
Ruby and RoR Book Roundup
Hello, I''m a big bookworm, so I decided to round up all the upcoming Ruby books in the market in one big blog post. At my count, there are _sixteen_ books to be released (in print) for the upcoming year, with some available in pdf form right now. Here''s the list: http://www.robsanheim.com/2006/03/23/ruby-and-ruby-on-rails-book-roundup/ Hope its helpful for fellow book nerds out there! - Rob -- http://www.robsanheim.com/ http://www.ajaxian.com/
2007 Jan 07
3
slow tests on an established project...
...ly not an option. Sqlite3 seems to finicky to handle anything beyond a very basic data model. Tools I''m trying to incorporate include mocha, spec/unit, and zentest (mainly for autotest, I don''t use the view testing stuff much). thanks for any ideas or experiences! - Rob www.robsanheim.com
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
On my current project I needed to create a stub that responded correctly to the id message. Here''s the change I put into my copy of head. Index: lib/mocha/mock_methods.rb =================================================================== --- lib/mocha/mock_methods.rb (revision 1114) +++ lib/mocha/mock_methods.rb (working copy) @@ -68,6 +68,7 @@ method_names =
2006 Sep 06
13
Ruby/Rails facts?
I found these facts while in #ruby-lang irc? <duracell8> 1. Limited Pool of developers who know Ruby. Get developers to nominate if Ruby will be their secondary language. <duracell8> 2. The serving of Ruby Apps from Apache using FastCGI is broken the world over. It causes periodic process and database connection blowouts. Move to a Mongrel Pack. <duracell8> 3. Limited
2006 Jul 06
17
Linux distros
Is there any particular distro that seems to be most used among RoR developers on Linux? Any that might provide better support somehow for development of RoR apps? -- Posted via http://www.ruby-forum.com/.
2006 Dec 29
3
production-izing a popular site
Lets say you have a site that is serving, oh, around 100k unique visitors a day (plain ole'' browser requests) - plus probably ~ 40k uniques to feeds. Assume this site is 90% read like most of the web, so the traffic looks like your typical news or portal site. There are two web boxes behind a hardware load balancer, each doing apache 2.2.3 -> mongrel_proxy_balancer -> mongrel
2007 Jan 10
3
Rails 1.2.0 RC2 has 4125 duplicate lines
I have been evaluating the excellent and super fast Similarity Analyser by Red Hill Consulting to generate a dupplicated lines reports from Rails 1.2.0 RC2 source code (excluding the tests). On the 10th of January 2007, Rails 1.2.0 RC2 has 4125 duplicate lines in 793 blocks in 231 files * actionmailer has 584 duplicate lines in 107 blocks in 20 files * actionpack has 718 duplicate lines
2006 Jul 06
1
migrations work from script/console, but not command line
...d::Migrator. So I know the migrations must be valid, and I can verify that tables are created or destroyed in the database. Does anyone have any idea why this would happen? Platform is mac os x, Rails 1.12, Ruby 1.84, etc, just playing around with the Simplelog blog app. - rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.com
2006 Jun 01
1
adding color to autotest output
I was wondering if anyone had a quick an easy way to add color to the autotest output. I just want a nice green splash somewhere on success, and red on failure - I miss the Eclipse xUnit plugin''s easy feedback where I didn''t have to read log output. =) - rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.com
2006 Jan 31
1
question on gem update rails effect on fcgi/mysql bindings
Would upgrading rails and all dependancies break the installation of the fcgi/mysql bindings? I know I had all this stuff working a month ago or so, but since then I''ve updated a few times... - Rob -- http://www.robsanheim.com/ - blog on java, rails, tdd, agility, and life in general http://www.ajaxian.com/ - the net''s premier ajax blog
2007 Mar 14
1
ruby 1.8.6 includes fastthread?
It looks like fastthread was rolled into 1.8.6: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v1_8_6/NEWS?revision=12055&view=markup Does that mean once we upgrade to 186 we can forget about rubygem version? - Rob
2006 Jun 26
2
RailsConf DVD ?
Hi All, I saw spurious mentions on a few blogs of a DVD being made available of RailsConf presentations. However none seemed to have a who/what/when/where attached to them, thus might just be pure speculation. Anyone know of an official source/effort being made for a DVD? Would be well keen for copy if one is to be made available.... Cheers Rowan --- http://raili.st/ -------------- next part
2006 Jul 13
2
Intel Mac, Rails, MYSQL - access denied
Hi, Nuby on Rails here trying to bring up an existing app on a new installation. The whole ruby/rails/mysql/lighty installation was done per the much touted "hivelogic article" that runs through all the steps. I am running into a permission error when I try to do a rake migrate to set up a session database needed by this existing app. Extracted from the trace... ** Execute
2007 Apr 03
5
small suggestion - once method on Expectation
I find that a lot of times I want to ensure a method gets called exactly once, for example when testing caching or eager loading. What does the list think of adding this little humane method to Mocha::Expectation? def once times(1) self end which means this: def test_should_only_grab_post_once_from_the_cache Post.expects(:get_cache).with(google_vs_yahoo.id).times(1)
2006 Nov 04
2
Trac Triage with THE MAGGOT (Time To Clean Your Patches)
Evening, Alright folks, as Jeremy Kemper mentioned I''m working on a set of "triage" scripts for the Rails trac using RFuzz to go through all the tickets and clean them out. I''ve talked this over with the core guys, and they''re behind it. I''m calling this set of scripts "THE MAGGOT" thanks to hasmanyjosh. Basically THE MAGGOT (all caps)
2006 Nov 04
2
Trac Triage with THE MAGGOT (Time To Clean Your Patches)
Evening, Alright folks, as Jeremy Kemper mentioned I''m working on a set of "triage" scripts for the Rails trac using RFuzz to go through all the tickets and clean them out. I''ve talked this over with the core guys, and they''re behind it. I''m calling this set of scripts "THE MAGGOT" thanks to hasmanyjosh. Basically THE MAGGOT (all caps)
2008 May 28
3
Mocking objects to test Rails Controllers
Hi all, I''m currently considering the use of Mocha to aid in writing my Rails unit/functional tests. I currently have a Rails model which mixes in a series of methods to allow it to talk to an external service. The code is roughly of this form: class Person < ActiveRecord::Base include SMSNotifier def send_notification(message) send_sms(number,message) #