Skip to content

Instantly share code, notes, and snippets.

self.CLUSTER.terminate_cluster()
File "/usr/local/lib/python2.7/dist-packages/StarCluster-0.9999-py2.7.egg/starcluster/cluster.py", line 1427, in terminate_cluster
sg.delete()
File "/usr/local/lib/python2.7/dist-packages/boto-2.8.0-py2.7.egg/boto/ec2/securitygroup.py", line 88, in delete
return self.connection.delete_security_group(self.name)
File "/usr/local/lib/python2.7/dist-packages/boto-2.8.0-py2.7.egg/boto/ec2/connection.py", line 2316, in delete_security_group
return self.get_status('DeleteSecurityGroup', params, verb='POST')
File "/usr/local/lib/python2.7/dist-packages/boto-2.8.0-py2.7.egg/boto/connection.py", line 1081, in get_status
raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
@daskinne
daskinne / gist:5287662
Created April 1, 2013 20:51
OGE fails to report queues until more than 1 job has been submitted
lb._cluster = cluster
try:
sge_stats_obj = lb._get_stats()
sge_stats = sge_stats_obj.get_all_stats()
self.queued_jobs = sge_stats_obj.get_queued_jobs()
self.running_jobs = sge_stats_obj.get_running_jobs()
public boolean split53(int[] nums) {
return split_fn(0, nums, 0, 0, false, false);
}
public boolean split_fn(int start, int[] nums, int left, int right, boolean fiveLeft, boolean chosen) {
if (start >= nums.length) {
if (left == right) return true;
return false;
}
if (nums[start] % 5 == 0) {
if (!chosen) {