search for: param

Displaying 20 results from an estimated 10565 matches for "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") p...
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].em...
2003 Jul 27
2
Samba Betas not building, cvs or provided tar archives
...reating /var/installer/samba/source/include/wrepld_proto.h creating /var/installer/samba/source/nsswitch/winbindd_proto.h creating /var/installer/samba/source/web/swat_proto.h creating /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 f...
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...
2007 May 30
0
[PATCH] added comments
...0, "XV_IMAGE", - 2046, 2046, + IMAGE_MAX_W, IMAGE_MAX_H, {1, 1} }; @@ -140,6 +149,13 @@ static XF86ImageRec NVImages[NUM_IMAGES_ALL] = XVIMAGE_RGB }; +/** + * NVSetPortDefaults + * set attributes of port "pPriv" to complied-in (except for colorKey) defaults + * + * @param pScrnInfo screen to get the default colorKey from + * @param pPriv port to reset to defaults + */ static void NVSetPortDefaults (ScrnInfoPtr pScrnInfo, NVPortPrivPtr pPriv) { @@ -155,9 +171,12 @@ NVSetPortDefaults (ScrnInfoPtr pScrnInfo, NVPortPrivPtr pPriv) pPriv->iturbt_709 = FALSE; }...
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...
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 thou...
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 cras...
2008 Aug 17
2
Optim stripping attributes from relistable objects
Dear all, The following code is inspired by the help file for the relist() function (see?relist), which explicitly details how you can use a relistable object in conjunction with optim to pass and reconstruct complex parameter structures/groupings. The idea is that the optim() function can only work with vectors, 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 exa...
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 sear...
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] == &...
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 + "...
2007 Jun 22
0
[1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now
...background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1056</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-06-2...
2013 May 23
0
RHEL6 implementation running slow
...sesssetup_and_X_spnego) NativeOS=[Mac OS X 10.7] NativeLanMan=[SMBFS 1.7.0] PrimaryDomain=[] [2013/05/22 16:51:18.131712, 3] ../libcli/auth/ntlmssp_server.c:348(ntlmssp_server_preauth) Got user=[awetheri] domain=[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 "/...
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?(200...