Displaying 20 results from an estimated 300 matches similar to: "A way to handle looong executions?"
2005 Dec 13
1
Locals and partials
Since i can''t figure out how to use heredocs with erb. im looking at
solving my problem
with partials, but since partials seem to have a completely separate
namespace/scope
im looking for a way to pass the entire scope of the calling rhtml to
the partial.
------------------------------------------------------------------------
Hunter Peress
2005 Dec 14
0
relative subdirectory of partials
if im in the views dir for the railtstest controller and
render a partial like so: render(:partial=>''container/
thepartial'') then
it will only work if that partial is in views/container/thepartial
not if its in
views/railstest/container/thepartial as I expected.
but what i want is to have a dir called container inside of railstest
and be
able to render a partial
2005 Dec 30
0
can''t kill infinite loop with FastCgiConfig directive
FastCgiIpcDir /www/fastcgi
FastCgiConfig -idle-timeout 30
I have that right in the root level of my httpd.conf (1.3)
i made an inifinite loop in rails, and its not killed at all. Any ideas?
------------------------------------------------------------------------
Hunter Peress
hunterp-hceJc2YFNylFcjXmduoLkw@public.gmane.org
Web Programmer
The Santa Fe New Mexican, Inc.
www.freenewmexican.com
2006 Jan 03
1
Max Execution Time with fastcgi (and in general). Getting it done.
The purpose of this email is not to argue that there is a need to
have the option of killing a single response if it
takes longer than say 30 seconds. This is a worthwhile feature, years
of work in php has shown me that it is.
Thanks to a bit of help from various source in the community, I''ve
been able to find something that works with fastcgi
and surely should work with webbrick.
2005 Dec 06
0
infinite loop with breakpointer
I''ve tried my script (shouldnt matter what) with webbrick and fcgi
and it errors,
so I go to retry with breakpoint (and run ruby script/breakpointer)
there have been times when i can get the breakpointer to work but
currently
with both fcgi and webbrick the entire ruby controller is looping.
Sigh...any help in understanding why this is happening?
2008 Jul 11
0
fdsync takes looong
Running a PostgreSQL database and trying to understand the bottleneck in my setup. I now know there is a fdsync being issued to a database file. This one takes up to 10 seconds.
The problem here is that all the other processes are entering a wait state (this is in postgres itself. The syncing process holds a latch in exclusive mode, that is needed by all others) waiting for this flush to finish.
2006 Feb 28
0
Connecting to SAMBA for first time takes a very looong time
I'm running Samba 3.0.14a-2 on FC4 as a print server. The system is
joined to the domain and I'm using the domain security model. Pretty
much, it's configured like my old Samba 2.2.7 server (which this new box
is replacing). On the PC side, printers are assigned to a user via a
VBScript running under a group policy. The first time that script runs
and tries to add the printer
2004 Nov 09
1
3.0.8 and looong logout time
I've got two WinXP SP2 users. Roaming profiles. One of them takes about 25
seconds to log out unless she has made pretty drastic changes to her profile
(My Documents, etc). My second user takes upwards of 3 minutes to log out,
even if he has just logged in, not opened a thing or made changes, and then
logged back out. Below is part of a strace as I don't know what I'm looking
2005 Dec 15
5
Rails vs. J2EE: Sharing state in memory?
Hi,
I am from a Java background and pretty new to Ruby and Rails.
What I am wondering is how I would shared state accross requests and users
without involving IO, i.e. use memory.
My current understanding is that for each request a new process ist spawn
and therefore it gets its own memory. So no sharing can take place between
requests?
Do I understand this right? For those who know
2005 Dec 18
7
Testing against 1.8.4
So apparently 1.8.4 is soon forthcoming. We need testing against it.
Could someone help out with that? I believe Ara already checked into
some of the issues, do you know if those are resolved, Ara?
--
David Heinemeier Hansson
http://www.loudthinking.com -- Broadcasting Brain
http://www.basecamphq.com -- Online project management
http://www.backpackit.com -- Personal information manager
2005 Dec 08
3
Different controllers placement
request: /blog
controller placed at /app/controllers/test/blog_controller.rb:
class Test::BlogController < ApplicationController
def index
render :text => ''Hello, World!''
end
end
What the write map.connect shoud I use? Any Idias?
I see that map.connect ''/blog'', :controller => ''test/blog'' working
correctly, but what about
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is
return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/
i don''t think this will work. in postgresql the field ''now'' is pinned to the
SAME TIME for the duration of a transaction. eg. if you do
begin transaction;
insert into t values(42, ''now'');
# sleep one minute
2006 Jan 04
9
Family Connection 1.0
This is a follow-up announcement from the 0.9 release. There are no
major changes, but this release marks a downloadable (tgz) file as
well as a promotional website, a demo application and screenshots.
Family Connection is an easy-to-setup online hub for your family that
includes a Family News section, and an Address Book.
http://familyconnect.rubyforge.org/
Please note that the download
2013 Jun 28
3
Using Puppet for downgrading Varnish (circular dependency)
Hi all,
I am trying to use puppet (2.7.18) for downgrading varnish cache on Centos
Linux (6.3).
Unfortunately there are two varnish RPMs (which seem to have circular
dependencies):
varnish-3.0.4-1.el6.x86_64
varnish-libs-3.0.4-1.el6.x86_64
When using "ensure" for downgrading I get a bunch of errors:
err: /Stage[main]/Varnish/Package[varnish-libs]/ensure: change from
3.0.4-1.el6
2005 Dec 15
11
CGI Module in Rails
I''m trying to use the CGI module to generate the html in a view but am
having trouble. My controller looks like:
class MyTestController < ApplicationController
def cgitest
require ''cgi''
@cgi=CGI.new("html3")
end
end
My cgitest.rhtml view document simply has:
<%= @cgi.out{@cgi.html{@cgi.head{}}} %>
Loading MyTest/cgitest, Rails tells me that
2005 Dec 12
4
Rails crashes over night?
I''m
running Ruby on Rails on Fedora Core 4 with lighttpd and fastcgi. I
also used the login generator (don''t know if relevant). I have the
following problem: At day time I work on the server and create/modify
ruby files on the server, all pages work fine. Than the next day I want
to open de server I get the error at the end of this message (on all
pages, including non protected).
2005 Dec 02
8
UserEngine: stack level too deep
Hi,
I''m trying to get the UserEngine running.
I have installed the LoginEngine, added the essential lines to
environment.rb / application.rb and application_helper.rb.
Worked fine.
Then I did the same with the UserEngine and when trying to set up the
db:
rake engine_migrate ENGINE=user
I get:
Migrating engine ''user_engine''
rake aborted!
stack level too deep
But...
2006 Nov 04
0
open4-0.5.1
URIS
http://rubyforge.org/frs/?group_id=1024
http://www.codeforpeople.com/lib/ruby/
SYNOPSIS
open child process with handles on pid, stdin, stdout, and stderr: manage
child processes and their io handles easily.
HISTORY
0.5.1:
- fixes a __critical__ but in ThreadEnsemble class that had a race
condition that could cause thread deadlock. sorry bout that folks.
2006 Aug 07
0
open4-0.5.0
URIS
http://rubyforge.org/projects/codeforpeople/
http://www.codeforpeople.com/lib/ruby/
SYNOPSIS
open child process with handles on pid, stdin, stdout, and stderr: manage
child processes and their io handles easily.
HISTORY
0.5.0:
- on the suggestion of tim pease (thanks tim!), i added timeout features
to open4. the command run may have an overall timeout and
2006 Feb 14
0
rubyforge-0.1.1
SIMPLIFY SHARING YOUR RUBYGEMS ON RUBYFORGE!
~> gem install rubyforge
SYNOPSIS
rubyforge [options]* mode [mode_args]*
DESCRIPTION
simplistic script which automates a limited set of rubyforge operations
MODES
setup()
initializes your .rubyforge directory. you need to run this first before
doing anything else.
example :
rubyforge setup
login()