Python
How to add custom css file to Sphinx?
How can I add a custom css file? The following config does not work:
Python – anyone have a memoizing decorator that can handle unhashable arguments?
I’ve been using the following memoizing decorator (from the great book Python Algorithms: Mastering Basic Algorithms in the Python Language … love it, btw).
Extracting a zipfile to memory?
How do I extract a zip to memory?
Reversible hash function?
I need a reversible hash function (obviously the input will be much smaller in size than the output) that maps the input to the output in a random-looking way. Basically, I want a way to transform a number like “123” to a larger number like “9874362483910978”, but not in a way that will preserve comparisons, so it must not be always true that, if x1 > x2, f(x1) > f(x2) (but neither must it be always false).
How do I extend the Django Group model?
Is there a way to extend the built-in Django Group object to add additional attributes similar to the way you can extend a user object? With a user object, you can do the following:
Python subprocess in parallel
I want to run many processes in parallel with ability to take stdout in any time. How should I do it? Do I need to run thread for each subprocess.Popen() call, a what?
Django REST: Uploading and serializing multiple images
I have 2 models Task and TaskImage which is a collection of images belonging to Task object.
Python setting Decimal Place range without rounding?
How can I take a float variable, and control how far out the float goes without round()? For example.
OpenCV 3.0 LineIterator
I want to use the LineIterator in OpenCV 3.0 using Python, is it still available with OpenCV 3.0 built for Python? It seems that the answers on the internet are all pointing to cv.InitLineIterator which is part of the cv module. I’ve tried importing this module but it seems like it is not included with the current build. Has it been renamed or strictly just removed?