Type something to search...

Blog

Working with Dates and Times in Python Using datetime and zoneinfo

Working with Dates and Times in Python Using datetime and zoneinfo

Dates and times look simple until a user in another country books a meeting, a scheduled job runs twice on the night the clocks change, or a timestam

Continue Reading
functools in Python: partial, lru_cache, reduce, and wraps

functools in Python: partial, lru_cache, reduce, and wraps

Python treats functions as ordinary values. You can pass them around, store them in dicts, return them from other functions, and wrap them in new beh

Continue Reading
Using MongoDB Charts to Visualize Your Data

Using MongoDB Charts to Visualize Your Data

Every team eventually wants to see its data, not just query it. Product managers want signups by week. Support wants open tickets by priority. Engine

Continue Reading
Mastering itertools in Python: Efficient Iteration Recipes

Mastering itertools in Python: Efficient Iteration Recipes

Most Python loops follow a handful of shapes: flatten some nested lists, take the first N items, walk through pairs of neighbors, split work into chu

Continue Reading
How to Create a Masonry Layout with CSS

How to Create a Masonry Layout with CSS

A masonry layout arranges items of different heights into columns, packing each new item into whichever column is currently shortest. There are n

Continue Reading
Bulk Write Operations in MongoDB for Faster Data Imports

Bulk Write Operations in MongoDB for Faster Data Imports

You've written an import script. It reads a file of product records, loops over them, and calls insertOne for each. With 500 test records it finish

Continue Reading