Open in app
Home
Notifications
Lists
Stories

Write
Hackers and Slackers
Hackers and Slackers

Home
About
Python
SQL
Pandas
Data Engineering
JavaScript
Flask
AWS
Go
Todd Birchard

Todd Birchard

·Apr 14

Serving Assets a CDN with Google Cloud

Serve static content via a Google Cloud CDN to improve load times. Fine-tune your load balancer and caching to match your app’s needs. — Pardon my nostalgia, but it’s hard not to miss the good old days of the world-wide-web. Websites consisted of the most straightforward architecture: single-node servers. It’s hard to imagine the internet of the 90s, where blogs, forums, and obscure Flash sites were almost exclusively hosted on simple LAMP stacks instead…

Architecture

11 min read

Serving Assets a CDN with Google Cloud
Serving Assets a CDN with Google Cloud

Todd Birchard

Todd Birchard

·Jan 10

Intro to Asynchronous Python with Asyncio

Execute multiple tasks concurrently in Python with Asyncio: Python’s built-in async library. — It’s fair to say that most Hackers and Slackers readers share one thing in common: we like writing stuff in Python. This does not make us unique; it’s reflective of a well-known and easily explainable phenomenon as Data Scientists/Engineers enter (and more recently, leave) a space previously reserved for software…

Python

9 min read

Intro to Asynchronous Python with Asyncio
Intro to Asynchronous Python with Asyncio

Todd Birchard

Todd Birchard

·Feb 25, 2021

Managing Multiple Versions of Python on Ubuntu 20.04

Install and manage multiple versions of Python on Ubuntu 20.04 or newer. — There are a number of subtle differences in managing versions of Python on older distributions of Ubuntu. If you’re running Ubuntu 18.04 or older, go here. One of my earliest frustrations with Python development had nothing to do with Python itself but rather the needlessly esoteric act of deploying a…

Python

7 min read

Managing Multiple Versions of Python on Ubuntu 20.04
Managing Multiple Versions of Python on Ubuntu 20.04

Todd Birchard

Todd Birchard

·Jan 20, 2021

Implement ORM Data Models with SQLAlchemy

Handle your application’s data layer with SQLAlchemy’s powerful ORM. Define data models, add/remove records, and execute queries purely in Python. — Utilizing ORMs as a data layer is a concept as old as object-oriented programming itself; by abstracting SQL concepts, developers avoid dreaded “context switches” by modifying objects instead of queries. …

Python

6 min read

Implement ORM Data Models with SQLAlchemy
Implement ORM Data Models with SQLAlchemy

Todd Birchard

Todd Birchard

·Jan 19, 2021

Databases in Python Made Easy with SQLAlchemy

Leverage the iconic SQLAlchemy Python library to effortlessly handle database connections and queries in software. — When we think about software interacting with databases directly, many envision a similar pattern of managing connections, explicitly committing queries, and similarly tiresome boilerplate. Python libraries like PyMySQL and Psycopg2 do a fine job fitting this paradigm and upholding the status quo of what we’ve come to accept. …

Python

9 min read

Databases in Python Made Easy with SQLAlchemy
Databases in Python Made Easy with SQLAlchemy

Todd Birchard

Todd Birchard

·Sep 3, 2020

Create Cloud-hosted Charts with Plotly Chart Studio

Use Pandas and Plotly to create cloud-hosted data visualizations on-demand in Python. — Given the success of Plotly Dash and Plotly Express, it’s easy to forget that Plotly’s rise to success began with a product that was neither of these household names. Dash has cornered the interactive dashboard market, while Plotly Express has become the defacto Python library generating inline charts, particularly for…

Plotly

7 min read

Create Cloud-hosted Charts with Plotly Chart Studio
Create Cloud-hosted Charts with Plotly Chart Studio

Todd Birchard

Todd Birchard

·Aug 1, 2020

Deploy Serverless Golang Functions with Netlify

Write and deploy Golang Lambda Functions to for your GatsbyJS site on Netlify. — The race to monetize static-site hype was over before it began — if you’re a JAMStack developer, you’re a Netlify customer. Surprisingly, the outcome of this unintentional vendor lock-in has been working out pretty well. JAMStack’s paradigm of webhook-driven actions rewrites the narrative of static sites as dynamic entities. …

Jamstack

9 min read

Deploy Serverless Golang Functions with Netlify
Deploy Serverless Golang Functions with Netlify

Todd Birchard

Todd Birchard

·Jul 8, 2020

Scrape Structured Data with Python and Extruct

Supercharge your scraper to extract quality page metadata by parsing JSON-LD data via Python’s extruct library. — Unless you’re entirely oblivious to scraping data in Python (and probably ended up here by accident), you’re well-aware that scraping data in Python library begins and ends with BeautifulSoup. BeautifulSoup is Python’s scraping powerhouse: we first demonstrated this in a previous post where we put together a script to fetch…

Python

11 min read

Scrape Structured Data with Python and Extruct
Scrape Structured Data with Python and Extruct

Todd Birchard

Todd Birchard

·Jun 29, 2020

Compiling Frontend JavaScript & Stylesheets Flask

Create and compile LESS, SASS, and JS files for your Flask app’s frontend using Flask-Assets. — You’re probably not a frontend developer, and I’m guessing you have no desire to become one. …

Flask

7 min read

Compiling and Serving Frontend Assets in Flask
Compiling and Serving Frontend Assets in Flask

Todd Birchard

Todd Birchard

·Jun 29, 2020

Optimize GatsbyJS Performance & Build Times with Netlify

Speed up Gatsby by utilizing Netlify features like CDN, asset compression, redirects, caching, and analytics. — Static site generators are experiencing a respectable rise in popularity amongst developers, yet we’re likely only seeing the beginning of a paradigm that has yet to fully explode. GatsbyJS and NextJS have tantalized the JavaScript community by effectively incorporating trendy paradigms, while Hugo speaks to the swaths of developers embracing…

Gatsbyjs

10 min read

Optimize GatsbyJS Performance & Build Times with Netlify
Optimize GatsbyJS Performance & Build Times with Netlify
Hackers and Slackers

Community of hackers obsessed with data science, data engineering, and analysis. Openly pushing a pro-robot agenda.

Connect with Hackers and Slackers

Editors

Todd Birchard

Todd Birchard

Software engineer with background in Data & Product Management background. Does everything incorrectly before coming to realizations known as best practices.

Matthew Alhonte

Matthew Alhonte

Dylan Castillo

Dylan Castillo

Product Data Scientist. I write at https://dylancastillo.co/

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable