search for: some_value

Displaying 20 results from an estimated 21 matches for "some_value".

2010 Feb 02
0
[LLVMdev] jit X86 target compilation callback bug
...rent code sets stack pointer to invalid value in > instruction "and   esp,  16". Depending on current stack pointer value > it sometimes overwrites ecx and edx registers with next three lines. How so? The stack grows downwards, thus this realignment just equivalent to "sub esp, some_value" with some_value being less than 16. We don't use register save area inside the compilation callback, however, since we're generating stubs "by hands". > We have fixed this problem by changing this instruction to "sub  esp, > 8" (8 because this function needs...
2010 Jul 11
1
difficulty with R expressions in text/legend
...x and y objects, then displays them in the plot legend with colored boxes adjacent to them. now the hard part (for me, at least :-/), i'd like to add some text (e.g. "data set 1" and "data set 2") to each line of the legend, right before the typographically-displayed R^2 == some_value text. basically, a legend that looks like so (with the expression part evaluated and typed out correctly): data set 1 R^2 == some_value data set 2 R^2 == some_other_value i've tried a seemingly countless number of paste/substitute/expression combinations, but cannot seem to get what i'd l...
2010 Feb 02
3
[LLVMdev] jit X86 target compilation callback bug
Hi! We are running llvm jit x86 on MS Visual Studio 2005. It seems there is a bug in asm code in function X86CompilationCallback in file X86JITInfo.cpp. Current code sets stack pointer to invalid value in instruction "and esp, 16". Depending on current stack pointer value it sometimes overwrites ecx and edx registers with next three lines. We have fixed this problem by changing this
2006 Apr 26
6
Immediate help needed
I have posted this previously also but haven''t received any help. So, if somebody could look into it and guide.. I want to validate the extension of files that I am uploading. Like I want only the doc/pdf files to be uploaded.. Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2008 Feb 21
7
looping through a list
what is the proper way to loop through a list in a rails view (assuming that you need to check if it is empty or not) -- 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, send email to
2010 Oct 01
3
scoping goes wrong when some functions are used within others.
...on stackoverflow.com, and couldn't but notice there are quite some questions popping up that deal with scoping in relation to custom functions. I grinded my teeth on it already, and I have absolutely no clue what goes wrong. The general pattern is as follows : ff <- function(x){ y <- some_value some_function(y) } > ff(x) Error in eval(expr, envir, enclos) : object 'y' not found I tried to report this as a bug earlier, but got the message I used the wrong channel. I also don't know how to formalize it into a bug report on the report site. That's why I bring it to y...
2010 Jun 29
2
[LLVMdev] Confuse on getSCEVAtScope
...nd Loop1 are brothers (loops at the same level of the loopnest), and Loop0 have a computable backedge taken count. when i call getSCEVAtScope({{(32 + @edge.8265),+,32}<Loop0>,+,4}<Loop1> , Loop1), it just give me a {{(32 + @edge.8265),+,32}<Loop0>,+,4}<Loop1>, instead of {some_value, + ,4}<loop0>, where some_value is getSCEVAtScope({(32 + @edge.8265),+,32}<Loop0>, Loop1). because Loop0 have a computable backedge taken count, some_value should not be a SCEVAddRec. and later i have a look computeSCEVAtScope, and see the function do not do any thing when AddRec->g...
2007 Jun 11
5
string conversion?
...nverting the "/" to "_" for that filename. I don´t really see a way to manage this file dynamically, when I want to talk to puppet about that file: file {"$variable": whatever => "$stuff"} puppet talks about the file "some/value" and not "some_value" as the script generated - so I need something string conversion like to tell puppet to replace the chars like the script does. Is there any way to do this? Thanks a lot for your help! _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https:...
2011 Nov 22
4
Data Frame Search Slow
...e on the internet once I get to the bottom of this. Basically, the set-up to the problem is like this: 1. I have a data frame with dim (2547290, 4) 2. I need to make SQL like lookups on the dataframe. I have been using the following sort of syntax: a.dataframe[a.dataframe[[column_index]] %in% some_value, ] 3. This process takes quite a lot of time (~2 seconds) on m1.small instances AMIs (AWS) So, I hope I can get that look-up/search logic quite a lot faster. I have heard that using matrices is the way to do it but I haven't found any resources on performing that sort of operation specifica...
2006 Apr 30
0
latest cvs head makes api more strongly typed
In previous versions the following would work as you expect with a dynamic language like Ruby. Method signature of wxGrid::SetRowLabelSize void SetRowLabelSize(int width) ex. gird = Wx::Grid.new(....) grid.set_row_label_size(some_value*0.5) which Ruby translates to gird = Wx::Grid.new(....) grid.set_row_label_size((some_value*0.5).to_i) In the latest cvs head you get this error: `set_row_label_size'': in method ''SetRowLabelSize'', argument 2 of type ''int'' (TypeError) Basically the im...
2002 Sep 23
1
calling a DLL/shared lib from R directly?
...I have a function like: void __stdcall testfunc2( unsigned long a, double b, unsigned long c ) { return a * b * c; } or=20 subroutine fortran_2002_bh_age (sp,site,total_age,bh_age) integer*2 sp real*4 site=20 real*4 total_age integer*2 bh_age real*4 x bh_age =3D some_value end subroutine I have been able to make it happen from the "writing R extensions" docs. = It pretty important that this library be R independent.=20 I only get the digest version, so if you answer, could you send a copy = to my email address please? Thanks, Jeff. -.-.-.-.-.-...
2010 Feb 03
2
[LLVMdev] jit X86 target compilation callback bug
...ck pointer to invalid value in >> instruction "and   esp,  16". Depending on current stack pointer value >> it sometimes overwrites ecx and edx registers with next three lines. > How so? The stack grows downwards, thus this realignment just equivalent > to "sub esp, some_value" with some_value being less than 16. > We don't use register save area inside the compilation callback, > however, since we're generating stubs "by hands". > >> We have fixed this problem by changing this instruction to "sub  esp, >> 8" (8 becau...
2008 Jun 12
4
Background thread - entension code - switch contexts
Hi, I am using wxRuby 1.9.7 and Ruby 1.8.6. I have built an extension in C++ and used swig to load it into Ruby interpreter, which works great. The extension is an often long executing algorithm, and I''ve noticed that if I fork a new Ruby thread in button clicked event, and in this thread run the algorithm the application freezes for the time of execution. I have looked through the
2006 May 18
4
Problems using ''select''
...39;'owner'', @users.collect {|u| [u.name, u.id]}, {:include_blank => true} My problem is that when I select some "owner" and submit the form it does not make current owner selected in combo box. >From Rails documentation I understood that you had to have @filter.owner = some_value to make it selected, but it doesn''t seem to work. Maybe this is only for ActiveRecord descendants? TIA, Domas Savickas
2007 Mar 05
1
Setting Sip Headers From Dial App?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This might sound strange, but is there anyway for Asterisk to set extra sip headers based on a sip phone returning a 302 in a dialplan? Example: PSTN => Asterisk => SIP-Phone, SIP-Phone returns 302 Redirect, Asterisk sets X-Something: Some_Value & X-Somethingelse: Some_Other_Value, then sends the new invite with added headers. Stu Sheldon ACT USA - -- Randomly Generated Fortune Tag: Q: How do you catch a unique rabbit? A: Unique up on it! Q: How do you catch a tame rabbit? A: The tame way! -----BEGIN PGP SIGNATURE----- Version: GnuP...
2006 Aug 01
2
Partial Naming Madness
Hi, I am having the following issue with a partial. During initial page load, I am doing a "render_partial_collect ''foo'', @foos", and all goes well. Each foo partial makes use of a variable inside called ''foo'' (and can get foo.id etc). After all the partials are loaded, I need to :update a div corresponding to one of the partials (ie re-load the
2006 Aug 01
5
how do set default value for ActiveRecord fields?
Everytime a new record object is created i.e. Record.new, i want certain fields to be the same. Any idea how to do this? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2009 Mar 04
5
how to create many variables at one time?
Hi: I need to create many variables at one time,how to do this in R? for eg ,X1,X2.......X100? Thanks~ [[alternative HTML version deleted]]
2006 Apr 06
9
How to get Form values in RubyOnRails
Hi I want the FORM values on my controller.i.e. I want the values of login_loginname(Form variable) and login_password(Form variable) on login_controller.rb How can i do that? Table Name is: logins Model:: Login.rb Controller:: login_controller.rb Below is my test form loginname password Hoping for reply Regards Parikshit
2011 Dec 22
8
Managing sensitive strings with puppet
I''m new to Puppet, and I''m a software developer, not a sysadmin, so be gentle. I have puppet managing some files via templates, and one of the template variables that needs to be plugged in is a password of sorts that shouldn''t be generally available. In particular, it can''t be stored in the manifest, as that''s stored in version control, and the