Displaying 20 results from an estimated 143 matches for "mytest".
2008 Jan 13
2
{worker} after :end-time worker freaks out
...after the :end-time is reached.
I verifyed the behavior on two different boxes:
1. Mac OS X 10.5.1
2. Debian Lenny
Both using Rub 1.8.6 an backgroundrb 1.0.
My Test-Files
backgroundrb.yml
- - - - - -
:backgroundrb:
:port: 11006
:ip: localhost
:environment: development
:schedules:
:mytest_worker:
:doit:
:trigger_args:
:start: <%= Time.now + 1.seconds %>
:end: <%= Time.now + 1.minute %>
:repeat_interval: <%= 10.seconds %>
- - - - - -
mytest_worker.rb
- - - - - -
class MytestWorker < BackgrounDRb::MetaWorker
set_worker_na...
2004 Nov 05
2
Creating .Rout.save files for package subdirectory "tests"
Hi,
I added the "tests" subdirectory and a test file (say "myTest.R") to our
"systemfit" package. Up to now I create the "myTest.Rout.save" file with
> R CMD BATCH --vanilla myTest.R myTest.Rout.save
However, "R CMD check" reports two differences between myTest.Rout.save and
the output of myTest.R:
a) myTest.Rout.save con...
2013 Dec 13
2
how can i write the function into a file c:/mytest.R with cat function?
mytest<-function(x,f){
sum(x*f)/sum(f)
}
cat(mytest,file="c:/mytest.R")
Error in cat(list(...), file, sep, fill, labels, append) :
argument 1 (type 'closure') cannot be handled by 'cat'
how can i write the mytest function into a file c:/mytest...
2009 Jan 16
3
rspec model testing - test on user defined validation- How do I test that the create failed.
...that if field1 has a value then field2 must be nil
and vice versa.
-------------------------------
When I did the rspec_scaffold it generated one test which worked
before :each do
@valid_attributes = {
:field1 = "value for field1"
:field2 = "value for field2"
}
MyTest.create!(@valid_attributes)
end
it "should create a new instance given valid attributes" do
MyTest.create!(@valid_attributes)
end
---------------------------------
Before coding I modified the test file as follows
it "should create a new instance given valid attributes" do
@...
2012 Feb 21
0
Permissions wrong if rsync terminates prematurely
...nd up being 700. We are using
the --timeout option of rsync, and we have additional watchdog process
that will terminate the process if a total running time limit is
exceeded.
In actual scenario, the folder hierarchy contains thousands of
folders. The example below illustrates the problem.
$ find mytest/ -ls
1533304 4 drwxr-xr-x 5 mhaa mhaa 4096 Feb 21 21:11 mytest/
1533322 4 drwxr-xr-x 2 mhaa mhaa 4096 Feb 21 21:11 mytest/foo3
1533321 4 drwxr-xr-x 2 mhaa mhaa 4096 Feb 21 21:11 mytest/foo1
1533318 4 drwxr-xr-x 3 mhaa mhaa 4096 Feb...
2006 Apr 19
1
gsummary function (nlme library) (PR#8782)
Full_Name: Ben Saville
Version: 2.1
OS: Windows XP
Submission from: (NULL) (152.2.94.145)
I'm using the gsummary function to calculate a sum of V1 (column one) from my
data 'mytest' by group (V2,or column 2). If V1 (the variable of interest) is
all the same value (in this case all 2's), I do not get back the correct
summation. If there is at least one difference in V1 (all 2's except for one
1), it gives me correct values. So either I am doing something wrong o...
2014 Jun 09
4
[LLVMdev] LTO and Optimized libraries don't mix
When using the ARM cross compiler we've run into an issue with LTO and
optimized libraries.
Consider you have an optimized library opt.a, which contains a version of
memcpy.
Compiling with LTO (something like),
clang myTest.c opt.a -flto -o myTest
causes myTest.c to get compiled to bitcode.
Then the bitcode gets passed to the linker. The linker looks through the
bitcode (via the gold plugin) searching for symbols it needs to resolve. But
any memcpy() calls in myTest.c got converted to llvm.memcpy() calls in th...
2018 Apr 03
0
LDAP TLS error
...(/etc/init.d/slapd; bad; vendor preset: enabled)
Active: active (running) since Tue 2018-04-03 14:54:38 AEST; 4min 12s ago
Apr 03 14:54:37 mypdc slapd[9883]: nss_ldap: reconnecting to LDAP server...
Apr 03 14:54:37 mypdc slapd[9883]: nss_ldap: could not connect to any LDAP server as cn=admin,dc=mytest - Can't contact LDAP server
Apr 03 14:54:37 mypdc slapd[9883]: nss_ldap: failed to bind to LDAP server ldap://mypdc.mytest: Can't contact LDAP server
Apr 03 14:54:37 mypdc slapd[9883]: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
Apr 03 14:54:38 mypdc slapd[9883]: nss_ldap:...
2003 May 31
0
chmod g+w on directory causes script not to execute anymore
...lot.
Anyways, here it goes:
9:43:03 markus ~>echo $USER
markus
9:43:31 markus ~>pwd
/home/markus
9:43:34 markus ~>l | grep test
drwxr-xr-x 2 root users 4096 May 29 20:44 test/
9:43:37 markus ~>cd test/
9:43:47 markus ~/test>l
total 4
-rwxr-xr-x 1 root root 24 May 29 20:44 myTest*
9:43:50 markus ~/test>cat myTest
#!/bin/sh
echo testing
9:43:53 markus ~/test>./myTest
testing
9:43:55 markus ~/test>
So we see that the script is working. I then perform
the change logged in as root in another terminal.
9:43:14 root ~markus>echo $USER
root
9:44:19 root ~...
2009 May 19
2
incremental directory searche in rsync 3.0.6
Hi,
I was in under impression that rsync 3.0.5/3.0.6 creates all the missing
directories in the path but I think I am wrong. Could any one tell me is it
possible to create all missing dirs in path at destination side if not
exists. Currently, I have been getting below errors.
rsync -avz /tmp/mytest/rsync-test/dir-test/parent-dir/
desthost:/tmp/mytest/rsync-test/dir-test/parent-dir/
sending incremental file list
rsync: mkdir "/tmp/mytest/rsync-test/dir-test/parent-dir/" failed: No such
file or directory (2)
rsync error: error in file IO (code 11) at main.c(576) [receiver=3.0.6]
rsync...
2012 Feb 07
6
Setting up infile for R CMD BATCH
Suppose I create an R program called myTest.R with only one line like
the following:
type <- as.integer(readline("input type (1: type1; 2: type2)? "))
Then I'd like to run myTest.R in batch mode by constructing an input
file called answers.R with the following:
source("myTest.R")
1
When I ran the following at t...
2010 Jul 02
4
zfs - filesystem versus directory
Folks,
While going through a quick tutorial on zfs, I came across a way to create zfs filesystem within a filesystem. For example:
# zfs create mytest/peter
where mytest is a zpool filesystem.
When does this way, the new filesystem has the mount point as /mytest/peter.
When does it make sense to create such a filesystem versus just creating a directory?
# mkdir mytest/peter
Thank you in advance for your help.
Regards,
Peter
--
This message...
2006 Aug 04
0
Proxy from Apache to local Lighttpd instance
...s/HowtoSetupApacheProxyingToLighttpdWithFastCGI>.
below in my environment.rb it says:
ActionController::AbstractRequest.relative_url_root = ''/cookbook''
Now surfing to www.mysite.com/cookbook works fine, altough I get the
security warning for the info.
If I generate a controller MyTest (ruby script/generate controller MyTest)
and I restart the server I get:
Routing Error
Recognition failed for "/MyTest"
Why? My lighttpd access log says:
127.0.0.1 localhost:3000 - [04/Aug/2006:16:23:34
+0200] "GET /cookbook/MyTest HTTP/1.1" 404 607 "-" "Mozilla/5...
2010 Dec 03
2
How to get 'R' to talk BACK to other languages / scripts??
...9; from other scripts, and that I can make
command calls from 'R' (e.g., using system() ). But how can I get 'R' to
RETURN values to the script that called it. E.g., I would like to be able
to do something like the following (as a simpler example) from a bash
script:
#!/bin/bash
myTest=echo /usr/local/bin/R --no-restore --no-save -f testing.R.r
echo "myTest contains"
echo $myTest
And ideally this should write out the results of the
"testing.R.rscript". So that if the testing.
R.r script said something simple like:
myResult <- paste("Hello Worl...
2008 Sep 23
1
Help with "No route matches "/MyTest/" with {:method=>:get}"
I just started working with Ruby. Anyways I can''t seem to figure out
how to have this message disappear. I was reading a tutorial and based
on it, when I type in http://localhost:3000/MyTest/ it should say
whatever I have written down on my my_test_controller.rb file.
I first ran: ruby script\generate controller MyTest
then I edited the my_test_controller.rb file
It currently says:
-------
class MyTestController < ApplicationController
def index
render_text "Please Hel...
2005 Jul 06
1
SIP/2.0 403 Forbidden
....0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf
[1000]
username=1000
secret=abc123
context=mytest
host=dynamic
-----------------
/etc/asterisk/extensions.conf :
[general]
static=yes
writeprotect=yes
;Suport phones
;SUPPORTPHONES=SIP/2205&SIP/2206&SIP/2207&SIP/2208&SIP/2209
[globals]
XLITE=SIP/1000
[mytest]
exten => 1367,1Dial(SIP/1000)
exten => 2890,1,Wait(2)
exten =&g...
2005 Dec 19
6
Shutdown script not being run
...this with a brand new test
script.
My test script is just a simple file that echos back the start or stop
command:
#!/bin/bash
#
# chkconfig: 45 01 99
# description: Test Start and stop script
#
echo "Called with $1"
I installed it with 'chkconfig --add mytest'.
The softlinks exist in the runlevel directories:
/etc/rc.d/init.d/mytest
/etc/rc.d/rc0.d/K99mytest
/etc/rc.d/rc1.d/K99mytest
/etc/rc.d/rc2.d/K99mytest
/etc/rc.d/rc3.d/K99mytest
/etc/rc.d/rc4.d/S01mytest
/etc/rc.d/rc5.d/S01mytest
/etc/rc.d/rc6.d/K99mytest
When...
2005 Jun 23
6
Problems with Hello World
Hello, I''m installed RubyOnRails in my Fedora Core 4 system.
I''ve created an empty web application with:
rails cookbook
then a controller
ruby script/generate controller MyTest
And a file named my_test_controller.rb was created at
cookbook/app/controller directory.
I ''ve written a new method for MyTestController class like:
def index
render_text "Hello World"
end
Finally I''ve started the server:
ruby script/server
Well If I go to http...
2010 Jan 01
1
Questions bout SVM
...with svm, do I have to use this equation to calculate RMSE?:
mymodel <- svm(myformula,data=mydata,cross=10)
sqrt(mean(mymodel$MSE))
But if I don’t use crossvalidation, I have to use the following to calculate RMSE:
mymodel <- svm(myformula,data=mydata)
mytest <- predict(mymodel, mytestdata)
error <- mytest - mytestdata[,1]
sqrt(mean(error**2))
2)if I don’t set the parameters of SVM, like in the above, how the program knows them? Or it is a must to determine them when I invoke svm?
3)can you please tell me why we use this equation:
my...
2011 Jun 01
1
libvirtError: internal error Domain mytest didn't show up
...usr/share/virt-manager/virtManager/domain.py", line 573, in startup
self.vm.create()
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 287, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error Domain mytest didn't show up
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110601/564b6404/attachment.htm>