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. New Requirement

New Requirement

Scheduled Pinned Locked Moved The Lounge
htmlcom
38 Posts 31 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

    Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

    J C D P L 23 Replies Last reply
    0
    • L Lost User

      I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

      Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

      J Offline
      J Offline
      Jacquers
      wrote on last edited by
      #2

      Start working on that flux capacitor / future event prediction circuit...

      L N 2 Replies Last reply
      0
      • L Lost User

        I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

        Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

        C Offline
        C Offline
        Chris Meech
        wrote on last edited by
        #3

        Isn't this what parallel processing was invented for? When the first event happens, you now must start two paths of execution. At some point in the future, you abort one of these paths depending upon whether event two has occurred. Sounds pretty simple to me and I'm sure there's already a pattern that's been developed to handle this. :)

        Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

        L 1 Reply Last reply
        0
        • J Jacquers

          Start working on that flux capacitor / future event prediction circuit...

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

          Well that's the first question. Should I create a process to check the future, or one to undo the past. I think it'll have to be the future, because the other I don't know at which point I can guarantee the third thing isn't going to happen, so I don't know at which point to undo the past.

          Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

          N C 2 Replies Last reply
          0
          • L Lost User

            I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

            Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

            D Offline
            D Offline
            dan sh
            wrote on last edited by
            #5

            Seems like life of married men. Third thing is related to cuddling. Second might just never happen and in several days they get first and third. If you know what I mean.

            "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

            J 1 Reply Last reply
            0
            • L Lost User

              I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

              Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

              P Offline
              P Offline
              Pualee
              wrote on last edited by
              #6

              Do the thing, quarantine the results, if the final even happens, accept the results, if not, leave in quarantine indefinitely (or until the several days have definitively passed).

              L 1 Reply Last reply
              0
              • P Pualee

                Do the thing, quarantine the results, if the final even happens, accept the results, if not, leave in quarantine indefinitely (or until the several days have definitively passed).

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

                That would be the obvious solution, except that the things happen in one system and cause events in another system. This other system then sends messages to local government for regulatory purposes and has to happen at the correct date. There are hefty financial penalties for not doing so. Essentially what the user is trying to do with the request is cover themselves if they forget to do something later on, but they didn't think through the ramifications properly.

                Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                F 1 Reply Last reply
                0
                • L Lost User

                  I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

                  Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                  R Offline
                  R Offline
                  Roy from Detroit
                  wrote on last edited by
                  #8

                  At my first programming job, I worked on source code where many lines had comments which simply said "TEMPORAL". English was not the primary language of the original programmer. Now I am thinking I should go dig up that code. Maybe I was just too green to understand and it is exactly the code you need!

                  1 Reply Last reply
                  0
                  • L Lost User

                    I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

                    Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

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

                    Let me know if you invent it. I could really use something like that in my HFT program.

                    1 Reply Last reply
                    0
                    • L Lost User

                      Well that's the first question. Should I create a process to check the future, or one to undo the past. I think it'll have to be the future, because the other I don't know at which point I can guarantee the third thing isn't going to happen, so I don't know at which point to undo the past.

                      Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                      N Offline
                      N Offline
                      Nagy Vilmos
                      wrote on last edited by
                      #10

                      Going from experience, validation is always easier than reversal. So I'd suggest validating step 3 before performing step 1. Alternatively, follow the BA who came up with this idea [it's always a BA] and give him a huge bitch slap back into the real world.


                      Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                      C G 2 Replies Last reply
                      0
                      • C Chris Meech

                        Isn't this what parallel processing was invented for? When the first event happens, you now must start two paths of execution. At some point in the future, you abort one of these paths depending upon whether event two has occurred. Sounds pretty simple to me and I'm sure there's already a pattern that's been developed to handle this. :)

                        Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

                        L Offline
                        L Offline
                        lewax00
                        wrote on last edited by
                        #11

                        I think he's going to need a non-deterministic CPU for this.

                        1 Reply Last reply
                        0
                        • L Lost User

                          I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

                          Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                          Z Offline
                          Z Offline
                          ZurdoDev
                          wrote on last edited by
                          #12

                          Sweet, I can finally use that time travel module I wrote next year.

                          There are only 10 types of people in the world, those who understand binary and those who don't.

                          M G 2 Replies Last reply
                          0
                          • L Lost User

                            I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

                            Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

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

                            Please, leave time travel to the professionals.

                            1 Reply Last reply
                            0
                            • L Lost User

                              Well that's the first question. Should I create a process to check the future, or one to undo the past. I think it'll have to be the future, because the other I don't know at which point I can guarantee the third thing isn't going to happen, so I don't know at which point to undo the past.

                              Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                              C Offline
                              C Offline
                              Chris Quinn
                              wrote on last edited by
                              #14

                              Checking is much easier than undoing. If you are not careful you could end up shooting your own grandad (or screwing your own grandma if you use the Robert Heinlein paradigm) - it is very difficult to unshoot or unscrew something (unless it's a lightbulb)

                              ==================================== Transvestites - Roberts in Disguise! ====================================

                              C 1 Reply Last reply
                              0
                              • L Lost User

                                I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

                                Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                                R Offline
                                R Offline
                                realJSOP
                                wrote on last edited by
                                #15

                                I hope you have a good supply of bacon and liquid nitrogen on hand, and stay as far away from CListCtrl as you possibly can.

                                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                -----
                                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                -----
                                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                1 Reply Last reply
                                0
                                • Z ZurdoDev

                                  Sweet, I can finally use that time travel module I wrote next year.

                                  There are only 10 types of people in the world, those who understand binary and those who don't.

                                  M Offline
                                  M Offline
                                  Manfred Rudolf Bihy
                                  wrote on last edited by
                                  #16

                                  ryanb31 wrote:

                                  Sweet, I can finally use that time travel module I wrote willan on-write next year.

                                  FTFY! You might want to brush up on The Grammar of Time Travel[^]. Cheers! :laugh:

                                  "I had the right to remain silent, but I didn't have the ability!"

                                  Ron White, Comedian

                                  1 Reply Last reply
                                  0
                                  • N Nagy Vilmos

                                    Going from experience, validation is always easier than reversal. So I'd suggest validating step 3 before performing step 1. Alternatively, follow the BA who came up with this idea [it's always a BA] and give him a huge bitch slap back into the real world.


                                    Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                    C Offline
                                    C Offline
                                    Colin Mullikin
                                    wrote on last edited by
                                    #17

                                    Nagy Vilmos wrote:

                                    follow the BA who came up with this idea ... and give him a huge bitch slap back into the real world.

                                    This made me laugh quite hard. :laugh: :laugh:

                                    The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                    1 Reply Last reply
                                    0
                                    • C Chris Quinn

                                      Checking is much easier than undoing. If you are not careful you could end up shooting your own grandad (or screwing your own grandma if you use the Robert Heinlein paradigm) - it is very difficult to unshoot or unscrew something (unless it's a lightbulb)

                                      ==================================== Transvestites - Roberts in Disguise! ====================================

                                      C Offline
                                      C Offline
                                      Colin Mullikin
                                      wrote on last edited by
                                      #18

                                      Chris Quinn wrote:

                                      it is very difficult to unshoot or unscrew something (unless it's a lightbulb)

                                      How do you unshoot a lightbulb...? :-\

                                      The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                      1 Reply Last reply
                                      0
                                      • D dan sh

                                        Seems like life of married men. Third thing is related to cuddling. Second might just never happen and in several days they get first and third. If you know what I mean.

                                        "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                                        J Offline
                                        J Offline
                                        Joe Woodbury
                                        wrote on last edited by
                                        #19

                                        Isn't it more like, "you need to do A and B to get C. I'll tell you what A is, but not B. Moreover, once you figure out B, I'll change it."

                                        D 1 Reply Last reply
                                        0
                                        • L Lost User

                                          I have just been asked to stop something happening, if something else does not happen after it. If the second thing does happen (actually it's a third thing) then the first thing does need to have happened. The times between the first and the third thing could be as long as several days. Gonna have to think about this one.

                                          Every man can tell how many goats or sheep he possesses, but not how many friends. Shed Petition[^]

                                          M Offline
                                          M Offline
                                          Michael Bergman
                                          wrote on last edited by
                                          #20

                                          ma brane jus splode.

                                          m.bergman

                                          For Bruce Schneier, quanta only have one state : afraid.

                                          To succeed in the world it is not enough to be stupid, you must also be well-mannered. -- Voltaire

                                          In most cases the only difference between disappointment and depression is your level of commitment. -- Marc Maron

                                          I am not a chatbot

                                          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