[#3292] dir.c --- Dir.chdir error handling — Johan Holmberg <holmberg@...>

55 messages 2004/08/21
[#3350] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/06

Hi, Johan,

[#3351] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/06

Hello.

[#3352] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/06

Hi,

[#3353] Re: [PATCH] dir.c --- Dir.chdir error handling — nobu.nokada@... 2004/09/06

Hi,

[#3354] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/06

Hi,

[#3356] Re: [PATCH] dir.c --- Dir.chdir error handling — nobu.nokada@... 2004/09/07

Hi,

[#3369] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/09

Sorry for late posting. Typhoon striked me.....

[#3372] Re: [PATCH] dir.c --- Dir.chdir error handling — nobu.nokada@... 2004/09/10

Hi,

[#3374] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/10

[#3376] Re: [PATCH] dir.c --- Dir.chdir error handling — nobu.nokada@... 2004/09/10

Hi,

[#3378] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/11

nobu.nokada@softhome.net wrote:

[#3383] Re: [PATCH] dir.c --- Dir.chdir error handling — nobu.nokada@... 2004/09/12

Hi,

[#3384] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/13

[#3385] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/13

Hi,

[#3386] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/13

[#3387] Re: [PATCH] dir.c --- Dir.chdir error handling — ts <decoux@...> 2004/09/13

>>>>> "H" == H Yamamoto <ocean@m2.ccsnet.ne.jp> writes:

[#3392] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/14

[#3393] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/14

Hi,

[#3394] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/14

[#3395] Re: [PATCH] dir.c --- Dir.chdir error handling — ts <decoux@...> 2004/09/14

>>>>> "H" == H Yamamoto <ocean@m2.ccsnet.ne.jp> writes:

[#3399] Re: [PATCH] dir.c --- Dir.chdir error handling — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/09/15

[#3403] Re: [PATCH] dir.c --- Dir.chdir error handling — ts <decoux@...> 2004/09/15

>>>>> "H" == H Yamamoto <ocean@m2.ccsnet.ne.jp> writes:

[#3404] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/15

Hi,

[#3405] Re: [PATCH] dir.c --- Dir.chdir error handling — ts <decoux@...> 2004/09/15

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#3409] Re: [PATCH] dir.c --- Dir.chdir error handling — Yukihiro Matsumoto <matz@...> 2004/09/16

Hi,

[#3416] Re: [PATCH] dir.c --- Dir.chdir error handling — ts <decoux@...> 2004/09/16

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#3303] URGENT: what's the bug reporting system now? — Dave Thomas <dave@...>

Hello!

14 messages 2004/08/25

Re: YAML problem, possibly?

From: Hugh Sasse Staff Elec Eng <hgs@...>
Date: 2004-08-10 23:27:21 UTC
List: ruby-core #3276
On Wed, 11 Aug 2004, why the lucky stiff wrote:

> Hugh Sasse Staff Elec Eng wrote:
>
>> I obtained a largish lump of shallow XML, succcessfully read it with
>> REXML, and then tried to YAML dump it.
>
> ...
>
>> E:\Downloads\AnnaAIML-.7.0\anna_brain>xml_to_yaml.rb
>> <aiml> ... </>
>> c:/ruby/lib/ruby/1.8/yaml/rubytypes.rb:287:in `is_complex_yaml?': stack 
>> level t
>> o deep (SystemStackError)
>
> With a complex tree like a REXML::Document, dumping to YAML can be pretty 
> complicated.  There's definitely a problem here that needs to be solved in 
> the emitter.  The emitter is due for a rewrite and I've just finished a batch 
> of fixes to the parser, so I think I have time to work on this.

Thank you.
>
> In the short term, however, I really don't think you want YAML documents 
> which contain REXML::Document dumps.  If you really want to serialize the 
> REXML::Document, I'd strongly suggest that you use Marshal.  You won't end up 
> with a readable structure in YAML, so there's no point using it.

It did look more complicated than I expected, I have to say.
>
> --- however, ---
>
> If you want to filter the AIML documents into a readable YAML format, I have 
> a script that can help you.  I've used this script to convert XML formats 
> into YAML and just haven't found much of an inclination to turn it into a 
> serious project.  But it works and I was able to convert all of the valid XML 
> documents in the anna_brain directory into readable YAML.

That's great.  I was thinking it would be easier to hack them in
yaml.  I don't know if I'll be able to put it to good use but I was
thinking of an "out of hours" support robot, that could restart
services if (someone claims it's dead && it looks very dead).

>
> The attached script uses a basic schema diagram, written in YAML, to perform 
> the conversion.  These AIML files are kinda sketchy, some aren't valid, some 
> don't follow a very good schema.  But here's the barebones:
         [munch]   Thank you.
> Since D.aiml, test.aiml, and topics.aiml aren't parseable, I can't test those 
> files, but the rest convert fine.  Alright, well, that's it.  Enjoy.

Wow, thanks very much for all that. 
>
> _why
>
         Hugh


In This Thread

Prev Next