Add HIT/MISS info to headers with Django cache middleware

Django cache framework is really great, and since 1.9 we have really useful decorator cache_page (https://docs.djangoproject.com/en/1.9/topics/cache/#the-per-view-cache) that handles per-view caching. However, I missed the ability to add hit/miss info to headers of each request, something that both nginx and varnish add with simple directive in configuration file. What we can do in Django is to […]

Monitor HAProxy via PRTG

Monitoring HAProxy (http://haproxy.org) is somewhat hard to do. Yes, we have nice web/stats interface, but watching the web interface can be fun for an hour or two, but after that… You have to find a better solution. Company where I work uses PRTG Network Monitor (http://www.paessler.com/prtg) that provides EXE/XML Custom sensors which allow you to […]

Splitting monolithic HAProxy configuration into more manageable form

As soon as you have more than a few frontend, backend and listen directives in your HAProxy config thing get crowded in that single monolithic file. There are few possible solutions to this “problem”, like this python solution, or maybe using multiple config files and specifying them with -f when starting haproxy (http://comments.gmane.org/gmane.comp.web.haproxy/5888). While there […]

Overcoming Centrify Express for Linux restrictions

In their latest release Centrify has added some restrictions to their, up until now, great product. Changes are listed here http://www.centrify.com/express/changes-centrify-express-unix-linux.asp where they state this. Centrify Express for UNIX/Linux and Centrify Express for Mac no longer support access controls. We made this change to clearly delineate between the intended premium versus free features. While I […]

Rusija do veličanstvene Volge

This entry is part 5 of 6 in the series Euroazijske putešestvije

Šesti, sedmi i osmi dan: od ruske granice do Ulijanovska Budimo se ujutro nakon prve noći provedene u zagrljaju Majčice Rusije i mogu reći da se osjećam fenomenalno, teško mi je to opisati, jer Ruske ravnice nisu lijepe kao Alpe ili kao Norveški fjordovi, ali imaju jako smirujući efekt na mene. Današnji cilj nam je […]

Od Kijeva do Simbirska

This entry is part 4 of 6 in the series Euroazijske putešestvije

Od Zagreba do Kijeva u 3 dana Peti dan ujutro se pakiramo i biramo kojom cestom prema Rusiji, jedan od prijedloga je da krenemo prema Harkivu pa od tamo uđemo u Rusiju i idemo prema Prohkorovki, mjestu gdje je održana, po mnogima, najveća tenkovska bitka svih vremena (http://en.wikipedia.org/wiki/Battle_of_Prokhorovka). Alternativa tome je da idemo iz Kijeva […]

Posjet Černobilu

This entry is part 3 of 6 in the series Euroazijske putešestvije

Za ulazak u Černobil morate bukirati turu sa nekom od agencija, mi smo išli sa http://tour2chernobyl.com a dobili smo i preporuke za Solo East http://www.tourkiev.com/. Doduše, ako jedna agencija nema dovoljno ljudi za popuniti cijeli autobus, onda se spoje putnici od više agencija u isti bus, tako da mi se čini da je svejedno s […]

Od Zagreba do Kijeva u 3 dana

This entry is part 2 of 6 in the series Euroazijske putešestvije

Prethodni post: Rusija, uvodna priča Krenuli smo u nedjelju 14.7. i imamo 3 dana za doći do Kijeva (~1500km), s tim da želimo stati u Poljskoj u gradu Sanoku gdje ćemo baciti oko na slike Zdzisława Beksińskog (http://en.wikipedia.org/wiki/Zdzis%C5%82aw_Beksi%C5%84ski), čovjeka čije su me slike stvarno štrecnule, a njegova sudbina se čini kao scenarij nekog filma. Prvo mu […]