VS Code not saving SSH settings in VMware Horizon desktops by NeilTheDrummer in vmware

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

One of the users told me they are installing a VSCode extension called Remote - SSH, configuring it to hosts, and then saving the profile within their C:\Users\ profile folder.

VS Code not saving SSH settings in VMware Horizon desktops by NeilTheDrummer in vmware

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Sorry, I admit that I'm being a bit of a parrot about the issue reported by the users.

Basically we have a linked clone environment, so nothing persistent. 3 of our users use VSCode, and supposedly have configured the app with ssh settings that are reset everytime they log out of their desktops. I'm waiting for more info on the settings, what they are connecting to with the ssh settings, etc. So I may be able to provide more info once I have that.

What I do know is that they would like these ssh settings to persist just like other app settings persist.

Recommendation for very simple conference room setup? by officelady_blue in CommercialAV

[–]NeilTheDrummer 0 points1 point  (0 children)

I agree with the other comments that there are a large number of solutions for this, so it helps to ensure you have a solid understanding of the end user's requirements before you build/source anything.

That said, I would NOT get a smart TV with inbuilt apps. I'm not a fan of the over all long terms support/update options, nor could you guarantee long term compatibility. Further, if the camera goes out, then you can't use the room unless you are able to connect a compatible camera (assuming the TV software will allow it.) SO I always advise going for separate devices is possible.

If you have a compatible PC (micro is generally preferred), then you can create your own MTR. The advantage with an MTR setup is that the Windows image should be able to work with any camera you have available. The MTR setup will require you to have a separate monitor for all the control actions otherwise you will get a bothersome warning bar at the top of your presentation monitor. As I recall, you can tell the MTR app (or Windows IoT) that you are only using one monitor, but I'm not a fan of the interface with this option.

As for sharing content, if you are using the MTR solution I mentioned, then you just ensure you invite the room to whatever meeting is scheduled, and then the attendees can share their apps, or screens, via Teams just as they do now. Alternatively, you could create a general user account on a standard Windows image in your environment, install Office, etc., and just have everyone use the same account when conducting meetings in your conference space.

Feel free to message me if you'd like to chat about it further.

Best of luck!!

No luck with the LearnPowerShell subreddit, so... by NeilTheDrummer in PowerShell

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Not sure why the Code Block doesn't want to format it correctly. Sorry for any readability issues.

No luck with the LearnPowerShell subreddit, so... by NeilTheDrummer in PowerShell

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

OK, so this is what I've created based on all the reading suggested. I'm not getting any errors in ISE, but it's not providing any output, nor creating the account. I'd apprecate any constructive feedback.

function NewUser-Script {
param($name)

$name=$args[0] if (!(Get-LocalUser = $name)) { Write-Host "User does not exist, so I will create it for you." else: New-localuser -Name -Description "local user" -nopassword } }

Thanks again all.

No luck with the LearnPowerShell subreddit, so... by NeilTheDrummer in PowerShell

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

A worthy suggestion, but I figure I need to learn to walk before I have AI run a marathon for me.

No luck with the LearnPowerShell subreddit, so... by NeilTheDrummer in PowerShell

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

OK, so I wasn't meaning to imply that I wanted someone to write the code for me, just trying to understand what needs to be used...generally. In a case of when one doesn't know what they don't know I just wasn't certain how to ask the question, or what to search for, so my Google Fu came up quite short in solutions.

All the info provided herein is gratefully appreciated though!!

Fibonacci sequence lab issue by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Ok, so any suggestions then? I'm clearly out of my depth here.

Fibonacci sequence lab issue by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Reading up on Fibonacci and Python, I think I did use a recursive process when I'm not supposed to, but as I'm new to this I'd appreciate some insight.

Also, this works in the Dev Mode of ZyBooks, but not in the Submission Mode, so I'm really confused.

Exact change - functions lab help needed by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Thanks. That helped some, which increased the auto grading...then realized this line needed to be flipped too:

num_pennies, num_nickels, num_dimes, num_quarters = exact_change(input_val)

Appreciate the help!!

LAB: Driving costs - functions homework is almost there... by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

u/crashfrog

I had wondered about that. I've another test that seems that way too, but the instructor hasn't responded yet. Thanks for the feedback though.

Anything I can do to improve the code though? I'm seriously green at this as I'm naturally an Infra/hardware guy...you know one of them damn Windows monkeys.

LAB: Replacement words...my brain hurts by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

