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

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

Are You A Charlotte?

Are You A Charlotte?

In 1997, actress Kristin Davis’ life was forever changed when she took on the role of Charlotte York in Sex and the City. As we watched Carrie, Samantha, Miranda and Charlotte navigate relationships in NYC, the show helped push once unacceptable conversation topics out of the shadows and altered the narrative around women and sex. We all saw ourselves in them as they searched for fulfillment in life, sex and friendships. Now, Kristin Davis wants to connect with you, the fans, and share untold stories and all the behind the scenes. Together, with Kristin and special guests, what will begin with Sex and the City will evolve into talks about themes that are still so relevant today. "Are you a Charlotte?" is much more than just rewatching this beloved show, it brings the past and the present together as we talk with heart, humor and of course some optimism.

Stuff You Should Know

Stuff You Should Know

If you've ever wanted to know about champagne, satanism, the Stonewall Uprising, chaos theory, LSD, El Nino, true crime and Rosa Parks, then look no further. Josh and Chuck have you covered.

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

Connect

© 2025 iHeartMedia, Inc.