Index: pcb-rnd-poll.cgi =================================================================== --- pcb-rnd-poll.cgi (nonexistent) +++ pcb-rnd-poll.cgi (revision 1585) @@ -0,0 +1,335 @@ +#!/bin/bash + +root=src +db=db +sesdir=$db/session +CGI="/cgi-bin/pcb-rnd-poll.cgi" +spiral=/home/igor2/C/c_exp/captcha/src/captcha/main + +session_fields="SES_EMAIL SES_CAPTCHA" + +# how much each choice is worth when calculating scores +choice2score=' +BEGIN { + SCORE[0] = 15 + SCORE[1] = 10 + SCORE[2] = 6 + SCORE[3] = 3 + SCORE[4] = 1 + SCORE[5] = 0 +} +' + +# ordered list of choices from 0 +choices='I would use pcb-rnd in production for this feature and hereby sign up for testing the feature +I hereby sign up for testing this feature in pcb-rnd +I would definitely download and try pcb-rnd if it already had this feature +I would maybe try pcb-rnd if it had this feature +This feature is interesting, I would maybe use it in mainline, but it is not important enough for me to try pcb-rnd +I do not need this feature at all +' + +# someone is a tester if choice is < $tester_thrs +tester_thrs=2 + +fix_ltgt() +{ + sed "s/\</g;s/>/\>/g" +} + +qs=`echo "$QUERY_STRING" | tr "&" "\n"` + +for n in $qs +do + exp="QS_$n" + export $exp +done + +get_score() +{ + bn=`basename $1` + fn="$db/votes/$bn" + if test ! -f $fn + then + echo "0" + return + fi +# format: choice|email + awk -F "[|]" ' + (NF > 1) { + choice=$1 + mail=$2 + VOTES[mail] = choice + } + + '"$choice2score"' + + END { + for(n in VOTES) + score += SCORE[VOTES[n]] + print score + } + ' < $fn +} + +render_vote_section() +{ + local old_ifs val n +# echo "" +} + +do_list() +{ + local l score name short long bn + while read l + do + score=`get_score $l` + echo "$score $l" + done | sort -n -r | while read score name + do + bn=`basename $name` + echo "
" + if test -z "$QS_SID" + then + echo " start voting " + else + render_vote_section $bn + fi + done +} + +find_all() +{ + find "$root" -maxdepth 1 -type d -print | grep -v ".svn\|^$root\$" +} + +find_text() +{ + for n in `find_all` + do + found=`grep -- "$@" $n/short $n/long` + if test ! -z "$found" + then + echo $n + fi + done +} + +render_captcha() +{ + if test -z "$SES_CAPTCHA" + then + echo "INTERNAL ERROR generating the captcha" + return + fi + echo "
" + $spiral -n 35 -aalib "$SES_CAPTCHA" | fix_ltgt | sed "s/ *$//" | grep -v "^$" + echo "" + echo "
+ | score + | name + | description & my vote + +@list + + |
---|---|---|---|
+
+ + SUBMIT VOTE + + + | +@vote_submit + |
+Compatibilty: not affected Index: src/pushshove/short =================================================================== --- src/pushshove/short (nonexistent) +++ src/pushshove/short (revision 1585) @@ -0,0 +1 @@ +push & shove Index: src/splitline/icon.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: src/splitline/icon.png =================================================================== --- src/splitline/icon.png (nonexistent) +++ src/splitline/icon.png (revision 1585) Property changes on: src/splitline/icon.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: src/splitline/long =================================================================== --- src/splitline/long (nonexistent) +++ src/splitline/long (revision 1585) @@ -0,0 +1,4 @@ +action and GUI/key binding to split an existing segment of a trace +into two by inserting a new endpoint at an arbitrary position. +
+Compatibilty: not affected Index: src/splitline/short =================================================================== --- src/splitline/short (nonexistent) +++ src/splitline/short (revision 1585) @@ -0,0 +1 @@ +split line segments by inserting new points Index: src/textinv/icon.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: src/textinv/icon.png =================================================================== --- src/textinv/icon.png (nonexistent) +++ src/textinv/icon.png (revision 1585) Property changes on: src/textinv/icon.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: src/textinv/long =================================================================== --- src/textinv/long (nonexistent) +++ src/textinv/long (revision 1585) @@ -0,0 +1,7 @@ +Be able to write text in inverse, as a cutout on a rectangle. This is useful on +silk layer, especially with small fonts and/or toner transfer. +
+Compatibilty: mainline pcb wouldn't understand this feature +and would convert the text to normal + + Index: src/textinv/short =================================================================== --- src/textinv/short (nonexistent) +++ src/textinv/short (revision 1585) @@ -0,0 +1 @@ +inverse text Index: src/textln/icon.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: src/textln/icon.png =================================================================== --- src/textln/icon.png (nonexistent) +++ src/textln/icon.png (revision 1585) Property changes on: src/textln/icon.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: src/textln/long =================================================================== --- src/textln/long (nonexistent) +++ src/textln/long (revision 1585) @@ -0,0 +1,5 @@ +be able to manually change width of text lines, regardless of the font size +
+Compatibilty: mainline pcb wouldn't understand this feature +and would convert the text to the default line width + Index: src/textln/short =================================================================== --- src/textln/short (nonexistent) +++ src/textln/short (revision 1585) @@ -0,0 +1 @@ +manual text line width \ No newline at end of file Index: src/tracelen/icon.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: src/tracelen/icon.png =================================================================== --- src/tracelen/icon.png (nonexistent) +++ src/tracelen/icon.png (revision 1585) Property changes on: src/tracelen/icon.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: src/tracelen/long =================================================================== --- src/tracelen/long (nonexistent) +++ src/tracelen/long (revision 1585) @@ -0,0 +1,9 @@ +trace length calculation that: +
+Compatibilty: not affected Index: src/tracelen/short =================================================================== --- src/tracelen/short (nonexistent) +++ src/tracelen/short (revision 1585) @@ -0,0 +1 @@ +better trace length calculations Index: src/windows/icon.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: src/windows/icon.png =================================================================== --- src/windows/icon.png (nonexistent) +++ src/windows/icon.png (revision 1585) Property changes on: src/windows/icon.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: src/windows/long =================================================================== --- src/windows/long (nonexistent) +++ src/windows/long (revision 1585) @@ -0,0 +1,4 @@ +Port pcb-rnd to windows using the gtk HID. +
+Compatibilty: not affected + Index: src/windows/short =================================================================== --- src/windows/short (nonexistent) +++ src/windows/short (revision 1585) @@ -0,0 +1 @@ +windows port