This file contains 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
Traceback (most recent call last): | |
File "/home/eorchestra/frestq/frestq/tasks.py", line 1293, in post_task | |
task_output = task.run_action_handler() | |
File "/home/eorchestra/frestq/frestq/tasks.py", line 277, in run_action_handle r | |
return self.action_handler_object.execute() | |
File "./create_election/director_jobs.py", line 64, in execute | |
election.threshold_parties, session_privpath) | |
File "./vmn.py", line 21, in go | |
return func(*args, **kwargs) | |
File "./vmn.py", line 29, in v_gen_protocol_info |
This file contains 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
Traceback (most recent call last): | |
File "build/bdist.linux-x86_64/egg/frestq/protocol.py", line 175, in reserve_task | |
task_output = task.run_action_handler() | |
File "build/bdist.linux-x86_64/egg/frestq/tasks.py", line 286, in run_action_handler | |
return self.action_handler(self) | |
File "./create_election/performer_jobs.py", line 307, in generate_public_key | |
raise TaskError(dict(reason="pubkey already created")) | |
TaskError |
This file contains 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
ERROR: Failed to parse info files! | |
DEBUG:apscheduler.threadpool:Exiting worker thread | |
call_cmd: calling vmnc -pkey -outi json publicKey_raw publicKey_json | |
output = Exception in thread "main" verificatum.protocol.ProtocolError: Failed to parse info files! | |
at verificatum.protocol.mixnet.MixNetElGamalInterface.main(MixNetElGamalInterface.java:342) | |
Caused by: verificatum.ui.info.InfoException: Error on line: 1 column: 1: Premature end of file. | |
at verificatum.ui.info.InfoParser.parse(InfoParser.java:99) | |
at verificatum.ui.info.RootInfo.parse(RootInfo.java:36) |
This file contains 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
verificatum.arithm.ArithmFormatException: Quadratic non-residue! | |
[error] at verificatum.arithm.ModPGroupElementArray.<init>(ModPGroupElementArray.java:153) | |
[error] at verificatum.arithm.ModPGroup.toElementArray(ModPGroup.java:715) | |
[error] at verificatum.arithm.PPGroup.toElementArray(PPGroup.java:642) |
This file contains 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
In [3]: from django.contrib.sites.models import Site | |
In [4]: x = Site.objects.get_current() | |
In [5]: x | |
Out[5]: <Site: wadobo.com> | |
In [6]: x.name | |
Out[6]: u'wadobo.com' |
This file contains 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 java.io.BufferedReader | |
import java.io.IOException | |
import java.io.InputStreamReader | |
import java.net.URL | |
import java.net.URLConnection | |
import java.net.HttpURLConnection | |
import java.net.URLStreamHandler | |
import java.net.URLEncoder | |
import java.net.CookieManager | |
import java.net.CookieHandler |
This file contains 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
// dao class | |
class DAO(override val profile: JdbcProfile) extends DogComponent with CatComponent with Profile { | |
val Cats = TableQuery[CatsTable] | |
val Dogs = TableQuery[DogsTable] | |
import profile.simple._ | |
val ddl = Cats.ddl++Dogs.ddl | |
} |
This file contains 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
for question in data['result']['counts']: | |
if "APPROVAL" not in question['a']: | |
continue | |
women = [a for a in question['answers'] if a['value'] in women_names] | |
men = [a for a in question['answers'] if a['value'] not in women_names] | |
answers_sorted = [] | |
if women[0]['value'] == question['answers'][0]['value']: | |
men.insert(0, None) |
This file contains 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
filters=[] | |
filters.append(getattr(Task, "task_type").__eq__("external")) | |
filters.append(getattr(Task, "status").__eq__("executing")) | |
tasks = db.session.query(Task).filter(*filters) | |
for task in tasks: | |
print task.label | |
print(type(task)) | |
print(type(task.input_data)) | |
print(task.input_data) |
This file contains 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
filters=[] | |
filters.append(getattr(Task, "task_type").__eq__("external")) | |
filters.append(getattr(Task, "status").__eq__("executing")) | |
tasks = db.session.query(Task).filter(*filters) | |
for task in tasks: | |
print task.label | |
print(type(task)) | |
print(type(task.input_data)) | |
print("**********************") |