All Episodes

October 28, 2022 60 mins

Python Demo for Extra Life API

  • Stream Date: November 5th, 2022
  • Functionality so far 
    • Check Extralife API for donations 
      • This is done with the requests module
      • This endpoint seems to return old and new donations
      • There isn't a “new donation” end point it seems
    • Get the donation IDs and compare them to a local file 
      • Local file is made with the pickle module
      • Pickle allows you to take any data structure in python and “package it” into a binary file for storage. 
    • If there is a new donation ID that isn’t in the local file 
      • Queue up a random audio clip
      • Record the donation ID to the local file
    • Audio is placed through the playsound module 
      • Weird “bug” that short audio clips get cut off
      • Add a little sleep after the call to get around it
    • Auto parses the audio folder for the files 
      • Looks into audio file
      • Gets all the file names
      • Adding a new audio clip is as simple as dropping it into the folder
    • Preventing truly random files 
      • Made a rotating buffer
      • Used the collections module to implement a bi-directional “stack” 
        • Think like a bitwise shift but with an array of strings
    • Multithreading! 
      • Threading module used to setup the API and Audio player queues 
        • API runs every 20 seconds
        • Audio player runs every 30 seconds
      • If a new donation, global mailbox variable increases one for each new donation.
      • Audio player runs and looks at that global variable. 
      • Threading has a “lock” function to prevent race conditions on that global variable.
  • What is next? 
    • Play graphics in Open Broadcast Software
    • OBS has some python hooks that I am just starting to learn 

Chip Fab Jobs

  • Need practically every engineering discipline
  • Mechanical to design and maintain equipment
  • Chemical for designing the masking / chemical bath processes
  • Electrical for testing and validation 

Estimating project time

  • PCB layout
  • New project revision 
    • About 1600 parts
    • Lots of duplicates
  • Things that impact timing 
    • Components 
      • Parts with pours and complex ground
      • Specific trace routs like differential or snake traces
    • Layers
    • Duplication
    • Rest day
    • Cleanup day
Mark as Played

Advertise With Us

Popular Podcasts

Stuff You Should Know
Dateline NBC

Dateline NBC

Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations. Follow now to get the latest episodes of Dateline NBC completely free, or subscribe to Dateline Premium for ad-free listening and exclusive bonus content: DatelinePremium.com

The Burden

The Burden

The Burden is a documentary series that takes listeners into the hidden places where justice is done (and undone). It dives deep into the lives of heroes and villains. And it focuses a spotlight on those who triumph even when the odds are against them. Season 5 - The Burden: Death & Deceit in Alliance On April Fools Day 1999, 26-year-old Yvonne Layne was found murdered in her Alliance, Ohio home. David Thorne, her ex-boyfriend and father of one of her children, was instantly a suspect. Another young man admitted to the murder, and David breathed a sigh of relief, until the confessed murderer fingered David; “He paid me to do it.” David was sentenced to life without parole. Two decades later, Pulitzer winner and podcast host, Maggie Freleng (Bone Valley Season 3: Graves County, Wrongful Conviction, Suave) launched a “live” investigation into David's conviction alongside Jason Baldwin (himself wrongfully convicted as a member of the West Memphis Three). Maggie had come to believe that the entire investigation of David was botched by the tiny local police department, or worse, covered up the real killer. Was Maggie correct? Was David’s claim of innocence credible? In Death and Deceit in Alliance, Maggie recounts the case that launched her career, and ultimately, “broke” her.” The results will shock the listener and reduce Maggie to tears and self-doubt. This is not your typical wrongful conviction story. In fact, it turns the genre on its head. It asks the question: What if our champions are foolish? Season 4 - The Burden: Get the Money and Run “Trying to murder my father, this was the thing that put me on the path.” That’s Joe Loya and that path was bank robbery. Bank, bank, bank, bank, bank. In season 4 of The Burden: Get the Money and Run, we hear from Joe who was once the most prolific bank robber in Southern California, and beyond. He used disguises, body doubles, proxies. He leaped over counters, grabbed the money and ran. Even as the FBI was closing in. It was a showdown between a daring bank robber, and a patient FBI agent. Joe was no ordinary bank robber. He was bright, articulate, charismatic, and driven by a dark rage that he summoned up at will. In seven episodes, Joe tells all: the what, the how… and the why. Including why he tried to murder his father. Season 3 - The Burden: Avenger Miriam Lewin is one of Argentina’s leading journalists today. At 19 years old, she was kidnapped off the streets of Buenos Aires for her political activism and thrown into a concentration camp. Thousands of her fellow inmates were executed, tossed alive from a cargo plane into the ocean. Miriam, along with a handful of others, will survive the camp. Then as a journalist, she will wage a decades long campaign to bring her tormentors to justice. Avenger is about one woman’s triumphant battle against unbelievable odds to survive torture, claim justice for the crimes done against her and others like her, and change the future of her country. Season 2 - The Burden: Empire on Blood Empire on Blood is set in the Bronx, NY, in the early 90s, when two young drug dealers ruled an intersection known as “The Corner on Blood.” The boss, Calvin Buari, lived large. He and a protege swore they would build an empire on blood. Then the relationship frayed and the protege accused Calvin of a double homicide which he claimed he didn’t do. But did he? Award-winning journalist Steve Fishman spent seven years to answer that question. This is the story of one man’s last chance to overturn his life sentence. He may prevail, but someone’s gotta pay. The Burden: Empire on Blood is the director’s cut of the true crime classic which reached #1 on the charts when it was first released half a dozen years ago. Season 1 - The Burden In the 1990s, Detective Louis N. Scarcella was legendary. In a city overrun by violent crime, he cracked the toughest cases and put away the worst criminals. “The Hulk” was his nickname. Then the story changed. Scarcella ran into a group of convicted murderers who all say they are innocent. They turned themselves into jailhouse-lawyers and in prison founded a lway firm. When they realized Scarcella helped put many of them away, they set their sights on taking him down. And with the help of a NY Times reporter they have a chance. For years, Scarcella insisted he did nothing wrong. But that’s all he’d say. Until we tracked Scarcella to a sauna in a Russian bathhouse, where he started to talk..and talk and talk. “The guilty have gone free,” he whispered. And then agreed to take us into the belly of the beast. Welcome to The Burden.

Music, radio and podcasts, all free. Listen online or download the iHeart App.

Connect

© 2026 iHeartMedia, Inc.