similar to: marshalling mechanized

Displaying 20 results from an estimated 1000 matches similar to: "marshalling mechanized"

2007 Oct 05
3
basic_auth problem since 0.6.9
I have a site that I don''t think "returns" a basic_auth request, but is able to use basic_auth. In the past on 0.6.8, I could use the following code: require ''rubygems'' # gem ''mechanize'', ''=0.6.8'' require ''mechanize'' agent = WWW::Mechanize.new agent.basic_auth("username", "password")
2004 Aug 06
1
Compiling Darkice
I'm compiling Darkice on a FreeBSD 4.6.2 box. Everything works up to this point after I type "make"...then I get this error. Any ideas? Thanks, Matt teststream# make make all-recursive Making all in src source='TcpSocket.cpp' object='TcpSocket.o' libtool=no depfile='.deps/TcpSocket.Po' tmpdepfile='.deps/TcpSocket.TPo' depmode=gcc /bin/sh
2004 Aug 06
1
Compiling Darkice
>Fromthe config.log file created by ./configure configure:3326: checking for sys/types.h configure:3339: gcc -c -g -O2 conftest.c >&5 configure:3342: $? = 0 configure:3345: test -s conftest.o configure:3348: $? = 0 configure:3358: result: yes configure:3627: checking sys/socket.h usability configure:3636: gcc -c -g -O2 conftest.c >&5 configure:3639: $? = 0 configure:3642: test
2006 Sep 13
1
Net::HTTPResponse
Hello :) I have a problem with the Net::HTTP library... The Net::HTTP library [1] uses a Net::HTTPResponse object for all it''s responses from web servers. This class has many subclasses, such as HTTPSuccess, HTTPRedirecttion, etc. When obtaining a response, the library suggests to check what it is by testing the class of the returned object - using case/when or kind_of? (which it does
2011 Feb 23
0
a strange RedirectLimitReachedError
Hello. I tried to get "http://www.amazon.co.jp/dp/B001WAL592" with Mechanize, but RedirectLimitReachedError occurred. with TCPSocket, server returned 200 OK and Location was not found in header. It seems Mechanize''s bug. ruby 1.8.7 mechanize 1.0.0
2011 Aug 25
1
Question about object permanence/marshalling
Hello,   I am trying to write some code that dumps R objects to the harddisk in a binary format so they can be quickly re-used later. Goal is to save time. The objects may be quite large (e.g. classes for a GUI). I was thinking that save() and load() would be suitable for this (until now I only thought it could be used for 'real' data, e.g. matrices, data.frames etc), but I am hoping any
2007 Sep 25
0
TCPSocket.new Errno::EBADF: Bad file descriptor error
Im trying to use memcache-client, but there is a line in their where it calls: TCPSocket.new(host, port). It fails at this point. I''ve tried just trying to establish a connection in my script/console with TCPSocket.new("localhost", 11211) TCPSocket.new("127.0.0.1", 11211) TCPSocket.new("<my comp name>", 11211) TCPSocket.new("<my ip
2013 Jan 10
0
TCPSocket in controller action
Hi, in order to stream a file I am making use of TCPSocket. Unfortunately I dont receive contents when in use the tcpsocket in a rails controller action while it is working on console. url = "http://www.google.de" version = request.env[''HTTP_VERSION''] verb = request.env[''REQUEST_METHOD''] # url =
2010 May 31
0
TCPSocket.new(host,port).readline hangs on windows :(
Hi Guys I am starting a new thread as it seems my gripe isnt to do with Juggernaut but with TCPSocket - which is used by Juggernaut. Turns out that the thing that actually hangs up in Juggernaut after x (130/1500/16000) iterations of (1..1000).each {|i| Juggernaut.show_clients} Is actually the line res << @socket.readline(CR) if response in juggernaut.rb. Seems @socket.readline
2001 Feb 27
1
Winamp plugin; http streaming
Sorry, had to foward this. Chris: Majordomo is triggering on the HTML in the message and rejecting it. A minor pain, but that alone catches half the spam that would otherwise show up on the list... ----- Forwarded message from owner-vorbis-dev@xiph.org ----- From: "Chris Moeller" <chris@kode54.net> To: <vorbis-dev@xiph.org> Subject: Winamp plugin; http streaming Date:
2004 Aug 06
1
DarkIce make problem
Yea, I figured it out...brain fart on my part. Got it working, but getting some sort of TCPSocket error now... still trying. :) [root@jabez etc]# darkice -c /usr/local/etc/darkice.cfg DarkIce 0.6 live audio streamer, http://darkice.sourceforge.net Copyright (c) 2000-2001, Tyrell Hungary, http://tyrell.hu Using config file: /usr/local/etc/darkice.cfg Using POSIX real-time scheduling, priority
2008 Mar 11
8
Mechanize#get vs Mechanize#fetch_page
So I found myself wanting to call Mechanize#get with a hash for arguments like this: WWW::Mechanize.new(''http://api.flickr.com/services/rest/'', {:method => ''flickr.auth.getFrob''... }) Granted, it looks like this isn''t supported but it led me to what looks like a bug. Namely that get calls fetch_page(abs_uri, request, cur_page, &block)
2010 Jun 14
0
Sockets are Killing Me!
I''ve been trying to interface to the onlineNIC API which uses sockets. The following 4 lines of test code illustrate my problem: socket=TCPSocket::new(''ip'',''port'') puts("Connect:\n"+socket.read()+"\n\n") socket.print(login_request) puts("Login:\n"+socket.read()+"\n\n") In the actual code the real IP address and
2006 Feb 15
1
Newbie Question: I want to open a socket on another server
Help! I need someone to get me in the right ballpark. I''ve been going around in circles for the last 24 hours. I want to open a TCPsocket on another server and eventually send and receive XML which is what the other servers speaks. I have both "Agile Web...with Ruby" and "Programming Ruby" but can find no examples. I''ve poured over the forum list, too.
2004 Jun 13
0
[Bug 1457] New: writefd_unbuffered failed to write
https://bugzilla.samba.org/show_bug.cgi?id=1457 Summary: writefd_unbuffered failed to write Product: rsync Version: 2.6.2 Platform: x86 OS/Version: All Status: NEW Severity: critical Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: markf78@yahoo.com QAContact:
2008 Aug 14
4
Stateful Webmail
Hello, I'm a developer on the Orbited project (http://www.orbited.org), which provides a TCPSocket interface in javascript (emulated over HTTP using ajax and comet.) This TCPSocket allows true bi-directional communication between a web browser and an arbitrary tcp server. One of the other developers pointed me to a recent dovecot thread about webmail. Sorry for the new thread (I just joined
2012 May 25
1
Connect reset by peer error
Hi all I''m getting a ''Connection reset by peer'' while getting an access token during oAuth from a third party API. Here''s the code snippet: def accesstoken @code = params[:code] url = URI.parse(''access token request url'') req = Net::HTTP::Post.new(url.path) req.set_form_data({''auth_code'' => @code,
2006 Aug 16
1
ActionMailer cannot use SMTP for email delivery...
RoR aficionados, I''ve configured ActionMailer for SMTP delivery of emails, and have configured "config/environment.rb" accordingly, including the address of our (external, but fully operational - checked and double-checked :-) SMTP server. Sending out emails from my Windows development laptop works without a hitch, but on a Linux staging server using the exact same source
2008 Sep 11
0
session/marshalling
I have the following problem with marshalling/saving a model to session. I have 4 models: User, Profile, Customer, Membership. Membership belongs to the other three models, and User, Profile and Customer all have a has_one :through => :memberhsip association to each other. Now I have a registration process over several steps, including the creation of all 4 models. Partially the validation of
2008 Jan 14
1
Quick and Easy Question
All, Been a while since I''ve "mechanized" and I''m running into an idiot simple problem. I''m looking for more detailed examples to refresh my memory. My question is how to get a list of links off of a page based on information in the img src attribute, specifically if the img tag contains a "mp3.gif/jpg". I, for the life of me, can''t seem