Displaying 20 results from an estimated 15242 matches for "foo's".
2009 Jun 05
4
[LLVMdev] llvmc for PIC16
...ools.
3. -Wo <options> - pass optimizations to the llvm-ld
4. mcc16 -Wl <options> - pass options to native linker.
5. mcc16 -Wa <options> - pass options to native assembler.
Here are some example command lines and sample command invocations as to
what should be done.
$ mcc16 -S foo.c
// [clang-cc foo.c] -> foo.bc
// [llvm-ld foo.bc] -> foo.opt.bc
// [llc foo.opt.bc] -> foo.s
$ mcc16 -S foo.c bar.c
// [clang-cc foo.c] -> foo.bc
// [llvm-ld foo.bc] -> foo.opt.bc
// [llc foo.opt.bc] -> foo.s
// [clang-cc bar.c] -> bar.bc
// [llvm-ld bar.bc] -> bar.opt.bc...
2012 Apr 30
0
file.copy(src, src, recursive=TRUE) causes a segfault (Was: Re: R CMD check . segfault on re-building vignettes)
It appears that file.copy() does not protect against the case when one
copies one directory to a subdirectory of itself resulting in it
trying to create and endless recursive copy of itself.
REPRODUCIBLE EXAMPLE:
src <- "foo"
dir.create(src);
file.copy(src, src, recursive=FALSE) # ok
file.copy(src, src, recursive=TRUE) # PROBLEM
file.exists("foo/foo/foo/foo/foo/foo/foo/foo/") # TRUE
file.exists("foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/") # TRUE
I can reproduce this.
TROUBLESHOOTING:
On R...
2005 Jul 19
3
extracting row means from a list
Hello: I'm reading in a series of text files (100 files that are each 2000
rows by 6 columns). I wish to combine the columns (6) of each file (100) and
get the row mean. I'd like to end up with a data.frame of 2000 rows by 6
columns.
foo <- list()
for(i in 1:10){
# The real data are read in from a series of numbered text files
foo[[i]] <- data.frame(x1 = rnorm(100), x2 = rnorm(100), x3 =
rnorm(100),
x4 = rnorm(100), x5 = rnorm(100), x6 =
rnorm(100))
}
str(foo)
# by hand
mean.x1 <-
ro...
2011 Sep 09
3
[LLVMdev] runStaticConstructorsDestructors not calling static destructors
...sDestructors(module, false);
Then to test the tear-down of the module, I call:
EE->runStaticConstructorsDestructors(mImpl->module, true);
EE->clearGlobalMappingsFromModule(mImpl->module);
EE->removeModule(mImpl->module);
The C++ code compiled:
#include <stdio.h>
class Foo {
public:
Foo() { printf("Foo\n"); };
~Foo() { printf("~Foo\n"); };
int x;
};
// a static variable:
Foo foo;
The constructor is being called (I see 'Foo' in my stdout), but the destructor is not.
The LLVM IR produced:
; ModuleID = 'mymodule'
target dat...
2009 Jun 07
0
[LLVMdev] llvmc for PIC16
...lvmc/examples/mcc16.
Some examples illustrating the features you requested:
> 2. If the user has specified to generate the final executable, then
> llvm-ld should run on all the .bc files generated by clang and create a
> single optimized .bc file for further tools.
$ mcc16 -dry-run foo.c bar.c
clang-cc foo.c -o /tmp/llvm_6ibgr9/foo.bc
clang-cc bar.c -o /tmp/llvm_6ibgr9/bar.bc
llvm-ld /tmp/llvm_6ibgr9/foo.bc /tmp/llvm_6ibgr9/bar.bc \
-o /tmp/llvm_6ibgr9/tmp.bc
llc -f /tmp/llvm_6ibgr9/tmp.bc -o /tmp/llvm_6ibgr9/tmp.s
native-as /tmp/llvm_6ibgr9/tmp.s -o /tmp/llvm_6ibgr9/tmp....
2011 Jan 07
1
[RFC/PATCH] ssh: config directive to modify the local environment
This provides a mechanism to attach arbitrary configure options into the
ssh_config file and use them from the LocalCommand and ProxyCommand.
Examples:
# set FOO to foo
LocalEnvMod FOO = foo
# append bar to FOO with default separator ","
LocalEnvMod FOO += bar
# unset FOO
LocalEnvMod FOO =
# append foo to BAR with separator ":", if BAR is empty no separator will
# be used
LocalEnvMod BAR +:= foo
#...
2010 Sep 22
1
Bundler picking up wrong version of Ruby with Rails 3 ( possible bundler bug )
Hello All,
I am developing a JRuby on Rails 3 application. Standard stuff.
I am facing problems getting autotest to run.
Here''s the trace:
% autotest
loading autotest/rails_rspec2
bundle exec
/Users/manish/Foo/Foo-Server/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/bin/rspec
''/Users/manish/Foo/Foo-Server/FooInsight/spec/controllers/users_controller_spec.rb''
''/Users/manish/Foo/Foo-Server/FooInsight/spec/helpers/home_helper_spec.rb''
''/Users/manish...
2012 Aug 13
2
Variables and scope with inherits
I want to have a parametrized class with lookup from params.pp but I keep
getting into problems.
init.pp:
class foo (
$bar = $foo::params::bar,
$foofoo = $foo::params::foofoo
) inherits foo::params {
file {''/tmp/foobar'':
content => template("foo/foobar.erb"),
}
}
params:
class foo::params {
$bar = true
if $foo::bar {
$foobar = ''yes''
$foo...
2013 Nov 21
3
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...t;std::unique_ptr<xx>> and I often hit compiler errors that require breaking up expressions to work around. Do you have suggestions on how to code the following simple examples to not error? Can some of these be fixed in ErrorOr.h? Or am I totally not getting something?
-Nick
struct Foo { void doit(); };
std::unique_ptr<Foo> factoryU() {
std::unique_ptr<Foo> f(new Foo);
return f; // works as expected
}
ErrorOr<Foo*> factoryE() {
ErrorOr<Foo*> f = new Foo;
return f; // works as expected
}
ErrorOr<std::unique_ptr<Foo>> factoryEU() {...
2007 Dec 17
5
question about 0.24.0
...equired to specify
the valid environments for your site. (#911)
Does this mean that the puppetmaster has to be updated before clients
work correctly?
I ask because I''m testing out a client upgrade to 0.24.0 (server is
still 0.23.2) and this is what I''m seeing:
[~]% sudo /foo/bin/puppetd --confdir /foo/conf/puppet --server pm
--debug -o
debug: Parsing /foo/conf/puppet/puppet.conf
debug: Failed to load library ''shadow'' for feature ''libshadow''
[*snip*]
debug: Creating default schedules
debug: Loaded state in 0.01 seconds
debug: Retriev...
2003 Sep 27
2
does isGeneric work differently in 1.8.0 ?
...---------------------------
R.1.7.1:
---------------------------------------------------
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 7.1
year 2003
month 06
day 16
language R
> isGeneric("foo")
[1] FALSE
> setClass("woo", representation(foo="character"), prototype = list(foo ="text"))
[1] "woo"
> if(!isGeneric("foo")) setGeneric("foo", function(object) standardGeneric("foo"))
[1] "foo"
> setMet...
2018 Mar 16
3
cat(fill=N)
Hi all,
I expect I'm getting something wrong, but
cat("foo bar baz foo bar baz foo bar baz", fill = 10)
should be broken into lines of width 10, whereas I get:
> cat("foo bar baz foo bar baz foo bar baz", fill = 10)
foo bar baz foo bar baz foo bar baz
This is on R 3.4.3, but I don't see mentions of it fixed in 3.4.4 or
r-devel NEW...
2006 May 31
7
How do you create a controller & view to create a list of objects?
I''m trying to figure out how to design a view and controller to work with a
simple collection. I have a Foo that has many Bars, so here''s what I did:
$ ruby script/generate model Foo
$ ruby script/generate model Bar
(Uncomment t.column, :name: :string in foo and bar migrations)
(Edit Foo.rb and Bar.rb, add has_many :bars to Foo, belongs_to :foo to Bar)
$ rake db:migrate
$ ruby script/generate s...
2014 Apr 28
0
RFC: API design of package "modules"
...es (and thus,
reusable code) due to that, and use `source` instead. Modules would
work (in many cases) as a drop-in replacement for `source`, and could
thus encourage code reuse.
However, now I?m stuck on a particular aspect of the API and would
like to solicit feedback from r-devel.
`import('foo')` imports a given module, `foo`. In addition to other
differences detailed in [2], modules allow/impose a hierarchical
organisation. That way, `import('foo')` might load code from a file
called `foo.r` or from a file called `foo/__init__.r` (reminiscent of
Python?s module mechanism) an...
2006 Apr 14
3
The object argument of NextMethod.
My question is when the object argument of NexthMethod be used?
In the following example, weather object argument is used will not
affects the result.
###
foo=function(x) {UseMethod("foo")}
foo.cls1=function(x)
{
x=x+1;class(x)<-"ncls"
NextMethod()
}
foo.ncls=function(x)
{
cat("ncls\n")
}
foo.cls2=function(x)
{
cat("cls2\n");print(x)
}
a=1;class(a)=c("cls1","cls2")
> foo(a)
cls2...
2007 Feb 28
1
Removing directory?
Hi,
I'm trying to remove/delete a directory usingR. I've tried the
following with no success:
% Rterm --vanilla
> getwd()
[1] "C:/Documents and Settings/hb/braju.com.R/aroma.affymetrix/test"
> dir.create("foo")
> file.info("foo")
size isdir mode mtime ctime atime
foo 0 TRUE 777 2007-02-28 14:52:10 2007-02-28 14:52:10 2007-02-28 14:52:10
# Using file.remove()
> res <- sapply(c("foo", "foo/", "foo\\",...
2007 Apr 24
2
zfs submounts and permissions with autofs
Hi,
Is it expected that if I have filesystem tank/foo and tank/foo/bar
(mounted under /tank) then in order to be able to browse via
/net down into tank/foo/bar I need to have group/other permissions
on /tank/foo open?
# zfs create tank/foo
# zfs create tank/foo/bar
# chown gavinm /tank/foo /tank/foo/bar
# zfs set sharenfs=rw tank/foo
# ls -laR /tank...
2011 Sep 09
0
[LLVMdev] runStaticConstructorsDestructors not calling static destructors
...ar-down of the module, I call:
>
> EE->runStaticConstructorsDestructors(mImpl->module, true);
> EE->clearGlobalMappingsFromModule(mImpl->module);
> EE->removeModule(mImpl->module);
>
>
>
> The C++ code compiled:
>
> #include <stdio.h>
> class Foo {
> public:
> Foo() { printf("Foo\n"); };
> ~Foo() { printf("~Foo\n"); };
>
> int x;
> };
>
> // a static variable:
> Foo foo;
>
>
> The constructor is being called (I see 'Foo' in my stdout), but the destructor is...
Suggestion for exception handling: More informative error message for "no applicable method..." (S3)
2009 Oct 20
1
Suggestion for exception handling: More informative error message for "no applicable method..." (S3)
I'd like to suggest that whenever there is no S3 method implementation
available for a particular class, that the error message would also
report the class structure of the object dispatched on.
Example:
foo <- function(...) UseMethod("foo")
foo.ClassA <- function(object, ...) { cat("foo() for ClassA called.\n") }
> foo(structure(1, class="ClassA"))
foo() for ClassA called.
Now:
> foo(NULL)
Error in UseMethod("foo") : no applicable method for "...
2003 Nov 25
3
Need help with exclude
Hi all,
I am having *massive* problems trying to exclude a single directory from an rsync.
I have serv1 and serv2. I am trying to rsync /foo/test from serv1 to /foo on serv2 I want to exclude the directory /foo/test/dir1 So I try:
rsync -av --exclude-from=/foo/rsync.excludes /foo/test serv2:/foo
rsync.excludes contains:
/foo/test/dir1/
This is not working.
I also try:
rsync -av --exclude=/foo/test/dir1/ /foo/test serv2:/foo
a...