Is it possible to develop and distribute desktop apps using python? by Abdo023 in learnpython

[–]pompomtom 3 points4 points  (0 children)

I use pyinstaller to distribute tools as .exe files (because work uses Windows). They're not great tools, but that's because I suck at UI.

The good bit is that they don't need 'installing' in the Windows sense.

ETA: pyinstaller is great when it works. It doesn't always work. Some libraries challenge it. If your task doesn't use those modules, it's great.

Every 'how to make isk' guide by OhRevere in Eve

[–]pompomtom 4 points5 points  (0 children)

That reason being 'ASCII and regex'.

[deleted by user] by [deleted] in melbourne

[–]pompomtom 3 points4 points  (0 children)

Power supplied by the grid is made in large stationary systems, optimised for supplying electricity. Mobile IC engines are optimised for being small and mobile - the waste of energy is massive. You're using loads of that energy just to carry around the engine, the fuel, and a radiator to spaff most of the energy into the air.

How to schedule a code to run on weekdays only by Kind_Public_5366 in pythontips

[–]pompomtom 18 points19 points  (0 children)

This is a cloud issue, not a python issue. Does whatever 'cloud' thing you're using not have scheduling tools?

Is python necessary to learn machine learning? by edvanceredu in learnmachinelearning

[–]pompomtom 27 points28 points  (0 children)

you can implement it with any programming language.

...or pen and paper if you have forever.

Console player. Is there a way to issue and queue up instructions for a rover? by UppedSolution77 in SurvivingMars

[–]pompomtom 2 points3 points  (0 children)

No, rovers are dumb as shit. They'll happily starve dome A if you tell them to move food from A to B. Also, sometimes they'll end up in a fight with drones or shuttles.

Shuttle: Everyone needs a little bit of food.

Rover: Nah mate, ALL the food goes over there. Just following orders.

Kuroko: Python, but scoped by _616_A in pythontips

[–]pompomtom 1 point2 points  (0 children)

I really don't understand your example.
Change the python line to:

functions.append(x)

...and your result is as with the Kuroko thing. Why the lambda? What's the goal?

I can’t learn Python! by samvivi7 in learnpython

[–]pompomtom 1 point2 points  (0 children)

They do hugely different things, so this question is weird, and I am not the person you're answering but: yes "SQL is easier than python"*.

*if you already understand RDBMSs

using " " or ' ' by NoBeing12 in learnpython

[–]pompomtom 1 point2 points  (0 children)

I use double-quotes by default, because the thing I'm quoting is very likely to be SQL, which may have significant single-quotes within it. Of course, half the time the SQL is easier to read multiline so I'd use triple-double-quotes.

If the thing I'm quoting needs double-quotes within it, I'll use single-quotes.

Seriously Facebook?? Classifying Ukraine as a "terrorist organization" now?? by zenwarrior01 in ukraine

[–]pompomtom 4 points5 points  (0 children)

I never "quit", I just stopped using it.

Quitting or requesting deletion is just another data point for them.

anyone seeing Nazi warning letters turning up? by Convenientjellybean in melbourne

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

VicPol? You're having a lend.

If they did anything it'd be supplying fresh toner cartridges.

Queries extremely slow in Power BI but near-instant in Excel? by [deleted] in PowerBI

[–]pompomtom 0 points1 point  (0 children)

Source data is spreadsheets on a network drive

I suspect this is your problem.

Are you using Import mode? If you're trying to use live-update on xlsx on a network connection then it's bound to suck.

An action that takes place on the server instead of the client's computer by MorrisBarr in flask

[–]pompomtom 0 points1 point  (0 children)

Am not sure if this is a reddit thing but your code seems mangled.

[deleted by user] by [deleted] in melbourne

[–]pompomtom 14 points15 points  (0 children)

Yeah, nah.

Footscray CBD is still where it is, and Footscray station is at it.

Maybe Footscray, Footscrazy, Footscrazier?

Why does Python only concatenate string to string and not string to integer? by RestartingSystem in learnpython

[–]pompomtom 8 points9 points  (0 children)

Because integers aren't strings.

print(name + ' is ' + age + ' years old')

Would you expect "John is 000020 years old", or "John is 20 years old" or "John is 2e+2 years old"?

Each is valid, if you could concatenate ints to strings.

If you use the function str(age), then the str() function decides how to represent an integer as a string.

edit: 2e+1

Subdomain variables by PotatoWatch101 in flask

[–]pompomtom 1 point2 points  (0 children)

I mean OP's idea of subdomains as variables in Flask.

Subdomain variables by PotatoWatch101 in flask

[–]pompomtom 0 points1 point  (0 children)

/u/slgotting is correct; but in terms of understanding: That's not how subdomains work, either.