How to use Diesel ORM in Rust

Diesel is a framework for Object Relational Mapping and Query Building. It’s goal is to get rid of alot of boilerplate code usually needed for interacting with a database. It should feel like Rust, so that the developer does not need to write SQL and instead can focus on coding. Great examples of SQL statements … [Read more…]

Calculate average color of an image in Rust

The easiest thing to do with images is to calculate their average color. Every color can be created by combining together so called primary colors – red, green and blue (RGB). RGB is a mathematical model for representing colors as a tuple of numbers. Many computer vision tasks use greyscale (a one dimensional representation of … [Read more…]