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:
| public class BinarySearchTree { | |
| public static Node root; | |
| public BinarySearchTree(){ | |
| this.root = null; | |
| } | |
| public boolean find(int id){ | |
| Node current = root; | |
| while(current!=null){ | |
| if(current.data==id){ |
| class PagingMiddleware(object): | |
| """Middleware to detect current page within page pagination.""" | |
| def process_request(self, request): | |
| if 'page' in request.GET: | |
| try: | |
| request.active_page = int(request.GET.get('page')) | |
| except ValueError: |
| atom-text-editor::shadow { | |
| .line-numbers{ | |
| padding-left: 4px !important; | |
| } | |
| .git-line-modified, .git-line-added{ | |
| margin-left: -4px; | |
| padding-left: 2px !important; | |
| opacity: .5 | |
| } |
| LAPORAN DAFTAR PELUNASAN KOLETKOR | |
| AGEN PT. ARTIVISI INTERMEDIA | |
| ===================================================================================================================== | |
| KODE KOLEKTOR : 0001 | |
| NAMA KOLEKTOR : JOJO | |
| +------+--------------+---------------------------+---------+-------------+-------------+-------------+-------------+ |
| package other.veritrans; | |
| import java.util.Scanner; | |
| import java.util.logging.Logger; | |
| /** | |
| * @author : Adiyat Mubarak | |
| * @email : adiyatmubarak@gmail.com | |
| * @blog : www.keda87.wordpress.com | |
| */ |
| package PBO.IO.Reader; | |
| import java.io.BufferedReader; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| public class ReaderTest { |
| package PBO.other.generate.unique.id; | |
| // Copyright (c) 2006 Damien Miller <djm@mindrot.org> | |
| // | |
| // Permission to use, copy, modify, and distribute this software for any | |
| // purpose with or without fee is hereby granted, provided that the above | |
| // copyright notice and this permission notice appear in all copies. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| public class JSONParser { | |
| public static String getPlainJSON(String api) throws MalformedURLException, IOException { |