Re: Counting words in a string??

2016-09-30 Thread Jake
On Friday, 30 September 2016 19:49:57 UTC+1, srinivas devaki wrote: > On Oct 1, 2016 12:10 AM, "Jake" wrote: > > > > Hi, I need a program which: > > 1) Asks the user for a sentence of their choice (not including > punctuation) > > 2) Ask the user which

Counting words in a string??

2016-09-30 Thread Jake
Hi, I need a program which: 1) Asks the user for a sentence of their choice (not including punctuation) 2) Ask the user which word they would like to know is repeated 3) Print out to the user how many times the word came up which they chose from their sentence. It would help if you could comment

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Jake Kobs
MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. -- https://mail.python.org/mailman/listinfo/python-list

Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Jake Kobs
Here is the code: #Lab 9-4 Blood Drive #the main function def main(): endProgram = 'no' while endProgram == 'no': print # declare variables pints = [0] * 7 totalPints = 0 averagePints = 0 highPints = 0 lowPints = 0

Re: Average calculation Program *need help*

2016-05-13 Thread Jake Kobs
Thank you so much! I finally got it. :) -- https://mail.python.org/mailman/listinfo/python-list

Re: Average calculation Program *need help*

2016-05-12 Thread Jake Kobs
Thank you for the help..I think I'm getting closer, but I feel like after they enter an invalid number, it should reset the invalid number(s) somehow. Here's my updated code: -- #this function will get the total scores de

Re: Average calculation Program *need help*

2016-05-12 Thread Jake Kobs
On Thursday, May 12, 2016 at 11:57:28 PM UTC-5, Michael Torrie wrote: > On 05/12/2016 10:22 PM, Jake Kobs wrote: > > On Thursday, May 12, 2016 at 10:48:08 AM UTC-5, Jake Kobs wrote: > >> Hello all, I have been struggling with this code for 3 hours now and I'm > >&

Re: Average calculation Program *need help*

2016-05-12 Thread Jake Kobs
On Thursday, May 12, 2016 at 10:48:08 AM UTC-5, Jake Kobs wrote: > Hello all, I have been struggling with this code for 3 hours now and I'm > still stumped. My problem is that when I run the following code: >

Python programming

2014-08-27 Thread Jake
Jake-- https://mail.python.org/mailman/listinfo/python-list

Re: Python on a MacBook Pro (not my machine)

2013-11-06 Thread Jake Angulo
I use a Macbook air for programming - yes it has Python 2.x in it. For code editing i use a combination of: 1) Wing IDE 101 (from their website: "is free scaled down Python IDE designed for teaching introductory programming classes") 2) Sublime Text 3) Good old Vi You could try those On Thu, No

Re: Tryign to send mail via a python script by using the local MTA

2013-09-19 Thread Jake Angulo
Up Robert Kern's reply! I was waiting for smtplib to be mentioned... finally! Instead people simply answer philosophically. I dont want to judge whether OP is a troll or not - but i found a lot of arrogant replies here. I have also worked on an antispa

Re: Python variable as a string

