assorted-commits Mailing List for Assorted projects (Page 38)
Brought to you by:
yangzhang
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(86) |
Feb
(265) |
Mar
(96) |
Apr
(47) |
May
(136) |
Jun
(28) |
Jul
(57) |
Aug
(42) |
Sep
(20) |
Oct
(67) |
Nov
(37) |
Dec
(34) |
2009 |
Jan
(39) |
Feb
(85) |
Mar
(96) |
Apr
(24) |
May
(82) |
Jun
(13) |
Jul
(10) |
Aug
(8) |
Sep
(2) |
Oct
(20) |
Nov
(31) |
Dec
(17) |
2010 |
Jan
(16) |
Feb
(11) |
Mar
(17) |
Apr
(53) |
May
(31) |
Jun
(13) |
Jul
(3) |
Aug
(6) |
Sep
(11) |
Oct
(4) |
Nov
(17) |
Dec
(17) |
2011 |
Jan
(3) |
Feb
(19) |
Mar
(5) |
Apr
(17) |
May
(3) |
Jun
(4) |
Jul
(14) |
Aug
(3) |
Sep
(2) |
Oct
(1) |
Nov
(3) |
Dec
(2) |
2012 |
Jan
(3) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
(4) |
Aug
(5) |
Sep
(2) |
Oct
(3) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(9) |
Apr
(5) |
May
|
Jun
(2) |
Jul
(1) |
Aug
(10) |
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
2014 |
Jan
(1) |
Feb
(3) |
Mar
(3) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <yan...@us...> - 2008-09-30 07:04:39
|
Revision: 977 http://assorted.svn.sourceforge.net/assorted/?rev=977&view=rev Author: yangzhang Date: 2008-09-30 07:04:34 +0000 (Tue, 30 Sep 2008) Log Message: ----------- added rel for reloading Modified Paths: -------------- shell-tools/trunk/src/bash-commons/bashrc.bash Modified: shell-tools/trunk/src/bash-commons/bashrc.bash =================================================================== --- shell-tools/trunk/src/bash-commons/bashrc.bash 2008-09-29 23:57:16 UTC (rev 976) +++ shell-tools/trunk/src/bash-commons/bashrc.bash 2008-09-30 07:04:34 UTC (rev 977) @@ -625,6 +625,10 @@ reattach } +rel() { + . ~/.bashrc +} + #function set_title() { # if [ $# -eq 0 ] ; then # eval set -- "$PWD" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-29 23:57:32
|
Revision: 976 http://assorted.svn.sourceforge.net/assorted/?rev=976&view=rev Author: yangzhang Date: 2008-09-29 23:57:16 +0000 (Mon, 29 Sep 2008) Log Message: ----------- added binary search Added Paths: ----------- sandbox/trunk/src/py/bisearch.py Added: sandbox/trunk/src/py/bisearch.py =================================================================== --- sandbox/trunk/src/py/bisearch.py (rev 0) +++ sandbox/trunk/src/py/bisearch.py 2008-09-29 23:57:16 UTC (rev 976) @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +def bisect(xs, q): + if len(xs) == 1: + return 0 + else: + midpt = xs[len(xs)/2] + print midpt + if q < midpt: + return bisect(xs[:len(xs)/2], q) + else: + return len(xs)/2 + bisect(xs[len(xs)/2:], q) + +print bisect([11,12,14,15,16,19,21,22,25], 22) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 19:14:43
|
Revision: 975 http://assorted.svn.sourceforge.net/assorted/?rev=975&view=rev Author: yangzhang Date: 2008-09-25 19:14:35 +0000 (Thu, 25 Sep 2008) Log Message: ----------- renamed Added Paths: ----------- mit-tools/trunk/src/mit-mako-render.bash Removed Paths: ------------- mit-tools/trunk/src/mit-mako-render.py Copied: mit-tools/trunk/src/mit-mako-render.bash (from rev 974, mit-tools/trunk/src/mit-mako-render.py) =================================================================== --- mit-tools/trunk/src/mit-mako-render.bash (rev 0) +++ mit-tools/trunk/src/mit-mako-render.bash 2008-09-25 19:14:35 UTC (rev 975) @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +. /mit/y_z/.local/armed/bin/y_z-env + +exec python -c "$( cat << "EOF" +def render(data): + from mako.template import Template + from mako.lookup import TemplateLookup + + lookup = TemplateLookup(["."]) + return Template(data, lookup=lookup).render_unicode().encode('utf-8') + +def main(argv=None): + from os.path import isfile + from sys import stdin + + if argv is None: + import sys + argv = sys.argv + + from optparse import OptionParser + + parser = OptionParser("usage: %prog [FILENAME]") + + opts, args = parser.parse_args(argv[1:]) + if len(args) not in (0, 1): + parser.error("wrong number of arguments") # Will exit + + if (len(args) == 0) or (args[0] == "-"): + fo = stdin + else: + filename = args[0] + if not isfile(filename): + raise SystemExit("error: can't find %s" % filename) + fo = open(filename) + + fo.readline() + data = fo.read() + print render(data) + +if __name__ == "__main__": + main() +EOF +)" "$@" Deleted: mit-tools/trunk/src/mit-mako-render.py =================================================================== --- mit-tools/trunk/src/mit-mako-render.py 2008-09-25 19:14:12 UTC (rev 974) +++ mit-tools/trunk/src/mit-mako-render.py 2008-09-25 19:14:35 UTC (rev 975) @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -. /mit/y_z/.local/armed/bin/y_z-env - -exec python -c "$( cat << "EOF" -def render(data): - from mako.template import Template - from mako.lookup import TemplateLookup - - lookup = TemplateLookup(["."]) - return Template(data, lookup=lookup).render_unicode().encode('utf-8') - -def main(argv=None): - from os.path import isfile - from sys import stdin - - if argv is None: - import sys - argv = sys.argv - - from optparse import OptionParser - - parser = OptionParser("usage: %prog [FILENAME]") - - opts, args = parser.parse_args(argv[1:]) - if len(args) not in (0, 1): - parser.error("wrong number of arguments") # Will exit - - if (len(args) == 0) or (args[0] == "-"): - fo = stdin - else: - filename = args[0] - if not isfile(filename): - raise SystemExit("error: can't find %s" % filename) - fo = open(filename) - - fo.readline() - data = fo.read() - print render(data) - -if __name__ == "__main__": - main() -EOF -)" "$@" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 19:14:22
|
Revision: 974 http://assorted.svn.sourceforge.net/assorted/?rev=974&view=rev Author: yangzhang Date: 2008-09-25 19:14:12 +0000 (Thu, 25 Sep 2008) Log Message: ----------- introduced specialized interpreters to avoid running scripts via stdin (since shebang doesn't take multiple arguments) Modified Paths: -------------- mit-tools/trunk/src/mit-mako-render.py mit-tools/trunk/src/y_z-env.bash Added Paths: ----------- mit-tools/trunk/src/mit-python.bash Modified: mit-tools/trunk/src/mit-mako-render.py =================================================================== --- mit-tools/trunk/src/mit-mako-render.py 2008-09-25 17:37:17 UTC (rev 973) +++ mit-tools/trunk/src/mit-mako-render.py 2008-09-25 19:14:12 UTC (rev 974) @@ -1,5 +1,8 @@ -#!/usr/bin/env python +#!/usr/bin/env bash +. /mit/y_z/.local/armed/bin/y_z-env + +exec python -c "$( cat << "EOF" def render(data): from mako.template import Template from mako.lookup import TemplateLookup @@ -37,3 +40,5 @@ if __name__ == "__main__": main() +EOF +)" "$@" Added: mit-tools/trunk/src/mit-python.bash =================================================================== --- mit-tools/trunk/src/mit-python.bash (rev 0) +++ mit-tools/trunk/src/mit-python.bash 2008-09-25 19:14:12 UTC (rev 974) @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +. /mit/y_z/.local/armed/bin/y_z-env +exec python "$@" Property changes on: mit-tools/trunk/src/mit-python.bash ___________________________________________________________________ Added: svn:executable + * Modified: mit-tools/trunk/src/y_z-env.bash =================================================================== --- mit-tools/trunk/src/y_z-env.bash 2008-09-25 17:37:17 UTC (rev 973) +++ mit-tools/trunk/src/y_z-env.bash 2008-09-25 19:14:12 UTC (rev 974) @@ -2,5 +2,3 @@ export PATH=/mit/y_z/.local/pkg/mit-tools/bin:$PATH export PYTHONPATH=/mit/6.00/web_scripts/new/:/mit/y_z/.local/armed/lib/python2.5/site-packages:/mit/y_z/.toast/armed/lib/python2.5/site-packages:/mit/python/lib/python2.5/site-packages:$PYTHONPATH - -tail -n +2 "$@" | $( head -2 "$@" | tail -1 ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 17:37:26
|
Revision: 973 http://assorted.svn.sourceforge.net/assorted/?rev=973&view=rev Author: yangzhang Date: 2008-09-25 17:37:17 +0000 (Thu, 25 Sep 2008) Log Message: ----------- removed corey paper Modified Paths: -------------- personal-site/trunk/src/index.txt Removed Paths: ------------- personal-site/trunk/static/papers/corey-osdi08.pdf Modified: personal-site/trunk/src/index.txt =================================================================== --- personal-site/trunk/src/index.txt 2008-09-25 15:23:22 UTC (rev 972) +++ personal-site/trunk/src/index.txt 2008-09-25 17:37:17 UTC (rev 973) @@ -157,7 +157,7 @@ Morris (MIT), Aleksey Pesterev (MIT), Lex Stein (Microsoft Research Asia), Ming Wu (Microsoft Research Asia), Yuehua Dai (Xi'an Jiaotong University), Yang Zhang (MIT), Zheng Zhang (Microsoft Research Asia). _Corey: an - operating system for many cores_. OSDI 2008. [PDF](papers/corey-osdi08.pdf). + operating system for many cores_. OSDI 2008. - Michael Cafarella, Alon Halevy, Daisy Wang, Eugene Wu, Yang Zhang. _WebTables: Exploring the Power of Tables on the Web_. VLDB 2008. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 15:23:37
|
Revision: 972 http://assorted.svn.sourceforge.net/assorted/?rev=972&view=rev Author: yangzhang Date: 2008-09-25 15:23:22 +0000 (Thu, 25 Sep 2008) Log Message: ----------- forgot to add code Added Paths: ----------- mit-tools/trunk/src/mit-mako-render.py mit-tools/trunk/src/y_z-env.bash Added: mit-tools/trunk/src/mit-mako-render.py =================================================================== --- mit-tools/trunk/src/mit-mako-render.py (rev 0) +++ mit-tools/trunk/src/mit-mako-render.py 2008-09-25 15:23:22 UTC (rev 972) @@ -0,0 +1,39 @@ +#!/usr/bin/env python + +def render(data): + from mako.template import Template + from mako.lookup import TemplateLookup + + lookup = TemplateLookup(["."]) + return Template(data, lookup=lookup).render_unicode().encode('utf-8') + +def main(argv=None): + from os.path import isfile + from sys import stdin + + if argv is None: + import sys + argv = sys.argv + + from optparse import OptionParser + + parser = OptionParser("usage: %prog [FILENAME]") + + opts, args = parser.parse_args(argv[1:]) + if len(args) not in (0, 1): + parser.error("wrong number of arguments") # Will exit + + if (len(args) == 0) or (args[0] == "-"): + fo = stdin + else: + filename = args[0] + if not isfile(filename): + raise SystemExit("error: can't find %s" % filename) + fo = open(filename) + + fo.readline() + data = fo.read() + print render(data) + +if __name__ == "__main__": + main() Property changes on: mit-tools/trunk/src/mit-mako-render.py ___________________________________________________________________ Added: svn:executable + * Added: mit-tools/trunk/src/y_z-env.bash =================================================================== --- mit-tools/trunk/src/y_z-env.bash (rev 0) +++ mit-tools/trunk/src/y_z-env.bash 2008-09-25 15:23:22 UTC (rev 972) @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +export PATH=/mit/y_z/.local/pkg/mit-tools/bin:$PATH +export PYTHONPATH=/mit/6.00/web_scripts/new/:/mit/y_z/.local/armed/lib/python2.5/site-packages:/mit/y_z/.toast/armed/lib/python2.5/site-packages:/mit/python/lib/python2.5/site-packages:$PYTHONPATH + +tail -n +2 "$@" | $( head -2 "$@" | tail -1 ) Property changes on: mit-tools/trunk/src/y_z-env.bash ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 14:49:19
|
Revision: 971 http://assorted.svn.sourceforge.net/assorted/?rev=971&view=rev Author: yangzhang Date: 2008-09-25 14:49:11 +0000 (Thu, 25 Sep 2008) Log Message: ----------- added mit-tools Added Paths: ----------- mit-tools/ mit-tools/trunk/ mit-tools/trunk/setup.bash mit-tools/trunk/src/ Copied: mit-tools/trunk/setup.bash (from rev 968, shell-tools/trunk/setup.bash) =================================================================== --- mit-tools/trunk/setup.bash (rev 0) +++ mit-tools/trunk/setup.bash 2008-09-25 14:49:11 UTC (rev 971) @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +pkg=shell-tools +. simple-setup.bash || exit 1 + +install_strip bin/ src/* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 04:10:34
|
Revision: 970 http://assorted.svn.sourceforge.net/assorted/?rev=970&view=rev Author: yangzhang Date: 2008-09-25 04:10:23 +0000 (Thu, 25 Sep 2008) Log Message: ----------- start of simple c++ topcoder preprocessor Added Paths: ----------- topcoder-tools/trunk/src/pp/ topcoder-tools/trunk/src/pp/pp.py Added: topcoder-tools/trunk/src/pp/pp.py =================================================================== --- topcoder-tools/trunk/src/pp/pp.py (rev 0) +++ topcoder-tools/trunk/src/pp/pp.py 2008-09-25 04:10:23 UTC (rev 970) @@ -0,0 +1,42 @@ +#!/usr/bin/env python + +"""Simple preprocessor for TopCoder sources.""" + +from commons.startup import run_main +from sys import stdin + +def parse( s ): + close = -1 + allargs = [] + while True: + pos = s[close + 1:].find('pp') + if pos < 0: break + open = pos + 2 + nested = 0 + args = [] + for i in xrange(open, len(s)): + c = s[i] + if False: pass + elif c.isspace(): pass + elif c == '(': + nested += 1 + if nested == 1: argstart = i+1 + elif c == ',' and nested == 1: + args.append( s[argstart:i] ) + argstart = i + 1 + elif c == ')': + args.append( s[argstart:i] ) + nested -= 1 + if nested == 1: break + assert c.isspace() or nested >= 0 + close = i + allargs.append(args) + return allargs + +def main( argv ): + print parse( 'pp(hello,world!)' ) + print parse( 'pp ( hello(hello),(world(world)) world!) pp ( hello(hello),(world(world)) world!) ' ) + for line in stdin: + parse(line) + +run_main() Property changes on: topcoder-tools/trunk/src/pp/pp.py ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-25 04:09:16
|
Revision: 969 http://assorted.svn.sourceforge.net/assorted/?rev=969&view=rev Author: yangzhang Date: 2008-09-25 04:09:01 +0000 (Thu, 25 Sep 2008) Log Message: ----------- tweak Modified Paths: -------------- sandbox/trunk/src/cc/longlongint.cc Modified: sandbox/trunk/src/cc/longlongint.cc =================================================================== --- sandbox/trunk/src/cc/longlongint.cc 2008-09-18 02:47:37 UTC (rev 968) +++ sandbox/trunk/src/cc/longlongint.cc 2008-09-25 04:09:01 UTC (rev 969) @@ -18,8 +18,8 @@ int main() { -// long long int x = 32; - long int x = 32; + long long int x = 32; +// long int x = 32; f(x); int64_t y = 32; f(y); @@ -27,13 +27,12 @@ // size of the various ints cout << sizeof(int64_t) << endl; + cout << sizeof(int32_t) << endl; cout << sizeof(long long) << endl; - cout << sizeof(long int) << endl; cout << sizeof(long) << endl; cout << sizeof(int) << endl; cout << sizeof(0LL) << endl; cout << sizeof(0L) << endl; - // names are not very helpful // cout << typeid(int64_t).name() << endl; // cout << typeid(long long).name() << endl; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-18 02:47:26
|
Revision: 968 http://assorted.svn.sourceforge.net/assorted/?rev=968&view=rev Author: yangzhang Date: 2008-09-18 02:47:37 +0000 (Thu, 18 Sep 2008) Log Message: ----------- added reattach Modified Paths: -------------- shell-tools/trunk/src/bash-commons/bashrc.bash Modified: shell-tools/trunk/src/bash-commons/bashrc.bash =================================================================== --- shell-tools/trunk/src/bash-commons/bashrc.bash 2008-09-18 02:47:32 UTC (rev 967) +++ shell-tools/trunk/src/bash-commons/bashrc.bash 2008-09-18 02:47:37 UTC (rev 968) @@ -617,6 +617,14 @@ find "${2:-.}" -name "$1" } +reattach() { + screen -d -r main +} + +rea() { + reattach +} + #function set_title() { # if [ $# -eq 0 ] ; then # eval set -- "$PWD" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-18 02:47:22
|
Revision: 967 http://assorted.svn.sourceforge.net/assorted/?rev=967&view=rev Author: yangzhang Date: 2008-09-18 02:47:32 +0000 (Thu, 18 Sep 2008) Log Message: ----------- distinguish empty files/dirs more clearly Modified Paths: -------------- shell-tools/trunk/src/bash-commons/common.bash Modified: shell-tools/trunk/src/bash-commons/common.bash =================================================================== --- shell-tools/trunk/src/bash-commons/common.bash 2008-09-17 03:00:55 UTC (rev 966) +++ shell-tools/trunk/src/bash-commons/common.bash 2008-09-18 02:47:32 UTC (rev 967) @@ -374,16 +374,12 @@ echo "$dir" } -is-empty() { +is-empty-file() { [[ -f "$1" && "$( stat -c%s "$1" )" == 0 ]] } -rm-empty() { - for i in "$@" ; do - if is-empty "$i" - then rm "$i" - fi - done +rm-empty-files() { + find "${1:-}" -type f -empty -print0 | xargs -0 rm } run-if-def() { @@ -467,6 +463,10 @@ xargs -0 -I_ ln -s "$( realpath "$src" )/_" "$dst/_" } +rm-empty-dirs() { + find "${1:-.}" -type d -empty -print0 | xargs -0r rmdir -p +} + #if ! is_declared indent ; then # noindent #else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-17 03:00:44
|
Revision: 966 http://assorted.svn.sourceforge.net/assorted/?rev=966&view=rev Author: yangzhang Date: 2008-09-17 03:00:55 +0000 (Wed, 17 Sep 2008) Log Message: ----------- added javafx ftdetect Modified Paths: -------------- configs/trunk/src/vim/plugin/_yang.vim Modified: configs/trunk/src/vim/plugin/_yang.vim =================================================================== --- configs/trunk/src/vim/plugin/_yang.vim 2008-09-17 03:00:38 UTC (rev 965) +++ configs/trunk/src/vim/plugin/_yang.vim 2008-09-17 03:00:55 UTC (rev 966) @@ -185,6 +185,7 @@ au BufWritePost *.bin set nomod | endif augroup END +au BufNewFile,BufRead *.fx setf fx " Java/Eclim "au BufNewFile,BufRead *.java iunmap <tab> "au BufNewFile,BufRead *.java setlocal cot+=longest | inoremap <buffer> . .<c-x><c-u> | inoremap <buffer> <c-j> <c-x><c-u> | nnoremap <silent> <buffer> <tab> :call eclim#util#FillTemplate("${", "}")<cr> | nnoremap <silent> <buffer> <leader>i :JavaImport<cr> | nnoremap <silent> <buffer> <leader>d :JavaDocSearch -x declarations<cr> | nnoremap <silent> <buffer> <cr> :JavaSearchContext<cr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-17 03:00:28
|
Revision: 965 http://assorted.svn.sourceforge.net/assorted/?rev=965&view=rev Author: yangzhang Date: 2008-09-17 03:00:38 +0000 (Wed, 17 Sep 2008) Log Message: ----------- added f-spot photo database backup Modified Paths: -------------- configs/trunk/src/cron/backup.bash Modified: configs/trunk/src/cron/backup.bash =================================================================== --- configs/trunk/src/cron/backup.bash 2008-09-13 17:32:41 UTC (rev 964) +++ configs/trunk/src/cron/backup.bash 2008-09-17 03:00:38 UTC (rev 965) @@ -7,6 +7,11 @@ else args= fi +src=~/.gnome2/f-spot/photos.db dst=~/personal/backups/f-spot/photos.db +if [ -f "$src" ] && ( ! [ -f "$dst" ] || ! diff -q "$src" "$dst" ) +then mkdir -p "$( dirname "$dst" )" ; cp "$src" "$dst" +fi + eval `keychain --eval --nogui id_dsa 2> /dev/null` export PASSPHRASE="$( cat ~/.backup.auth )" exec duplicity $args ~/personal/ scp://hv//export/home/yang/backup-zs.ath.cx This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-13 17:32:31
|
Revision: 964 http://assorted.svn.sourceforge.net/assorted/?rev=964&view=rev Author: yangzhang Date: 2008-09-13 17:32:41 +0000 (Sat, 13 Sep 2008) Log Message: ----------- workaround for safari xhtml rendering Modified Paths: -------------- personal-site/trunk/src/index.txt Modified: personal-site/trunk/src/index.txt =================================================================== --- personal-site/trunk/src/index.txt 2008-09-11 07:11:12 UTC (rev 963) +++ personal-site/trunk/src/index.txt 2008-09-13 17:32:41 UTC (rev 964) @@ -3,7 +3,7 @@ <img src="me-shadow.png" alt="Tim the Beaver and me" style="border: 5px solid; border-color: white; float: right;"/> -<a name="about" /> +<a name="about"></a> About me -------- @@ -17,7 +17,7 @@ [MIT]: http://mit.edu/ [UC Berkeley]: http://berkeley.edu/ -<a name="contact" /> +<a name="contact"></a> Contact information ------------------- @@ -48,7 +48,7 @@ </script> </div> -<a name="projects" /> +<a name="projects"></a> Projects -------- @@ -119,7 +119,7 @@ [Microsoft Search]: http://www.microsoft.com/windows/products/winfamily/desktopsearch/ [Microsoft SharePoint Portal Server]: http://www.microsoft.com/sharepoint/ -<a name="software" /> +<a name="software"></a> Misc Software ------------- @@ -145,7 +145,7 @@ [Simple Publications Manager]: http://pubmgr.sf.net/ [gbookmark2delicious]: http://gbookmark2delicious.googlecode.com/ -<a name="papers" /> +<a name="papers"></a> Papers ------ @@ -192,7 +192,7 @@ - Sam Madden --> -<a name="classes" /> +<a name="classes"></a> MIT classes ----------- @@ -205,7 +205,7 @@ - 6.033 Computer Systems Engineering (TA, spring 2007) - 6.867 Machine Learning (fall 2007) -<a name="stuff" /> +<a name="stuff"></a> Stuff ----- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-11 07:11:02
|
Revision: 963 http://assorted.svn.sourceforge.net/assorted/?rev=963&view=rev Author: yangzhang Date: 2008-09-11 07:11:12 +0000 (Thu, 11 Sep 2008) Log Message: ----------- added mako vim support Modified Paths: -------------- configs/trunk/src/vim/syntax/mako.vim Added Paths: ----------- configs/trunk/src/vim/ftdetect/mako.vim Added: configs/trunk/src/vim/ftdetect/mako.vim =================================================================== --- configs/trunk/src/vim/ftdetect/mako.vim (rev 0) +++ configs/trunk/src/vim/ftdetect/mako.vim 2008-09-11 07:11:12 UTC (rev 963) @@ -0,0 +1 @@ +au BufRead,BufNewFile *.mako set filetype=mako Modified: configs/trunk/src/vim/syntax/mako.vim =================================================================== --- configs/trunk/src/vim/syntax/mako.vim 2008-09-11 07:08:52 UTC (rev 962) +++ configs/trunk/src/vim/syntax/mako.vim 2008-09-11 07:11:12 UTC (rev 963) @@ -80,4 +80,4 @@ delc HiLink endif -let b:current_syntax = "eruby" +let b:current_syntax = "mako" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-11 07:08:44
|
Revision: 962 http://assorted.svn.sourceforge.net/assorted/?rev=962&view=rev Author: yangzhang Date: 2008-09-11 07:08:52 +0000 (Thu, 11 Sep 2008) Log Message: ----------- added dump.cgi Added Paths: ----------- sandbox/trunk/src/misc/dump.cgi Added: sandbox/trunk/src/misc/dump.cgi =================================================================== --- sandbox/trunk/src/misc/dump.cgi (rev 0) +++ sandbox/trunk/src/misc/dump.cgi 2008-09-11 07:08:52 UTC (rev 962) @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +# For exploring how CGI works. + +import os, sys + +print 'Content-type: text/plain\r' +print '\r' +print 'stdin:', repr(sys.stdin.read()) +print 'argv:', sys.argv +print 'env:', os.environ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-10 19:28:28
|
Revision: 961 http://assorted.svn.sourceforge.net/assorted/?rev=961&view=rev Author: yangzhang Date: 2008-09-10 19:28:19 +0000 (Wed, 10 Sep 2008) Log Message: ----------- added mako syntax Added Paths: ----------- configs/trunk/src/vim/syntax/mako.vim Added: configs/trunk/src/vim/syntax/mako.vim =================================================================== --- configs/trunk/src/vim/syntax/mako.vim (rev 0) +++ configs/trunk/src/vim/syntax/mako.vim 2008-09-10 19:28:19 UTC (rev 961) @@ -0,0 +1,83 @@ +" Vim syntax file +" Language: Mako +" Maintainer: Armin Ronacher <arm...@ac...> +" URL: http://lucumr.pocoo.org/ +" Last Change: 2007 April 8 +" Version: 0.6 +" +" Known Limitations +" the <%text> block does not have correct attributes + +" For version 5.x: Clear all syntax items +" For version 6.x: Quit when a syntax file was already loaded +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +if !exists("main_syntax") + let main_syntax = "html" +endif + +"Source the html syntax file +ru! syntax/html.vim +unlet b:current_syntax + +"Put the python syntax file in @pythonTop +syn include @pythonTop syntax/python.vim + +" End keywords +syn keyword makoEnd contained endfor endwhile endif endtry enddef + +" Block rules +syn region makoLine matchgroup=makoDelim start=#^\s*%# end=#$# keepend contains=@pythonTop,makoEnd +syn region makoBlock matchgroup=makoDelim start=#<%!\?# end=#%># keepend contains=@pythonTop,makoEnd + +" Variables +syn region makoNested start="{" end="}" transparent display contained contains=makoNested,@pythonTop +syn region makoVariable matchgroup=makoDelim start=#\${# end=#}# contains=makoNested,@pythonTop + +" Comments +syn region makoComment start="^\s*##" end="$" +syn region makoDocComment matchgroup=makoDelim start="<%doc>" end="</%doc>" keepend + +" Literal Blocks +syn region makoText matchgroup=makoDelim start="<%text[^>]*>" end="</%text>" + +" Attribute Sublexing +syn match makoAttributeKey containedin=makoTag contained "[a-zA-Z_][a-zA-Z0-9_]*=" +syn region makoAttributeValue containedin=makoTag contained start=/"/ skip=/\\"/ end=/"/ +syn region makoAttributeValue containedin=MakoTag contained start=/'/ skip=/\\'/ end=/'/ + +" Tags +syn region makoTag matchgroup=makoDelim start="<%\(def\|call\|page\|include\|namespace\|inherit\)\>" end="/\?>" +syn match makoDelim "</%\(def\|call\)>" + +" Newline Escapes +syn match makoEscape /\\$/ + +" Default highlighting links +if version >= 508 || !exists("did_mako_syn_inits") + if version < 508 + let did_mako_syn_inits = 1 + com -nargs=+ HiLink hi link <args> + else + com -nargs=+ HiLink hi def link <args> + endif + + HiLink makoDocComment makoComment + HiLink makoDefEnd makoDelim + + HiLink makoAttributeKey Type + HiLink makoAttributeValue String + HiLink makoText Normal + HiLink makoDelim Preproc + HiLink makoEnd Keyword + HiLink makoComment Comment + HiLink makoEscape Special + + delc HiLink +endif + +let b:current_syntax = "eruby" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-09 21:15:21
|
Revision: 960 http://assorted.svn.sourceforge.net/assorted/?rev=960&view=rev Author: yangzhang Date: 2008-09-09 21:15:23 +0000 (Tue, 09 Sep 2008) Log Message: ----------- added a description Added Paths: ----------- sandbox/trunk/src/nix/shebang/README Added: sandbox/trunk/src/nix/shebang/README =================================================================== --- sandbox/trunk/src/nix/shebang/README (rev 0) +++ sandbox/trunk/src/nix/shebang/README 2008-09-09 21:15:23 UTC (rev 960) @@ -0,0 +1,4 @@ +http://www.in-ulm.de/~mascheck/various/shebang/ + +"In practice, env must not be a script, because the #! mechanism only accepts +binary executables (except on UWIN and Minix)." This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-09 20:53:57
|
Revision: 959 http://assorted.svn.sourceforge.net/assorted/?rev=959&view=rev Author: yangzhang Date: 2008-09-09 20:54:06 +0000 (Tue, 09 Sep 2008) Log Message: ----------- cannot use shebang script as interpreter for another shebang script Added Paths: ----------- sandbox/trunk/src/nix/ sandbox/trunk/src/nix/shebang/ sandbox/trunk/src/nix/shebang/interpreter.bash sandbox/trunk/src/nix/shebang/interpreter.py sandbox/trunk/src/nix/shebang/main.cgi Added: sandbox/trunk/src/nix/shebang/interpreter.bash =================================================================== --- sandbox/trunk/src/nix/shebang/interpreter.bash (rev 0) +++ sandbox/trunk/src/nix/shebang/interpreter.bash 2008-09-09 20:54:06 UTC (rev 959) @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +python -c 'import sys; print sys.stdin.read()' "$@" Property changes on: sandbox/trunk/src/nix/shebang/interpreter.bash ___________________________________________________________________ Added: svn:executable + * Added: sandbox/trunk/src/nix/shebang/interpreter.py =================================================================== --- sandbox/trunk/src/nix/shebang/interpreter.py (rev 0) +++ sandbox/trunk/src/nix/shebang/interpreter.py 2008-09-09 20:54:06 UTC (rev 959) @@ -0,0 +1,2 @@ +#!/usr/bin/env python +import sys; print sys.stdin.read() Property changes on: sandbox/trunk/src/nix/shebang/interpreter.py ___________________________________________________________________ Added: svn:executable + * Added: sandbox/trunk/src/nix/shebang/main.cgi =================================================================== --- sandbox/trunk/src/nix/shebang/main.cgi (rev 0) +++ sandbox/trunk/src/nix/shebang/main.cgi 2008-09-09 20:54:06 UTC (rev 959) @@ -0,0 +1,2 @@ +#!./interpreter.py +hello, world! Property changes on: sandbox/trunk/src/nix/shebang/main.cgi ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-09-07 19:16:37
|
Revision: 958 http://assorted.svn.sourceforge.net/assorted/?rev=958&view=rev Author: yangzhang Date: 2008-09-07 19:16:45 +0000 (Sun, 07 Sep 2008) Log Message: ----------- hiding contact info temporarily Modified Paths: -------------- personal-site/trunk/src/index.txt personal-site/trunk/src/links.txt Modified: personal-site/trunk/src/index.txt =================================================================== --- personal-site/trunk/src/index.txt 2008-08-31 03:03:26 UTC (rev 957) +++ personal-site/trunk/src/index.txt 2008-09-07 19:16:45 UTC (rev 958) @@ -35,14 +35,14 @@ // <![CDATA[ document.write( '<ul>' ); item( 'Email', 'mailto:', 'mit.edu', 'y_z' ); - item( 'AIM', 'aim:goim?screenname=', 'sorta lame' ); - item( 'MSN', null, 'hotmail.com', 'noneofthegoodnameswereleft' ); - item( 'Yahoo', 'ymsgr:sendIM?', 'overbored' ); - item( 'Jabber (Google)', 'xmpp:', 'gmail.com', 'yaaang' ); - item( 'Skype', 'callto://', 'yaaang' ); - item( 'FreeNode', 'irc://irc.freenode.org/', 'zeeee' ); - item( '"Office"', 'MIT/CSAIL <a href="http://whereis.mit.edu/map-jpg?selection=32&Buildings=go">32</a>-<a href="http://www.csail.mit.edu/resources/maps/9G/G908.gif">G908</a>, <a href="http://www.eecs.mit.edu/stata-link.html">Stata Center</a>, <a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=32+Vassar+St,+Cambridge,+MA+02139&sll=42.357926,-71.093616&sspn=0.00842,0.01575&ie=UTF8&ll=42.362682,-71.093495&spn=0.008419,0.01575&z=16&iwloc=addr">32 Vassar St., Cambridge, MA 02139</a>' ); - item( 'GPG public key', '<a href="yang.gpg.asc">yang.gpg.asc</a> (<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB1E65B60">MIT PKS entry</a>)' ); + //item( 'AIM', 'aim:goim?screenname=', 'sorta lame' ); + //item( 'MSN', null, 'hotmail.com', 'noneofthegoodnameswereleft' ); + //item( 'Yahoo', 'ymsgr:sendIM?', 'overbored' ); + //item( 'Jabber (Google)', 'xmpp:', 'gmail.com', 'yaaang' ); + //item( 'Skype', 'callto://', 'yaaang' ); + //item( 'FreeNode', 'irc://irc.freenode.org/', 'zeeee' ); + //item( '"Office"', 'MIT/CSAIL <a href="http://whereis.mit.edu/map-jpg?selection=32&Buildings=go">32</a>-<a href="http://www.csail.mit.edu/resources/maps/9G/G908.gif">G908</a>, <a href="http://www.eecs.mit.edu/stata-link.html">Stata Center</a>, <a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=32+Vassar+St,+Cambridge,+MA+02139&sll=42.357926,-71.093616&sspn=0.00842,0.01575&ie=UTF8&ll=42.362682,-71.093495&spn=0.008419,0.01575&z=16&iwloc=addr">32 Vassar St., Cambridge, MA 02139</a>' ); + //item( 'GPG public key', '<a href="yang.gpg.asc">yang.gpg.asc</a> (<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB1E65B60">MIT PKS entry</a>)' ); document.write( '</ul>' ); // ]]> </script> @@ -131,17 +131,19 @@ with any particular project above. - [Assorted Projects]: my code dump---find a bunch more programs here -- [Simple Publications Manager]: publication management web application - [gbookmark2delicious]: Python script to migrate/sync Google Bookmarks to del.icio.us +- [JSamp]: a simple sampling profiler for Java +- [Simple Publications Manager]: publication management web application - [ICFPC 2008 entry]: with Kwon An, Chris Lesniewski-Laas, and Greg Little - [BattleCode 2008 entry]: with Greg Little [Assorted Projects]: http://assorted.sf.net/ +[BattleCode 2008 entry]: http://www.assembla.com/spaces/battlecode2008 +[ICFPC 2008 entry]: http://www.assembla.com/spaces/icfpc08-csail +[JSamp]: http://jsamp.googlecode.com/ [Simple Publications Manager]: http://pubmgr.sf.net/ [gbookmark2delicious]: http://gbookmark2delicious.googlecode.com/ -[ICFPC 2008 entry]: http://www.assembla.com/spaces/icfpc08-csail -[BattleCode 2008 entry]: http://www.assembla.com/spaces/battlecode2008 <a name="papers" /> Modified: personal-site/trunk/src/links.txt =================================================================== --- personal-site/trunk/src/links.txt 2008-08-31 03:03:26 UTC (rev 957) +++ personal-site/trunk/src/links.txt 2008-09-07 19:16:45 UTC (rev 958) @@ -19,7 +19,7 @@ - [Facebook](http://www.facebook.com/profile.php?id=708869) - [LinkedIn](http://www.linkedin.com/in/yzhang) -[Blog]: http://scripts.mit.edu/~y_z/wp/ +[My blog]: http://y_z.scripts.mit.edu/wp/ [Bookmarks]: http://del.icio.us/yaaang/ [gbookmark2delicious]: http://gbookmark2delicious.googlecode.com/ [Google Reader Shared Items]: https://www.google.com/reader/shared/18352898346631652002 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-08-31 03:03:19
|
Revision: 957 http://assorted.svn.sourceforge.net/assorted/?rev=957&view=rev Author: yangzhang Date: 2008-08-31 03:03:26 +0000 (Sun, 31 Aug 2008) Log Message: ----------- added cddb flac tagger Added Paths: ----------- sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/ sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/pretty.py sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/raw.py Added: sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/pretty.py =================================================================== --- sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/pretty.py (rev 0) +++ sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/pretty.py 2008-08-31 03:03:26 UTC (rev 957) @@ -0,0 +1,35 @@ +#!/usr/bin/env python + +from __future__ import with_statement +from mutagen.flac import FLAC +from re import compile + +with file('id.txt') as f: lines = f.read().split('\n') + +albumartist_pattern = compile( r'Artist: (.*)' ) +album_pattern = compile( r'Title: (.*)' ) +totaltracks_pattern = compile( r'(\d+) tracks' ) +track_pattern = compile( r" \[(?P<trackno>\d\d)\] '(?P<title>.+)' by (?P<artist>.+) \(.+\)" ) + +for line in lines: + m = albumartist_pattern.match(line) + if m: albumartist = m.group(1).strip() + + m = album_pattern.match(line) + if m: album = m.group(1).strip() + + m = totaltracks_pattern.match(line) + if m: totaltracks = m.group(1) + + m = track_pattern.match(line) + if m: + trackno = int( m.group('trackno') ) + f = FLAC('track%02d.cdda.flac' % trackno) + f.clear() + f['albumartist'] = albumartist + f['album'] = album + f['totaltracks'] = totaltracks + f['tracknumber'] = str(trackno) + f['title'] = m.group('title') + f['artist'] = m.group('artist') + f.save() Property changes on: sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/pretty.py ___________________________________________________________________ Added: svn:executable + * Added: sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/raw.py =================================================================== --- sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/raw.py (rev 0) +++ sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/raw.py 2008-08-31 03:03:26 UTC (rev 957) @@ -0,0 +1,32 @@ +#!/usr/bin/env python + +from __future__ import with_statement +from mutagen.flac import FLAC +from re import compile + +with file('id.txt') as f: + lines = [ tuple( line.split('=') ) + for line in f.read().strip().split('\n') + if not line.startswith( '#' ) ] + +titlepat = compile('TTITLE(\d+)') +totaltracks = max( int( m.group(1) ) + for m in + ( titlepat.match( field ) for field, value in lines ) + if m is not None ) + 1 + +for field, value in lines: + if field == 'DTITLE': albumartist, album = value.split(' / ') + + m = titlepat.match( field ) + if m: + trackno = int( m.group(1) ) + 1 + f = FLAC('track%02d.cdda.flac' % trackno) + f.clear() + f['albumartist'] = albumartist + f['album'] = album + f['totaltracks'] = str(totaltracks) + f['tracknumber'] = str(trackno) + f['title'] = value + f['artist'] = albumartist + f.save() Property changes on: sandbox/trunk/src/one-off-scripts/cddb-flac-tagger/raw.py ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-08-28 17:45:02
|
Revision: 956 http://assorted.svn.sourceforge.net/assorted/?rev=956&view=rev Author: yangzhang Date: 2008-08-28 17:45:09 +0000 (Thu, 28 Aug 2008) Log Message: ----------- added more documentation; tidied up gateway.py a bit Modified Paths: -------------- sharing-gateway/trunk/README sharing-gateway/trunk/src/gateway.py Modified: sharing-gateway/trunk/README =================================================================== --- sharing-gateway/trunk/README 2008-08-28 16:34:12 UTC (rev 955) +++ sharing-gateway/trunk/README 2008-08-28 17:45:09 UTC (rev 956) @@ -6,25 +6,42 @@ can then be re-exported. Part of this acts like `mount -a` in mounting/unmounting a set of filesystems, -but features: +but: -- YAML configuration file format +- uses a simple YAML configuration file format - can handle hostnames instead of IPs for CIFS shares - can create the mountpoint directories The rest of this is mostly documentation on how to configure your own servers -to do what you want. +for the gateway. Setup ----- +### Gateway Controller + +This is currently used for mounting, unmounting, and indexing. + Requirements: -- Python -- Python YAML +- [Python] +- [Python YAML] +[Python]: http://python.org/ +[Python YAML]: http://pyyaml.org/ + ### Web Frontend +Requirements: + +- [Apache httpd] 2.2 +- [mod_ssl] 2.8 +- [openssl] 2.2 + +[Apache httpd]: http://httpd.apache.org/ +[mod_ssl]: http://www.modssl.org/ +[openssl]: http://openssl.org/ + #### Create certificates The following is a summary of [Creating Certificate Authorities and self-signed Modified: sharing-gateway/trunk/src/gateway.py =================================================================== --- sharing-gateway/trunk/src/gateway.py 2008-08-28 16:34:12 UTC (rev 955) +++ sharing-gateway/trunk/src/gateway.py 2008-08-28 17:45:09 UTC (rev 956) @@ -1,7 +1,13 @@ #!/usr/bin/env python -'Manage a sharing gateway: enable/disable sharing networks.' +""" +Manage a sharing gateway: enable/disable sharing networks. Available commands: +- mount: mount all shares +- umount: unmount all shares +- index: generate indexes +""" + from __future__ import with_statement from commons.startup import run_main from commons.structs import structs2dicts, dicts2structs @@ -10,6 +16,7 @@ from path import path from socket import gethostbyname from subprocess import Popen, PIPE +from sys import stderr import yaml class my_exception( Exception ): pass @@ -25,7 +32,7 @@ raise my_exception( 'command failed with error code %s: %s' % ( p.returncode, cmd ) ) def main( argv ): - parser = OptionParser( usage = '%prog [OPTIONS] start | stop' ) + parser = OptionParser( usage = '%prog [OPTIONS] mount | umount | index' ) parser.add_option( '-c', '--config', default = '/etc/sharing-gateway.yaml', help = 'the YAML configuration file to read from' ) @@ -36,23 +43,29 @@ mountdir = path( cfg.gateway.mountdir ) indexdir = path( cfg.gateway.indexdir ) - if cmd == 'start': + if cmd == 'mount': for s in cfg.shares: if s.type == 'cifs': d = structs2dicts( s ) d[ 'ip' ] = gethostbyname( s.host ) mountpt = mountdir / s.name - run( [ 'sudo', 'mkdir', '-p', mountpt ] ) - run( 'sudo mount -t cifs -o'.split() + - [ 'user=%(user)s,pass=%(pass)s,ip=%(ip)s' % d, s.share, mountpt ] ) + try: + run( [ 'sudo', 'mkdir', '-p', mountpt ] ) + run( 'sudo mount -t cifs -o'.split() + + [ 'user=%(user)s,pass=%(pass)s,ip=%(ip)s' % d, s.share, mountpt ] ) + except: + print >> stderr, 'error mounting', s.name else: raise my_exception( 'unknown share type: %s' % s.type ) - elif cmd == 'stop': + elif cmd == 'umount': for s in cfg.shares: mountpt = mountdir / s.name - run( [ 'sudo', 'umount', mountpt ] ) - run( [ 'sudo', 'rmdir', mountpt ] ) - elif cmd == 'index': # requires super user + try: + run( [ 'sudo', 'umount', mountpt ] ) + run( [ 'sudo', 'rmdir', mountpt ] ) + except: + print >> stderr, 'error unmounting', s.name + elif cmd == 'index': for s in cfg.shares: print 'indexing', s.name mountpt = mountdir / s.name @@ -61,7 +74,7 @@ with file( index, 'w' ) as f: runout( [ 'ls', '-lR', mountpt ], f ) except: - pass + print >> stderr, 'error indexing', s.name else: raise my_exception( 'unknown command: %s' % cmd ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-08-28 16:34:03
|
Revision: 955 http://assorted.svn.sourceforge.net/assorted/?rev=955&view=rev Author: yangzhang Date: 2008-08-28 16:34:12 +0000 (Thu, 28 Aug 2008) Log Message: ----------- added a makefile for generating the home page; updated the home page Modified Paths: -------------- sharing-gateway/trunk/src/index.pandoc Added Paths: ----------- sharing-gateway/trunk/src/Makefile Added: sharing-gateway/trunk/src/Makefile =================================================================== --- sharing-gateway/trunk/src/Makefile (rev 0) +++ sharing-gateway/trunk/src/Makefile 2008-08-28 16:34:12 UTC (rev 955) @@ -0,0 +1,3 @@ +all: + pandoc -s -S -c http://assorted.sf.net/main.css index.pandoc | \ + sudo tee /var/www/gw/index.html Modified: sharing-gateway/trunk/src/index.pandoc =================================================================== --- sharing-gateway/trunk/src/index.pandoc 2008-08-28 08:13:34 UTC (rev 954) +++ sharing-gateway/trunk/src/index.pandoc 2008-08-28 16:34:12 UTC (rev 955) @@ -1,10 +1,16 @@ -Sharing Gateway -=============== +% Sharing Gateway +% Yang Zhang -Install my [CA certificate], so that you can trust without hassle all -certificates that I sign with it. (This website's certificate is the only one -for now.) +Welcome +------- +This server consolidates a number of different file shares together under one +interface. + +To begin using, install my [CA certificate], so that you can trust without +hassle all certificates that I sign with it. (This server's certificate is the +only one for now.) + [CA certificate]: http://zs.ath.cx/ca.crt Then log in to the SSL-enabled site, <https://zs.ath.cx/gw/>, using the login I @@ -13,3 +19,14 @@ Currently, we generate simple indexes so that you can search for files; these are in <https://zs.ath.cx/gw/index/>. To browse/retrieve the actual files, go to <https://zs.ath.cx/gw/raw/>. + +Each of the top-level directories represents a different share, so their speeds +and availability may vary. + +About +----- + +To find more information about this system or to run your own sharing gateway, +take a look at the [project homepage]. + +[project homepage]: http://assorted.sf.net/sharing-gateway/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-08-28 08:13:25
|
Revision: 954 http://assorted.svn.sourceforge.net/assorted/?rev=954&view=rev Author: yangzhang Date: 2008-08-28 08:13:34 +0000 (Thu, 28 Aug 2008) Log Message: ----------- omitted the statuses Modified Paths: -------------- assorted-site/trunk/index.txt Modified: assorted-site/trunk/index.txt =================================================================== --- assorted-site/trunk/index.txt 2008-08-28 08:12:52 UTC (rev 953) +++ assorted-site/trunk/index.txt 2008-08-28 08:13:34 UTC (rev 954) @@ -88,8 +88,9 @@ - [Scala Doc Search](http://y_z.scripts.mit.edu/sds/): navigate the Scala API documentation by class or object name (done) - [Picard Plugins](http://wiki.musicbrainz.org/PicardPlugins): simple tools - for [Picard Tagger] - - [Sharing Gateway](sharing-gateway): tools for consolidating and re-exporting file shares + for [Picard Tagger] (done) + - [Sharing Gateway](sharing-gateway): tools for consolidating and + re-exporting file shares (active) - Bibliography: my pan-paper BibTeX; i.e., stalling for ZDB (passive) - Subtitle adjuster: for time-shifting SRTs (done) - Javascript Beautifier: a thin [Tamarin] wrapper for [js_beautify]. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-08-28 08:12:46
|
Revision: 953 http://assorted.svn.sourceforge.net/assorted/?rev=953&view=rev Author: yangzhang Date: 2008-08-28 08:12:52 +0000 (Thu, 28 Aug 2008) Log Message: ----------- updated/added links to scripts.mit.edu sites; added picard plugins, sharing gateway Modified Paths: -------------- assorted-site/trunk/index.txt Modified: assorted-site/trunk/index.txt =================================================================== --- assorted-site/trunk/index.txt 2008-08-28 08:11:56 UTC (rev 952) +++ assorted-site/trunk/index.txt 2008-08-28 08:12:52 UTC (rev 953) @@ -59,8 +59,9 @@ - MovieLookup: given an [HBO](http://hbo.com/) schedule, look up movie ratings on [Rotten Tomatoes], sort the movies by score, and aggregate the show times for those movies based on the schedule (done) - - Google File Search: a simple web frontend to Google Web Search for finding - files in web directory listings (done) + - [Google File Search](http://y_z.scripts.mit.edu/gfs/): a simple web + frontend to Google Web Search for finding files in web directory listings + (done) - Configuration resources and desktop tools - [Vim syntax file for JavaFX](http://www.vim.org/scripts/script.php?script_id=1943) (done) @@ -84,8 +85,11 @@ - [Mailing List Filter](mailing-list-filter): deal with high-volume mailing lists by filtering your mailbox for threads in which you were a participant (done) - - [Scala Doc Search](http://scripts.mit.edu/~y_z/sds/): navigate the Scala - API documentation by class or object name (done) + - [Scala Doc Search](http://y_z.scripts.mit.edu/sds/): navigate the Scala API + documentation by class or object name (done) + - [Picard Plugins](http://wiki.musicbrainz.org/PicardPlugins): simple tools + for [Picard Tagger] + - [Sharing Gateway](sharing-gateway): tools for consolidating and re-exporting file shares - Bibliography: my pan-paper BibTeX; i.e., stalling for ZDB (passive) - Subtitle adjuster: for time-shifting SRTs (done) - Javascript Beautifier: a thin [Tamarin] wrapper for [js_beautify]. @@ -124,6 +128,7 @@ [Tamarin]: http://www.mozilla.org/projects/tamarin/ [js_beautify]: http://elfz.laacz.lv/beautify/ [Rotten Tomatoes]: http://www.rottentomatoes.com/ +[Picard Tagger]: http://wiki.musicbrainz.org/PicardTagger What the statuses mean: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |