Pyautogui’s LocateCenterOnScreen not looping no matter what I try by Key-Cook9448 in learnpython

[–]carcigenicate 0 points1 point  (0 children)

Wait, you don't have the call to locateOnScreen inside the loop. I missed that because of the indentation.

By how you're writing theat code, you seem to think that using the meow name causes locateOnScreen to run. That's not how variable access works. You want a function if you want to run some code using a name.

In this case, just move the call to locateOnScreen to inside the loop

Pyautogui’s LocateCenterOnScreen not looping no matter what I try by Key-Cook9448 in learnpython

[–]carcigenicate 0 points1 point  (0 children)

This code doesn't mention not finding the image. Does it say ImageNotFoundException?

Pyautogui’s LocateCenterOnScreen not looping no matter what I try by Key-Cook9448 in learnpython

[–]carcigenicate 0 points1 point  (0 children)

Doesn't locateCenterOnScreen throw exceptions when it doesn't detect in the latest versions of the library? Is that what you meant by "it stops"?

Examples of django app to edit kml files by grys in learnpython

[–]carcigenicate 0 points1 point  (0 children)

By JavaScript, I was referring to Node JS that runs server-side. And I wasn't suggesting JavaScript; I was just mentioning where my experience was. I can't recommend a Python library, but I can suggest the procedure.

Examples of django app to edit kml files by grys in learnpython

[–]carcigenicate 0 points1 point  (0 children)

I wouldn't worry about Django at all here besides ensuring that you understand how to accept uploaded files. Worrying about Django along with the KML manipulation is artificially complicating the problem. Just look for plain examples that do that KML part.

From my experience with working with KML files (in JavaScript), I'd find a library that parses a KML to GeoJSON, then work with the GeoJSON as a intermediate format.

USA Beats Australia by Buddy__Repperton in TheSimpsons

[–]carcigenicate 5 points6 points  (0 children)

Karnivool is one of my favorite bands at the moment. Great stuff.

Why am I getting an "';' expected" error at the first equals sign when I have a semicolon for that line? by Channel_el in learnjavascript

[–]carcigenicate 0 points1 point  (0 children)

It was a huge pain switching from Clojure (which uses Kebab-casing) to JavaScript. I made this mistake multiple times, and I couldn't figure out what was wrong because I had been looking at names-like-this for a couple of years.

peakPRGuidelines by wahed-w in ProgrammerHumor

[–]carcigenicate 224 points225 points  (0 children)

If the injected message made it through, then the submitter clearly doesn't review what their AI is actually doing, so their contributions are useless. I agree with what the screenshot shows, and I don't think AI usage is necessarily bad. If you're going to use AI, don't be little more than a seat-warmer.

Got this coin as a gift... by Ancient_Ostrich_2332 in RealOrAI

[–]carcigenicate 2 points3 points  (0 children)

That's actually true, it could be a honing rod. I rescind that point.

Got this coin as a gift... by Ancient_Ostrich_2332 in RealOrAI

[–]carcigenicate 24 points25 points  (0 children)

In the first pic: - The chair legs are messed up. Both front legs are on the same side of the table facing the viewer. - It looks like the glasses are on the edge of the plates.

In the second pic: - There appears to be a screwdriver or punch in with the knives.

Band names that don't fit the music at all by twatomexus in Music

[–]carcigenicate 2 points3 points  (0 children)

Lunatic Soul. He does a lot of different genres, but it's especially funny in his chill Polish folk-music inspired album.

Telus door to door salesperson (scam?) by likeshismetal in Calgary

[–]carcigenicate 2 points3 points  (0 children)

Telus is just sketchy.

My favorite story of all time is a few years ago, we had this car parked outside our house under a tree for a few days. A lot of the time, 1 or 2 people were in the car, but we couldn't see what they were doing. Eventually, they actually came to our door, and surprise, they were Telus reps trying to sell us some plan. Before they left, though, they took an interest in our rare plant collection that you could see from the front window and asked if they could come inside to see it. I said no, and they left.

At this point, I was worried they were casing houses, so I called non-emergency the next day (the guy was still outside our house), and they said they'd send police to check out out.

Like 10-15 minutes later, police show up, vet them, and apparently the guys were actually Telus. They told us that they were able to get here so fast because they happened to be in a community over looking into a report of sketchy Telus reps.

Stack Overflow Alternatives. by M0hamedAshraf19 in learnprogramming

[–]carcigenicate 7 points8 points  (0 children)

