Displaying 14 results from an estimated 14 matches for "lowy".
Did you mean:
low
2010 May 02
3
How could I use a function saved in one file ?
Dear All:
I create a file named :"P_Value" with only one simple function:
P_Value <- function( Table ) {
S = fisher.test(Table, alternative = "two.sided");
return(S$p.value);
}
However, it seems that it's impossible to use this function
directly, because no matter
where I save this file, R always reports
2007 Sep 05
4
Mocking to spec a sort_by method
Hello,
I have a question regarding the use of Mocha with rSpec to spec one of
my methods.
My spec contains the following
vehical1 = mock()
vehical2 = mock()
vehical1.stubs(:mph).returns(150)
vehical2.stubs(:mph).returns(250)
comparer.add_vehical([@vehical1, @vehical2])
comparer.sort_by(:mph)
The comparer is an object that has a basic "stack like" functionality,
add_vehical is the
2009 Feb 03
2
ThinkCell type waterfall charts in R?
Hi all,
with PowerPoint and ThinkCell one can draw something they call waterfall
chart and it looks like this:
http://www.think-cell.com/products/images/waterfall.gif
I found discussions on waterfall charts in the archive of this
mailinglist, but unfortunately they looked totally different. Other
names for this type of plot seem to be bridge chart, cascade chart,
stair case chart, etc. but
2006 Jul 31
9
Problems with ever-increasing ID value
I have a script that I am using to populate a database from a CSV file:
RAILS_ENV = ''development''
require File.dirname(__FILE__) + ''/../../config/environment''
require ''csv''
# Destroy existing data
Residence.destroy_all
# IMPORT DATA FROM apartments.csv
db_file = "#{RAILS_ROOT}/db/apartments.csv"
CSV.open(db_file, "r",
2006 Aug 16
5
Dreamhost FastCGI: incomplete headers (0 bytes) errors
Sorry to trouble the list with another Dreamhost problem, but looking
through the archives I see nothing that can solve my problem.
I have installed my app as per
http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Quick_Start_Guide_August_2006
with a symbolic link from my_domain.tld in ~/ to
~/apps/residence/public/
I get the Rails welcome screen. I have uploaded my app directory etc,
and
2006 Aug 16
6
Experience with ferret on Dreamhost ?
Does anybody have experience with running ferret on dreamhost ?
My app is running ok until I install the acts_as_ferret plugin, at which
point I get "Rails application failed to start properly" errors. I''ve
used script/console to confirm that I can require ''ferret'' and make a
new Index object . Everything appears to be ok in that respect.
Unfortunately
2006 Aug 16
3
gems vs plugins
Hi,
Is there an easy way of converting a gem to a plugin, or at least
something you can dump into $RAILS_ROOT/vendor?
I''m uncomfortable having stuff like capistrano, the shipping gem,
builder, autotest being installed globally as a gem instead of being
installed for each application.
What do you think?
Joe
2006 Jul 09
4
Search terms in URL
I have set up a ferret search using the examples in the demo app. Is it
possible to have the search terms included in the URL, so that, for
example, users can bookmark a search results page ?
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Aug 12
2
How to add # anchor to ferret generated url ?
I have the following action in my controller
def search
@query = params[:query] || ''''
unless @query.blank?
@results = Residence.find_by_contents @query
end
end
In my View I have
<div id="search-box">
<%= form_tag( { :action => ''search''}, :method => ''get'')%>
<input type="text"
2006 Jul 27
2
is there an easy way to move data from one table and copy it
to another?
i would like my website to be able to have the user to fill out a web
form. i then would like to have a view of my own to either accept or
reject what the user filled out. if i accept it, i want the info deleted
from where it was stored and then store it to the ''public'' database.
i guess its all of a matter of saving each field in the form to a temp
table. when
2006 Sep 01
1
integration problem with gamma function
Dear R-list members,
I have a problem with translating a mathematica script into R. The whole
script is at the end of the email (with initial values for easy
reproduction) and can be pasted directly into R. The problematic part
(which is included below of course) is
<--- Original Mathematica --->
(* p_svbar *)
UiA = Ni (Dsi - 2Di A + A^2)/2;
UiiA = Nii (Dsii - 2Dii A + A^2)/2;
psvbar =
2007 Sep 05
5
RSpec for dummies screencast?
Does anyone know of any RSpec screencasts for dummies, like me :)
I have a Java background, but I have never written a java test in my
life. I''ve never learned about TDD or BDD so I''m totally blank on
everything that has anything to do with testing and stuff.
Where should I start?!? ;)
Christian...
--~--~---------~--~----~------------~-------~--~----~
You received this
2006 Oct 03
8
Ferret install, rake failing on make
I''m currently trying to install the latest version of Ferret (0.10.9)
on my Ubuntu Dapper (6.06) system. I have tried the gem, but it does
not generate the ferret_ext.so file. Ideally I would prefer to install
from the gem, but if source works, I''m fine with that too.
I am now trying an install from source, but when I run the command ''$
rake ext'' I get the
2007 Sep 07
7
Simple websites (no DB?) with Rails??
I have been learning Rails and building small things over the last
several months. Question I have that has been surprising difficult to
figure out is this (I know it seems somewhat nonsensical but ignore
that). I recently started getting a few requests for basic website to
be built, small businesses, stores, even individual people. How would
one about doing such a thing using Rails? I may not