Displaying 20 results from an estimated 30 matches for "strother".
Did you mean:
st_other
2013 Feb 04
2
reshape help
...C nausea
C foot pain
I want this to be
ID nausea diabetes kidney_failure heart_attack fever pneumonia
A 1 1 1 1 1
0
B 0 0 0 1 1
1
R. Matthew Strother, MD
Clinical Pharmacology
Medical Oncology
[[alternative HTML version deleted]]
2006 Jul 07
3
Mongrel & irbrc
Why does mongrel_rails insist on loading ~/.irbrc with each request?
a) I''m curious why it loads it at all (I assume there''s no way of
getting an inline breakpointer??)
b) Why re-load it? It causes problems with any constants that are
used in .irbrc... (alternatively, how do I avoid re-assigning to a
constant?)
Jon
-------------- next part --------------
A non-text
2006 Aug 10
4
Speeding up ActiveRecord creation?
My completely empty model (no validation callbacks etc etc) takes an
average of 0.05 seconds to create, at least according to
Benchmark.realtime{200.times{Message.create(:from =>
"me@here.com", :message_type => ''email'',
:subject => "hello", :body => "goodbye", :sent_at => Time.now)}}/200
That''s a little slower than
2006 Jul 10
3
Receiving mail - "No such file to load -- pathname"
I''m using postfix in OS X to receive mail and forward it to my rails
app. When it tries to feed the email into rails, it fails with the
following error:
"/Users/jon/Developer/OneMod/script/runner ''MailMan.receive
(STDIN.read)''".
Command output: /Users/jon/Developer/OneMod/script/../config/
boot.rb:7:in `require'': No such file to load --
2006 Jul 21
3
Re-formatting email line breaks
I''m trying to re-flow email messages, removing the line breaks that
get added by mail programs so that the lines don''t exceed 72 characters.
Mail.app and Thunderbird seem to insert a space character before each
added line break.
Outlook replaces new lines in the email with double \n''s, then uses
single \n''s for the ''soft'' line breaks.
2006 Jul 20
5
Why don''t I get 404s?
When I go to a missing page in my rails app, I get the 500.html page,
and this in my log output:
no route found to match "/asdasd" with {:method=>:get}
./script/../config/../vendor/rails/actionpack/lib/action_controller/
routing.rb:1057:in `recognize_path''
./script/../config/../vendor/rails/actionpack/lib/action_controller/
routing.rb:1047:in `recognize''
2006 Aug 07
2
Getting an array of ids from form checkboxes?
Is it possible to set up a list of checkboxes so that the form
parameters are given in an array (eg {"delete_list" => [3,6,7]}) ?
At the moment I''m using
<%= check_box_tag "delete_list[#{post.id}]" %>
...which gives parameters looking like {"delete_list" => {"3" => "1",
"6" => "1",
2006 Aug 12
2
Mongrel 0.3.13.4 headers seem a bit broken...
I''m running a Rails (r4720) app on OS X 10.4.6. Mongrel 0.3.13.3
works perfectly for me. Mongrel 0.3.13.4, not so much.
Redirects don''t work, for one thing. This rails code :
redirect_to :action => ''login''
correctly redirects me on 0.3.13.3. Here''s the header I get back :
HTTP/1.1 302 Moved Temporarily
Content-Length: 93
Connection: close
2007 Feb 01
3
with-arguments block is executed regardless of method?
I have a test case where I''m stubbing one method (''jobs''), and
mocking another (''new_worker'')
MiddleMan.stubs(:jobs)
MiddleMan.expects(:new_worker).with{|args| args[:class]
==:download_worker}
MiddleMan.jobs()
The above code results in an error ("The error occurred while
evaluating nil.[]") - calling ''jobs'' results in
2006 Aug 07
8
Login form question
I''m using Rails Recipes to create a login form but instead of username
and password, my setup is firstname, lastname, password.
I seemed to be gramatically challenged and not sure how to set up the
parameter list. Can anyone offer up a suggestion.
The book shows the method starting like:
if request.post?
user = User.find(:first, :conditions => [''username = ?'' ,
2007 Feb 06
2
Login systems : stubbing accounts and AR association proxies
My Rails site has a fair amount of login and ''ownership'' logic. For
instance, we have a number of clients (companies), each of which has
several accounts. A client owns a number of different types of
resources, and shouldn''t see any other clients'' resources, so, for
example, our ScenesController contains a lot of references to
2011 Dec 08
5
Master repeatedly killing workers due to timeouts
Hi,
We''re using unicorn as a Rails server on Solaris, and it''s been
running great for several months. We''ve recently been having a few
problems and I''m at a loss what might cause it. A number of times in
the past few days, our unicorn slaves keep timing out & the master
keeps restarting them. unicorn.log looks something like :
E,
2006 Aug 16
1
Stale object errors
I''m running into a couple of stale object problems with methods that
at first glance appear fairly atomic - eg Message.update(params[:id],
{:body => params[:value]})
Of course, Rails has to instantiate the object & validate it before
it updates the database, so it''s not actually atomic, hence the
occasional staleobject error.
So I''ve been wondering about
2006 Aug 16
3
Reflecting on associations
Is there an easy way to programatically work out the associations on a model?
If not, is there a positive reason it was omitted, or is it just something that
hasn''t been implemented yet?
Thanks
Gareth
2006 Jul 04
2
clear all sessions keys
hi list,
how to iterate over the Session object to reset all session keys (after
a logout for example)
session[''something'']=nil
session[''another_key'']=nil
...
is there something like session.keys{|aSessionKey|
session[aSessionKey]=nil} ?
thanks
arnaud
2006 Jun 27
2
Avoiding race conditions
I want to be able to display a number of messages, and guarantee that
they''re only displayed once. Something like this :
def get_new_messages
@messages = Message.find(:all, :limit => 5, :conditions => ''new = 1'')
@messages.each do |msg|
msg.new = 0
msg.save
end
end
However, there''s a race condition in the above code if two users try
to access
2006 Aug 03
1
Why doesn''t redirect_to handle rjs?
Is there a good reason why redirect_to doesn''t check responds_to, so
it can handle redirects in rjs calls? I''ve done something like this
in my app controller, seems to work ok...
alias_method :redirect_to_orig, :redirect_to;
def redirect_to(options = {}, *parameters_for_method_reference)
respond_to do |accepts|
accepts.html do
redirect_to_orig
2007 Nov 20
2
Anyone using to_xml and procs...
I''m looking for comments on http://dev.rubyonrails.org/ticket/10162
In my opinion, the current behaviour is a bug, and should be fixed.
If you have a use case where passing procs to the child associations
is actually useful, chime in.
Jonathan del Strother
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to rubyonrails-cor...
2006 Sep 28
1
upload_progress and DRb.start_service crashes
Whenever I tried to start mongrel_rails with the upload progress
script, it would die with the following error:
/usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo'': getaddrinfo:
No address associated with nodename (SocketError)
from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in
`open_server_inaddr_any''
from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in
2006 May 25
21
Converting HTML into an Image
I have this challenge of converting a bit of html into an image file
and then shrinking it into a thumbnail. The shrinking part shouldn''t
be too bad, but what advice can you give on converting the html to the
image? My thinking is that I will need to convert it to postscript or
latex and then convert it to an image from there. Is there an easier
/ better approach?
Michael