Re: about the Python code

From: Alan Dechert <adechert_at_earthlink_dot_net>
Date: Thu Jul 24 2003 - 11:12:21 CDT

- ------=_NextPart_000_0049_01C351C3.B01BF280
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

We don't have a specific format worked out but I can give you some =
clues. The text should all be in a fixed width (non-proportional) font =
that is easy to read for humans and scanners.

The printout will have a title that goes something like this:

OFFICIAL BALLOT
GENERAL ELECTION=20
SANTA CLARA COUNTY, CA, PRECINCT 2216
NOVEMBER 7, 2000

The ballot number will be printed in each corner. On the bottom, I =
think we want the ballot number printed upside down (this is so the =
ballot number can be easily read with the ballot face down by lifting =
any corner). =20

The ballot number will be a random number from a range of 1000 numbers. =
I don't know how you get a random number in python but here's what I've =
done in dBASE.

MyNumber =3D "1"+substr(str(rand(),12,3),10,3)

Incidentally, these four digits will be combined with state, county, =
precinct, and date to make a unique key.

The printout will list the selections made

PRESIDENT RACHEL CARSON=20
VICE PRESIDENT JOHN MUIR

STATE SENATE ROBERT INGERSOLL

etc.

There will be a bar code on the long edge (duplicate on left and right =
edge). I will have more to say about the bar code in another message.

The print button should be at the end of the on screen ballot image like =
I have here.
http://home.earthlink.net/~adechert/ballot-mockup3.gif

Alan

   ----- Original Message -----=20
   From: yu wang=20
   To: Matt Shomphe=20
   Cc: adechert@earthlink.net ; voting-project@lists.sonic.net=20
   Sent: Wednesday, July 23, 2003 11:12 PM
   Subject: [voting-project] about the Python code

    Hey Matt,
       You did ask me a good question. I am not quite sure what kind of =
format it suppose look like, I personally do not think we have any =
specific format decided yet. However, we do have a picture of a paper =
ballot , that is what we like it to be so far, I am not sure if you =
have seen it or not, I am sending it to you anyway. In the mean time, =
what we really want is to include the printing function in the Python =
code. Thank you for the detail questions.

   Adrianne=20

    Matt Shomphe wrote:

     Adrianne,=20

     I'd be glad to add another button to the code. However, I'm not =
sure what "Print" should do. Should it just write out a file? Should =
there be a specific format (e.g., XML)? Or should it do something else? =

     Any other suggestions/additions?=20

     I'll try to clean up the code and make it a bit more robust, as well =
as having specific APIs that others can use. I'll try to document as =
best I can :)=20

     Speaking of documentation, is there a specific format that should be =
used? (DocBook, LaTex, plain old text, &c.)=20

     Matt=20

     ps -- Ciao, Matteo! Ho studiato italiano per due anni, ma ho =
dimenticato tutto. E' facile da leggere (perche ho studiato il latino =
per 4 anni), ma e' difficile da parlare :)=20

     On Wed, 23 Jul 2003 16:58:16 -0700, Adrianne Wang =
<xinxin_2000@yahoo.com> wrote:=20

       Hi Matt,=20
       I just ran your code, it is pretty cool. I am wondering if you =
would like to add one more print button to your code, which provides =
printing function, then I will add your code to sourceforge.net as our =
first prototype. Thank you.=20

       Adrianne=20

- -------------------------------------------------------------------------=
- -----
   Do you Yahoo!?
   Yahoo! SiteBuilder - Free, easy-to-use web site design software

- ------=_NextPart_000_0049_01C351C3.B01BF280
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--StartFragment --><HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>We don't have a specific format worked =
out but I=20
can give you some clues.&nbsp; The text should all be in a fixed width=20
(non-proportional) font that is easy to read for humans and=20
scanners.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The printout will have a title that =
goes something=20
like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>OFFICIAL BALLOT</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>GENERAL ELECTION </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>SANTA CLARA COUNTY, CA, PRECINCT =
2216</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>NOVEMBER 7, 2000</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The ballot number will be printed in =
each=20
corner.&nbsp; On the bottom, I think we want the ballot number printed =
upside=20
down (this is so the ballot number can be easily read with the ballot =
face down=20
by lifting any corner).&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The ballot number will be a random =
number from a=20
range of 1000 numbers.&nbsp; I don't know how you get a random number in =
python=20
but here's what I've done in dBASE.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>MyNumber =3D "1"+substr(str(rand(),12,3),10,3)</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Incidentally, these four digits will be =
combined=20
with state, county,&nbsp;precinct, and date&nbsp;to make a unique=20
key.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The printout will list the selections=20
made</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>PRESIDENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
RACHEL CARSON </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>VICE=20
PRESIDENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
JOHN=20
MUIR</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>STATE=20
SENATE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ROBERT=20
INGERSOLL</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>etc.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>There will be a bar code on the long =
edge=20
(duplicate on left and right edge).&nbsp; I will have more to say about =
the bar=20
code in another message.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The print button should be at the end =
of the on=20
screen ballot image like I have here.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://home.earthlink.net/~adechert/ballot-mockup3.gif">http://ho=
me.earthlink.net/~adechert/ballot-mockup3.gif</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Alan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
   <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
   <DIV=20
   style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
   <A title=3Dxinxin_2000@yahoo.com =
