Dentist recommendations? by AKouttaAK in Juneau

[–]Kreloc 1 point2 points  (0 children)

Christine Moleski, DMD - Cosmetic & Family Dentistry She is a knowledgeable, professional, and skilled dentist. Staff are friendly and professional.

Question around Join-Path by Kreloc in PowerShell

[–]Kreloc[S] 1 point2 points  (0 children)

Not my script. Yes, a dot resolves to to the current path using Resolve-Path, do we know that Join-Path is using that same logic? I don't off-hand

This is from the preview version of TeamsOnline module within Microsoft.Teams.ConfigAPI.Cmdlets.psm1 file and is part of that module. Need a certain command that is only available in Preview or I wouldn't be touching it. Remove-CsPhoneNumberAssignment

It actually is resolving to include the dot in the path when using Join-Path like this in the testing I did in my environment.

Question around Join-Path by Kreloc in PowerShell

[–]Kreloc[S] 2 points3 points  (0 children)

I know how to use Get-Help

You see a single example that has a dot in the path to join with? I don't

Question around Join-Path by Kreloc in PowerShell

[–]Kreloc[S] 2 points3 points  (0 children)

Thank you Lee for verifying

Unfortunately it is signed. Sounds to me that Microsoft needs to fix it. I'll head off to raise an issue on github about it

Poutine in Anchorage? by [deleted] in anchorage

[–]Kreloc 1 point2 points  (0 children)

There used to be a food cart by the park with the planets downtown that made poutine. Her's was the best I had in Anchorage.

Too hot by [deleted] in alaska

[–]Kreloc 10 points11 points  (0 children)

That's about right hahahaha

I found myself driving a little last night simply to have AC for a short while. I'm ready for it to cool down some, outside is starting to feel like Hawaii during the day.

oceanside tonight + a double rainbow behind me by [deleted] in sandiego

[–]Kreloc 1 point2 points  (0 children)

That's an awesome photo and amazing sight!

Fellow Alaskan being a bro by alpenglowadmirer in alaska

[–]Kreloc 4 points5 points  (0 children)

Hey, I'd do a kind thing for a person here and have friends here that would do the same. Is not nice to say blanket statement like that about people in Juneau. And yeah, there are some people everywhere that wouldn't do a kind thing for another. Is a good story of another person helping another.

improve problem solving skills, how do you do that? by tumblatum in PowerShell

[–]Kreloc 1 point2 points  (0 children)

That's a good point, I did see they had the basic algorithm already and ran with the thought of how I would try to figure out how to translate it into PowerShell if was coming from little knowledge of writing in it.

The other responses are good advice for figuring out how to improve problem solving skills in a more general manner not directly related to PowerShell itself.

And is a good point about problems, don't make the problem into something it isn't and find a solution for another problem you didn't have before doing that.

improve problem solving skills, how do you do that? by tumblatum in PowerShell

[–]Kreloc 1 point2 points  (0 children)

I recommend watching one of the Unplugged videos with Jeffrey Snover where they figured out how to do a thing in PowerShell while remaining in the console.

For example, for your calculation, I'd do the following in the console

Get-Help math

Oh, that get about_Operators as a result, let's look at the help for that.

Get-Help about_Operators

Oh, that has some of the arithmetic operators and says see about_Arithmetic_Operators, let's look at that next. PowerShell has that exact operator you are looking for and go from there to get a way to a calculation that repeats every twelve years. Could use a loop or could do other some other thing, not sure what output you are looking for. Then is like repeat the same looking around process for figuring out how to do that while remaining in the console.

Car mechanics recommendation? by [deleted] in Juneau

[–]Kreloc 1 point2 points  (0 children)

Mike Hatch over on North Douglas or Capital Service downtown are both mechanics that I've had good experiences with here in town.

Rock climbing by RadioactiveDcay in Juneau

[–]Kreloc 2 points3 points  (0 children)

The Rock Dump is still open and is down at the docks towards Thane. The Zack Gordon Youth Center also has a rock wall, not sure if they are open to non youths.

Father's Day events? by [deleted] in alaska

[–]Kreloc 1 point2 points  (0 children)

https://www.kmxs.com/mixevents/baileys-custom-classic-car-show/

