Anthony Corletti cloud computing. startups. music. etc.

AI Infrastructure on Kubernetes

The rise in usage of cloud computing resources and container management platforms for executing AI (Artificial Intelligence) and ML (Machine Learning) workloads has led many engineers and companies to question the suitability and effectiveness of Kubernetes’ resource management and scheduling to meet the growing requirements of these workloads.

So why’s that? What patterns, architectures, and procedures has led these companies and engineers to this problem of scaling ML platforms on Kubernetes? And what kind of solution could we apply to help solve those problems?

Read more ...

How DNS Works

It’s easy to take for granted the ability to type google.com into a web browser, press Enter, and be served a powerful search engine.

The DNS, or Domain Name System, is mostly responsible for getting that data from somewhere on earth to your screen.

So how does it work?

Read more ...

Text Processing in Ruby

I’ve come across a lot of text based processing and analytics software is written in python, but not so much in ruby, so I’ve decided to share an example about how to algorithmically parse lots of text with plain ruby code – no dependencies required!

The problem statement is simple.

Given a new-line delimited text file, with each line being field separated by commas, determine the $m$ most common string of length $n$, accounting for multiple most common strings.

Let’s get hacking 🤓

Read more ...

Passwordless Logins in Python

Many internet services use OAuth and email based protocols for sending login links and tokens.

I think it’s a pretty slick way to log users in and reduces overhead for them by adding yet another credential to their password managers.

I hadn’t found a python implementation I liked so I decided to implement a login credential issuer in pure python that I could use to send login links to users, similar to a slack-like login flow.

It didn’t take much code to implement! I’ll walk you through it.

Read more ...

Dispatch Tables in Python

Writing multiple if-else statement clauses as a switch-style case can be a hassle to maintain, especially if you’re working with dynamic switches.

With no specific case or switch implementation in python’s standard library, I’ve liked using dispatch tables.

A dispatch table can be defined as a mapping of pointers to functions.

Let’s review a simple example.

Read more ...