1 Apr 18:23 2011

### Re: Wanted: Biased Opinions: Django or Pyramid (Pylons/BFG)?

Looks like we have a winner! Just released today ;)

http://web2pyramid.pylonsproject.org/

1 Apr 18:49 2011

### Re: Wanted: Biased Opinions: Django or Pyramid (Pylons/BFG)?

On 4/1/2011 11:23 AM, Paul McLanahan wrote:
> Looks like we have a winner! Just released today ;)
>
> http://web2pyramid.pylonsproject.org/
Maybe - I went there and can't tell what to do next.

I clicked JOIN THE FUTURE ON GITHUB - I certainly can't tell what to do
next there!

What am I missing?

There are some screen shots. What do I do with them?

--

--
Bob Gailer
919-636-4239
Chapel Hill NC


1 Apr 19:18 2011

### Re: Wanted: Biased Opinions: Django or Pyramid (Pylons/BFG)?

Check the calendar, then your sense of humor...  Or am I being trolled?

On Fri, Apr 1, 2011 at 12:49 PM, bob gailer <bgailer@...> wrote:
> On 4/1/2011 11:23 AM, Paul McLanahan wrote:
>>
>> Looks like we have a winner! Just released today ;)
>>
>> http://web2pyramid.pylonsproject.org/
>
> Maybe - I went there and can't tell what to do next.
>
> I clicked JOIN THE FUTURE ON GITHUB - I certainly can't tell what to do next
> there!
>
> What am I missing?
>
> There are some screen shots. What do I do with them?
>
> --
> Bob Gailer
> 919-636-4239
> Chapel Hill NC
>
> _______________________________________________
> TriZPUG mailing list
> TriZPUG@...
> http://mail.python.org/mailman/listinfo/trizpug
> http://trizpug.org is the Triangle Zope and Python Users Group
>



1 Apr 20:33 2011

### Re: Wanted: Biased Opinions: Django or Pyramid (Pylons/BFG)?

On 4/1/2011 12:18 PM, Joseph S. Tate wrote:
> Check the calendar, then your sense of humor...  Or am I being trolled?

Frankly I am not amused. I don't have enough background in this domain
to know when something is to be taken as a joke.

I was hoping for some usable tools.

Are you telling me this is an April Fool's joke?
> On Fri, Apr 1, 2011 at 12:49 PM, bob gailer<bgailer@...>  wrote:
>> On 4/1/2011 11:23 AM, Paul McLanahan wrote:
>>> Looks like we have a winner! Just released today ;)
>>>
>>> http://web2pyramid.pylonsproject.org/
>> Maybe - I went there and can't tell what to do next.
>>
>> I clicked JOIN THE FUTURE ON GITHUB - I certainly can't tell what to do next
>> there!
>>
>> What am I missing?
>>
>> There are some screen shots. What do I do with them?
>>
>> --
>> Bob Gailer
>> 919-636-4239
>> Chapel Hill NC
>>
>> _______________________________________________
>> TriZPUG mailing list


1 Apr 20:51 2011

### Re: Wanted: Biased Opinions: Django or Pyramid (Pylons/BFG)?

On Fri, Apr 1, 2011 at 2:33 PM, bob gailer <bgailer@...> wrote:
> Are you telling me this is an April Fool's joke?

Yes, it's an April Fools Joke, web2py is a much maligned (and
justifiably imho) python web framework/DSL.  No way that Pyramid would
join that cause.

Perhaps it's not funny to you, but I think it's hilarious.  Use of
exec?  Zope through the web editing? What killer (to your
productivity, sanity, and security) features!

--

--
Joseph Tate
Personal e-mail: jtate AT dragonstrider DOT com
Web: http://www.dragonstrider.com

3 Apr 00:37 2011

### A beginners question I am sure

OK so working on a project (just started) that is for my own academic
purposes for now.  Just trying to train myself in python.  The attached
code snippet is to convert the websters dictionary (grab specific
components) and insert them in a pipe delimmited data file for now.
Next will be to a database.

When I ran this for a 4.5 MB snippet of the file it worked fine, output
file generated output good.  However when I run it for the entirety of
the webster.txt file (45 MB) the program runs (well more apropos ends
without any error message to me) but the output file I am creating is
empty (0 bytes).

