Monthly Archives: November 2015

#python/WSGI applications quickstart #webdev

#python/WSGI applications quickstart #webdev

#python uses #ascii instead of #unicode by default #gotcha

by default python seems to run in ascii which means if you try and process a string with a utf-8 unicode character in it you will get the error

UnicodeEncodeError: 'ascii' codec can't encode character 
u'\xXX' in position YYYYY: ordinal not in range(128)

so to force your script to use utf-8 unicode instead you need to

see and

import sys
print sys.getdefaultencoding()

ed/x/ubuntu #gnu/#linux #devops #cron gotcha with % chars

ed/x/ubuntu #gnu/#linux #devops #cron gotchacron treats % chars as newlines so you need to escape each and every % with a \

heres a crontab that runs two separate python scripts and put output and errors in two separate files (provided the first script takes longer than a second to run

# crontab
* * * * * python > $(date +\%F-\%H-\%M-\%S).txt 2>&1 ; python > $(date +\%F-\%H-\%M-\%S).txt 2>&1

#webdev #python curl #http post requests

webdev python curl http requests

simple python curl http post request example

import requests
url = ''
data = {'requestXml': '<MYREQUESTXML>'}

r =, data)

print 'U '
print url
print 'S '
print r.status_code
print 'H '
print r.headers
print 'T '
print r.text

#webdev #go,#hhvm,#larevel,#node,#php,#python,#ruby #aws #vms all now on openshift

webdev go,hhvm,larevel,node,php,python,ruby vms all now available free of charge on

amazon #fire os 5 beta download and you can rollback anytime before 27 sep 15

Fire OS 5 Developer Preview works with Fire HD 6 and Fire HD 7 tablets (2014 editions), as well as Fire TV and Fire TV Stick.

Please note that after upgrading a device to the Fire OS 5 Developer Preview, rolling back to the production version will factory-reset the device.

We will soon provide our final update of the Fire OS 5 developer preview via an over-the-air update. Once this is applied, you will not be able to roll back the update until we automatically deliver the production Fire OS 5 build to your device (available in the coming weeks).

To remove your device from the Fire OS 5 Developer Preview update pool, please use this form to submit your device information. You have until Sunday, September 27, 2015 at midnight PST to request a roll back.

If you have additional questions, please visit the Developer Preview Knowledge Base, or you may contact us.

axosoft v jira and @jira v @axosoft #agile #pm software comparisions

g2crowd compare axosoft v jira and jira v axosoft

vendors compare axosoft v jira and jira v axosoft

a new #grep #ack-grep #beyondgrep for #devops #mobdev #sysadmin and #webdev

a new grep ack-grep beyondgrep for devops mobdev sysadmin and webdev

ed/x/ubuntu install

# aptitude install ack-grep