If you came here, you probably know what is a context processor, but let's quickly recap. It's a function, that returns dictionary of values. Those values will be injected to rendering context without explicitly defining them in view. They allows us to refactor commonly used variables out of views. The most well-known context processor is Authentication, making it possible to...
You can write all code in notepad / vim / sublime text. But, does it make any sense, when there are other tools designed to help you go faster? One of them, dedicated to Machine Learning in Python, is Spyder. I've found it when I was following Udemy Deep Learning Course. And since I was programming in RStudio (R programming language) earlier,...
If you are programming for some time, you probably heard that sentence: I made that mistake many times - I've spent lot of time optimizing something that was totally irrelevant. Basically, most of the time you should focus to create readable, maintainable code. AND THEN, if something is not fast enough, yo can try to optimize it. But firstly, profile!...
I've had some problems with my Docker images and docker-compose configuration. Let's analyze following docker-compose.yml file: version: '2' services: database: image: postgres application: image: registry.example.com/our-application command: node ports: - 80:80 Do you see anything wrong here? Probably not, because file is perfectly OK. But there's a problem! When you run docker-compose up, docker starts all...
Since you are here, you're probably using Docker on your development machine, and maybe on a single production host. You found out that single host is not enough anymore. What should you do? I've been there! And I'll provide a couple of tips how to prepare yourself for Docker Swarm in production, possible solution to your problem. It's all based...