The purpose for now is to build a subset dictionary file that is nothing
more than word and the single letter initialism for word type (n = noun,
v = verb, etc.)  Would appreciate insight into why this is not running
to completion.  If anyone cares to know, I am running this on a Fedora
14 box, I edit and created my .py file with vim and my python
installation is python-2.7-8.fc14.1.i686 (output from rpm -q python).

Ken

P.S.  To save bandwidth I did not attach the webster.txt file however if
anyone wanted to run this against it themselves it can be acquired
through the Project Gutenberg site.

Attachment (dictconvert.py): text/x-python, 766 bytes
OK so working on a project (just started) that is for my own academic
purposes for now.  Just trying to train myself in python.  The attached


3 Apr 00:56 2011

### Re: A beginners question I am sure

I may be missing something, but your code looks okay to me. I looked for the source text and found a couple of examples that made me wonder though--in one the lines were broken and in the other paragraphs were set in a single line, but still not all the <hw> parts had <pos> parts.

Can you post a direct link to the file? Or maybe someone else will see a problem in the code.  I would have used lists and not kept the files open, but that's just a matter of taste--your logic looks right to me.
--Tim Arnold

On Sat, Apr 2, 2011 at 6:37 PM, Ken M wrote:
OK so working on a project (just started) that is for my own academic
purposes for now.  Just trying to train myself in python.  The attached
code snippet is to convert the websters dictionary (grab specific
components) and insert them in a pipe delimmited data file for now.
Next will be to a database.

When I ran this for a 4.5 MB snippet of the file it worked fine, output
file generated output good.  However when I run it for the entirety of
the webster.txt file (45 MB) the program runs (well more apropos ends
without any error message to me) but the output file I am creating is
empty (0 bytes).

The purpose for now is to build a subset dictionary file that is nothing
more than word and the single letter initialism for word type (n = noun,
v = verb, etc.)  Would appreciate insight into why this is not running
to completion.  If anyone cares to know, I am running this on a Fedora
14 box, I edit and created my .py file with vim and my python
installation is python-2.7-8.fc14.1.i686 (output from rpm -q python).

Ken

P.S.  To save bandwidth I did not attach the webster.txt file however if
anyone wanted to run this against it themselves it can be acquired
through the Project Gutenberg site.

_______________________________________________
TriZPUG mailing list
TriZPUG-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org
http://mail.python.org/mailman/listinfo/trizpug
http://trizpug.org is the Triangle Zope and Python Users Group

<div>
<p>I may be missing something, but your code looks okay to me. I looked for the source text and found a couple of examples that made me wonder though--in one the lines were broken and in the other paragraphs were set in a single line, but still not all the &lt;hw&gt; parts had &lt;pos&gt; parts.</p>
<div>
<br>
</div>
<div>Can you post a direct link to the file? Or maybe someone else will see a problem in the code. &nbsp;I would have used lists and not kept the files open, but that's just a matter of taste--your logic looks right to me.</div>
<div>--Tim Arnold</div>
<div>
<br><br><div class="gmail_quote">On Sat, Apr 2, 2011 at 6:37 PM, Ken M <span dir="ltr">&lt;<a href="mailto:ken <at> mack-z.com">ken@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
OK so working on a project (just started) that is for my own academic<br>
purposes for now. &nbsp;Just trying to train myself in python. &nbsp;The attached<br>
code snippet is to convert the websters dictionary (grab specific<br>
components) and insert them in a pipe delimmited data file for now.<br>
Next will be to a database.<br><br>
When I ran this for a 4.5 MB snippet of the file it worked fine, output<br>
file generated output good. &nbsp;However when I run it for the entirety of<br>
the webster.txt file (45 MB) the program runs (well more apropos ends<br>
without any error message to me) but the output file I am creating is<br>
empty (0 bytes).<br><br>
The purpose for now is to build a subset dictionary file that is nothing<br>
more than word and the single letter initialism for word type (n = noun,<br>
v = verb, etc.) &nbsp;Would appreciate insight into why this is not running<br>
to completion. &nbsp;If anyone cares to know, I am running this on a Fedora<br>
14 box, I edit and created my .py file with vim and my python<br>
installation is python-2.7-8.fc14.1.i686 (output from rpm -q python).<br><br>
P.S. &nbsp;To save bandwidth I did not attach the webster.txt file however if<br>
anyone wanted to run this against it themselves it can be acquired<br>
through the Project Gutenberg site.<br><br>_______________________________________________<br>
TriZPUG mailing list<br><a href="mailto:TriZPUG@...">TriZPUG@...</a><br><a href="http://mail.python.org/mailman/listinfo/trizpug" target="_blank">http://mail.python.org/mailman/listinfo/trizpug</a><br><a href="http://trizpug.org" target="_blank">http://trizpug.org</a> is the Triangle Zope and Python Users Group<br>
</blockquote>
</div>
<br>
</div>
</div>

