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
r""" | |
This module is a VTK Web server application. | |
The following command line illustrate how to use it:: | |
$ vtkpython .../vtk_web_cone.py | |
Any VTK Web executable script come with a set of standard arguments that | |
can be overriden if need be:: | |
--port 8080 |
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 pymongo import Connection | |
if __name__ == '__main__': | |
# Connect to mongo | |
conn = Connection() | |
db = conn['canepi'] | |
# Set the search term | |
term = 'foo' |
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
// enable text search | |
db.adminCommand( { setParameter : 1, textSearchEnabled : true } ) | |
// build canepi-specific indices | |
db.healthmap.ensureIndex({"properties.summary": "text", | |
"properties.descr": "text", | |
"properties.country": "text", | |
"properties.disease": "text"}, | |
{ weights: { "properties.summary": 10, | |
"properties.descr": 5, | |
"properties.disease": 10, |
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
<html> | |
<head> | |
<title>HTML5 Folder Upload Test</title> | |
</head> | |
<body> | |
<div id="container"> | |
<input type="file" id="file_input" name="file_input_folder[]" | |
multiple webkitdirectory="" mozdirectory="true" directory="" /> | |
</div> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> |
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
$ virtualenv boto-env | |
$ source boto-env/bin/activate | |
(boto-env) $ pip install boto |
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 boto.ec2.connection import EC2Connection | |
import secretkeys | |
conn = EC2Connection(secretkeys.AWS_ACCESS_KEY, secretkeys.AWS_SECRET_KEY) | |
security_description = 'Security rules for external servers' | |
repo_sg = conn.create_security_group('external-server', security_description) | |
repo_sg.authorize('tcp', 80, 80, '0.0.0.0/0') | |
repo_sg.authorize('tcp', 22, 22, '0.0.0.0/0') | |
repo_sg.authorize('tcp', 443, 443, '0.0.0.0/0') |
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 sh | |
import gen | |
from matplotlib import pyplot as plt | |
import matplotlib.cm as cm | |
import numpy as np | |
import SimpleITK as sitk | |
import sys | |
lddmm_command = "/Users/cpatrick/calatk-build/CalaTK-Build/bin/LDDMM" | |
apply_map_command = "/Users/cpatrick/calatk-build/CalaTK-Build/bin/applyMap" |
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
<?php | |
/*========================================================================= | |
MIDAS Server | |
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved. | |
69328 Lyon, FRANCE. | |
See Copyright.txt for details. | |
This software is distributed WITHOUT ANY WARRANTY; without even | |
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
PURPOSE. See the above copyright notices for more information. |
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
<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:1757bde0-f7e2-11df-9ea4-e19bd0d21422</wsa:MessageID><wsa:Action soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/03/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.globus.wsrf.security.SecurityException: [SEC]Operation name could not be determined</faultstring><detail><ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">org.globus.wsrf.security.SecurityException: [SEC]Operation name could not be determined | |
at org.globus.wsrf.impl.security.util.AuthUtil.getOperationName(AuthUtil.java:259) | |
at org.globus.wsrf.impl.security.authentication.AuthHandler.handle(AuthHandler.java:58) | |
at org.globus.wsrf.impl.securi |