Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'nested': 0.07; 'parameter': 0.07; 'versions.': 0.07; 'accuracy.': 0.09; 'calculates': 0.09; 'friday,': 0.09; 'literal': 0.09; 'suggestions.': 0.09; 'cc:addr:python-list': 0.10; 'bonus': 0.13; 'extension': 0.13; '(the': 0.15; 'charset:iso-8859-7': 0.15; 'value.': 0.15; '"...': 0.16; '.py': 0.16; 'correctness': 0.16; 'entries.': 0.16; 'interesting:': 0.16; 'sgi': 0.16; 'string:': 0.16; 'subject:ideas': 0.16; 'subject:program': 0.16; 'wiki:': 0.16; 'string': 0.17; 'wrote:': 0.17; 'string,': 0.17; '>>>': 0.18; 'feb': 0.19; 'thanks.': 0.21; 'do.': 0.21; 'algorithms.': 0.22; 'combination': 0.22; 'ones.': 0.22; 'stick': 0.22; 'stopping': 0.22; 'cc:2**0': 0.23; 'example': 0.23; '15,': 0.23; 'specified': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'first,': 0.27; 'implemented': 0.27; 'question': 0.27; 'accuracy': 0.27; 'tree': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'represented': 0.29; 'smart': 0.29; 'strings,': 0.29; 'url:mailman': 0.29; 'convert': 0.29; 'words': 0.29; "i'm": 0.29; 'checked': 0.30; 'gets': 0.32; 'implement': 0.32; 'url:python': 0.32; 'file': 0.32; 'could': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'comments': 0.33; 'dates': 0.33; 'directory,': 0.33; 'utility': 0.33; 'guys': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'screen': 0.34; 'pm,': 0.35; "won't": 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'add': 0.36; 'url:org': 0.36; 'thank': 0.36; 'enough': 0.36; 'two': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'things': 0.38; 'system.': 0.39; 'easily': 0.39; 'build': 0.39; 'hello,': 0.39; 'url:mail': 0.40; '&': 0.61; 'first': 0.61; 'kind': 0.61; 'repeat': 0.62; 'solve': 0.62; 'between': 0.63; 'series': 0.63; 'perfect': 0.63; 'more': 0.63; '26,': 0.65; 'prime': 0.65; 'useful.': 0.65; 'dvd': 0.78; '2013': 0.84; 'burning': 0.84; 'madam': 0.84; 'processed,': 0.84; 'tree,': 0.84; 'fibonacci': 0.91; 'more?': 0.91; 'spell': 0.91; 'angel': 0.93; 'eli': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=lGWdtCyYRXdMGpzj6/tJU2LwtJ1LCYGDewzUJnCEwWA=; b=VAbDNReW0fm0zuj1XC/buUXbqqNbWQdiBmcZCaeZ+lqIuRTxyzbKIrbVmrtFwIo+Ea hvKyDmzkyOOs2Cg8vrxjotOrwhZUxt8P8N7k76KbcbH80rBStszxQvqQZ+d5r2xDtXV0 DkQUA3en5lByseNC6gtgFcYv4isRdsuXD6EmPe+zAZpIM0i84ERJAm0c8cUVm6MyjxVm TDgTVHHfyKkuq5yYxjkcVTc3uVJ82dobGetGpgcnOuW9OrHBmgW4xrk0v5POLV9/q/Zm LK20+CtdfLd86Xge5qETKtKFCBudfRgcOrWPppj7reh3rWYFpp/FBdU8DMGb+P8txE9e Z8sg== MIME-Version: 1.0 X-Received: by 10.194.20.72 with SMTP id l8mr16029160wje.36.1361884882215; Tue, 26 Feb 2013 05:21:22 -0800 (PST) In-Reply-To: <512C52FC.5030508@davea.name> References: <1cff6513-4d67-4fdc-a86d-945635859683@googlegroups.com> <512C52FC.5030508@davea.name> Date: Tue, 26 Feb 2013 13:21:22 +0000 Subject: Re: Small program ideas From: "Vytas D." To: Dave Angel Content-Type: multipart/alternative; boundary=047d7b5d98ada1dac504d6a08808 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 172 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361884905 news.xs4all.nl 6867 [2001:888:2000:d::a6]:60267 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39947 --047d7b5d98ada1dac504d6a08808 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Hello, Some more ideas: 1. Implement sin(), cos(), tan() etc. The accuracy could be supplied as a parameter to the program. The correctness can be checked very easily with implemented versions. 2. Read a string/file and look for palindromes (the group of words that can read from both ends: A toyota, Madam in Eden, I'm Adam...) 3. Read a string/file and draw that string on the screen in a whirlpool way. Counter-clockwise sample of the string: "abigsnake": sgi nab ake 4. Print first n Fibonacci numbers. 5. Calculate Pi value for the specified accuracy. From wiki: "... irrational number, including =F0, can be represented by an infinite series = of nested fractions...". So it won't be very complicated to implement. 6. Implement dos2unix/unix2dos 7. Calculator, that gets a string, put data into a tree and after calculates the value. Vytas D. On Tue, Feb 26, 2013 at 6:15 AM, Dave Angel wrote: > On 02/25/2013 10:48 PM, eli m wrote: > >> On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote: >> >>> Any small program ideas? I would prefer to stick to command line ones. >>> Thanks. >>> >> >> Thank you guys for the suggestions. Any more? >> >> > There are all kinds of things you could do. First, consider something > that might be useful. > > 1) checksum all the files in a directory tree, using various checksum > algorithms. > > 2) Convert one kind of file to another. > > 3) Calculate time between two dates > > 4) Write some part of a backup system. For example, copy files from a > directory tree into a specified directory, stopping when the size totals > N.N gig, and keeping track of which files have been so processed, so that > after burning that directory to DVD, you can repeat the process. As a > bonus, add a utility & datafile to the top of that directory, so that the > DVD can be self-checking. > > Then try something interesting: > > 1) find the nth prime, for example the 1000th prime > > 2) Find all perfect numbers under a trillion > > 3) solve the puzzles on http://projecteuler.net > > 4) Build a spell checker, using a combination of a standard > dictionary-list and custom entries. Bonus question - Make it smart enoug= h > to only spell-check comments and literal strings, when applied to files > with an extension of .py > > > -- > DaveA > -- > http://mail.python.org/**mailman/listinfo/python-list > --047d7b5d98ada1dac504d6a08808 Content-Type: text/html; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable
Hello,