2013-08-24 Thread Jake Angulo
13 at 11:23 PM, Neil Cerutti wrote: > On 2013-08-23, Jake Angulo wrote: > > I have a list *var* which after some evaluation I need to refer > > to *var* as a string. > > You must make a str version of var. > > > Pseudocode: > > > > var = ['a', &

Python variable as a string

2013-08-23 Thread Jake Angulo
Sorry this is a very basic question. I have a list *var* which after some evaluation I need to refer to *var* as a string. Pseudocode: var = ['a', 'b' , 'c' , 'd'] adict = dict(var='string', anothervar='anotherstring') anotherdict = dict() if : anotherdict[akey] = adict['var'] Basically im

Re: Python script help

2013-08-04 Thread Jake Angulo
On Mon, Aug 5, 2013 at 8:58 AM, Michael Torrie wrote: > On 08/02/2013 03:46 AM, cool1...@gmail.com wrote: > > I do know some Python programming, I just dont know enough to put > > together the various scripts I need...I would really really > > appreciate if some one can help me with that... > Hi

Re: Stack Overflow moderator “animuson”

2013-07-19 Thread Jake Angulo
On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson wrote: > A moderator who calls himself “animuson” on Stack Overflow doesn’t > want to face the truth. He has deleted all my postings regarding Python > regular expression matching being extremely slow compared to Perl. > Additionally my account has b

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-19 Thread Jake Angulo
On Thu, Jul 18, 2013 at 2:36 PM, Aseem Bansal wrote: > I wanted to do a little project for learning Python. I thought a chat > system will be good as it isn't something that I have ever done. > ... > I wanted to know what will I need? > 1 learn network/socket programming I was actua

Re: Python for philosophers

2013-05-13 Thread Jake Angulo
On Tue, May 14, 2013 at 9:32 AM, Citizen Kant wrote: > Do I want to learn to program? > I didn't say I've wanted to learn to program neither said the > opposite. I've said that I wasn't sure. H... i'd say you'll make very good business applications analyst. In fact i'd hazard to say you can

Re: im.py: a python communications tool

2013-04-09 Thread Jake D
I just put out a new version of im.py on GitHub. You can find it here: https://github.com/jhunter-d/im.py/blob/master/im.py -- http://mail.python.org/mailman/listinfo/python-list

New version

2013-04-09 Thread Jake D
There's a new version of im.py out on GitHub: https://github.com/jhunter-d/im.py/blob/master/im.py -- http://mail.python.org/mailman/listinfo/python-list

Re: im.py: a python communications tool

2013-04-08 Thread Jake D
On Apr 7, 6:36 pm, Steven D'Aprano wrote: > On Sun, 07 Apr 2013 14:47:11 -0700, jhunter.dunefsky wrote: > > Actually, my current licence can be found here: > >https://github.com/jhunter-d/im.py/blob/master/LICENCE.  Whaddaya think > > about this, Useneters? > > I think you're looking for a world o

Re: im.py: a python communications tool

2013-04-06 Thread Jake D
On Apr 5, 8:52 pm, Demian Brecht wrote: > Thanks for sharing some of your work with the community. However... > > Speaking to the sharing aspect: Why would you post a block of code in an > email? If you're looking for people to contribute, it would likely be a > much better idea to post it on gith

Re: im.py: a python communications tool

2013-04-06 Thread Jake D
On Apr 5, 9:26 pm, Andrew Berg wrote: > On 2013.04.05 20:07, Roy Smith wrote:> I know this is off-topic, but I > encourage people to NOT invent their own > > licenses. > > Perhaps he meant this existing license:http://www.wtfpl.net/about/ > -- > CPython 3.3.0 | Windows NT 6.2.9200 / FreeBSD 9.1

im.py: a python communications tool

2013-04-05 Thread Jake D
Hey Usenetites! I have a horrible Python program to allow two people to chat with each other. It has horribly any functionality, but it is meant for the public to work on, not necessarily me. Anyways, here's a quick FAQ. What does this do that IRC can't? What does this do that AIM can't? --It a

Re: Do you feel bad because of the Python docs?

2013-03-03 Thread Jake Angulo
The OP speaks for himself alone. Python - for such a very young language, and with the documentation and community blogs available at this point - I cannot ask for more. And who needs docs when the python syntax is as good as writing plain english sentence? On Fri, Mar 1, 2013 at 9:06 PM, Jean-

Re: Twisted or Tornado?

2013-03-03 Thread Jake Angulo
! Thanks to the large twisted library. Our project is an ipad multiplayer game, and we didnt want to use existing servers because we want to do things exactly as we wish. Rgds, Jake On Fri, Mar 1, 2013 at 8:55 PM, Andriy Kornatskyy < andriy.kornats...@live.com> wrote: > > The followin

Twisted or Tornado?

2013-02-28 Thread Jake Angulo
I have to say it first: I am not trolling :P Im working on a server project (with IOS client) and would like to create a custom, lean and mean server - real Quick! My requirements for this framework in descending order: 1) Easy to use API 2) Widely available documentation / Examples / Community

Re: Efficient python 2-d arrays?

