assorted-commits Mailing List for Assorted projects (Page 6)
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...> - 2011-04-11 20:19:55
|
Revision: 1777
http://assorted.svn.sourceforge.net/assorted/?rev=1777&view=rev
Author: yangzhang
Date: 2011-04-11 20:19:49 +0000 (Mon, 11 Apr 2011)
Log Message:
-----------
Fix syntax errors in rtun.conf
Modified Paths:
--------------
configs/trunk/src/upstart/rtun.conf
Modified: configs/trunk/src/upstart/rtun.conf
===================================================================
--- configs/trunk/src/upstart/rtun.conf 2011-04-11 19:15:00 UTC (rev 1776)
+++ configs/trunk/src/upstart/rtun.conf 2011-04-11 20:19:49 UTC (rev 1777)
@@ -24,8 +24,8 @@
# Upstart seems to squish together all the lines, hence the semicolons
exec su yang -c '
while true ; do
- pkill -f '^ssh -N -R1122:localhost:22 -i'
- sleep 1
+ pkill -f "^ssh -N -R1122:localhost:22 -i" ;
+ sleep 1 ;
ssh -N -R1122:localhost:22 -i /home/yang/.ssh/rtun
-o BatchMode=yes -o ServerAliveInterval=300 -o TCPKeepAlive=yes
rtun@HOST ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-04-11 19:15:06
|
Revision: 1776
http://assorted.svn.sourceforge.net/assorted/?rev=1776&view=rev
Author: yangzhang
Date: 2011-04-11 19:15:00 +0000 (Mon, 11 Apr 2011)
Log Message:
-----------
Kill any existing rtun before starting
Modified Paths:
--------------
configs/trunk/src/upstart/rtun.conf
Modified: configs/trunk/src/upstart/rtun.conf
===================================================================
--- configs/trunk/src/upstart/rtun.conf 2011-04-08 18:44:09 UTC (rev 1775)
+++ configs/trunk/src/upstart/rtun.conf 2011-04-11 19:15:00 UTC (rev 1776)
@@ -24,6 +24,8 @@
# Upstart seems to squish together all the lines, hence the semicolons
exec su yang -c '
while true ; do
+ pkill -f '^ssh -N -R1122:localhost:22 -i'
+ sleep 1
ssh -N -R1122:localhost:22 -i /home/yang/.ssh/rtun
-o BatchMode=yes -o ServerAliveInterval=300 -o TCPKeepAlive=yes
rtun@HOST ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-04-08 18:44:15
|
Revision: 1775
http://assorted.svn.sourceforge.net/assorted/?rev=1775&view=rev
Author: yangzhang
Date: 2011-04-08 18:44:09 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
Add key() to common.bash
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 2011-04-08 02:52:35 UTC (rev 1774)
+++ shell-tools/trunk/src/bash-commons/common.bash 2011-04-08 18:44:09 UTC (rev 1775)
@@ -766,6 +766,11 @@
group by procpid, usename, waiting, current_query;"
}
+key() {
+ local minutes=${1:-1}
+ eval "$(keychain --eval --timeout $minutes id_rsa)"
+}
+
#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...> - 2011-04-08 02:52:41
|
Revision: 1774
http://assorted.svn.sourceforge.net/assorted/?rev=1774&view=rev
Author: yangzhang
Date: 2011-04-08 02:52:35 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
Clarify group-by ordering in pg-stat
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 2011-04-08 01:10:13 UTC (rev 1773)
+++ shell-tools/trunk/src/bash-commons/common.bash 2011-04-08 02:52:35 UTC (rev 1774)
@@ -763,7 +763,7 @@
inner join pg_class on (relfilenode=relation)
inner join pg_namespace n on (n.oid=relnamespace)
where current_query not like '%pg_stat_activity%'
- group by usename, procpid, current_query, waiting;"
+ group by procpid, usename, waiting, current_query;"
}
#if ! is_declared indent ; then
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-04-08 01:10:19
|
Revision: 1773
http://assorted.svn.sourceforge.net/assorted/?rev=1773&view=rev
Author: yangzhang
Date: 2011-04-08 01:10:13 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
Add pg-stat
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 2011-04-07 01:56:09 UTC (rev 1772)
+++ shell-tools/trunk/src/bash-commons/common.bash 2011-04-08 01:10:13 UTC (rev 1773)
@@ -749,6 +749,23 @@
"
}
+pg-stat() {
+ psql -c "
+ select
+ usename as usr,
+ waiting,
+ current_query,
+ array_to_string(array_agg(distinct nspname), ', ') as schemas,
+ array_to_string(array_agg(distinct relname), ', ') as tables
+ from
+ pg_stat_activity
+ inner join pg_locks on (pid=procpid)
+ inner join pg_class on (relfilenode=relation)
+ inner join pg_namespace n on (n.oid=relnamespace)
+ where current_query not like '%pg_stat_activity%'
+ group by usename, procpid, current_query, waiting;"
+}
+
#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...> - 2011-04-07 01:56:15
|
Revision: 1772
http://assorted.svn.sourceforge.net/assorted/?rev=1772&view=rev
Author: yangzhang
Date: 2011-04-07 01:56:09 +0000 (Thu, 07 Apr 2011)
Log Message:
-----------
Add pg-space
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 2011-04-03 19:48:49 UTC (rev 1771)
+++ shell-tools/trunk/src/bash-commons/common.bash 2011-04-07 01:56:09 UTC (rev 1772)
@@ -704,6 +704,50 @@
done 2>/dev/null | sort -nr | head -n 20
}
+pg-space() {
+ local schema=${schema:-${1:-}}
+ case ${schema:-} in
+ '*' ) local query='select * from tables' ;;
+ '' ) local query='select * from schemas' ;;
+ * ) local query="select * from tables where _schema = '$schema'" ;;
+ esac
+ psql -c "
+ with
+ total as (
+ select sum(pg_relation_size(oid)) from pg_class where relkind = 'r'
+ ),
+ basic as (
+ select
+ n.nspname as _schema,
+ relname as _table,
+ pg_relation_size(r.oid) as bytes,
+ (100*pg_relation_size(r.oid)/(select * from total))::numeric(4,1) as pct
+ from pg_class r inner join pg_namespace n on (n.oid = relnamespace)
+ where relkind = 'r'
+ ),
+ tables as (
+ select
+ _schema,
+ _table,
+ bytes,
+ lpad(pg_size_pretty(bytes), 9) as size,
+ pct
+ from basic
+ order by bytes desc
+ ),
+ schemas as (
+ select
+ _schema,
+ sum(bytes) as bytes,
+ lpad(pg_size_pretty(sum(bytes)::int), 9) as size,
+ sum(pct) as pct
+ from basic
+ group by _schema
+ order by bytes desc
+ )
+ $query;
+ "
+}
#if ! is_declared indent ; then
# noindent
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-04-03 19:48:55
|
Revision: 1771
http://assorted.svn.sourceforge.net/assorted/?rev=1771&view=rev
Author: yangzhang
Date: 2011-04-03 19:48:49 +0000 (Sun, 03 Apr 2011)
Log Message:
-----------
Move wp-easy-filter to github
Removed Paths:
-------------
wp-easy-filter/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-04-01 20:29:38
|
Revision: 1770
http://assorted.svn.sourceforge.net/assorted/?rev=1770&view=rev
Author: yangzhang
Date: 2011-04-01 20:29:31 +0000 (Fri, 01 Apr 2011)
Log Message:
-----------
Fix khan-academy-playlister URL parsing bug
Modified Paths:
--------------
sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py
Modified: sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py
===================================================================
--- sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py 2011-04-01 20:23:10 UTC (rev 1769)
+++ sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py 2011-04-01 20:29:31 UTC (rev 1770)
@@ -18,7 +18,7 @@
html = urllib.urlopen('http://www.khanacademy.org/').read()
pls2vids = collections.defaultdict(list)
for m in re.finditer(r'"/video/(.+?)\?playlist=(.+?)"', html):
- vid, pls = m.group(1), normalize(m.group(2))
+ vid, pls = m.group(1), normalize(urllib.unquote_plus(m.group(2)))
pls2vids[pls].append(vid)
for pls,dir in plsdir:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-04-01 20:23:16
|
Revision: 1769
http://assorted.svn.sourceforge.net/assorted/?rev=1769&view=rev
Author: yangzhang
Date: 2011-04-01 20:23:10 +0000 (Fri, 01 Apr 2011)
Log Message:
-----------
Add khan-academy-playlister
Added Paths:
-----------
sandbox/trunk/src/one-off-scripts/khan-academy-playlister/
sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py
Added: sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py
===================================================================
--- sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py (rev 0)
+++ sandbox/trunk/src/one-off-scripts/khan-academy-playlister/go.py 2011-04-01 20:23:10 UTC (rev 1769)
@@ -0,0 +1,38 @@
+import glob, os, urllib, re, itertools, sys, collections
+from pod.commons.debug import *
+set_pdb_excepthook()
+
+def normalize(name): return re.sub(' ','',name.lower())
+
+vids_dir = sys.argv[1]
+globs = glob.glob(vids_dir + '/*/*.flv')
+plsvid2path = {}
+plsdir = set()
+for path in globs:
+ vid = os.path.splitext(os.path.basename(path))[0]
+ dir = os.path.basename(os.path.dirname(path))
+ pls = normalize(dir)
+ plsvid2path[pls,vid] = path
+ plsdir.add((pls,dir))
+
+html = urllib.urlopen('http://www.khanacademy.org/').read()
+pls2vids = collections.defaultdict(list)
+for m in re.finditer(r'"/video/(.+?)\?playlist=(.+?)"', html):
+ vid, pls = m.group(1), normalize(m.group(2))
+ pls2vids[pls].append(vid)
+
+for pls,dir in plsdir:
+ def gen():
+ for vid in pls2vids[pls]:
+ if (pls,vid) not in plsvid2path:
+ print 'missing:', dir, vid
+ #with open(os.path.join(vids_dir, dir, vid + '.flv'), 'w') as v:
+ #v.write(urllib.urlopen('http://www.archive.org/download/KhanAcademy/' + vid + '.flv').read())
+ else:
+ yield os.path.realpath(dir) + '/' + vid + '.flv'
+ vids = list(gen())
+ with open(pls + '.pls', 'w') as f:
+ print >> f, '[playlist]'
+ print >> f, 'NumberOfEntries=%d' % len(vids)
+ for i, vid in enumerate(vids, start=1):
+ print >> f, 'File%d=%s' % (i, vid)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-03-28 23:13:56
|
Revision: 1768
http://assorted.svn.sourceforge.net/assorted/?rev=1768&view=rev
Author: yangzhang
Date: 2011-03-28 23:13:50 +0000 (Mon, 28 Mar 2011)
Log Message:
-----------
Add demo of outer-scope ref mutation in JS
Added Paths:
-----------
sandbox/trunk/src/web/js-outer-scope-ref-mutation.html
Added: sandbox/trunk/src/web/js-outer-scope-ref-mutation.html
===================================================================
--- sandbox/trunk/src/web/js-outer-scope-ref-mutation.html (rev 0)
+++ sandbox/trunk/src/web/js-outer-scope-ref-mutation.html 2011-03-28 23:13:50 UTC (rev 1768)
@@ -0,0 +1,14 @@
+<html>
+ <script>
+ function go(msg) {
+ function say() {
+ console.log(msg);
+ setTimeout(say, 1000);
+ }
+ setTimeout(function() { msg = "world"; }, 500);
+ say();
+ }
+ go('hello');
+ </script>
+</html>
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-03-25 10:06:32
|
Revision: 1767
http://assorted.svn.sourceforge.net/assorted/?rev=1767&view=rev
Author: yangzhang
Date: 2011-03-25 10:06:25 +0000 (Fri, 25 Mar 2011)
Log Message:
-----------
Spring cleaning for ssh config
Modified Paths:
--------------
configs/trunk/src/ssh/config
Modified: configs/trunk/src/ssh/config
===================================================================
--- configs/trunk/src/ssh/config 2011-03-18 06:25:54 UTC (rev 1766)
+++ configs/trunk/src/ssh/config 2011-03-25 10:06:25 UTC (rev 1767)
@@ -3,375 +3,49 @@
# StrictHostKeyChecking yes/no/ask
# NoHostAuthenticationForLocalhost yes/no
+TCPKeepAlive=yes
+ServerAliveInterval=300
+
# StrictHostKeyChecking no
-Host partycat
- HostName 172.20.1.4
-
#
-# appficio
+# Personal
#
-Host af
- HostName appficio.com
- User yang
+Host yz.xvm.mit.edu
+Host yz.csail.mit.edu
+Host zs.ath.cx
-#
-# Yahoo
-#
-Host gq1
- HostName sherpa1.yrl.gq1.yahoo.com
-
-Host gq2
- HostName sherpa2.yrl.gq1.yahoo.com
-
-Host gq3
- HostName sherpa3.yrl.gq1.yahoo.com
-
-Host gq4
- HostName sherpa4.yrl.gq1.yahoo.com
-
-Host gq5
- HostName sherpa6.yrl.gq1.yahoo.com
-
-Host gq6
- HostName sherpa7.yrl.gq1.yahoo.com
-
-Host gq7
- HostName sherpa8.yrl.gq1.yahoo.com
-
-Host gq8
- HostName sherpa9.yrl.gq1.yahoo.com
-
-Host gq9
- HostName sherpa10.yrl.gq1.yahoo.com
-
-Host gq10
- HostName sherpa11.yrl.gq1.yahoo.com
-
-Host in1
- HostName sherpa1.yrl.in2.yahoo.com
-
-Host in2
- HostName sherpa2.yrl.in2.yahoo.com
-
-Host in3
- HostName sherpa3.yrl.in2.yahoo.com
-
-Host in4
- HostName sherpa4.yrl.in2.yahoo.com
-
-Host in5
- HostName sherpa5.yrl.in2.yahoo.com
-
-Host in6
- HostName sherpa6.yrl.in2.yahoo.com
-
-Host in7
- HostName sherpa7.yrl.in2.yahoo.com
-
-Host in8
- HostName sherpa8.yrl.in2.yahoo.com
-
-Host in9
- HostName sherpa9.yrl.in2.yahoo.com
-
-Host in10
- HostName sherpa10.yrl.in2.yahoo.com
-
-Host in11
- HostName sherpa11.yrl.in2.yahoo.com
-
-Host sg1
- HostName sherpa1.yrl.sg1.yahoo.com
-
-Host sg2
- HostName sherpa2.yrl.sg1.yahoo.com
-
-Host sg3
- HostName sherpa3.yrl.sg1.yahoo.com
-
-Host sg4
- HostName sherpa4.yrl.sg1.yahoo.com
-
-Host re1
- HostName sherpa3.corp.re1.yahoo.com
-
-Host re2
- HostName sherpa4.corp.re1.yahoo.com
-
-Host re3
- HostName sherpa10.corp.re1.yahoo.com
-
-Host re4
- HostName sherpa11.corp.re1.yahoo.com
-
-Host re5
- HostName sherpa6.corp.re1.yahoo.com
-
-Host re6
- HostName sherpa7.corp.re1.yahoo.com
-
-Host re7
- HostName sherpa8.corp.re1.yahoo.com
-
-Host re8
- HostName sherpa9.corp.re1.yahoo.com
-
-Host ir1
- HostName sherpa2.corp.ird.yahoo.com
-
-Host ir2
- HostName sherpa4.corp.ird.yahoo.com
-
-Host ir3
- HostName sherpa10.corp.ird.yahoo.com
-
-Host ir4
- HostName sherpa11.corp.ird.yahoo.com
-
-Host ir5
- HostName sherpa6.corp.ird.yahoo.com
-
-Host ir6
- HostName sherpa7.corp.ird.yahoo.com
-
-Host ir7
- HostName sherpa8.corp.ird.yahoo.com
-
-Host ir8
- HostName sherpa9.corp.ird.yahoo.com
-
-Host sp1
- HostName peanuts16.research.corp.sp1.yahoo.com
-
-Host sp2
- HostName peanuts17.research.corp.sp1.yahoo.com
-
-Host sp3
- HostName peanuts21.research.corp.sp1.yahoo.com
-
-Host sp4
- HostName peanuts22.research.corp.sp1.yahoo.com
-
-Host sp5
- HostName peanuts23.research.corp.sp1.yahoo.com
-
-Host sp6
- HostName peanuts24.research.corp.sp1.yahoo.com
-
-Host sp7
- HostName peanuts25.research.corp.sp1.yahoo.com
-
-Host sp8
- HostName peanuts26.research.corp.sp1.yahoo.com
-
#
-# CSAIL PMG
+# POD
#
-Host farm1
- HostName farm1.csail.mit.edu
- User yang
+Host dev.partyondata.com
+Host workping.com
+Host partycat.partyondata.com
-Host farm2
- HostName farm2.csail.mit.edu
- User yang
-
-Host farm3
- HostName farm3.csail.mit.edu
- User yang
-
-Host farm4
- HostName farm4.csail.mit.edu
- User yang
-
-Host farm5
- HostName farm5.csail.mit.edu
- User yang
-
-Host farm6
- HostName farm6.csail.mit.edu
- User yang
-
-Host farm7
- HostName farm7.csail.mit.edu
- User yang
-
-Host farm8
- HostName farm8.csail.mit.edu
- User yang
-
-Host farm9
- HostName farm9.csail.mit.edu
- User yang
-
-Host farm10
- HostName farm10.csail.mit.edu
- User yang
-
-Host farm11
- HostName farm11.csail.mit.edu
- User yang
-
-Host farm12
- HostName farm12.csail.mit.edu
- User yang
-
-Host farm13
- HostName farm13.csail.mit.edu
- User yang
-
-Host farm14
- HostName farm14.csail.mit.edu
- User yang
-
-Host farm15
- HostName farm15.csail.mit.edu
- User yang
-
#
-# Vertica/H-Store
+# MIT/SIPB/CSAIL
#
-Host hz
- HostName hzproject.com
- User yzhang
-
-#
-# Misc
-#
-
-Host oasis
- HostName catenova.org
- User oasis
-
-Host icfp
- HostName 128.30.79.174
- User knoppix
-
-Host hadoop
- HostName localhost
- Port 54022
- HostKeyAlias 10.1.131.188
-
-#
-# XVM
-#
-
-Host rem
- HostName remote.mit.edu
- User root
-
-Host bm
- HostName black-mesa.mit.edu
- User root
-
-Host sx
- HostName sx-blade-2.mit.edu
- User root
-
-#
-# CSAIL G9
-#
-
-Host hv
- HostName harvard.csail.mit.edu
- User yang
- ForwardX11 yes
-
-Host blokus
- HostName blokus.csail.mit.edu
+Host linerva.mit.edu
User y_z
-Host mosaic
- HostName mosaic.csail.mit.edu
- User y_z
+Host login.csail.mit.edu athena.csail.mit.edu svn.csail.mit.edu linerva.mit.edu
+ GSSAPIAuthentication yes
+ GSSAPIKeyExchange yes
+ GSSAPIDelegateCredentials yes
-Host josmp
- HostName josmp.csail.mit.edu
- User yang
+Host pdos.csail.mit.edu
+Host db.csail.mit.edu
+Host nms.csail.mit.edu
-Host awd
- HostName awd.csail.mit.edu
- User y_z
-
-Host caneland
- HostName caneland.csail.mit.edu
- User y_z
-
-Host pdos
- HostName pdos.csail.mit.edu
- User yang
-
-Host sn
- HostName sn002.datapository.net
- User yaaang
-
#
-# Cartel
-#
-
-Host cd3
- HostName cartel-dev3.csail.mit.edu
- User root
-
-Host cd2
- HostName cartel-dev2.csail.mit.edu
- User root
-
-Host golf
- HostName golf.csail.mit.edu
- User root
-
-#
-# CMU
-#
-
-Host sn
- HostName sn002.datapository.net
- User yang
-
-#
-# Personal
-#
-
-Host zs
- HostName zs.ath.cx
- User yang
- ForwardX11 yes
-
-# yangrzhangr
-Host nr
- HostName nr.ath.cx
- User yang
-
-#
-# People
-#
-
-# Rohan K
-Host kr
- HostName krang.eecs.harvard.edu
- User yang
-
-# Bret Hull
-Host lv
- HostName livermore.csail.mit.edu
- User yang
-
-# Jacob Scott
-Host on
- HostName orange-ninja.mit.edu
- User yang
-
-#
# Sourceforge
#
-Host pubmgr-cvs
- HostName pubmgr.cvs.sourceforge.net
+Host pubmgr.cvs.sourceforge.net
User yangzhang
Host assorted
@@ -379,120 +53,8 @@
User yangzhang,assorted
#
-# CSAIL DB group
+# Berkeley OCF
#
-Host db
- HostName db.csail.mit.edu
- User yang
-
-#
-# CSAIL NMS
-#
-
-Host nms
- HostName nms.csail.mit.edu
- User yang
-
-#
-# CSAIL
-#
-
-Host cs
- HostName login.csail.mit.edu
- User yang
- ForwardX11 yes
-
-Host athcs
- HostName athena.csail.mit.edu
- User y_z
- ForwardX11 yes
-
-#
-# MIT
-#
-
-Host yz
- HostName yz.xvm.mit.edu
- User yang
-
-Host ath
- HostName athena.dialup.mit.edu
- User y_z
-
-Host lin
- HostName linerva.mit.edu
- User y_z
- ForwardX11 yes
-
-#
-# Berkeley
-#
-
-Host ocf
- HostName apocalypse.ocf.berkeley.edu
+Host apocalypse.ocf.berkeley.edu
User yangsta
-
-#
-# KRB
-#
-
-Host cs login.csail.mit.edu svn.csail.mit.edu lin linerva.mit.edu
- GSSAPIAuthentication yes
- GSSAPIKeyExchange yes
- GSSAPIDelegateCredentials yes
-
-#
-# retired, but kept here as a quick reference
-#
-
-## from G to OCF
-#Host g2ocf
-# HostName apocalypse.ocf.berkeley.edu
-# User yangsta
-# RemoteForward 8822 localhost:22
-#
-## from G to harvard
-#Host g2hv
-# HostName harvard.csail.mit.edu
-# User yang
-# RemoteForward 8822 localhost:22
-#
-## from G to home (Foster City)
-#Host g2yv
-# HostName yv.ath.cx
-# User yang
-# RemoteForward 8822 localhost:22
-#
-## from G to dell600 laptop
-#Host g2ew
-# HostName ew.ath.cx
-# User yang
-# RemoteForward 8822 localhost:22
-# RemoteForward 8888 localhost:8888
-# RemoteForward 24800 localhost:24800
-#
-## from laptop to G (if necessary; after g2*)
-#Host g
-# HostName localhost
-# User yangzhang
-# Port 8822
-# NoHostAuthenticationForLocalhost yes
-# LocalForward 8888 localhost:8888
-# LocalForward 24800 localhost:24800
-# ForwardX11 yes
-#
-## from ocf to G (after g2ocf)
-#Host ocf2g
-# HostName localhost
-# User yangzhang
-# Port 8822
-# NoHostAuthenticationForLocalhost yes
-# LocalForward apocalypse.ocf.berkeley.edu:8823 localhost:22
-# #LocalForward apocalypse.ocf.berkeley.edu:8888 localhost:8888
-# LocalForward apocalypse.ocf.berkeley.edu:24800 localhost:24800
-#
-## G
-#Host fl
-# HostName fl.ath.cx
-# User yangzhang
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-03-18 06:26:00
|
Revision: 1766
http://assorted.svn.sourceforge.net/assorted/?rev=1766&view=rev
Author: yangzhang
Date: 2011-03-18 06:25:54 +0000 (Fri, 18 Mar 2011)
Log Message:
-----------
Tweak pg-grant-tables to grant schema perms
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 2011-03-15 01:23:14 UTC (rev 1765)
+++ shell-tools/trunk/src/bash-commons/common.bash 2011-03-18 06:25:54 UTC (rev 1766)
@@ -660,6 +660,7 @@
pg-grant-tables() {
local schema=${schema:-public} perms=${perms:-all} user=$1
psql -A -t -c "
+ grant $perms on schema $schema to $user;
select 'grant $perms on '||schemaname||'.'||tablename||' to $user;'
from pg_tables
where schemaname = '$schema'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-03-15 01:23:20
|
Revision: 1765
http://assorted.svn.sourceforge.net/assorted/?rev=1765&view=rev
Author: yangzhang
Date: 2011-03-15 01:23:14 +0000 (Tue, 15 Mar 2011)
Log Message:
-----------
Add giggle to .gitconfig
Modified Paths:
--------------
configs/trunk/src/gitconfig
Modified: configs/trunk/src/gitconfig
===================================================================
--- configs/trunk/src/gitconfig 2011-03-15 01:22:19 UTC (rev 1764)
+++ configs/trunk/src/gitconfig 2011-03-15 01:23:14 UTC (rev 1765)
@@ -27,3 +27,6 @@
ui = auto
[branch]
autosetuprebase = always
+[giggle]
+ main-window-maximized = true
+ main-window-geometry = 700x550+660+444
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-03-15 01:22:26
|
Revision: 1764
http://assorted.svn.sourceforge.net/assorted/?rev=1764&view=rev
Author: yangzhang
Date: 2011-03-15 01:22:19 +0000 (Tue, 15 Mar 2011)
Log Message:
-----------
Add .matplotlibrc
Modified Paths:
--------------
configs/trunk/setup-yang.bash
Added Paths:
-----------
configs/trunk/src/matplotlib/
configs/trunk/src/matplotlib/matplotlibrc
Modified: configs/trunk/setup-yang.bash
===================================================================
--- configs/trunk/setup-yang.bash 2011-02-26 21:48:46 UTC (rev 1763)
+++ configs/trunk/setup-yang.bash 2011-03-15 01:22:19 UTC (rev 1764)
@@ -22,6 +22,7 @@
install .gitignore gitignore
install .hgrc hgrc
install .inputrc inputrc
+install .matplotlib/matplotlibrc matplotlib/matplotlibrc
install .owl owl
install .pythonrc.py pythonrc.py
install .quiltrc quiltrc
Added: configs/trunk/src/matplotlib/matplotlibrc
===================================================================
--- configs/trunk/src/matplotlib/matplotlibrc (rev 0)
+++ configs/trunk/src/matplotlib/matplotlibrc 2011-03-15 01:22:19 UTC (rev 1764)
@@ -0,0 +1,380 @@
+# From <https://gist.github.com/816622>
+
+### MATPLOTLIBRC FORMAT
+
+# This is a sample matplotlib configuration file - you can find a copy
+# of it on your system in
+# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
+# there, please note that it will be overridden in your next install.
+# If you want to keep a permanent local copy that will not be
+# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
+# like systems) and C:\Documents and Settings\yourname\.matplotlib
+# (win32 systems).
+#
+# This file is best viewed in a editor which supports python mode
+# syntax highlighting. Blank lines, or lines starting with a comment
+# symbol, are ignored, as are trailing comments. Other lines must
+# have the format
+# key : val # optional comment
+#
+# Colors: for the color values below, you can either use - a
+# matplotlib color string, such as r, k, or b - an rgb tuple, such as
+# (1.0, 0.5, 0.0) - a hex string, such as ff00ff or #ff00ff - a scalar
+# grayscale intensity such as 0.75 - a legal html color name, eg red,
+# blue, darkslategray
+
+#### CONFIGURATION BEGINS HERE
+
+# the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg
+# MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template
+# You can also deploy your own backend outside of matplotlib by
+# referring to the module name (which must be in the PYTHONPATH) as
+# 'module://my_backend'
+backend : MacOSX
+
+# if you are runing pyplot inside a GUI and your backend choice
+# conflicts, we will automatically try and find a compatible one for
+# you if backend_fallback is True
+#backend_fallback: True
+interactive : True
+toolbar : toolbar2 # None | classic | toolbar2
+timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris
+
+# Where your matplotlib data lives if you installed to a non-default
+# location. This is where the matplotlib fonts, bitmaps, etc reside
+#datapath : /home/jdhunter/mpldata
+
+
+### LINES
+# See http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.lines for more
+# information on line properties.
+lines.linewidth : 1.0 # line width in points
+#lines.linestyle : - # solid line
+# lines.color : purple
+#lines.marker : None # the default marker
+#lines.markeredgewidth : 0.5 # the line width around the marker symbol
+#lines.markersize : 6 # markersize, in points
+#lines.dash_joinstyle : miter # miter|round|bevel
+#lines.dash_capstyle : butt # butt|round|projecting
+#lines.solid_joinstyle : miter # miter|round|bevel
+#lines.solid_capstyle : projecting # butt|round|projecting
+lines.antialiased : True # render lines in antialised (no jaggies)
+
+### PATCHES
+# Patches are graphical objects that fill 2D space, like polygons or
+# circles. See
+# http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.patches
+# information on patch properties
+patch.linewidth : 0.5 # edge width in points
+patch.facecolor : 348ABD # blue
+patch.edgecolor : eeeeee
+patch.antialiased : True # render patches in antialised (no jaggies)
+
+### FONT
+#
+# font properties used by text.Text. See
+# http://matplotlib.sourceforge.net/api/font_manager_api.html for more
+# information on font properties. The 6 font properties used for font
+# matching are given below with their default values.
+#
+# The font.family property has five values: 'serif' (e.g. Times),
+# 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery),
+# 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of
+# these font families has a default list of font names in decreasing
+# order of priority associated with them.
+#
+# The font.style property has three values: normal (or roman), italic
+# or oblique. The oblique style will be used for italic, if it is not
+# present.
+#
+# The font.variant property has two values: normal or small-caps. For
+# TrueType fonts, which are scalable fonts, small-caps is equivalent
+# to using a font size of 'smaller', or about 83% of the current font
+# size.
+#
+# The font.weight property has effectively 13 values: normal, bold,
+# bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as
+# 400, and bold is 700. bolder and lighter are relative values with
+# respect to the current weight.
+#
+# The font.stretch property has 11 values: ultra-condensed,
+# extra-condensed, condensed, semi-condensed, normal, semi-expanded,
+# expanded, extra-expanded, ultra-expanded, wider, and narrower. This
+# property is not currently implemented.
+#
+# The font.size property is the default font size for text, given in pts.
+# 12pt is the standard value.
+#
+font.family : monospace
+#font.style : normal
+#font.variant : normal
+#font.weight : medium
+#font.stretch : normal
+# note that font.size controls default text sizes. To configure
+# special text sizes tick labels, axes, labels, title, etc, see the rc
+# settings for axes and ticks. Special text sizes can be defined
+# relative to font.size, using the following values: xx-small, x-small,
+# small, medium, large, x-large, xx-large, larger, or smaller
+font.size : 10.0
+# font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
+#font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
+#font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive
+#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy
+font.monospace : Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
+
+### TEXT
+# text properties used by text.Text. See
+# http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.text for more
+# information on text properties
+
+#text.color : black
+
+### LaTeX customizations. See http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex
+#text.usetex : False # use latex for all text handling. The following fonts
+ # are supported through the usual rc parameter settings:
+ # new century schoolbook, bookman, times, palatino,
+ # zapf chancery, charter, serif, sans-serif, helvetica,
+ # avant garde, courier, monospace, computer modern roman,
+ # computer modern sans serif, computer modern typewriter
+ # If another font is desired which can loaded using the
+ # LaTeX \usepackage command, please inquire at the
+ # matplotlib mailing list
+#text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling
+ # unicode strings.
+#text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES
+ # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP
+ # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO.
+ # preamble is a comma separated list of LaTeX statements
+ # that are included in the LaTeX document preamble.
+ # An example:
+ # text.latex.preamble : \usepackage{bm},\usepackage{euler}
+ # The following packages are always loaded with usetex, so
+ # beware of package collisions: color, geometry, graphicx,
+ # type1cm, textcomp. Adobe Postscript (PSSNFS) font packages
+ # may also be loaded, depending on your font settings
+
+#text.dvipnghack : None # some versions of dvipng don't handle alpha
+ # channel properly. Use True to correct
+ # and flush ~/.matplotlib/tex.cache
+ # before testing and False to force
+ # correction off. None will try and
+ # guess based on your dvipng version
+
+#text.markup : 'plain' # Affects how text, such as titles and labels, are
+ # interpreted by default.
+ # 'plain': As plain, unformatted text
+ # 'tex': As TeX-like text. Text between $'s will be
+ # formatted as a TeX math expression.
+ # This setting has no effect when text.usetex is True.
+ # In that case, all text will be sent to TeX for
+ # processing.
+
+#text.hinting : True # If True, text will be hinted, otherwise not. This only
+ # affects the Agg backend.
+
+# The following settings allow you to select the fonts in math mode.
+# They map from a TeX font name to a fontconfig font pattern.
+# These settings are only used if mathtext.fontset is 'custom'.
+# Note that this "custom" mode is unsupported and may go away in the
+# future.
+#mathtext.cal : cursive
+#mathtext.rm : serif
+#mathtext.tt : monospace
+#mathtext.it : serif:italic
+#mathtext.bf : serif:bold
+#mathtext.sf : sans
+#mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix',
+ # 'stixsans' or 'custom'
+#mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern
+ # fonts when a symbol can not be found in one of
+ # the custom math fonts.
+
+#mathtext.default : it # The default font to use for math.
+ # Can be any of the LaTeX font names, including
+ # the special name "regular" for the same font
+ # used in regular text.
+
+### AXES
+# default face and edge color, default tick sizes,
+# default fontsizes for ticklabels, and so on. See
+# http://matplotlib.sourceforge.net/api/axes_api.html#module-matplotlib.axes
+#axes.hold : True # whether to clear the axes by default on
+axes.facecolor : eeeeee # axes background color
+axes.edgecolor : bcbcbc # axes edge color
+axes.linewidth : 1 # edge linewidth
+axes.grid : True # display grid or not
+axes.titlesize : x-large # fontsize of the axes title
+axes.labelsize : large # fontsize of the x any y labels
+axes.labelcolor : 555555
+axes.axisbelow : True # whether axis gridlines and ticks are below
+ # the axes elements (lines, text, etc)
+#axes.formatter.limits : -7, 7 # use scientific notation if log10
+ # of the axis range is smaller than the
+ # first or larger than the second
+#axes.unicode_minus : True # use unicode for the minus symbol
+ # rather than hypen. See http://en.wikipedia.org/wiki/Plus_sign#Plus_sign
+axes.color_cycle : 348ABD, 7A68A6, A60628, 467821, CF4457, 188487, E24A33
+ # E24A33 : orange
+ # 7A68A6 : purple
+ # 348ABD : blue
+ # 188487 : turquoise
+ # A60628 : red
+ # CF4457 : pink
+ # 467821 : green
+
+
+
+
+ # color cycle for plot lines
+ # as list of string colorspecs:
+ # single letter, long name, or
+ # web-style hex
+
+#polaraxes.grid : True # display grid on polar axes
+#axes3d.grid : True # display grid on 3d axes
+
+### TICKS
+# see http://matplotlib.sourceforge.net/api/axis_api.html#matplotlib.axis.Tick
+xtick.major.size : 0 # major tick size in points
+xtick.minor.size : 0 # minor tick size in points
+xtick.major.pad : 6 # distance to major tick label in points
+xtick.minor.pad : 6 # distance to the minor tick label in pointsck.labelsize : medium # fontsize of the tick labels
+ytick.direction : in # direction: in or out
+
+
+### GRIDS
+#grid.color : black # grid color
+#grid.linestyle : : # dotted
+#grid.linewidth : 0.5 # in points
+
+### Legend
+legend.fancybox : True # if True, use a rounded box for the
+ # legend, else a rectangle
+#legend.isaxes : True
+#legend.numpoints : 2 # the number of points in the legend line
+#legend.fontsize : large
+#legend.pad : 0.0 # deprecated; the fractional whitespace inside the legend border
+#legend.borderpad : 0.5 # border whitspace in fontsize units
+#legend.markerscale : 1.0 # the relative size of legend markers vs. original
+# the following dimensions are in axes coords
+#legend.labelsep : 0.010 # the vertical space between the legend entries
+#legend.handlelen : 0.05 # the length of the legend lines
+#legend.handletextsep : 0.02 # the space between the legend line and legend text
+#legend.axespad : 0.02 # the border between the axes and legend edge
+#legend.shadow : False
+
+### FIGURE
+# See http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure
+figure.figsize : 11, 8 # figure size in inches
+#figure.dpi : 80 # figure dots per inch
+figure.facecolor : 0.85 # figure facecolor; 0.75 is scalar gray
+figure.edgecolor : 0.50 # figure edgecolor
+
+# The figure subplot parameters. All dimensions are fraction of the
+# figure width or height
+#figure.subplot.left : 0.125 # the left side of the subplots of the figure
+#figure.subplot.right : 0.9 # the right side of the subplots of the figure
+#figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure
+#figure.subplot.top : 0.9 # the top of the subplots of the figure
+#figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots
+figure.subplot.hspace : 0.5 # the amount of height reserved for white space between subplots
+
+### IMAGES
+#image.aspect : equal # equal | auto | a number
+#image.interpolation : bilinear # see help(imshow) for options
+#image.cmap : jet # gray | jet etc...
+#image.lut : 256 # the size of the colormap lookup table
+#image.origin : upper # lower | upper
+#image.resample : False
+
+### CONTOUR PLOTS
+#contour.negative_linestyle : dashed # dashed | solid
+
+### Agg rendering
+### Warning: experimental, 2008/10/10
+#agg.path.chunksize : 0 # 0 to disable; values in the range
+ # 10000 to 100000 can improve speed slightly
+ # and prevent an Agg rendering failure
+ # when plotting very large data sets,
+ # especially if they are very gappy.
+ # It may cause minor artifacts, though.
+ # A value of 20000 is probably a good
+ # starting point.
+### SAVING FIGURES
+#path.simplify : True # When True, simplify paths by removing "invisible"
+ # points to reduce file size and increase rendering
+ # speed
+#path.simplify_threshold : 0.1 # The threshold of similarity below which
+ # vertices will be removed in the simplification
+ # process
+#path.snap : True # When True, rectilinear axis-aligned paths will be snapped to
+ # the nearest pixel when certain criteria are met. When False,
+ # paths will never be snapped.
+
+# the default savefig params can be different from the display params
+# Eg, you may want a higher resolution, or to make the figure
+# background white
+#savefig.dpi : 100 # figure dots per inch
+#savefig.facecolor : white # figure facecolor when saving
+#savefig.edgecolor : white # figure edgecolor when saving
+#savefig.extension : auto # what extension to use for savefig('foo'), otain shell focus for TkAgg
+
+# ps backend params
+#ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10
+#ps.useafm : False # use of afm fonts, results in small files
+#ps.usedistiller : False # can be: None, ghostscript or xpdf
+ # Experimental: may produce smaller files.
+ # xpdf intended for production of publication quality files,
+ # but requires ghostscript, xpdf and ps2eps
+#ps.distiller.res : 6000 # dpi
+#ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType)
+
+# pdf backend params
+#pdf.compression : 6 # integer from 0 to 9
+ # 0 disables compression (good for debugging)
+#pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType)
+
+# svg backend params
+#svg.image_inline : True # write raster image data directly into the svg file
+#svg.image_noscale : False # suppress scaling of raster data embedded in SVG
+#svg.embed_char_paths : True # embed character outlines in the SVG file
+
+# docstring params
+#docstring.hardcopy = False # set this when you want to generate hardcopy docstring
+
+# Set the verbose flags. This controls how much information
+# matplotlib gives you at runtime and where it goes. The verbosity
+# levels are: silent, helpful, debug, debug-annoying. Any level is
+# inclusive of all the levels below it. If your setting is "debug",
+# you'll get all the debug and helpful messages. When submitting
+# problems to the mailing-list, please set verbose to "helpful" or "debug"
+# and paste the output into your report.
+#
+# The "fileo" gives the destination for any calls to verbose.report.
+# These objects can a filename, or a filehandle like sys.stdout.
+#
+# You can override the rc default verbosity from the command line by
+# giving the flags --verbose-LEVEL where LEVEL is one of the legal
+# levels, eg --verbose-helpful.
+#
+# You can access the verbose instance in your code
+# from matplotlib import verbose.
+#verbose.level : silent # one of silent, helpful, debug, debug-annoying
+#verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr
+
+# Event keys to interact with figures/plots via keyboard.
+# Customize these settings according to your needs.
+# Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '')
+
+keymap.fullscreen : f # toggling
+keymap.home : h, r, home # home or reset mnemonic
+keymap.back : left, c, backspace # forward / backward keys to enable
+keymap.forward : right, v # left handed quick navigation
+keymap.pan : p # pan mnemonic
+keymap.zoom : o # zoom mnemonic
+keymap.save : s # saving current figure
+keymap.grid : g # switching on/off a grid in current axes
+keymap.yscale : l # toggle scaling of y-axes ('log'/'linear')
+keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear')
+keymap.all_axes : a # enable all axes
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-26 21:48:52
|
Revision: 1763
http://assorted.svn.sourceforge.net/assorted/?rev=1763&view=rev
Author: yangzhang
Date: 2011-02-26 21:48:46 +0000 (Sat, 26 Feb 2011)
Log Message:
-----------
Fix rmtail error message
Modified Paths:
--------------
shell-tools/trunk/src/rmtail.bash
Modified: shell-tools/trunk/src/rmtail.bash
===================================================================
--- shell-tools/trunk/src/rmtail.bash 2011-02-26 00:51:43 UTC (rev 1762)
+++ shell-tools/trunk/src/rmtail.bash 2011-02-26 21:48:46 UTC (rev 1763)
@@ -11,5 +11,5 @@
shift
sed -e :a -e '$d;N;1,'$n'ba' -e 'P;D' $*
else
- die 'not implemented for n >= 2!'
+ die 'not implemented for n == 1!'
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-26 00:51:49
|
Revision: 1762
http://assorted.svn.sourceforge.net/assorted/?rev=1762&view=rev
Author: yangzhang
Date: 2011-02-26 00:51:43 +0000 (Sat, 26 Feb 2011)
Log Message:
-----------
Fix inputrc to include global inputrc
Modified Paths:
--------------
configs/trunk/src/inputrc
Modified: configs/trunk/src/inputrc
===================================================================
--- configs/trunk/src/inputrc 2011-02-25 04:46:07 UTC (rev 1761)
+++ configs/trunk/src/inputrc 2011-02-26 00:51:43 UTC (rev 1762)
@@ -35,3 +35,5 @@
$if Bash
Space: magic-space
$endif
+
+$include /etc/inputrc
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-25 04:46:13
|
Revision: 1761
http://assorted.svn.sourceforge.net/assorted/?rev=1761&view=rev
Author: yangzhang
Date: 2011-02-25 04:46:07 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
Fix NOKEYCHAIN boolean logic bug
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 2011-02-24 22:53:05 UTC (rev 1760)
+++ shell-tools/trunk/src/bash-commons/bashrc.bash 2011-02-25 04:46:07 UTC (rev 1761)
@@ -862,7 +862,7 @@
# -t 1 checks if fd 1 (stdout) is a terminal; if so then we're running
# interactively.
-if [[ "$PS1" && -t 1 || ${NOKEYCHAIN:-} ]]
+if [[ "$PS1" && -t 1 && ! ${NOKEYCHAIN:-} ]]
then keychain_flags=
else keychain_flags=--noask
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-24 22:53:12
|
Revision: 1760
http://assorted.svn.sourceforge.net/assorted/?rev=1760&view=rev
Author: yangzhang
Date: 2011-02-24 22:53:05 +0000 (Thu, 24 Feb 2011)
Log Message:
-----------
Add .subversion/servers
Modified Paths:
--------------
configs/trunk/setup-yang.bash
Added Paths:
-----------
configs/trunk/src/subversion/servers
Modified: configs/trunk/setup-yang.bash
===================================================================
--- configs/trunk/setup-yang.bash 2011-02-24 22:50:06 UTC (rev 1759)
+++ configs/trunk/setup-yang.bash 2011-02-24 22:53:05 UTC (rev 1760)
@@ -28,7 +28,7 @@
install .screenrc screenrc
install .signature signature
install .ssh/ ssh/config
-install .subversion/ subversion/config
+install .subversion/ subversion/{config,servers}
install .supybot/ supybot/yangbot.conf
install .synergy.conf synergy.conf
install .unison unison
Added: configs/trunk/src/subversion/servers
===================================================================
--- configs/trunk/src/subversion/servers (rev 0)
+++ configs/trunk/src/subversion/servers 2011-02-24 22:53:05 UTC (rev 1760)
@@ -0,0 +1,158 @@
+### This file specifies server-specific parameters,
+### including HTTP proxy information, HTTP timeout settings,
+### and authentication settings.
+###
+### The currently defined server options are:
+### http-proxy-host Proxy host for HTTP connection
+### http-proxy-port Port number of proxy host service
+### http-proxy-username Username for auth to proxy service
+### http-proxy-password Password for auth to proxy service
+### http-proxy-exceptions List of sites that do not use proxy
+### http-timeout Timeout for HTTP requests in seconds
+### http-compression Whether to compress HTTP requests
+### neon-debug-mask Debug mask for Neon HTTP library
+### http-auth-types Auth types to use for HTTP library
+### ssl-authority-files List of files, each of a trusted CA
+### ssl-trust-default-ca Trust the system 'default' CAs
+### ssl-client-cert-file PKCS#12 format client certificate file
+### ssl-client-cert-password Client Key password, if needed.
+### ssl-pkcs11-provider Name of PKCS#11 provider to use.
+### http-library Which library to use for http/https
+### connections (neon or serf)
+### store-passwords Specifies whether passwords used
+### to authenticate against a
+### Subversion server may be cached
+### to disk in any way.
+### store-plaintext-passwords Specifies whether passwords may
+### be cached on disk unencrypted.
+### store-ssl-client-cert-pp Specifies whether passphrase used
+### to authenticate against a client
+### certificate may be cached to disk
+### in any way
+### store-ssl-client-cert-pp-plaintext
+### Specifies whether client cert
+### passphrases may be cached on disk
+### unencrypted (i.e., as plaintext).
+### store-auth-creds Specifies whether any auth info
+### (passwords as well as server certs)
+### may be cached to disk.
+### username Specifies the default username.
+###
+### Set store-passwords to 'no' to avoid storing passwords in the
+### auth/ area of your config directory. It defaults to 'yes',
+### but Subversion will never save your password to disk in
+### plaintext unless you tell it to.
+### Note that this option only prevents saving of *new* passwords;
+### it doesn't invalidate existing passwords. (To do that, remove
+### the cache files by hand as described in the Subversion book.)
+###
+### Set store-plaintext-passwords to 'no' to avoid storing
+### passwords in unencrypted form in the auth/ area of your config
+### directory. Set it to 'yes' to allow Subversion to store
+### unencrypted passwords in the auth/ area. The default is
+### 'ask', which means that Subversion will ask you before
+### saving a password to disk in unencrypted form. Note that
+### this option has no effect if either 'store-passwords' or
+### 'store-auth-creds' is set to 'no'.
+###
+### Set store-ssl-client-cert-pp to 'no' to avoid storing ssl
+### client certificate passphrases in the auth/ area of your
+### config directory. It defaults to 'yes', but Subversion will
+### never save your passphrase to disk in plaintext unless you tell
+### it to via 'store-ssl-client-cert-pp-plaintext' (see below).
+###
+### Note store-ssl-client-cert-pp only prevents the saving of *new*
+### passphrases; it doesn't invalidate existing passphrases. To do
+### that, remove the cache files by hand as described in the
+### Subversion book at http://svnbook.red-bean.com/nightly/en/\
+### svn.serverconfig.netmodel.html\
+### #svn.serverconfig.netmodel.credcache
+###
+### Set store-ssl-client-cert-pp-plaintext to 'no' to avoid storing
+### passphrases in unencrypted form in the auth/ area of your
+### config directory. Set it to 'yes' to allow Subversion to
+### store unencrypted passphrases in the auth/ area. The default
+### is 'ask', which means that Subversion will prompt before
+### saving a passphrase to disk in unencrypted form. Note that
+### this option has no effect if either 'store-auth-creds' or
+### 'store-ssl-client-cert-pp' is set to 'no'.
+###
+### Set store-auth-creds to 'no' to avoid storing any Subversion
+### credentials in the auth/ area of your config directory.
+### Note that this includes SSL server certificates.
+### It defaults to 'yes'. Note that this option only prevents
+### saving of *new* credentials; it doesn't invalidate existing
+### caches. (To do that, remove the cache files by hand.)
+###
+### HTTP timeouts, if given, are specified in seconds. A timeout
+### of 0, i.e. zero, causes a builtin default to be used.
+###
+### The commented-out examples below are intended only to
+### demonstrate how to use this file; any resemblance to actual
+### servers, living or dead, is entirely coincidental.
+
+### In the 'groups' section, the URL of the repository you're
+### trying to access is matched against the patterns on the right.
+### If a match is found, the server options are taken from the
+### section with the corresponding name on the left.
+
+[groups]
+# group1 = *.collab.net
+# othergroup = repository.blarggitywhoomph.com
+# thirdgroup = *.example.com
+
+### Information for the first group:
+# [group1]
+# http-proxy-host = proxy1.some-domain-name.com
+# http-proxy-port = 80
+# http-proxy-username = blah
+# http-proxy-password = doubleblah
+# http-timeout = 60
+# http-auth-types = basic;digest;negotiate
+# neon-debug-mask = 130
+# store-plaintext-passwords = no
+# username = harry
+
+### Information for the second group:
+# [othergroup]
+# http-proxy-host = proxy2.some-domain-name.com
+# http-proxy-port = 9000
+# No username and password for the proxy, so use the defaults below.
+
+### You can set default parameters in the 'global' section.
+### These parameters apply if no corresponding parameter is set in
+### a specifically matched group as shown above. Thus, if you go
+### through the same proxy server to reach every site on the
+### Internet, you probably just want to put that server's
+### information in the 'global' section and not bother with
+### 'groups' or any other sections.
+###
+### Most people might want to configure password caching
+### parameters here, but you can also configure them per server
+### group (per-group settings override global settings).
+###
+### If you go through a proxy for all but a few sites, you can
+### list those exceptions under 'http-proxy-exceptions'. This only
+### overrides defaults, not explicitly matched server names.
+###
+### 'ssl-authority-files' is a semicolon-delimited list of files,
+### each pointing to a PEM-encoded Certificate Authority (CA)
+### SSL certificate. See details above for overriding security
+### due to SSL.
+[global]
+# http-proxy-exceptions = *.exception.com, www.internal-site.org
+# http-proxy-host = defaultproxy.whatever.com
+# http-proxy-port = 7000
+# http-proxy-username = defaultusername
+# http-proxy-password = defaultpassword
+# http-compression = no
+# http-auth-types = basic;digest;negotiate
+# No http-timeout, so just use the builtin default.
+# No neon-debug-mask, so neon debugging is disabled.
+# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
+#
+# Password / passphrase caching parameters:
+store-passwords = no
+# store-plaintext-passwords = no
+# store-ssl-client-cert-pp = no
+# store-ssl-client-cert-pp-plaintext = no
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-24 22:50:12
|
Revision: 1759
http://assorted.svn.sourceforge.net/assorted/?rev=1759&view=rev
Author: yangzhang
Date: 2011-02-24 22:50:06 +0000 (Thu, 24 Feb 2011)
Log Message:
-----------
Use --noask if NOKEYCHAIN set
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 2011-02-24 22:49:10 UTC (rev 1758)
+++ shell-tools/trunk/src/bash-commons/bashrc.bash 2011-02-24 22:50:06 UTC (rev 1759)
@@ -862,7 +862,7 @@
# -t 1 checks if fd 1 (stdout) is a terminal; if so then we're running
# interactively.
-if [[ "$PS1" && -t 1 ]]
+if [[ "$PS1" && -t 1 || ${NOKEYCHAIN:-} ]]
then keychain_flags=
else keychain_flags=--noask
fi
@@ -873,7 +873,7 @@
then keyfile=id_dsa
else keyfile=
fi
-if have keychain && [[ $keyfile && ! ${NOKEYCHAIN:-} ]]
+if have keychain && [[ $keyfile ]]
then eval `keychain --eval --nogui $keychain_flags $keyfile 2> /dev/null`
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-24 22:49:16
|
Revision: 1758
http://assorted.svn.sourceforge.net/assorted/?rev=1758&view=rev
Author: yangzhang
Date: 2011-02-24 22:49:10 +0000 (Thu, 24 Feb 2011)
Log Message:
-----------
Fix autosetuprebase = always instead of true
Modified Paths:
--------------
configs/trunk/src/gitconfig
Modified: configs/trunk/src/gitconfig
===================================================================
--- configs/trunk/src/gitconfig 2011-02-24 07:32:13 UTC (rev 1757)
+++ configs/trunk/src/gitconfig 2011-02-24 22:49:10 UTC (rev 1758)
@@ -26,4 +26,4 @@
[color]
ui = auto
[branch]
- autosetuprebase = true
+ autosetuprebase = always
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-24 07:32:19
|
Revision: 1757
http://assorted.svn.sourceforge.net/assorted/?rev=1757&view=rev
Author: yangzhang
Date: 2011-02-24 07:32:13 +0000 (Thu, 24 Feb 2011)
Log Message:
-----------
Add autosetuprebase=true
Modified Paths:
--------------
configs/trunk/src/gitconfig
Modified: configs/trunk/src/gitconfig
===================================================================
--- configs/trunk/src/gitconfig 2011-02-23 09:27:49 UTC (rev 1756)
+++ configs/trunk/src/gitconfig 2011-02-24 07:32:13 UTC (rev 1757)
@@ -25,3 +25,5 @@
conflictstyle = diff3
[color]
ui = auto
+[branch]
+ autosetuprebase = true
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-23 09:27:55
|
Revision: 1756
http://assorted.svn.sourceforge.net/assorted/?rev=1756&view=rev
Author: yangzhang
Date: 2011-02-23 09:27:49 +0000 (Wed, 23 Feb 2011)
Log Message:
-----------
Tune Apache memory usage
Modified Paths:
--------------
personal-site/trunk/README
Modified: personal-site/trunk/README
===================================================================
--- personal-site/trunk/README 2011-02-20 00:40:38 UTC (rev 1755)
+++ personal-site/trunk/README 2011-02-23 09:27:49 UTC (rev 1756)
@@ -76,6 +76,8 @@
Apache
------
+In apache2.conf, lower prefork's `MaxClients` to something manageable (15).
+
In sites-enabled/000-default:
<Directory /var/www/wp/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-20 00:40:44
|
Revision: 1755
http://assorted.svn.sourceforge.net/assorted/?rev=1755&view=rev
Author: yangzhang
Date: 2011-02-20 00:40:38 +0000 (Sun, 20 Feb 2011)
Log Message:
-----------
Set cdable_vars
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 2011-02-19 06:11:49 UTC (rev 1754)
+++ shell-tools/trunk/src/bash-commons/bashrc.bash 2011-02-20 00:40:38 UTC (rev 1755)
@@ -168,7 +168,7 @@
export HISTCONTROL=ignoredups
export HISTFILESIZE=10000000
export HISTSIZE=10000000
-shopt -s checkwinsize
+shopt -s checkwinsize cdable_vars
# TODO check this hist size (for sanity)
# perl
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-19 06:11:55
|
Revision: 1754
http://assorted.svn.sourceforge.net/assorted/?rev=1754&view=rev
Author: yangzhang
Date: 2011-02-19 06:11:49 +0000 (Sat, 19 Feb 2011)
Log Message:
-----------
Note solution to stuckproc.py
Modified Paths:
--------------
sandbox/trunk/src/py/stuckproc.py
Modified: sandbox/trunk/src/py/stuckproc.py
===================================================================
--- sandbox/trunk/src/py/stuckproc.py 2011-02-19 06:11:06 UTC (rev 1753)
+++ sandbox/trunk/src/py/stuckproc.py 2011-02-19 06:11:49 UTC (rev 1754)
@@ -1,6 +1,7 @@
# Unexpected waiting Python subprocesses
# I reduced a problem I was seeing in my application down into the following test case. In this code, a parent process concurrently spawns 2 (you can spawn more) subprocesses that read a big message from the parent over stdin, sleep for 5 seconds, and write something back. However, there's unexpected waiting happening somewhere, causing the code to complete in 10 seconds instead of the expected 5. If you set verbose=True, you can see that the straggling subprocess is receiving most of the messages, then waiting for the last chunk of 3 chars---it's not detecting that the pipe has been closed. Furthermore, if I simply don't do anything with the second process, the first process will *never* see the EOF. Any ideas what's happening?
# Posted to mailing list, stackoverflow, bugs.python.org
+# Solution: need to pass close_fds=True to Popen, or else subprocesses may have FDs to each others' pipes, and a pipe doesn't see EOF until all writers have closed! Took a long time to debug.
from subprocess import *
from threading import *
from time import *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <yan...@us...> - 2011-02-19 06:11:12
|
Revision: 1753
http://assorted.svn.sourceforge.net/assorted/?rev=1753&view=rev
Author: yangzhang
Date: 2011-02-19 06:11:06 +0000 (Sat, 19 Feb 2011)
Log Message:
-----------
Add C++ port of stuckproc.py
Added Paths:
-----------
sandbox/trunk/src/cc/stuckproc.cc
Added: sandbox/trunk/src/cc/stuckproc.cc
===================================================================
--- sandbox/trunk/src/cc/stuckproc.cc (rev 0)
+++ sandbox/trunk/src/cc/stuckproc.cc 2011-02-19 06:11:06 UTC (rev 1753)
@@ -0,0 +1,56 @@
+// See stuckproc.py
+#include <unistd.h>
+#include <iostream>
+#include <pthread.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/wait.h>
+using namespace std;
+enum { bufsz = 3, nt = 2 };
+char buf[bufsz];
+int workids[] = {0, 1};
+const bool verbose = false;
+long long ms() {
+ timeval tv;
+ gettimeofday(&tv, 0);
+ return (long long) tv.tv_sec * 1000 + (long long) tv.tv_usec / 1000;
+}
+ostream &log(int workid) {
+ return cout << ms() << " " << workid << ' ';
+}
+void* go(void *p) {
+ int workid = *((int*) p);
+ int rw[2];
+ pipe(rw);
+ int pid = fork();
+ if (pid == 0) { // child
+ close(rw[1]);
+ log(workid) << "hello" << endl;
+ while (ssize_t r = read(rw[0], buf, bufsz)) {
+ if (verbose) log(workid) << "read " << r << endl;
+ }
+ log(workid) << "done reading; sleeping" << endl;
+ sleep(5);
+ log(workid) << "bye" << endl;
+ } else { // parent
+ log(workid) << "writing" << endl;
+ ssize_t w = write(rw[1], buf, bufsz);
+ log(workid) << "wrote " << w << "; closing" << endl;
+ sleep(1);
+ close(rw[1]);
+ log(workid) << "waiting" << endl;
+ waitpid(pid, 0, 0);
+ }
+ return 0;
+}
+int main() {
+ pthread_t ts[nt];
+ for (int i = 0; i < nt; i++) {
+ pthread_create(&ts[i], 0, go, &workids[i]);
+ usleep(1000); // stagger a bit to prevent mixing up the printouts
+ }
+ for (int i = 0; i < nt; i++) {
+ pthread_join(ts[i], 0);
+ }
+ return 0;
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|