Displaying 18 results from an estimated 18 matches for "do_upd".
Did you mean:
do_cpy
2008 Apr 16
2
QUICK QUESTION: Run a Ruby File inside of Model
Hi,
I''m trying to run a ruby file in lib from inside of a model. How can I
run a ruby file from inside of a model?
In this example, Thing.rb is my model. I''m trying to run do_update.rb.
How can I call this from inside of Thing.rb?
Thing.rb
**********************
def update_things delete_cache
things = Thing.find(:all, :conditions => "updated = false")
### Run an updater in "lib/updater/do_update.rb"
#### What goes on this line? # ruby script...
2007 Sep 14
5
controller.expect_render has me beat!
...nd
The example has the following
it ''should render the "edit" config url on an unsuccessful save'' do
@config.should_receive(:update_attributes).once.and_return(false)
c*ontroller.expect_render( :action => :edit, :id => 1 ).once #
my prob*
do_update
end
This fails with
Mock ''expect_render_mock_proxy'' expected :render with ({:action=>:edit,
:id=>1}) once, but received it 0 times
I have tried
controller.expect_render( :action => :edit ).once
Am I using #expect_render correctly?
Thanks for all and any hel...
2008 Jul 07
3
yum-updatesd not working on CentOS 5.2
...update in CentOS 5.2, is there
any patch for this? anyone using this daemon for Yum?
This is the configuration file:
# grep -v "#" /etc/yum/yum-updatesd.conf
[main]
run_interval = 60
updaterefresh = 60
emit_via = email
email_to = santi at example.com
email_from = centos at example.com
do_update = yes
do_download = yes
do_download_deps = yes
Regards,
[1] http://bugs.centos.org/view.php?id=2039
[2] http://bugs.centos.org/view.php?id=2592
[3] http://bugs.centos.org/view.php?id=2560
--
Santi Saez
2017 Feb 27
2
errors on rebuild
...eback (most recent call last):
…
File "/a/mailarch/current/haystack/management/commands/update_index.py", line 221, in handle_label
self.update_backend(label, using)
File "/a/mailarch/current/haystack/management/commands/update_index.py", line 266, in update_backend
do_update(backend, index, qs, start, end, total, self.verbosity)
File "/a/mailarch/current/haystack/management/commands/update_index.py", line 89, in do_update
backend.update(index, current_qs)
File "/a/mailarch/current/haystack/backends/xapian_backend.py", line 286, in update...
2002 Jul 07
2
wins.dat to DNS
Hi,
I'm wondering how to setup my DNS server (BIND 9.1.1) to read a zone from my wins.dat file. Is there a script I can use, or is there some other way to do it? I'm a linux newbie so a lot of info helps!
Thanks,
Jeff Nichols
-------------- next part --------------
HTML attachment scrubbed and removed
2007 Oct 19
1
Size and performance efficient rewriting of the `dash.test` built-in
...perators and primary_operators
may be provided by implementations. They shall be of the form -
operator where the first character of operator is not a digit.
Now, i want to add something like this:
#!/bin/dash
cd /mnt/path/to/src
test file.c -ot [ utils/foo.c include/bar.h ] && do_update
[ file.c -nt [ utils/foo.c include/bar.h ] ] || do_nothing
test vmlinux.o -nt [ $DEP_LIST ] || do_something
#shend
When using parameter, IFS can split any kind of list separation, so
list syntax, basically, is not that much important.
Why. Because of my intention of getting rid of the `make...
2017 Mar 02
2
errors on rebuild
...>> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 221, in handle_label
>> self.update_backend(label, using)
>> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 266, in update_backend
>> do_update(backend, index, qs, start, end, total, self.verbosity)
>> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 89, in do_update
>> backend.update(index, current_qs)
>> File "/a/mailarch/current/haystack/backends/xapian_backend.py&quo...
2005 Sep 23
1
Sortable list with Ajax and delete function - working example
Hi.
I read most of the postings here but unfortunately I didin''t found a complete example which could be used. Of cource the ones who are professionals in javascript could implement the missing peaces from the puzzle.
What I''m required to do is a tree (sortable list) where items can also be deleted and at each modification a function (ajax) is called to save the changes. For
2017 Feb 28
0
errors on rebuild
...> …
>
> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 221, in handle_label
> self.update_backend(label, using)
> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 266, in update_backend
> do_update(backend, index, qs, start, end, total, self.verbosity)
> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 89, in do_update
> backend.update(index, current_qs)
> File "/a/mailarch/current/haystack/backends/xapian_backend.py", line...
2007 Aug 01
3
yum-updatesd.conf on centos 5
...g for protection.
yum-protectbase-1.0.4-2.el5.centos
Now, everything works. But, in this vershion of yum, It has no crontab
running. It has a file called /etc/yum/yum-updatesd.conf instaed.
in this yum-updatesd.conf file,
by default, below 3 lines were set to no
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no
I changed it to yes.
Pls see below for my yum-updatesd.conf file.
[root at mailgw ~]# cat /etc/yum/yum-updatesd.conf
[main]
# how often to check for new updates (in seconds)
r...
2006 Oct 13
2
form_for() and name
.... it is because that i need to access the form name
for javascript manipulation.
as far as i know, name can only used in form_tag(), but i currently have
more than 50 forms that built using form_for(). the structure is like
this:
<% form_for symbol, item,
:url => { :action => "do_update", :id => item } do |f| -%>
<%= f.text_field(:title)] %>
<%= f.text_field(:price)] %>
<%= submit_tag ''Save'' -%>
<% end -%>
in case i have to change to form_tag(), is there any structure
suggestion to change my form_for() to form_tag() ?
than...
2017 Mar 25
0
errors on rebuild
...t; File "/a/mailarch/current/haystack/management/commands/update_index.py", line 221, in handle_label
>>> self.update_backend(label, using)
>>> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 266, in update_backend
>>> do_update(backend, index, qs, start, end, total, self.verbosity)
>>> File "/a/mailarch/current/haystack/management/commands/update_index.py", line 89, in do_update
>>> backend.update(index, current_qs)
>>> File "/a/mailarch/current/haystack/backends/xapian_backe...
2007 Jan 29
0
Rails trunk breakages
...(eval):19:in `artist_url''
/Users/jchris/ruby/rails/grabbit/config/../app/controllers/artists_controller.rb:59:in
`update''
/Users/jchris/ruby/rails/grabbit/config/../app/controllers/artists_controller.rb:56:in
`update''
./spec/controllers/artists_controller_spec.rb:267:in `do_update''
./spec/controllers/artists_controller_spec.rb:287:
For now I''m just using Rails r6061, but I wonder if people using a new
version of RSpec are not having trouble. For reference, I''m using
RSpec and RSpec on Rails from trunk as of revision 1359. (Even more
reference....
2008 Feb 25
0
Yum-updatesd not functioning
...nds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = email
email_from = root at FQDN (the real server FQDN is in the file)
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no
None of the servers notified me of the batch of updates that came out
this weekend. Running 'service yum-updatesd status' on each of them
showed it as running, yet a ...
2008 Dec 11
6
yum-updatesd or similar for CentOS 4
Hello,
we have enabled yum-updatesd on our dozen real
and virtual machines running CentOS 5.2 some time
ago and are very satisfied:
afarber at ablsw01:~> grep -v ^# /etc/yum/yum-updatesd.conf
[main]
run_interval = 7200
updaterefresh = 1200
emit_via = email
dbus_listener = no
do_update = yes
do_download = yes
do_download_deps = yes
(it would be good to make it use the proxy though...)
My plan is to keep the update mails and if
anything goes wrong, install the older packages.
But until now I never needed to do that :-)
However we have few machines running CentOS 4.7
which we...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...col = art.get_color(Wx::AUI_DOCKART_GRIPPER_COLOUR)
+ @grip_colour.set_bitmap_label( create_colour_bitmap(col) )
+ end
+
+ def on_pane_border_size(event)
+ @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_PANE_BORDER_SIZE,
+ event.get_position )
+ @frame.do_update
+ end
+
+ def on_sash_size(event)
+ @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_SASH_SIZE,
+ event.get_position )
+ @frame.do_update
+ end
+
+ def on_caption_size(event)
+ @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_CAPTION_SIZE,
+...
2006 Nov 07
2
Crash when embedding R X11 windows
...;
- XFindContext(display, event.xexpose.window,
- devPtrContext, &temp);
+ if (XFindContext(display, event.xexpose.window,
+ devPtrContext, &temp)) return;
dd = (NewDevDesc *) temp;
if (event.xexpose.count == 0)
do_update = 1;
@@ -595,8 +595,8 @@
else if (event.type == ConfigureNotify) {
while(XCheckTypedEvent(display, ConfigureNotify, &event))
;
- XFindContext(display, event.xconfigure.window,
- devPtrContext, &temp);
+ if (XFindContext(display, eve...
2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
...pan><span class="cx"> return
</span><del>- end
</del><ins>+ end
+
</ins><span class="cx"> @frame.get_dock_art.set_colour(var, dlg.get_colour_data.get_colour )
</span><span class="cx"> @frame.do_update
</span><span class="cx"> update_colours
</span><span class="lines">@@ -288,7 +289,7 @@
</span><span class="cx"> sz = Wx::BoxSizer.new(Wx::HORIZONTAL)
</span><span class="cx"> sz.add(1, 1, 1, Wx::E...