RSSAmplifier

Blog

ionel's codelog

blog.ionelmc.roRSS feed ↗6 posts

Latest posts

Old fashioned setup

Today's options for doing development on Windows [1] in Dockerized projects: A virtual machine (ol' reliable) Cumbersome to setup, but it's the beaten path, and you have this guide! There are other hypervisors like VirtualBox or VMWare which have some advantages (easier networking - builtin NAT, port forwarding and so on …

How to run uWSGI

Given the cornucopia of options uWSGI offers it's really hard to figure out what options and settings are good for your typical web app. Normally you'd just balk and run something simpler with less knobs and dials, like mod-wsgi with Apache but alas, uWSGI is so flexible and has so …

Speeding up Django pagination

I assume you have already read Optimizing the Django Admin Paginator . If not, this is basically the take-away from that article: class InfinityPaginator ( Paginator ): @property def count ( self ): return 99999999999 class MyAdmin ( admin . ModelAdmin ): paginator = InfinityPaginator show_full_result_count = False Though the article has a trick with using a …

Is there anything safe in python?

In the process of working on Hunter I have found many strange things from merely trying to do a repr on objects that are passed around. Code blowing up with an exception is the least of your concerns. Take a look at this: class lazy ( object ): def __init__ ( self , fun …

Proxy issues with Apache

So few days ago I had a very weird bug with an Apache httpd SSL terminator setup. So basically just a proxy to Nginx+uWSGI serving plain http. Do not ask why such a contrived setup, it's beyond reason. Sometimes httpd would give this sort of error and big file …

Rehashing the src layout

Looking back at my Python packaging post, now it got more popular . Even Twisted is using it now but there's still confusion about it. I mean, places that you'd expect would use a src -layout don't. Take flit for instance, I wrote a rant on packaging almost 1 year later …