What Are You Doing Right Now
-
@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 thestart-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.Change to version 6 documentation if you are using that.
-
@zachary715 I missed them all unfortunately and I hate that.
-
@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:
-
@zachary715 haha yeah!
-
Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get
-
@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... -
@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.
-
@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 !
-
@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!
-
@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.
-
@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.
-
@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!
-
@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.
-
@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 thestart-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.
-
Finally managed to get some coffee.
-
@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.
-
I'm just on a pot of drip.
-
@romo is just about done dealing with his car accident.
-
@scottalanmiller said in What Are You Doing Right Now:
@romo is just about done dealing with his car accident.
Yikes! Is he alright?
-
@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.
LOL, same.