How to run multiple websites from one Django project

The subdomain specific settings files will inherit all the defaults from the common settings.py file, and override only those values which are specific to the domain.

WSGI app files are the key of running multiple subdomains.

The tools I use to write books

Of course I do not send plain text files out to readers. Instead, they receive nicely formatted PDF, ePub, Mobi and HTML files, which I create with only a tiny number of tools: pp, pandoc and KindleGen. Together they form a pipeline.

That pipeline is essential.

Matrix calculus for deep learning

This paper is an attempt to explain all the matrix calculus you need in order to understand the training of deep neural networks.

Django and AJAX form submissions

Say goodbye to the page refresh.

What is stupid?

The researchers deduced that there are three main categories of what people consider to be stupidity: confident ignorance, lack of control and lack of practicality.

The key to good luck is an open mind

Richard Wiseman turned his findings into a luck school where people could learn luck-inducing techniques based on four main principles of luck: maximizing chance opportunities, listening to your intuition, expecting good fortune, and turning bad luck to good.

Keep looking.

NSWindow title bar and toolbar showcase

I built a showcase for several combinations of styles of title bar and toolbar of NSWindow. Just to serve as a note of everything I want to remember about the NSWindow styles.

A neural network in 11 lines of Python

A bare bones neural network implementation to describe the inner workings of backpropagation.

1 2 3 4 5 6 7 8 9 10