Rock IT
Author image

Jakub Skałecki

23 posts Warsaw, Poland
Full Stack geek. Likes Docker, Python, and JavaScript, always interested in trying new stuff.

Monitoring Redis

Today I'll show how you can monitor Redis activity. It's very useful for low-level debugging. Few words about Redis In a single sentence, Redis is an in-memory key-value store. But it's also much more than that - it supports many complex data types and is blazingly fast (can perform milions operations per second). It's mostly used via language wrappers, like...

Continue Reading

How to reuse Keras Deep Neural Network using Docker

In this post I'll show how to prepare Docker container able to run already trained Neural Network (NN). It can be helpful if you want to redistribute your work to multiple machines or send it to a client, along with one-line run command. Sample code is using Keras with TensorFlow backend. Prerequisites Already prepared Keras NN. We'll save it to...

Continue Reading

How to make your Django context processors lazy

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...

Continue Reading

How to profile Django views

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!...

Continue Reading