search for: unmarshaling

Displaying 20 results from an estimated 48 matches for "unmarshaling".

Did you mean: unmarshalling
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
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
Hello all, I''m trying to use the new ActiveSupport::TimeWithZone from Edge. The problem seems to be that I have a several-action process to create a Booking. This Booking is stored in the session (session[:booking] = @booking) throughout the actions until the last action is reached and the record is saved to the DB. Using TimeWithZone seems to be producing errors when trying to
2008 Feb 12
4
Syntax of session's updated_at field ?
What''s the syntax to acquire the updated_at value of a session stored in a db? session.updated_at doesn''t work. can''t find any docs on this. -- gw --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Sep 28
2
Error with flash and form_authenticity_token in new rails application with scaffolding
Hi All, I get this strange problem with newly scaffolded apps - I''d really appreciate any help in this regard. /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/ active_support/message_verifier.rb:46:in `block in secure_compare'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/ active_support/message_verifier.rb:45:in `each''
2007 Aug 15
10
Objects in Session State Revisited
Hi Folks, I''m still a bit confused about the issue of storing "complex" objects in session state rather than storing simple objects. It''s my understanding that everything is an object in Ruby. If my understanding is correct, then storing a string or an integer in session means storing an object. It would seem then that the problem of storing objects in session is a
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
Puppet Dashboard 1.2.23 is a maintenance release of the 1.2 series of Puppet Dashboard with bug fixes and minor features. This release is available for download at: https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.23.tar.gz Available in native package format in the Puppet Labs yum and apt repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com Please report
2006 May 08
1
Handling "unmarshalable" model object attributes
All, I have an attribute on one of my model objects that cannot be serialized because it contains a Proc. Is there a way for me to mark this attribute as "not to be serialized/unserialized" so that session marshaling/unmarshaling won''t fail? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Mar 28
1
Newbie question: Dynamic view creation from obj.to_html_form
Hi. I would like to be able to generate a form dynamically from an object''s to_html_form method, submit it, and then place marshalled object into a database row. Since I do not know exactly all the input fields in advance, I figure this would allow me to dynamically create the input form, stuff the user input into object, marshal the object into the database, and display it later
2007 Jan 21
1
Weirdness when save symbols to AR string fields
I have a model foo with two fields: id and string. When I try to save a symbol into that string field I get weird results: >> foo = Foo.new(:string => :foobar) >> foo.string => :foobar >> foo.save >> foo.string => :foobar >> foo = Foo.find(foo.id) => #<Foo:0x467282c @attributes={"id"=>5, "string"=>"---
2007 Aug 17
1
Cookie Sessions in Merb?
I like the cookie sessions that Rails edge has - they make sense, they''re fast, easy. For those that don''t know: the default session mechanism is to give developers a Hash called session. To store this object between requests it Marshals the session object and sends the object itself (now as a bitstream) back to clients to store in their cookie file. To prevent users from
2008 Feb 07
3
Sharing Sessions between Ruby on Rails and PHP
Hi there, I have a RoR app but for one of the funcationality (photo uploads) I am using PHP. I need to know how I can share/access session information from RoR in PHP since the PHP also updates the database and the entry information is contained in the RoR sessions. Please advice. Thanks in advance. Adil --~--~---------~--~----~------------~-------~--~----~ You received this message because
2006 May 19
1
Strange error when testing layered web service
Hi all, Ruby 1.8.4 Rails 1.1.2 1) Error: test_find_hardware_by_id(HardwareControllerApiTest): ArgumentError: illegal refid http://test.host/ c:/ruby/lib/ruby/1.8/soap/baseData.rb:166:in `decode'' c:/ruby/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:153:in `decode_tag'' c:/ruby/lib/ruby/1.8/soap/parser.rb:179:in `decode_tag''
2006 Apr 26
5
remote ruby
I''m building a collection of desktop app''s and want to use ruby, and Active Record in particular, as an intermediary layer to my databases. I''m not sure how to connect my development environment, Runtime Revolution, to Ruby and Active Record. One option is to just set up a RonR environment and have my app''s make calls that return regular text results
2006 Jul 07
4
Problems with ActiveRecord in workers
Hi *, are there some special settings except of "load_rails: true" to make ActiveRecord models accessible within my workers? I''ve just installed the latest version of this great plugin, but I keep getting undefined method [] for #<DRb::DRbUnknown:0x12345> (line 105 in backgroundrb.rb) when one of the arguments for the worker is an ActiveRecord object. I assume that
2006 Feb 09
1
(no subject)
...the approachs I''m considering without putting you to sleep with the details. Rails Web Service. Built in to the Rails framework. Interoperable with other applications. Easy to get through firewalls/proxy. But I don''t care about interoperability. How fast is XML marshaling/ unmarshaling? Probably requires that I recreate a subset of my domain model in Structs. DRb + DRbUndumped. Send ActiveRecords across as remote proxies. Easy to set up. Faster than XML. Can re-use ActiveRecord. A bit tricky to get right -- where is that method being called? Won''t every method c...
2004 Sep 25
2
Concerned about Dovecot's new NTLM code
I'm pleased to see another project increasing compatibility with windows clients, by the addition of NTLM login support, but I'm a bit worried about a few implementation details, and hope to offer an alternate approach. I mean no disrespect to those who have implemented to the code so far, but I feel that the idea of 'everybody re-implement NTLM' is prone to failure. Firstly, to
2005 Aug 23
8
Web Services testing... Agile Book p. 435
I am attempting to test the web services added during chapter 20 of the Agile book. The code as written in the book yields 2 errors: test_find_product_by_id(BackendControllerApiTest): XMLParserError: syntax error Anyone hit this yet and get it to work? Thanks. Ken _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2008 May 15
0
[PATCH][QEMU] serial save load fix
NOTE: An applicable subset of this patch was also submitted to upstream qemu. SUMMARY: This patch fixes several bugs in serial.c (1) A typo in serial_save() where qemu_get_8s is called (should be qemu_put_8s) (2) No support provided in serial_load() for version_id == 1 (should unmarshal a 1 byte s->divider and should provide a default value for s->fcr (3) Call serial_ioport_write() to
2005 Dec 26
0
Problems with Plugin Models
I''m developing a plugin that provides several models (with a Rakefile to generate the schema). However, I''m running into two problems: 1. How can I setup a ''models'' directory? Only ''myplugin/lib'' is in the load path, and if I move my models to ''myplugin/lib/models'' -- even if I explicitly require them all -- it tries to
2005 Dec 01
0
Troubleshooting "undefined class/module"
I''m having a bit of a headbanger here... maybe someone can help. A class in a fairly complicated existing Rails app that I''m working on seems intermittently not to load. The error is basically the following: undefined class/module InnerPackage c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0 /lib/action_controller/session/active_record_store.rb:75:in `load''