Skip to content

Instantly share code, notes, and snippets.

View clemesha-ooi's full-sized avatar

Alex Clemesha clemesha-ooi

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<soapenv:Header>
<wsa:MessageID soapenv:mustUnderstand="0">uuid:B1A62DBA-4B03-49BC-A200-5762F0D230C4</wsa:MessageID>
<wsa:To soapenv:mustUnderstand="0">https://tp-x009.ci.uchicago.edu:8443/wsrf/services/NimbusContextBroker</wsa:To>
<wsa:Action soapenv:mustUnderstand="0">
http://www.globus.org/2008/12/nimbus/contextualization/NimbusContextBrokerPortType/retrieveRequest</wsa:Action>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soapenv:Header><wsa:MessageID soapenv:mustUnderstand="0">uuid:19a01440-021e-11df-acb1-da622fb163ae</wsa:MessageID><wsa:To soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To><wsa:Action soapenv:mustUnderstand="0">http://www.globus.org/2008/12/nimbus/contextualization/NimbusContextBrokerPortType/retrieveResponse</wsa:Action><wsa:From soapenv:mustUnderstand="0" xmlns:ns2="http://www.globus.org/2008/12/nimbus/contextualization"><wsa:Address>https://tp-vm1.ci.uchicago.edu:8445/wsrf/services/NimbusContextBroker</wsa:Address><wsa:ReferenceProperties><ns2:NimbusContextBrokerKey soapenv:mustUnderstand="0" xmlns:ns2="http://www.globus.org/2008/12/nimbus/contextualization" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">1dde9330-0
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soapenv:Header><wsa:MessageID soapenv:mustUnderstand="0">uuid:a4f70210-021e-11df-acb1-da622fb163ae</wsa:MessageID><wsa:To soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To><wsa:Action soapenv:mustUnderstand="0">http://www.globus.org/2008/12/nimbus/contextualization/NimbusContextBrokerPortType/retrieveResponse</wsa:Action><wsa:From soapenv:mustUnderstand="0" xmlns:ns2="http://www.globus.org/2008/12/nimbus/contextualization"><wsa:Address>https://tp-vm1.ci.uchicago.edu:8445/wsrf/services/NimbusContextBroker</wsa:Address><wsa:ReferenceProperties><ns2:NimbusContextBrokerKey soapenv:mustUnderstand="0" xmlns:ns2="http://www.globus.org/2008/12/nimbus/contextualization" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">1dde9330-0
<cluster xmlns="http://www.globus.org/2008/06/workspace/metadata/logistics">
<workspace>
<name>head-node</name>
<image>ami-xxxxxxxx</image>
<quantity>1</quantity>
<nic wantlogin="true">public</nic>
<ctx>
<provides>
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<soapenv:Header>
<wsa:MessageID soapenv:mustUnderstand="0">uuid:F5290FB0-E7E2-4821-A030-35B96C84D58C</wsa:MessageID>
<wsa:To soapenv:mustUnderstand="0">https://tp-vm1.ci.uchicago.edu:8445/wsrf/services/NimbusContextBroker</wsa:To>
<wsa:Action soapenv:mustUnderstand="0">
http://www.globus.org/2008/12/nimbus/contextualization/NimbusContextBrokerPortType/retrieveRequest</wsa:Action>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soapenv:Header><wsa:MessageID soapenv:mustUnderstand="0">uuid:eaa07640-0627-11df-acb3-da622fb163ae</wsa:MessageID><wsa:Action soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/03/addressing/fault</wsa:Action><wsa:From soapenv:mustUnderstand="0" xmlns:ns2="http://www.globus.org/2008/12/nimbus/contextualization"><wsa:Address>https://tp-vm1.ci.uchicago.edu:8445/wsrf/services/NimbusContextBroker</wsa:Address><wsa:ReferenceProperties><ns2:NimbusContextBrokerKey soapenv:mustUnderstand="0" xmlns:ns2="http://www.globus.org/2008/12/nimbus/contextualization" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">e20e6690-0627-11df-acb2-da622fb163ae</ns2:NimbusContextBrokerKey></wsa:ReferenceProperties></wsa:From><wsa:RelatesTo RelationshipType="wsa:Reply" soapenv:mustUnde
ommit 44477cdf358e448335f37159679fd2b8d243f0a6
Author: Alex Clemesha <[email protected]>
Date: Thu Feb 11 13:12:28 2010 -0800
Starting to test nimbustest test client...
diff --git a/web/src/python/nimbusrest/admin/connection.py b/web/src/python/nimbusrest/admin/connection.py
index c1ebdf7..c2b5dfa 100644
--- a/web/src/python/nimbusrest/admin/connection.py
+++ b/web/src/python/nimbusrest/admin/connection.py
# Ran on EC2, using AMI "ami-ccf615a5" (Ubuntu 9.04)
# "Thrift" was installed as root. "Cassandra" and "Twissandra" were installed and run using a non-root user ("cassandra") I created.
apt-get update
#deps for Thrift and Cassandra.
apt-get -y install openjdk-6-jdk ant subversion g++ make flex bison python-dev ruby1.8-dev libboost-dev libevent-dev automake pkg-confi
g libtool make
# Thrift install:
svn co http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
from twisted.web.server import Site
from twisted.web.resource import Resource
from twisted.internet import reactor
class Home(Resource):
def render(self, request):
return "homepage"
def binary_search(e, l):
"""Binary search for e in l. Assume l is sorted.
Return 'True' if e exists, 'False' if not.
"""
llen = len(l)
if not llen:
return False
mid = llen/2
if e == l[mid]:
return True