2011-01-20 Thread Jake Biesinger
> Thanks for the great suggestions! On a related note, is there no way to efficiently sort a python array? >>> x = array('f', xrange(1000)) >>> x.sort() --- AttributeErrorTraceback (most recen

Re: Efficient python 2-d arrays?

2011-01-18 Thread Jake Biesinger
> Without using third party libraries, no not really. numpy has it > covered so there's not really a lot of demand for it. If your users > are loading 1.5 GB arrays into memory, it's probably not unreasonable > to expect them to have numpy installed. My users are biologists, and I can't expect t

Re: Efficient python 2-d arrays?

2011-01-18 Thread Jake Biesinger
> Since you can't depend on your users installing the dependencies, is > it vital that your users run from source? You could bundle up your > application along with numpy and other dependencies using py2Exe or > similar. This also means you wouldn't have to require users to have > the right (or any

Re: Efficient python 2-d arrays?

2011-01-17 Thread Jake Biesinger
> IIUC (please confirm), you don't need a generic two-dimensional > array, but rather an Nx2 array, where N may be large (but the other > dimension will always have a magnitude of 2). Yes, that's right, Nx2 not NxM. > > Since I want to keep the two elements together during a sort > > I assume (p

Re: Efficient python 2-d arrays?

2011-01-17 Thread Jake Biesinger
On Monday, January 17, 2011 4:12:51 PM UTC-8, OAN wrote: > Hi, > > what about pytables? It's built for big data collections and it doesn't > clog up the memory. I thought PyTables depends on NumPy? Otherwise I would indeed use their carray module. Thanks! -- http://mail.python.org/mailman/li

Efficient python 2-d arrays?

2011-01-17 Thread Jake Biesinger
Hi all, Using numpy, I can create large 2-dimensional arrays quite easily. >>> import numpy >>> mylist = numpy.zeros((1,2), dtype=numpy.int32) Unfortunately, my target audience may not have numpy so I'd prefer not to use it. Similarly, a list-of-tuples using standard python syntax. >>>

Help choosing license for new projects

2010-07-12 Thread Jake b
I'm starting a new python code project. What license do you suggest? I am searching, but I'm not finding a simple comparison of licenses. So I don't know which to use. Maybe MIT or Apache or LGPL or BSD? Are there certain licenses to avoid using because of interaction problems between libraries us

Re: client server console app with cmd library

2010-05-21 Thread Jake b
rs to this StackOverflow post: http://stackoverflow.com/questions/78704/good-python-network-programing-resource Twisted is the hardest in that list to get into. -- Jake -- http://mail.python.org/mailman/listinfo/python-list

Re: where are the program that are written in python?

2010-05-21 Thread Jake b
did this not go to the list? Arg, reply does in other mailing list. On Fri, May 21, 2010 at 5:48 AM, Jake b wrote: > I took it as game-domain only question: > I don't know of any big game written in python. ( meaning python code, > using c++ libs. ) Verses games that at

View Html/ py code in a zip as HTML/text ? ( for phone )

2010-05-19 Thread Jake b
n enabled, so I could use that? -- Jake -- http://mail.python.org/mailman/listinfo/python-list

Re: tone generation for motherboard and sound card speakers?

2010-05-16 Thread Jake b
For sound ( not internal beep ) you can check out: - pygame: http://www.pygame.org/project-PygSoundTestTest-1453-.html - python.org/sound : http://wiki.python.org/moin/PythonInMusic - pk http://trac2.assembla.com/pkaudio/ - pureData http://puredata.info/Members/thomas/py -- Jake

Re: parsing XML

2010-05-16 Thread Jake b
2010 17:20:57 -0700 (PDT) > In-Reply-To: <4beec709$0$18653$4fafb...@reader3.news.tin.it> > References: > >         <4beec709$0$18653$4fafb...@reader3.news.tin.it> > Date: Sat, 15 May 2010 19:20:57 -0500 > Message-ID: > Subject: Re: parsing XML > From: Jake b

Re: Anybody use web2py?

2009-12-19 Thread Jake
ke it. The mailing list is active and responsive, and the lead developer happens to have chimed in on every question i've asked. On the down side, the irc community is very small. Good Luck, Jake -- http://mail.python.org/mailman/listinfo/python-list

Re: improving a huge double-for cycle

2008-09-19 Thread Jake Anderson
Bruno Desthuilliers wrote: Alexzive a écrit : Hello there :) , I am a python newbie and need to run following code for a task in an external simulation programm called "Abaqus" which makes use of python to access the mesh (ensamble of nodes with xy coordinates) of a certain geometrical model.

Re: improving a huge double-for cycle

2008-09-18 Thread Jake Anderson
and if IN[i].coordinates[0] == IN[j].coordinates[0] and if IN[i].coordinates[1] == IN[j].coordinates[1]: but no improvements. Many thanks, Alex -- http://mail.python.org/mailman/listinfo/python-list -- Vapour Forge Jake Anderson Project Manager Mobile:   0412 897 125 Email:

Re: Upgrading to DB-API (was Re: Corrupted images ...)

2008-08-13 Thread Jake Anderson
Aahz wrote: In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Ouch. Please use parameters instead of explicit escapes and string formatting; Python's not PHP. How would you recommend upgrading an application that is more than ten years old and contains somethin

Re: benchmark

2008-08-06 Thread Jake Anderson
Jack wrote: I know one benchmark doesn't mean much but it's still disappointing to see Python as one of the slowest languages in the test: http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/ -- http://mail.python.org/mailman/listinfo/python-l

Re: very large dictionary

2008-08-06 Thread Jake Anderson
Bruno Desthuilliers wrote: Simon Strobl a écrit : (snip) > I would prefer to be able to use the same type of scripts with data of all sizes, though. Since computers have a limited RAM, this is to remain a wish. You can't obviously expect to deal with terabytes of data like you do with a 1kb

Re: python scalability

2008-07-09 Thread Jake Anderson
Tim Mitchell wrote: Hi All, I work on a desktop application that has been developed using python and GTK (see www.leapfrog3d.com). We have around 150k lines of python code (and 200k+ lines of C). We also have a new project manager with a C# background who has deep concerns about the scalabi

Re: Returning to 'try' block after catching an exception

2008-05-22 Thread Jake Anderson
alex23 wrote: On May 22, 9:13 am, Karlo Lozovina <[EMAIL PROTECTED]> wrote: In case it's not clear what I meant: after executing some_function() exception SomeExcpetion gets risen. Then, in except block I do something to fix whatever is causing the exception and then I would like to go back t

Re: Binary search tree

2007-11-09 Thread Jake McKnight
xistence (very fast) and at the > end it > is easy to sort. > > -Larry > -- > http://mail.python.org/mailman/listinfo/python-list > -- Jake McKnight -- http://mail.python.org/mailman/listinfo/python-list

Re: problem opening html file with webbrowser.open

2007-10-29 Thread Jake McKnight
it from the interpreter; if it's actually executing successfully, you should see something that looks like this: >>> import webbrowser >>> webbrowser.open("file:///home/user/path/to/file/test.html") True >>> -- Jake McKnight -- http://mail.python.org/mailman/listinfo/python-list

Re: first book about python

2006-07-08 Thread Jake Emerson
found that I'm going back to those first chapters occasionally to review and practice the syntax. It, and this group, have carried me through some pretty tough problems (for me anyway). It's been worth it. Good luck. Jake -- http://mail.python.org/mailman/listinfo/python-list

Re: nested dictionary assignment goes too far

2006-06-26 Thread Jake Emerson
Thanks a lot Serge and Ben. Your posts were right on. I hope the weather is good wherever you are. Jake -- http://mail.python.org/mailman/listinfo/python-list

nested dictionary assignment goes too far

2006-06-26 Thread Jake Emerson
I'm attempting to build a process that helps me to evaluate the performance of weather stations. The script below operates on an MS Access database, brings back some data, and then loops through to pull out statistics. One such stat is the frequency of reports from the stations ('char_freq'). I hav

Re: Extend Python

2005-09-01 Thread Jake Gittes
Try looking at ctypes - http://starship.python.net/crew/theller/ctypes/ On 1 Sep 2005 05:12:21 -0700, [EMAIL PROTECTED] wrote: >Hi All I have a problem with extentions of Python. > >Background: >I'm workin within a large industrial control system and I have created >a Port for VxWorks. In the sys

\r functionality

2005-05-17 Thread Jake
in c and c++ there is a useful way to refresh an output line in printf and cout using \r meta command. So for example in the wget application the progress of the download is updated on the same output line of the screen. From an intital investigation python seems to lack this. Is this correct? --