Displaying 20 results from an estimated 1000 matches similar to: "Windows+Apache+FastCGI+Postgres - didn't work"
2006 Mar 29
1
Fixing output_compression for Rails 1.1
With Rails 1.1 the output_compression[1] plugin was broken.
Once I upgraded to 1.1, I had to tweak it a bit to make it work.
Mainly it''s removing the code dealing with component requests, as
that''s part of rails now, and changing one function call.
Get the modified output_compression.rb file from
http://devblog.famundo.com/output_compression.rb and give it a try.
It''s
2006 Apr 03
0
Making output_compression work with send_file
While working with the newly fixed output compression plugin, one of
the devs in my team discovered that it breaks with send_file(). So if
you are using send_file() in your application you must get the fixed
file I''ve put at: http://devblog.famundo.com/output_compression.rb.
The change is actually in checking for the Content-Disposition header
added by send_file(). See the full writeup
2006 May 14
0
Beware of HashWithIndifferentAccess#symbolize_keys!
Hi,
I just posted a patch tot he rails trac for a bug we found where
running symbolize_keys! on a HashWithIndifferentAccess will delete all
items from the hash. Please make sure you either never call
symbolize_keys! (or to_options! which just alias it) on a
HashWithIndifferentAccess, or apply the path attached from the ticket
at: http://dev.rubyonrails.org/ticket/5076
I also posted a much longer
2006 May 30
0
Fixing PUT to work with multipart messages
We recently wrote our API to be fully REST, and so user PUT for
updates. The problem is, we need multipart requests, but there''s a bug
in CGI, and it doesn''t work.
The rails code as a fix for POST requests, but not for PUT requests.
So we added PUT as well and it works great now. I posted this as a
patch in trac (http://dev.rubyonrails.org/ticket/5235) so you can get
it if you
2006 Mar 05
5
A nicer and gentler form of spawner
I was working on deploying an app with switchtower, and I really
dislike the way spawner is implemented. The way it will relaunch the
dispatcher all the time just to let it die if the port is in use is
too brute force for my taste.
As we''re in a ruby script, why not let ruby find out if the port is in
use? Using the TCPServer class we can try and bing to the port. If we
succeed, it means
2006 Feb 01
3
Configure Apache 2.0.55 and FastCGI
I''m installing a Rails App under Apache 2.0.55 with FastCGI.
I have this config under httpd.conf
------------------------
LoadModule fastcgi_module modules/mod_fastcgi.dll
...
Alias /fatturails/ "C:/Programmi/Apache
Group/Apache2/htdocs/fatturails/public/"
<Directory "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public">
AddHandler fastcgi-script .fcgi
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are
all under modules. So the structure looks something like:
app/
controllers/
message/
news_controller.rb
email_controller.rb
library
books_controller.rb
pictures_controller.rb
home_page_controller.rb
Each of those controller has
2003 Apr 04
1
Re: Question about the password field in a postgres ql database
> Works fine with me.. Only thing I can think of is that it's
> some stupid
> configuration mistake, like not uncommenting the line :)
Hi Timo,
I just (double) checked my config files, and it LOOKS ok.
My dovecot is from cvs, updated yesterday, and running on Redhat 7.3 (if
that matters).
Here is my dovecot-pgsql.conf:
--8<--
#
# Postgress connect string. Similar to PHP
2002 Oct 30
1
connect() timeout patch.
Hello all,
I am wondering where one would submit a patch to OpenSSH cvs
version? I have written a patch that allows the user to set a timeout the
ssh clients connection attempt. I added this because many of us use ssh
in automated scripts and in some cases machines may no longer be reachable,
rather than wait you can set the timeout to say 3 seconds (-z switch).
-- Larry Cashdollar
2006 Apr 24
3
Regex in HTML
So, I''m trying to write a nice bit of regex to handle finding anchor tags in
a bit of html.
This is what I''ve got....
/<[aA][^>]*>[^<]*<\/[aA]>/
I''m planning on using this with a gsub!.
Here is what it has to do....
<html><a href="http://stuff.com" class="link">Anything in here.</a></html>
As you can
2009 Feb 18
1
ssh -f & pid
Hi,
Ssh -f forks itself in the background. Very usefull if you would like to
e.g. tunnel munin over ssh. Now it's tricky to terminate one process if
you have multiple running.
It seems that ssh currently (looked at 5.1p1) has no write-pid-to-file
functionality
So I implemented a patch which do so. Tested it a little and it seems to
work. Hopefully it is of any use in my form or inspires the
2007 Aug 22
0
Patch to allow checking of v1 keys on remote host.
The attached patch for 4.6p1 adds a feature (-u) that will check to
see if a key exists on a remote host. I use this for auditing my
users transition to v2 keys very useful. If there is any interest
I'll provide a patch for v2 ssh keys also.
http://vapid.dhs.org/dokuwiki/doku.php?id=vapidlabs:openssh_check_key_patch
-- Thanks
Larry
--- orig/openssh-4.6p1/sshconnect1.c 2006-11-07
2008 Jun 12
1
ruby-postgres gem installation on Leopard
Hi all
I am just about to start a project using rails and am trying to setup
my enviroment with postgres as the database. I have installed postgres
8.3.1 from source and am now having trouble installing the ruby-
postgres gem. The following is the output trace I am getting, looks
like a problem with headers/includes, any help is greatly appreciated.
Thanks
Simon
sudo gem install ruby-postgres
2009 Jul 09
0
[PATCH] Allow binding to a local port (OpenSSH 5.2)
OpenSSH supports the -b bind_address argument for binding to a local
IP address when connecting to a remote host.
It's however currently not possible to specify a local port to bind
to, something I've found useful at several occasions.
Below is an unified diff that introduces the [-B bind_port] option to
ssh(1) and a ssh_config(5) style option "BindPort bind_port".
This allows
2001 Oct 18
1
Patch for SSH-tunneling via HTTPS-proxy
Hi List,
I have a szenario where I need to reach a host on the internet from a
"firewalled" network but there is a HTTPS-proxy runnnig. As some
people know you can tunnel all TCP-connections through this proxy
because it can't decide if someone is really doing SSL or just Telnet
to port 443 (or use SSH in our case).
So I've written a patch for ssh to make it send the
CONNECT
2008 Dec 09
3
a custom progress bar formatter
I''ve always been a little bit bemused by the default ruby test/unit and
rspec output. Basically, what I want is a progress bar and that any
errors and warnings be displayed immediately. I also want warnings to be
printed for slow specs. When using color, I want the entire progress bar
printed in green if everything is good, yellow if there has been a
warning, and red if there has been an
2009 Feb 05
2
[Cucumber] Progress Bar
Inspired by Nick Evans'' RSpec progress bar[1], I had a little crack at
implementing the progress bar for cucumber, ''cause I want to know how
long a break I can take while the features are running :)
It''s in my fork, in the coverage_formatter branch:
http://github.com/mattwynne/cucumber/tree/master
It will dump failing feature, scenario, step and the exception as
2004 Jul 15
3
Database App
Hi,
I was wondering if there is an app available that would let me run
queries on MySQL or Postgress database through the extensions.conf file
in Asterisk.
My goal is to be able to run a simple query on a database that could
return a value in an ${var} variable, or even the number or rows that
were returned in the query in a ${var}. There are a couple of things
in Asterisk I would like to
2006 Apr 06
3
Deploying with Capistrano via cron
I''m attempting to auto deploy a rails application to a development
server periodically during ongoing development. I''ve setup ssh keys
to allow the proper user auto login permissions, but have ran into 2
issues.
1. When the script is run from a cron job as the same user as I
currently manually deploy from I receive an error when reaper tries to
execute - "can''t
2006 Jun 20
1
Basic Architecture Questions
Hi,
First of all I love Mongrel and I want to say thanks!
My questions are related to how things work compared to Apache+FCGI background
1. With FCGI I would normally setup multiple FGI processes do I need to setup multiple Mongrel processes? Or is Mongrel thread based? Does the --num-procs flag work the same way?
2. Is there one database connection per process?
Thanks in advance.