3 Apr 01:28 2011

### Re: A beginners question I am sure

This is the link to the source file:

http://www.gutenberg.org/dirs/etext96/pgwht04.txt

Ken

On Sat, 2011-04-02 at 18:56 -0400, Tim Arnold wrote:
> I may be missing something, but your code looks okay to me. I looked
> for the source text and found a couple of examples that made me wonder
> though--in one the lines were broken and in the other paragraphs were
> set in a single line, but still not all the <hw> parts had <pos>
> parts.
>
>
> Can you post a direct link to the file? Or maybe someone else will see
> a problem in the code.  I would have used lists and not kept the files
> open, but that's just a matter of taste--your logic looks right to me.
> --Tim Arnold
>
>
> On Sat, Apr 2, 2011 at 6:37 PM, Ken M <ken@...> wrote:
>         OK so working on a project (just started) that is for my own
>         purposes for now.  Just trying to train myself in python.  The
>         attached
>         code snippet is to convert the websters dictionary (grab
>         specific
>         components) and insert them in a pipe delimmited data file for
>         now.
>         Next will be to a database.
>
>         When I ran this for a 4.5 MB snippet of the file it worked
>         fine, output
>         file generated output good.  However when I run it for the
>         entirety of
>         the webster.txt file (45 MB) the program runs (well more
>         apropos ends
>         without any error message to me) but the output file I am
>         creating is
>         empty (0 bytes).
>
>         The purpose for now is to build a subset dictionary file that
>         is nothing
>         more than word and the single letter initialism for word type
>         (n = noun,
>         v = verb, etc.)  Would appreciate insight into why this is not
>         running
>         to completion.  If anyone cares to know, I am running this on
>         a Fedora
>         14 box, I edit and created my .py file with vim and my python
>         installation is python-2.7-8.fc14.1.i686 (output from rpm -q
>         python).
>
>         Ken
>
>         P.S.  To save bandwidth I did not attach the webster.txt file
>         however if
>         anyone wanted to run this against it themselves it can be
>         acquired
>         through the Project Gutenberg site.
>
>         _______________________________________________
>         TriZPUG mailing list
>         TriZPUG@...
>         http://mail.python.org/mailman/listinfo/trizpug
>         http://trizpug.org is the Triangle Zope and Python Users Group
>
>


3 Apr 01:28 2011

### Re: A beginners question I am sure

I will try these shortly, thank you, direct link to file:

http://www.gutenberg.org/dirs/etext96/pgwht04.txt

I renamed it webster.txt for meaningfulness within my directory
structure.

Ken