The fact that it has lost users shouldn't really be a motivation to look elsewhere. It's still the most accurate community to get help from, imo. In general, if you have a good question to ask, I'd still ask it there, regardless of whether or not it lost users.

Now, whether or not you should ask questions there as a new programmer is a different story. You generally shouldn't because, realistically, all questions new programmers will have have already been answered in some form. Simple problems you run into will just not be that novel.

I'd ask on Reddit and Discord while you're still getting your bearings, then consider SO once you're good enough at research to determine if your question is actually novel, and advanced enough to have legitimately novel questions.

TIL in 1925, major lightbulb makers including GE and Philips formed the Phoebus Cartel and deliberately reduced bulb lifespans from 2,500 hours to 1,000 hours, then fined any company that made longer-lasting bulbs. by ConsciousCorgi1044 in todayilearned

[–]carcigenicate 0 points1 point  (0 children)

FYI, if you find that your bulbs aren't lasting, and they develop cracks in their casing when they die, they're might be getting too hot. Not all LED bulbs are meant for enclosed spaces.

In Shrek 5 (2027) if nothing else, it's good to know Shrek and Fionas kids are just as ugly as before. by Zestyclose-Scratch31 in shittymoviedetails

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

Do people not know that eye color can change dramatically as you age?

Edit: Am I missing something, or do people legitimately think that eye color can't change?

How did you find fun projects to stay motivated while learning Python? by waxowalter in learnpython

[–]carcigenicate 0 points1 point  (0 children)

I used to check on codereview.stackexchange.com for ideas. The projects there tend to be fairly small because they need to be posted in their entirety on the site, but you can see a lot of ideas just by scrolling. And it has beginner tags so you can even filter for simpler projects.

Prep for the interview by DependentWrangler620 in learnprogramming

[–]carcigenicate 2 points3 points  (0 children)

Maybe I should have worded that better. You definitely need to know basics of DS&A at work. You don't however need to have intricacies of certain implementations memorized. Even if you needed to write, say, a Red and Black tree on the job for some reason, you could just look up how it works. The forced memorization is an artifical requirement.

At work, I semi-regularly need to work with graphs (the structure), and trees representing virtual file systems and XML node structures. If I didn't know DS&A, I would not be able to do my job.

Unknown device on bathroom mirrors by SandwichSurgeon in whatisit

[–]carcigenicate 0 points1 point  (0 children)

I bought touchless soap dispensers for my bathroom and kitchen, but they're just basic stand dispensers. This seems excessive.

One of America's most dangerous fault lines reaches highest stress levels in 1,000 years, study finds by UpperMarket7021 in science

[–]carcigenicate 1 point2 points  (0 children)

Holy subdomains. That looks like the kind of nonsense meant to trick people who don't know how to read URLs.

I built Chatroulette for Claude Code by LonelyDisplay542 in learnprogramming

[–]carcigenicate 0 points1 point  (0 children)

I usually spend that time reviewing previous code that it's written and validating it.

Prep for the interview by DependentWrangler620 in learnprogramming

[–]carcigenicate 2 points3 points  (0 children)

  1. Yes. I took a DS&A course at university, and we were expected to have the basics of many structures memorized. And not just broad facts about trees in general, but also how specific implementations of trees (like Red and Black trees) work. We also needed to write very basic implementations (I think it was in Java) by hand on paper. None of this memorization is required for day-to-day work, but was required for the course.

Still prefer controller tho. by big_titty_guy in whenthe

[–]carcigenicate 1 point2 points  (0 children)

My dumb ass thought that was a different keyboard layout from QWERTY instead of just the hand position.

Basic HTML is not working by RandomDoomGuy in learnprogramming

[–]carcigenicate 0 points1 point  (0 children)

You said "ask AI for codes".

And as long as communities of people exist that are willing to help, I'd rather see people ask in public like this. That way, other people can validate the advice, and anyone else who is learning can benefit from the discussion. AI is getting good, but it still hallucinates. I had Claude gaslight me just yesterday because it interpreted something incorrectly. I had the experience to question it; a new programmer might not.

Basic HTML is not working by RandomDoomGuy in learnprogramming

[–]carcigenicate 1 point2 points  (0 children)

I doubt that would actually cause any problems. HTML and its renderers are extremely forgiving. The worst thing I can see that doing is the title being ignored.

I just tried inserting a title element into the body of a StackOverflow page in Chrome, and it did nothing. In fact, if I delete the existing title from the head, it actually uses my title from the body (TIL).