similar to: serializing a Proc doesn't seem to work

Displaying 20 results from an estimated 2000 matches similar to: "serializing a Proc doesn't seem to work"

2006 Jan 24
1
Serialize
HI all, I not understand a method serialize. Anyone have any example using de serialize..... Thanks -- Posted via http://www.ruby-forum.com/.
2007 Sep 27
14
Camping and ruby2ruby
Hi everybody, I would like to use ruby2ruby in a caming project, but there seems to be an incompatibility with camping, ruby2ruby and markaby. Unfortunately I receive strange Markaby::InvalidXhtmlErrors. To demonstrate, that only combination of all three components causes the problem I added the following code. I relies on Markaby and ruby2ruby only and works fine (a.k.a. as expected).
2007 Nov 08
1
Back to ruby2ruby?
Hello guys. I missed a lot of the development before 0.4 got out (btw, excellent work!). I checkout last night the merb-trunk code and run the specs, found that everything passes with 1 pending, but no errors or failures about missing ruby2ruby. There is a ticket (#274)[1] that discuss this, but I remember we discussed this back in September about depending on RubyInline... Also, the merb gem
2012 Jul 31
1
puppet doc questions
Does puppet doc require a specific version of any gems (such as rdoc or rake) to operate? I''m getting some errors when I try to generate my rdoc now. # puppet doc --output /var/www/test --modulepath /etc/puppet/environments/test/modules -m rdoc RDoc::RDocError is deprecated and will be removed in RDoc 4 Could not generate documentation: uninitialized constant RDoc::RDoc::Generator
2007 Dec 13
2
Trying to use ActiveRecord STI but fails
Hi all, I''m wondering about my sanity here. There''s probably something simple I overlooked. First off, I have close to zero experience with Merb. 1. I configured use_orm :activerecord in config/dependencies.rb; 2. I have a file named app/models/measurement.rb which looks like this: class Measurement < Observation end 3. I have another file named
2007 Aug 12
1
Test::Unit to RSpec Converter
Hey, just posting in case this is of interest. I just recently wrote a Rails plugin to convert Rails Test::Unit cases to RSpec. http://www.davidjrice.co.uk/articles/2007/8/12/ruby-on-rails-plugin- test-unit-to-rspec-converter it''s not going to work 100% in every case, but it''s really helped me convert old tests to the lovely RSpec :) Best, Dave --- David Rice
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there I just started my first Merb app and I''m running into some weird things in Specs. When I do: describe "create action" do it "should create a new project" do project_params = {:name => ''bekkunin''} Project.should_receive(:create).with(project_params) controller, action = post(''/projects'', :project
2008 May 21
32
Rack, Camping 2.0++
=== 1. Camping on Rack === I''ve just finished rewriting Camping to use Rack in the "core". I got rid of (a little less) than 1kB in camping.rb and removed lots of un-necessary files (lib/server/*.rb, fastcgi.rb & mongrel.rb). bin/camping does now only provide WEBrick, Mongrel and console-support and should only be used in development. It uses Rack::ShowExceptions to catch
2003 Jul 16
3
Announcing DragonFly BSD!
Announcing DragonFly BSD! http://www.dragonflybsd.org/ Hello everyone! For the last few months I have been investigating and then working on a new approach to the BSD kernel. This has snowballed into a far more ambitious project which is now ready for wider participation. It is the intent of this project to take over development of the 4.x tree, to move kernel
2006 Jul 10
1
Serializing objects to the database
I have a rails app that has a search mechanism with a bunch of options. I''ve consolidated all the search parameters into a SearchQuery class. Now I want to store searches to be recalled later. I searched the wiki but couldn''t find any pages about how to do this best. I''m worried that if I just serialize the object I won''t be able to change the class without
2007 Jan 25
2
serialize() takes too long when serializing to a raw vector
Hello, R version 2.4.1 (2006-12-18) i386-pc-mingw32 Calling serialize() with a NULL connection serializes it to a raw vector. However, when the object to be serialized is large, it takes a very long time: > system.time( serialize(matrix(0, 1000, 1000), NULL) ) [1] 38.25 40.73 81.54 NA NA > system.time( serialize(matrix(0, 2000, 2000), NULL) ) [1] 609.72 664.75 1318.57 NA
2006 Aug 11
0
serializing / deserializing active records with children
What is the best approach to serialize / deserialize full blown active record objects with multiple child objects (one-to-many relations). YAML::load(), YAML::dump() almost work :) -> loaded object has children (I see them in breakpoint session: "puts parent"), but when I am accessing children (e.g: "puts parent.emails") array becomes cleared - I guess rails are trying to
2006 Jan 30
0
Serializing has_many associations and ActiveRecord objects
Is it possible to serialize ActiveRecord objects and ActiveRecord children to XML? -- Posted via http://www.ruby-forum.com/.
2007 Sep 07
0
De-serializing attribute gives YAML::Objects?
I wonder rails 1.2.3 cannot deserialize attribute (objects) correctly but give YAML::Object. Are there any workarounds or tricks to solve the problem? --~--~---------~--~----~------------~-------~--~----~ 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
2008 May 13
1
Serializing AR Objects
I need to serialize a composite AR model and save it to a database field. Reading up on Ruby''s Marshaling, it seems there could be problems with the version numbering thing of the default dump/load methods. As I understand it, Ruby internally marks the serialized data with the current Ruby language version, and when loading that data, if the major version is changed, the loading
2018 May 12
0
Serializing a single function to disk
I would like to generate a free function that can be written to disk and then I can mmap it later. The function I'm going to generate is highly restrictive. It will use the host C calling convention. It features no global variables, no data references outside parameters and local variables.The parameters to the function are all pointer sized integers. No exceptions support required. Call
2008 Dec 19
1
[LLVMdev] [PATCH] Serializing a module to a memory location
Hi, I had to serialize a module to a memory location but I couldn't find a way to do that with the current API. The attached patch adds a function doing that. Cheers, Lukasz -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm-bitstream-writer.patch Type: application/octet-stream Size: 2913 bytes Desc: not available URL:
2001 Jul 26
0
marshalling/serializing of R objects for later execution?
I know that this was a topic in March at DSC, but I was suffering from a nasty migraine that prevented me from paying as much attention as I ought to. What's the current state-of-the-art regarding packaging/serialization of R objects? Or is it still vaporish (i.e. nothing built)? I'm a bit more interested in functions/closures than "ordinary data". best, -tony -- A.J.
2015 Mar 17
0
Reduce memory peak when serializing to raw vectors
Jorge, what you propose is not possible because the size of the output is unknown, that's why a dynamically growing PStream buffer is used - it cannot be pre-allocated. Cheers, Simon > On Mar 17, 2015, at 1:37 PM, Martinez de Salinas, Jorge <jorge.martinez-de-salinas at hp.com> wrote: > > Hi, > > I've been doing some tests using serialize() to a raw vector: >
2015 Mar 17
0
Reduce memory peak when serializing to raw vectors
Hi, I've been doing some tests using serialize() to a raw vector: df <- data.frame(runif(50e6,1,10)) ser <- serialize(df,NULL) In this example the data frame and the serialized raw vector occupy ~400MB each, for a total of ~800M. However the memory peak during serialize() is ~1.2GB: $ cat /proc/15155/status |grep Vm ... VmHWM: 1207792 kB VmRSS: 817272 kB We work with very