Some more ideas:

1. Implement sin(), cos(), tan() etc. The accuracy could be supplied= as a parameter to the program. The correctness can be checked very easily = with implemented versions.

2. Read a string/file and look for palindromes (the group of= words that can read from both ends: A toyota, Madam in Eden, I'm Adam.= ..)

3. Read a string/file and draw that string= on the screen in a whirlpool way. Counter-clockwise sample of the string: = "abigsnake":
sgi
nab
ake

=
4. Print first n Fibonacci numbers.

5. Calculate Pi = value for the specified accuracy. From wiki: "... irrational number, i= ncluding =F0, can be represented by an infinite ser= ies of nested fractions...". So it won't be very complicated to im= plement.

6. Implement dos2unix/unix2dos

7. Calculat= or, that gets a string, put data into a tree and after calculates the value= .

Vytas D.


On Tue, Feb 26, 2013 at 6:15 AM, Dave An= gel <davea@davea.name> wrote:
On 02/25/2013 10:48 PM, eli m wrote:
On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote:
Any small program ideas? I would prefer to stick to command line ones. Than= ks.

Thank you guys for the suggestions. Any more?


There are all kinds of things you could do. =A0First, consider something th= at might be useful.

1) checksum all the files in a directory tree, using various checksum algor= ithms.

2) Convert one kind of file to another.

3) Calculate time between two dates

4) Write some part of a backup system. =A0For example, copy files from a di= rectory tree into a specified directory, stopping when the size totals N.N = gig, and keeping track of which files have been so processed, so that after= burning that directory to DVD, you can repeat the process. As a bonus, add= a utility & datafile to the top of that directory, so that the DVD can= be self-checking.

Then try something interesting:

1) find the nth prime, for example the 1000th prime

2) Find all perfect numbers under a trillion

3) solve the puzzles on http://projecteuler.net

4) Build a spell checker, using a combination of a standard dictionary-list= and custom entries. =A0Bonus question - Make it smart enough to only spell= -check comments and literal strings, when applied to files with an extensio= n of .py


--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list

--047d7b5d98ada1dac504d6a08808--