This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
| import httplib | |
| import xml.dom.minidom | |
| HOST = "www.domain.nl" | |
| API_URL = "/api/url" | |
| def do_request(xml_location): | |
| """HTTP XML Post request""" | |
| request = open(xml_location, "r").read() |
| import base64 | |
| """ | |
| Some useful functions for interacting with Java web services from Python. | |
| """ | |
| def make_file_java_byte_array_compatible(file_obj): | |
| """ | |
| Reads in a file and converts it to a format accepted as Java byte array | |
| :param file object |
| #!/bin/bash | |
| # Script author: MrVaykadji http://askubuntu.com/users/176689/mrvaykadji | |
| # Changes made by Ribtoks | |
| # - simulink for compass2.0 in /usr/bin/ | |
| # - replaced apt commands with zypper commands | |
| # Changes made by Andrew <andrew@webupd8.org>: | |
| # - use the NodeJS PPA to avoid build failure with grunt-cli | |
| # - use the Popcorn Time icon | |
| # - added check for apt, dpkg, etc. | |
| # - added some checks when creating symbolic links |
| #!/bin/bash | |
| find . -name "*.pyc" -exec git rm {} \; | |
| git commit -m "Removed compiled python files in distribution left after last commit" |
The upgrade needs a total of 81.5 M free space on disk '/boot'. Please free at least an additional 17.4 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
http://askubuntu.com/questions/142926/cant-upgrade-due-to-low-disk-space-on-boot
Run below command as suggested in the error message.
$ sudo apt-get clean
First check your current kernel version.