Questions Recently Answered by Zachary Holt /users/recently_answered/468 Questions Recently Answered by Zachary Holt Mon, 01 Dec 2008 10:38:00 -0800 $15.00 - Javascript question here: How can I determine which text field on a page has ... http://guruza.com/question/422/reward-15.00/739 Javascript question here: How can I determine which text field on a page has focus at any given moment? Ideally with a function like elementWithFocus that with return the html element with focus, but other approcaches are welcome. I'm using the prototype.js library if that helps in writing the function. But I doubt it would. Wed, 04 Oct 2006 09:31:53 -0700 $1.00 - How does everyone like the new design? http://guruza.com/question/420/reward-1.00/737 How does everyone like the new design? Mon, 02 Oct 2006 22:29:55 -0700 $25.00 - In a RoR application I am making I have a sortable table made using a techniq... http://guruza.com/question/418/reward-25.00/709 In a RoR application I am making I have a sortable table made using a technique similar to this: http://dev.nozav.org/rails_ajax_table.html This is a two part question: Normally the table is 'unsorted' when you get to it even though the items are alreay in alphabetical order according to the first column. Because of this, the first time you click title to sort by name it appears to do nothing because it was going from 'unsorted' to 'sorted by name' and both are identical. On the first click it should go from 'sorted by name' to 'reverse sorted by name' and the sort_td_class_helper should have the 'sortdown' class applied to it when the page loads. **A solution would either include sample code or enough explanation that I can get it to work.** The other part of the question is how can I make the sorting case-insensive? **A solution would either include sample code or enough explanation that I can get it to work.** Thu, 21 Sep 2006 10:55:10 -0700 $5.00 - I want to save ruby code inside a database, retrieve it and execute it. Is it... http://guruza.com/question/408/reward-5.00/703 I want to save ruby code inside a database, retrieve it and execute it. Is it possible to execute a string returned by the database as ruby code? Thu, 14 Sep 2006 17:33:54 -0700 $10.00 - Is there any way I can use find_by_sql AND eager load associations? I have t... http://guruza.com/question/393/reward-10.00/689 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 $2.00 - How do you secure Markdown so that it does not allow javascript with rails? ... http://guruza.com/question/369/reward-2.00/680 How do you secure Markdown so that it does not allow javascript with rails? I see guruza does it as this link should popup an alert but does not work here. Fri, 01 Sep 2006 02:05:02 -0700 $20.00 - *Rails Output Streaming* I am revisiting this again because I am in a situat... http://guruza.com/question/358/reward-20.00/672 *Rails Output Streaming* I am revisiting this again because I am in a situation where I need output streaming. Rails has two methods that utilize streaming (send_data, send_file) I've modified this to meet my needs, along with the help of people on the mailinglist. However the code below which should work, does not provide output streaming. I know in the past output streaming has worked within rails, I am wondering if in a current release it has been broken. Whatever the case is, I need to determine why I cannot get the output streaming mechanism in rails to work. I'm using lighttpd on fc5. I've used mongrel with the same results. class TestController < ApplicationController def index render :text => Proc.new { |resp, out| out.puts 'start' out.flush 10.times do out.puts '.' out.flush sleep 1 end out.puts 'done' } end end Tue, 29 Aug 2006 14:02:10 -0700 $5.00 - I need a little getting my CSS straight for this page: http://sandbox.carlme... http://guruza.com/question/353/reward-5.00/667 I need a little getting my CSS straight for this page: http://sandbox.carlmercier.com/test.htm Basically, the left and right sections are filled dynamically. Sometimes the left section will be longer, and sometimes the right one will be longer. Right now, the footer is at the bottom of the screen, but when the text in either the left or right section gets longer than the browser height, the footer gets in the way (ie: the footer is over the text). You can see this behavior by resizing the browser. I don't want this to happen. I want the footer to be at the very bottom of the page (bottom of the browser window), but I also want it to move down if there's too much text in the content areas. Moreover, my page doesn't show up properly in IE (but works great in Firefox), I'd like some help getting it right in all browsers. Mon, 28 Aug 2006 10:16:05 -0700 $1.00 - how do i profile a url? for example: script/profiler "http://0.0.0.0:3000/he... http://guruza.com/question/354/reward-1.00/666 how do i profile a url? for example: script/profiler "http://0.0.0.0:3000/hello/world" ? Mon, 28 Aug 2006 13:09:52 -0700 $0.00 - I'm trying to set a default controller in my Rails routing. The default cont... http://guruza.com/question/343/reward-0.00/647 I'm trying to set a default controller in my Rails routing. The default controller should be 'main'. For example, I want /about to route to /main/about. Here's what I have, but it doesn't work: map.connect ':controller/:action/:id', :controller => 'main' Can anyone help? Fri, 25 Aug 2006 00:48:14 -0700 $0.00 - Can anyone help explain what the first set of numbers in WEBrick "Get" calls ... http://guruza.com/question/342/reward-0.00/646 Can anyone help explain what the first set of numbers in WEBrick "Get" calls refers to? For example what is the 500 in the following: "Get /admin HTTP/1.1" 500 10767 Compared to the 200 in the following: "Get /admin HTTP/1.1" 200 485 The only code I have running is the scaffold code that rails creates. I'm guessing that WEBrick is referring to 2 different locations possibly from multiple installs. Thanks for any input, Joe Noobie Thu, 24 Aug 2006 17:12:24 -0700 $4.00 - Is there a rails equivalence to out.flush() in java? I have an activerecord r... http://guruza.com/question/301/reward-4.00/644 Is there a rails equivalence to out.flush() in java? I have an activerecord resultset that is quite large. However I don't want to wait till the query is done to display all of the results. I would like to display the results as they come in. I need someway to flush the outputstream so that it constantly writes the results to the browser. Is this possible? Tue, 08 Aug 2006 08:21:48 -0700 $15.00 - Is there a way I can make a div appear on top of everything else no matter wh... http://guruza.com/question/331/reward-15.00/643 Is there a way I can make a div appear on top of everything else no matter what, in both Firefox and IE? I've got a flash animation that loads into a div when an image is clicked. On firefox, it appears over the top of most, but not all other divs. In IE, it appears under more layers. I'm using wmode transparency. Setting z-index appears to have no effect whatsoever. Mon, 21 Aug 2006 13:24:17 -0700