Displaying 5 results from an estimated 5 matches for "other_arg".
Did you mean:
other_args
2009 May 22
1
[PATCH server] fixed smart pool 'save' regression.
...- a/src/app/services/hardware_pool_service.rb
+++ b/src/app/services/hardware_pool_service.rb
@@ -43,8 +43,8 @@ module HardwarePoolService
# +parent_id+
# === Required permissions
# [<tt>Privilege::MODIFY</tt>] for the parent pool
- def svc_create(pool_hash, other_args)
- svc_new(other_args[:parent_id], pool_hash)
+ def svc_create(pool_hash, parent_id, other_args)
+ svc_new(parent_id, pool_hash)
Pool.transaction do
@pool.create_with_parent(@parent)
diff --git a/src/app/services/smart_pool_service.rb b/src/app/services/smart_pool_service.rb
i...
2004 Oct 13
0
[Bug 1924] New: unable to rsync between a PC with cygwin and a unix machine using rsh
...char *path,
int *f_in, int *f_out)
{
int i, argc = 0;
char *args[100];
pid_t ret;
char *tok, *dir = NULL;
int dash_l_set = 0;
/* Start ofc PFC patched section
to handle the of the whole command under cygwin rsh
----------------------------------------------------
*/
char *other_args[100] ;
int other_argc = 0 ;
char the_cmd[1024] ;
/* End of PFC patched section */
if (!read_batch && !local_server) {
char *rsh_env = getenv(RSYNC_RSH_ENV);
if (!cmd)
cmd = rsh_env;
if (!cmd)
cmd = RSYNC_RSH;
cmd = strdup(cmd);
if (!cmd)
goto oom;
for (to...
2002 May 25
2
Function objects as arguments of a function
...nother function as follows:
// function used as an argument
void foo(int x)
{
...
}
// function using a function as an argument
void bar(void (*func)(int ), int arg1, int arg2)
{
....
}
// The function 'bar' will be called as follows
int main()
{
....
bar(foo, arg4foo, other_arg);
...
}
In R, can function objects be used as arguments of
a function?
Thanks in advance from Japan
#####################################
# Tsumiyama Isao (Mitsubishi Pharma Corp.)
# Tel:047-471-7721
# PHS:070-5659-0544
# e-mail:tsumi at leo.auric.ne.jp
# tsumiyama at pdx.ne...
2019 Apr 12
2
integrate over an infinite region produces wrong results depending on scaling
Dear all,
This is the first time I am posting to the r-devel list. On
StackOverflow, they suggested that the strange behaviour of integrate()
was more bug-like. I am providing a short version of the question (full
one with plots: https://stackoverflow.com/q/55639401).
Suppose one wants integrate a function that is just a product of two
density functions (like gamma). The support of the
2006 Oct 11
0
stubbing/mocking
...s:
context "a mock" do
specify "can stub! and mock the same message" do
mock = mock("stubbing mock")
mock.stub!(:msg).and_return(:stub_value)
mock.should_receive(:msg).with(:arg).and_return(:mock_value)
mock.msg.should_equal :stub_value
mock.msg(:other_arg).should_equal :stub_value
mock.msg(:arg).should_equal :mock_value
mock.msg(:another_arg).should_equal :stub_value
mock.msg(:yet_another_arg).should_equal :stub_value
mock.msg.should_equal :stub_value
end
end
Basically, the stub will be invoked for any calls to :msg without :arg....