similar to: XML Builder - problems with serialized ruby

Displaying 20 results from an estimated 10000 matches similar to: "XML Builder - problems with serialized ruby"

2006 Sep 26
12
resource_feeder feedback
Let me apologize in advance as this is a topic that I feel passionate and opinionated about. If I''m coming on too strong, please forgive me. === Be opinionated=== My first piece of advice is simple: be opinionated. Change the method name to simply <feed_for>. Have it default to doing the right thing. Perhaps give an option to change the default feed format, but default to
2013 Aug 08
1
Failed to parse template - undefined method `to_xs'
Hi I''m getting the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template bireportweb/reportdbconfig.xml.erb: Filepath: /data/ss/svn/puppet/modules/bireportweb/templates/reportdbconfig.xml.erb Line: 16 Detail: undefined method `to_xs'' for #<String:0x7f7116858570> This is the line within the
1997 Jun 23
0
R-alpha: various graphics Q.
"contour" can't return a list of contours (it would be nice) "arrows" has different options from S-PLUS (no "open" or "rel" options, no "lwd" parameter or graphics parameter pass-through; "size" in S corresponds to "length" in R). [I know we needn't follow S-PLUS syntax slavishly, but it would be nice at least to
2000 Oct 19
0
legend -- one more try
Dermot MacSweeney pointed out to me that after my "fix" of legend(), points were no longer coming out placed in the middle of the lines, but at the right-hand edge. It turns out that naively swapping the order of point-drawing and line-drawing also messes up the bookkeeping that legend() does on the current x-location. Here's my patch, which fixes that bookkeeping (and incidentally
2001 Jan 15
0
legend() patch never seems to have made it in
Perhaps I should have submitted this as a bug so that it would be officially tracked. It's not a big deal, but here it is again (I can't remember which version this patch is against, but I don't think legend() has changed since then ...) Basically, the problem is that if you want to have "opaque" points that overlay lines (rather than using type="b" and having
1997 May 11
2
R-alpha: Logarithmic scales
Here are another three problems with logarithmic scales: 1) segments() does not work with logarithmic scales. I suggest to change lines 962-973 in "plot.c": for (i = 0; i < n; i++) { if (FINITE(xt(x0[i%nx0])) && FINITE(yt(y0[i%ny0])) && FINITE(xt(x1[i%nx1])) && FINITE(yt(y1[i%ny1]))) { GP->col = INTEGER(col)[i % ncol];
2008 Oct 14
6
Disabling XML character escaping for to_xml
Currently, it appears to_xml will automatically escape any entities into their corresponding &XXX representation. There''s a piece in the documentation that says "If $KCODE is set to u and encoding set to UTF8, then escaping will NOT be performed." Unfortunately, this doesn''t appear to be the case. Even after following the docs and ensuring that default_charset is
2009 Oct 13
0
Re: How can I parse encoded and serialized XML with REXML?
On Sep 24, 2:14 pm, Andy <andym...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > I''ve getting data like this: > > <![CDATA[a:1:{i:0;s:6:&quot;Sometext&quot;;}]]> > > I know in PHP I can unserialize and decode, but I''m not sure the best > way to do it in Rails. > > I''m already parsing the XML using REXML so I''m
2000 May 31
1
legend with multiple columns
I have made a minor hack to "legend" (in R 1.0.0, but I didn't notice any changes to legend in the 1.0.1 NEWS) to allow the legend to be formatted in multiple columns, or horizontally (number of columns <- number of legend items). (I find this helpful when I have lots of legend items and not a lot of vertical space to squeeze the legend into.) (Another hack I've considered
2009 Oct 13
0
Re: How can I parse encoded and serialized XML with REXML?
Not really a solution, but this has to be a classic example of PHP- programmer-bass-ackwardness. They''re already writing to an extensible serialization format (XML) but then just whack language-specific serialized data in instead. That''s right up there with the HTTP-over- SOAP-over-HTTP stuff I''ve seen floating around... --Matt Jones On Sep 24, 9:14 am, Andy
2003 Feb 24
2
"trace" argument in legend() (PR#2578)
Full_Name: Jerome Asselin Version: 1.6.2 OS: RedHat Linux 7.2 Submission from: (NULL) (142.103.173.179) Should be an easy fix... Consider the examble below: plot(0,0) legend(0,0,c("Hello!","Hi!"),pch=1:2,lty=1:2,trace=T) It gives the following trace: > plot(0,0) > legend(0,0,c("Hello!","Hi!"),pch=1:2,lty=1:2,trace=T) xchar= 0.05178 ;
2003 Aug 27
4
read.spss (package foreign) and character columns
Dear R users! I am using R Version 1.7.1, Windows XP, package "foreign" (Version: 0.6-1), SPSS 11.5.1. There is one thing I noticed with "read.spss", and I'd like to ask if this is considered to be a feature, or possibly a bug: When reading character columns, character strings seem to get filled with blanks at the end. Simple example: In SPSS, create a file with one
1998 Mar 26
0
S programming style & "missing(.)" [was "regarding bugs in barplot" on R-core]
[The part about S (S-plus and R being dialects of S) programming (at the end) makes me cc'ing this to R-devel. MM] On R-core, >>>>> "Paul" == Paul Murrell <paul@stat.auckland.ac.nz> writes: Paul> hi (i) the problem with the positioning of the legend in your Paul> barplot example: Paul>
2006 Jul 14
2
how to get builder 2.0 to escape attributes in rxml
I am using rxml to produce opml files and need to escape ampersands in the attributes. builder 2.0 docs found at http://builder.rubyforge.org/ show the following xml = Builder::XmlMarkup.new xml.sample(:escaped=>"This&That", :unescaped=>:"Here&amp;There") xml.target! => <sample escaped="This&amp;That"
2008 Nov 27
1
A small bug in R code of the legend function of the Graphics pacakge (PR#13340)
Full_Name: Arkady Sherman Version: 2.8.0 OS: Windows XP Submission from: (NULL) (158.195.16.114) Please consider initialization of the "seg.len" variable. It's done only if (do.lines) { seg.len <- 2 .., but after the seg.len is used: if (has.pch) { pch <- rep(pch, length.out = n.leg) pt.bg <- rep(pt.bg, length.out = n.leg) pt.cex <-
2006 Apr 21
0
Questions on version arg to setClass and serialized instances
I have a few questions and thoughts regarding class versioning and serialized S4 class instances. How is the version argument to setClass is intended to work? It appears to want an externalptr, but that seems odd to me. setClass("FOO", representation(x="numeric"), version="1.2.3") Error in validObject(.Object) : invalid class
2010 Jul 05
0
Serialized JSON object importation
Hi, I would like to import a serialized object (from a JSON export) inside my database. It work fine if for instance I do: >> l = Yea.create(:title => "foo bar") => #<Yea id: 3, title: "foo bar", created_at: "2010-07-05 21:44:54", updated_at: "2010-07-05 21:44:54"> >> j = l.to_json =>
2008 Jul 08
0
Bug with serialized columns in console ?
Hi, I recently added 2 serialized columns in my class Server : class Server < ActiveRecord::Base serialize :visa, Hash serialize :appli, Array ... No problem in my controller and my application and everything works as expected : Excel exports following the "visa" Hash or "appli" Array are ok. But since I added the visa Hash, I can''t load the record with
2014 Sep 07
0
New flag bit for serialized used by pqR
I will shortly be releasing a new version of pqR (you can get a test version from pqR-project.org now - scroll to the bottom of the page). One new feature in this version requires adding a bit to the flags written out when data is serialized. I thought I'd let you know about this so as to avoid any possible conflicts. The new feature is that a few R objects are defined as constants, which
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