similar to: while loops

Displaying 20 results from an estimated 100000 matches similar to: "while loops"

2006 Jan 10
4
Help with amportal: asterisk ended with exit status 127
Greetings. I am trying to get AMP up and going on my Asterisk server. I can access the admin pages on my asterisk server via a web browser. I can add and edit things via the web browser and it edits the database accordingly. Everything seems fine except when I try to run 'amportal start'. Below is what I get (Plus tail /var/log/asterisk/full, but the tail of the 'full' log
2006 Dec 07
6
Response To Form Submission Hanging
Hello, I am using Mechanize to post a form to a website. When I do this by hand in my browser the response takes about 35s to come back (it''s a long page full of tables and graphics). When I do this with Mechanize, the server starts to respond and then appears to hang. The obvious conclusion is that my code is wrong but I am reasonably sure that I haven''t altered it
2006 May 22
15
collection_select default selected value
Hiall, Unfortunately I just can''t find out how to setup a default selected value when using collection_select. My call is like so: <%= collection_select(:consultant, :lastname, @consultants, :id, :lastname, { :selected => @current_consultant.id } ) %> which is not working, I debugged so far that I know that @current_consultant.id contains the correct value. Any tips? cheers
2010 Aug 18
2
[PATCH] Don't show vlan interfaces in NIC host management
Signed-off-by: Arthur Clement <aclement at linagora.com> --- src/host-browser/host-register.rb | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/host-browser/host-register.rb b/src/host-browser/host-register.rb index 693a6f2..5ff6a90 100755 --- a/src/host-browser/host-register.rb +++ b/src/host-browser/host-register.rb @@ -393,13 +393,18 @@ class
2010 Sep 14
1
[PATCH] Fix bad declaration in host-register
Signed-off-by: Arthur Clement <aclement at linagora.com> --- src/host-browser/host-register.rb | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/host-browser/host-register.rb b/src/host-browser/host-register.rb index 5ff6a90..7bf957d 100755 --- a/src/host-browser/host-register.rb +++ b/src/host-browser/host-register.rb @@ -393,14 +393,13 @@ class
2006 Jun 21
7
acts_as_taggable and paginate?
Hi there, I''ve been trying to paginate over a list of members that all share a tag in common using the acts_as_taggable plugin. The regular way of paginating over a collection doesn''t seem to work with acts_as_taggable. Here''s what my method looks like that takes in a tag name, finds all the members that share the tag and then displays all the members. Nothing too fancy
2006 May 24
2
asterisk amportal start/stopped/start/stopped for all the time
Hi!I've this problem to another asterisk@home machine, without digium cards, but only with a bri isdn card.It doesn't connect in the amportal graphical,(it's stopped), if I make tha amportal start command this is the result: STARTING ASTERISK Asterisk ended with exit status 1 Asterisk died with code 1. Automatically restarting Asterisk. Asterisk ended with exit status 1 Asterisk died
2007 May 04
5
Something wierd with .save method
Hi, I have a very sime app. I need to create as many records in the db as the selected checkboxes (named :isselected) in the view. Here is the code snippet from the controller: isselectedhash = params[:isselected] for mod in isselectedhash.keys @issue = Issue.new(params[:issue]) @issue.state = ''NEW'' @issue.mod_id = isselectedhash[mod] # this gets
2006 Jul 27
17
How do you stop a Ruby method from executing?
Hey guys, How do you stop Ruby code from executing? For example, def newaction puts "1" return puts "2" end I tried return in the following example, but it continues and than looks for newaction.rhtml. How do I stop it completely dead in its tracks? -- Posted via http://www.ruby-forum.com/.
2006 May 17
1
ActiveRecord vs logger
Appendix B.1 of the Agile book says you can configure as follows: B.1 Active Record Configuration ActiveRecord::Base.logger =logger Accepts a logger object. This is used internally to record database activity. It is also available to applications that want to log activity. Yet, as far as I know, there is no way to use logger.info and friends within a model. Is there? Or is this simply
2006 Jun 04
5
Creating pulldowns using loops
Creating looped pulldowns in PHP is simple so I can''t figure out why it seems to elude me in RoR. I want to create a simple pulldown list with the options and values "1" through "14." I have been trying to accomplish this with the .upto method like so: --START RHTML CODE-- <% options_array = [ 1.upto(14) {|i| print "[" i "," i "]"}
2009 Jul 07
1
[PATCH] Set up ovirt-agent so it starts as a daemon
This sets up ovirt-agent to start as a daemon along with dbomatic, taskomatic etc. While this is not ready for prime time I think it should be ok as you still require a valid, authenticated, connection to qpidd to access it. Signed-off-by: Ian Main <imain at redhat.com> --- installer/modules/ovirt/manifests/ovirt.pp | 6 +++ ovirt-server.spec.in | 5 ++
2006 Oct 11
3
Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
Hi list! I recently upgraded to FreePBX 2.1.3 although I am not sure if this has something to do with it. I do a nightly restart of Asterisk, just in case. This has been working fine months but since a few days asterisk seems to die and I am not able to restart it again, I keep getting a socket in use message. This is on Asterisk 1.2.12.1, Zaptel 1.2.9.1 and Libpri 1.2.3 This is a snippet
2009 Dec 30
2
CID not working.
Hi, I am using asterisk 1.4.28 with freepbx and Wildcard TDM410P card. Everything is working fine except the caller ID of incoming call from PSTN line. The phone display is showing "Unknown" when there is an incoming call. *My log file showing this while an incoming call on PSTN line:* tail -f /var/log/asterisk/full [Dec 30 06:36:16] DEBUG[2559] dsp.c: dsp busy pattern set to 0,0
2006 Jul 15
13
Active Record: Can it auto-create database tables for you?
Hi, Just get started with Rails and I''m trying to read ahead and find out whether Active Record supports auto-creation of database tables for you? Is this supported, or is the concept that you write your own database DDL to do this? Thanks -- Posted via http://www.ruby-forum.com/.
2007 Sep 18
2
asterisk crash and core dump
My Asterisk installation crashes frequently. Since it's a random event I am not able to reproduce it so I can't say what is making it crash. Here's a snippet of /var/log/asterisk/full just when it crashes: Sep 18 13:42:51 DEBUG[378] chan_zap.c: disabled echo cancellation on channel 31 Sep 18 13:42:51 VERBOSE[378] logger.c: -- Hungup 'Zap/31-1' Sep 18 13:42:51
2006 Apr 01
2
my app broke this morning on with this error.
Like I said, my app suddenly stoped working in the last few minutes. I''m on dreamhost but I''m running rdge rails locked in on the 1.1 release. Stale NFS file handle - ../config/../log/production.log /usr/lib/ruby/1.8/logger.rb:520:in `write'' /usr/lib/ruby/1.8/logger.rb:520:in `write'' /usr/lib/ruby/1.8/logger.rb:318:in `add''
2006 Feb 11
2
configure TE205P on asterisk@home
hi i'm trying to configure a TE205P on asterisk@home i've edited /etc/sysconfig/zaptel adding this line: MODULES="$MODULES wct2xxp" now, when the system is loading, i can see that the wct2xxp module is loaded correctly but if i try the command: /usr/local/sbin/genzaptelconf i get: STOPPING ASTERISK STOPPING FOP SERVER Generating '/etc/zaptel.conf' Generating
2006 Apr 05
23
how to create RJS visual effects callbacks
I''m trying desperately to get visuall effects callbacks working in rjs templates to no avail What I''m trying to do is fade an image, change the div with the image to a new image, and then fade the new image back in. How would I go about this in RJS Here''s a simple line from my rjs that I can''t get to work. It is not using callbacks so the
2006 Feb 23
5
Web/HTTP Testing
Hello, I am looking for a user test automation tool. When I say ''user'', I mean it should mimic the user interacting with the app. That ultimately boils down to a tool that drives a browser or is able to make http requests and allow us to deal easily with the responses. Our requirements are to be able to write the tests in Ruby (no need to switch to other language for test