Displaying 20 results from an estimated 1300 matches similar to: "Question about variable assignments/scoping after render call"
2011 Sep 07
4
rspec testing inheritance
Hello,
Is there any way to test model inheritance in spec?
something like..
it { ChildModel.should < ParentModel }
thanks.
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with
an additional javascript directive?
eg I''d like for an inline javascript to make the form''s div container
hidden as soon as the button is pressed to avoid having it possibly get
pressed again ( sometimes the rails response is slow enough for a user
to think they need to re-press it ).
example:
<div
2017 Jun 15
2
Function Inlining and undef / poison question
On 15 June 2017 at 23:12, John Regehr via llvm-dev <llvm-dev at lists.llvm.org>
wrote:
> Hi Peter, I don't see what you're driving at here. You can perhaps move
> the discussion forward with a complete, compilable example.
>
> John
I don't KNOW for sure, but I think I understand, see below:
>
>
>
> On 6/15/17 11:27 AM, Peter Lawrence via llvm-dev
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
2008 Jul 17
2
[LLVMdev] Casting between address spaces and address space semantics
Hi all,
I'm currently struggling a bit with some problems regarding address spaces and
(implicit) casts. I'll explain some context first and then proceed to the
actual question I'd like to have answered.
In our target platform, we have a number of distinctly different memory banks.
To access these from our C code, we declare a global array for each memory,
with the address space
2008 Jun 05
4
[LLVMdev] Adding DenseMap::FindAndConstruct with a default value
Hi All,
I've been fiddling around with a DenseMap to store cached copies of some
result. In short, I'm doing the following:
It = Map.find(Key)
if (It != Map.end() && It->second != Unknown)
Return It->second;
// do_stuff
return Map[Key] = Result;
However, I this requires two lookups in the hash table, which is not so nice.
Currently, there is no way to write this down so
2008 Jun 04
2
Handling exceptions
Is there a convention for handling exceptions within BackgrounDRb workers?
For example, I have a worker which does some asynchronous data processing
(*not* a scheduled worker) based on some things in the database. However,
if an exception is raised within that worker, then the process for that
worker is killed off. Ideally I would want that worker to just silently
fail and be optimistic that it
2013 May 15
4
hiera - anything better than empty string?
Hi,
starting to use hiera in earnest now (still on puppet 2.6 but planning an
upgrade to 3.x this summer).
the heirarchy looks for fqdn, then network_eth0, then ''default''.
Some of our subnets don''t want to set http_proxy environment variables, the
rest do.
so default.json has a ''http_proxy_url'' key in it, but I want to exclude it
for 10.9.8.7.
Is
2007 Mar 05
1
How to add a custom function to return something to file => content
I''m having a heck of a time with this.
Basically I want to write a custom function that returns a value to the file
content type.
Ex: file { /blah: content => do_stuff(option) }
I looked at the wiki posting but just haven''t been able to figure out how to
make this work.
The first error that I get when I try to actually use ''return'' is:
"return
2009 Jul 20
2
[LLVMdev] x86 unwind support[MESSAGE NOT SCANNED]
Hi Kenneth,
> Is there anything in the current codebase that maps an "unwind"
> instruction to a DWARF unnwinder? Seeing as how (I think) the DWARF
> info is already compiled in, this would be a useful thing.
in llvm from svn an "unwind" instruction is mapped to a call to
_Unwind_Resume. This is no good for throwing a new dwarf exception,
but it does mean that you
2017 Aug 17
2
[PATCH][V2] drm/nouveau: perform null check on msto[i] rathern than msto
On 17/08/17 23:07, Ilia Mirkin wrote:
> On Thu, Aug 17, 2017 at 6:03 PM, Colin King <colin.king at canonical.com> wrote:
>> From: Colin Ian King <colin.king at canonical.com>
>>
>> The null check on the array msto is incorrect since msto is never
>> null. The null check should be instead on msto[i] since this is
>> being dereferenced in the call to
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action,
for example an .rhtml and a .rjs file to handle the view for the same
action?
I suspect not, but this makes me wonder if there a way to call the .rjs
file from within the .rhtml so the statements within it get executed?
Thanks,
Andy
2008 Jul 17
0
[LLVMdev] Casting between address spaces and address space semantics
On Thu, Jul 17, 2008 at 5:08 AM, Matthijs Kooijman <matthijs at stdin.nl> wrote:
> Now, we are using a function which reads a value from one of these memories
> and does some processing. Since we want to execute this function for multiple
> memories, we make it accept a pointer in the generic address space (ie, no
> address space attribute):
>
> void do_stuff(char*
2006 Jun 05
5
Controller-wide instance variable
Is it possible to declare an instance variable in a controller that is
available to every action without defining the variable in every action?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 04
7
Not getting the whole RJS-based partial rendering concept ...
I have been trying all kinds of different ways to produce what I think
should be a simple effect, but have not had any luck yet and apparently
I am not following the general idea...
What I am trying to accomplish is the following (part 1 works and part 2
does not):
1. One of my views has a link_to_remote which updates a div container
with a table of data
my example is
<div
2005 Apr 23
7
Validation question
Hi all,
Is there a way to invoke validations at times other than save, create
and update? I know that I can do this by writing my own validation
checks using errors.add_[blah], but I''d like to leverage the existing
validation code.
What I have is two sets of fields in a record, set A and set B. Both
sets must be validated on record create. However, the trouble is that
after
2007 Dec 18
16
shared behav
hi, i want to make a behavior shared between models, the examples
need to create new instances etc. Is there a way to pass the model
class to the shared behavior?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071218/5b400cc5/attachment-0001.html
2011 Sep 07
4
jquery and ajax query in rails 3
hi people
I don''t know much about ajax - jquery. And right now I need to use
some functionality with them.
In a form (sales model) I have the following code:
<div>
<%= f.label :product_id, "Product" %>
<%= f.collection_select( :product_id, Product.all, :id, :name,
options={} ) %>
</div>
<div>
<%= f.label :price,
2007 Sep 05
2
after_create callback called twice in test env when using fixtures
All,
I''ve been trying to figure out a strange bug in one of my applications
that I think I''ve narrowed down to a problem with rails fixtures. It
seems as though the after_create callback is being run twice when I
save a record. This is only happening a) in the test environment, and
b) when there is a fixture file for that table.
The test below only prints "Doing
2020 May 28
2
Question: llvm-link type merge behaviour of c++ classes
Hi LLVM community,
I'd like to ask a question regarding the behavior of llvm-link:
My code contains Classes which are structurally equivalent but they are totally unrelated and distinct on a c++ point of view.
However, if the compiled IR gets processed by llvm-link, these types are merged together.
My question is: Is this expected behavior or a bug?
To explain it more in detail, a reduced