similar to: session/marshalling

Displaying 20 results from an estimated 1000 matches similar to: "session/marshalling"

2008 Jan 04
2
use of Marshal with wxruby classes
Is it possible to use Marshal with wxruby classes to serialize an application''s state? I tried a minimal example of simply serializing a minimal frame object, and I get the error "no marshal_dump is defined for class MinimalFrame". I don''t fully understand this because I also tried another minimal example of dumping a class which did not defined a marshal_dump, and it
2012 Jul 28
1
`build_association` produces DB-queries
Let `User.has_one :profile`. I''ve always thought that `@user.build_profile` is a cheap thing to do - it''s just creating a new object without persisting it. But, in fact, it does 2 queries to the DB: `BEGIN` and `COMMIT`. In my app I have an admin users#index page where users'' details can be edited, and to simplify the code I build a profile whenever it''s
2008 May 21
1
custom serialization problem (marshal_dump, marshal_load)
Hi, I have a problem with the marshal_dump and marshal_load... I built two classes XXX, YYY and implemented both methods like this: class YYY @data = "string" @version = 1 def marshal_dump() return [@version,@data] end def marshal_load(var) @version = var[0] case @version when 1 @data = var[1] else
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
After sending this I realized that this was a Ruby not Rails issue - but the answer may be interesting for those who choose Marshal over Serialize. So, to close this off I don''t know why marshal.dump wasn''t ''dumping'' all attributes, but adding custom marshaling to PDate did the trick. ala, + def marshal_dump + dumped_obj = [date_precision, ajd,
2006 Aug 01
0
storing object with no "marshal_dump is defined" in session
One of my classes uses the class GSL::Poly. It seems from this error message that rails won''t let me store it in the session. ANy ideas what i can do? Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) no marshal_dump is defined for class GSL::Poly /usr/local/lib/ruby/1.8/pstore.rb:348:in
2008 Mar 18
0
no marshal_dump is defined for class StringIO
Hi all, I''m newbie to ROR, anybody know why I would be getting the following error when I use paginating_find with memcache "no marshal_dump is defined for class StringIO" Im just using the plugin straight out with very default options like from the documentation. Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2009 Jul 13
1
Ubuntu und R
Hallo Zusammen, hatte gestern die Schnauze voll von Vista und habe mir daraufhin Ubuntu installiert. Bin also mit Ubuntu ?berhaupt nicht vertraut. Nun habe ich ohne Erfolg versucht, R zu installieren. Soweit ich der Anleitung folgen konnte habe ich es so wie auf http://wiki.ubuntuusers.de/R gemacht. Im Terminal kann ich R problemlos starten. Allerdings bei der Installation von
2008 May 03
0
marshalling mechanized
hi all, in the course of my hacking i wanted to marshal mechanized objects (whether the agent, page, or other). this may be a rather particular use-case, but i figured i would report. marshalling does not work on certain objects, in particular IO objects, and since mechanized uses Net::HTTP it makes use of IO objects. so it turns out that it you just do a = WWW::Mechanize.new page = a.get
2008 Sep 16
3
has_one :through eager-loading problem
I have a problem with the :include option in find for my has_one :through association. I have Users, Profiles and Customers, all connected to each other with a has_one :through => :membership association like this: class Profile < ActiveRecord::Base #could also be user or customer has_one :membership # i saw an acrticle of Ryan about has_one :through, there this would be has_many, is
2003 Aug 27
1
samba und netzlaufwerke unter winxp
Hallo, Ich habe ebendfalls das Problem, dass ich mich extra anmelden muss bei meinem Linux-Server. Hast Du da eine L?sung gefunden. From: "Marcel Stein" <marcel-stein@arcor.de> Subject: samba und netzlaufwerke unter winxp Date: Thu, 26 Jun 2003 20:04:56 +0200 Message-ID: <000001c33c0d$76d703f0$0201a8c0@winxp> Ich habe einen samba zu laufen und greife vom client winxp
2004 Jul 05
2
Problem with BRI_STUF / direct connected ISDN-Phone
Deutsche ?bersetzung folgt / German version following ===================================================== Hello, i have Asterisk running with 2 ISDN-Cards. One AVM Fritz for connection to german ISDN and one HFC-compatible-Card (NT mode) for connection to ISDN-Phone (later: ISDN-PBX). Here is my actual installation: ISDN -> Fritz - ASTERISK ? HFC-NT <- ISDN-Telephone If i pick up my
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.
2007 Nov 06
2
Automatic marshalling with DB access
I have an item which has a hash for one of its fields. When i store it in the db, i want to do a Marshal.dump of the hash, and similarly, do a Marshal.load to turn the saved blob back into a hash again. Is there a way to easily write this into the model, so that it happens automatically when saving and loading a record? thanks max -- Posted via http://www.ruby-forum.com/.
2010 Jun 22
0
action-matrix-patch (was Re: antispam Clarification about spam/trash/unsure folders)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Jun 2010, Johannes Berg wrote: > Meinst du mit "Hosting" jetzt nur die technische Komponente? Das ist mir Nee, sorry. Ich meinte beides. > eigentlich egal, ich kann dir auch gerne Zugriff auf den git tree geben > und so. Hm, git ist ein Buch mit sieben Sigel. Ich habe CVS, Subversion und hg im Einsatz, aber git
2001 Oct 25
1
Hi von Lauren 5C55E8
Hi Süsser, Ich heisse Lauren. Ich bin gerade 19 Jahre alt und bin Cherleader von der Southern High School in Kalifornien... Mein deutscher Freund hat vor kurzem einige heisse Photos von mir gemacht. Diese haben mir so gefallen, dass ich ihm zum Dank dann einen gebla.... habe. Das hat er auch gleich auf Photots festgehalten. Ich finde die Bilder so heiss und sexy, dass ich sie alle auf meine
2006 Mar 29
0
Missing Files
Hello , i have a Intel 64 bits servers and as operating system Suse Linux Enterprise server 9 Samba version is 3,04 as Client I have Windows XP and 2000 in employment. the problem: by approx. 1400 files in Share listing only approx. 280 files are indicated. by mounting the file system of 64 bits servers on 32 bits Linux server, I see over the Share Verzeichnis(samba 2.2.5) all files.
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
2006 Feb 28
1
Oracle OraNumber problem with Authentication. Please help!
I have added an authenticator using the instructions here: http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticate The LoginController sets session["employee"] to an employee. When i try to access the session["employee"] from another controller i get this error : " TypeError (no marshal_dump is defined for class OraNumber): c:/ruby/lib/ruby/1.8/pstore.rb:159:in
2006 Sep 27
0
NET::LDAP Help Anyone? Maybe session Help? Bring my server to it's knees Help?
Does anybody know what the correct way to cache results from Net::LDAP bind_as? I''ve been struggling for about a day now and I know it''s something really easy. But when ever I do something like this - def self.login(username, password) begin ldap = Net::LDAP.new ldap.host = "192.168.1.16" ldap.port = 389 result = ldap.bind_as(
2006 Apr 03
2
no marshal_dump is defined for class Proc
Hello ~ This problem has me puzzled. When users login to my rails app I have the session set up to be stored in the MySQL database for the app. Intermittently, users will get the following error: no marshal_dump is defined for class Proc D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `dump''