Thread View: news.software.nntp
20 messages
20 total messages
Started by Liyang Hu
Fri, 15 Feb 2002 05:37
[yenc] yydecode -- reimplementation of decoder
Author: Liyang Hu
Date: Fri, 15 Feb 2002 05:37
Date: Fri, 15 Feb 2002 05:37
27 lines
1997 bytes
1997 bytes
After hurting[0] my eyes[1] trying to read the example code given on
http://www.yenc.org/ , I decided I would stop whinging and do
something about it. So here it is:
http://nerv.cx/liyang/download/yydecode/
It's a uudecode work-alike; in fact, it's so like uudecode, it even
takes the same command line switches. (I retyped most of uudecode.c,
so what? :P~~~)
I've tested it on about 200MB of (downloaded) data. It works, as far
as I can see, and should do on any POSIX-compliant system. I'd like
to hear reports of it compiling / working on platforms other than
Debian GNU/Linux on i686, or not, as the case may be.
So far, (somewhat over two hours of work), there's no CRC checking
-- I'll add that in a day or two after I get some sleep ...
Cheers,
/Liyang -- Zzzz
[0] goto? To quote Inigo Montoya: ``You keep using that keyword; I
don't think it means what you think it means ...''
[1] Joke, mmkay? Don't take me too seriously. ^_-
--
.--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--.
| HELLO KITTY gang terrorizes town, family STICKERED to death! |
Re: [yenc] yydecode -- reimplementation of decoder
Author: Yume no Hikari
Date: Fri, 15 Feb 2002 09:32
Date: Fri, 15 Feb 2002 09:32
38 lines
2804 bytes
2804 bytes
On Thu, 14 Feb 2002 22:37:08 -0700, Liyang Hu wrote: > After hurting[0] my eyes[1] trying to read the example code given on > http://www.yenc.org/ , I decided I would stop whinging and do something > about it. So here it is: > > http://nerv.cx/liyang/download/yydecode/ > > It's a uudecode work-alike; in fact, it's so like uudecode, it even > takes the same command line switches. (I retyped most of uudecode.c, so > what? :P~~~) > > I've tested it on about 200MB of (downloaded) data. It works, as far as > I can see, and should do on any POSIX-compliant system. I'd like to hear > reports of it compiling / working on platforms other than Debian > GNU/Linux on i686, or not, as the case may be. > > So far, (somewhat over two hours of work), there's no CRC checking -- > I'll add that in a day or two after I get some sleep ... > > Cheers, > /Liyang -- Zzzz > [0] goto? To quote Inigo Montoya: ``You keep using that keyword; I > don't think it means what you think it means ...'' > [1] Joke, mmkay? Don't take me too seriously. ^_- Hallelujah. A more graceful solution to the pipe-able yDec than I managed (mine was a nasty hack of the already-scary example code). Now I just need to convince myself to crack open the libyenc I had half-done, so we might have encoding and/or built-in decoding support some time this year. (No, I'm not in too much of a hurry to post in it, I just hate having to switch to tin to download yEnc binaries just 'cos Pan won't save as a raw file and has no concept of piping articles.) Many thanks. -hikari
Re: [yenc] yydecode -- reimplementation of decoder
Author: Liyang Hu
Date: Sat, 16 Feb 2002 00:50
Date: Sat, 16 Feb 2002 00:50
44 lines
2894 bytes
2894 bytes
Yume no Hikari <hikari@nevermind.where> wrote: > On Thu, 14 Feb 2002 22:37:08 -0700, Liyang Hu wrote: >> http://nerv.cx/liyang/download/yydecode/ >> So far, (somewhat over two hours of work), there's no CRC >> checking -- I'll add that in a day or two after I get some sleep I've had some sleep, and CRC-32 checking's implemented now. ^_^ I'll post it up in the usual place after I tidy up a few more things. > Hallelujah. A more graceful solution to the pipe-able yDec than I > managed (mine was a nasty hack of the already-scary example code). IMHO the example code was riddled with GOTOs, which is readability hell enough, compounded by it making multiple passes through the input so the parts get decoded in order, which is not necessary. Any decent OS will let you lseek(2) past the end of file, and fill up[1] the space inbetween with zeroes. > Now I just need to convince myself to crack open the libyenc I had > half-done, so we might have encoding and/or built-in decoding > support some time this year. Built into what? O_o > (I just hate having to switch to tin to download yEnc binaries > just 'cos Pan won't save as a raw file and has no concept of > piping articles.) I've used ubh[0] quite successfully for downloading binaries for quite a while now ... Have you heard of / tried it? It works best in conjunction with a newsreader -- as in, you give it a regex of subjects to match, and it will download those articles, combining the parts in the process. It even has support for external article decoding, so you can just plug yydecode into it, et voila! ^_^ mata ne, /Liyang [0] http://ubh.sf.net/ [1] Minor lie: holes. -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | Well, we just happen to *have* an infinite number of monkeys! | | http://stats.distributed.net/rc5-64/psummary.php3?id=284324 |
Re: [yenc] yydecode -- reimplementation of decoder
Author: The Archiver
Date: Sat, 16 Feb 2002 08:29
Date: Sat, 16 Feb 2002 08:29
25 lines
1791 bytes
1791 bytes
Liyang Hu <newsgroups@nerv.cx> wrote: >After hurting[0] my eyes[1] trying to read the example code given on >http://www.yenc.org/ , I decided I would stop whinging and do >something about it. So here it is: > > http://nerv.cx/liyang/download/yydecode/ Thanks for the notification. I'll add it to yenc.org soon. In the last two weeks I've been notified about some UNIX/LINUX decoders/examples - and one of my friends did also write a better code for UNIX. >So far, (somewhat over two hours of work), there's no CRC checking >-- I'll add that in a day or two after I get some sleep ... I personally believe that CRC checking is very important. There have been some posting programs which create wrongly formatted yEnc messages. -- Juergen, [The Archiver]
Re: [yenc] yydecode -- reimplementation of decoder
Author: Liyang Hu
Date: Sat, 16 Feb 2002 14:55
Date: Sat, 16 Feb 2002 14:55
26 lines
2086 bytes
2086 bytes
The Archiver <archiver@i3w.com> wrote: >>So far, (somewhat over two hours of work), there's no CRC checking >>-- I'll add that in a day or two after I get some sleep ... > I personally believe that CRC checking is very important. There > have been some posting programs which create wrongly formatted > yEnc messages. Yep, it's been added as of yesterday. ^_^ Should have explained myself better earlier: I wrote yydecode out of the frustration of not being able to decode these yEnc binaries. That initial release did the job. The current release[0] (0.2) has CRC checking, plus it makes a few more assertions about what it outputs. (ie. checks it wrote the right number of bytes, & cetera.) I'm pretty sure it's a complete implementation of a decoder according to the draft by now. mata ne, /Liyang [0] usual place: http://nerv.cx/liyang/download/yydecode/ -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | Well, we just happen to *have* an infinite number of monkeys! | | http://stats.distributed.net/rc5-64/psummary.php3?id=284324 |
Re: [yenc] yydecode -- reimplementation of decoder
Author: Charles Kerr
Date: Sat, 16 Feb 2002 16:13
Date: Sat, 16 Feb 2002 16:13
35 lines
2543 bytes
2543 bytes
Yume no Hikari <hikari@nevermind.where> wrote in message news:<pan.2002.02.15.02.32.05.906913.25363@nevermind.where>... > On Thu, 14 Feb 2002 22:37:08 -0700, Liyang Hu wrote: > >> After hurting[0] my eyes[1] trying to read the example code given on >> http://www.yenc.org/ , I decided I would stop whinging and do something >> about it. So here it is: >> >> http://nerv.cx/liyang/download/yydecode/ >> >> It's a uudecode work-alike; in fact, it's so like uudecode, it even >> takes the same command line switches. (I retyped most of uudecode.c, so >> what? :P~~~) >> >> I've tested it on about 200MB of (downloaded) data. It works, as far as >> I can see, and should do on any POSIX-compliant system. I'd like to hear >> reports of it compiling / working on platforms other than Debian >> GNU/Linux on i686, or not, as the case may be. >> >> So far, (somewhat over two hours of work), there's no CRC checking -- >> I'll add that in a day or two after I get some sleep ... > > Hallelujah. A more graceful solution to the pipe-able yDec than I managed > (mine was a nasty hack of the already-scary example code). Now I just > need to convince myself to crack open the libyenc I had half-done, so we > might have encoding and/or built-in decoding support some time this year. > (No, I'm not in too much of a hurry to post in it, I just hate having to > switch to tin to download yEnc binaries just 'cos Pan won't save as a raw > file and has no concept of piping articles.) We're working on adding Pan in the next release. -- cheers, Charles
Re: [yenc] yydecode -- reimplementation of decoder
Author: Neeber
Date: Sat, 16 Feb 2002 19:38
Date: Sat, 16 Feb 2002 19:38
59 lines
3033 bytes
3033 bytes
On 16 Feb 2002 09:29:41 +0100, archiver@i3w.com (The Archiver) wrote: >Liyang Hu <newsgroups@nerv.cx> wrote: > >>After hurting[0] my eyes[1] trying to read the example code given on >>http://www.yenc.org/ , I decided I would stop whinging and do >>something about it. So here it is: >> >> http://nerv.cx/liyang/download/yydecode/ > >Thanks for the notification. I'll add it to yenc.org soon. > >In the last two weeks I've been notified about some UNIX/LINUX >decoders/examples - and one of my friends did also write a >better code for UNIX. > >>So far, (somewhat over two hours of work), there's no CRC checking >>-- I'll add that in a day or two after I get some sleep ... > >I personally believe that CRC checking is very important. >There have been some posting programs which create wrongly >formatted yEnc messages. Speaking of which, I've toyed recently with the idea of creating a test suite of broken and corrupt yEnc-encoded files, so developers have a way of testing any decoder client they produce. Nothing hardcore (this doesn't replace automated testing), but t would be a positive step in uniform error handling (something not evident in any yEnc decoder I've yet met). I can reasonably see a relatively short list of 'cases' to punish the unaware decoder (can't think of anything that can punish an encoder). All encodes. Missing header Missing trailer Missing header/trailer entities Corrupt header/trailer entities (i.e. illegal characters) Incorrect header/trailer entities (i.e. wrong CRC, line length, file size) Multipart encodes: Missing part Duplicated part Same .ntx, multiple parts for same file Same .ntx, multiple parts for different files Overlapping parts I'm going to go ahead and create these, using small files (.txt) for starters. Creating corrupt, larger files (.mp3, .mpeg) will take longer, and will probably only test performance and memory issues, so I'm putting that off for later. Can anyone think of any cases I've missed? Most of the multipart cases are intended to test specific client behavior, while the general cases test spec compliance. Cheers
Re: [yenc] yydecode -- reimplementation of decoder
Author: J.B. Moreno
Date: Sat, 16 Feb 2002 21:00
Date: Sat, 16 Feb 2002 21:00
11 lines
1534 bytes
1534 bytes
In article <pan.2002.02.15.02.32.05.906913.25363@nevermind.where>, Yume no Hikari <hikari@nevermind.where> wrote: > (No, I'm not in too much of a hurry to post in it, I just hate having to > switch to tin to download yEnc binaries just 'cos Pan won't save as a raw > file and has no concept of piping articles.) Gabi Davar on the pan-users mailing list said he'd be working on adding yEnc support as soon as possible (of course, that's not exactly a definite date).
Re: [yenc] yydecode -- reimplementation of decoder
Author: Liyang Hu
Date: Sun, 17 Feb 2002 02:28
Date: Sun, 17 Feb 2002 02:28
54 lines
2669 bytes
2669 bytes
Neeber <a110y2@hotmail.com> wrote: > Speaking of which, I've toyed recently with the idea of creating a > test suite of broken and corrupt yEnc-encoded files, so developers > have a way of testing any decoder client they produce. Great idea. ^_^ > All encodes. > Missing header > Missing trailer > Missing header/trailer entities yydecode should just give up in these cases. > Corrupt header/trailer entities (i.e. illegal characters) How would you propose the decoder cope with all of these then? Should it just give up, or try to Do the Right Thing? (Then again, in these cases, what is the right thing to do?) Make sure you include a description of expected behaviour! > Incorrect header/trailer entities (i.e. wrong CRC, line > length, file size) Add to that overlong lines -- test for buffer overflows. (I'm pretty confident yydecode should be able to cope.) > Multipart encodes: > Missing part yydecode would leave the missing part as zeroes. > Duplicated part The later part would overwrite the earlier. > Same .ntx, multiple parts for same file > Same .ntx, multiple parts for different files > Overlapping parts yydecode would believe the later parts. > Can anyone think of any cases I've missed? I'm sure you'll think of more specific cases as you go through the process. ^_^ mata ne, /Liyang -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | Real programmers don't write in BASIC. | | Actually, no programmers write in BASIC after reaching puberty. |
Re: [yenc] yydecode -- reimplementation of decoder
Author: Kjetil Torgrim Homme
Date: Sun, 17 Feb 2002 03:22
Date: Sun, 17 Feb 2002 03:22
23 lines
1811 bytes
1811 bytes
[Neeber]
> I can reasonably see a relatively short list of 'cases' to punish
> the unaware decoder (can't think of anything that can punish an
> encoder).
>
> All encodes.
> Missing header
> Missing trailer
> Missing header/trailer entities
> Corrupt header/trailer entities (i.e. illegal characters)
> Incorrect header/trailer entities (i.e. wrong CRC, line
> length, file size)
* Incorrect characters in the body (no NUL, CR or LF should appear)
* Escape sequence handling (put the = at the end of the line)
* Invalid escape sequence (not sure, but I think only @A-Z[\]^_ are
allowed after =)
* Long lines
--
Kjetil T.
Re: [yenc] yydecode -- reimplementation of decoder
Author: Neeber
Date: Sun, 17 Feb 2002 17:35
Date: Sun, 17 Feb 2002 17:35
51 lines
2696 bytes
2696 bytes
On 17 Feb 2002 02:28:41 GMT, Liyang Hu <newsgroups@nerv.cx> wrote: >Neeber <a110y2@hotmail.com> wrote: >> Speaking of which, I've toyed recently with the idea of creating a >> test suite of broken and corrupt yEnc-encoded files, so developers >> have a way of testing any decoder client they produce. > >Great idea. ^_^ > >> All encodes. >> Missing header >> Missing trailer >> Missing header/trailer entities > >yydecode should just give up in these cases. > >> Corrupt header/trailer entities (i.e. illegal characters) > >How would you propose the decoder cope with all of these then? >Should it just give up, or try to Do the Right Thing? (Then again, >in these cases, what is the right thing to do?) Make sure you >include a description of expected behaviour! From a user's perspective, I'd want the application to, above all, not produce invalid output files. A user would be satisfied to know that the file (or part) was corrupted somehow, and not expect the app to magically fix the corruption. It's reasonable to expect that no sensibly-programmed encoder would ever produce these kinds of errors, and that such errors would only occur from transport failures (some gateway mangled it, or some other piece of software corrupted it). From a programmer's perspective, all they'd really need to take care of is to not crash :) > >> Incorrect header/trailer entities (i.e. wrong CRC, line >> length, file size) > >Add to that overlong lines -- test for buffer overflows. Yup. > >I'm sure you'll think of more specific cases as you go through the >process. ^_^ > K.T. Homme already gave me some. This is good stuff. Cheers.
Re: [yenc] yydecode -- reimplementation of decoder
Author: Liyang Hu
Date: Mon, 18 Feb 2002 00:59
Date: Mon, 18 Feb 2002 00:59
38 lines
2919 bytes
2919 bytes
Neeber <a110y2@hotmail.com> wrote: > On 17 Feb 2002 02:28:41 GMT, Liyang Hu <newsgroups@nerv.cx> wrote: >>How would you propose the decoder cope with all of these then? >>Should it just give up, or try to Do the Right Thing? (Then again, >>in these cases, what is the right thing to do?) Make sure you >>include a description of expected behaviour! > From a user's perspective, I'd want the application to, above all, > not produce invalid output files. A user would be satisfied to > know that the file (or part) was corrupted somehow, and not expect > the app to magically fix the corruption. Broken files gets renamed to file.broken in yydecode's implementation. One shortcoming of the current yEnc format is that you don't know how many parts there are in the set ... each part only comes tagged with the part number, but not the total number of parts. So say the files I downloaded is missing the last part: Any suggestions as to what the correct behaviour should be? > From a programmer's perspective, all they'd really need to take > care of is to not crash :) I don't think yydecode does. (Famous last words.) I'd like to see someone prove me wrong though. (If only so I can go and fix it. ^_^) >>I'm sure you'll think of more specific cases as you go through the >>process. ^_^ > K.T. Homme already gave me some. This is good stuff. Any estimate on the ETA for these test suites? /Liyang -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | drug, n: A substance that, when injected into a rat, | | produces a scientific paper. |
Re: [yenc] yydecode -- reimplementation of decoder
Author: Neeber
Date: Mon, 18 Feb 2002 10:25
Date: Mon, 18 Feb 2002 10:25
47 lines
3087 bytes
3087 bytes
On 18 Feb 2002 00:59:47 GMT, Liyang Hu <newsgroups@nerv.cx> wrote: >One shortcoming of the current yEnc format is that you don't know >how many parts there are in the set ... each part only comes tagged >with the part number, but not the total number of parts. So say the >files I downloaded is missing the last part: Any suggestions as to >what the correct behaviour should be? I think it's important to discern between expectations of the decoder and expectations of the application using the decoder. At this level of separation, it helps to consider that anything not explicitly or implicitly described as decoder behavior by the spec as 'Application Level' behavior. That is, the app can do whatever it wants with bad/missing parts, which can be one of the following options: 1. Not decode anything unless it has a complete valid set 2. Decode to a temporary file and record what's missing (the reference implementation does this with .tmp and .dec files) for future reference. 3. Something magical. Actually, I can't think of a third option. Option 2 would be the 'Nice Thing To Do,' but I reckon the spec would get too bogged down if it had to worry about requirements for these niggling details. Suggestions/reccomendations is the best we can hope for. The spec can recommend a minimum behavior (e.g. 'Don't crash on error, just report it in a uniform and predictable way'), at most. > >Any estimate on the ETA for these test suites? Done. It's 2a.m., so I don't exclude the possibility that I missed a case. Do notify me if there are any problems arising from the use of the test suite, as I am pretty darn sure my code isn't ready to handle this test suite (someone want to come up with a sexier name than 'yEnc test suite'?). In other words, I haven't tested the test suite fully. Caveat Hax0r. The files are zipped for your protection, since some of them contain blatantly illegal characters in the datastream (\r, \r, \n, NUL, TAB, etc.) http://www204.pair.com/~cesium/dev/ Cheers.
Re: [yenc] yydecode -- reimplementation of decoder
Author: Liyang Hu
Date: Mon, 18 Feb 2002 11:44
Date: Mon, 18 Feb 2002 11:44
41 lines
2859 bytes
2859 bytes
Neeber <a110y2@hotmail.com> wrote: > On 18 Feb 2002 00:59:47 GMT, Liyang Hu <newsgroups@nerv.cx> wrote: >> Any suggestions as to what the correct behaviour should be? > The spec can recommend a minimum behavior (e.g. 'Don't crash on > error, just report it in a uniform and predictable way'), at most. YM ``The spec can demand a minimum behavior, and recommend a `best behaviour'.''? (I suggest adopting the vocabulary of RFC 2119.) As the programs don't /have/ to follow the recommendations, in your words, crashing would be acceptable. (Then again, many users of a certain popular OS has come to expect this as standard behaviour ... ^_-) > (someone want to come up with a sexier name than 'yEnc test > suite'?). yEnc was an ugly hack, it suits that name. ^_- > In other words, I haven't tested the test suite fully. Caveat > Hax0r. Indeed. ^_- You realise there's a space at the end of every filename in your test suite? Should I honour that? (I don't think FAT32 can cope, but most UN*X FSs can.) > The files are zipped for your protection, since some of them > contain blatantly illegal characters in the datastream (\r, \r, > \n, NUL, TAB, etc.) Just wondering, what are people's opinions on the creed: ``Be strict in what you output, but be liberal in what you accept''? (Basically, should I be outputing so many warnings / errors?) mata ne, /Liyang -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | Real computer scientists don't write in assembler. | | They don't write in anything less portable than a number two pencil. |
Re: [yenc] yydecode -- reimplementation of decoder
Author: Neeber
Date: Mon, 18 Feb 2002 17:23
Date: Mon, 18 Feb 2002 17:23
59 lines
3854 bytes
3854 bytes
On 18 Feb 2002 11:44:48 GMT, Liyang Hu <newsgroups@nerv.cx> wrote: >Neeber <a110y2@hotmail.com> wrote: >> On 18 Feb 2002 00:59:47 GMT, Liyang Hu <newsgroups@nerv.cx> wrote: >>> Any suggestions as to what the correct behaviour should be? >> The spec can recommend a minimum behavior (e.g. 'Don't crash on >> error, just report it in a uniform and predictable way'), at most. > >YM ``The spec can demand a minimum behavior, and recommend a `best >behaviour'.''? (I suggest adopting the vocabulary of RFC 2119.) > >As the programs don't /have/ to follow the recommendations, in your >words, crashing would be acceptable. (Then again, many users of a >certain popular OS has come to expect this as standard behaviour ... >^_-) Ah, true. I've never written an RFC. I'm sure much tighter language can be used in the final yEnc draft than the loose discussions in this group. If we truly wanted to be anal about it, we could describe yEnc behavior in a client/server-style model, with the yEnc-codec as the 'server' reporting classes of errors in a standardized way (i.e. numeric error codes) and requiring the client application to act on each error code in a specific way. But that's just too much rules-lawyering for this mere mortal. > >Indeed. ^_- You realise there's a space at the end of every filename >in your test suite? Should I honour that? (I don't think FAT32 can >cope, but most UN*X FSs can.) FAT32 copes just fine with the space at the end, but this would appear to be a bug with the encoder I used to produce the samples. (aheh...). I'll make the fixes to the files now. > >Just wondering, what are people's opinions on the creed: ``Be strict >in what you output, but be liberal in what you accept''? (Basically, >should I be outputing so many warnings / errors?) > The user of the application will probably be satisfied to know that something went awry because the yEnc'd file was corrupt. The specifics are unimportant (although the user should have access to more detail if they ask for it), so it probably won't do them all that good to have their screen fill with warning/error messages on a corrupt header. The user is in all cases going to hunt down a new, uncorrupted encode (e.g. 'Please repost this!') no matter what the cause of the corruption. This is why I like the idea of a logfile to keep track of every decode-time problem Alternatively, the application could spit out an invalid output file and let the user attempt 3rd-party file repair technologies (binary groups make heavy use of these to conserve bandwidth given to reposts). Naturally, I don't think this should be default behavior, but it could work under some circumstances. Cheers.
Re: [yenc] yydecode -- reimplementation of decoder
Author: The Archiver
Date: Fri, 22 Feb 2002 07:18
Date: Fri, 22 Feb 2002 07:18
34 lines
2327 bytes
2327 bytes
Neeber <a110y2@hotmail.com> wrote: >>How would you propose the decoder cope with all of these then? >>Should it just give up, or try to Do the Right Thing? (Then again, >>in these cases, what is the right thing to do?) Make sure you >>include a description of expected behaviour! > >From a user's perspective, I'd want the application to, above all, not >produce invalid output files. A user would be satisfied to know that >the file (or part) was corrupted somehow, and not expect the app to >magically fix the corruption. We are having a temporary problem that some beta-versions of posting programs are creating invalid CRC values (or other invalid encodings - which still result in a correct file). I believe that it would be the best to _warn_ the user explicitely - and (as an option) save the file either with filename which includes a warning or not saving the file at all. Examples: picture(crc invalid).avi video(line-length).avi In case of multiparts my own newsreader (MyNews) is setting special labels (red colour) to indicate the corrupt message. Just my own experience. -- Juergen, [The Archiver]
Re: [yenc] yydecode -- reimplementation of decoder
Author: BZB
Date: Fri, 01 Mar 2002 09:36
Date: Fri, 01 Mar 2002 09:36
13 lines
1797 bytes
1797 bytes
The Archiver wrote: > >So far, (somewhat over two hours of work), there's no CRC checking > >-- I'll add that in a day or two after I get some sleep ... > > I personally believe that CRC checking is very important. > There have been some posting programs which create wrongly > formatted yEnc messages. One side effect of CRC checking is that unless you can temporarily disable it in the decoder, it defeats the purpose of the RAR recovery record since the reference implementation refuses to save any of the "corrupted" data into that segment.
Re: [yenc] yydecode -- reimplementation of decoder
Author: The Archiver
Date: Sat, 02 Mar 2002 08:23
Date: Sat, 02 Mar 2002 08:23
42 lines
2323 bytes
2323 bytes
BZB <no.sp@m.please> wrote: >> I personally believe that CRC checking is very important. >> There have been some posting programs which create wrongly >> formatted yEnc messages. > >One side effect of CRC checking is that unless you can temporarily >disable it in the decoder, it defeats the purpose of the RAR recovery record >since the reference implementation refuses to save any of the "corrupted" >data into that segment. I've received some feature requests for yDec.exe: * Switch to move processed input file to the recycle bin * Switch to store also messages which are corrupt. (and I'll try to implement these switches as options) - - excursion - - I personally believe that the method to "repair corrupt messages" is - together with the method to post additional PAR-files for reconstruction of missing messages from overhead information - are leading into the wrong direction. yEnc has the design targets to _detect_ corrupt messages and get them in good condition from another source - or from a repost. MyNews has the design target to deliver missing messages to those who have incomplete feeds by P2P. Those who are using my tools - and understand my visions - dont need PAR, RAR, Repair, Reposts. They can download all they need today _without_ additional overhead. But this might be more a topic for the "Future of Binary Usenet" discussion. If we want to stop this style of "reverse engineering" then we have to offer a better service to the users. Else they will go their "private ways". -- Juergen
Re: [yenc] yydecode -- reimplementation of decoder
Author: bill davidsen
Date: Tue, 30 Jul 2002 18:41
Date: Tue, 30 Jul 2002 18:41
22 lines
2338 bytes
2338 bytes
In article <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk>, Liyang Hu <newsgroups@nerv.cx> wrote: | How would you propose the decoder cope with all of these then? | Should it just give up, or try to Do the Right Thing? (Then again, | in these cases, what is the right thing to do?) Make sure you | include a description of expected behaviour! In all cases where it can tell what "really wrong" (tm) and correct for it, I think it should. Having paid the freight to download the file, you presumably want it. Therefore if you can handle the problem in a determanent way, write a file and add .broken to the end, as several yydecoders already do. Or just emit a warning on stderr, if the user ignores it, so what? -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Programming without software engineering is like sculpting with a chain saw. The very talented can produce a work of art, the mediocre wind up with a misshapen lump in a pile of rubble, and in neither case does the end result have more than a passing resemblance to the original intent.
Re: [yenc] yydecode -- reimplementation of decoder
Author: Juergen Helbing
Date: Wed, 31 Jul 2002 07:50
Date: Wed, 31 Jul 2002 07:50
28 lines
1772 bytes
1772 bytes
davidsen@tmr.com (bill davidsen) wrote: >In all cases where it can tell what "really wrong" (tm) and correct for >it, I think it should. Having paid the freight to download the file, you >presumably want it. Therefore if you can handle the problem in a >determanent way, write a file and add .broken to the end, as several >yydecoders already do. Or just emit a warning on stderr, if the user >ignores it, so what? The yEnc-Spec recommends to extend the filename with a "reason" why a yEncoded attachment could not be decoded properly. From the spec): > picture(size-error).jpg > homemovie(crc32-error).avi > document(line-error).rtf > logmusic(missing-parts).mp3 > It is acceptable to store also corrupt binaries > (some might be even partially usable). > But it is _not_ acceptable to hide detected errors from the user entirely. HTH -- Juergen
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads