Displaying 20 results from an estimated 24 matches for "my_test".
2006 Mar 28
6
blank page output
...9;m new to Ruby and RubyOnRails. I''m running Fedora 4 which comes
with Ruby 1.84-1. I installed rubyonrails, and I''m doing the a sample
program found on
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2
I ran ruby script/generate controller MyTest. I edited the file
my_test_controller.rb. Here''s the code I entered
class MyTestController < ApplicationController
def index
render_text "Hello World, my first line of Ruby"
end
end
I save the file. I then ran the browser with the following url
http://127.0.0.1:3000/My_Test/
I get a blank page,...
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://127.0.0.1:3000 I can se...
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...sert in clang/lib/AST/RecordLayoutBuilder because ExternalFieldOffsets doesn't contain a FieldDecl that updateExternalFieldOffset expected. I found that the assert occurs when both static and non-static member variables are present. For instance, with the following, the lldb command 'expr my_test.length()' does not assert unless m_a is declared:
class test
{
static const int npos = -1;
int m_a;
public:
int length() { return npos; }
};
The problem reproduces with Linux x86_64 targets, but not on Darwin. The issue was introduced in the last month or so, but I'm not sur...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...sert in clang/lib/AST/RecordLayoutBuilder because ExternalFieldOffsets doesn't contain a FieldDecl that updateExternalFieldOffset expected. I found that the assert occurs when both static and non-static member variables are present. For instance, with the following, the lldb command 'expr my_test.length()' does not assert unless m_a is declared:
class test
{
static const int npos = -1;
int m_a;
public:
int length() { return npos; }
};
The problem reproduces with Linux x86_64 targets, but not on Darwin. The issue was introduced in the last month or so, but I'm not sur...
2007 Apr 24
1
Re: Re: Symlinks deletion behaviour
...3, 3] smbd/process.c:switch_message(926)
switch message SMBrmdir (pid 19730) conn 0x80414a30
[2007/04/24 09:52:43, 4] smbd/uid.c:change_to_user(181)
change_to_user: Skipping user change - already user
[2007/04/24 09:52:43, 5] smbd/filename.c:unix_convert(147)
unix_convert called on file "my_test_link"
[2007/04/24 09:52:43, 10] smbd/statcache.c:stat_cache_lookup(248)
stat_cache_lookup: lookup succeeded for name [MY_TEST_LINK] -> [my_test_link]
[2007/04/24 09:52:43, 3] smbd/reply.c:rmdir_internals(3947)
rmdir_internals: couldn't remove directory my_test_link : Not a directory...
2019 Apr 19
2
Forking AGI or GoSub
In PHP something like:
$pid = pcntl_fork();
if ($pid != 0) {
// we are the parent
// do parent stuff
exit;
}
// we are the child, detatch from terminal
$sid = posix_setsid();
if ($sid < 0) {
die;
}
// do child stuff
On 04/19/2019 02:00 PM, Mark Wiater wrote:
> On 4/19/2019 1:49 PM, Dovid Bender wrote:
>> Mark,
>>
>> I am using PHP agi and when forking
2005 Dec 02
0
WEBrick access from other computer
...ne. Using WEBrick I can go to the page and see my
test page.
But I want not have to sit at the linux box to play around, so I tried
accessing the WEBrick server from another system on my network and it
does not work.
Accessing locally I get:
127.0.0.1 - - [02/Dec/2005:17:47:59 EST] "GET /my_test HTTP/1.1" 200 5
- -> /my_test
that''s fine.
But if I access from another machine, anything other than the index.html
page in the Public folder results in WEBrick returning a 500 server
error, such as:
192.168.1.101 - - [02/Dec/2005:17:48:05 EST] "GET /my_test HTTP/1.1"...
2003 Mar 31
0
W2K batch scripting error
...names when using the /s flag to remove the entire directory tree. It seems that if a subdirectory name is over 12 characters in length, the rmdir command truncates to 12 characters, and then is unable to find the directory. I have reproduced this problem using the following directory structure:
G:\my_test\testdir\td3456789012345\td00001\testfile
Then, from the my_test directory, attempt to remove the entire testdir directory tree:
G:\my_test>rmdir /s /q testdir
testdir\TD3456789012 - The system cannot find the file specified.
Cannot create a file when that file already exists.
Note the truncat...
2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
...to show what I mean:
Here is the SimpleObj model (notice the new method ''extra_attr''):
# file app/models/simple_obj
class SimpleObj < ActiveRecord::Base
def extra_attr
"hello"
end
end
Here is the controller
# file app/controllers/my_test_controller.rb
class MyTestController < ApplicationController
def put
MyCache.put
end
def get
MyCache.get
end
end
Here is the cache object:
# file app/my_cache.rb
class MyCache
@@saved_obj = nil
def self.put
@@saved_ob...
2006 Jul 10
2
''uninitialized constant'' error
...arg!''})
end
In cookbook\lib\workers\tail_worker.rb
-----------------------------------------------
class TailWorker < BackgrounDRb::Rails
def do_work(args)
puts "Printing from inside TailWorker::do_work()"
end
end
When I issue the request to
http://127.0.0.1:3000/My_Test/longrun
I get the following error:
NameError in My testController#longrun
uninitialized constant TailWorker
I''d appreciate any light thrown on what I might have done to cause this error and about how to rectify it.
Thanks,
Aravind Elango
2006 Apr 07
1
Testing problem
Hi all,
In Rails 1.0, why would running rake test_functional be different from
running ruby test/functional/my_tests.rb? I''ve got a set of tests that
pass fine when run individually, but fail when they''re run from rake.
Anyone else seen this? I don''t know if it''s relevant, but I''m doing ERb
template rendering in a $SAFE binding... Seems mighty odd.
--
Alex
2006 Mar 31
3
Rails with GoDaddy problem
...ct
files to the directory I made. Also to clarify, this is just a simple
"Hello World" type page, no database access or anything. I just want to
see if it can work.
I removed the default index.html from the public directory and adjusted
the routes.rb file to make the controller "My_Test" the default when
loading the project.
I also followed the GoDaddy instructions to create a symbolic link for
this directory, called "t2".
Alright, now that I''ve explained what I''ve done, here''s the issue I''m
getting. Whenever I try to load th...
2006 Oct 16
1
Question regarding ''tidy'' type
...r, when I run puppet it deletes files and directories that where
accessed ( or even created ) within 30 days. Example:
# mkdir /root/.puppet
# touch /root/.puppet/new-file
# puppetd --test
info: Caching configuration at /var/lib/puppet/localconfig.yaml
notice: Starting configuration run
notice: //my_test/tidy=/root/.puppet//tidy=/root/.bluegecko/new-file/tidyup:
tidyup changed ''5'' to ''2592000 ''
notice: //my_test/tidy=/root/.puppet//tidyup: tidyup changed ''5'' to ''2592000
''
[.....]
My goal is delete files older than 30 days, an...
2005 Aug 02
0
Debugging woes
...t an exception. I''ve tried this in the past, running a test from within emacs and it failed. I think it has something to do with the environment. I''m not sure how I should invoke the interpreter to give ActiveRecord access to what it needs. Currently I just call it with "ruby my_test.rb". I tried "/bin/bash -c ruby my_test.rb" but it didn''t work. Anybody know what I can do?
/usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/base.rb:1427: `allocator undefined for Bignum'' (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/activerec...
2010 Aug 05
18
dot-containing foldernames \HasNoChildren bug ?
...ren) "/" "my.test/aaa"
* LIST (\HasNoChildren) "/" "my.test/folder.first"
* LIST (\HasNoChildren) "/" "my.test/folder.first/sub.sub.folder"
* LIST (\HasNoChildren) "/" "my.test/folder.second"
when we rename my.test to my_test everything works as expected:
* LIST (\HasChildren) "/"
"my_test"
* LIST (\HasNoChildren) "/"
"my_test/aaa"...
2020 Jun 19
3
FileCheck
...ot;llvm-lit" on a subdirectory as a quick(er) smoke test if I am making changes in that area (e.g. "llvm-lit ../llvm/test/CodeGen"). Nothing wrong here, as indeed nothing changed here. But in case of a test failure, I want to run just that test:
bin/llvm-lit ../llvm/test/CodeGen/my_test.ll
This only reports success/failure, and doesn't show any cause for failure , so I run it in verbose mode with:
bin/llvm-lit -a ../llvm/test/CodeGen/my_test.ll
In a terminal, the new default behaviour of FileCheck has become pretty unusable IMHO.
________________________________
From:...
2020 Jun 19
2
FileCheck
...ot;llvm-lit" on a subdirectory as a quick(er) smoke test if I am making changes in that area (e.g. "llvm-lit ../llvm/test/CodeGen"). Nothing wrong here, as indeed nothing changed here. But in case of a test failure, I want to run just that test:
bin/llvm-lit ../llvm/test/CodeGen/my_test.ll
This only reports success/failure, and doesn't show any cause for failure , so I run it in verbose mode with:
bin/llvm-lit -a ../llvm/test/CodeGen/my_test.ll
In a terminal, the new default behaviour of FileCheck has become pretty unusable IMHO.
I don't know how you proceed to deb...
2005 Dec 15
11
CGI Module in Rails
I''m trying to use the CGI module to generate the html in a view but am
having trouble. My controller looks like:
class MyTestController < ApplicationController
def cgitest
require ''cgi''
@cgi=CGI.new("html3")
end
end
My cgitest.rhtml view document simply has:
<%= @cgi.out{@cgi.html{@cgi.head{}}} %>
Loading MyTest/cgitest, Rails tells me that
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 Help"
end
end
-------
I removed the index file from t...
2005 Dec 16
25
I Would Really Like to Try RoR but...
it''s been a nightmare trying to set it up. I keep getting a an
Application Error message when I try to navigate to a url which should
be taken care of by my newly created controllers. For instance, I
wanted to test RoR out so I created a MyTest controller which should
allow me to navigate something like:
http://localhost/rubytest/MyTest
but it does not. I have no problem getting