RSSAmplifier

Blog

Databites Labs

arensc.github.ioRSS feed ↗7 posts

Latest posts

ML and Audio Primitives Notes

🎧 Audio Engineering Basics – PCM, Sample Rate, Bit Depth After working on Zero-Shot TTS (cascading), Sesame (multimodal), and a host of other pipelines, I’ve learned there are a few primitives you have to commit to muscle memory. When you can picture the inputs and outputs—down to the units and shapes—you can sanity-check a model’s behavior in seconds. 1. Mono vs Stereo Think of channels as lanes…

Object-Oriented Shell, Functional Core - Managing State in Modern Applications

Combining the best of object-oriented and functional programming paradigms to build maintainable SCRUD applications. Introduction Object-Oriented Shell, Functional Core (OSFC) represents a powerful architectural pattern that emerged from my experience with both Haskell’s pure functional approach and the pragmatic realities of OOP languages. This technique offers a compelling solution for managing…

Inheritance is bad - don't use it.

OOP and Inheritance - the scourge of modern programming practices. “OOP is a terrible paradigm, stop using inheritance, it’s bad practice” - this is something that you will hear around on the internet and through some ideologues. Yes, that was clickbait. Is inheritance a bad design decision? Not necessarily, if you understand how to architect systems and quantify the change distance and complexity…

Numpy Top Functions used with Dataframes

Numpy Top Functions used in Data Analysis Top Functions # %% import numpy as np import pandas as pd # %% labels = [ 'a' , 'b' , 'c' ] aList = [ 1 , 2 , 3 ] array = np . array ([ 1 , 2 , 3 ]) d = { 'a' : 1 , 'b' : 2 , 'c' : 3 } # A Series is a numpy array with labels series = pd . Series ( aList ) print ( series ) # %% seriesLabel = pd . Series ( aList , index = labels ) print ( seriesLabel ) # %%…

Numpy Top Functions used in Data Analysis

Numpy Top Functions used in Data Analysis Top Functions # To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import numpy as np # %% # Numpy: The commonly used functions - memorize these # %% # Initialize an array from a list my_list = [ 1 , 2 , 3 , 3 ] x = np . array ( my_list ) # %% # If you need to check the type type ( x ) # %% # Create a matrix from an…

Python VirtualEnv

Notes about VirtualEnv and Visual Studio Code Create a Virtual Environment python3 -m venv --copies /path/to/new/virtual/environment source venv/bin/activate #activate deactivate # leave Visual Studio Code: When you create a virtual env and open a folder where your code is sitting, then create the virtual environment there. Once you do, you can activate the environment in Visual Studio Code - look…

Matplotlib using the Basic OOP API and Graphing with Colors

Graphing with Matplotlib in OOP style. I often see many tutorials using the global state machine version of matplotlib. While they are quick to use, it’s often confusing and quickly becomes unwieldy when you want to reuse the code. I often see many tutorials using the global state machine version of matplotlib. While they are quick to use, it’s often confusing and quickly becomes unwieldy when you…