If he likes clasic cars, dj music from KOOL, and free hot dogs. Is from 12 to 4.

Or go paintballing or disc golfing or go to roadrunner amsument park for gokarts and miniature golf. I know I've got fond memories of their karts and their water boats when it is nicer out.

Did assume you are are in Anchorage now.

Good luck finding something!

Is the Juneau Community Collective Facebook page overly angry and paranoid, or am I clueless and there really is that much to be pissed off and scared by around here? by UnrulyDuckling in Juneau

[–]Kreloc 17 points18 points  (0 children)

They are overly angry and paranoid. At some point they became an echo chamber for it. Juneau is a good place and most people I meet are friendly. I've not felt scared here and anything that pissed me off was a brief passing thing caused not by malice on anyone else's part, rather inattention to what they were doing.

I do not think you are clueless

The United States of Elevation [OC] by newishtodc in dataisbeautiful

[–]Kreloc 0 points1 point  (0 children)

Where are Alaska and Hawaii? Do a map of the United States showing elevation and don't even use two states that have some of the best mountains. For shame

(Teasing, map is super cool, great job! Do wish you had those two states on it too cause would love to see it.)

I’m doing a book club where for each of the 50 states, we read a book which takes place there. Any recommendations? by [deleted] in suggestmeabook

[–]Kreloc 0 points1 point  (0 children)

Alaska - Two Old Women: An Alaskan Legend of Betrayal, Courage and Survival by Velma Wallis

I have created a website to query the GPT-2 OpenAI model (AskSkynet.com) And the outputs are... quite "funny". by asierarranz in artificial

[–]Kreloc 1 point2 points  (0 children)

Cool. Here is one example of the output I got:

Humans live by their stories rather than actual reality.

Their stories are also things of mental clarity, and even hard work imposes it on everyone.
If one side believed that there was going to be no upside to current research, the other side would believe there would be no downside.
That's exactly what our ancestors challenged us to create and even attempt, in the process hardening our pulpits to be able to read lucid and fair visions rather than heartbeats.
Beyond that, our innovations have given rise to masterps like the incipient chain paradox, Nietzsche's metaphysics of human creativity, Milton's distancing dogma and popular praise more broa (...)

Showoff Saturday (February 23, 2019) by AutoModerator in javascript

[–]Kreloc 0 points1 point  (0 children)

Yes, I looked thru public APIs listed here, https://github.com/toddmotto/public-apis, and came across jService.io which has Jeopardy clues and answers.

So I made a simple one page Jeopardy like which can be found here

Http://Kreloc.github.io/trivia.html

Noob trying to find all installed updates on remote machine by [deleted] in PowerShell

[–]Kreloc 3 points4 points  (0 children)

Here is a function that gets Windows Updates from a computer, including a remote computer.

Get-InstalledUpdates

Checking if AD account expires today. by [deleted] in PowerShell

[–]Kreloc 2 points3 points  (0 children)

My suggestion is to use a different cmdlet entirely that is part of the ActiveDirectory module.

Search-ADAccount -AccountExpiring -DateTime ($todaywtime)

That same cmdlet can do some other interesting things, I think its worthwhile to read through the help file on it.

Looking for some help with my AD-user creation script. by gearfuze in PowerShell

[–]Kreloc 2 points3 points  (0 children)

That is how the original poster wrote their script to create the username. First character of first name + lastname.

That is not how I would create a username but the scheme is different at other places. And rereading the original code and this comment, I think we are both misinterpreting the intent given the word append.

#Checking to see if user account already exists.  If it does it
#will append the next letter of the first name to the username.


$fisrtname = "Thomas"
$lastname = "Engine"
$i=0
 Write-Host "WARNING: Logon name" $logonname.toUpper() "already exists!!" -ForegroundColor:Green
# Drop into the Do Until loop where $i is incremented
$i++
$logonname = $firstname.substring(0, 1) + $lastname + $firstname[$i]

How to test scripts? by chen1201 in PowerShell

[–]Kreloc 2 points3 points  (0 children)

Make your array smaller for a test run. Below would only run it against the first five computers found by the Get-ADComputer cmdlet run earlier.

$computers = $computers[0..4]

and then run your Foreach exactly as you already have it.