search for: my_var

Displaying 20 results from an estimated 26 matches for "my_var".

Did you mean: my_car
2007 Jan 12
4
FW: Get dialed numbers in AGI
On 1/11/07, Mike D'Ambrogia <miked@jamagination.com> wrote: > > Ralph > > Kind of new to asterisk, and really new to AGI but it looks like you were > trying to have the AGI script tell asterisk to read and lay the results into > my_var and then regain control in the AGI script, is that correct? > > If so I don't think that will work since the dialplan variables are only > exposed/visible when you start the AGI script, since you are still within > the AGI script you'll probably never see my_var if called this w...
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
...e'' and pass the value of a javascript variable as an argument. Something like that: link_to_remote "my_link", :update => ''my_div'', :url => { :action => "my_action", :var => ''my_var'' } Basically, ''my_var'' is a javascript variable which I want to pass to ''my_action''. This, of course generates: <a href="#" onclick="new Ajax.Updater(''my_div'', ''/xyz/my_action?var=my_var'', {as...
2007 Jan 10
2
Get dialed numbers in AGI
Hi, I'm trying to write a AGI in PHP to get the numbers dialed (with read()), save it into a variable to insert it into a SQL server database. But I cannot see results into the variable, it always return NULL. Here is a piece of the AGI. fwrite(STDOUT,"exec Read my_var|/sound_to_play|5|||15 \n"); fflush(STDOUT); $conn=odbc_connect('MSSQL', 'USER', 'PASS'); $query = odbc_exec($conn, "INSERT INTO dialed(number) VALUES('$my_var')"); Even if I only show my_var value or try to use it inside asterisk, the value is NULL. T...
2006 Jul 04
4
adding 0 to beginning of a number
Hi Is there a quick way to add 0 to the beginning of a number if it only has one digit? ie 1 should be 01 11 should stay as 11 (These int''s can be transferred to a string) Thanks -- Posted via http://www.ruby-forum.com/.
2009 Feb 20
6
How to mock an object defined in the before_filter function?
...t; returns true/false and @comment initialization is done inside it. Could you please give me a hint how to do it? One solution would be to use Comment.stub!(:find).and_return(@comment) and do not use the stub find_comment. But how to do it in general, when there is no expression like "@var = my_var.function" in the controller and variable @var is defined in another place and controller just uses it. my_var.stub!(:function).and_return(@var) doesn''t seem to be working. Is there is something like my_var.stub!(:function).add_variable(@var).and_return(:true) ? Thank you, Evgeny ===...
2008 Mar 02
1
Problem plotting curve on survival curve (something silly?)
...l Regression However for now I've borrowed a dataset from the BMJ (CSV tabs seperated version here: http://www.wittongilbert.free-online.co.uk/HepatitisData.csv ) and am trying to plot some curves. I've succeeded in plotting a Kaplan-Meier Survival Curve by using the following: > my_var.bygroup <- survfit(Surv (Survival, Censored==0) ~ TreatmentGroup, data=TestData) > plot(my_var.bygroup, conf.int=FALSE, col=c("black","grey"), lty=1:2, legend.text=c("Placebo","Prednisolone"), main="dKaplan-Meier Survival Curve", xlab=&qu...
2012 Sep 18
2
Access block scope from AR object
I need to create a sort of transaction around some Active Record objects that perform many insert/updates. Example: class MyObject def transaction &block @my_var = value self.instance_eval block end end MyObject.new.transaction do Model.create Model.collection.create etc...... end I have a gem that add a method into AR::Base and I need to read the variables setted by the transaction inside the method at runtime. Any way...
2006 Aug 08
3
How Create New Parameter set at Start Time?
I would like to be able to set a paramter during start up like: ruby script\server -nodename testNode_1 ... and would like to have access to this setting from models and/or controllers. Can someone point me in the right direction to get this working? Regards -- Posted via http://www.ruby-forum.com/.
2006 Mar 24
1
Bug (or feature?) in association_proxy: attributes in conditions
Hi List, When I do something like belongs_to :thing, :conditions => ''var = #{my_var}'' method_missing in association_proxy.rb gets recursively called. Are these bind-style vars not allowed? Given the code in the conditions method of association_proxy.rb, it looks lilke they''re meant to be. I''m running -v 4021 of rails. Cheers, Ian
2006 Aug 04
3
Pass a variable via Link To
Can anyone tell me how to pass a value from a link_to in a view to a controler? The value is just a piece of text for the time being. <%= link_to ''About Us'', :action => ''about'', :params => ''string'' %> ??? -- Posted via http://www.ruby-forum.com/.
2018 Nov 16
2
[LNT] How to set an env var before executing a test?
So you're referring to llvm_test_prepare? There aren't many examples of that being used. I tried adding a call to it in my test directory's CMakeLists.txt like so: llvm_test_prepare(WORKDIR ${CMAKE_CURRENT_BINARY_DIR} export MY_VAR=42 ) In the hopes that something would happen, even an error, but it had no effect. Nothing at http://llvm.org/docs/lnt/tests.html explains how to use these cmake macros, so I'm looking at test-suite/External/SPEC/CINT2000/175.vpr/CMakeLists.txt for an example. The tests that I have added ar...
2014 Oct 13
3
[LLVMdev] RFC: variable names
...> "lower_case" names. > > This also happens to be the vastly most common pattern across all C++ coding > styles and C-based language coding styles I have seen. STL has "lower_case" functions, and exposes far fewer variables. I can't really recall which of myFunc/my_var or my_func/myVar I've seen more elsewhere though. Tim. (Not advocating anything in particular yet).
2006 Feb 01
8
ruby equivalent of isset()
Hi, Is there a way to test if a certain (local) variable has been initialized? I''d like to do something like if isset(myvar) and myvar.true? #some code else #default behaviour end I have a lot of shared views that I call with params such as { show_pager => true Instead of having to explicitly say show_pager => false it should be possible to make false a default value, right?
2012 Oct 29
1
Nut-upsdev Digest, Vol 88, Issue 22
...oor) syntax analysis and is more C-suited; with certain C++ constructs, it fails quite flagrantly (at least the version I've used), an example being instantiation of a static object with global visibility scope, using constructor with arguments, e.g. something like this: MyClass my_var(arg1, arg2); doxygen misinterprets this as declaration of a function and requires you to document the parameters (you need to get rid of that using \cond and therefore you loose the possibility of documenting the variable). However, it's still the best I know. vasek On Sat, 2...
2014 Mar 11
2
[LLVMdev] [RFC] Section Declarations in LLVM IR
...Sections don't have visibility, Values may disagree with one another about how visible they are. - Sections have attributes annotating what semantics they provide (read, write, execute, etc.) A concrete example of a const variable inside of a read-only section: $.my_section = appending read @my_var = constant float 1.0, section $.my_section, align 4 The following is how I imagine MS RTTI would look like if we had this IR construct: $.vdata_for_type = pick_largest read @my_rtti_for_type = pick_largest unnamed_addr constant %rtti_ptr_ty @rtti_complete_object_locator, section $.vdata_for_type,...
2006 Jun 23
0
ActiveRacord::Base find does not support HAVING ?!
Hi, I''m new to Ruby/Rails and trying to do something like: options = { :select=>''t1.*, count(c2)'', :joins=> ''AS t1 LEFT JOIN t2 ON t1.ID=t2.t1_id'', :group=> ''t1.id'', :having=> "count(c2) = #{my_var}" } T1.find(:all,options) But I got the following error: ArgumentError in T1Controller#action1 Unknown key(s): having lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_...
2007 Feb 08
1
RJS throwing 'rubycode' exception
...mes = ["ruby", "ajax"] page << "alert(#{names.to_s})" still not working. Also, it is possible to assign a JS variable''s value to a ruby variable? Like this pseudo code: index.rjs ========= page << "js_var = document.getElementById(''my_var'').value" ruby_var = js_var Thanks a lot. -- Mark -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group...
2018 Jul 03
3
Unset a given SendEnv?
G'day openssh-unix-dev, is there a way to unset a 'SendEnv' given by /etc/ssh/ssh_config? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20180703/b93c146e/attachment.asc>
2007 May 04
1
Help with map
I have just learned how to play with map, but something weird (or not) is happening. Suppose I want to draw a map of two countries (that have disconnected components), like Argentina and Brazil. If I command: library(maps) library(mapdata) map("worldHires", c("Argentina", "Brazil")) It works fine. However, if I want to _colour_ the interior:
2007 Nov 02
3
use dial plan passed arg value in C agi code
Hello * users, I know that passing variable in the AGI script is by exten => _.,1,AGI(simple_c_prgm|123|789) ; 123, 789 are arguments being passed and simple_c_prgm is C code Now how will I receive these variables within C code ? Is it by the same way arguments are passed in command line to C by using argc and argv or there is more to be done than that? Thanks Regards -- Arpit Mehta