Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!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.073 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'friday,': 0.09; 'literal': 0.09; 'suggestions.': 0.09; 'bonus': 0.13; 'extension': 0.13; '.py': 0.16; 'entries.': 0.16; 'interesting:': 0.16; 'subject:ideas': 0.16; 'subject:program': 0.16; 'wrote:': 0.17; 'thanks.': 0.21; 'do.': 0.21; 'algorithms.': 0.22; 'combination': 0.22; 'ones.': 0.22; 'stick': 0.22; 'stopping': 0.22; 'example': 0.23; '15,': 0.23; 'specified': 0.23; 'command': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'first,': 0.27; 'question': 0.27; 'tree': 0.27; 'smart': 0.29; 'strings,': 0.29; 'convert': 0.29; 'file': 0.32; 'could': 0.32; 'comments': 0.33; 'dates': 0.33; 'directory,': 0.33; 'utility': 0.33; 'to:addr :python-list': 0.33; 'guys': 0.33; 'pm,': 0.35; 'something': 0.35; 'there': 0.35; 'add': 0.36; 'thank': 0.36; 'enough': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'things': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'build': 0.39; 'received:192.168': 0.40; 'kind': 0.61; 'repeat': 0.62; 'solve': 0.62; 'between': 0.63; 'perfect': 0.63; 'prime': 0.65; 'useful.': 0.65; 'received:74.208': 0.71; 'dvd': 0.78; '2013': 0.84; 'burning': 0.84; 'processed,': 0.84; 'tree,': 0.84; 'more?': 0.91; 'spell': 0.91; 'eli': 0.93 Date: Tue, 26 Feb 2013 01:15:24 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Small program ideas References: <1cff6513-4d67-4fdc-a86d-945635859683@googlegroups.com> In-Reply-To: <1cff6513-4d67-4fdc-a86d-945635859683@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ZMFflWk1Mi/b8p/oK0ojlhN7VX0zy5opDdPQ2RL7RuX Pgj/80NIF/61192fhxUsuLR7lucYpewgAsFu0cUGLwwdbkNWOi 4lKLYN4We0Rffahs4fVYhm8cOMD7ZPYAWBOUHU5Huleb23pL/p RhV80FwiEpqMgqwOe6mE4Doe67UuYmD/i1uvtsCVLF3dvGnlfe BET59J3AQSF4+596RkZCJsevUq3y2vxr51gL5JzMUcT92iY2a1 2uS797DPyBvCQEEJqcnlf8oe8lrYg5W+yoXhDb3R5xe4cGJ//c /pyBq9aFXmD05FjJ74MTndIvuCdA7R92VUECQq8XE1lhAvR6g= = 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: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361859347 news.xs4all.nl 6949 [2001:888:2000:d::a6]:41501 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39933 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 enough to only spell-check comments and literal strings, when applied to files with an extension of .py -- DaveA