Displaying 20 results from an estimated 26 matches for "cazemier".
2019 May 31
9
[Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)
https://bugzilla.mindrot.org/show_bug.cgi?id=3017
Bug ID: 3017
Summary: ExitOnForwardFailure=yes doesn't work for local
forwards (-L)
Product: Portable OpenSSH
Version: 7.6p1
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: ssh
2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
Hi,
Every once in while I have to run SQL by hand, in my models mostly. But
I''m wondering if there is a better way of doing it than I do. And, I
have a question concerning types of the fields in the result the query
produces.
First, about the types. In a certain model, to get and return the value
of a boolean function, I have to do:
result =
2006 Mar 25
5
Unit test fails on different line the second time it''s run
I''ve got a very peculiar problem with unit tests. First, I clone my
development database with "rake clone_structure_to_test", then I run my
test with "ruby investment_product_score_override_test.rb". It fails on
line 68. Then, every test run after this, fails consistently on line 34.
How is this possible? I don''t use fixtures and I don''t use
2006 Mar 03
4
DB data type enforcement in Active Record
I have a question about how ActiveRecord handles data types.
When I enter text in a text_field (meaning, a field in the GUI) which
belongs to a numeric field in the database, Active Record automaticly
converts it to 0, because that''s what the to_f/to_i method of a string
does. Is it also possible to have Active Record enforce the types, so
that when you enter text for a numeric
2005 Dec 15
3
define_method with parameters
Hi,
I''m trying to write a macro which defines methods. One of these should
have a parameter, but I can''t get that to work. Something like:
define_method("printstuff") do
puts "blabla"
end
works fine. But, how do I use define_method to create something like:
def printstuff(the_stuff)
puts the_stuff
end
Thanks in advance.
2006 Apr 19
6
undefined method `create_table'' for #<LoginController:0x5e60
I am geeting the foolowing error.
undefined method `create_table'' for #<LoginController:0x5e60110>
I wrote the crete action in application controller.
I am coping ther total worng please help me!
class ApplicationController < ActionController::Base
model :cart
model :line_item
before_filter :authorize
def create
# create_table() yields a TableDefinition instance
2006 Apr 08
4
Calling validates_inclusion_of out of default namespace
Hi,
I''m trying to run the "validates_inclusion_of" method in a before_save hook,
because the range is dependant on the related data. But I can''t figure out how
to call it. When calling it normally, it says it can''t find it.
I''ve tried several combinations like
"ActiveRecord::Validations.validates_inclusion_of", but I can''t seem to
2006 Mar 25
1
Re: Rails Digest, Vol 18, Issue 656
...4. dynamic set_table_name for achives (Kris)
> 5. Re: Unit test fails on different line the second time it''s
> run (Nick Stuart)
> 6. Re: innodb vs myisam (Robby Russell)
> 7. Re: Unit test fails on different line the second time it''s r
> (Wiebe Cazemier)
> 8. Question about upgrading to rails rc1.1 (uranus)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 25 Mar 2006 11:07:39 -0300
> From: "Victor Kane" <victorkane@gmail.com>
> Subject: [Rails] Re...
2006 Apr 08
4
Stack level too deep error :(
Hi,
If anyone has some time to help with my problem that would be really good :)
I am getting a "stack level too deep" error when saving an object to the
database when it is has a has_one relationship to another object I wish
to save and associate after it.
If goes a little like this
class Quote < ActiveRecord::Base
belongs_to :eventdetail
has_many :bookings
# An
2006 Apr 08
5
Creating sub actions
Hi,
So finally I have also decided to roll my engines on Rails. But I am
kind of stuck in a situation. I understand that for every model there is
a controller class. This controller class has cirtain set of methods
where each method defines cirtain action to be performed. And each of
this action renders cirtain UI.
[The background]
Now let say I have a object "Car". Apart from
2011 Sep 05
5
Bug#640500: xen-hypervisor-4.0-amd64: xend invokes oomkiller and reboots machine when creating DomU's
Package: xen-hypervisor-4.0-amd64
Version: 4.0.1-2
Severity: normal
Tags: upstream
When creating Xen DomU's, at some point xend invokes the oom-killer and
the entire machine restarts:
Sep 5 12:04:59 arbiter kernel: [259697.101212] __ratelimit: 136
callbacks suppressed
Sep 5 12:04:59 arbiter kernel: [259697.101218] xend invoked oom-killer:
gfp_mask=0x200da, order=0, oom_adj=0
Sep 5
2006 Jan 03
3
SwitchTower and Subversion branches
I''m working on a Rails project that needs to be deployed in the near
future. To enable prompt responses to bug reports, me and my coding
partner were thinking to use the following SVN repository
lay-out/policy.
We''re using trunk/ for our main-line development. Whenever we deploy
something from our trunk, we first want to make a branch (e.g.
branches/1.x) and then derive a tag
2006 Apr 06
3
Irreversible Migrations
Hi,
To make a migration irreversable, one has to execute "raise
IrreversibleMigration". This is how it''s documented everywhere. However,
when I do that, I get this:
rake aborted!
uninitialized constant IrreversibleMigration
This is the migration (the file is called 022_ldap_fix.rb):
class LdapFix < ActiveRecord::Migration
def self.up
execute File.open(
2006 Apr 08
1
text_field behaviour with validations
Hi,
The text_field method sets the class of the field to "invalid" when the object
you specified is invalid (when using validations). This is to facilitate
working with validations.
Is there anything else it does? In a certain non-standard situation I''m forced
to use text_field_tag, instead of text_field. This means I have to take care
of the validations myself as well.
2006 Mar 25
4
the textilize method
I saw the guy in the 15 min blog video calling a method called textilize
however when i call it rails says it cant find this method. Is this
somehting extra i have to install to ruby... like a gem or somehting
--
Posted via http://www.ruby-forum.com/.
2015 Nov 04
4
Find me macro - calling multiple people to get a hold of one
Hi list,
We're trying to set up a phone number that customers can call to get a hold of anyone of a group of sysadmins (and not their voice mails!). We found the findme example ([1]) that makes the callees press 1 to accept the call. It almost works, but it doesn't work correctly when one of the callees, the sysadmins, hangs up after accepting the call.
We're using this
2006 Apr 19
3
newbie question : select distinct in model
Hi guys,
I''m new so be gentle :-)
How do I put the following into a method inside a model....
select distinct(pairing_id), description from pairings_stories,
pairings where pairing_id = pairings.id order by description
I basically want to have a @pairlist = Pairing.UniqueBookList line in
a controller.
Just not sure how to wire up this method in the model. And do I use
2007 Jan 03
1
Dune 2000 - no keyboard response - good rendering speed
Hi,
I've installed Dune 2000 and the 1.06 patch in Wine, and it runs very well,
except that it doesn't accept keyboard input. It wasn't any better without the
patch. The entry at the appdb doesn't mention anything about it. Does anybody
know how to fix it?
I've already tried changing all the settings on the "graphics" tab
in "winecfg". Half-Life, for
2006 Apr 06
4
using two foreign keys to the same table
i am working on a task manager with ruby on rails. it is my first major
project, so i''m still gettng my feet wet as i learn.
i''ve been trying to use the built in relationships to link my tables
together, but i''m not able to use the same naming conventions. for each
task, it has a field for the creator, and another field for the
assignee. both of these fields
2006 Apr 09
8
Testing (ignore)
Just testing the gateway... plz ignore.
--
Posted via http://www.ruby-forum.com/.