Re: Weekend challenge

2013-07-03 Thread J. Landman Gay
On 7/3/13 9:39 AM, Geoff Canyon wrote: The above code is just for the ID, but even on that task it doesn't seem to do the same thing I did. The above will not flag this as a problem, but my code would: ID SECTION SUBSECTION TYPE|OP1|OP2 AB MediumOrchid AB MediumOrchid

Re: Weekend challenge

2013-07-03 Thread Geoff Canyon
On Wed, Jul 3, 2013 at 11:30 AM, J. Landman Gay jac...@hyperactivesw.comwrote: Right, that's why yours is better. The nature of the data is usually that only a single line would be out of sequence, but of course you can't rely on that. So tell those guys that you don't condone half-assed

Re: Weekend challenge

2013-07-02 Thread Geoff Canyon
I'd be very curious to know what the rails code looked like. I've said many times, and I hope the new language features enable this soon, that there are *many* extensions to the LC language that would be equal parts intuitive and useful. The unique requirement on the type might be (assuming

Re: Weekend challenge

2013-07-01 Thread J. Landman Gay
On 7/1/13 12:53 AM, Geoff Canyon wrote: Okay, this is a beast, and in no way good or generalized. It doesn't use the previous function, instead just going through line by line and flagging all the issues it sees in one pass. snip Thanks Geoff, I'll definitely look it over. I actually won't

Re: Weekend challenge

2013-07-01 Thread Mark Wieder
J. Landman Gay jacque@... writes: Fortunately the client said never mind, sigh...clients.../sigh -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Weekend challenge

2013-07-01 Thread Mark Wieder
sigh...can't live with 'em, can't shoot 'em.../sigh -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Weekend challenge

2013-06-30 Thread J. Landman Gay
I've got a challenge for anyone up for it. Below are the rules and some formatted example data. It's supposed to be tab-delimited but if email borks it, you can grab a zip file here: https://dl.dropboxusercontent.com/u/23431607/testColumnData.txt.zip DATA FORMAT: Each tab-delimited line has

Re: Weekend challenge

2013-06-30 Thread Michael Kann
J, I tried to reply but the moderator says too many characters. Anyway, here's my question: According to rule 5 everything is grouped. Does that mean everything is also alphabetized. Mike ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Weekend challenge

2013-06-30 Thread J. Landman Gay
On 6/30/13 7:04 PM, Michael Kann wrote: J, I tried to reply but the moderator says too many characters. Anyway, here's my question: According to rule 5 everything is grouped. Does that mean everything is also alphabetized. Nope, nothing is alphabetized, not even the ID blocks (my fake data

Re: Weekend challenge

2013-06-30 Thread J. Landman Gay
On 6/30/13 8:42 PM, Geoff Canyon wrote: In the email, item 2 is: 2. While every Type must be unique, a Type can be the same as the Subsection it's in. This is the only non-unique exception. In the file it says, 2. While every Type must be unique, a Type can be the same as a Subsection

Re: Weekend challenge

2013-06-30 Thread J. Landman Gay
Cool. Note that in the sample data, the first two lines of the EF block are missing entirely, the ones that should have the empty values. Not sure how to call your function for that but I'm hoping you do. :) On 6/30/13 8:33 PM, Geoff Canyon wrote: This is just one piece, but here's a

Re: Weekend challenge

2013-06-30 Thread Geoff Canyon
Okay, this is a beast, and in no way good or generalized. It doesn't use the previous function, instead just going through line by line and flagging all the issues it sees in one pass. It should: 1. Flag any new ID that doesn't have just two items on the line. 2. Following that line, flag if the