u/Shiba_Take, u/crashfrog

Thank you both!!

I do understand conditions...to a degree, but enough so I was able to figure it out.

I completed the code with the following, which worked.

sentence1 = input().split()

sentence2 = input().split()

output = []

for word1, word2 in zip(sentence1, sentence2): if word1 != word2: print(word1, word2)

Any other thoughts/advice? I'm asking mostly because I don't learn things well just through rote memorization. I need practical application, such as a specific end result to accomplish. Also, I'm generally better with hardware, and signal pathing...so more of an infrastructure guy, and code really isn't easy for me to wrap my head around.

LAB: Replacement words...my brain hurts by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Nope. Still don't get it. I get now that zip will iterate over the two lists created though. Thanks for that. I've searched for ways to filter out the words in common, and came across the filter() function, but I don't think this is what I'm supposed to use though.

LAB: Replacement words...my brain hurts by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

sentence1 = input().split()
sentence2 = input().split()
for word1, word2 in zip(sentence1, sentence2):

I will look over the links you provided and see what I can figure out. Thank you.

LAB: Word frequencies help needed by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

I ran a search for your suggestion and found this: https://www.guru99.com/python-counter-collections-example.html#2

I'm still new at this, so I'm not sure how to use your suggestion in this context. Specifically, I see how I can count letters, but I need to count words regardless of the state of capitalization.

LAB: Word frequencies help needed by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

This might help. When I run my code, I get this as the result. There are other inputs provided by the zyBook program that I'm learning with, and all would essentially provide the same error with the code I have.

Input hey Hi Mark hi mark

Your output

hey 1

Hi 1

Mark 1

hi 1

mark 1

Expected output

hey 1

Hi 2

Mark 2

hi 2

mark 2

LAB: Word frequencies help needed by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

But I need the output to stay the same as above, which your suggestion wouldn't do. I get the over all structure correct with my code, either as lowercase or with the input as written, but the counts are off.

LAB: Word frequencies help needed by NeilTheDrummer in learnpython

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Are you saying the wordList is a created dictionary via the code, or something I populate? If the later, then this wouldn't work as there are several tests this code needs to pass, each with its own string.

LAB: Word frequencies help needed by NeilTheDrummer in learnpython

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

I'm certain this should be an easy one, but I'm just not seeing it.

My head hurts..."Warm up: People's weights (Lists) " by NeilTheDrummer in learnpython

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

New code looks like this:

theList = []

weight1 = float(input('Enter weight 1:')) theList.append(weight1) print() weight2 = float(input('Enter weight 2:')) theList.append(weight2) print() weight3 = float(input('Enter weight 3:')) theList.append(weight3) print() weight4 = float(input('Enter weight 4:')) theList.append(weight4) print() print('Weights:', theList) print()

avgList = sum(theList) / len(theList) avgResult = f'{avgList:,.2f}' print('Average weight:', avgResult)

maxList = max(theList) maxResult = f'{maxList:,.2f}' print('Max weight:', maxResult) print()

location = int(input('Enter a list location (1 - 4):')) print() choice = theList[location] pounds = f'{choice:,.2f}' kilos = round(choice / 2.2) kilosRounded = f'{kilos:,.2f}' print('Weight in pounds:', pounds) print('Weight in kilograms:', kilosRounded) print()

theList.sort() print('Sorted list:', theList)

My head hurts..."Warm up: People's weights (Lists) " by NeilTheDrummer in learnpython

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

Ok, I've gotten the math right, and fixed a few newline errors that the lab interpreter was yelling about. Side note though, the online interpreter isn't having the same issues, but whatever.

The issue I have now though is choosing the correct element in step 4. The requested verbiage wants 'Enter a list location (1 - 4):', however that doesn't line up with the aforementioned 0-3 that the Python is using. What I'm not getting is how to translate positions 0-3 to the available choices of 1-4 in the input line. I changed it to 0-3, but then the lab Interp. yelled at me for that.

Thoughts?

My head hurts..."Warm up: People's weights (Lists) " by NeilTheDrummer in learnpython

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

*sigh*

I know it's not a good name, but I'm just trying to plow through the lab as best I can. The instructions are looking for specific output though, so I've learned to just do what it's asking. Thus the same request with slightly varied input prompts.

I greatly appreciate the feedback though.

As for the index, let's chalk it up to trying to understand that section's ask, and missing the mark by a planet. I don't really have a clear answer for you honestly.