• Someone run this:

    From Amcleod@VERT to All on Thursday, June 22, 2000 23:25:32
    Please somebody - run this BAJA mod and give me the results that it displays:

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    I'd appreciate it!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Amcleod on Friday, June 23, 2000 07:37:30
    RE: Someone run this:
    BY: Amcleod to All on Fri Jun 23 2000 06:25 am

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    CRC16 / 32 of [The quick brown fox jumps over the lazy dog.] = 58035 / 1368401385
    Thanks, digital man!

    :-)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Amcleod@VERT to Digital Man on Friday, June 23, 2000 13:27:52
    RE: Someone run this:
    BY: Digital Man to Amcleod on Fri Jun 23 2000 02:37 pm

    CRC16 / 32 of [The quick brown fox jumps over the lazy dog.] = 58035 / 1368401385
    Thanks, digital man!

    Yay! Thanks muchly, @SYSOP@ ;-)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Beta@VERT/ROVER to Amcleod on Friday, June 23, 2000 17:02:00
    RE: Someone run this:
    BY: Amcleod to All on Fri Jun 23 2000 06:25 am

    Please somebody - run this BAJA mod and give me the results that it displays

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    I'd appreciate it!

    Do you realize how much time I spent thinking up that code????? Your's is nicer, but mine worked... :) Here

    The quick brown fox jumps over the lazy dog.
    1368401385
    58035

    From this code

    !include sbbsdefs.inc
    int crc16 crc32
    str bfox
    set bfox "The quick brown fox jumps over the lazy dog."
    CRC16 crc16 bfox
    CRC32 crc32 bfox
    print bfox
    print \r\n
    print crc32
    print \r\n
    print crc16

    And you know what? The Ver3 node shows a different output then my local ver 2.3 node... I'll post it's outputin a sec.. :)
    Beta

    This is what the ver 2.3 local node gives me for an output

    The quick brown fox jumps over the lazy dog.
    9705
    58035

    (Same code, go figure)

    ---
    þ Synchronet þ Synchronet, no other BBS had such cool mods!
  • From Amcleod@VERT to Beta on Friday, June 23, 2000 23:49:43
    RE: Someone run this:
    BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

    This is what the ver 2.3 local node gives me for an output

    The quick brown fox jumps over the lazy dog.
    9705
    58035

    (Same code, go figure)

    Uh-oh! This is not good. In fact this is evil! Different results for CRC32 on the same .BIN file? Baaaad!

    You better draw this to DM's attention!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Amcleod@VERT to Beta on Friday, June 23, 2000 23:52:04
    RE: Someone run this:
    BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

    Do you realize how much time I spent thinking up that code????? Your's is nicer, but mine worked... :) Here

    The quick brown fox jumps over the lazy dog.
    1368401385
    58035

    Goody! My perl module agrees with your resolds (and DM's which were - obviously - the same). I guess that means I have not hosed up the conversion of his code, then!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From John Guillory@VERT/MAINLINE to DIGITAL MAN on Saturday, June 24, 2000 01:34:00
    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    CRC16 / 32 of [The quick brown fox jumps over the lazy dog.] = 58035 / DM>1368401385
    Thanks, digital man!

    :-)
    For the clueless new sysop who is dieing to know, how do I execute a
    .bin from synchronet without having to add it to the menu? I've tried
    ;EXEC (* on renegade menus, then EXEC), but one time windows said an
    illegal operation occured, the next time it seemed to ignore the call...
    If you saved the above as test.src and compiled it to test.bin, do you
    use:

    ;exec test
    ;exec test.bin
    or something else?

    * SLMR 2.1 * "This is down. Down is good. This is up. Up is no." -

    ---
    þ Synchronet þ MainLine Consulting BBS //\/\\ (337) 431-7189
  • From John Guillory@VERT/MAINLINE to BETA on Saturday, June 24, 2000 01:38:00
    And you know what? The Ver3 node shows a different output then my local ver BE>2.3 node... I'll post it's outputin a sec.. :)
    Beta
    This is *Strange*, while there's many different ways of doing CRC16
    and CRC32, I'd expect the CRC16 and CRC32 to be the same identical
    routines used in both 2.3 and 3.0 ...


    * SLMR 2.1 * A rose is a rose, but a decent enchilada... Now you're ta

    ---
    þ Synchronet þ MainLine Consulting BBS //\/\\ (337) 431-7189
  • From Digital Man@VERT to Beta on Saturday, June 24, 2000 08:01:24
    RE: Someone run this:
    BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

    Please somebody - run this BAJA mod and give me the results that it displ

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    I'd appreciate it!

    Do you realize how much time I spent thinking up that code????? Your's is nicer, but mine worked... :) Here

    The quick brown fox jumps over the lazy dog.
    1368401385
    58035

    From this code

    !include sbbsdefs.inc
    int crc16 crc32
    str bfox
    set bfox "The quick brown fox jumps over the lazy dog."
    CRC16 crc16 bfox
    CRC32 crc32 bfox
    print bfox
    print \r\n
    print crc32
    print \r\n
    print crc16

    And you know what? The Ver3 node shows a different output then my local ver 2.3 node... I'll post it's outputin a sec.. :)
    Beta

    This is what the ver 2.3 local node gives me for an output

    The quick brown fox jumps over the lazy dog.
    9705
    58035

    I think the problem is in your code. Use printf (like Angus' example) and you should see the same results on both versions.

    Rob

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to John Guillory on Saturday, June 24, 2000 08:02:47
    RE: Someone run this:
    BY: John Guillory to DIGITAL MAN on Sat Jun 24 2000 08:34 am

    For the clueless new sysop who is dieing to know, how do I execute a
    .bin from synchronet without having to add it to the menu? I've tried
    ;EXEC (* on renegade menus, then EXEC), but one time windows said an
    illegal operation occured, the next time it seemed to ignore the call...
    If you saved the above as test.src and compiled it to test.bin, do you
    use:

    ;exec test
    ;exec test.bin
    or something else?

    ;EXEC *test

    Rob

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to John Guillory on Saturday, June 24, 2000 08:03:29
    RE: Someone run this:
    BY: John Guillory to BETA on Sat Jun 24 2000 08:38 am

    This is *Strange*, while there's many different ways of doing CRC16
    and CRC32, I'd expect the CRC16 and CRC32 to be the same identical
    routines used in both 2.3 and 3.0 ...

    They are identical. The problem was in Beta's module.

    Rob

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Beta@VERT/ROVER to John Guillory on Monday, July 03, 2000 15:59:00
    RE: Someone run this:
    BY: John Guillory to DIGITAL MAN on Sat Jun 24 2000 08:34 am

    For the clueless new sysop who is dieing to know, how do I execute a
    .bin from synchronet without having to add it to the menu? I've tried
    ;EXEC (* on renegade menus, then EXEC), but one time windows said an
    illegal operation occured, the next time it seemed to ignore the call...
    If you saved the above as test.src and compiled it to test.bin, do you
    use:

    Use
    ;exec*test
    Beta

    ---
    þ Synchronet þ Synchronet, no other BBS had such cool mods!