My browser is getting littered with Django references. Time to collect them together:
Tuesday, October 31. 2017
Django Training / Tutorials
Tuesday, May 9. 2017
Python Networking
Routing
Mininet
Ryu
- osrg/ryu on github
- SDN Lab topology discovery with Ryu
- Ryu ReadTheDocs
- Ryu Book
- Sample Code
Web applications
- clean simple cms: said by some to be all the rage
- Tornado is a Python web framework and asynchronous networking library
- django cms
- RevSys talks Wagtail
- Celery: Distributed Task Queue
- Mezzanine: content management platform built using the django framework quota: Mezzanine vs django
Thursday, August 21. 2014
IDE For Python
There appears to be any number of Integrated Development Environments, and here for Python. I needed to select one for my own development.
I've been using NetBeans for my C++ development cycles, and therefore wanted to use the same environment for Python. No such luck. Support for a Python add-in has been discontinued. Not sure why.
There were lots of good comments for the commercially supported environments, but I ended up looking for something in the 'free' range. A quick review showed that Eclipse supports a Python add-in called PyDev. I installed it without the LiClipse bundle. After giving Eclipse/PyDev a try for a few days, it appears to handle the job quite nicely.
My only issue at the moment is that the IDE doesn't seem to be able to load all necessary libraries and parse them properly for error free syntax checking. Even though the modules appear to build and run properly. Perhaps I have not properly configured the environment. The one special thing that I've done is create a custom run configuration in order to make use of the virtualenv environment for each of my projects.
Monday, August 18. 2014
Python Notes
easter egg: python -c "import this"
pypy offers code speed up
pickle: simple object persistence
pillow: image processing
pyro: distributed processing
Unix env Lookup Trick: on some systems, the path to the python interpreter can be indirected via the environment variable (Learning Python 5e, page 60)
#!/usr/bin/env python
........
Wednesday, August 6. 2014
Python Virtual Environment
Python has two separate common versions happening: 2.7 and 3.somethingorother. There are language differences between the two. And since both versions are active, both versions have to be supported, and the libraries for each, due to language differences between versions, have to be managed separately.
To do this, something called virtualenv was created. The short form of getting things functioning:
[sudo] pip install virtualenv # installs the package mkdir# create a directory for the project cd # get settled into the directory virtualenv env # creates a project local environment for libraries (first part of the the magic trick) . env/bin/activate # use each time when starting project work (second part of magic trick, fixing path) deactivate # use when ready to undo the path fix
Sunday, August 3. 2014
Statistical Books For Programmers
When researching the Augmented Dickey Fuller test, I came across two books that would be good for programmers. They use Python as a reference language, but hey, at least they take the programmer's point of view. Converting to C++ as needed shouldn't be too difficult. 'Think Stats', which is coming out in Edition 2, and 'Think Bayes', which builds on the 'Think Stats' book.