Displaying 20 results from an estimated 251 matches for "deserialize".
2007 Aug 02
0
Deserializing objects in the controller
I''ve an AR model that serializes another object (A), which does not
inherit from ActiveRecord::Base. The problem I''m facing is that while
A can be deserialized properly in script/console, it deserializes as
YAML::Object in the controller. This means that the methods on A are
not available on the deserialized instance and I receive NoMethodError
messages.
I''ve tried to use YAML to manually perform serialization/
deserialization but the problem d...
2008 Jan 20
0
Deserialize JSON post body
...4321843</mobile_phone><password>asdf</
password><sub_categories type=\"array\"><sub_category>1</
sub_category><sub_category>2</sub_category></sub_categories></
subscriber>" http://localhost:3000/subscribers/helper.xml
Rails deserialized xml xml into a subscriber hash:
Parameters: {"subscriber"=>{"carrier_id"=>"2", "sub_categories"=>["1",
"a"], "full_name"=>"Alex Egg", "password"=>"asdf",
"mobile_phone"=>...
2007 Mar 28
3
[LLVMdev] "deserialize primitive type 16 (vers=0, pos=15)" with Visual Studio
...to my Windows computer.
And I typed "llc -march=c hello.bc"
(Of course, I downloaded the latest version of LLVM and compiled with VS before this.)
But my command prompt can't run this with the following statement.
llc: bytecode didn't read correctly
Reason: Don't know how to deserialize primitive type 16 (vers=0, pos=15)
Hmmmm... Is there any body having been exposed to this?
Thanks,
Seung Jae Lee
2007 Mar 28
0
[LLVMdev] "deserialize primitive type 16 (vers=0, pos=15)" with Visual Studio
...And I typed "llc -march=c hello.bc"
> (Of course, I downloaded the latest version of LLVM and compiled with VS before this.)
> But my command prompt can't run this with the following statement.
>
> llc: bytecode didn't read correctly
> Reason: Don't know how to deserialize primitive type 16 (vers=0, pos=15)
>
> Hmmmm... Is there any body having been exposed to this?
>
> Thanks,
> Seung Jae Lee
Assuming that you are using the same version of LLVM on both Windows and
Unix, the most likely explanation is that you transfered the file
hello.bc as a text...
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...
2020 Feb 04
2
[Bug 1405] New: Possible a bug in n libnftables deserializer. [invalid type]
https://bugzilla.netfilter.org/show_bug.cgi?id=1405
Bug ID: 1405
Summary: Possible a bug in n libnftables deserializer. [invalid
type]
Product: libnftnl
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P5
Component: libnftnl
Assignee: pablo at netfilter.org...
2007 Dec 08
0
[LLVMdev] APFloat.h header file usage
...Support, or System header files. This, in my mind, constitutes a
> design
> flaw. Can we move the functionality that depends on these header files
> elsewhere?
The inclusion of SerializationFwd.h can be removed by forward
declaring the following two classes in APFloat.h:
Serializer;
Deserializer;
If this doesn't seem like a clean enough solution, there are other
ways to potentially decouple APFloat more from the Serialization
"library." The tradeoff is that it would require some code rewriting/
addition, and could potentially make deserialization of APFloats (as
don...
2007 Dec 08
3
[LLVMdev] APFloat.h header file usage
Hi,
I'm trying to separate the Support, System, ADT and Config header files
into the support module, per previous plans. However, APFloat.h is not
self-contained:
APFloat.h:105:43: error: llvm/Bitcode/SerializationFwd.h: No such file
or directory
APFloat.h:106:37: error: llvm/CodeGen/ValueTypes.h: No such file or
directory
As you can see, APFloat.h depends on things that are not in the ADT,
2016 Dec 16
2
RPC on LLVM IR: any example programs for this?
Hi everyone,
I want to use an LLVM new feature (llvm::orc::remote::RPCBase) to implement
a simple RPC framework between two LLVM modules. It seems by this new class
we can do serialization/deserialization on LLVM IR type system directly.
But I haven't found any helpful stuff on google showing me how to use these
RPC APIs. Can anyone give me some hints or example programs showing me how
to use
2011 Mar 26
2
How to deserialize an array from XML
Hi,
to serialize an array to xml we can use:
an_array = [ 1, 2, 3]
an_array.to_xml
But to I can''t find a way to convert back XML to array. I didn''t find a
method Array.from_xml like Hash.from_xml.
Any ideas?
Thanks,
Gustavo
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2006 Jun 30
5
Store hash in a DB column
I''m just wondering. Is there an easy way to take a hash that I have
and store it in a DB text column and then read it as a hash from it
again.
The reason is that I have a db table called contents. But it stores
all kinds of information and even data that I do not know of yet.
I know I could store it inside the text column using XML or YAML or
something else but then I would have to
2006 Apr 28
3
Serialize / deserialize an associative array
Perhaps I missed something but I don''t see an easy way to do this ?
Basically just wanna hold some ui state in a cookie.
Did I miss something obvious ?
Best
Matt
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorized and
2017 Jul 19
4
[RFC][ThinLTO] llvm-dis ThinLTO summary dump format
On Mon, Jul 17, 2017 at 5:18 PM Mehdi AMINI <joker.eph at gmail.com> wrote:
> 2017-07-17 16:49 GMT-07:00 David Blaikie via llvm-dev <
> llvm-dev at lists.llvm.org>:
>
>>
>>
>> On Mon, Jul 17, 2017 at 6:11 AM Charles Saternos via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>>> Hey @chandlerc and @dblaikie,
>>>
2012 Jan 31
3
(de)serialization problem with rails 3.2
...I use for an attribute of
ActiveRecord as presented in this article:
http://www.edgerails.info/articles/what-s-new-in-edge-rails/2011/03/09/custom-activerecord-attribute-serialization/index.html
If I assign a value to that attribute with a form (in my case a nested
form), I don''t get the deserialized value in the params hash as it used
to be with Rails 3.1, but now I get a serializer struct that contains
the custom serializer class instance and the deserialized value.
Does anybody know whether this is intentional, or is it just broken and
I have to work around that until it gets fixed...?
--...
2016 Sep 27
2
Experiments with a replacement for the bitcode format
Hello,
Disclaimer: I have no plan to break 3.x bitcode compatibility in any way.
I’m experimenting with ideas to improve the current bitcode serialization and deserialization in general.
I’m interested in improving the speed and the flexibility of the reader/writer, as well as making the code easier to deal with.
My current griefs against our bitcode format are mainly the lack of built-in
2016 Feb 10
4
[RFC] Error handling in LLVM libraries.
Hi Rafael,
> What prevents you from using a diag handler in the jit server that
> sends errors/warnings over the RPCChannel?
What would you do with errors that can't reasonable be serialized when they reach the diagnostic handler?
And what would you do with the serialized bytes on the client end?
- Lang.
Sent from my iPhone
On Feb 10, 2016, at 10:31 AM, Rafael Espíndola
2009 Apr 02
1
Re: Links 2003 & Grand Prix 4
WINE 1.1.18 has a regression from WINE 1.1.14. Once again, GP4 no longer installs from CD... the console outputs the following ole error repeatedly:
err:ole:xCall Failed to serialize param, hres 80040155
err:ole:deserialize_param Failed to read integer 4 byte
err:ole:TMStubImpl_Invoke Failed to deserialize param State, hres 80004005
err:rpc:I_RpcReceive we got fault packet with status 0x80004005
err:ole:xCall RpcChannelBuffer SendReceive failed, 80004005
err:ole:marshal_object couldn't get IPSFactory buffer for in...
2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
...oad_bitcode.cc). After "loading" the bitcode, I emit a new function that just calls RunStuff. I then run the Inliner on the full module, and then ask the JIT for getPointerToFunction on my emitted function. At this point, when generating native code, I get an Invalid CALL when it tries to deserialize RunStuff. So the overall process is:
- Read bitcode from .bc file.
- Add a new Function to the Module that calls RunStuff.
- Run the Inliner over the Module.
- Ask a JIT for getPointerToFunction(emittedFunc)
After digging a bit (verified by dumping the module in load_bitcode.cc before and aft...
2011 Mar 09
1
ActiveRecord serialize method not returning YAML array in test environment.
...# => "--- \n- admin\n"
it is a String. It seems that YAML serialize is not working there but
I have no idea what to do to get it working.
I was already trying to figure it out with these, but with no luck.
https://rails.lighthouseapp.com/projects/8994/tickets/5002-nested-objects-dont-deserialized-completely-rails-3-beta-4
http://itsignals.cascadia.com.au/?p=10
http://stackoverflow.com/questions/4705867/rails-doesnt-load-classes-on-deserializing-yaml-marshal-objects
http://blog.sbf5.com/?p=39
Any advice would be greatly appreciated.
Martin
--
You received this message because you are sub...
2013 Apr 27
3
[LLVMdev] Proposal for new Legalization framework
...ne way or the other, its more a consequence of the
decision.
At the IR level, we have some great infrastructure that doesn't exist at
the MI level:
- The pass management tools.
- A verifier that can be run before and after any pass to check the basic
invariants.
- The ability to serialize and deserialize to/from a human understandable
(and authorable) form.
I think before we invest in *significantly* more complexity and logic in
the MI layer of the optimizer, we will need it to have these three things.
Without them, the work will be considerably harder, and we will continue to
be unable to do fine...