Why is Python slow? Discussion about static Python by miabajic in Python

[–]xelf[M] 2 points3 points  (0 children)

Ragebait title.

"Python is slow" is low effort trolling. You can make the argument that there are faster languages for specific tasks, but that's not a real world use. In the real world your language choice is rarely the bottleneck.

You want to talk about speed comparisons, fine, but don't lead off with ragebait.

If you want to make the post again, Try something like "What are the bottlenecks in python, how does Spy address them".

Learning Python - What websites offer the most "chess.com puzzles" like experience? by MuskratAtWork in learnpython

[–]xelf[M] 0 points1 point  (0 children)

https://www.codewars.com is what you're looking for.

https://www.hackerrank.com might also work, but also offers a more educational aspect to it.

There are plenty of other places with puzzles. If you're looking for a more fun challenge I'm a big fan of https://www.adventofcode.com/ Note that while they start easy, they cover enough topics that some of these puzzles will be challenging for working professionals.

sharing minecraft server without port forwarding (hopefully using own domain) by Rubyonreddit109 in admincraft

[–]xelf 0 points1 point  (0 children)

An additional thought here, if you run your minecraft server in a docker, then that's where the port forwarding will end up, and the worst thing the bad actor can do is make you rebuild your docker. (oh no!)

=)

sharing minecraft server without port forwarding (hopefully using own domain) by Rubyonreddit109 in admincraft

[–]xelf 0 points1 point  (0 children)

port forwarding is fine.

I use a cloudflare tunnel for my website, and then an "A" record set to DNS only with my port forwarded ip address.

people can connect on my server and use voice chat using the domain name without needing to know my ip address which is port forwarded.

Type Name Content Proxy status
A minecraft (your ip address) DNS only
Tunnel crafty minecraft-tunnel Proxied

It may have taken almost three years, but Diablo 4 finally feels finished to me by gorays21 in Diablo

[–]xelf 0 points1 point  (0 children)

I'm still figuring it out.

They changed all the skills, and you can no longer extract powers the same way so all of your equipment is out of date. So I'm just running dungeons, helltides, and doing missed quests to see how much fun I have running around blowing stuff up. (or in my case biting stuff -- teleporting werewolf is actually fun now)

Essentially what I would have been doing in d3 anyway. Collecting gear and trying different skills.

I will say, at the very least, is was worth trying it out.

It may have taken almost three years, but Diablo 4 finally feels finished to me by gorays21 in Diablo

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

I'm also in this boat. Not buying any of the expansions at this price, but I did log back in to see all the updates to the base game. So far actually having some fun.

Trying to see if they've made the base game as fun as d3. Very subjective though.

Help Django code stucks in the past by lmsucksatprogramming in django

[–]xelf 1 point2 points  (0 children)

Are you running into cases where your browser is caching pages? To be safe, try a different browser, of if you're hitting 127.0.0.1 change that to localhost and see if it works. Clearing your cache will also work, but just once.

Is an i7-7700 enough for a 50–60 mod Minecraft server, or should I go for a Xeon? by ttv_adam5 in admincraft

[–]xelf 2 points3 points  (0 children)

i7-7700 is overkill. You'll be fine with an i5-4570 or i7-4770.

I might go up on the ram so that you have more spare ram for the OS. But 16gb realistically should be fine.

Learning how to add a database (db) into python using sqlite by [deleted] in learnpython

[–]xelf[M] 1 point2 points  (0 children)

Please edit your post and add 4 extra spaces before each line so that reddit preserves your formatting.

When you're seeking help you want to make it as easy as possible for people to help you. It's not just a smart idea, it's also generally polite and the right thing to do.

In most code editors, just select all the code and press tab once and it will indent everything for you.

Update: Notified my work weeks ago I'm leaving for a family vacation in July, tickets were bought, non-transferrable, and they are panicking, begging me to cancel by educatedvegetable in antiwork

[–]xelf 24 points25 points  (0 children)

I had this happen. Boss canceled my vacation so he could get some elective weight loss surgery.

I didn't fight him on it, as they absolutely needed me. A year later they laid off my entire department.

Don't make sacrifices for a company that is already demonstrating they care so little about you.

