Displaying 11 results from an estimated 11 matches for "do_thi".
Did you mean:
do_this
2006 Jun 05
2
Simple Rake question
Newbie question but here goes:
Isn''t rake supposed to automatically search the lib/tasks subdirectory for Rake files/tasks?
I have a task called "do_this.rake" in file foo.rake in lib/tasks/rails - how do I invoke it from the command line in the root directory of my Rails application?
Presuming I have a file called "Rakefile" in the root directory of my Rails application, is there something special that needs to be in it?
Thanks fo...
2020 Nov 02
0
[PATCH v2 1/8] mm: slab: provide krealloc_array()
On Mon, Nov 02, 2020 at 04:20:30PM +0100, Bartosz Golaszewski wrote:
> +Chunks allocated with `kmalloc` can be resized with `krealloc`. Similarly
> +to `kmalloc_array`: a helper for resising arrays is provided in the form of
> +`krealloc_array`.
Is there any reason you chose to `do_this` instead of do_this()? The
automarkup script turns do_this() into a nice link to the documentation
which you're adding below.
Typo 'resising' resizing.
2010 Dec 01
5
Pass an operator to function
Hi guys,
How to pass an operator to a function. For example,
test <- function(a, ">", b)
{
return(a>b) #the operator is passed as an argument
}
Thanks,
--
View this message in context: http://r.789695.n4.nabble.com/Pass-an-operator-to-function-tp3066627p3066627.html
Sent from the R help mailing list archive at Nabble.com.
2012 Oct 18
3
[LLVMdev] SimplifyCFG vs loops
...analysis pass. Basically, we're using LLVM as an
optimization framework for a SIMD language, and the difficulty with the
unwanted loop transformation comes when we have code like this:
while (uniform_and_expensive_condition_with_side_effects())
{
if (cheap_varying_condition())
do_this
}
If this gets transformed to something like this (which is similar to the
example I posted in the earlier thread):
while () // outer loop
{
while () // inner loop
{
if (!uniform_and_expensive_condition_with_side_effects())
return;
if (cheap_varying_...
2009 Aug 19
2
Create! Syntax
Hey All,
Two questions.
Firstly, what is the difference between create and create!
I see that create is document in the api
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002269
What is the difference between the two of these functions and where is the
create! function defined.
Also,
What are the differences between these two calls?
a) SomeModel.create!{ :property_a =>
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
2012 Oct 18
0
[LLVMdev] SimplifyCFG vs loops
On Thu, Oct 18, 2012 at 10:12 AM, Andrew Clinton <andrew at sidefx.com> wrote:
> I actually submitted a patch to fix this very problem quite a while back,
> but I don't think it was ever added to the baseline:
>
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110711/124136.html
>
> I have also explained why it is important to avoid the creation of new
2012 Nov 20
0
[LLVMdev] SimplifyCFG vs loops
...m analysis pass. Basically, we're using LLVM as an optimization framework for a SIMD language, and the difficulty with the unwanted loop transformation comes when we have code like this:
while (uniform_and_expensive_condition_with_side_effects())
{
if (cheap_varying_condition())
do_this
}
If this gets transformed to something like this (which is similar to the example I posted in the earlier thread):
while () // outer loop
{
while () // inner loop
{
if (!uniform_and_expensive_condition_with_side_effects())
return;
if (cheap_varying_c...
2012 Oct 18
2
[LLVMdev] SimplifyCFG vs loops
I actually submitted a patch to fix this very problem quite a while
back, but I don't think it was ever added to the baseline:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110711/124136.html
I have also explained why it is important to avoid the creation of new
loops in an optimizer that performs analysis on the looping structure.
I now need to keep this patch updated
2012 Aug 11
8
Pass array to a define
How can I pass an array to a define? It''s not documented in the puppet
language guide.
I''ve got:
define lvm::create_vg ( $pvdisks ) {
exec {
''pvcreate'':
command => "/sbin/pvcreate -yf $pvdisks",
unless => "/sbin/pvdisplay $pvdisks",
...
}
}
class someclass {
lvm::create_vg {
2010 May 03
7
rendering images dynamically
Hi,
I have a rails application where I respond to a request by fetching
image urls from various web api calls and need to display them as they
come available. I am able to display all the images once I get them
all, but that causes an unacceptable delay for my user.
One approach I am trying is, from my controller, set an @image
variable, and then pass in a block to the model that retrieves the