Displaying 20 results from an estimated 200 matches similar to: "Using R for cURL commands"
2010 Jan 10
7
IIS + Apache + Mongrel: Problem with big data submit form
Hi all,
I deployed a Rails application on a Windows Server 2003 machine as
follows:
+ I created two instances of Mongrel at ports 4001, 4002 to serve the
application
+ I set up an Apache instance at port 8080 for balancing load for the
two Mongrels => So I can access my website at URL http://mywebsite:8080/
+ I want to allow users access my website without typing port 8080 in
the URL.
2006 Jul 12
5
2 subdirectories 1 controller?
Hi,
I''d like to create the following setup with RoR:
www.mywebsite.com/subdir1/order/create
www.mywebsite.com/subdir2/order/create
I''d like both urls to call the same action in the same controller. How can
I do this? I know this may be complicated, but I''m prepared to go a long
way.
Shimon
-------------- next part --------------
An HTML attachment was scrubbed...
2008 Feb 07
1
field names, aliases and finders.
I can not seem to make finders work with aliases. My goal is to map
some fugly field names to nice field names and have the finders work
with the nice field names.
An example.
class Users < ActiveRecord::Base
alias :password :UserPWD
end
This doesn''t seem to work because obviously the object doesn''t have a
method called UserPWD.
What is the best way (short of a view) to
2010 Nov 22
1
RCurl : All connection are used ?
Hi everybody,
I got a problem with the ftpUpload function from the RCurl package. My goal is to Upload a lot of files from a local directory to a web server.
1st try :
for (i in 1:length(file)){
ftpUpload(what=files[i],to=files[i])
}
At i=11 I get : (my server has only 10 available open connections available) :
Erreur dans curlPerform(url = to, upload = TRUE, readfunction =
2017 May 29
1
{centos 6} errors in libvirtd, all sites down, need advice
Today out of the blue...boom all sites down.
I use a bridge and virtual machines, 5 websites.
virsh shows me all machines are up and running, everything looks okay,
but cannot get to sites.
Here are the errors listed in the log, condensed due to multiples of
same errors.
there is some kid or error reading data, then there is some kind of
network collision (bobnet, no idea what that is)
2007 Jan 22
5
rails helpers are adding extra folders
i have a new rails site that i am setting up just like i normally do with
all of the other sites. i created a subdomain which is pointed to a
subfolder in my public_html.
i can view the site both at test.mywebsite.com and mywebsite.com/test/ but
when i view it by the subdomain, rails helpers are adding the /test/ to all
of my resources, so none of my images or style sheets are found.
this
2010 May 11
2
Creating a HTTP Request on missed call?
Hello there,
I have successfully installed and configured asterisk for use as an
office PBX using SIP trucks and Voip handsets (using g.729 codec)
which works great.
Now I wish to try and configure asterisk to do a HTTP request and
submit callerID to an external website when a call is missed. eg
Someone calls PBX and rings extension 100 -> Call is not answered ->
HTTP request is initiated
2020 Jan 27
3
Nut-upsuser Digest, Vol 175, Issue 32
Here are my permissions and user info. Let me know if there is anything
else I should check
pi at nutpi:~ $ ls -alt /etc/nut
total 56
drwxr-xr-x 87 root root 4096 Jan 26 15:22 ..
drwxr-xr-x 2 root nut 4096 Jan 26 13:53 .
-rw-r----- 1 root nut 4719 Jan 26 13:15 upssched.conf
-rw-r----- 1 root nut 15347 Jan 26 11:25 upsmon.conf
-rw-r----- 1 root nut 1543 Jan 26 10:02 nut.conf
-rw-r-----
2006 Jan 17
2
actionmailer
I''m getting an error when I''m tyring to use the actionmailer.
undefined method `deliver_signup_thanks'' for Notifier:Class
This is what I have in the controller.
def emailTest
Notifier::deliver_signup_thanks()
render_text "email test"
end
This is what I have in notifier model (notifier.rb)
class Notifier < ActiveRecord::Base
def
2006 Jan 30
5
Action Mailer woes
Hi gang,
Im having my first stab at ActionMailer and not having any luck. Perhaps
someone could help me out.
I generated a a mailer called ItemMailer - its purpose is to take some
information that I''ve already gathered in a ToDo list form and to mail
it out to the person who is nominated for the task
In environment.rb I have;
ActionMailer::Base.server_settings = {
:address =>
2011 Sep 28
1
Password protected R Repository
Hi,
I've set up a very simple R repository. Just a single source
library. Everything works fine. I can install the package on my client
using:
install.packages(repos='http://www.myServer.se/myRepo/',
pkgs='myLib', dep=TRUE)
However, I want to protect the repo, so I use a
.htaccess, placed directly under 'myRepo' on the server. I use
'Authentication Basic' and
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi,
How can we trigger a JavaScript built in function from a <%= link_to %>
ie. i have the below statement in my view. I want to invoke a JavaScript
function on "MouseOver" of this below text (''TestingMouseOverEvents'').
<%= link_to "TestingMouseOverEvents" , :controller => "login", :action
=> "logout"%>
Note: The
2008 Aug 28
1
RCurl: authentication when posting forms
Hi,
Has anyone successfully used RCurl for posting data to a
password-protected site? I
have tired using option netrc=1 with both postForm and curlPerform (with
postfields option) but can't authenticate.
I would happily provide more details if some one has had some experience
with this.
Thanks very much.
Valerie
2008 Jul 30
1
postfix and rails (ubuntu)
I''ve got postfix up and running on my rails system (unsure if it''s
correct), but Rails doesn''t seem to talk to it at all.
I''ve setup:
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.smtp_settings = {
:address => ''localhost'',
:domain => ''www.mywebsite.com'',
:port => 25
}
But it
2011 Feb 17
1
RCurl HTTP Post ?
According to [1] and [2], using RCurl to post a form with basic
authentication is done using the postForm method. I'm trying to post
generated interpolation data from R onto an HTTP form. The call I'm using is
page <- postForm('http://our.server.com/dbInt/new', opts =
curlOptions=(userpwd="test:test", verbose=T), profileid = "-1",
value="1.801",
2009 Feb 03
1
RCurl FTPUpload
Hello,
I am trying to solve a problem but with no success for the past 4 days.
I use the RCurl package with R 2.8.1, and when I try to use the function
FTPUpload, it uploads the file but does not stop.
It repeats the content of the file without stopping and the destination file
keeps getting bigger and bigger.
Here is the line that I use :
2006 Aug 11
5
actionmailler corrupting emails
Hi All,
I have a problem with actionmailer corrupting my html emails. It is
adding the character ''3D'' before any quotes (single or double) in my
source and smattering ''='' characters throughout as well. Very
strange. Here''s an example from one of the emails:
________________
<body>
<div id=3D''wrapper''>
<div
2012 Sep 26
1
RCURL ftp upload - ASCII or Binary type?
I'm trying to upload a file using RCURL:s ftpUpload() to a ftp-server using the following command:
> ftpUpload("'VERY.ODD.FILE.NAME(+1)'",to="ftp://x.x.x.x/","' VERY.ODD.FILE.NAME(+1)'",userpwd="USER:PASSWORD")
OK
0
The file I'm trying to upload is a very simple text-file but with a bit weird filename. Note the ' on each
2011 Apr 29
4
You don't check for malloc failure
Hi,
You don't check for malloc failure. I've made a patch that is possibly
wrong but it saves the program from SIGSEGV and replaces it with SIGABRT.
-peter
diff -ru icecast-2.3.2-ORIG/src/admin.c icecast-2.3.2/src/admin.c
--- icecast-2.3.2-ORIG/src/admin.c Fri May 2 17:40:00 2008
+++ icecast-2.3.2/src/admin.c Thu Apr 28 19:53:03 2011
@@ -291,6 +291,9 @@
2020 Jan 27
1
Timer doesn't appear to start
Here is the output
root at nutpi:/etc/nut# ps -elf | grep -E '[n]ut|ups[dms]'
4 S avahi 246 1 0 80 0 - 1472 poll_s Jan26 ? 00:00:31
avahi-daemon: running [nutpi.local]
1 S nut 451 1 0 80 0 - 678 poll_s Jan26 ? 00:03:41
/lib/nut/upscode2 -a deltec-PRA1500
1 S nut 454 1 0 80 0 - 1173 poll_s Jan26 ? 00:00:28
/lib/nut/upsd
1