search for: param1

Displaying 20 results from an estimated 121 matches for "param1".

Did you mean: param
2006 Apr 06
4
function onComplete how to overload?
...tion one more parameter, how to do it? is is possible? I can''t use AJAX Updater because result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I don''t know id of my html element. I need to do something like this: funcion onComplete(originalResponse,param1) { if (param1 != something) $(''result'').value = originalRequest.responseText; else $(''resultSecond'').value = originalRequest.responseText; } How to achieve this? ---------------------------------------------------- W kwietniowym numerze "Zwierciadła...
2010 Sep 21
2
multiplying values in data frame by corresponding value in the first column
...need to mutliply each observation in all the other columns of the data frame by the corresponding value in the given column. I played with apply, and saw some suggestions for sweep, but did not manage to get it working. My table contains NAs.... Example of table as data frame Observation Group Param1 Param2 AA 1 3 4 BB -1 5 6 Expected result: Observation Group Param1 Param2 AA 1 3 4 BB -1 -5 -6 group<-as.vector(table$Group) I extracted the first column into a vector, and am...
2010 Aug 30
2
while loop until end of file
Hi Guys, stumped by a simple problem. I would like to take a file of the form Pair group param1 1 D 10 1 D 10 1 R 10 1 D 10 2 D 10 2 D 10 2 D 10 2 R 10 2 R 10 etc.. and for each pair, calculate the average of param...
2012 Jul 31
3
Access @resouce in custom type
Is it possible to access @resource variables inside a type? I would like to make some decisions on parameters based on other parameters that may have already been set. For example, --- newparam(:param1) do Puppet.debug "Found drivesperarray parameter" desc "parameter 1" validate do |value| if resource[:otherparam] then #dosomething else resource[:param1] = 0 end end Puppet.debug "Parameter 1 is: #{@resource[:param1]}&q...
2008 Mar 10
5
Passing extra parameters to functions called from Observers
...39;'validateForm'' function is called and is automagically passed the ''event'' to work with. This is fantastic! But is there a way to pass another argument to the function? Something like: $(''myForm'').observe(''submit'', validateForm, param1, param2); etc? Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To un...
2006 Sep 15
3
How to catch a parameter that contains a full url
Hi I need some help! I have controller that I need to pass a full url (with its own parametrs) as a parameter, e.g. I want to call my controller with: /mycontroller/catchurl?url=http://somedomain.com/afile.jsp?param1=xx&param2=yy and in action "catchurl" in mycontroller.rb I would like to have params[:url] to be "http://somedomain.com/afile.jsp?param1=xx&param2=yy" I guess that one could do something smart with map.connect but so far I have failed completely. Is there anyone that...
2012 Jun 25
3
Loop for multiple plots in figure
Hello, I have longitudinal data of the form below from N subjects; I am trying to create figure with N small subplots on a single page, in which each plot is from only one subject, and in each plot there is a separate curve for each value of param1. So in this case, there would be four plots on the page (one each for Bob, Steve, Kevin and Dave), and each plot would have two separate curves (one for param1 = 1 and one for param1 = 0). The main title of the plot should be the subject name. I also need to sort the order of the plots on the pag...
2009 May 13
0
[LLVMdev] using bugpoint
I am trying to use bugpoint to reduce the bytecode for a bug in one of my transformations. Normally I run opt as such: opt -load=libmine.so -mypass -param1 -param2 -o b.bc a.bc Here, -mypass specifies a pass and -param1 and -param2 are just parameters that -mypass uses. I added them using the command line parsing library that llvm supports. I tried running bugpoint with the following: bugpoint -load=libmine.so a.bc -mypass -param1 -param2 Howe...
2008 Jun 12
1
XML parameters to Column Headers for importing into a dataset
Dear List, Do you know any way I can convert XML parameters into column headers. My data is in a csv file with each row containing a xml form of data , and multiple parameters ( <param1> data_val1 </param2> , <param2> data_val2 </param2> ) I want to convert it so each row caters to one record and each parameter becomes a different column. param1 param2 Row1 data_val1 data_val2 What is the most efficient way for do...
2007 Nov 19
3
link_to and GET parameters
Hi, I am trying to generate a link to external site with GET parameters ( in new window). I tried following code, but it does not produce any parameters. <%=link_to "Open New Page", "https://www.foo.com/page/", {:popup => true}, {:param1 => "value1", :param2 => "value2"}%> and <%=link_to "Open New Page", url_for("https://www.foo.com/page/", {param1 => "value1", :param2 => "value2"}) , {:popup => true}%> Can anyone tell me what is wrong with my c...
2008 Jul 17
2
problems with validation on STI
I have the following STI table: def self.up create_table :distributions do |t| t.string :type t.integer :simulation_id t.string :dist_name t.string :desc, :default=> ''fixed'' t.float :param1, :default => 5.0 t.float :param2, :param3 t.timestamps #fields for RscDist t.integer :resource_id #fields for LoadDist t.integer :load_id end end My model file looks like this: class Distribution < ActiveRecord::Base validates_presence_of :de...
2008 Apr 15
0
routing problem: map.testroute ":param1/:param2-:param3-:param4.html"
hi, I''m trying to create meaningful urls with routing extracting all params as specified: map.testroute ":param1/:param2-for-:param3.html" However this approach totally fails - it says Routing Error, No route matches "/aaaa/bbbb-for-ccc.html" with {:method=>:get} Then while browsing source code and some googling I''ve found that there is sth called ActionController::Routing::SEPAR...
2005 Oct 06
8
accessing extra request parameters
hi all, how are other people passing and accessing ''get'' parameters from their apps? what is the best way to do it? ie: www.example.com/controller/action/id/extra/extra2/ ?? or www.example.com/controller/action/id/~extra/extra2/ or what ever.... are there built in methods for passing and accessing extra parameters? thanks for your suggestions -felix
2014 Jun 30
3
[LLVMdev] LLD dynamic compilation
...0x7fffffffde40) at /home/rengolin/devel/llvm/src/llvm/tools/lld/unittests/DriverTests/InputGraphTest.cpp:197 #1 llvm::function_ref<void(lld::File*)>::callback_fn<InputGraphTest_Observer_Test::TestBody()::<lambda(lld::File*)> >(intptr_t, lld::File *) (callable=140737488346688, param1=<optimized out>) at /home/rengolin/devel/llvm/src/llvm/include/llvm/ADT/STLExtras.h:117 #2 0x00000000005b3ec4 in operator() (param1=<optimized out>, this=0xa1e2a0) at /home/rengolin/devel/llvm/src/llvm/include/llvm/ADT/STLExtras.h:126 #3 callback_fn<llvm::function_ref<void(lld::...
2008 Jun 11
2
MLE Estimation of Gamma Distribution Parameters for data with 'zeros'
...in Ricci's tutorial on fitting distributions with R). Basically, I got the same result as using fitdistr(). Finally I tried using some R code I found from someone with a similar problem back in 2003 from the archives of this mailing list: R code ######################################## gamma.param1 <- shape.mom gamma.param2 <- scale.mom log.gamma.param1 <- log(gamma.param1) log.gamma.param2 <- log(gamma.param2) gammaLoglik <- function(params, negative=TRUE){ lglk <- sum(dgamma(data, shape=exp(params[1]), scale=exp(...
2011 Nov 24
2
da.norm function
Hello all I'm running da.norm function in R for climate data rngseed(1234567) theta1=da.norm(mydata, thetahat, steps=1000,showits=T) param1=getparam.norm(mydata,theta1) As I understand the 1000 steps represent the markov chain values. Is there a way to plot them? Something like plot(1:1000, param1$mu[]). I just can't find a way to extract them out of my theta1. Thank you, Andrey. [[alternative HTML version deleted]]
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb # plug-in support for Camping Apps # require ''lib/camping_plugin'' # override R helper method to your liking :-) module Camping module PluginHelpers def R_with_module(c,*g) p,h=/\(.+?\)/,g.grep(Hash) g-=h raise "bad route" unless u = c.urls.find{|x| break x if x.scan(p).size == g.size &&
2011 Apr 24
2
Multi-dimensional non-linear fitting - advice on best method?
Hello! I have a set of data of the form (x, y1, y2) where x is the independent variable and (y1, y2) is the response pair. The model is some messy non-linear function: (y1, y2) = f(x; param1, param2, ..., paramk) + (y1error, y2error) where the parameters param1, ..., paramk are to be estimated, and I'll assume the errors to be normal for sake of simplicity. If there were only one response per input, I would use the nls() function, but what can I do in this case? Many thanks,...
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
...sers with Hiera as the only data binding. But let''s say that within mymodule there is a define mymodule::mydefine that uses variable values from mymodule, let''s say mymodule::parameter1. I need to include mymodule to be able to use it, right? This is the example: class mymodule (param1 = ''default_value'') { } define mymodule::mydefine () { include mymodule ## just to make sure it was parsed before case (mymodule::param1) {blabla} } If you only use Hiera as a data backend, you''re good: if you need to override parameter1, you do it in the hierarc...
2008 Apr 01
3
HTML entities in URLs and urlencoding
We recently received the following bug report for the python-markdown implementation: > The "&" are escaped in URLs. > > An example: > [Link](http://www.site.com/?param1=value1&param2=value1) > > Should output: > <a href="http://www.site.com/?param1=value1&param2=value1">Link</a> > > Currently outputs: > <a href="http://www.site.com/?param1=value1&amp;param2=value1">Link</a> > >...