October 2015

Django
2015-10-29 08:35 (10 years ago)
Trying Out Django TemplateView with Extensive Use of @cached_property

Sample remote interpreter / SSH setup for developing Rails inside a Vagrant VM using RubyMine.

Bootstrap
2015-10-27 09:35 (10 years ago)
Randomly Selecting the Initial Active Item in a Bootstrap Carousel

This method allows you to randomly change the initial position when displaying a large carousel in the hero area using Bootstrap.

Python
2015-10-19 07:34 (10 years ago)
Write Parallel Processing Easily Using Process Pools

Parallelize CPU-bound Python work with `multiprocessing.Pool` / `ProcessPoolExecutor` — minimal patterns and common pitfalls.

Python
2015-10-16 07:35 (10 years ago)
Python Simple Thread Pool

I should have used multiprocessing.pool.Pool orz

Django
2015-10-15 10:10 (10 years ago)
Paging Django Model Instances Queried with Complex Filters Using Paginator

Page through Django model instances retrieved via a complex query (raw SQL or composed Q objects) using Paginator, with a working implementation pattern.

Categories

Archive