#python/WSGI applications quickstart #webdev
Monthly Archives: November 2015
#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 http://nedbatchelder.com/text/unipain.html and
import sys reload(sys) sys.setdefaultencoding('utf8') 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 y.py > $(date +\%F-\%H-\%M-\%S).txt 2>&1 ; python z.py > $(date +\%F-\%H-\%M-\%S).txt 2>&1
#webdev #python curl #http post requests
webdev python curl http requests
- http://docs.python-requests.org/en/latest/user/quickstart/
- http://docs.python-requests.org/en/latest/
- https://gist.github.com/kennethreitz/973705
simple python curl http post request example
import requests url = 'https://www.example.com/' data = {'requestXml': '<MYREQUESTXML>'} r = requests.post(url, 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 openshift.redhat.com
- go https://openshift.redhat.com/app/console/application_type/quickstart!29
- hh https://openshift.redhat.com/app/console/application_type/quickstart!127
- larevel https://openshift.redhat.com/app/console/application_type/quickstart!115
- node https://openshift.redhat.com/app/console/application_type/cart!nodejs-0.10
- php https://openshift.redhat.com/app/console/application_type/cart!php-5.4
- python https://openshift.redhat.com/app/console/application_type/cart!python-3.3
- ruby https://openshift.redhat.com/app/console/application_type/cart!ruby-2.0
amazon #fire os 5 beta download and you can rollback anytime before 27 sep 15
https://developer.amazon.com/public/solutions/platforms/android-fireos
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
opensuse #flos gnu/linux #builder, #distro and #openqa services for #mobdev and #webdev
opensuse flos gnu/linux builder, distro and qa services
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
see