similar to: activerecord access raw serialized data

Displaying 20 results from an estimated 10000 matches similar to: "activerecord access raw serialized data"

2010 Apr 02
2
Uncaught exception failed to allocate memory
Hi! I have a recipe that''s supposed to download ree from a master and install it. It looks like: # Install ree file { "/root/puppet-setup/ruby- enterprise_1.8.7-2010.01_amd64.deb": source => "puppet://$servername/files/ruby- enterprise_1.8.7-2010.01_amd64.deb", mode => 0644, owner => root, group => root, notify =>
2010 Apr 19
3
which views are rendered for an URL
Hi, Is there a way I can figure out which files are run for a specific URL? Given http://www.planet.com/countries files like: countries/ index.html.erb, countries/_country.html.erb, layouts/ application.html.erb and so on. Thank You -- M. -- 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
2012 Aug 24
3
ActiveRecord storing arrays and hashes
Hi, When trying to store a Array or Hash to a string field, ActiveRecord automatically serializes them to yaml. If that''s so why is there a special option called serialize? -- Azhagu Selvan http://tamizhgeek.in -- 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
2006 Apr 20
5
Mystified by ActiveRecord.serialize
I''m either missing a step, confused or seeing some odd behavior with ActiveRecord''s serialize feature. When I load an ActiveRecord object from the database, my serialized attribute is a YAML::Object, not the original object. My code is based on an example of this capability in the "Agile Web Dev. w/ Rails" book (p. 196). In create.sql: <code> create table
2011 Jan 05
2
real time R
Hi, We're using R in an application where asking for a probability of an event takes about 130ms. What could we do to take that down to 30ms-40ms? The query code uses randomforest, knn. -- M.
2009 Mar 08
3
scaling full text indexing(ferret vs solr vs hyperstraier)
Hi, Does any have experience scaling full text search in RoR? Right now our project is running a simple setup with ferret and acts_as_ferret. We are thinking about deploying a feature that would send 50x more search requests. So we probably have to rethink our solution. How do services like search.twitter.com (the former Summize) use? Or in what direction should I look? -- Thanks, M.
2008 Oct 21
6
detecting width overflow in serialized column with mysql
So I''ve got an ActiveRecord model pointing to a MySQL db, with an auto-serialized column ("serialize :columnName"). Thing is, MySQL, depending on how it''s configured (like, by default), has a bad habit of just truncating your data if it''s too wide for the column, with no error raised. Yeah, I can probably reconfigure MySQL and/or my AR connection to it. But
2011 Jan 07
7
My external node classifier script is totally ignored
Hi, I just added an external classifier script, and things are not working as I expected to. Trying to read documentation about ext.nodes and searching the archives I couldn''t come up with any useful results. My classifier script outputs: --- YAML --- classes: - geodns::production::backend environment: production name: z01-06-02 parameters: puppet_server:
2020 Jan 06
2
Question about opt-report strings
Hi all, I tried to poke my head into opt-report a while ago and didn't get very far. Now I'm looking at it again. I'm not sure I understand everything that's in place so my question here may be misguided. I'm trying to understand the way strings are handled. When a remark is emitted, it seems that the string is constructed on the fly based on streaming inputs. For example,
2010 Jan 06
4
serialized attribute converting to string on reload
Hello, Anybody help me out? I done googled it good and didn''t find anything (which should mean that I''ve done something wrong). Not much code to talk about here, quite simply I have an attribute that is serialzied and when I update it, irb shows the object and my methods run on it as it were indeed so. Though when I reload it changes the data to a string. Not yaml, just one
2005 May 13
17
modeling...
I''ve tried tackling this many ways on my own and can''t find a good solution: Breaking it down to something simplier... Venue has one address Person has one address Address belongs to state Assuming I don''t want to do tables for venue_addresses and person_addresses. What is the best way to model this using rails... big thing here is i want to be able to reuse a
2009 Aug 15
4
Isn't there any performance issue when saving serialized attributes every time?
In edge rails, serialized attributes are saved every time no matter they are changed or not: def update_with_dirty if partial_updates? # Serialized attributes should always be written in case they''ve been # changed in place. update_without_dirty(changed | (attributes.keys & self.class.serialized_attributes.keys)) else
2011 Mar 09
1
ActiveRecord serialize method not returning YAML array in test environment.
Hello, I''ve got a problem with deserialization of AR "serialize" method (http://apidock.com/rails/ActiveRecord/Base/serialize/class) in my tests. It just gives me pure String instead of my data Array. Example: User > AR::Base serialize :roles, Array end Console: u = User.new u.roles = ["admin", "support"] u.save # => true User.first.roles # =>
2008 Nov 10
3
to_xml and helper methods
Hi, I have an array with objects and I want to generate an XML like: <objects> <object> <category_id>1</category_id> <helper-method>result 1</helper-method> </object> <object> <category_id>2</category_id> <helper-method>result 2</helper-method> </object> </objects> The helper
2006 Jan 30
3
ActiveRecord without database
The question is this. Can I use ActiveRecord without the presence of a database? I use only YAML file for my project and I would like use the power of ActiveRecord for my models. I have not tested and so I ask you if this is possible. Thanks so much. --Reis -- Posted via http://www.ruby-forum.com/.
2010 May 31
5
ActiveRecord model relationship with YAML file
Hi, I have an ActiveRecord model Group and a YAML table stored in config/users.yaml just like: - {login: titi, password: 123456, group_id: 2} - {login: toto, password: 987654, group_id: 7} And I would like to link them by a sexy way. Can you help me? I would be happy if I can do this (as example): User.first.group.id # => 2 Many thanks for any help! -- Posted via
2015 Apr 28
2
[LLVMdev] RFC: Machine Level IR text-based serialization format
On 2015-04-28 19:14, Quentin Colombet wrote: > Personally I would rather not have to write YAML inputs but instead > resort on the what the machine dumps look like. That being said, I can > live with YAML :). > YAML is what is suggested in the FIXME for the textual Machine IR, so that might be the motivation behind Alex's choice. I sort of agree that it could be better to go
2009 Mar 29
2
after_create and after_save
Hi, AFAIK after_create is called after_save if the entry does not exist in the DB. Is there a way to tell if a specific model is new or not in after_save? I have to do something like: def after_save add_to_history ''save'' end def after_create add_to_history ''create'' end However after_save is called when creating too. -- cheers, M.
2015 Apr 30
2
[LLVMdev] RFC: Machine Level IR text-based serialization format
> On 2015 Apr 29, at 19:13, Hayden Livingston <halivingston at gmail.com> wrote: > > What is missing in the current textual format that doesn't allow going > all the way to machine code? Nothing. What's missing is the ability to serialize the machine level itself. Since many passes have to run to get from .ll to .s, it's currently hard (impossible?) to test
2015 Apr 28
9
[LLVMdev] RFC: Machine Level IR text-based serialization format
Hi all, I would like to propose a text-based, human readable format that will be used to serialize the machine level IR. The major goal of this format is to allow LLVM to save the machine level IR after any code generation pass and then to load it again and continue running passes on the machine level IR. The primary use case of this format is to enable easier testing process for the code