Displaying 20 results from an estimated 10000 matches similar to: "small yaml problem"
2007 Nov 08
5
byte-range requests
I''m trying to sent a file to the iphone (which requires byte-range
request support) using the rails send_file method. However, this
fails, I think because of mongrel. I think so because if I send the
iphone a file handled by nginx, it plays it fine. But then when I
serve the file with rails the iphone can''t play it.
Any ideas?
Alex
2007 Oct 06
3
Prototype: resp.getHeader('Location'); redirects browser
Why when I call resp.getHeader(''Location''); after my ajax call does
the browser get redirected to the location header. I just want to get
the value of it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
2007 Aug 23
6
Calling a method on class creation
I have a model User that has property called status. Status is just a
string that can only be evaluated and not persisted. I.e. it doesn''t
have a field in the user table.
Anyways, I would like a method get_status to be called anytime I
create a new instance of User. For example:
user=User.new
Since I created a new instance of User, I should now have access to
the status property, e.g.:
2007 Nov 07
2
Setting headers in sent_file response
I''m having trouble playing a video from my site on the iphone using
send_file. It seems that I''m missing the Accept-Ranges header in my
response. How can I set the Accept-Ranges header in my send_file
response?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2020 Feb 03
2
RFC: Add a preprocessor to yaml2obj (and other YAML tools)
I am adding -D k=v to yaml2obj, similar to clang -D. This makes it easy
to generate {32-bit,64-bit} x {big-endian,little-endian} tests.
--- !ELF
FileHeader:
Class: ELFCLASS[[BITS]]
Data: ELFDATA2[[ENCODE]]
Type: ET_DYN
Machine: EM_X86_64
# RUN: yaml2obj -D BITS=32 -D ENCODE=LSB %s -o %t.32le
# RUN: yaml2obj -D BITS=32 -D ENCODE=MSB %s -o %t.32le
# RUN: yaml2obj
2020 Feb 04
2
RFC: Add a preprocessor to yaml2obj (and other YAML tools)
?The idea itself is indeed good.
Regarding to escaping: I think we should have it.
Imagine the following example (I've took it from D73828).
--- !ELF
FileHeader:
Class: ELFCLASS[[BITS]]
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_386
# RUN: yaml2obj %s --docnum=4 -D BITS=32 -o %t-32bit.o
# RUN: yaml2obj %s --docnum=4 -D BITS=64 -o %t-64bit.o
Without escaping it would
2007 Dec 18
2
Active Resource and non default model names
I have a model (accessed restfully) named TranscoderQueue, it''s name
is overridden to ''TransocderQueue'' so it is accessed as ''/
transocder_queue'' as opposed to ''/transocder_qeueus''.
class TranscoderQueue < ActiveRecord::Base
belongs_to :campaign, :class_name => "Campaign", :foreign_key =>
"campaign_id"
2012 Oct 23
0
[LLVMdev] Status of YAML IO?
On Oct 22, 2012, at 4:40 PM, Sean Silva wrote:
> Hey Nick, what's the status on YAML IO? The other thread seems to have died.\
I'm waiting on Michael Spencer's feedback.
The issues I know of right now are:
1) Should we structure YAML I/O to be a more general I/O utility that could support reading and writing other data formats such as JSON or plists. RIght now, all the code is
2006 Mar 23
1
YAML inconsistencies...
I figured I''d post here before submitting a ticket, but I''m seeing some
confusing stuff when dealing with YAML now. I was using it to freeze
objects in my database, and so i had some data already around to mess with.
I upgraded both Ruby (1.8.3 -> 1.8.4) and Rails ( -> 1.1RC1) and this junk
started. I''ve outlined the problem in two pastes, which I''ll
2009 Aug 07
1
Yaml for jqgrid
Anyone have a more extensive yaml file for jqgrid than the one that''s
shown with the example Jqgrid Demos page?
Also, I''ve been successful in just using the straight jQuery javascript
code, rather than invoking the yaml file to produce it), but sometimes
get an "unitialized class variable @@grid_name" error. I was doing this
because all the code I see on the web to
2012 Jan 24
1
bugzilla + centos 5.7 + yaml errors
Hi all,
Struggling with installing ol Bugzy 4.0.3 onto Centos 5.7.
When I run the checksetup.pl script included with Bugzilla, I get the
message;
/usr/bin/perl install-module.pl Email::MIME
So I run this from the command line and get YAML errors;
Checking for YAML (any) not found
I had installed YAML via;
yum install *YAML*
The package perl-YAML-0.72-1.el5.rf.noarch
2008 Apr 16
2
Question about yaml. Thank you !!
Hi friends:
I tried to convert a model object to yaml(use to_yaml method), and after
that, I would like to convert the yaml(string type) back to the model
object. But when I use YAML::load to do that, it failed, the return
object''s class is Yaml class, not my prior model class.. Please tell me
how can I do to convert yaml to an object as the prior model class, or
how can I access the
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
I've been working on reading and writing yaml encoded documents for the lld project. Michael Spencer added the YAMLParser.h functionality to llvm/Support to help in parsing yaml documents. That parser greatly helps at the syntax level, but you still need to hand write a lot of semantic checking and then convert the various node types in to something usable.
I've developed a layer on
2012 Oct 25
0
[LLVMdev] Status of YAML IO?
> To better understand how a client would use YAML I/O. I've completely rewritten the ReaderYAML and WriterYAML in lld to use YAML I/O. The source code is now about half the size. But more importantly, the error checking is much, much better and any time an attribute (e.g. of an Atom) is changed or added, there is just one place to update the yaml code instead of two places (the reader
2012 Oct 30
0
[LLVMdev] Status of YAML IO?
Hi Nick,
I had a few questions :-
1) Is there a way to validate that the input file is of a valid format,
thats defined by the YAML Reader ?
2) How are you plannning to represent section groups in the YAML ?
3) How are you planning to support Atom specific flags ? Is there a way
already ?
(This would be needed to group similiar atoms together)
4) Are you planning to support representing
2013 Mar 10
1
hiera yaml namespace nesting
Hi,
I''ve just got hiera deployed into a new puppet environment, and have
defined a class as follows:
modules/role/manifests/ui.pp
=====================
class role::ui (
$public_hostname
) {
notify {''role::ui::notify'':
message => "role::ui configured for ${::data_center}; hostname:
$public_hostname",
}
}
This is then included into
2008 Oct 21
1
No such file or directory - /var/lib/puppet/yaml/*
Hi,
I reinstalled puppet-server and am now getting these error messages from
clients:
err: /File[/var/lib/puppet/facts]: Failed to generate additional resources
during transaction: No such file or directory - /var/lib/puppet/yaml/node
err: /File[/var/lib/puppet/facts]: Failed to retrieve current state of
resource: No such file or directory - /var/lib/puppet/yaml/node Could not
describe /facts:
2009 Oct 12
2
yaml ?nodes? or nested maps
I want to iterate ?nodes? and ?leafs? for a yaml document:
thufir@ARRAKIS:~/projects/rss$
thufir@ARRAKIS:~/projects/rss$ ruby user.rb
user.rb:6: undefined method `[]'' for nil:NilClass (NoMethodError)
from user.rb:5:in `each_key''
from user.rb:5
thufir@ARRAKIS:~/projects/rss$
thufir@ARRAKIS:~/projects/rss$ ruby user2.rb
user2.rb:5: undefined method `[]'' for
2007 Nov 08
5
Rails byte-range request support
Hi,
I''m trying to serve the iPhone a video file from my controller using
send_file. However, it appears as thought the iPhone requires byte-
range request support and rails doesn''t seem to support this.
If I give the iPhone a url that points to an actual file (i.e. it''s
served by my webserver nginx, instead of rails) it downloads and plays
it fine.
Here is the proof
2006 May 24
3
Error when *just* adding utf8 encoding to database.yaml
Hi,
I have Ruby 1.8.4 and have my MyISAM db and tables created via the
migration files to utf8. A check with MySQL Front shows that all the
tables and the db have been correctly created as I wanted them.
I want the site to be in UTF8 format, and added the bit to
application_controller.rb to get the correct header. All still worked
fine at this stage. But I run into trouble when adding: