Questions Recently Asked by Rich Collins /users/recently_asked/2 Questions Recently Asked by Rich Collins Fri, 21 Nov 2008 08:31:23 -0800 $76.00 - I am very frustrated with iterm on OS X. I love many of the features but I k... http://www.guruza.com/question/459/reward-76.00 I am very frustrated with iterm on OS X. I love many of the features but I keep having issue with the wrong characters being sent to the shell. For instance, Meta-Backspace works fine in bash locally, but does not work remotely. It also does not work in my postgres shell or my irb (Ruby) shell. Mon, 11 Dec 2006 09:47:35 -0800 $20.00 - How do I exclude URIs from being proxied by lighttpd? Got the answer on IR... http://www.guruza.com/question/442/reward-20.00 How do I exclude URIs from being proxied by lighttpd? Got the answer on IRC: weigon richcollins: $HTTP["url"] !~ "^/no-proxy/" { proxy.server = ... } Mon, 13 Nov 2006 11:55:00 -0800 $10.00 - I would like to get the Trac Darcs plugin working. I followed the directions... http://www.guruza.com/question/430/reward-10.00 I would like to get the Trac Darcs plugin working. I followed the directions here: http://trac.edgewall.org/wiki/TracPlugins without success. I got the following error when I ran ~/.system/bin/trac-admin my_proj initenv: "Repository type darcs not supported" Tue, 17 Oct 2006 15:11:18 -0700 $1.00 - How does everyone like the new design? http://www.guruza.com/question/420/reward-1.00 How does everyone like the new design? Mon, 02 Oct 2006 22:29:55 -0700 $10.00 - Is there any way I can use find_by_sql AND eager load associations? I have t... http://www.guruza.com/question/393/reward-10.00 Is there any way I can use find_by_sql AND eager load associations? I have to return everything in 1 sql statement, but I would still like to access associations normally when outputting in my rhtml file. Mon, 11 Sep 2006 16:58:34 -0700 $15.00 - I have a strange issue where my classes are somehow being corrupted by a user... http://www.guruza.com/question/297/reward-15.00 I have a strange issue where my classes are somehow being corrupted by a user request: Internal protocol error: You have a nil object when you didn't expect it! The error occured while evaluating nil.has_key? Backtrace: (eval):1:in `title' /home/rcollins/myapp/../lib/rails_ext/acts_as_versioned.rb:401:in `write_changed_attribute' Here is the code: def write_changed_attribute(attr_name, value) last_value = self.send(attr_name) How can I debug the eval? Mon, 07 Aug 2006 13:10:44 -0700 $15.00 - I keep getting hang ups in the OS X UI when I am doing things like typing in ... http://www.guruza.com/question/271/reward-15.00 I keep getting hang ups in the OS X UI when I am doing things like typing in a text field (especially in the Adium message text area). The hang ups (usually a second or so) seem to coincide with a spike in disk writes. This is getting really annoying when combined with my [other issue](http://guruza.com/question/122/reward-125.00). Any ideas? Wed, 26 Jul 2006 15:17:05 -0700 $1.00 - How can I create a test fixture file for model Foo (table foos) that is calle... http://www.guruza.com/question/270/reward-1.00 How can I create a test fixture file for model Foo (table foos) that is called something other than foo.yml? Wed, 26 Jul 2006 10:54:20 -0700 $10.00 - I would like to display the full error message for some errors, but only the ... http://www.guruza.com/question/251/reward-10.00 I would like to display the full error message for some errors, but only the :message component for others. Is there any way to specify this? <%= errors_messages_for 'foo' %> validates_presence_of :bar, :message => 'Bad Bar!' validates_presence_of :foo, :message => 'is missing' Should output: There were problems with the following fields: Bad Bar! Foo is missing Wed, 19 Jul 2006 14:23:56 -0700 $10.00 - Can someone please help with this odd error? It appears that rails is not pa... http://www.guruza.com/question/245/reward-10.00 Can someone please help with this odd error? It appears that rails is not parsing the url correctly. However, browsing to the url http://guruza.com/question/244/0.0/523#comment_537 does not replicate the error A ActiveRecord::StatementInvalid occurred in question#index: PGError: ERROR: invalid input syntax for integer: "523#comment_537" : SELECT * FROM conversations WHERE (conversations."id" = '523#comment_537' ) LIMIT 1 /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' ------------------------------- Request: ------------------------------- * URL: http://guruza.com/question/244/0.0/523#comment_537 * Parameters: {"action"=>"index", "reward"=>"0.0", "conversation_id"=>"523#comment_537", "id"=>"244", "controller"=>"question"} * Rails root: /var/www/guruza ------------------------------- Session: ------------------------------- * @write_lock: true * @session_id: **HIDDEN** * @new_session: false * @data: {:request_data=> {:request_uri=>"/question/244/0.0/523#comment_537", :raw_post=>nil}, "flash"=>{}} ------------------------------- Environment: ------------------------------- * DOCUMENT_ROOT : **HIDDEN** * FCGI_ROLE : RESPONDER * GATEWAY_INTERFACE : CGI/1.1 * HTTP_ACCEPT : text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 * HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7 * HTTP_ACCEPT_ENCODING: gzip * HTTP_ACCEPT_LANGUAGE: es * HTTP_COOKIE : **HIDDEN** * HTTP_HOST : guruza.com * HTTP_REFERER : http://guruza.com/ * HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 * HTTP_X_FORWARDED_FOR: 83.41.203.33 * HTTP_X_MOZ : prefetch * PATH_INFO : * QUERY_STRING : * REDIRECT_STATUS : 200 * REDIRECT_URI : /dispatch.fcgi * REMOTE_ADDR : **HIDDEN** * REMOTE_PORT : 48682 * REQUEST_METHOD : GET * REQUEST_URI : /question/244/0.0/523#comment_537 * SCRIPT_FILENAME : /var/www/guruza/public/dispatch.fcgi * SCRIPT_NAME : /dispatch.fcgi * SERVER_ADDR : 66.220.26.12 * SERVER_NAME : guruza.com * SERVER_PORT : 80 * SERVER_PROTOCOL : HTTP/1.1 * SERVER_SOFTWARE : lighttpd/1.4.10 * Process: 15875 * Server : ------------------------------- Backtrace: ------------------------------- /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/postgresql_adapter.rb:148:in `execute' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/postgresql_adapter.rb:362:in `select' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/postgresql_adapter.rb:129:in `select_all' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:390:in `find_by_sql' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:924:in `find_every' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:918:in `find_initial' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1103:in `method_missing' [RAILS_ROOT]/app/controllers/question_controller.rb:21:in `index' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_with_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_with_benchmark' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_with_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action_with_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_with_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process_with_session_management_support' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:600:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in `process!' [RAILS_ROOT]/public/dispatch.fcgi:24 Sun, 16 Jul 2006 15:09:06 -0700 $10.00 - I have the following schema: users id posts i... http://www.guruza.com/question/239/reward-10.00 I have the following schema: users id posts id user_id I want to paginate users orderded by the number of posts for each user. This does not work: User.find(:all, :include => :posts, :group => 'user_id', :order => 'count(user_id)') Any suggestions? Thu, 13 Jul 2006 22:37:15 -0700 $10.00 - I have the following table: posts id votes id type (either 'up... http://www.guruza.com/question/238/reward-10.00 I have the following table: posts id votes id type (either 'up' or 'down') created_at I want to do things like this: order the posts by up votes - down votes order the posts by up votes - down votes in the last hour I would like to use SQL that will work cross platform I could do something like this: select posts.* from posts order by (select count(*) from votes where type = 'up' and post_id = posts.id) - (select count(*) from votes where type = 'down' and post_id = posts.id) but that seems pretty ugly and unlikely to work cross platform Any suggestions? Thu, 13 Jul 2006 18:17:26 -0700 $0.00 - If you like Guruza, please help us get the word out: [Digg It](http://www.... http://www.guruza.com/question/235/reward-0.00 If you like Guruza, please help us get the word out: [Digg It](http://www.digg.com/tech_news/Amazing_way_to_Get_Paid_to_Answer_Questions!) [Reddit](http://reddit.com/info/9v9n/comments) Tue, 11 Jul 2006 22:22:06 -0700 $25.00 - What is the most important thing that we can do to improve Guruza? I will ... http://www.guruza.com/question/233/reward-25.00 What is the most important thing that we can do to improve Guruza? I will select the 5 "best" answers and then pick one at random for the reward! rich-collins-computer:~ rcollins$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'facet/array/at_rand' => true irb(main):003:0> "Dave | nerkles | AgeKay | Jake McArthur | funnyguilly | larry | jer | bryce".split(' | ').at_rand => "Dave" irb(main):004:0> Congrats Dave and thanks for all of the suggestions from everyone! Tue, 11 Jul 2006 16:32:22 -0700 $50.00 - We need a performance monitoring solution that will tell us if something is a... http://www.guruza.com/question/224/reward-50.00 We need a performance monitoring solution that will tell us if something is amiss with the site. The answer that provides the most comprehensive discussion of various solutions and which one is recommended (and why) will win the reward. Wed, 05 Jul 2006 11:49:44 -0700 $10.00 - I am having trouble with the title attribute on an RSS feed generated with Ra... http://www.guruza.com/question/207/reward-10.00 I am having trouble with the title attribute on an RSS feed generated with Rails: xml.instruct!( :xml, :version=>"1.0", :encoding => "utf-8" ) xml.rss( "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" ) do xml.channel do xml.title("Channel Title") xml.link("http://the.channel.com/") xml.description("Channel Description") xml.pubDate(Time.now.strftime("%a, %d %b %Y %H:%M:%S %z")) xml.item do xml.title("Item Title") xml.link("http://the.item.com/") xml.description("Item Description") xml.pubDate(Time.now.strftime("%a, %d %b %Y %H:%M:%S %z")) end end end The xml.title does not result in a title tag being written to the reponse for either call! Tue, 04 Jul 2006 09:43:38 -0700 $10.00 - Is correct markdown behavior: foo_bar_baz Underscores within a string o... http://www.guruza.com/question/206/reward-10.00 Is correct markdown behavior: foo_bar_baz Underscores within a string of characters are causing emphasis on the surrounded text. I would think this would only happen when the underscores are surrounded by whitespace. Tue, 04 Jul 2006 08:16:42 -0700 $10.00 - Is there a way to display a scroll bar only for horizontal overlow? [http:... http://www.guruza.com/question/205/reward-10.00 Is there a way to display a scroll bar only for horizontal overlow? [http://www.w3schools.com/css/pr_pos_overflow.asp](http://www.w3schools.com/css/pr_pos_overflow.asp) I have used auto before, but I would like the div to grow vertically, but scroll horizontally. Tue, 04 Jul 2006 08:11:15 -0700 $0.00 - **Forwarding this question for a user that was not able to submit it due to a... http://www.guruza.com/question/204/reward-0.00 **Forwarding this question for a user that was not able to submit it due to an error** Meebo.com along with its ip address is blocked in my university...is there any way to access it ..other than using open proxies ..or tunneling???\r\nmaybe by URL cloaking??? Tue, 04 Jul 2006 07:32:35 -0700 $5.00 - How do I get the egg shell to separate from the white when cooking a hard boi... http://www.guruza.com/question/201/reward-5.00 How do I get the egg shell to separate from the white when cooking a hard boiled egg without overcooking it. *Update* It appears that the sitting for 10 days method is the most frequently cited online. I think I will give the reward to Justin for the most comprehensive answer. Mon, 03 Jul 2006 08:44:00 -0700 $5.00 - How do I restart things in the /Library/StartupItems directory? I have postg... http://www.guruza.com/question/177/reward-5.00 How do I restart things in the /Library/StartupItems directory? I have postgresql set to startup, but I want to restart instead of rebooting. Fri, 30 Jun 2006 17:06:58 -0700 $10.00 - How can I make better use of abstraction in rails fixtures? I don't like con... http://www.guruza.com/question/126/reward-10.00 How can I make better use of abstraction in rails fixtures? I don't like constantly repeating myself and having to remember the primary key value when adding foriegn key values ... etc Wed, 28 Jun 2006 09:36:39 -0700 $10.00 - How I can easily specify that an application should start at boot / login. A... http://www.guruza.com/question/124/reward-10.00 How I can easily specify that an application should start at boot / login. A get info option on the .app would have been nice but it looks like that is not available. Tue, 27 Jun 2006 21:55:41 -0700 $5.00 - How do I use helper methods in ActionMailer templates? http://www.guruza.com/question/123/reward-5.00 How do I use helper methods in ActionMailer templates? Tue, 27 Jun 2006 19:19:54 -0700 $125.00 - At least once a day, OS X Freezes when I Command-Tab. The application swit... http://www.guruza.com/question/122/reward-125.00 At least once a day, OS X Freezes when I Command-Tab. The application switcher comes up, the selection box is over an application I can move the mouse but that is it. I have to restart every time this happens. I will pay mucho to get this working. *Update* I found this person with the same problem: http://simplygenius.com/geekblog/2006/01/26/1138308962040.html *Update* I already upgraded to 10.4.7 *Update* I already tried to repair file permissions *Update* This happened on my PowerBook, and now it is happening on a "fresh" install on my new MacBook. Here is what I am usually running: * TextMate * FireFox (Have a hunch this is it for some reason) * X-Chat * Terminal * Mail * Adium * SSH Keychain * iTunes Tue, 27 Jun 2006 17:36:08 -0700