Displaying 20 results from an estimated 1000 matches similar to: "integrate with php-script"
2004 Jul 26
3
Intermittently denying access to webshop
Hello shorewall-users,
we have a strange problem where some of our customers cannot access our
webshop, but most of the customers can. I have been slowly eliminating
possibilities and am now left with either the firewall (Shorewall 1.4) or the
webshop server.
What appears a lot in the logfiles is:
Jul 26 11:51:04 gw kernel: Shorewall:logdrop:DROP:IN=eth0 OUT=eth1 SRC=84.128.198.240
2005 Mar 08
3
Making a module method available in view
I have a Rails application called RailsApp. In my RailsApp/lib
directory, I have a file called localization.rb that defines a module
called RailsApp with a Localization class that implements a method l.
(RForum devs and fans will recognize this as the YAML-based
localization feature in that package.)
I want to be able to call this method from my controllers and views.
I have added a
2006 Sep 22
1
how about the global data when multiple backgroundrbs ?
Ezra,
Suppose a chatroom application, a RailsApp + 2 backgroundrbs: MiddleMan1&
MiddleMan2, running in 2 machines.
When Chater1 login, RailsApp call MiddleMan1 to get something about
Chater1 from db to memory, like his contacts or other personal settings.
When Chater2 login, RailsApp call MiddleMan2 do the same thing.
But who is reponsible for the Global Data? like a Online Chaters
2006 Feb 06
4
fcgi to run cgi scripts
Dear experts,
I have rail site that is running lighttpd and fcgi. I want the default
domain to serve the rails application, and I also want to have a
virtualhost (bugs.mysite) to resolve to a bugzilla instance.
Bugzilla is basically Perl application called through CGI.
I tried to find pointers on how to set fcgi to run both rails dispatcher
and other cgi scripts in a different virtualhost, and
2006 Nov 13
9
Setting up Mongrel and Apache , some direction needed
I have a site that is PHP on Apache / RedHat , but will send requests to a
subdomain (running Rails) for database operations.
I believe the set up should be to have ROR using Mongrel, and an Apache
virtual host passing requests from apache to mongrel.
Does this sound correct ?
I believe the Virtual Host is set up in Apache.
One of my problems is I can''t find the httpd.conf file for
2006 Jul 21
1
Lighttpd for rails app subdomain apache for the rest
I want to host a rails app at mydomain.com/railsapp. For technical
reasons I have to leave mydomain.com on apache. This means that I need
to tell apache to proxy only requests for mydomain.com/railsapp to
lighttpd. I have deployed in a situation like this before around a year
and a half ago but it was a real pain. Lighttpd and rails have matured
a lot in the year and a half since I did
2007 Mar 09
3
Rails log file permissions
When I start a Rails server with
$ mongrel_rails start --chdir ~/railsapp --port 3003 --pid \
/home/me/railsapp/tmp/pids/mongrel.pid --daemonize
the server starts and opens two log files, development.log and
mongrel.log. Both have permissions -rw-rw-rw-.
If I omit --deamonize, it opens one log file, development.log, with
permissions -rw-r--r--.
I would like to make the server use
2013 Apr 13
3
Cannot reach http://localhost:3000 after starting Ruby on Rails server
I cannot reach http://localhost:3000 after starting Ruby on Rails
server when running Windows 8. After running rails server in the
directory that I want the server to start, the following prompt shows
up:
C:\Users\Brian\railsapp>rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown
2012 Jan 10
1
Howto add bricks to a replicated Volume
Hi,
I am running a three Node replicated Volume and need to add more
Bricks. What I've read so far this that this is not really possible so
the question is how it should/can be done?
Can I create a replicated Volume with 10000 Bricks where 9997 are
missing? Is there a way that I didn't find so far?
The Gluster Volume is used to store images for a Webshop in the Amazon
Cloud and I
2005 May 19
1
Newbie X100P question
Hello,
I just bought a X100P from digitnetworks.
It is supposed to be a FXO card, but there are 2 rj-11 plug on the card.
One is labelled "phone" and the other "pstn". When i plug the "pstn" on
the wall and the "phone" on my analog phone, everything (incoming and
outgoing calls) works like before (without asterisk).
AFAIU, i should have an FXS card in my
2010 Jun 07
1
what`s best memory - speed - pc for R?
Hi all,
I need to do massive simulations in the next two years. I estimated
that I will need about 64GB memory, if I do not want to split up the
calculations. Additionally I would like to have it as fast as possible.
Can R handle multi-core processors and can all standard operating
systems handle the same amount of memory and speed?
Perhaps someone could point me to a webshop that sales
2011 Aug 02
2
ror +auth_token + c#
HI,
i have to change a desktop app written in c# to post and get some data
to/from a rails app. the railsapp uses devise.
what im doing right now is:
1) pull up sign_in page
2) parse 1) for auth_token
3) post username+ pwd & auth_token
3.1) if 3 ok > goto 4)
4) post json data
that works all good, except that i do not provide auth_token in step4 , but
a) rails is still accepting my data.
2011 Aug 02
2
ror +auth_token + c#
HI,
i have to change a desktop app written in c# to post and get some data
to/from a rails app. the railsapp uses devise.
what im doing right now is:
1) pull up sign_in page
2) parse 1) for auth_token
3) post username+ pwd & auth_token
3.1) if 3 ok > goto 4)
4) post json data
that works all good, except that i do not provide auth_token in step4 , but
a) rails is still accepting my data.
2006 Feb 02
4
How switching global layout (application.rthml <or> custom.rhtml)
Dears,
My railsapp run using ''/layout/application.rhtml'' and under some
conditions ( Authenticated user, url parameter) I like to switch
globally to another layout, let''s say custom.rhtml
Like :
class AppController < ApplicationController
before_filter :context_layout
def index
end
end
# application.rb
def context_layout
if <context_condition>
2005 Dec 30
3
NewbieQ - Relational tables
Hi all,
I''m going nuts on a very simple issue. I know what I want but don''t know what
to tell rails to do so. I have a very common setup for managing contacts. A
companies table and a contacts table. As you''ve guessed it''s a one to many
relationship.
The database is setup with the appropriate foreign keys, the models have been
generated and I added the
2005 Dec 15
10
.rpdf ?
I haven''t delved into the wonderful world of PDF::Writer yet, nor have I
run across a need.. but I just had an idea I wanted to throw out there
how hard would it be to create a .rpdf template plugin for rails?
could be neat ;]
2006 Jun 06
9
How to protect images from public?
Hi,
I''m trying to figure out the best way to protect images uploaded by
users who may wish to keep them private.
For example, if they are uploaded in the default file_column location
(/public/blah/blah/1/) then someone can simply type the URL
http://www.blah.com/blah/blah/1 and get the image.
I can store the images in a non-public directory in the rails app (ie:
/railsapp/images/X/)
2007 May 17
2
Running SSL Rails app on apache server already in use
SSL and Rails is proving to be somewhat confusing and difficult to get going
for me.
I already have an HTTPS apache instance running off my domain -- legacy
secure web app. (lives at https://www.mydomain.com say)
Now I want to develop a new app on the same secured domain with rails (out
of a subdir, symlinked or something at https://www.mydomain.com/railsapp )
But how can this work?
To get that
2005 Dec 19
3
RMagick Resizing Issue
Hello ~
I have RMagick and file_column working in RoR. In my model I am setting up
some standard sizes for the submitted photos. The photo files are created
and named correctly, but the sizes are wrong. Only the second argument of
my geometry call is used, with the width dimension being resized
proportionately.
file_column :image, :magick => { :versions => { "medium" =>
2006 Oct 02
3
Mongrel cluster FreeBSD rc.d script
Hello all
After installing Mongrel, Mongrel Cluster and all it''s dependencies via gems
under FreeBSD. Next I have configured all config/mongrel_cluster.yml for each
Rails app, then:
% mkdir /usr/local/etc/mongrel_cluster
and likend each railsapp.yml to it''s refering app/config/mongrel_cluster.yml
My question is, after preparing all base configs now I need to add some rc.d