VirtualTam's bookmarks
85 bookmarks found
-
Getting Started with OpenShift
2017-03-09 -
- http://www.dnspython.org/docs/1.15.0/
- http://www.dnspython.org/examples.html
- https://stackoverflow.com/questions/5235569/using-the-dig-command-in-python#5237068
- https://www.safaribooksonline.com/library/view/python-for-unix/9780596515829/ch14.html
- https://stackoverflow.com/questions/17681230/how-make-dns-queries-in-dns-python-as-dig-with-aditional-records-section
- https://stackoverflow.com/questions/13842116/how-do-we-get-txt-cname-and-soa-records-from-dnspython
-
An interview with Simon Roth, the developer of space colony simulator 'Maia' | GamingOnLinux
2017-02-02 "Currently I am coding love and relationships into the game, and am having to deal with some colonists who are getting a bit polyamorous with the non-sentient furniture items. I am yet to decide as to whether this is a bug."
-
Python: get current datetime as a Unix epoch
2017-01-04 1import calendar 2import time 3 4calendar.timegm(time.gmtime())
-
"The price for securing your network is eternal vigilance and also your soul." "Whose soul? We're sysadmins." "Oh, right. End users. Hang on, I have a jar of them under my desk. Let me get one out for you."
-
URL handling in PHP
2015-08-14 -
Python unit testing frameworks: Nose, Pytest
2015-02-13 Python's built-in unittest module is quite cool, but a bit limited and way too verbose (read: it's quite not easy to incite developers to write unit tests)
I'm currently looking for more dev-friendly solutions, the key points being:
- writing test code should be easy and straight-forward -keep the focus on "what to test" instead of "how to transcribe a process to a test"
- parallelization! -we, spoiled developers, should make good use of our way-too-many-cores build machines...
- complete feature set!
- we don't want to just run tests...
- coverage reports (find dead/weak/untested code sections)
- output formatting (JUnit-XML seems to be quite a common format out there)
There seem to be 3 solutions in Python:
- stock unittest + project-dependent customizations / test helpers
- nosetests
- py.test
And 2 ways of gettings things done:
- keeping things stock: no external dependency, project-specific implementation...
- using a test framework: one more module in your (test) virtualenv, more concise tests, more features (// run, code coverage, etc.)
Some links: