Techy Things

Setup a new Windows 7 or 8 Workstation 0

Setup a new Windows 7 or 8 Workstation

This is a list of base software used after installing a fresh new Windows developer's workstation. I use Windows 7 Ultimate 64-bit which I got upgraded for free by Microsoft after being victim of counterfeit...

[SOLVED] Fix Puppet pip install failure 1

[SOLVED] Fix Puppet pip install failure

Problem ==> machine1: Error: Execution of '/usr/local/bin/pip install -q pycrypto' returned 1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uN48ao/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p66n7t-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1...

fatal error: libxml/xpath.h: No such file or directory 0

fatal error: libxml/xpath.h: No such file or directory

Running setup.py install for lxml ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file /setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', ' all --record /tmp/pip-PDRsRl-record/install-record.txt --single-version-externally-managed Building lxml version 3.5.0. Building without Cython. ERROR: /bin/sh:...

fatal error: Python.h: No such file or directory 0

fatal error: Python.h: No such file or directory

gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ - r/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o src/MD2.c:31:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit...

Ghost process after running PhantomJS 0

Ghost process after running PhantomJS

Spooky !   Short term solution $> ps -ef | grep phantom | grep -v grep | awk '{print $2}' | xargs kill -9   Better long-term solution Using driver.quit() : driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any']) driver.get('https://'...

Read the doc from the right place 0

Read the doc from the right place

Selenium on Python http://selenium-python.readthedocs.org/api.html The WebDriver API http://selenium-python.readthedocs.org/api.html?highlight=phantom#module-selenium.webdriver.remote.webdriver jQuery http://api.jquery.com/ PHP http://php.net/docs.php which what I consider A-class documentation with user-submitted sample code at bottom of doc pages as a bonus.