Django middleware for the rescue!
Finally, I can have a better working middleware which can catch HTTP status errors, make a redirect-response to the main page and also save a visitor.
Now I can also …
I finally made the comments at this site.
Please use the comments form below any post.
Or leave feedback on the Feedback page if you want to ask a general question.
I use Disqus for comments, you might …
Raspberry 5 test-to-speech using Piper
I wanted to make my Raspberry tell me about power outages and air alerts near my location.
The setup is pretty simple and described ar the repo:
I didn't …
Installing NUT - Network Ups Tool Notifications and emails
Notifications and email
Just a simple work log of installing NUT and configuring email notifications from it.
- Start here: Installing NUT
Simple
Go to file:
sudo vi …
Август - это вечер воскресенья?
Чего-чего? - Последняя пятница лета? - Осень через 4 дня? - Август - это вечер воскресенья? Да нас…
Allow Apache run python scripts
This is a simple ex. to allow apache run .py
# Python site at /var/www/py_site LoadModule wsgi_…
Oh my gosh BACULA config
Recently finished bacula config and run first one successfully! I'm really do not understand now, w…
LoadError: cannot load such file -- /var/www/config/environment
Итак, снова бок: LoadError: cannot load such file -- /var/www/config/environment Неразрешенная, эта…
ADDM Stopping Reasoning service
ADDM can stuck on reloading.
This doesn`t help: Before ADDM 8.2 you will need to restart reasoni…
For list of dicts: merge same key values, sum another diff. values, count each merge iteration +1 Python
If anybody can help me with some task? I have list of dicts(or tuples), where: if tuples:
comment…
MySQL troubleshooting
Возможные проблемы:
-
отваливается сокет /var/lib/musql/mysql.sock
Can't connect to l…
Django + apache2 + mod_wsgi
This is conf file to allow apache run Django applications.
# Web site at /var/www/smm_tools # Pyt…
Радио работает в штатном режиме
Спустя несколько недель тестов, наконец удалось настроить логику воспроизведения на радио triangles…