Python implementation of JSON Pointer - RFC 6901
See:
Python implementation of JSON Pointer - RFC 6901
See:
Context: replace spaces by dashes in a script-generated HTML file's links
1awk -F\' 'm = /a href/ { gsub(/ /,'-',$2); print$1'\''$2'\''$3} !m {print $0}'
Mercurial repository for the W3C Validator :-)
How to test a private or protected method with PHPUnit?
see also: https://sebastian-bergmann.de/archives/881-Testing-Your-Privates.html
A friend of mine was once interviewing an engineer for a programming job and asked him a typical interview question:
~ from http://www.gigamonkeys.com/book/practical-a-simple-database.html
This program creates one or more zombies and a daemon their leader. It can be used to replenish system zombies, or to feed the init monster.
Common ops & clauses:
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:
There seem to be 3 solutions in Python:
And 2 ways of gettings things done:
Some links:
To increase the memory allocated and available:
1# /etc/default/jenkins
2JAVA_ARGS='Xms4G -Xmx16G -Djava.awt.headless=true'
See also
Includes support for Coverage, Xunit and other cool stuff ;-) Oh, and there is parallel testing, too \o/
nosetests --with-coverage --cover-erase --cover-tests --cover-html --cover-html-dir=htmlcov --with-xunit --xunit-file=unit.xml
via http://www.alexconrad.org/2011/10/jenkins-and-python.html