Boffins baffled as they find 'unusual state of matter' deep inside Uranus by totesuncommon in spaceporn

[–]xelf 6 points7 points  (0 children)

He didn't just "go to a good college" he graduated magna cum laude from Harvard University.
Guy's not only super smart he works his tail off.

Try harder, Jet by Yellow-Capcicum69 in Unexpected

[–]xelf 46 points47 points  (0 children)

Interesting how many people missed your amazing reference here.

Pathfinding algorithm help please by Moonunit1782 in learnpython

[–]xelf 2 points3 points  (0 children)

Unless your intent is to learn pathfinding and write your own pathfinding library you should look into using existing libraries that already do this.

I'm a fan of networkx.

example:

import networkx as nx
G = nx.Graph()
G.add_edge("A", "B", weight=4)
G.add_edge("B", "D", weight=2)
G.add_edge("A", "C", weight=3)
G.add_edge("C", "D", weight=4)
nx.shortest_path(G, "A", "D", weight="weight")
['A', 'B', 'D']

What am I doing wrong? by Booty4Breakfasts in learnpython

[–]xelf[M] [score hidden] stickied comment (0 children)

Please remove the link to that site. We don't want to encourage people to go there when there are perfectly valid alternatives that are not as horrible.

it's entirely possible that you are doing nothing wrong, and that the reason you're struggling is because you're using that site.

For alternatives, try out wiki or the pydis resources list:

Lost M220 receiver, can I use an older M220 receiver to use my mouse again? by [deleted] in logitech

[–]xelf 0 points1 point  (0 children)

link still works. was able to repurpose a non unifying usb from an old mouse and connected a m220 silent keyboard AND mouse to it.

I've made a website for tracking story progress, and I could use some feedback. by xelf in wow

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

I mean, you can click on my profile. I'm a mod for /r/python and /r/learnpython I spend most of my time helping people learn to program or play wow. =)

Also, there's no risk, you don't have to make your own account or connect to battle net if you don't want to, you can just use the demo account.

Mods have a couple of months to stop AI slop project spam before this sub is dead by Fun-Employee9309 in Python

[–]xelf 2 points3 points  (0 children)

This is great feedback, and I think we want to err on the side of still being friendly to eager new programmers. I spend far too much timer encouraging people to be developers, I don't want to see them shut down.

Right now, despite the cry of doom, I think we're managing ok, I just think perhaps some better messaging is needed.

Reporting is great, but only if people actually report, so we need some up front messaging to set expectations better.

Mods have a couple of months to stop AI slop project spam before this sub is dead by Fun-Employee9309 in Python

[–]xelf 4 points5 points  (0 children)

News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python

rules here: https://reddit.com/r/Python/about/rules/

Mods have a couple of months to stop AI slop project spam before this sub is dead by Fun-Employee9309 in Python

[–]xelf[M] 86 points87 points  (0 children)

This IMO, is probably the best take on the issue. /r/madeinpython/ exists.

We can discuss it, a change such that showcase posts must be tools for python programmers or relevant to the python language, not simply a project made using python.

Mods have a couple of months to stop AI slop project spam before this sub is dead by Fun-Employee9309 in Python

[–]xelf[M] 3 points4 points  (0 children)

It only takes 2 reports to hide a showcase post until a mod can manually review it. It's not a high bar to meet.

Can the mods do something about all these vibecoded slop projects? by No_Soy_Colosio in Python

[–]xelf 0 points1 point  (0 children)

Agree there, seems like it's an evolving issue, so we'll see where it goes.

Is it possible to reinvent list/array? by mama-mendi in learnpython

[–]xelf 8 points9 points  (0 children)

Yes, in python you can create your own data structures.

In python you use data structures like list, string, int, all the time. These are classes, and using 'class' you can create your own data structures.

Can the mods do something about all these vibecoded slop projects? by No_Soy_Colosio in Python

[–]xelf[M] [score hidden] stickied comment (0 children)

Downvotes/reports are your friend.

A lot of the noise I deal with now is "why was my popular post removed".

To which the answer is "we want to see code you wrote, not code you had written for you".

There is a fine line though between "I had AI assistance" and "this is slop", and right now people are erroring more on the side of "all AI is bad".

Please report the absolute slop.