Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I need to exorcise my computer from voodoo

I need to exorcise my computer from voodoo

Scheduled Pinned Locked Moved The Lounge
csharpcomalgorithmsquestion
39 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #1

    I have been working on and off (at home) on that single algorithm for almost 2 and half years, I think. I am now very close to completion with an elegantly simple algorithm :) Except.. it doesn't work... After days of staring at my screen I came up with a test that shows an internal data inconsistency that will predict failure. But... basically the validation is a loop doing some calculation at each step.. . It came literally right after the same loop applying the calculation result.. yet it has different value than expected?! Why, ho why? And how? :(( :(( I think the forces that be are preventing me from finding the truth! :o That's the only logical explanation I can come up with! Need exorcism ASAP! :mad: :rolleyes: :wtf: :~

    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

    OriginalGriffO R H M R 7 Replies Last reply
    0
    • S Super Lloyd

      I have been working on and off (at home) on that single algorithm for almost 2 and half years, I think. I am now very close to completion with an elegantly simple algorithm :) Except.. it doesn't work... After days of staring at my screen I came up with a test that shows an internal data inconsistency that will predict failure. But... basically the validation is a loop doing some calculation at each step.. . It came literally right after the same loop applying the calculation result.. yet it has different value than expected?! Why, ho why? And how? :(( :(( I think the forces that be are preventing me from finding the truth! :o That's the only logical explanation I can come up with! Need exorcism ASAP! :mad: :rolleyes: :wtf: :~

      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Use the debugger? The VS one can break when a variable is modified, so if a value is changing and you don't expect that it may give you an idea where it is being changed from? Or fill your PC with Pea Soup[^] and have a ball!

      Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      S 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Use the debugger? The VS one can break when a variable is modified, so if a value is changing and you don't expect that it may give you an idea where it is being changed from? Or fill your PC with Pea Soup[^] and have a ball!

        Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        S Offline
        S Offline
        Super Lloyd
        wrote on last edited by
        #3

        Use the debugger! What a novel idea! :laugh: The problem with stepping through the whole algorithm manually is that there is too much data and raw numerical values don't make much sense to human eyes... it describe 2 potatoes intersection.. but when I look at the bezier's handle point values, it means little to me (except visually..) FYI, trying to debug this vector graphic eraser [issue](https://ibb.co/Ydf8yqg) :(( Anyway, just made a tiny bit more progress... In my structure I got, for some reason, an odd number of intersection (between 2 shapes)... :wtf: :confused: 333!

        A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

        OriginalGriffO H M 3 Replies Last reply
        0
        • S Super Lloyd

          Use the debugger! What a novel idea! :laugh: The problem with stepping through the whole algorithm manually is that there is too much data and raw numerical values don't make much sense to human eyes... it describe 2 potatoes intersection.. but when I look at the bezier's handle point values, it means little to me (except visually..) FYI, trying to debug this vector graphic eraser [issue](https://ibb.co/Ydf8yqg) :(( Anyway, just made a tiny bit more progress... In my structure I got, for some reason, an odd number of intersection (between 2 shapes)... :wtf: :confused: 333!

          A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          There is still the Pea Soup option! :laugh:

          Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          S 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            There is still the Pea Soup option! :laugh:

            Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #5

            That's the only solution! I fear! :o :laugh:

            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

            1 Reply Last reply
            0
            • S Super Lloyd

              I have been working on and off (at home) on that single algorithm for almost 2 and half years, I think. I am now very close to completion with an elegantly simple algorithm :) Except.. it doesn't work... After days of staring at my screen I came up with a test that shows an internal data inconsistency that will predict failure. But... basically the validation is a loop doing some calculation at each step.. . It came literally right after the same loop applying the calculation result.. yet it has different value than expected?! Why, ho why? And how? :(( :(( I think the forces that be are preventing me from finding the truth! :o That's the only logical explanation I can come up with! Need exorcism ASAP! :mad: :rolleyes: :wtf: :~

              A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

              R Offline
              R Offline
              RickZeeland
              wrote on last edited by
              #6

              You need advice from an Expert[^] :-\

              S 1 Reply Last reply
              0
              • R RickZeeland

                You need advice from an Expert[^] :-\

                S Offline
                S Offline
                Super Lloyd
                wrote on last edited by
                #7

                haha, help us potato man! you are our only hope!

                A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                1 Reply Last reply
                0
                • S Super Lloyd

                  I have been working on and off (at home) on that single algorithm for almost 2 and half years, I think. I am now very close to completion with an elegantly simple algorithm :) Except.. it doesn't work... After days of staring at my screen I came up with a test that shows an internal data inconsistency that will predict failure. But... basically the validation is a loop doing some calculation at each step.. . It came literally right after the same loop applying the calculation result.. yet it has different value than expected?! Why, ho why? And how? :(( :(( I think the forces that be are preventing me from finding the truth! :o That's the only logical explanation I can come up with! Need exorcism ASAP! :mad: :rolleyes: :wtf: :~

                  A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #8

                  just wave a dead chicken over it. it works for me. of course YMMV my computer is just an old head in a jar that i put a hex on - linux will run on anything these days.

                  When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                  S 1 Reply Last reply
                  0
                  • H honey the codewitch

                    just wave a dead chicken over it. it works for me. of course YMMV my computer is just an old head in a jar that i put a hex on - linux will run on anything these days.

                    When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                    S Offline
                    S Offline
                    Super Lloyd
                    wrote on last edited by
                    #9

                    Lots of good tips in here! :D

                    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                    1 Reply Last reply
                    0
                    • S Super Lloyd

                      Use the debugger! What a novel idea! :laugh: The problem with stepping through the whole algorithm manually is that there is too much data and raw numerical values don't make much sense to human eyes... it describe 2 potatoes intersection.. but when I look at the bezier's handle point values, it means little to me (except visually..) FYI, trying to debug this vector graphic eraser [issue](https://ibb.co/Ydf8yqg) :(( Anyway, just made a tiny bit more progress... In my structure I got, for some reason, an odd number of intersection (between 2 shapes)... :wtf: :confused: 333!

                      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #10

                      333 is half of the mark of the beast. there's your problem right there. Your code is summoning demons.

                      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                      S 1 Reply Last reply
                      0
                      • S Super Lloyd

                        I have been working on and off (at home) on that single algorithm for almost 2 and half years, I think. I am now very close to completion with an elegantly simple algorithm :) Except.. it doesn't work... After days of staring at my screen I came up with a test that shows an internal data inconsistency that will predict failure. But... basically the validation is a loop doing some calculation at each step.. . It came literally right after the same loop applying the calculation result.. yet it has different value than expected?! Why, ho why? And how? :(( :(( I think the forces that be are preventing me from finding the truth! :o That's the only logical explanation I can come up with! Need exorcism ASAP! :mad: :rolleyes: :wtf: :~

                        A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                        H Offline
                        H Offline
                        honey the codewitch
                        wrote on last edited by
                        #11

                        in all seriousness, I just got done with tackling a similar debugging issue. Sometimes the debugger just isn't enough. As another commenter pointed out, the algorithm doesn't usually make much sense to people once it's at the point where it breaks. So you should write more code. I dumped intermediary LALR tables to CSV for example so i could visualize them. I also made symbols and grammar rules print out string representations of themselves to the debugger to help. In the end, write MOAR CODE until the problem reveals itself. Sometimes using graphviz can help, in extreme cases.

                        When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                        S G 2 Replies Last reply
                        0
                        • H honey the codewitch

                          333 is half of the mark of the beast. there's your problem right there. Your code is summoning demons.

                          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                          S Offline
                          S Offline
                          Super Lloyd
                          wrote on last edited by
                          #12

                          OMG! it is so obvious now that you say it! :O

                          A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                          1 Reply Last reply
                          0
                          • H honey the codewitch

                            in all seriousness, I just got done with tackling a similar debugging issue. Sometimes the debugger just isn't enough. As another commenter pointed out, the algorithm doesn't usually make much sense to people once it's at the point where it breaks. So you should write more code. I dumped intermediary LALR tables to CSV for example so i could visualize them. I also made symbols and grammar rules print out string representations of themselves to the debugger to help. In the end, write MOAR CODE until the problem reveals itself. Sometimes using graphviz can help, in extreme cases.

                            When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                            S Offline
                            S Offline
                            Super Lloyd
                            wrote on last edited by
                            #13

                            Yeah I made (some tiny bit) of progress lately.. because I wrote plenty of tools and visualisation to make the issue more understandable... I am getting close.. When it fails I got 3 intersection between 2 shapes (best understanding, so far, about the problem) now I *just* have to find out why! :laugh: :~ That can't be.. I guess I misdiagnosed a touch for an intersection.... That's a tricky one, since intersection are approximation though...

                            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                            H C 2 Replies Last reply
                            0
                            • H honey the codewitch

                              in all seriousness, I just got done with tackling a similar debugging issue. Sometimes the debugger just isn't enough. As another commenter pointed out, the algorithm doesn't usually make much sense to people once it's at the point where it breaks. So you should write more code. I dumped intermediary LALR tables to CSV for example so i could visualize them. I also made symbols and grammar rules print out string representations of themselves to the debugger to help. In the end, write MOAR CODE until the problem reveals itself. Sometimes using graphviz can help, in extreme cases.

                              When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                              G Offline
                              G Offline
                              GuyThiebaut
                              wrote on last edited by
                              #14

                              That's how I have solved some knotty issues with a Python bouncy ball simulation I have been writing(just because I wondered what all the hype about Python has been). I created a logger class and wrote all the data out to a tab delimited file. I then found fairly quickly where the issues were - as rather than see isolated data, which is what debugger information tends to present, I was able to see data over time and solve the problem from there.

                              “That which can be asserted without evidence, can be dismissed without evidence.”

                              ― Christopher Hitchens

                              H 1 Reply Last reply
                              0
                              • G GuyThiebaut

                                That's how I have solved some knotty issues with a Python bouncy ball simulation I have been writing(just because I wondered what all the hype about Python has been). I created a logger class and wrote all the data out to a tab delimited file. I then found fairly quickly where the issues were - as rather than see isolated data, which is what debugger information tends to present, I was able to see data over time and solve the problem from there.

                                “That which can be asserted without evidence, can be dismissed without evidence.”

                                ― Christopher Hitchens

                                H Offline
                                H Offline
                                honey the codewitch
                                wrote on last edited by
                                #15

                                Frankly, I solved that by not coding in python =P It's a magical language in some ways, but the grammar was designed at gunpoint. Who uses tabs to dictate program flow? I protest the language out of my distaste for poor grammars /grammar nazi

                                When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                L G 2 Replies Last reply
                                0
                                • S Super Lloyd

                                  Yeah I made (some tiny bit) of progress lately.. because I wrote plenty of tools and visualisation to make the issue more understandable... I am getting close.. When it fails I got 3 intersection between 2 shapes (best understanding, so far, about the problem) now I *just* have to find out why! :laugh: :~ That can't be.. I guess I misdiagnosed a touch for an intersection.... That's a tricky one, since intersection are approximation though...

                                  A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                                  H Offline
                                  H Offline
                                  honey the codewitch
                                  wrote on last edited by
                                  #16

                                  I'm building a parser generator right now, so if you know what that entails, you know I mean it when I say I feel your pain, neighbor.

                                  When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                  S 1 Reply Last reply
                                  0
                                  • H honey the codewitch

                                    Frankly, I solved that by not coding in python =P It's a magical language in some ways, but the grammar was designed at gunpoint. Who uses tabs to dictate program flow? I protest the language out of my distaste for poor grammars /grammar nazi

                                    When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #17

                                    Quote:

                                    Who uses tabs to dictate program flow?

                                    A thing I'm asking me all the time.

                                    It does not solve my Problem, but it answers my question

                                    H 1 Reply Last reply
                                    0
                                    • H honey the codewitch

                                      Frankly, I solved that by not coding in python =P It's a magical language in some ways, but the grammar was designed at gunpoint. Who uses tabs to dictate program flow? I protest the language out of my distaste for poor grammars /grammar nazi

                                      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                      G Offline
                                      G Offline
                                      GuyThiebaut
                                      wrote on last edited by
                                      #18

                                      Once you get used to it, the spacing makes a lot of sense. I find it easier to follow programme flow with the indentation.

                                      “That which can be asserted without evidence, can be dismissed without evidence.”

                                      ― Christopher Hitchens

                                      H 1 Reply Last reply
                                      0
                                      • G GuyThiebaut

                                        Once you get used to it, the spacing makes a lot of sense. I find it easier to follow programme flow with the indentation.

                                        “That which can be asserted without evidence, can be dismissed without evidence.”

                                        ― Christopher Hitchens

                                        H Offline
                                        H Offline
                                        honey the codewitch
                                        wrote on last edited by
                                        #19

                                        most people indent. write a python parser, then we'll talk about "getting used to it" when you have to make the grammar (including the tokenizer) context sensitive in order to handle significant vs insignificant whitespace.

                                        When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                        L 1 Reply Last reply
                                        0
                                        • L Lost User

                                          Quote:

                                          Who uses tabs to dictate program flow?

                                          A thing I'm asking me all the time.

                                          It does not solve my Problem, but it answers my question

                                          H Offline
                                          H Offline
                                          honey the codewitch
                                          wrote on last edited by
                                          #20

                                          i mean, it's one thing to use tabs to show program flow, but they should be descriptive, not prescriptive.

                                          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                          L 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups