Displaying 20 results from an estimated 10000 matches similar to: "XmlSimple vs XML::Simplel?"
2010 Jun 13
1
Using XmlSimple to parse XML strings
I am using XmlSimple to parse an XML string received from a remote
host. I am getting the error message, "File does not exist: .". I am
fairly well convinced that the problem is that XmlSimple is not
recognizing the received XML string as being valid XML and is
therefore looking for a file by that name (which, of course, does not
exist). The XmlSimple documentation says that it
2006 May 17
0
Problem with ''require xmlsimple'' in vendor code
Hi there
I''m trying to "require ''xmlsimple''" in some code that lives in vendor/
I''ve installed the xml-simple gem, and can confirm this at the command line
with ''gem list --local'' which shows I have v.1.0.8 of the gem.
However, when I start up lighttpd I get this:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
2006 Mar 29
4
xmlsimple not found
I''ve been working through the Flickr tutorial, and it looks like I
installed the Flickr gem with the require xml-simple gem without
problems. But when I got to the point in the demo when it was time to
submit the form, I got an error with the message "uninitialized constant
Flickr".
I did some poking around at the gem repository, and ran ''ruby
2006 Jul 10
7
problem with starting WEBrick
Following is the error I get when I run ''\root\ ruby script\server''
The server does not starts.
Any help !?!
------------------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already
2006 Jul 11
1
error when ''Booting WEBrick''
I encountered this problem yesterday so, I decided to build the whole
/app directory over but got the same thing again. what I did- I build
the MVC files for ''abc'', included abc.rb in /lib, appended
environment.rb with ''require abc'' and the service worked fine. And then
I did the same for ''xyz'' and ran the server but it failed. both abc.rb
and
2006 Jul 10
3
WEBrick start problem
Following is the error I get when I run ''\root\ ruby script\server''
The server does not starts.
Any help !?!
------------------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already
2006 Jun 26
0
error while booting WEBrick server
getting the following when trying to run the WEBrick server:
c:\root\ ruby script\server
error msg:
----------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already initialized constant DEF_KEY_ATTRIBUTES
2006 Feb 07
3
Problems with flickr gem: already initialized constant
New to rails so please bear with me. Am having difficulties with the
flickr plugin. trying to follow the video as a starter, and keep hitting
the following problem when I require ''flickr'' in the environment.rb file
testbed:/srv/www/htdocs/carstuff # ruby script/server
=> Booting WEBrick...
/usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274:
warning:
2008 Jan 08
1
howto rebuild a object from a received xml hash structure ?
im my web server app , i have an action to be used as a REST web
service
# GET /user/membership.xml?email=emailaddress
def membership
@user = User.find_by_email(params[:email])
respond_to do |format|
format.xml { render :xml => @user.to_xml( :only =>
[ :first_name, :last_name, :display_name, :membership_type, :membership_at], :skip_types
=> true)}
end
end
my
2006 Feb 12
3
Flickr demo screencast
Hi,
I''m new to Ruby and Ruby on Rails. Yesterday I just received the Agile
Web Development with Rails book.
Now I wanted to recreate the Flickr demo screencast
(http://www.rubyonrails.com/screencasts) just for fun to see it live.
But unfortunately when I start my server I get some warnings:
g5:~/ruby/flickr mw$ ruby script/server
=> Booting lighttpd (use ''script/server
2006 Jan 19
5
RoR still not working on SuSE 9.0 - incomplete headers received
Hi,
I''ve already posted my problem a few weeks ago on several forums, or
lists. I still have the same problem:
I have a SuSE 9.0 machine, Apache 2.x, ruby 1.8.4 I wanna get RoR
working with fastCGI.
I have installed different versions of fastCGI, have checked the
permissions of the fcgi-ipc directory, reinstalled everything and it
still doesn''t work.
In the browser window I
2005 Dec 21
8
Incomplete headers
Hi,
I wanna use Rails on a SuSE server with apache. Everything should be
installed correctly, but when running the application I get this in my
apache log:
FastCGI: comm with server
"/srv/www/htdocs/web4/html/rails/public/dispatch.fcgi" aborted: idle
timeout (60 sec)
FastCGI: incomplete headers (0 bytes) received from server
2006 Feb 13
1
hackish error handling
I''ve got a block of code that''s turning out.. well - just plain ugly.
So i know I must not be doing it the Ruby way.
The main problem I''m having is in dealing with handling errors - and
just not finding much Rails documentation that gives a deeper
understanding of how to handle errors in Rails (outside of several
docs on the catch-all''s)
the main method
2018 Jun 26
2
lightdm + xorg.conf + nvidia driver
Hello CentOS-Community,
I have to maintain a server that should be useable with VNC and some
software requires to run VirtualGL.
Also a nvidia graphic card is installed.
After downloading and installing the nvidia driver from nvidias homepage
and modifying
the xorg.conf as mentioned on the virtualgL-homepage,
I am not able to restart lightdm anymore.
Lightdm should be running, otherwise
2006 Apr 28
8
Rails magic for MySQL -> XML file -> MySQL and back again ??
Greetings!
My little app collects data from the user, persists it in about a dozen tables during the session, writes out / saves an XML file that''s downloaded to the user''s PC when they''re done, then clears the db of all data entered, and deletes the XML file from the server.
Now I need to allow the user to upload the same XML file they created earlier and put it back
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and
I''m wondering if anyone knows of such a class for Ruby. Nothing
fancy, just perhaps a simple way of converting arbitrary XML to a
Ruby object. Maybe this has been implemented somewhere already?
Thanks,
Raymond
2006 Mar 21
2
These objects aren''t equal..I''m confused
I''m testing to see if two objects are equal. One is accessed directly
from the fixture, and the other is accessed through a relationship.
Here''s the test:
def test_hero
assert_equal players(:hero), hands(:first).hero
end
Anyway, the values are exactly the same as far as I can tell. The
only difference is the object id, but Ruby compares the values, right?
This just
2009 Oct 11
1
idmap LDAP branch never populates with Samba 3.4.1 - how do I debug ?
I've followed the instructions at
http://wiki.samba.org/index.php/Ldapsam_Editposix
which concerns how to setup idmap correctly with Samba > 3.0.25. I have
a trusted domain which has been successfully established. However, no
SID entries populate beneath ou=idmap and any logon to the trusted
domain will result in:
netr_LogonSamLogon: user SANDBOX\Administrator has user sid
2009 Nov 02
1
Samba 3.4.2 Trusted Domain Logon gives: "Conflicting domain portions are not supported for NETLOGON calls"
Hi,
I'm specifically have a problem with idmap entries not being created in
my LDAP backend for trusted domain logons - Local accounts appear to be
fine.
I have installed the Sernet enterprise packages from:
http://ftp.sernet.de/pub/samba/experimental/rhel/5/i386/
I'm preparing the server as follows:
1. smbpasswd -w '<password>'
2. net rpc trustdom establish SANDBOX
2009 Oct 09
0
How do I get Samba to probe for my ldap module ?
I'm compiling Samba 3.4.1 with
./configure --with-pam --with-ldap --with-shared-modules=idmap_ldap
This produces an ldap.so module which I have copied into /lib (and run
ldconfig -v).
However, following this log.winbind-idmap is not created (only log.smbd
and log.winbindd) and Samba does not appear to probe for the ldap module
(I have compared my case to another which is creating this log