This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def traverse(self, path, response=None, validated_hook=None): | |
| """Traverse the object space | |
| The REQUEST must already have a PARENTS item with at least one | |
| object in it. This is typically the root object. | |
| """ | |
| request=self | |
| request_get=request.get | |
| if response is None: response=self.response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream zope { | |
| server 127.0.0.1:8080; | |
| server 127.0.0.1:8081; | |
| } | |
| server { | |
| listen 8000; | |
| server_name 192.168.2.53; | |
| location / { | |
| proxy_pass_header Server; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ./python serve.py | |
| [I 120801 22:09:56 process:101] Starting 8 processes | |
| [I 120801 22:09:56 serve:59] Starting Tornado on port 9000 | |
| [I 120801 22:09:56 serve:59] Starting Tornado on port 9002 | |
| [I 120801 22:09:56 serve:59] Starting Tornado on port 9001 | |
| Traceback (most recent call last): | |
| File "serve.py", line 60, in <module> | |
| tornado.httpserver.HTTPServer(application).listen(options.port, '0.0.0.0') | |
| File "/Users/fabian 1/workspace/tornado/lib/python2.7/site-packages/tornado/netutil.py", line 103, in listen | |
| sockets = bind_sockets(port, address=address) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from random import random | |
| from time import time | |
| def vectable(runs=25000): | |
| """ """ | |
| test = [] | |
| for i in range(0, 1024): | |
| x, y, z, w = random(), random(), random(), random() | |
| test.append((x, y, z, w)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import sys | |
| import time | |
| runs = 5 | |
| items = 100000 | |
| str_length = 12 | |
| if sys.version_info.major == 2: | |
| def genBytestrings(): |
NewerOlder