ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    What Are You Doing Right Now

    Water Closet
    time waster
    285
    88.9k
    41.5m
    Loading More Posts
    • 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.
    • EddieJenningsE
      EddieJennings @Obsolesce
      last edited by

      @Obsolesce said in What Are You Doing Right Now:

      @dafyre said in What Are You Doing Right Now:

      @EddieJennings said in What Are You Doing Right Now:

      @Obsolesce said in What Are You Doing Right Now:

      @EddieJennings said in What Are You Doing Right Now:

      This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

      How so?

      I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

      What are you using it for?

      I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

      Man, it took me forever to figure out how to do something similar!

      You could just set the -scope of the variable to global...

      I've never used -scope when defining a variable. I'll have to try that out. 🙂

      ObsolesceO dafyreD 2 Replies Last reply Reply Quote 0
      • ObsolesceO
        Obsolesce @EddieJennings
        last edited by

        @EddieJennings said in What Are You Doing Right Now:

        @Obsolesce said in What Are You Doing Right Now:

        @dafyre said in What Are You Doing Right Now:

        @EddieJennings said in What Are You Doing Right Now:

        @Obsolesce said in What Are You Doing Right Now:

        @EddieJennings said in What Are You Doing Right Now:

        This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

        How so?

        I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

        What are you using it for?

        I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

        Man, it took me forever to figure out how to do something similar!

        You could just set the -scope of the variable to global...

        I've never used -scope when defining a variable. I'll have to try that out. 🙂

        https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-variable?view=powershell-5.1

        Change to version 6 documentation if you are using that.

        1 Reply Last reply Reply Quote 1
        • jmooreJ
          jmoore @zachary715
          last edited by

          @zachary715 I missed them all unfortunately and I hate that.

          zachary715Z 1 Reply Last reply Reply Quote 0
          • zachary715Z
            zachary715 @jmoore
            last edited by

            @jmoore said in What Are You Doing Right Now:

            @zachary715 I missed them all unfortunately and I hate that.

            Well I've got good news for you. There's 161 games left to be played :winking_face:

            jmooreJ 1 Reply Last reply Reply Quote 0
            • jmooreJ
              jmoore @zachary715
              last edited by

              @zachary715 haha yeah!

              1 Reply Last reply Reply Quote 0
              • LilAngL
                LilAng
                last edited by

                Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                WrCombsW 1 Reply Last reply Reply Quote 1
                • WrCombsW
                  WrCombs @LilAng
                  last edited by

                  @LilAng said in What Are You Doing Right Now:

                  Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                  Not me. I need to be as caffeinated i can get today !
                  No specific reason...

                  LilAngL 1 Reply Last reply Reply Quote 0
                  • LilAngL
                    LilAng @WrCombs
                    last edited by

                    @WrCombs said in What Are You Doing Right Now:

                    @LilAng said in What Are You Doing Right Now:

                    Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                    Not me. I need to be as caffeinated i can get today !
                    No specific reason...

                    haha I have been having trouble sleeping and i drink 3-5 cups a day. today it snowed so i'm cold and will drink more so i'll reduce caffeine.

                    WrCombsW scottalanmillerS 2 Replies Last reply Reply Quote 0
                    • WrCombsW
                      WrCombs @LilAng
                      last edited by

                      @LilAng said in What Are You Doing Right Now:

                      @WrCombs said in What Are You Doing Right Now:

                      @LilAng said in What Are You Doing Right Now:

                      Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                      Not me. I need to be as caffeinated i can get today !
                      No specific reason...

                      haha I have been having trouble sleeping and i drink 3-5 cups a day. today it snowed so i'm cold and will drink more so i'll reduce caffeine.

                      Fair enough !

                      1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        @Romo had a small car accident this morning, so we are extra busy around here. And we have four people to interview when he gets back!

                        1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller @LilAng
                          last edited by

                          @LilAng said in What Are You Doing Right Now:

                          @WrCombs said in What Are You Doing Right Now:

                          @LilAng said in What Are You Doing Right Now:

                          Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                          Not me. I need to be as caffeinated i can get today !
                          No specific reason...

                          haha I have been having trouble sleeping and i drink 3-5 cups a day. today it snowed so i'm cold and will drink more so i'll reduce caffeine.

                          3-5 cups a day will definitely cause sleeping issues.

                          JaredBuschJ 1 Reply Last reply Reply Quote 1
                          • JaredBuschJ
                            JaredBusch @scottalanmiller
                            last edited by

                            @scottalanmiller said in What Are You Doing Right Now:

                            @LilAng said in What Are You Doing Right Now:

                            @WrCombs said in What Are You Doing Right Now:

                            @LilAng said in What Are You Doing Right Now:

                            Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                            Not me. I need to be as caffeinated i can get today !
                            No specific reason...

                            haha I have been having trouble sleeping and i drink 3-5 cups a day. today it snowed so i'm cold and will drink more so i'll reduce caffeine.

                            3-5 cups a day will definitely cause sleeping issues.

                            I sleep just fine, and i drink way more than that. But my body has had so much caffeine on a daily basis for so long it just isn't funny.

                            I know it cannot be healthy.

                            LilAngL scottalanmillerS ObsolesceO 3 Replies Last reply Reply Quote 1
                            • LilAngL
                              LilAng @JaredBusch
                              last edited by

                              @JaredBusch said in What Are You Doing Right Now:

                              @scottalanmiller said in What Are You Doing Right Now:

                              @LilAng said in What Are You Doing Right Now:

                              @WrCombs said in What Are You Doing Right Now:

                              @LilAng said in What Are You Doing Right Now:

                              Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                              Not me. I need to be as caffeinated i can get today !
                              No specific reason...

                              haha I have been having trouble sleeping and i drink 3-5 cups a day. today it snowed so i'm cold and will drink more so i'll reduce caffeine.

                              3-5 cups a day will definitely cause sleeping issues.

                              I sleep just fine, and i drink way more than that. But my body has had so much caffeine on a daily basis for so long it just isn't funny.

                              I know it cannot be healthy.

                              your body has gotten adjusted to it. I had quit coffee, beer, and tea for 3 years! Now i'm a lightweight!

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @JaredBusch
                                last edited by

                                @JaredBusch said in What Are You Doing Right Now:

                                @scottalanmiller said in What Are You Doing Right Now:

                                @LilAng said in What Are You Doing Right Now:

                                @WrCombs said in What Are You Doing Right Now:

                                @LilAng said in What Are You Doing Right Now:

                                Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                                Not me. I need to be as caffeinated i can get today !
                                No specific reason...

                                haha I have been having trouble sleeping and i drink 3-5 cups a day. today it snowed so i'm cold and will drink more so i'll reduce caffeine.

                                3-5 cups a day will definitely cause sleeping issues.

                                I sleep just fine, and i drink way more than that. But my body has had so much caffeine on a daily basis for so long it just isn't funny.

                                I know it cannot be healthy.

                                I used to drink over the standard toxicity limit and felt okay. But long term, it takes a toll.

                                1 Reply Last reply Reply Quote 0
                                • dafyreD
                                  dafyre @EddieJennings
                                  last edited by

                                  @EddieJennings said in What Are You Doing Right Now:

                                  @Obsolesce said in What Are You Doing Right Now:

                                  @dafyre said in What Are You Doing Right Now:

                                  @EddieJennings said in What Are You Doing Right Now:

                                  @Obsolesce said in What Are You Doing Right Now:

                                  @EddieJennings said in What Are You Doing Right Now:

                                  This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

                                  How so?

                                  I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

                                  What are you using it for?

                                  I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

                                  Man, it took me forever to figure out how to do something similar!

                                  You could just set the -scope of the variable to global...

                                  I've never used -scope when defining a variable. I'll have to try that out. 🙂

                                  Me either, lol. Time to research that tip.

                                  ObsolesceO 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    Finally managed to get some coffee.

                                    dafyreD 1 Reply Last reply Reply Quote 1
                                    • dafyreD
                                      dafyre @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in What Are You Doing Right Now:

                                      Finally managed to get some coffee.

                                      I had a tripple shot of espresso and a Mocha frappucino from Starbucks this morning... I should be floating about six inches off the floor right now... but it didn't do a dang thing for me.

                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        I'm just on a pot of drip.

                                        1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller
                                          last edited by

                                          @romo is just about done dealing with his car accident.

                                          dafyreD 1 Reply Last reply Reply Quote 0
                                          • dafyreD
                                            dafyre @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in What Are You Doing Right Now:

                                            @romo is just about done dealing with his car accident.

                                            Yikes! Is he alright?

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3522
                                            • 3523
                                            • 3524
                                            • 3525
                                            • 3526
                                            • 4443
                                            • 4444
                                            • 3524 / 4444
                                            • First post
                                              Last post