search for: set_defaults

Displaying 18 results from an estimated 18 matches for "set_defaults".

Did you mean: set_default
2007 Sep 14
2
how to use options in radio botton
Hi I am using radio botton,I am struggling to use options..following is my code.. <%= radio_button(''community'',''default'',0,options={:checked,:onClick=>"javascript:set_default(this);"})%> If i am using without checked option its working fine.If i use that its throwing error.... Please help me -- Posted via http://www.ruby-forum.com/.
2007 Jun 25
5
strange mock error
I''m testing using the rspec mocking framework and rspec 1.0.5 and I''m getting the following strange error: #<Spec::Mocks::Mock:0x337f7c8> expected :set_defaults with (#<Service: 0x19c4040 @name="Service_1023">, {"1"=>"1", "2"=>"2"}) but received it with (#<Service:0x19c4040 @name="Service_1023">, {"1"=>"1", "2"=>"2"}) Oddly, it...
2008 Oct 06
2
StdDialogButtonSizer default button
Hi all, How do i set the default button for a Wx::StdDialogButtonSizer? Any hints would be appreciated. regards. bio. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Mar 01
4
STI, subclasses and callbacks
...ults) on every created instance regardless of what subclass is actually instantiated. So I figured adding a after_create callback in the top class in the hierarchy should do the trick. It seems it doesn''t get called :( Code: class SuperClass < ActiveRecord::Base ... after_create :set_defaults ... private def set_defaults puts "Setting defaults #{id}" ... set values ... save() end end Am I doing something wrong here? /Marcus
2015 Nov 20
0
[PATCH] v2v: factor out bootloader handling
Create an object hierarchy to represent different bootloaders for Linux guests, moving the separate handling of grub1 and grub2 in different classes. This will allow us to support more bootloaders in the future. This is mostly code refactoring, with no actual behaviour change. --- po/POTFILES-ml | 1 + v2v/Makefile.am | 2 + v2v/bootloaders.ml | 317
2020 Sep 17
3
Timeout tests timing out
Hi David, Unfortunately writing a reliable test is tricky given that the functionality we're trying to test involves timing. I would advise against disabling the test entirely because it actually tests functionality that people use. I'd suggest bumping up the time limits. This is what I've done in the past. See commit 6dfcc78364fa3e8104d6e6634733863eb0bf4be8 Author: Dan Liew <dan
2022 Nov 04
3
[libnbd PATCH v2 0/3] Improve nbdsh -u handling
v1 was here: https://listman.redhat.com/archives/libguestfs/2022-October/030216.html Since then, I've incorporated changes based on Rich's feedback: swap order of patches 2 and 3 less change in patch 1 (including no unsafe eval(%s) for --uri) in patch 2, include -c in list of snippets to store, and use dict of lambdas to map back to the desired action Eric Blake (3): nbdsh:
2003 Sep 15
1
RE : Problem uploading printer driver on 2.2.8a (FreeBSD 4.8)
>-------- Message d'origine-------- >De: Dragan Krnic [mailto:dkrnic@lycos.com] >Date: sam. 9/13/2003 20:15 >?: J?r?me Fenal >Cc: samba@lists.samba.org >Objet: Re: Problem uploading printer driver on 2.2.8a (FreeBSD 4.8) >It's a bug. Fortunately it can be fixed by applying >a couple of patches described in > >
2020 Sep 18
2
Timeout tests timing out
On Wed, 16 Sep 2020 at 22:24, David Blaikie <dblaikie at gmail.com> wrote: > > I appreciate the value of the feature - but it's possible the test > doesn't pull its weight. Is the code that implements the feature > liable to failure/often touched? If it's pretty static/failure is > unlikely, possibly the time and flaky failures aren't worth the value > of
2010 Sep 19
0
A logging/graphing UPS client using rrdtool and UPS::Nut
...upswatch(); } } } else { pod2usage(-message => $desc, -exitstatus => -1, -verbose => 0); } exit (0); sub upswatch { my ($ups, $date, $vin, $vout, $iin, $iout, $bcharge, $bvolts, $load, $graphctr, $uid, $gid); set_defaults(); open (LOG, ">>$logfile") unless ($opts{foreground}); select((select(LOG), $| = 1)[0]); (undef,undef,$uid,$gid) = getpwnam($runuser); create_files($uid,$gid); POSIX::setgid($gid) || upslog("Could not set GID!\n"); POSIX::setuid($uid) || upslog...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...format.c | 5 ++ 8 files changed, 166 insertions(+), 18 deletions(-) New commits: commit 0f2289cf2e49a0c3ec695e77b4310964ccccbc75 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Tue Oct 23 14:16:53 2007 +0300 Don't set kerning and letterSpacing in TextFormat's set_defaults when v < 8 diff --git a/libswfdec/swfdec_text_format.c b/libswfdec/swfdec_text_format.c index 63c0849..8a86d18 100644 --- a/libswfdec/swfdec_text_format.c +++ b/libswfdec/swfdec_text_format.c @@ -1100,6 +1100,11 @@ swfdec_text_format_set_defaults (SwfdecTextFormat *format) format->underli...
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2009 May 02
10
Problem verifying routing error
Hi, When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having a new problem verifying routes that should not exist. This is to support something like this in routes.rb: map.resources :orders do |orders| orders.resources :items, :except => [:index,:show] end I used to use lambda {}.should_raise( routing error ), but it stopped detecting any raised error.
2009 Jul 30
11
[PATCH 0/9] Quota support for ocfs2-tools (version 2)
Hi, this is the next version of quota support for quota tools. I've addressed all the comments of Tao, Joel and others. Sparse feature disabling also correctly updates quota information now and the patch is merged into the tunefs support patch. Honza
2009 Jul 27
11
[PATCH 0/8] Quota support for ocfs2-tools
Hi, I'm sending a series of patches implementing quota support into ocfs2-tools. It's the same as the original huge patch I've sent but now it's split as Joel asked. I've also realized that when disabling SPARSE feature, we should update quota information. That piece of code is missing, I'll implement it soon. Comments welcome. Honza
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up
2009 Aug 03
9
[PATCH 0/9] Quota support for ocfs2-tools (version 3)
Hi, below comes a new version of the series of patches implementing quota support for ocfs2-tools. I've fixed the calls of ocfs2_malloc_blocks() which were given number of bytes instead of number of blocks. Besides that the series should be the same. Honza