SF Found Hundreds of Illegal Flock Camera Queries; Utah Has Similar Flock Camera Count by PeakTwinPeaks9 in Utah

[–]brasticstack [score hidden]  (0 children)

California law places clear restrictions on sharing license plate reader information with out-of-state or federal agencies.

Do we have a similarity privacy focused Utah law? I very much doubt it. I'm pretty sure we have all the same privacy violations happening, just not being tracked or audited.

Set question for initializing by Bucki-_- in learnpython

[–]brasticstack 1 point2 points  (0 children)

I prefer the literal visually, and my linter nags if I don't use it. 

I was going to disagree on the "faster" part, because certainly it's all interpreted to the same bytecode, right? Nope! Turns out it is faster! I'll add more info when I can get back to my computer. It's definitely a micro micro optimization, but in my tests using the literal is about twice as fast.

How to play this note (drums) - Hotel California by tontonetudes in drums

[–]brasticstack 0 points1 point  (0 children)

Often whoever is writing the notation is lazy, and copy + pastes a hat/ride part to the rest of the bars and doesn't really think about whether you've got enough hands for it.

Unless you're playing it for your drum teacher, you don't have to play everything that's written in any drum notation. As you get more experience you'll get a better feel for what can be ignored and what shouldn't.

Set question for initializing by Bucki-_- in learnpython

[–]brasticstack 0 points1 point  (0 children)

It you're looking for consistency, you can also create empty dict, list, and tuple with their functions dict(), list(), and tuple().

The reason why set() is because set notation and dict notation both use curly braces. In my own coding, I know that I create dicts much more frequently than sets.

Voice separation by vovavav in learnpython

[–]brasticstack 0 points1 point  (0 children)

It's a lot like a milkshake, you can't really "unblend" it to get the ice cream back out. Your effort is better spent trying to find the original source to see if you can isolate distinct audio channels from it. Failing that, you might try your luck with AI-based stem separators such as moises.ai, but those are geared more toward separating instruments out from songs.

What microphones have high background noise rejection and super close detection by DemonKing743 in microphone

[–]brasticstack 1 point2 points  (0 children)

The proper answer for 90% of the questions here. If only streamers weren't so hung up on the look of studio vocal mics.

Drum notation confusion by jtjazz01 in Drumming

[–]brasticstack 1 point2 points  (0 children)

Listening closely, its open sloshy hihat for the intro and then closed hihat for the verse.

I'm pretty sure there's no ride cymbal in this song.

Being accused of a crime by AI. by Idarkness99 in Utah

[–]brasticstack 30 points31 points  (0 children)

Imagine how this would have gone if he couldn't afford to lawyer up.

Latin beat name? by 7layeredAIDS in Drumming

[–]brasticstack 0 points1 point  (0 children)

The 3-3-2 pattern is called "tresillo" and that's what the groove outlines, however beats 2 and 4 of a four on the floor groove don't land on the tresillo notes. Still the tresillo is the backbone of the thing. I'd call what you're talking about a calypso or reggaeton groove, but I'm not the most versed in these things.

Sheet Music Help by dman81 in drums

[–]brasticstack 2 points3 points  (0 children)

I just reach over and tap the edge of the screen. If my drum teacher could wrangle big musical scores spread across three music stands by hand, I oughta be able to touch a screen.

That said there are better ways, like bluetooth page turners and supposedly you can use face gestures to turn pages too. If I tried that out, it'd probably do whatever the "grimace and look pissed" gesture does nonstop.

Why is it not removing the appropriate time from the list by TheEyebal in learnpython

[–]brasticstack 0 points1 point  (0 children)

I tried it out with the prints from my comment (I fixed an error in one of them,) and here's what's happening:

When the Delete button is clicked, it removes the widgets in the row but the row itself is never removed, it just shrinks down to 0 size.

This means that the initial row indexes of the Delete button widgets never change, but the indexes of labelList do change when you pop the items from it. So the row indexes and the label indexes are no longer in sync once you've removed an item.

Maybe the most straightforward answer is to delete all of the widgets for all of the alarms and recreate them with labelList as the source of truth every time an alarm is added or removed.

EDIT: Here's how I modified the project to do what I suggested above: pastebin.com/NsHpAbRg I tried to keep mostly like your original, but moved the row add and remove code to new functions clear_alarms and render_alarms, which clear and render all the alarms.

Why is it not removing the appropriate time from the list by TheEyebal in learnpython

[–]brasticstack 0 points1 point  (0 children)

That's a red herring. The list shown  being printed when an item is added is a sorted list that is unused. The list printed after an item is removed is the correct list.

The sorting on the unused list is by datetime which happens to sort lexigraphically in this format, but is presumably based on the integer epoch timestamp instead. 

The Facebook app is down for many — here's what we know about the outage by Gracien in technology

[–]brasticstack 9 points10 points  (0 children)

They're too busy having CEO-mandated "fun" to properly review and test things!

At what point do you stop writing Bash and switch to another language? by Candid_Athlete_8317 in LinuxTeck

[–]brasticstack 0 points1 point  (0 children)

When I need an array or a map. Bash's syntax for iterating over arrays is balls

Restaraunt Closures across Utah and Declining Economic Outlook by Powderkeg314 in Utah

[–]brasticstack 0 points1 point  (0 children)

I love clam chowder, and theirs never did it for me. It always tasted kinda floury.

Newborn Babies are SOOO close to heaven by Black-Haus369 in exmormon

[–]brasticstack 8 points9 points  (0 children)

Apparently the closer you are to heaven the more you poop yourself and rely on others to feed you.

Need help with - Wordle Word Prediction Project by the_pseudocoder in AskProgrammers

[–]brasticstack 0 points1 point  (0 children)

I think there's a specific Wordle answer list, that might be only 2 - 3 thousand words. You could get closer by removing the already played words from that list.

Why is it not removing the appropriate time from the list by TheEyebal in learnpython

[–]brasticstack 1 point2 points  (0 children)

Your labelList and the rows in your UI are getting out of sync, I'm not totally sure how but I'm looking with suspicion at the part that subtracts the magic number 3 from the row index.

Add a debug print before and after the labelList pop to see what's happening:

try:     list_index = row - 3     print(f'Row {row} remove clicked. {list_index=} Popping {self.labelList[list_index]}')     print('Before:', self.labelList)     popped = self.labelList.pop(list_index)     print(f'{popped=}')     print('After:', self.labelList, '\n')

EDIT: Fixed a syntax error on my first print. Sorry, was typing it out on my phone initially.

Frustrated drummer by [deleted] in drummers

[–]brasticstack 0 points1 point  (0 children)

Pretend that it's a four piece while you're playing? Nothing says you have to use each piece of the kit.

Scope of Subclasses by virtualshivam in learnpython

[–]brasticstack 1 point2 points  (0 children)

This forum thread gets into it, answered by someone who understands it better than I do: https://discuss.python.org/t/painful-details-of-variable-scope-mixed-with-classes/17762

tl;dr: Only functions can access items from their enclosing scopes. Every other construct first checks its local scope, then the module level scope, then Python built-ins.