href=3D"mailto:xinxin_2000@yahoo.com">yu wang</A>=20
   </DIV>
   <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dmshomphe@comcast.net=20
   href=3D"mailto:mshomphe@comcast.net">Matt Shomphe</A> </DIV>
   <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Dadechert@earthlink.net=20
   href=3D"mailto:adechert@earthlink.net">adechert@earthlink.net</A> ; <A =

   title=3Dvoting-project@lists.sonic.net=20
   =
href=3D"mailto:voting-project@lists.sonic.net">voting-project@lists.sonic=
.net</A>=20
   </DIV>
   <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 23, 2003 =
11:12=20
   PM</DIV>
   <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [voting-project] about =
the=20
   Python code</DIV>
   <DIV><BR></DIV>
   <DIV>&nbsp;Hey Matt,<BR>&nbsp;&nbsp;&nbsp; You did ask me a good =
question. I=20
   am not quite sure what kind of&nbsp; format it suppose look like, I =
personally=20
   do not think we have any specific format decided yet. However, we do =
have a=20
   picture of a paper ballot , that is what we like it to be so =
far,&nbsp; I am=20
   not sure if you have seen it or not, I am sending it to you anyway. In =
the=20
   mean time, what we really want is to include the printing function in =
the=20
   Python code. Thank you for the detail questions.<BR><BR>Adrianne =
</DIV>
   <DIV>&nbsp;</DIV>
   <DIV>&nbsp;</DIV>
   <DIV>&nbsp;</DIV>
   <DIV>&nbsp;</DIV>
   <DIV><!--StartFragment -->&nbsp;Matt Shomphe wrote:<BR>
   <BLOCKQUOTE type=3D"cite"=20
     cite=3D"midoprssh9ijnk28pp0@smtp.comcast.net">Adrianne, <BR><BR>I'd =
be glad to=20
     add another button to the code.&nbsp; However, I'm not sure what =
"Print"=20
     should do.&nbsp; Should it just write out a file?&nbsp; Should there =
be a=20
     specific format (e.g., XML)?&nbsp; Or should it do something else?=20
     <BR><BR>Any other suggestions/additions? <BR><BR>I'll try to clean =
up the=20
     code and make it a bit more robust, as well as having specific APIs =
that=20
     others can use.&nbsp; I'll try to document as best I can :) =
<BR><BR>Speaking=20
     of documentation, is there a specific format that should be used? =
(DocBook,=20
     LaTex, plain old text, &amp;c.) <BR><BR>Matt <BR><BR>ps -- Ciao,=20
     Matteo!&nbsp; Ho studiato italiano per due anni, ma ho dimenticato=20
     tutto.&nbsp; E' facile da leggere (perche ho studiato il latino per =
4 anni),=20
     ma e' difficile da parlare :) <BR><BR>On Wed, 23 Jul 2003 16:58:16 =
- -0700,=20
     Adrianne Wang &lt;xinxin_2000@yahoo.com&gt; wrote: <BR><BR>
     <BLOCKQUOTE type=3D"cite">Hi Matt, <BR>I just ran your code, it is =
pretty=20
       cool. I am wondering if you would like to add one more print =
button to=20
       your code, which provides&nbsp; printing&nbsp; function, then =
I&nbsp; will=20
       add your code to sourceforge.net as our first prototype. Thank =
you.=20
       <BR><BR><BR>Adrianne =
<BR><BR><BR><BR></BLOCKQUOTE><BR><BR></BLOCKQUOTE></DIV>
   <P>
   <HR SIZE=3D1>
   Do you Yahoo!?<BR><A=20
   =
href=3D"http://us.rd.yahoo.com/evt=3D10469/*http://sitebuilder.yahoo.com"=
>Yahoo!=20
   SiteBuilder</A> - Free, easy-to-use web site design=20
software</BLOCKQUOTE></BODY></HTML>

- ------=_NextPart_000_0049_01C351C3.B01BF280--
Received on Thu, 24 Jul 2003 09:12:21 -0700

This archive was generated by hypermail 2.1.8 : Wed Aug 06 2003 - 12:50:26 CDT