Displaying 20 results from an estimated 300 matches similar to: "How Create New Parameter set at Start Time?"
2006 Dec 14
1
Does send_file act differently with Mongrel than withWebrick?
I tried the mime thing but it did not help. I didn''t think it was that because I can get the mp3 served OK hitting the URL in a browser.
I just noticed that I am getting an error in Mongrel when WinAmp make the request for the mp3 file:
BAD CLIENT (127.0.0.1): Invalid HTTP format, parsing fails.
I don''t think Mongrel has a problem with the URL itself because if a browser
2006 Sep 26
4
Mongrel Processes Dying
We are seeing mongrel processes dying in our mongrel cluster. What is the best way to
troubleshoot this?
We have ruby 1.8.4, Rails 1.1.0 (upgrading soon), MySql 4.1 running on Red Hat Enterprise Linux
ES release 4, Apache 2.2, mongrel-0.3.13.3, mongrel_cluster-0.2.0
I saw the following messages in the mongrel.log but not sure if theay are related to the
processes dying. It would be nice if
2007 Feb 15
1
Anyway to Force a start even if the .pid file exists?
I''m using monit to restart mongrel processes if they go away. With mongrel 0.3 I could issue a start command and the process would start up even if the .pid file existed (though a warning would appear).
Now, with mongrel 1.0.1 the warning says I must clear the .pid file and the process is not started. Is there anyway to force it to start without having to clear the .pid?
Regards
2006 Dec 14
1
Does send_file act differently with Mongrel than with Webrick?
Mongrel 0.3.13.3
Windows XP
Rails 1.1.6
I have a rails app that serves up mp3 files via the send_file command. We create a playlist (M3U) with URLs to the mp3s. These play just fine using Windows Media Player. However using WinAmp we get an error "error syncing to stream" when it tries to request the mp3.
After playing around I found that if I am running Rails under Webrick WinAmp
2006 Sep 26
3
Clustering - Avoiding "dead" processes?
I have Mongrel Cluster setup with Apache a mod_proxy_balancer. I''ve seen (from time to time) mongrel instances become non-responsive. Is there anyway to configure the balancer so that it "knows" which processes are no longer good and stops trying to use them?
_______________________________________________________
The FREE service that prevents junk email
2007 Feb 15
2
Multiple Processes Spawned from mongrel_rails start ?
Hello,
I have mongrel 1.0.1, rails 1.2.2 ruby 1.8.5 running on Centos 4.4.
When I execute the mongrel_rails start -d I see that 3 processes are spawned. See below:
[root at ccc aaa]# mongrel_rails start -d
[root at ccc aaa]# ps -def |grep mong
root 2743 1 9 07:14 ? 00:00:01 /usr/bin/ruby /usr/bin/mongrel_rails start -d
root 2744 2743 0 07:14 ? 00:00:00
2007 Jan 12
4
FW: Get dialed numbers in AGI
On 1/11/07, Mike D'Ambrogia <miked@jamagination.com> wrote:
>
> Ralph
>
> Kind of new to asterisk, and really new to AGI but it looks like you were
> trying to have the AGI script tell asterisk to read and lay the results into
> my_var and then regain control in the AGI script, is that correct?
>
> If so I don't think that will work since the dialplan
2007 Jan 10
2
Get dialed numbers in AGI
Hi,
I'm trying to write a AGI in PHP to get the numbers dialed (with read()),
save it into a variable to insert it into a SQL server database. But I
cannot see results into the variable, it always return NULL.
Here is a piece of the AGI.
fwrite(STDOUT,"exec Read my_var|/sound_to_play|5|||15 \n");
fflush(STDOUT);
$conn=odbc_connect('MSSQL', 'USER', 'PASS');
2006 Jul 04
4
adding 0 to beginning of a number
Hi
Is there a quick way to add 0 to the beginning of a number if it only
has one digit?
ie
1 should be 01
11 should stay as 11
(These int''s can be transferred to a string)
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2009 Feb 20
6
How to mock an object defined in the before_filter function?
Hello,
I am trying to implement the following scenario, but I am stuck ...
The thing is I want to initialize a variable @comment when the stub
function "find_comment" is called.
The way I do it below doesn''t work, since
"before_filter :find_comment" returns true/false and @comment
initialization is done inside it. Could you please give me a hint how
to do it?
One
2008 Jun 09
1
Configuration Settings
I am trying to configure CC.rb as an NT service, and have it installed
using SRVANY.exe, and can access the dashboard via http://localhost:3333
Now have a few questions about config
1) Used "cruise add" to add the project, but the dashboard still the
dhasboard says "There are no projects in the project directory"
2) This question may answer 1), how do I configure the
2006 Mar 15
9
Rails 1.1 is coming!
"Rails 1.1 is coming" - Feb 26, 2006 post in rails-core
* http://www.ruby-forum.com/topic/55991
Final Drive Candidates (highlighted for review by core members)
* http://dev.rubyonrails.org/report/19
Potential Rails 1.1 Blockers
* http://dev.rubyonrails.org/report/10
Did you know you can run many different versions of Rails on the same
physical server? This means you can test
2006 Apr 25
4
IE with Xover?
Hi,
I tried to run M$ Internet Explorer with CrossOver, it told me, it would
have been installed good and it would be ready to run but it doesn't come
up when clicking the icon. Why not? Can anybody help?
I'd appreciate cause I need to visit a homepage that seems to run only with
IE as it's supposed to... :( Oh well. Thank you!
--
chEErs roN
I'm root, I'm allowed to do this!
2012 Sep 18
2
Access block scope from AR object
I need to create a sort of transaction around some Active Record objects
that perform many insert/updates.
Example:
class MyObject
def transaction &block
@my_var = value
self.instance_eval block
end
end
MyObject.new.transaction do
Model.create
Model.collection.create
etc......
end
I have a gem that add a method into AR::Base and I need to read
2006 Aug 04
3
Pass a variable via Link To
Can anyone tell me how to pass a value from a link_to in a view to a
controler?
The value is just a piece of text for the time being.
<%= link_to ''About Us'', :action => ''about'', :params => ''string'' %>
???
--
Posted via http://www.ruby-forum.com/.
2005 Mar 10
4
struggling with smbldap_tools
Trying to net rpc vampire an NT4 server
Think I am good to go but I keep getting errors - obviously problem with
NextFreeUnixId attribute - which is created...
dn: cn=NextFreeUnixId,dc=myhomelenders,dc=net
objectClass: inetOrgPerson
objectClass: sambaUnixIdPool
uidNumber: 1000
gidNumber: 1000
cn: NextFreeUnixId
sn: NextFreeUnixId
structuralObjectClass: inetOrgPerson
Every item gets this
2008 Mar 02
1
Problem plotting curve on survival curve (something silly?)
OK this is bound to be something silly as I'm completely new to R -
having started using it yesterday. However I am already warming to its
lack of 'proper' GUI... I like being able to rerun a command by editing
one parameter easily... try and do that in a Excel Chart Wizzard!
I eventually want to use it to analyse some chemotherapy response /
survival data. That data will not be
2006 Feb 01
8
ruby equivalent of isset()
Hi,
Is there a way to test if a certain (local) variable has been initialized?
I''d like to do something like
if isset(myvar) and myvar.true?
#some code
else
#default behaviour
end
I have a lot of shared views that I call with params such as {
show_pager => true
Instead of having to explicitly say show_pager => false it should be
possible to make false a default value, right?
2007 Oct 30
6
Newb to puppet - Solaris svcadm question
I''m new to puppet so this might be a foolish question.
I''m using Solaris 10, server is Sparc, my client is x86.
I created a ''file chown'' manifest as a test ...
/etc/puppet/manifests/classes/puppet.pp
class puppet {
file { "/etc/puppet.txt":
owner => "root",
group => "root",