yaml

Is this valid YAML?

So for my text parsing in C# question, I got directed at YAML. I'm hitting a wall with this library I was recommended, so this is a quickie. heading: name: A name taco: Yes age: 32 heading: name: Another name taco: No age: 27 And so on. Is that valid? ...

.NET YAML Library

Anyone know of a lightweight YAML library for .NET? Preferably something that comes with source (in C#) so that I can compile it directly into my binary and not have yet another dll dependency. ...

how to represent an empty field in yaml

I am working with fixtures on rails and I want one of the fixture fields to be blank. Example: two: name: test path: - I want this blank but not to act as a group heading. test: 4 But, I do not know how to leave path: blank without it acting as a group title. Does anybody know how to do that? ...

What type of application/utilization is YAML best suited for?

Why would one choose YAML over XML or any other formats? ...

Uploading images along with Google app engine?

I'm working on a google app engine project. My app is working and looking correct locally, but when I try to upload images in an image directory, they're not being displayed at appspot. as a little trouble-shoot, I put an html page in "/images/page2.html" and I can load that page at the appspot, but my pages don't display my images. S...

Why does ActiveRecord's serialize randomly corrupt my data?

I use serialize in one ActiveRecord model to serialize an Array of simple Hashes into a text database field. I even use the second parameter to coerce deserialization into Arrays. class Shop < ActiveRecord::Base serialize : recipients, Array end It seems to work fine but, after a few requests, the content of recipients turns to Hash...

Best Method for reading a YAML response in .NET?

Hey all, Weve recently been trying to work on an application that uses pandastream to encode our videos, we are sending the videos successfully, and the response that we get back is in YAML, however the only tool that we can find (YAML for .NET) is not parsing the file. Has anyone else ran into this, or have any insight on the best pra...

Rails Testing: Fixtures, Factories, and Magic numbers

I've got an application that needs quite a bit of data (1000s of records) to do appropriate testing. The only way I've found to get a decent set of testable, sensible data is to use a subset of my production DB. I've converted this to YAML fixtures in the normal `test/fixtures' location. This works, but now I have a bunch of seemingly...

YAML serialization library for C++?

YAML seems like a great format for configuration files & data binding persistent objects in human-readable form... Is there a C++ library that handles YAML? Does Boost::Serialization have plans for a YAML option? EDIT: I would prefer an OO library. ...

YAML validation

Is there a website that I can upload a YAML file and check for validity? I want to be sure the data coming in will parse correctly. Is trial and error the best method? ...

PHP YAML Parsers

Does anyone know of a good YAML Parser for PHP? If so, what are the pros and cons of this library? Update: Starting a bounty to get fresh input. What's the status of YAML parsers in 2010? Any new developments? ...

how to place YAML inside a YAML document

I am working with Rails fixtures for testing my rails application. It is all good except one of my database columns is supposed to hold YAML content. But, I am sure how to put the YAML markup I want to load into my database inside the YAML file. Here is an example: mvnforum: name: mvnforum abstraction_type: SVN url: src: ...

YAML mime type?

What is the most appropriate MIME type to use when sending data structured with YAML over HTTP? An explanation of why a given choice is most appropriate would be much appreciated. There is no registered application type or text type that I can see. Example: > GET /example.yaml < Content-Type: ???? < < --- # Favorite movies < - Casab...

Serialise to YAML using XStream in Java

Is there a YAML driver for the Java XStream package? I'm already using XStream to serialise/deserialise both XML and JSON. I'd like to be able to do the same with YAML. ...

How do I tell CPAN.pm where to get modules?

Here is the complete install command to CPAN and the output: sudo perl -MCPAN -e "install Bundle::CPAN" CPAN: Storable loaded ok (v2.13) Going to read /home/delgreco/.cpan/Metadata Database was generated on Mon, 08 Dec 2008 03:27:10 GMT CPAN: LWP::UserAgent loaded ok (v2.033) CPAN: Time::HiRes loaded ok (v1.55) CPAN: YAML loaded ok (v...

Parse YAML Files in C/C++

I cant believe i spent two hours and not found a solution. I want a simple tutorial to show me to load a yaml file and parse the data. Expat style would be great but any solution that actually shows me the data in some form would be useful. So far i ran multiple test in yaml-0.1.1 source for C and i either get an error, no output whatso...

Python human readable object serialization

Hi, i need to store Python structures made of lists / dictionaries, tuples into a human readable format. The idea is like using something similar to pickle, but pickle is not human-friendly. Other options that come to my mind are YAML (through PyYAML and JSON (through simplejson) serializers. Any other option that comes to your mind? T...

Are explicitly typed regexes allowed as keys in Perl YAML dump?

This relates to a previous question: How can I read Perl data structures from Python?. It could be a bug in the version of the YAML parser that I'm working with (0.66), but when I run: perl -MYAML -le 'do shift; print YAML::Dump( $CPAN::Config )' simple.pl On the following simple.pl: %config = ( 'color' => 'red', 'numbers' =>...

Pure Javascript YAML library that supports both dump and load?

Does such a thing exist for YAML (aka YAML)? If this existed at one time, it must have been obliterated because the latest search turned up nada. It looks like there are plenty of implementations that dump from Javascript to YAML output only, but having trouble finding an implementation that supports both dump and load. Is anyone worki...

How to process a YAML stream in Python

I have a command line app the continuously outputs YAML data in the form: - col0: datum0 col1: datum1 col2: datum2 - col0: datum0 col1: datum1 col2: datum2 ... It does this for all of eternity. I would like to write a Python script that continuously reads each of these records. The PyYAML library seems best at taking fully l...