1 Apr 2011 18:23
Re: Wanted: Biased Opinions: Django or Pyramid (Pylons/BFG)?
Looks like we have a winner! Just released today ;) http://web2pyramid.pylonsproject.org/
Looks like we have a winner! Just released today ;) http://web2pyramid.pylonsproject.org/
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
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 >(Continue reading)
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(Continue reading)
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
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). Thanks in advance, 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.
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(Continue reading)
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.
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).
Thanks in advance,
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 <hw> parts had <pos> 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. 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"><<a href="mailto:ken <at> mack-z.com">ken@...</a>></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. Just trying to train myself in python. 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. 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.) Would appreciate insight into why this is not running<br> to completion. 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> Thanks in advance,<br>Ken<br><br> P.S. 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>
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 > 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). > > Thanks in advance, > 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 > >
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). > > > Coupla comments -- > > > 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 >
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:> Coupla comments --
>
> > 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)>> Do you have a direct link?
>
>
> > 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.
>
>
>
> 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
<div> <div> <div class="gmail_quote">On Sat, Apr 2, 2011 at 7:28 PM, Ken M <span dir="ltr"><<a href="mailto:ken@...">ken@...</a>></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">> On Apr 2, 2011, at 6:37 PM, Ken M wrote:<br> ><br> > > OK so working on a project (just started) that is for my own academic<br> > > purposes for now. Just trying to train myself in python. 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. 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.) Would appreciate insight into why this is not running<br> > > to completion. 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> ><br> </div>> Coupla comments --<br> ><br> ><br> > At the end, you have this:<br> > fin.close<br> > fout.close<br> ><br> > You forgot the parens:<br> > fin.close()<br> > fout.close()<br> ><br> > I don't know if that has anything to do with your lack of output.<br> ><br> > For debugging, I'd add this:<br> > print wordline<br> > after this:<br> > fout.write(wordline)<br> ><br> > to get an idea of whether anything get processed at all.<br> ><br> ><br> > And Pythonwise, I'd replace this:<br> > buildword = ''<br> > for x in tmpword:<br> > if x in string.ascii_lowercase:<br> > buildword = buildword + x<br> ><br> > With this:<br> > buildword = [char for char in tmpword if char in string.ascii_lowercase]<br> > buildword = ''.join(buildword)<br><div class="im">><br> ><br> ><br> > > P.S. 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> </div>> Do you have a direct link?<br> ><br> ><br> > Hope this helps<br> > Philip<br><div> <div></div> <div class="h5">><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 <pos> strings in that file.</div> <div>--Tim Arnold</div> <div><br></div> </div> </div>
RSS Feed15 | |
|---|---|
35 | |
38 | |
27 | |
8 | |
14 | |
18 | |
19 | |
30 | |
27 | |
97 | |
27 | |
33 | |
37 | |
15 | |
44 | |
28 | |
36 | |
19 | |
18 | |
13 | |
28 | |
39 | |
33 | |
5 | |
12 | |
51 | |
25 | |
21 | |
22 | |
2 | |
9 | |
15 | |
24 | |
12 | |
10 | |
14 | |
6 | |
32 | |
50 | |
37 | |
30 | |
19 | |
96 | |
7 | |
14 | |
17 | |
15 | |
15 | |
13 | |
53 | |
9 | |
39 | |
11 | |
24 | |
12 | |
13 | |
28 | |
18 | |
24 | |
12 | |
48 | |
57 | |
62 | |
29 | |
30 | |
19 | |
27 | |
40 | |
23 | |
35 | |
51 | |
24 | |
23 | |
38 | |
41 | |
32 | |
44 | |
19 | |
29 | |
52 | |
42 | |
64 | |
52 | |
35 | |
25 | |
26 | |
66 | |
51 | |
21 | |
36 | |
29 | |
31 | |
78 | |
22 | |
31 | |
24 | |
33 | |
16 |