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 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
                          • 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
                            Dave Kreskowiak
                            wrote on last edited by
                            #21

                            Wow! Did you tell the guy requesting this that you'll have to buy a real working Crystal Ball and a Flux Capacitor? Oh, and the computer will nee to be doing 88MPH too!

                            A guide to posting questions on CodeProject[^]
                            Dave Kreskowiak

                            1 Reply Last reply
                            0
                            • J Joe Woodbury

                              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 Offline
                              D Offline
                              dan sh
                              wrote on last edited by
                              #22

                              For a change, I, have a headache now.

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

                              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[^]

                                E Offline
                                E Offline
                                Ennis Ray Lynch Jr
                                wrote on last edited by
                                #23

                                Let me guess, this if for the EPA You must run a calibration every 23 hours unless, after 36 hours you have not run but if you do run on the 30th hour you must have done a calibration after the 28th hour but no sooner.

                                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

                                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[^]

                                  B Offline
                                  B Offline
                                  Brisingr Aerowing
                                  wrote on last edited by
                                  #24

                                  My brain just encountered a StackOverflowException while trying to comprehend that one. Was the one who came up with that stricken with hypocaffenia?

                                  I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. Stephen Hawking

                                  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[^]

                                    A Offline
                                    A Offline
                                    AspDotNetDev
                                    wrote on last edited by
                                    #25

                                    I always wondered how they implemented a double click.

                                    Thou mewling ill-breeding pignut!

                                    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

                                      G Offline
                                      G Offline
                                      Gary Wheeler
                                      wrote on last edited by
                                      #26

                                      If the BA is like the one's I've worked with, you're going to have to budget a workmen's comp claim for the slap.

                                      Software Zen: delete this;

                                      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.

                                        G Offline
                                        G Offline
                                        Gary Wheeler
                                        wrote on last edited by
                                        #27

                                        Don't you mean you can finally use that time travel module you're going to write last year?

                                        Software Zen: delete 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[^]

                                          M Offline
                                          M Offline
                                          Marc Clifton
                                          wrote on last edited by
                                          #28

                                          ChrisElston wrote:

                                          I have just been asked to stop something happening, if something else does not happen after it.

                                          yeah, that's what she said. :-O Marc

                                          Reverse Engineering Legacy Applications
                                          How To Think Like a Functional Programmer
                                          My Blog
                                          Computational Types in C# and F#

                                          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