Displaying 20 results from an estimated 10588 matches for "params".
Did you mean:
param
2012 Sep 16
1
Possible Improvement of the R code
Dear all,
In the following code, I was trying to compute each row of the "param"
iteratively based
on the first row.
This likely is not the best way. Can anyone suggest a simpler way to
improve the code.
Thanks a lot!
Hannah
param <- matrix(0, 11, 5)
colnames(param) <- c("p", "q", "r", "2s", "t")
param[1,]
2006 Aug 08
3
params object nil in controller action
Hi All
I am trying to implement a Back to Search Results functionality, by storing
the user''s search criteria (params) in session and then reusing those
params instead of request params when user clicks on "Back to Search Results
link". here is my code
________________________________________________________________________
def search
if session[:incidentSearch].nil? or session[:incidentSearch].emp...
2003 Jul 27
2
Samba Betas not building, cvs or provided tar archives
...eating /var/installer/samba/source/client/client_proto.h
creating /var/installer/samba/source/utils/net_proto.h
Compiling param/loadparm.c
make[1]: Entering directory `/var/installer/samba/source'
make[1]: Leaving directory `/var/installer/samba/source'
Compiling dynconfig.c
Compiling param/params.c
In file included from dynconfig.c:21:
include/includes.h:890:19: proto.h: No such file or directory
In file included from param/loadparm.c:54:
include/includes.h:890:19: proto.h: No such file or directory
In file included from param/params.c:82:
include/includes.h:890:19: proto.h: No such file or...
2006 Aug 09
1
strange - params.nil? true in controller
Hi All
I am trying to implement a functionality where a user clicks on "Back to
Search Results" link he is taken to the search result screen. For this I am
storing his search criteria (params object) in session. Here is my code
______________________________________________________________________________________________________________
*def* search
logger.debug("params.nil?=#{params.nil?}") # this prints ''params.nil?=*false''
<=== params is NOT nil at t...
2007 May 30
0
[PATCH] added comments
- added lots of comments, discussed comments with ahuillet and refined comments
- replaced two constants with MACROs
- no changes to actual code
diff --git a/src/nv_video.c b/src/nv_video.c
index cf4f88d..d9ee700 100644
--- a/src/nv_video.c
+++ b/src/nv_video.c
@@ -25,6 +25,15 @@
#include "nv_include.h"
#include "nv_dma.h"
+/*
+2046 is the maximum image size in one
2008 Apr 11
4
request.params causing errors
Hello,
I have a rhtml file that goes through the request.params. One of my test
generates that file, but rspec pops an error saying :
undefined method ''params'' for ...
I''m not sure what to do with this, since request.params actually works with
rails.
Any idea?
Thank you
Olivier Dupuis
-------------- next part --------------
An H...
2013 Jan 24
4
Dependency Cycle with puppetlabs-mrepo
...uot;role classes" and hiera :
I''m trying to mirror RHN repos :
# ROLE CLASS
> class site::yum_repository{
>
> $repos = hiera(''site::yum_repository::repos'')
> create_resources(mrepo::repo::rhn, $repos)
> }
>
# HIERA DEFAULTS
> mrepo::params::src_root : ''/srv/mrepo''
> mrepo::params::www_root : ''/srv/www/mrepo''
> mrepo::params::user : ''apache''
> mrepo::params::group : ''apache''
> mrepo::params::mailto : ''UNSET&...
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following:
Login:
User.authenticate(@params[:user_login], @params[:user_password])
Signup
User.authenticate(@user.login, @params[:user][:password])
The syntax of the call in the signup code confused me...what exactly
does @params[:user][:password] this return to me? Is the params
structure a multi-dimensional array? I would have thoug...
2012 May 02
3
strange differences in vector operation versus manual calculation
...to the final
answer.
Algebraically, they should give me the same result. But the final
vector differs significantly. I must be missing something very
obvious, but I just cannot see it
xx <- c(-9.56305825951348, -8.20220288142583, -6.84134750333818,
-5.48049212525052,
-4.11963674716287)
params <- structure(c(-7.9292094394, 4.9549173134, 4.738588416, 101.5743644892
), .Names = c("LOG_AC50", "HILL_COEF",
"INF_ACTIVITY", "ZERO_ACTIVITY"
))
yy <- params[4] + (params[3] - params[4])/(1 + 10^(params[1]...
2006 Nov 11
2
Bayesian question (problem using adapt)
In the following code I have created the posterior density for a Bayesian
survival model with four parameters. However, when I try to use the adapt
function to perform integration in four dimensions (on my old version of R
I get an error message saying that I have applied a non-function, although
the function does work when I type kernel2(param0, theta0), or on the
newer version of R the computer
2008 Aug 17
2
Optim stripping attributes from relistable objects
...but in many cases you would like
to use a complex structure inside the objective function- relist is
one way to do that. The problem is that optim appears to be stripping
the attributes and therefore the example doesn't seem to run, giving
the error at the bottom.
> rb.banana <- function(params) {
+ #Params is initially a vector
+ cat("Params initially has the attributes:\n")
+ print(names(attributes(params)))
+ #Relisting it turns it into a list...
+ params <- relist(params)
+ cat("---------\n")
+ #..which can then be called in the standard list manne...
2006 Oct 11
2
Help please with observe_form - not working
...look and see if I"m doing something wrong. TIA
Form:
<% start_form_tag({:action => "livesearch"},
:id => "asearch") %>
<div id="parta">
<fieldset><legend>Category</legend>
<select name="cat", @params[''cat''][],size="2" multiple="multiple"><%=
options_from_collection_for_select @categories, :id, :name
%></select></fieldset>
<fieldset><legend>State</legend>
<select name="stat", @params[''stat'...
2006 Feb 19
8
building multiple find conditions
I am trying to allow for AND type ''find'' but to allow for simply a
single set of find criteria.
controller code...
@vw_string = @vw_string1 = @vw_string2 = @vw_string3 = []
if params[:beg_intake_date] != "" then
@vw_string1 = ["intake_date between ? and ?",
params[:beg_intake_date], params[:end_intake_date] ]
end
if params[:beg_referral_date] != "" then
@vw_string2 = ["referral_date between ? and ?",...
2006 Aug 12
0
params object NULL/nil in controller - is this a bug?
Hi All
I am trying to implement a functionality where a user clicks on "Back to
Search Results" link he is taken to the back to search result screen.
For this I am storing his search criteria (params object) in session.
Below is my code, for the first time when the user performs a search,
there is no result data in session so the execution enters first
if...... see below
______________________________________________________________________________________________________________
def searc...
2006 Jun 13
17
reconstituting a date
In my view code, I have <%= datetime_select "in_out", "time_in" %>
which returns in params
:in_out: !map:HashWithIndifferentAccess
time_in(1i): "2006"
time_in(2i): "6"
time_in(3i): "12"
time_in(4i): "20"
time_in(5i): "24"
and I want to save that datetime to a column in the db...
if params[:user][:in_out] == &q...
2006 Apr 23
2
pass the params please
I''m not figuring out an easy way to do this.
I''m trying to paginate and keep the params from my ''find'' without making
it a fully blown method.
my params are
[:right][:name]
[:right][:controller]
[:right][:action]
view code is relatively simple pagination stuff...
<%= link_to ''Next page'', {
:page => @right_pages.current.next,
:params...
2006 Jul 18
5
a best way to write this.
I have a form, with 3 fields, then in my controller I get the paramters
to run a query but I don''t want to filter with paramters if they are
nil or blank...
I''m doing this
@condition = ''''
if(params.....)
@condition = @condition + " myparamter = " + params[.....
if(params.....)
@condition = @condition + " myparamter = " + params[.....
if(params.....)
@condition = @condition + " myparamter = " + params[.....
but there is a best way to do this? more simp...
2007 Jun 22
0
[1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2013 May 23
0
RHEL6 implementation running slow
...[ADND] workstation=[workstation] len1=24 len2=160
[2013/05/23 10:19:16.405235, 3] param/loadparm.c:9572(lp_load_ex)
lp_load_ex: refreshing parameters
[2013/05/23 10:19:16.413957, 3] param/loadparm.c:5192(init_globals)
Initialising global parameters
[2013/05/23 10:19:16.415016, 3] ../lib/util/params.c:550(pm_process)
params.c:pm_process() - Processing configuration file "/shared/samba/3.6.15/lib/smb.conf"
[2013/05/23 10:19:16.415632, 3] param/loadparm.c:8310(do_section)
Processing section "[global]"
[2013/05/23 10:19:16.416316, 2] param/loadparm.c:8327(do_section)
P...
2006 Aug 19
3
Special ruby language for describing sql conditions
...ns in an
sql query, when the numbers of attributes increase, so does the uglyness.
So instead of passing a hash, I thought you could specify the conditions
directly in code.
I hacked together some example code which actually turned out to work.
The result is concise and pretty beutiful.
def search(params)
Ad.find(:all) do |conditions|
conditions.area_id = params[:area_id] if params[:area_id] &&
params[:area_id].to_i > 0
conditions.kind = params[:kind] if params[:kind]
conditions.selling = params[:selling] || 1
conditions.approved > 1
conditions.year.include?(2004...