Displaying 20 results from an estimated 3000 matches similar to: "one rails application, many schemas"
2005 Dec 26
5
show render time on pages
hello all!
is it possible to access the render time variables in the view? i would
like to show
Completed in 0.09574 (10 reqs/sec) | DB: 0.08729 (91%) | 200 OK
[http://localhost/person]
on each page like in the logs.
how can i do this?
2012 Dec 04
6
Help for a function
Hello all,
I need a help.
I am modeling a disease and a create a R function like that:
Lambda<-function (x,date1,r,h,a){
ndate1 <- as.Date(date1, "%d/%m/%Y")
t1 <- as.numeric(ndate1)
x[order(x$i),]
t <-x[,"t"]
i <-x[,"i"]
CONTAGIEUX <-x[,"CONTAGIEUX"]
while ( t1 < min(t) ){
for (i in 1:length(i) ){
{for (j in
2006 Apr 17
6
Is there anyway to make Rails NOT cache?
Is there anyway to make Rails NOT cache? I''m getting caching in the
browser and the server.
I have to restart Lighttpd after every view change to see the results.
Thanks,
phill
2005 Feb 01
1
3G Video Mobile Phone
Hi,
Is there any future possibility that Asterisk will be compatible with connection to 3G video mobile phone such as Nokia 7600, Nokia 6630 and many ohters in Japan, Europe and HongKong?
If this become possible, H.323 video clients and 3G mobile phone will be able to share video conversation, which will be huge in those countries.
In Japan, more than 3 million 3G video mobile phones are
2006 Apr 04
2
"script/server -e production" doesn''t work
I''ve got an error that''s only happening on my live webserver, so wanted to
test on my local machine in the production environment.
On my local machine, I tried to run...
script/server -e production
... but get: server: invalid option: -e
Has this been disabled or renamed in 1.1?
I''m running gem Rails 1.1, Ruby 1.8.4, and the server is Lighttpd 1.3.16.
Thanks,
2017 Apr 17
7
PBX selection
Hi all, I'm new to VoIP, now we have a project that needs a
PBX with client APPs.
In our team we have argument for choosing PBX. By so far, we
have following candidates:
A: Open source
1) Asterisk PBX (http://www.asterisk.org) (with longest
history that almost every one knows it, now the last version using the
PJSIP stack)
2) FreeSwitch (http://www.freeswitch.org) (A lot people
2009 Mar 18
1
lm function (PR#13608)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.109.172)
I tried using the lm function to regress the third column listed below on the
second column listed below. It gave me an error message. My code is below.
> HDISWLSdata=read.table("RHDISWLS.txt")
> HDISWLSdata
V1 V2 V3
1 DENMARK
2005 Nov 30
1
[lighttpd] proxy.server and url.rewrite-once
i have a very simple lighttpd config that just forwards with mod_proxy
some requests to different hosts lixe this:
server.modules = ( "mod_proxy", "mod_rewrite" )
server.port = 80
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = "/var/log/lighttpd-err.log"
server.document-root = "/var/www/htdocs/"
2006 Jan 04
5
check if a file exists?
Hello all!
I have a list of people on a page, and some of this people have pictures
of them stored on the web server. So I have an image tag like this on my
page:
<%= image_tag "/images/people/" + person.pers_id.to_s + ".jpg" %>
But not all have a picture, so if the file for pers_id=1899 does not
exist, i would like to display a custom image for that guy.
How can I do
2008 Aug 26
2
Re: General translation questions
Hi Ralph,
> there is someone on the centos-docs mailing list who also wants to (at least)
> offer a translation of the Release Notes into chinese (simplified in this
> case). As those are subtleties(?) which are completely wasted on a eurocentric
> guy like me.
>
I don't think this guy is making any sense because there's simply no
difficult for all Chinese people to
2008 Jan 23
14
Again: Workaround found for request queuing vs. num_processors, accept/close
Hello all.
I too found out that I sometimes have some action that can take up to 10
seconds in my rails application. I''ve read all arguments Zed made about
polling/and inbox strategies, and I think I just can''t work around my feeling
that a "wrong" request that takes up too much time should be able to lock
subsequent requests in mongrels queue. That''s what
2011 Mar 21
7
wrong time retrieved from system command
${STRFTIME(${EPOCH},GMT+8,%G%m%d-%H%M%S)}
I use the above command to get the system date and time
it returns 20110321-034329
but it is exactly 8 hours early than the system time when I type date in
linux terminal
Mon Mar 21 19:43:35 HKT 2011
I am looking for help.
CK
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 20
5
Rails, FCGI, Dreamhost
Is anybody getting acceptable performance with a Rails application on
Dreamhost? By this, I mean response times no greater than 3 seconds, and
no large numbers of FCGI processes that you have to kill manually.
If so, how?
I''ve ended up running a constant ping script (once every ten minutes),
and still have to kill some number of excess dispatch.fcgi processes
every day.
Along with
2004 Sep 03
3
Client had recoverable error
Mhhh. I am streaming from a 8mbit adsl connection so it should be fast
enough. I tried streaming with media player, it's working for 24 hours now,
doesn't seem to have the problem, is my winamp 5.03 broken? Or is winamp
broken in general? :)
Thanks for the help.
Silvester
-----Original Message-----
From: Karl Heyes [mailto:karl@xiph.org]
Sent: donderdag 2 september 2004 22:57
To:
2010 Apr 30
5
Asterisk and Patton
Hi,
we have and Asterisk server connected to a Patton Smartnode 4638 with
4 BRI.
We configured 4 SIP account on Patton (1001, 1002, 1003, 1004).
The system is fully functional, but we have a problem to recognize
incoming calls from Asterisk: when a call come from SIP/1001 (BRI 1 on
Patton) or SIP/1002 (BRI 2) or SIP/1003 (BRI 3) Asterisk record a call
coming from SIP/1004.
I have contacted Patton
2006 Feb 03
5
writing my own generator
Hi all,
I wanted to write my own generator. What would be a good starting point.
Is there any documentation on this, Best practices, etc?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060203/c64c4730/attachment.html
2005 Aug 10
5
validates_format_of on an optional field using :if
Hi there,
I''ve got the following in my model:
validates_format_of :postcode,
:with => /^([a-zA-Z]{1,2}[0-9]{1,2} [0-9]{1}[a-zA-Z]{2})$/,
:message => "is not valid",
:if => :postcode
... but it''s not working - it always insists on validation, even if postcode
is empty. Basically, the postcode field is optional, but if it''s filled in, I
want to
2008 Jan 25
2
Apache, proxypass and REMOTE_USER
Hello, still trying to get things going.
With proxypass the REMOTE_USER variable set by mod_auth_* is not passed to
mongrel. I found another admin that has the same problem[1], but no solution.
Did someone here solve this problem?
[1]http://mail-archives.apache.org/mod_mbox/httpd-users/200610.mbox/<323a37200610021509k6142cb08q6e6b0642e3261c6d%40mail.gmail.com>
2004 Sep 01
2
Client had recoverable error
Hi there,
I?m using icecast 2.0.1 with darkice 0.14 streaming an 192kb mp3 stream.
Everything seems to work fine except that clients (eg winamp5) disconnect
after a period of time (5/10/20 minutes). The icecast log shows some weir
errors:
[2004-08-18? 01:24:54] DBUG format-mp3/format_mp3_write_buf_to_client Client
had recoverable error -1
[2004-08-18? 01:24:54] DBUG
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers,
For some time now I''ve been looking for a decent Rails equivalent of PHP''s
"htmlentities" command, because ERB''s html_escape (or more commonly called as
just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me.
Back in PHP land, I actually had an extended version of the htmlentities
command to deal with