search for: foo_bar

Displaying 20 results from an estimated 61 matches for "foo_bar".

2006 Apr 04
1
Manipulating has_many :through associations
...forgive my incorrect use of terminology... If I set up a has_many :through association, can I manipulate the associated instances directly (like an Array), or do I need to manipulate the join model? For example, suppose I have two classes and the associated join model: class foo has_many :foo_bars has_many :bars, :through => :foo_bars class bar has_many :foo_bars has_many :foos, :through => :foo_bars class foo_bars belongs_to :foo belongs_to :bar If I have an instance of foo and an instance of bar, how do I add the association between the two of them? my_...
2006 Apr 27
6
Possible to use dashes instead of underscores in rails?
Hi all - My boss is asking me if we can have dashes instead of underscores in the URL for SEO reasons. Apparently google prefers "foo-bar" to "foo_bar". The former will be found when searching for just "foo", but not the latter. So, I''m wondering if there is a way without changing any of my code if I can tell rails to use dashes instead of underscores? Any ideas?
2018 Apr 25
2
Bug in RScript.exe for 3.5.0
...n version 3.5.0 of R for Windows. When I call Rscript.exe for Version 3.5 of R, it is unable to open the file if the file name or path has a space in it. As an example of what happens, I saved 2 files with the code: cat("What do you get when you multiply 6 * 9?") as C:\foo bar.R and as C:\foo_bar.R When I in a DOS command window try to run these using version 3.4.3 and 3.5: C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" What do you get when you multiply 6 * 9? C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo_bar.R&quo...
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
...n I call Rscript.exe for Version 3.5 of R, it is unable to open >> the file if the file name or path has a space in it. >> As an example of what happens, I saved 2 files with the code: >> cat("What do you get when you multiply 6 * 9?") >> as C:\foo bar.R and as C:\foo_bar.R >> When I in a DOS command window try to run these using version 3.4.3 >> and 3.5: >> C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" >> What do you get when you multiply 6 * 9? >> C:\>"C:\Program Files\R\R-3.4.3\bi...
2006 Jul 28
2
Scaffold and Undercores in Tablenames
...mpting to generate scaffolds on legacy tables that have underscores in the name. Scaffold does not see the underscore. I have tried a backslash escape but it no work. I have looked around but i cannot find a way to make it work. It''s like this: c:\railroad>ruby script/generate scaffold FOO_BAR exists app/controllers/ exists app/helpers/ create app/views/foobar exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/foobar.rb identical test/unit/foobar_tes...
2006 May 07
0
caches_action and render_component
...Base def bar render :inline => <<-EOS Hello, bar <br /> <%= render_component(:controller => ''foo'', :action => ''foo'', :id => params[:id]) %> EOS end end class FooBarController < ActionController::Base def foo_bar render :inline => <<-EOS Hello, bar <br /> <%= render_component(:controller => ''foo'', :action => ''foo'', :id => params[:id]) %> EOS end end ----------------- END CODE --------------- When I access /foo/foo, I thi...
2015 Jan 22
5
:: and ::: as .Primitives?
Hi all, When S4 methods are defined on base function (say, "match"), the function becomes a method with the body "base::match(x,y)". A call to such a function often spends more time doing "::" than in the function itself. I always assumed that "::" was a very low-level thing, but it turns out to be a plain old function defined in base/R/namespace.R. What
2018 Apr 26
1
Bug in RScript.exe for 3.5.0
...I call Rscript.exe for Version 3.5 of R, it is unable to open >> the file if the file name or path has a space in it. >> As an example of what happens, I saved 2 files with the code: >> cat("What do you get when you multiply 6 * 9?") as C:\foo bar.R and >> as C:\foo_bar.R When I in a DOS command window try to run these using >> version 3.4.3 and 3.5: >> C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" >> What do you get when you multiply 6 * 9? >> C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rsc...
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
...exe for Version 3.5 of R, it is unable to open >>> the file if the file name or path has a space in it. >>> As an example of what happens, I saved 2 files with the code: >>> cat("What do you get when you multiply 6 * 9?") as C:\foo bar.R and >>> as C:\foo_bar.R When I in a DOS command window try to run these >>> using version 3.4.3 and 3.5: >>> C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" >>> What do you get when you multiply 6 * 9? >>> C:\>"C:\Program Files\R\R-3...
2018 Jan 29
1
Panic: data stack: Out of memory when allocating bytes
...?????? ret = <value optimized out> > ??????? alloc_size = 512 > #14 0x00007f73f17abd3b in t_buffer_get (size=512) at data-stack.c:543 > ??????? ret = 0x0 > #15 0x00007f73f17e1d60 in vstrconcat (str1=0x7f73ebdceeb0 > "/export/home/imap/bill at tutech.de/Maildir/.bla_blub.foo_bar.John Doe", > args=0x7ffd0ddd8550, > ??? ret_len=0x7ffd0ddd8570) at strfuncs.c:183 > ??????? str = 0x7f73ebdceeb0 > "/export/home/imap/bill at tutech.de/Maildir/.bla_blub.foo_bar.John Doe" > ??????? temp = <value optimized out> > ??????? bufsize = 512 &gt...
2018 Jan 24
2
Panic: data stack: Out of memory when allocating bytes
On Wed, Jan 24, 2018 at 18:55:47 +0100, Thomas Robers wrote: > Am 23.01.2018 um 20:07 schrieb Josef 'Jeff' Sipek: > > On Tue, Jan 23, 2018 at 14:03:27 -0500, Josef 'Jeff' Sipek wrote: > > > On Tue, Jan 23, 2018 at 18:21:38 +0100, Thomas Robers wrote: ... > > > 1. Do you have any idea what the imap process was doing at the time of the > > >
2013 Mar 13
0
[LLVMdev] Linkage question
Hi, We are new in LLVM... We want to execute JIT'ed code that links to functions inside our application For example, the JIT has compiled code like extern void open_device(Device * dev); int foo_bar() { Device dev; ... ; open_device(&dev); ...;} / /where open_device() is a function in our own code, that has initialized and called the ExecutionEngine. Of course when running we get the error message LLVM ERROR: Program used external function open_device which could not be resolved! How ca...
2018 Jan 25
0
Panic: data stack: Out of memory when allocating bytes
...alue optimized out> ret = <value optimized out> alloc_size = 512 #14 0x00007f73f17abd3b in t_buffer_get (size=512) at data-stack.c:543 ret = 0x0 #15 0x00007f73f17e1d60 in vstrconcat (str1=0x7f73ebdceeb0 "/export/home/imap/bill at tutech.de/Maildir/.bla_blub.foo_bar.John Doe", args=0x7ffd0ddd8550, ret_len=0x7ffd0ddd8570) at strfuncs.c:183 str = 0x7f73ebdceeb0 "/export/home/imap/bill at tutech.de/Maildir/.bla_blub.foo_bar.John Doe" temp = <value optimized out> bufsize = 512 i = <value optimized...
2018 Apr 25
0
Bug in RScript.exe for 3.5.0
...for Windows. > When I call Rscript.exe for Version 3.5 of R, it is unable to open the file if the file name or path has a space in it. > As an example of what happens, I saved 2 files with the code: > cat("What do you get when you multiply 6 * 9?") > as C:\foo bar.R and as C:\foo_bar.R > When I in a DOS command window try to run these using version 3.4.3 and 3.5: > C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" > What do you get when you multiply 6 * 9? > C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" &q...
2015 Jan 22
5
:: and ::: as .Primitives?
...n front of a loop. The implementation of these functions is almost simpler in C than it is in R, so there is relatively little risk to this change. But I agree the benefits are also somewhat minor. > For other cases if I want to use foo::bar many times, say > in a loop, I would do > > foo_bar <- foo::bar > > and use foo_bar, or something along those lines. > > When :: and ::: were introduce they were intended primarily for > reflection and debugging, so speed was not an issue. ::: is still > really only reliably usable that way, and making it faster may just > en...
2018 Apr 27
5
Bug in RScript.exe for 3.5.0
...3.5 of R, it is unable to open >>>> the file if the file name or path has a space in it. >>>> As an example of what happens, I saved 2 files with the code: >>>> cat("What do you get when you multiply 6 * 9?") as C:\foo bar.R and >>>> as C:\foo_bar.R When I in a DOS command window try to run these >>>> using version 3.4.3 and 3.5: >>>> C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" >>>> What do you get when you multiply 6 * 9? >>>> C:\>"C:\Pro...
2013 Mar 13
2
[LLVMdev] Linkage question
...013/3/13 Vania Joloboff <vania.joloboff at inria.fr> > Hi, > > We are new in LLVM... > We want to execute JIT'ed code that links to functions inside our > application > For example, the JIT has compiled code like > > extern void open_device(Device * dev); > int foo_bar() { Device dev; ... ; open_device(&dev); ...;} > / > /where open_device() is a function in our own code, that > has initialized and called the ExecutionEngine. > Of course when running we get the error message > > LLVM ERROR: Program used external function open_device which co...
2018 Apr 26
0
Bug in RScript.exe for 3.5.0
...t.exe for Version 3.5 of R, it is unable to open >>> the file if the file name or path has a space in it. >>> As an example of what happens, I saved 2 files with the code: >>> cat("What do you get when you multiply 6 * 9?") as C:\foo bar.R and >>> as C:\foo_bar.R When I in a DOS command window try to run these using >>> version 3.4.3 and 3.5: >>> C:\>"C:\Program Files\R\R-3.4.3\bin\x64\Rscript.exe" "C:\foo bar.R" >>> What do you get when you multiply 6 * 9? >>> C:\>"C:\Program Files\R\R-3....
2015 Jan 22
1
:: and ::: as .Primitives?
...39;t need to happen more than once. > > For default methods there ought to be a way to create those so the > default method is computed at creation or load time and stored in an > environment. For other cases if I want to use foo::bar many times, say > in a loop, I would do > > foo_bar <- foo::bar > > and use foo_bar, or something along those lines. While you're on the line: Do you think this is an optimization that the 'compiler' package and it's cmpfun() byte compiler will be able to do in the future? /Henrik > > When :: and ::: were introduce...
2013 Mar 12
4
[LLVMdev] LNT BenchmarkGame
On Tue, Mar 12, 2013 at 9:19 AM, Renato Golin <renato.golin at linaro.org>wrote: > On 12 March 2013 15:28, Hal Finkel <hfinkel at anl.gov> wrote: > >> Can't we just paste in a RNG so that we'll get the same output on all >> systems (and can still use the reference output)? >> > > We can, though other tests suffer from the same issue. Would be good