On Sat, 2011-04-02 at 19:06 -0400, Philip Semanchuk wrote:
> On Apr 2, 2011, at 6:37 PM, Ken M wrote:
>
> > OK so working on a project (just started) that is for my own academic
> > purposes for now.  Just trying to train myself in python.  The attached
> > code snippet is to convert the websters dictionary (grab specific
> > components) and insert them in a pipe delimmited data file for now.
> > Next will be to a database.
> >
> > When I ran this for a 4.5 MB snippet of the file it worked fine, output
> > file generated output good.  However when I run it for the entirety of
> > the webster.txt file (45 MB) the program runs (well more apropos ends
> > without any error message to me) but the output file I am creating is
> > empty (0 bytes).
> >
> > The purpose for now is to build a subset dictionary file that is nothing
> > more than word and the single letter initialism for word type (n = noun,
> > v = verb, etc.)  Would appreciate insight into why this is not running
> > to completion.  If anyone cares to know, I am running this on a Fedora
> > 14 box, I edit and created my .py file with vim and my python
> > installation is python-2.7-8.fc14.1.i686 (output from rpm -q python).
>
>
>
>
> At the end, you have this:
> fin.close
> fout.close
>
> You forgot the parens:
> fin.close()
> fout.close()
>
> I don't know if that has anything to do with your lack of output.
>
> For debugging, I'd add this:
>    print wordline
> after this:
>    fout.write(wordline)
>
> to get an idea of whether anything get processed at all.
>
>
> And Pythonwise, I'd replace this:
>     buildword = ''
>     for x in tmpword:
>         if x in string.ascii_lowercase:
>             buildword = buildword + x
>
> With this:
>     buildword = [char for char in tmpword if char in string.ascii_lowercase]
>     buildword = ''.join(buildword)
>
>
>
> > P.S.  To save bandwidth I did not attach the webster.txt file however if
> > anyone wanted to run this against it themselves it can be acquired
> > through the Project Gutenberg site.
>
> Do you have a direct link?
>
>
> Hope this helps
> Philip
>


3 Apr 01:36 2011

### Re: A beginners question I am sure

On Sat, Apr 2, 2011 at 7:28 PM, Ken M wrote:
I will try these shortly, thank you, direct link to file:
I renamed it webster.txt for meaningfulness within my directory
structure.

Ken

On Sat, 2011-04-02 at 19:06 -0400, Philip Semanchuk wrote:
> On Apr 2, 2011, at 6:37 PM, Ken M wrote:
>
> > OK so working on a project (just started) that is for my own academic
> > purposes for now.  Just trying to train myself in python.  The attached
> > code snippet is to convert the websters dictionary (grab specific
> > components) and insert them in a pipe delimmited data file for now.
> > Next will be to a database.
> >
> > When I ran this for a 4.5 MB snippet of the file it worked fine, output
> > file generated output good.  However when I run it for the entirety of
> > the webster.txt file (45 MB) the program runs (well more apropos ends
> > without any error message to me) but the output file I am creating is
> > empty (0 bytes).
> >
> > The purpose for now is to build a subset dictionary file that is nothing
> > more than word and the single letter initialism for word type (n = noun,
> > v = verb, etc.)  Would appreciate insight into why this is not running
> > to completion.  If anyone cares to know, I am running this on a Fedora
> > 14 box, I edit and created my .py file with vim and my python
> > installation is python-2.7-8.fc14.1.i686 (output from rpm -q python).
>
>
>
>
> At the end, you have this:
> fin.close
> fout.close
>
> You forgot the parens:
> fin.close()
> fout.close()
>
> I don't know if that has anything to do with your lack of output.
>
> For debugging, I'd add this:
>    print wordline
> after this:
>    fout.write(wordline)
>
> to get an idea of whether anything get processed at all.
>
>
> And Pythonwise, I'd replace this:
>     buildword = ''
>     for x in tmpword:
>         if x in string.ascii_lowercase:
>             buildword = buildword + x
>
> With this:
>     buildword = [char for char in tmpword if char in string.ascii_lowercase]
>     buildword = ''.join(buildword)
>
>
>
> > P.S.  To save bandwidth I did not attach the webster.txt file however if
> > anyone wanted to run this against it themselves it can be acquired
> > through the Project Gutenberg site.
>
> Do you have a direct link?
>
>
> Hope this helps
> Philip
>

_______________________________________________
TriZPUG mailing list
TriZPUG-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org
http://mail.python.org/mailman/listinfo/trizpug
http://trizpug.org is the Triangle Zope and Python Users Group

hi Ken,
I don't see any <pos> strings in that file.
--Tim Arnold

