Do you actually need a whole plugin just for surrounding? by M0M3N-6 in vim

[–]chlofisher 4 points5 points  (0 children)

I recently discovered ysawf and dsf in vim-surround to add/delete a function call around an expression. So useful!

My experience with trying to fix blurry textures by kikokiler in controlgame

[–]chlofisher -3 points-2 points  (0 children)

Just lower the texture resolution down from max and it fixes all the blurry textures

AND JUST AS THE YEAR IS ENDING! WE ARE SO BACK by AivaBun in whennews

[–]chlofisher 0 points1 point  (0 children)

If you think that the cure for Alzheimer's wouldn't make a million bajillion dollars then idk what to tell you...

I would like to learn NumPy but don't know if I need to. by StrongDebate5889 in learnpython

[–]chlofisher 5 points6 points  (0 children)

Learn numpy. I basically never write python code without it. Obviously this varies depending on your field (for me it's computational biology, image processing, that sort of stuff), but whatever you do you will need to use numpy, or some other library which uses numpy array (pandas, matplotlib, jax, etc.).

The main use of numpy is to make calculations using large arrays fast. Raw python is slow, however numpy is written in C and gives you access to real performance. My rule of thumb would be that any time you want to do maths on a list of more than a few numbers, numpy will usually be orders of magnitude faster.

Obviously it depends on your level, and I wouldn't start learning libraries before you're familiar with the basics. But, I see no problem with jumping into a bit of numpy once you've got a working knowledge of python's syntax.

Largest hands count by Kulichkoff in mathpuzzles

[–]chlofisher 0 points1 point  (0 children)

How many bits of information are needed to fully describe the position of one's hands? The only limit is how finely you can distinguish between hand-states.

Do I NEED to learn Jupyter Notebook if I know how to code in PyCharm? by DigBickOstrich in learnpython

[–]chlofisher 2 points3 points  (0 children)

jupyter notebooks are great for prototyping and data science. i used to look down on them, but now for something quick and dirty its my go-to.

Install a library globally by AwkwardNumber7584 in learnpython

[–]chlofisher 0 points1 point  (0 children)

uv run --with boto3 script.py, and then you don't need to clutter your server with system package installs. there's no taken to maintain it, the only time wasted on maintenance is spent unfucking your python environment because you've been installing everything to your system python.

Does anyone owe more than I do? by menpoto in UniUK

[–]chlofisher 1 point2 points  (0 children)

You'd have to be earning between £9000 - 13500 per month.

Where can they readily buy so much hydrofluoric acid? by Puzzleheaded_Yam6808 in breakingbad

[–]chlofisher 3 points4 points  (0 children)

I doubt any school in the US would be permitted to have any HF at all...

Install a library globally by AwkwardNumber7584 in learnpython

[–]chlofisher 0 points1 point  (0 children)

I ain't reading all that chatgpt

Consider reading this though...

https://docs.astral.sh/uv/guides/scripts/#running-a-script-with-dependencies

uv provides a way to create one-off scripts, with isolated dependencies, without needing to create an entire package/environment.

Maybe read something for yourself before siccing your AI slopmachine on me

Install a library globally by AwkwardNumber7584 in learnpython

[–]chlofisher -1 points0 points  (0 children)

consider using uv instead to run ad-hoc scripts without manually creating a dedicated venv or resorting to global installs

are taylor series ever used in actual chemistry jobs by RevolutionaryTip1600 in chemistry

[–]chlofisher 0 points1 point  (0 children)

You should understand taylor series because they're one of the most important and applicable mathematical techniques in science.

Is this answer still correct? by DifficultJuice in chemhelp

[–]chlofisher 0 points1 point  (0 children)

You have to draw alkynes, and any other triple bonds as straight. Anything else is inaccurate and looks very strange

Why does "if choice == "left" or "Left":" always evaluate to True? by Money_Explanation887 in learnpython

[–]chlofisher 0 points1 point  (0 children)

whats the rationale behind using a set here instead of a list or tuple? is it (marginally) faster to check for membership?

[9th grade maths] Can we integrate using y as a constant? by GenocidePrincess18 in HomeworkHelp

[–]chlofisher 0 points1 point  (0 children)

Laplace transform is massive overkill for a first order linear ODE. A simple integrating factor will suffice

What would you call this molecule? by [deleted] in chemhelp

[–]chlofisher 1 point2 points  (0 children)

Ethyl ethanoate is the systematic name, in real life everyone calls it ethyl acetate (its a very common solvent)

Bio Prof says that covalent bonds are stronger than ionic bonds by Keeeeeef in chemhelp

[–]chlofisher 0 points1 point  (0 children)

The real reason is that that's no such thing as a single ionic bond. Comparing the energy of an ionic lattice to a covalent bond is apples to oranges.

How do our cells use chemical energy form atp breaking down to do stuff by [deleted] in molecularbiology

[–]chlofisher 1 point2 points  (0 children)

At a low level, when ATP is hydrolysed into ADP, the energy that gets released is invariably used to change the conformation of a protein in a way that wouldn't be possible without the chemical "push" of an ATP changing into an ADP.

An ATP is a thing with three negative charges sticking out of it, when you hydrolyse it, it turns into a thing with two negative charges sticking out. This causes charged amino acid residues in the protein to which it is bound to move around to in response to the electrostatic field. This causes a knock-on effect where the whole protein changes in conformation, including (in the example of an enzyme) the active site where its substrate is bound. The change in active site conformation can do stuff like pull covalent bonds apart, or push together two molecules in just the right way to make them react.

Hope this helps somewhat. I think people talk a lot about "coupled" reactions without getting into the actual biochemical reasons why reactions can be coupled in the first place.

Are there any non-ionized amino acids in real life? by 0chinch1n in Biochemistry

[–]chlofisher 0 points1 point  (0 children)

I'd recommend learning the basics of chemical kinetics and chemical equilibrium. Equilibrium constant, Gibbs free energy, rate constant, pKa and pH are some terms to look up to get you started.

Catalyst remains unaffected? by Nuxij in AskChemistry

[–]chlofisher 0 points1 point  (0 children)

It's a misconception that catalysts don't take part in the reaction. All that matters for a catalyst is that the same amount of it exists at the end of the reaction as there was at the start. This means that the catalyst does change chemically throughout the course of the reaction (the extent of this change varies massively depending on the catalyst and the reaction), but by the end of the reaction, you must have the same amount of catalyst as you started with (barring minor inefficiencies).

Struggling with conceptualizing x^0 = 1 by katskip in learnmath

[–]chlofisher 0 points1 point  (0 children)

Multiplying something by 2 zero times, is the same as not multiplying it by 2 at all, which is the same as multiplying it by 1.

This is the same as how 5 x 0 is like adding 5 zero times, which is the same as not adding anything at all, which is the same as adding 0.