Charles Leifer
Welcome! I'm a software engineer and I like blogging about Python, databases, and programming in general. I'm the author of several open-source Python libraries including Peewee ORM , Huey task queue and lots more . Below you can find a list of my most recent blog posts.
- Popular posts
- 5
- Total points
- 792
- HN comments
- 223
- Rank
- #2,916 personal
Visit charlesleifer.com → RSS feedOn Hacker News Nov 2010 – Jan 2019
Databases & Data 4Software Engineering 3Web & Frontend 1Infrastructure & DevOps 1AI & Machine Learning 1
Using python and k-means to find dominant colors in images
I'm working on a little photography website for my Dad and thought it would be neat to extract color information from photographs. I tried a couple of different approaches before finding one that works pretty well. This approach uses k-means clustering to cluster the pixels in groups based on their color. The center…
Kyoto Tycoon in 2019
I've been interested in using Kyoto Tycoon for some time. Kyoto Tycoon, successor to Tokyo Tyrant , is a key/value database with a number of desirable features:
Peewee, a lightweight python ORM
For the past month or so I've been working on writing my own ORM in Python. The project grew out of a need for a lightweight persistence layer for use in Flask web apps. As I've grown so familiar with the Django ORM over the past year, many of the ideas in Peewee are analagous to the concepts in Django. My goal from…