on-internet

Machine to software communications [closed]

Communication error: the ZKTeco attendance machine with software, after adding the device state is red in colour: Enter image description here All communication parameters inserted correctly but the machine and the software is not establishing communication?

Join the discussion →

Making pong game, how do I accelerate the ball in Swift? [duplicate]

I am a grad student in an app development course. For my final project, I'm making a pong app. We are allowed to use the textbook and forums for debugging and advice, but we are not allowed to use AI, and I can't look up information we haven't learned. I'm not using SpriteKit, and the textbook is outdated and doesn't cover this. I'm sure this sounds ridiculous, but how do I make the ball move? Here's my code thus far, please note that I am a first year student: import SwiftUI struct ContentView: View { @State private var score1 = 0 @State private var score2 = 0 @State private var ball = CGPoin

Join the discussion →

Google Pushes Privacy Angle As Gemini-Powered Smartglasses Debut

Google is launching its first Gemini-powered smart glasses, with Samsung supplying the computing hardware. Given their built-in 12-megapixel camera, Google is emphasizing privacy protections, including a tamper-resistant recording light, automatic face redaction, and restrictions on real-time facial recognition and livestreaming. The company also promises not to use captured photos or videos for AI training or targeted advertising. Ars Technica reports: Google says the frames all weigh about 41 grams, which is not terrible but is definitely near the top for glasses generally. They will, natura

Join the discussion →

How do I iterate and count vowels in a string?

I am trying to count the vowels in a string ("hello world" should result in 3) and print the count. It gives: TypeError: 'int' object is not iterable on the for loop. How do I check each character and print count? How do I fix my for loop and if logic, what should the loop iterate over, why isn't checking vowels == ["a"] working, and where do I place print()? vowels = ["a" , "e" , "i" , "o" , "u"] count = 0 for vowels in count: if vowels == ["a"]: count += 1 elif vowels == ["e"]: count += 1 elif vowels == ["i"]: count += 1 elif vowels == ["o"]: count += 1 elif vowels == ["u"]: print(vowels)

Join the discussion →

How to correctly iterate and count vowels in a Python string?

I am trying to complete a Python assignment that involves counting the vowels in a given string (for example, `"hello world"` should result in `3`), and then printing the total count at the end. When I run my code, it gives a `TypeError: 'int' object is not iterable` on the `for` loop, and I am also confused about how to properly check each character and print the final `count`. Since I am a beginner, I am not looking for a one-liner solution (like a list comprehension). Instead, I want to understand how to fix my `for` loop and `if` logic step-by-step—specifically what the loop should iterate

Join the discussion →

I need help passing this flipped class to this button element [closed]

I cant seem to pass these tests on "freecodecamp.org". The main goal of the lab is to create a Flashcard-Quiz-App, using HTML, CSS and typeScript. Its supposed to be an app that displays and stores flashcard data that can be retrieved later. And so far on test #6 its asking me to have a button that when first clicked will pass a class named flipped to an element named flashcard. So far I made a addEventListener to set a currentCardIndex to that cards position. With an .add classList to add the flipped class and it seems to work better than .toggle, however I believe the bug or missing code, li

Join the discussion →

Create a Flashcard-Quiz-App, using HTML, CSS and typeScript

I cant seem to pass these tests on "freecodecamp.org" the main goal of the lab is to create a Flashcard-Quiz-App, using HTML, CSS and typeScript. Its supposed to be an app that displays and stores flashcard data that can be retrieved later. And so far on test #6 its asking me to have a button that when first clicked will pass a class named "flipped" to an element named flashcard. So far I made a addEventListener to set a currentCardIndex to that cards position. with an ".add" classList to add the flipped class and it seems to work better than .toggle, however I belive the bug or missing code,

Join the discussion →

Musicians: do you notice your ability to hear and understand music is different depending on the instrument you play?

submitted by schipelblorp to asklemmy 4 points | 0 comments I main on fingerstyle guitar, but I find my aural understanding on guitar feels impeded. Now I know music theory and how the fretboard works, but translating it is so damn laborious. I’ve played other instruments, and this is what I’ve noticed about their impact: Penny whistle. It’s mostly in one key. The root will always be the same fingering and the fifth will always be the same fingering. I think this helps with making associations with sound and scale degree, as opposed to more chromatic instruments played in different keys. [Also

Join the discussion →

Why do so many questions have negative scores lately? [closed]

Almost every question I come across lately seems to have a negative score. Is it just the questions I’m seeing, or has something changed in how people vote? I registered here 14 years ago, so I remember what the site used to be like. Downvotes were always part of it, but I don’t remember them feeling this widespread. Has the quality of questions dropped, have expectations become stricter, or are people simply less patient with each other now? I’d be interested to hear what others have noticed, especially those who have been around for a while. What’s behind this?

Join the discussion →
Older stories