repo
string
commit
string
message
string
diff
string
elben/stone-tools
79d6d63c2dec0998ebe209effff6ba3bb62369a2
added intermediate state when going from on to off for DiscipleState
diff --git a/disciple/libdisciple.py b/disciple/libdisciple.py index 8288b37..af21f96 100644 --- a/disciple/libdisciple.py +++ b/disciple/libdisciple.py @@ -1,186 +1,211 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import threading # TODO: refactor...
elben/stone-tools
86b90d574bc5ee93cda0a5ec9ed8e203d97a9128
change Disciple to use new DiscipleState; we might need other states in DiscipleState, see secret notebook
diff --git a/disciple/disciple.py b/disciple/disciple.py index 78ceff9..237b507 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,289 +1,282 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser from libdisciple import * # parse con...
elben/stone-tools
fc4e8a54936f98813116aeca5b3c0b23f8b62f36
finished cmd methods of DiscipleState; locked cmd calls to make it thread safe
diff --git a/disciple/libdisciple.py b/disciple/libdisciple.py index a492dff..8288b37 100644 --- a/disciple/libdisciple.py +++ b/disciple/libdisciple.py @@ -1,243 +1,186 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import threading # TODO: refactor...
elben/stone-tools
2352e30965c62104a4ee6c8776a05cd853314e10
start implementation of command methods for DiscipleState
diff --git a/disciple/libdisciple.py b/disciple/libdisciple.py index e684e2f..a492dff 100644 --- a/disciple/libdisciple.py +++ b/disciple/libdisciple.py @@ -1,239 +1,243 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import threading # TODO: refactor...
elben/stone-tools
c39d7303b45f8cf3acfde7109ce07e47a4311aec
implemented DiscipleState.cmd_exist
diff --git a/disciple/libdisciple.py b/disciple/libdisciple.py index b26c9b1..e684e2f 100644 --- a/disciple/libdisciple.py +++ b/disciple/libdisciple.py @@ -1,239 +1,239 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import threading # TODO: refactor...
elben/stone-tools
765af03084938fa6ad9c9ccae3fd83e6be4543f3
rewriting DiscipleState
diff --git a/disciple/libdisciple.py b/disciple/libdisciple.py index 9e05508..b26c9b1 100644 --- a/disciple/libdisciple.py +++ b/disciple/libdisciple.py @@ -1,182 +1,239 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import threading # TODO: refactor...
elben/stone-tools
4f6eac250ca6544a13dd585cc5c74eb8d3ba3a74
add gitignore
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.hgignore b/.hgignore deleted file mode 100644 index 1eb293f..0000000 --- a/.hgignore +++ /dev/null @@ -1,14 +0,0 @@ -syntax: glob -*.pyc -*.orig -*.ts -*.log* -.DS_Store -tags -dhyana.pl -mplayer_stderr -mplayer_stdout -confi...
elben/stone-tools
885141706bc723b034d5d0da0347755bf9fd5e32
just updates
diff --git a/disciple/disciple.py b/disciple/disciple.py index 87a31b2..78ceff9 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,283 +1,289 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser from libdisciple import * # parse con...
elben/stone-tools
684dc4d269a31503cb5e306d8854baea44333799
arming function
diff --git a/disciple/disciple.py b/disciple/disciple.py index 0fd6fe1..87a31b2 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,288 +1,283 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser from libdisciple import * # parse con...
elben/stone-tools
e1dcd2676df04c316ff673c7b5bab574e03939e0
set methods shouldn't throw exceptions; return False instead
diff --git a/disciple/libdisciple.py b/disciple/libdisciple.py index 6616f6e..4f366e7 100644 --- a/disciple/libdisciple.py +++ b/disciple/libdisciple.py @@ -1,182 +1,178 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import threading # TODO: refactor...
elben/stone-tools
37f73992a891d9fca4e760d5eb3df4d45cf58384
moved classes around to libdisciple
diff --git a/disciple/disciple.py b/disciple/disciple.py index cdc7fa5..0fd6fe1 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,432 +1,288 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser -from discipleserver import * +from libdi...
elben/stone-tools
087b506445bb73e98a81d5055f1508a486a933f9
start main loop for disciple
diff --git a/disciple/disciple.py b/disciple/disciple.py index 4933d00..cdc7fa5 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,383 +1,432 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser from discipleserver import * # parse ...
elben/stone-tools
6dd7452a3a79fcc2b54e7403db1cb11f09713109
added disciple xmlrpc server
diff --git a/disciple/discipleserver.py b/disciple/discipleserver.py new file mode 100644 index 0000000..694e69d --- /dev/null +++ b/disciple/discipleserver.py @@ -0,0 +1,37 @@ +from SimpleXMLRPCServer import SimpleXMLRPCServer +from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler +import threading + +from discipl...
elben/stone-tools
3a21867c12457bdd703589360066fe44881a92d8
add/rm settings in config; finishing disciple state machines
diff --git a/config/default.conf b/config/default.conf index 90bfb25..c778f77 100644 --- a/config/default.conf +++ b/config/default.conf @@ -1,36 +1,38 @@ # configuration file for stone-tools [gentile] url_paul=http://localhost/ local_file=sermon.ts file_ext=pt video_bitrate=6730 mplayer_stdout_file=mplayer_st...
elben/stone-tools
456bf8a98c2838da25c52fae1e4c0cf49a4daf8a
start on DiscipleState
diff --git a/disciple/disciple.py b/disciple/disciple.py index 7c8dc13..f34673a 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,292 +1,332 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser # parse config file config_file = ".....
elben/stone-tools
9f9dc1d4b82b16672b02ffe857baa6d14962cb7d
minor changes to downloader_test.py
diff --git a/disciple/disciple.py b/disciple/disciple.py index e92ff56..7c8dc13 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,263 +1,292 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser # parse config file config_file = ".....
elben/stone-tools
dce0e275530570b48aaf1801755265dd09d01816
refactored (mostly renaming) RemoteFile. Removed all traces of Utils class, it broke everything at random thanks to threading stuff (at least that's what I'm assuming).
diff --git a/shared/downloader.py b/shared/downloader.py index 14d8c51..0351452 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,363 +1,370 @@ import urllib2 import threading import os import time -class Utils(object): - @staticmethod - def enough_delay(prev_time, min_gap): - """ - ...
elben/stone-tools
d70515e4d0f9d7fc38badf63a82786ad4cf185dc
various disciple updates
diff --git a/disciple/disciple.py b/disciple/disciple.py index dbf937c..e92ff56 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,260 +1,263 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser # parse config file config_file = ".....
elben/stone-tools
f9ee5def593cba51fc4d81ca1032b9f6dca904fe
wrote some basic test cases for downloader_tests.py, dealt with (hopefully all) FileSizesEqualExceptions in RemoteFile and DownloadThread.
diff --git a/disciple/disciple.py b/disciple/disciple.py index 83eaa40..dbf937c 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,255 +1,260 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser # parse config file config_file = ".....
elben/stone-tools
16bf5a4b4b1961b3058ec852e0af4674425df8c3
'finished' HDPVR class
diff --git a/disciple/disciple.py b/disciple/disciple.py index 8f11424..83eaa40 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,242 +1,255 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser # parse config file config_file = ".....
elben/stone-tools
226955de40c096356990738a60943205cba4776c
Refactored downloader.py, added (unfinished) downloader_test.py
diff --git a/disciple/disciple.py b/disciple/disciple.py index ffe21d3..8f11424 100755 --- a/disciple/disciple.py +++ b/disciple/disciple.py @@ -1,207 +1,242 @@ #!/usr/bin/python import subprocess as sp import os import sys import time import random import ConfigParser # parse config file config_file = ".....
elben/stone-tools
e0d6747f7b31a7bd85b9dc622670d87b5e5c246d
refactored downloader.py, prevented RemoteFile's get_local_size method from creating empty files, made the __update method of RemoteFile thread-safe, made individual lock objects for each resource in ThreadCOmmunicator
diff --git a/shared/downloader.py b/shared/downloader.py index 857e325..5f5fee4 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,294 +1,306 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
35d45bff63a8ad4ee44ed898a767f5653128c98c
fixed broken comments; rmed unneeded comments
diff --git a/shared/downloader.py b/shared/downloader.py index a8580ab..857e325 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,305 +1,294 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
c415a60748c7201a555e2e87ec1f2bd1f32b6838
added ThreadCommunicator tests
diff --git a/tests/threadcommunicator_test.py b/tests/threadcommunicator_test.py new file mode 100644 index 0000000..aba5720 --- /dev/null +++ b/tests/threadcommunicator_test.py @@ -0,0 +1,51 @@ +import unittest +from downloader import * + +import threading + +class DownloaderTest(unittest.TestCase): + + def setUp(s...
elben/stone-tools
0ccbdd4670dbb2712fcd58592ad49fab12cf3b40
removed 'touch_local_file' dependencies
diff --git a/shared/downloader.py b/shared/downloader.py index 4cde1a2..a8580ab 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,305 +1,305 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
ca6508a5164bcdbc452620c6ba74191914edc330
minor cleanup
diff --git a/shared/downloader.py b/shared/downloader.py index c7e3c11..4cde1a2 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,310 +1,305 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
d0bb39a30863c12ad697e7c3a8e885ac1cbcb7fc
wrote Downloader object, have yet to test it. Will merge now.
diff --git a/shared/downloader.py b/shared/downloader.py index b88fd75..6a33445 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,241 +1,303 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
a5101ebf67b8521db597893170a239c83f55028e
small changes for __update
diff --git a/shared/downloader.py b/shared/downloader.py index c4f18ba..26dd38e 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,239 +1,238 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
964bdd4c8524da755f38af9b9e9536d3d632c28a
more tests; fixed bug w/ getting HTTP response headers
diff --git a/shared/downloader.py b/shared/downloader.py index da5bbbb..c4f18ba 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,236 +1,239 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
a536413f5c720238a4019f98027ef0bf8545b15f
bug fix get_local_size; tests added
diff --git a/shared/downloader.py b/shared/downloader.py index b88fd75..da5bbbb 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,241 +1,236 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
3593034d07f2c52daa40c90d854a765c466099f2
rename
diff --git a/tests/remotefile_test.py b/tests/remotefile_test.py new file mode 100644 index 0000000..d76635f --- /dev/null +++ b/tests/remotefile_test.py @@ -0,0 +1,28 @@ +import unittest +from downloader import * + +class DownloaderTest(unittest.TestCase): + + def setUp(self): + self.rf = RemoteFile('http://...
elben/stone-tools
bcf3ecda95b0c10ffa3d9b9c4df367da81ae9432
dealt with HTTPError 416 exception in proper place.
diff --git a/shared/downloader.py b/shared/downloader.py index 0cbd85c..b88fd75 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,275 +1,241 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
a56a9ca65e7ccd82cfb1c842e7a90a22fee28ef7
RemoteFile.read returns None if no data exists
diff --git a/shared/downloader.py b/shared/downloader.py index 26c6168..0cbd85c 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,270 +1,275 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
95a6a9f9ad68e9d6b800d8c02865405ac4e5cdfc
RemoteFile.read does not write to file; that is up to the downloading thread
diff --git a/shared/downloader.py b/shared/downloader.py index 094d272..26c6168 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,267 +1,270 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
2d95f20ffd57f68e6bff1d0e9860b4522beeb445
dealing with HTTPError for bad ranges;
diff --git a/shared/downloader.py b/shared/downloader.py index 0bc0a33..094d272 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,251 +1,267 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
258989f0883ae98641ba1affd2f3bb5b346c1068
sytnax fix
diff --git a/shared/downloader.py b/shared/downloader.py index 01f24ca..0bc0a33 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,253 +1,251 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
d815d66349174138e7959b5df9071ad94a00b3e5
built a DownloaderException that remembers file sizes
diff --git a/shared/downloader.py b/shared/downloader.py index 007c04f..01f24ca 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,241 +1,253 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
00fe0b408b7c25f2e72b035562b52d83516bfd50
touch/create local file before opening
diff --git a/shared/downloader.py b/shared/downloader.py index b382bbe..007c04f 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,228 +1,241 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
bc9a40d8195768ffff73df0182d5138ae0a30381
bugs bugs everywhere; trying to kill all of them; succeded in downloading one byte
diff --git a/shared/downloader.py b/shared/downloader.py index 7758297..b382bbe 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,222 +1,228 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
ac359beab2849a37504a8e49b49d8ac86b7f20da
hgignore added
diff --git a/.hgignore b/.hgignore new file mode 100644 index 0000000..1eb293f --- /dev/null +++ b/.hgignore @@ -0,0 +1,14 @@ +syntax: glob +*.pyc +*.orig +*.ts +*.log* +.DS_Store +tags +dhyana.pl +mplayer_stderr +mplayer_stdout +config.conf +stone_tools_disciples.psd +tc_title.png +tests/downloader.py \ No newline at ...
elben/stone-tools
499ecc3b93523fd1e339ee1b2a70d109c1b3baed
docs added
diff --git a/docs/stone-tools-details.txt b/docs/stone-tools-details.txt new file mode 100644 index 0000000..ac423d9 --- /dev/null +++ b/docs/stone-tools-details.txt @@ -0,0 +1,46 @@ +#summary Overview of the Stone Tools architecture. + += Overview = + +Stone Tools transfer video feed from a *parent* location to multip...
elben/stone-tools
7354e456144a4d6e6963927821bb55b10ec792f5
added new tests, __init.py files, and old files that we probably want
diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/gentile/webapp.py b/gentile/webapp.py new file mode 100755 index 0000000..3c156b0 --- /dev/null +++ b/gentile/webapp.py @@ -0,0 +1,151 @@ +#!/usr/bin/python +# Maintained by Elben Shira @ gmail. + +from libwebapp import * +i...
elben/stone-tools
4dfe0b73f82a2c3ecce4dd30e3554232644e16ce
small syntax errors
diff --git a/shared/downloader.py b/shared/downloader.py index 0f447ce..7758297 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,222 +1,222 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
b13cf3b40855ebd63d6abc8e95bf3fc518a4a0a7
added unittest example; we need to start unit testing this beast
diff --git a/tests/example.py b/tests/example.py new file mode 100644 index 0000000..03ff260 --- /dev/null +++ b/tests/example.py @@ -0,0 +1,33 @@ +# A crash course on Python unit testing. +# Read more here: http://docs.python.org/library/unittest.html + +import unittest + +class ExampleTest(unittest.TestCase): + + ...
elben/stone-tools
62639ee485bd87021316ee677a86783d48f017f1
save chunk downloaded to file; WARNING: probably buggy, please test
diff --git a/shared/downloader.py b/shared/downloader.py index c86c584..0f447ce 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,210 +1,222 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
dbcdc963b0cbd150edb2940c7c49edf3bb4d0230
We want to continue dl from last downloaded, so we must rebuild request obj everytime we call urllib2.urlopen in _update.
diff --git a/shared/downloader.py b/shared/downloader.py index 21a3ec0..c86c584 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,207 +1,210 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
535981326beb30a2c33d4ba2e096d8a3a254ea6a
Downloader._remote_url instance var now refers to the full path, including filename.
diff --git a/shared/downloader.py b/shared/downloader.py index 2f2b047..21a3ec0 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,203 +1,207 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
22c2e85a3442cdbb86bba3760c453ae1bdcc3282
added Downloader.finished method
diff --git a/shared/downloader.py b/shared/downloader.py index a9d3cfc..2f2b047 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,199 +1,203 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
07a03428f7df74e7d2171b85fd65ba4855b54ee0
Added Downloader.download_chunk method; refactored response object; renamed methods to make it 'private'
diff --git a/shared/downloader.py b/shared/downloader.py index efdf9fa..a9d3cfc 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,191 +1,199 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
e9baea08fbd4e70e58c655405981e9eb3cf687ac
nicer way of adding HTTP headers to request.
diff --git a/shared/downloader.py b/shared/downloader.py index 6e369b1..efdf9fa 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,184 +1,191 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
2143c1b052ffcf823afc3062afd072e92f5c8ed7
reduced reduce+lambda to sum
diff --git a/shared/downloader.py b/shared/downloader.py index dde8cb5..6e369b1 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,184 +1,184 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
e3e133fd5bc7a83940a7091516112a1119737906
removed get_ prefix from Downloader and DownloaderThread methods
diff --git a/shared/downloader.py b/shared/downloader.py index 3cd4d0e..dde8cb5 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,184 +1,184 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
a52e1dde94a16559aba5981f97d2b5b3803e3d78
fixed Downloader.get_update. Never use self._remote_size outside of Downloader._update()
diff --git a/shared/downloader.py b/shared/downloader.py index 2a7bf6a..3cd4d0e 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,185 +1,184 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
302a7e8bd98d11ce86e00a87ac9d5286578e78aa
refactoring Downloader; fixed bad uses of _remote_size
diff --git a/shared/downloader.py b/shared/downloader.py index 7b4c1ba..2a7bf6a 100644 --- a/shared/downloader.py +++ b/shared/downloader.py @@ -1,194 +1,185 @@ import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since prev_ti...
elben/stone-tools
baab35df7750fac0919e62b2951cdf159833c895
started to implement threaded downlaod rate calculation, does not (at least, should not) work
diff --git a/shared/utils.py b/shared/utils.py index 403d9f2..588790d 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -1,118 +1,173 @@ import urllib2 import threading import os import time +# global download rate variable, READ ONLY! +# if you write to this, you WILL break DownloadRateThread's execution +gl...
elben/stone-tools
6c9ed6fbe8f61c2a9ddf54180fe5b7377453a214
minor changes to utils.py
diff --git a/shared/utils.py b/shared/utils.py index 4875522..403d9f2 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -1,113 +1,118 @@ -# Author: Elben Shira - import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since pr...
elben/stone-tools
f1ac9810a9a7d58378cd9b98c28762132297049c
minor formatting changes, fixed some syntax errors, added exception printing
diff --git a/shared/utils.py b/shared/utils.py index 08cc8e1..4875522 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -1,106 +1,113 @@ # Author: Elben Shira import urllib2 import threading import os import time def enough_delay(prev_time, min_gap): """Returns True if enough time has passed since pr...
elben/stone-tools
42e7b2a4a24c18ce99c6097469c1a6cf8c07c0cc
more updates to Downloader
diff --git a/shared/utils.py b/shared/utils.py index c7d3bbd..08cc8e1 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -1,73 +1,106 @@ # Author: Elben Shira import urllib2 import threading import os +import time + +def enough_delay(prev_time, min_gap): + """Returns True if enough time has passed since pre...
elben/stone-tools
64eddb2186a67d95aa246619cc55a051c5a54a18
started implementation of Downloader. WARNING: not finished, DO NOT USE IT WILL PRETT MUCH DO A DOS ATTACK. I'm serious
diff --git a/config/README b/config/README new file mode 100644 index 0000000..88e4b4b --- /dev/null +++ b/config/README @@ -0,0 +1,4 @@ +How to set up config files: + +1) $ cp default.conf config.conf +2) Edit the config file. diff --git a/config/default.conf b/config/default.conf new file mode 100644 index 0000000..9...
dedomenon/rest_simple
9d4027c1e9bff8504ba18448b2502d4d24307797
adapted tests: first get request of a test requires format option, do not know why
diff --git a/test/simple_rest_test.rb b/test/simple_rest_test.rb index 4f8c5f7..a889101 100644 --- a/test/simple_rest_test.rb +++ b/test/simple_rest_test.rb @@ -1,145 +1,147 @@ require 'test/unit' require File.dirname(__FILE__)+'/../../../../test/test_helper.rb' #require File.dirname(__FILE__)+'/../../../../vendor/r...
dedomenon/rest_simple
48394dca8b2e377ece300065018e3f3cac40f14c
corrections for new entity
diff --git a/app/controllers/rest/simple/v1/instances_controller.rb b/app/controllers/rest/simple/v1/instances_controller.rb index df9d3a1..fd0ec3d 100644 --- a/app/controllers/rest/simple/v1/instances_controller.rb +++ b/app/controllers/rest/simple/v1/instances_controller.rb @@ -1,89 +1,127 @@ class Rest::Simple::V1:...
dedomenon/rest_simple
23b83e2dfb1db60c444e49c6653d97a6883f6a57
corrected settings path in init.rb
diff --git a/init.rb b/init.rb index 25f2203..37d72cc 100644 --- a/init.rb +++ b/init.rb @@ -1,6 +1,7 @@ # Include hook code here require 'ostruct' -::RestSimpleSettings = Madb::parse_settings('config/settings.yml') +::RestSimpleSettings = Madb::parse_settings(File.dirname(__FILE__)+'/config/settings.yml') + App...
dedomenon/rest_simple
508c1ddd505721229e249308ab3cd2cbee1998ed
plugin uses Madb::parse_settings
diff --git a/config/settings.yml b/config/settings.yml new file mode 100644 index 0000000..3b3dfa4 --- /dev/null +++ b/config/settings.yml @@ -0,0 +1,5 @@ +common: + list_length: 100 +development: +production: +test: diff --git a/init.rb b/init.rb index 596115c..25f2203 100644 --- a/init.rb +++ b/init.rb @@ -1,7 +1,6 ...
dedomenon/rest_simple
97fcba0b3dde7a5e4e98effd81865b1d4fa71a75
upgrade to rails 2.3.4
diff --git a/lib/simple_rest.rb b/lib/simple_rest.rb deleted file mode 100644 index 37ea212..0000000 --- a/lib/simple_rest.rb +++ /dev/null @@ -1 +0,0 @@ -# SimpleRest diff --git a/test/simple_rest_test.rb b/test/simple_rest_test.rb index 3233bdb..4f8c5f7 100644 --- a/test/simple_rest_test.rb +++ b/test/simple_rest_tes...
dedomenon/rest_simple
51582218acbeb7fcf30dd2a88f9e6bde5b18940e
public data can be limited to account or made public to all
diff --git a/app/controllers/rest/simple/v1/admin/entities_controller.rb b/app/controllers/rest/simple/v1/admin/entities_controller.rb index 922d2e2..07d86cd 100644 --- a/app/controllers/rest/simple/v1/admin/entities_controller.rb +++ b/app/controllers/rest/simple/v1/admin/entities_controller.rb @@ -1,10 +1,16 @@ clas...
dedomenon/rest_simple
20d8698b6b9dd261388d2b10c3a2f0118ef77aea
query parameter name can be passed
diff --git a/app/controllers/rest/simple/v1/instances_controller.rb b/app/controllers/rest/simple/v1/instances_controller.rb index 2c10668..d7809f6 100644 --- a/app/controllers/rest/simple/v1/instances_controller.rb +++ b/app/controllers/rest/simple/v1/instances_controller.rb @@ -1,77 +1,84 @@ class Rest::Simple::V1::...
dedomenon/rest_simple
148951bda4785d8da4bd7914a2ef91996b8de669
corrected callback construction
diff --git a/app/controllers/rest/simple/v1/instances_controller.rb b/app/controllers/rest/simple/v1/instances_controller.rb index 777b47a..2c10668 100644 --- a/app/controllers/rest/simple/v1/instances_controller.rb +++ b/app/controllers/rest/simple/v1/instances_controller.rb @@ -1,77 +1,77 @@ class Rest::Simple::V1::...
dedomenon/rest_simple
816a6136f0402af059d5cf2290227892ae4a7b03
json returned can be wrapped in function
diff --git a/test/json/persons_name_start_with_b_ordered_by_prenom_in_callback.json b/test/json/persons_name_start_with_b_ordered_by_prenom_in_callback.json new file mode 100644 index 0000000..f779596 --- /dev/null +++ b/test/json/persons_name_start_with_b_ordered_by_prenom_in_callback.json @@ -0,0 +1 @@ +function my_c...
dedomenon/rest_simple
a110fc2fd4026c0220aa8b827eaa3158f931aaa5
moved to version1 with v1 prefix
diff --git a/app/controllers/rest/simple/admin/entities_controller.rb b/app/controllers/rest/simple/v1/admin/entities_controller.rb similarity index 72% rename from app/controllers/rest/simple/admin/entities_controller.rb rename to app/controllers/rest/simple/v1/admin/entities_controller.rb index 5ff095e..922d2e2 10064...
dedomenon/rest_simple
a6c1d4649221fad17d565d76348c26f663ca1f65
First complete version. Added local fixtures Added tests Onlu publish public data Require api_key Added admin/entities hook to publish data
diff --git a/app/controllers/rest/simple/admin/entities_controller.rb b/app/controllers/rest/simple/admin/entities_controller.rb new file mode 100644 index 0000000..5ff095e --- /dev/null +++ b/app/controllers/rest/simple/admin/entities_controller.rb @@ -0,0 +1,10 @@ +class Rest::Simple::Admin::EntitiesController < Appl...
dedomenon/rest_simple
e6f0bd96a0ecf14856a8d2ec909ce86491013425
added plugin registration in AppConfig
diff --git a/init.rb b/init.rb index 46869ca..97b9d6c 100644 --- a/init.rb +++ b/init.rb @@ -1,5 +1,7 @@ # Include hook code here require 'ostruct' ::RestSimpleSettings = OpenStruct.new( :list_length => 100 ) + +AppConfig.plugins.push( {:name => :rest_simple } )
dedomenon/rest_simple
ff88dc8013f646afe2b6381d94d5b09ff8704587
require authentication for instances controller
diff --git a/app/controllers/rest/simple/instances_controller.rb b/app/controllers/rest/simple/instances_controller.rb index 5c776ae..8ffa869 100644 --- a/app/controllers/rest/simple/instances_controller.rb +++ b/app/controllers/rest/simple/instances_controller.rb @@ -1,50 +1,54 @@ class Rest::Simple::InstancesControl...
dedomenon/rest_simple
df391b34a030aae53130f275b59d4fe3e36b336b
firts commit
diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ff4e865 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +################################################################################ +#This file is part of Dedomenon. +# +#Dedomenon is free software: you can redistribute it and/or modify +#it under th...
grampelberg/snark-maven
a232de5909034566edc450305d88a10175751b39
Oops. Can't do that.
diff --git a/build.xml b/build.xml index aba9a7e..6921971 100644 --- a/build.xml +++ b/build.xml @@ -1,214 +1,214 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
42be267f9d2a5e1fa60dc67683327098c57ba200
Allow 1.6 source but continue to target 1.5 bytecode.
diff --git a/build.xml b/build.xml index 6921971..aba9a7e 100644 --- a/build.xml +++ b/build.xml @@ -1,214 +1,214 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
2bed718e8a17c43cc7bd17b27071963e6caf6034
Shut your pie hole snark.
diff --git a/build.xml b/build.xml index f1b1304..6921971 100644 --- a/build.xml +++ b/build.xml @@ -1,214 +1,214 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
ece1febbe08c8d4f17bfda8c47baefa2688279f3
Fix failure to shut down acceptor due to incorrect local variable instantiation (thanks to Rodrigo Garcia Carmona <rodrigo@dit.upm.es>)
diff --git a/src/java/org/klomp/snark/Snark.java b/src/java/org/klomp/snark/Snark.java index 6d28614..c490474 100644 --- a/src/java/org/klomp/snark/Snark.java +++ b/src/java/org/klomp/snark/Snark.java @@ -1,380 +1,380 @@ /* * Snark - Main snark program startup class. Copyright (C) 2003 Mark J. Wielaard * * This...
grampelberg/snark-maven
bd6b400e5af26193b41bb38d11efdd94b17475c5
This syntax is not valid in <javadoc>
diff --git a/build.xml b/build.xml index a617577..f1b1304 100644 --- a/build.xml +++ b/build.xml @@ -1,215 +1,214 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
1926543c60a7c84b28f26ca68626d8714ee83766
New safer library locating process.
diff --git a/build.xml b/build.xml index f079c57..a617577 100644 --- a/build.xml +++ b/build.xml @@ -1,215 +1,215 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
04ec56750ca8214978514aa8aa68af5bf87695f8
fix logging, start troubleshooting NoRouteToHost problem
diff --git a/src/java/org/klomp/snark/Peer.java b/src/java/org/klomp/snark/Peer.java index 602785b..722b118 100644 --- a/src/java/org/klomp/snark/Peer.java +++ b/src/java/org/klomp/snark/Peer.java @@ -1,394 +1,393 @@ /* * Peer - All public information concerning a peer. Copyright (C) 2003 Mark J. * Wielaard * ...
grampelberg/snark-maven
30071d899df0c51027cea5c2e8219badbaa6c44e
Properly truncate incorrectly sized files, check in with tracker more frequently, add command line progress monitor
diff --git a/build.xml b/build.xml index 35d13c1..f079c57 100644 --- a/build.xml +++ b/build.xml @@ -1,214 +1,215 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
18e7ce172976fd0a07d94229d090630de27ade4e
A bevy of snark bugfixes: notify the tracker upon abort and immediately upon finish
diff --git a/src/java/org/klomp/snark/PeerCoordinator.java b/src/java/org/klomp/snark/PeerCoordinator.java index 7eaf791..8d8063c 100644 --- a/src/java/org/klomp/snark/PeerCoordinator.java +++ b/src/java/org/klomp/snark/PeerCoordinator.java @@ -1,488 +1,498 @@ /* * PeerCoordinator - Coordinates which peers do what (...
grampelberg/snark-maven
b2ea775ee072ed993de74732797c05606470a0f5
Actually get retroweaver to copy
diff --git a/build.xml b/build.xml index 75a1fd7..35d13c1 100644 --- a/build.xml +++ b/build.xml @@ -1,211 +1,214 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
60afb86bc5c42461d53e0cd45d223e84d6af6f07
snark now uses libs-incl
diff --git a/build.xml b/build.xml index 4944034..75a1fd7 100644 --- a/build.xml +++ b/build.xml @@ -1,208 +1,211 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
e54e1623df01b46402de7f94b8c345fcfc785883
Added clean and distclean.
diff --git a/build.xml b/build.xml index ed9ff1d..4944034 100644 --- a/build.xml +++ b/build.xml @@ -1,202 +1,208 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
46933983b2c6b2d4ab3b38a9791be077b410b049
so did snark.
diff --git a/build.xml b/build.xml index 78e32c6..ed9ff1d 100644 --- a/build.xml +++ b/build.xml @@ -1,198 +1,202 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
25cda7aaa3d76d46a62cf3bb1f6eb04e0fa993e1
full-featured standalone tracker support for Snark
diff --git a/src/java/org/klomp/snark/HttpAcceptor.java b/src/java/org/klomp/snark/HttpAcceptor.java index 6f4156b..7f234b3 100644 --- a/src/java/org/klomp/snark/HttpAcceptor.java +++ b/src/java/org/klomp/snark/HttpAcceptor.java @@ -1,240 +1,245 @@ /* * HttpAcceptor - Accepts incomming http connections. Copyright (C...
grampelberg/snark-maven
d77718637362c0846c9f7696ccd7048eb836063f
Use the sorted list, instead of trusting the set's iteration order
diff --git a/src/java/org/klomp/snark/bencode/BEncoder.java b/src/java/org/klomp/snark/bencode/BEncoder.java index d39fa7f..7dd79ac 100644 --- a/src/java/org/klomp/snark/bencode/BEncoder.java +++ b/src/java/org/klomp/snark/bencode/BEncoder.java @@ -1,171 +1,171 @@ /* * BDecoder - Converts an InputStream to BEValues....
grampelberg/snark-maven
f0827fc5f82cd0cde5358efce5353e3ea47eea9e
one last missing library before the build is working...
diff --git a/lib/LIBS b/lib/LIBS index 55b90ff..60ae563 100644 --- a/lib/LIBS +++ b/lib/LIBS @@ -1,3 +1,4 @@ gtk2.8.jar gnome2.12.jar glib0.2.jar +retroweaver-all-1.2.2.jar
grampelberg/snark-maven
af54574e4c2f81289a2d83f62ff2d282cc952597
add in missing lib folder with manifest and LIBS file
diff --git a/lib/LIBS b/lib/LIBS new file mode 100644 index 0000000..55b90ff --- /dev/null +++ b/lib/LIBS @@ -0,0 +1,3 @@ +gtk2.8.jar +gnome2.12.jar +glib0.2.jar diff --git a/lib/manifest-gtk.mf b/lib/manifest-gtk.mf new file mode 100644 index 0000000..f18b673 --- /dev/null +++ b/lib/manifest-gtk.mf @@ -0,0 +1 @@ +Main...
grampelberg/snark-maven
8682b7310c4efc7687a9a2bb673a81e7d7b25e13
generate better-named jarfiles, with no gtk being default
diff --git a/build.xml b/build.xml index 7faf400..78e32c6 100644 --- a/build.xml +++ b/build.xml @@ -1,198 +1,198 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
5023fd271b5418ce78604f7d9c1affbdb1ca7114
Proper exception handling and gcj build jiggling
diff --git a/build.xml b/build.xml index cde8d62..7faf400 100644 --- a/build.xml +++ b/build.xml @@ -1,203 +1,198 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
93617a75c6aa9abb776cd3b656f37595dece954c
Comment existing code better, update GTK code to reflect new GTK API, eliminate System.err.println
diff --git a/src/java/org/klomp/snark/PeerMonitorTask.java b/src/java/org/klomp/snark/PeerMonitorTask.java index 85428a9..839f010 100644 --- a/src/java/org/klomp/snark/PeerMonitorTask.java +++ b/src/java/org/klomp/snark/PeerMonitorTask.java @@ -1,128 +1,130 @@ /* * PeerMonitorTasks - TimerTask that monitors the peer...
grampelberg/snark-maven
d59bb14a1983f1f86cae898111c4e703e652392e
refactor everything to use standard Java logging facilities
diff --git a/src/java/org/klomp/snark/ConnectionAcceptor.java b/src/java/org/klomp/snark/ConnectionAcceptor.java index 4b62d1b..bc72e36 100644 --- a/src/java/org/klomp/snark/ConnectionAcceptor.java +++ b/src/java/org/klomp/snark/ConnectionAcceptor.java @@ -1,145 +1,151 @@ /* * ConnectionAcceptor - Accepts connection...
grampelberg/snark-maven
4a50e4bc60aed0187e7025958fcf2f75e7945205
properly separate out gtk stuff from regular library
diff --git a/build.xml b/build.xml index 68a392f..cde8d62 100644 --- a/build.xml +++ b/build.xml @@ -1,204 +1,203 @@ <?xml version="1.0" standalone="yes"?> <!-- build configuration --> <project name="snark" default="compile" basedir="."> <!-- import overriding properties --> <property file="build.properties"...
grampelberg/snark-maven
0bfe2df9d56ed930f8e8235ae98f2b097adec10a
more rearranging, almost there...
diff --git a/Makefile b/Makefile index f1ea57d..a812278 100644 --- a/Makefile +++ b/Makefile @@ -1,84 +1,85 @@ # Simple Makefile for creating a native binary and a legacy jar file with gcj. GCJ=gcj GCJ_FLAGS=-g -O2 #JAVAC=$(GCJ) -C #JAVAC_FLAGS=$(GCJ_FLAGS) JAVAC=jikes-classpath JAVAC_FLAGS=-g -O -source 1.5...
grampelberg/snark-maven
37110b92b7b63fd4a9c0651afa435db848ea820b
fix deprecation issues in GTK stuff
diff --git a/org/klomp/snark/SnarkGnome.java b/org/klomp/snark/SnarkGnome.java index 5a7de91..00e15ef 100644 --- a/org/klomp/snark/SnarkGnome.java +++ b/org/klomp/snark/SnarkGnome.java @@ -1,565 +1,567 @@ /* * SnarkGnome - Main snark program startup class which uses a Gnome UI. * Copyright (C) 2003 Mark J. Wielaar...
grampelberg/snark-maven
03cf307e423014993c7e085e2d35c0981818d410
add myself to authors, remove Eclipse cruft
diff --git a/.classpath b/.classpath deleted file mode 100644 index d7586e7..0000000 --- a/.classpath +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path=""/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry ...
grampelberg/snark-maven
403c9ae1141185c5a4db0090482f63aa25382772
Initial import of slightly modified Snark code from http://www.klomp.org/snark/snark-0.5.tar.gz
diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..d7586e7 --- /dev/null +++ b/.classpath @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path=""/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind...
filewatcher/filewatcher
17ea2f592e26ea8f7c13ec599f0a3fcf483632a1
Resolve new RuboCop offenses
diff --git a/filewatcher.gemspec b/filewatcher.gemspec index caf6fac..8f6c87f 100644 --- a/filewatcher.gemspec +++ b/filewatcher.gemspec @@ -1,27 +1,27 @@ # frozen_string_literal: true require_relative 'lib/filewatcher' require_relative 'lib/filewatcher/version' Gem::Specification.new do |s| s.name ...