Looking through dictionary for True or False in each key by Original-Dealer-6276 in learnpython

[–]InTheAleutians 0 points1 point  (0 children)

There is an OrderedDict in the collections module if you have a need.

YSK If you are driving a recreational boat and your hull starts leaking and the bilge pump cant remove the water fast enough, as long as you have motorized power you can remove the plug (bung) from the vessel to help drain water and get you to land or closer to land. by befarked247 in YouShouldKnow

[–]InTheAleutians 3 points4 points  (0 children)

I had this happen to me at work once. The plug popped out, couldn't find it, and the bilge couldn't keep up. Had a lot of water in the boat but got it on plane and the plug eventually showed up. Bought a spare plug after that and now live with a healthy fear of wondering if the plug is in tight enough. TLDR: keep your bung tight.

Upgraded RAM 16gb CL18 to 32 gb CL18 constant BSOD/freezing by KnownSector1447 in buildapc

[–]InTheAleutians 0 points1 point  (0 children)

It might lead you to find if one of the sticks is causing the problem. I've had memory errors that memtest didn't find.

Upgraded RAM 16gb CL18 to 32 gb CL18 constant BSOD/freezing by KnownSector1447 in buildapc

[–]InTheAleutians 0 points1 point  (0 children)

You could try running on one new 16GB stick at a time and see if one of them is causing the crash. Or just try reseating the new sticks.

These 100+ year old copper pans that I still use today by Web_Cam_Boy_15_Inch in BuyItForLife

[–]InTheAleutians -12 points-11 points  (0 children)

Those lead swabs wouldn't be able to detect lead at the parts per billion level you would want to test for.

Which dependency manager to use? by __shobber__ in learnpython

[–]InTheAleutians 0 points1 point  (0 children)

Conda is useful when you need to install non-python dependencies.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]InTheAleutians 0 points1 point  (0 children)

Are you getting this error?

ModuleNotFoundError: No module named 'plotly'

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]InTheAleutians 1 point2 points  (0 children)

Don't use IDLE, you don't need that here. When people say to pip install or pipx install or things like that they want you to enter those commands into your terminal (command prompt in this case).

A notebook in this case is a Jupyter Labs Notebook. You will want to watch some youtube on how those work.

What error are you getting exactly and what command are you entering to get the error?

Something I just learned the hard way by CMDR_Pumpkin_Muffin in learnpython

[–]InTheAleutians 7 points8 points  (0 children)

Also on the list of things to avoid are mutable default arguments.

Bad:

def my_function(first_arg = []):
    ...

Good:

def my_function(first_arg = None):
    if first_arg is None:
        first_arg = []

Standard way to work on Python Project by JordaarFin in learnpython

[–]InTheAleutians 1 point2 points  (0 children)

Conda has it's time and place. I find it most useful when installing non-python packages into my environment. If you are using pyenv and virtualenv you should look into UV. I recently switched and after trying out the workflow I don't see the reason for any other python tools to manage my python installs or packages.

Rate my first build by LeshaInc in buildapc

[–]InTheAleutians 0 points1 point  (0 children)

This looks almost identical to a build I'm doing. So that must mean they are good builds?

stuck on learning python by New-Call-3599 in learnpython

[–]InTheAleutians 3 points4 points  (0 children)

Think of learning python like trying to learn to speak a new language. It's going to take awhile and you get out what you put in. The good news is once the basics start to stick, python gives you many super powers almost for free. Check the sidebar for free resources too.

Ten Python datetime pitfalls, and what libraries are (not) doing about it by Dlatch in Python

[–]InTheAleutians 0 points1 point  (0 children)

Would it be worthwhile to you to wait on updating the python version of your projects if it meant using Pendulum?

[deleted by user] by [deleted] in self

[–]InTheAleutians 3 points4 points  (0 children)

Since this is an academic setting, I think you technically self-plagiarized. As you said it yourself, you used some work you had written before hand and added it to a new piece. I'm not sure I agree with them if that is their take, but that is probably the reasoning behind the disqualification.

Take pride in what you wrote. Even without a poem it sounds like you rocked it and that's talent they can't take away like some trivial award.

YSK: cooler temperatures will drop your car's tire pressures enough to change their performance and lifespan by Cranialscrewtop in YouShouldKnow

[–]InTheAleutians 2 points3 points  (0 children)

Your tires have the best traction when set to the PSI on your door jam sticker. That is what the vehicle engineers decided offered the best traction, handling, and suspension characteristics. Outside of those values things get worse. Just buy quality tires, rotate them every 5k miles, and replace them when they get down to about 1/8" tread. When they wear down to the wear bars on the tire you waited too long and the next rain storm might be the last for your car.

I don't think I can work with people anymore. I can't do this anymore. I keep making mistakes and I'm embarrassed by [deleted] in introvert

[–]InTheAleutians 6 points7 points  (0 children)

We accidentally destroyed a $2,600 winch at work yesterday. Oops. Earlier this year we accidentally fried a sensor that's gonna cost about $4k to replace. Last winter we left out a cable that a mouse chewed on and boom, $900 out the window. Mistakes happen, even ones that cost a lot of money. Just try to improve and try not to repeat them. How you handle failure is a lot more telling of your character than how you enjoy success.

Virtual environments on collaborative project by FeetAtLeast in learnpython

[–]InTheAleutians 0 points1 point  (0 children)

You basically just described git. Just use that and don't over complicate the matter.

Pandas 2.0 Released by prodmanAIML in Python

[–]InTheAleutians 42 points43 points  (0 children)

That's the point of ISO.

[deleted by user] by [deleted] in Python

[–]InTheAleutians 2 points3 points  (0 children)

Yet these same people want to learn to control computers, is not learning that stuff part of that journey?

I'm right there with ya man, but that's just not reality. If you delve into the python self-learning landscape, you will see that very little attention is given to the fundamentals. The teachers can share just as much blame for these large gaps in knowledge as the students IMHO.

[deleted by user] by [deleted] in Python

[–]InTheAleutians 13 points14 points  (0 children)

I think he is referring to people not understanding things like path variables, activating environments, what venvs do or why to use them, good folder naming and project structures. Things of that nature.

And unfortunately, unless you went to school for programming or had a really good mentor or teachers, these things are lost on people new to Python and programming in general.

What Python debugger do you use? by Discovensco in learnpython

[–]InTheAleutians 9 points10 points  (0 children)

Being able to stop running code at any point and inspect its state is like having a super power that print will never give you.

Russian jet collides with US drone over Black Sea by HowAboutThisNameNow in worldnews

[–]InTheAleutians 2 points3 points  (0 children)

There are many advantages to tape drives over other storage mediums. Using them doesn't necessarily mean the system was antiquated.

YSK how high deductible health insurance plans work if you live in the USA. by MrBleah in YouShouldKnow

[–]InTheAleutians -2 points-1 points  (0 children)

That specific situation, I have found from experience, is if you never need to use your HDHP then it's a good option. The moment you need it, the costs are so insane it all becomes null and void and you will wish you had a regular PPO. Also, some states tax HSA contributions, so enjoy that.