<div>
<div>
<div class="gmail_quote">On Sat, Apr 2, 2011 at 7:28 PM, Ken M <span dir="ltr">&lt;<a href="mailto:ken@...">ken@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
I will try these shortly, thank you, direct link to file:<br><div class="im">
<br><a href="http://www.gutenberg.org/dirs/etext96/pgwht04.txt" target="_blank">http://www.gutenberg.org/dirs/etext96/pgwht04.txt</a><br><br>
</div>I renamed it webster.txt for meaningfulness within my directory<br>
structure.<br><br>
Ken<br><br>
On Sat, 2011-04-02 at 19:06 -0400, Philip Semanchuk wrote:<br><div class="im">&gt; On Apr 2, 2011, at 6:37 PM, Ken M wrote:<br>
&gt;<br>
&gt; &gt; OK so working on a project (just started) that is for my own academic<br>
&gt; &gt; purposes for now. &nbsp;Just trying to train myself in python. &nbsp;The attached<br>
&gt; &gt; code snippet is to convert the websters dictionary (grab specific<br>
&gt; &gt; components) and insert them in a pipe delimmited data file for now.<br>
&gt; &gt; Next will be to a database.<br>
&gt; &gt;<br>
&gt; &gt; When I ran this for a 4.5 MB snippet of the file it worked fine, output<br>
&gt; &gt; file generated output good. &nbsp;However when I run it for the entirety of<br>
&gt; &gt; the webster.txt file (45 MB) the program runs (well more apropos ends<br>
&gt; &gt; without any error message to me) but the output file I am creating is<br>
&gt; &gt; empty (0 bytes).<br>
&gt; &gt;<br>
&gt; &gt; The purpose for now is to build a subset dictionary file that is nothing<br>
&gt; &gt; more than word and the single letter initialism for word type (n = noun,<br>
&gt; &gt; v = verb, etc.) &nbsp;Would appreciate insight into why this is not running<br>
&gt; &gt; to completion. &nbsp;If anyone cares to know, I am running this on a Fedora<br>
&gt; &gt; 14 box, I edit and created my .py file with vim and my python<br>
&gt; &gt; installation is python-2.7-8.fc14.1.i686 (output from rpm -q python).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; At the end, you have this:<br>
&gt; fin.close<br>
&gt; fout.close<br>
&gt;<br>
&gt; You forgot the parens:<br>
&gt; fin.close()<br>
&gt; fout.close()<br>
&gt;<br>
&gt; I don't know if that has anything to do with your lack of output.<br>
&gt;<br>
&gt; For debugging, I'd add this:<br>
&gt; &nbsp; &nbsp;print wordline<br>
&gt; after this:<br>
&gt; &nbsp; &nbsp;fout.write(wordline)<br>
&gt;<br>
&gt; to get an idea of whether anything get processed at all.<br>
&gt;<br>
&gt;<br>
&gt; And Pythonwise, I'd replace this:<br>
&gt; &nbsp; &nbsp; buildword = ''<br>
&gt; &nbsp; &nbsp; for x in tmpword:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; if x in string.ascii_lowercase:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buildword = buildword + x<br>
&gt;<br>
&gt; With this:<br>
&gt; &nbsp; &nbsp; buildword = [char for char in tmpword if char in string.ascii_lowercase]<br>
&gt; &nbsp; &nbsp; buildword = ''.join(buildword)<br><div class="im">&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; P.S. &nbsp;To save bandwidth I did not attach the webster.txt file however if<br>
&gt; &gt; anyone wanted to run this against it themselves it can be acquired<br>
&gt; &gt; through the Project Gutenberg site.<br>
&gt;<br>
</div>&gt; Do you have a direct link?<br>
&gt;<br>
&gt;<br>
&gt; Hope this helps<br>
&gt; Philip<br><div>
<div></div>
<div class="h5">&gt;<br><br><br>
_______________________________________________<br>
TriZPUG mailing list<br><a href="mailto:TriZPUG@...">TriZPUG@...</a><br><a href="http://mail.python.org/mailman/listinfo/trizpug" target="_blank">http://mail.python.org/mailman/listinfo/trizpug</a><br><a href="http://trizpug.org" target="_blank">http://trizpug.org</a> is the Triangle Zope and Python Users Group<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<div>hi Ken,<div>I don't see any &lt;pos&gt; strings in that file.</div>
<div>--Tim Arnold</div>
<div><br></div>
</div>
</div>


Gmane