Re: Bounds checking

2011-03-18 Thread Katie T
On Fri, Mar 18, 2011 at 3:01 PM, Jean-Michel Pichavant < jeanmic...@sequans.com> wrote: > > Don't check for bounds, fix any bug in the code that would set your values > out of bounds and use asserts while debugging. > > Otherwise if you really need dynamic checks, it will cost you cpu, for > sure.

Re: Bounds checking

2011-03-18 Thread Katie T
What sort of checks are you making ? - in general greater than/less than tend to be fairly optimal, although you might be able to do a faster "is negative" test Katie On Fri, Mar 18, 2011 at 2:24 PM, Martin De Kauwe wrote: > Hi, > > if one has a set of values which should never step outside ce

Re: possible to run a python script without installing python?

2011-03-15 Thread Katie T
On Tue, Mar 15, 2011 at 8:58 PM, davidj411 wrote: > it seems that if I copy the python.exe binary and the folders > associated with it to a server without python, i can run python. > does anyone know which files are important to copy and which can be > omitted? > > i know about py2exe and have ha

Re: Numerical representation

2011-03-07 Thread Katie T
The main choices for arbitrary point precision seem to be mpmath (which is pure python) and GMP (C++ but with python wrapper; GMP is heavily used in academia) Links: http://code.google.com/p/mpmath/ http://gmpy.sourceforge.net/ Katie -- CoderStack http://www.coderstack.co.uk The Software Devel

Re: Best way to gain root privileges

2011-02-17 Thread Katie T
On Wed, Feb 16, 2011 at 9:26 PM, GSO wrote: > I'm sure this question is as old as time, but what is the best way to > gain root privileges?  (Am using Python 2.6.5, pygtk2 v2.16, Gtk > v2.18.9, on RHEL6.) > Running any kind of script sudo'd is a bad idea, it's very very hard (in many cases imposs

Re: Fitness data program

2011-01-15 Thread Katie T
On Sat, Jan 15, 2011 at 5:47 PM, Antonio Cardenes wrote: > Hello folks, I'm trying to improve my Phyton skills with a project: A > fitness program that can correlate measurements (weight and size of various > body parts), date taken and it has to be able to print a nice graph showing > improvement

Re: Developing a program to make a family tree.

2011-01-15 Thread Katie T
On Fri, Jan 14, 2011 at 7:57 PM, Jon Clements wrote: > Otherwise, you're in for a struggle, as you need to choose a storage > back-end, a GUI (wxWindows/GTK/Qt4 etc...), how to handle GEDCOM > format (unless it's not going to be compatible with other software), > does it need to produce web pages/

Re: Python use growing fast

2011-01-10 Thread Katie T
On Mon, Jan 10, 2011 at 10:29 PM, John Nagle wrote: > On 1/10/2011 1:02 PM, MRAB wrote: >> >> On 10/01/2011 20:29, Dan Stromberg wrote: >>> >>> I invite folks to check out Tiobe's Language Popularity Rankings: >>> >>> http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html > >   That's so

Re: CPython on the Web

2011-01-02 Thread Katie T
On Sun, Jan 2, 2011 at 7:26 AM, azakai wrote: > The idea is that by compiling CPython itself, all the features of the > language are immediately present, and at the latest version, unlike > writing a new implementation which takes time and tends to lag behind. > As to why run it on the web, there

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Katie T
On Thu, Dec 30, 2010 at 12:15 AM, rantingrick wrote: > > However i need to stress that my intention is towards a 100% Python > GUI. Not a binding, not a wrapping (except for OS calls!) but a *real* > Python GUI. The only thing that i know of at this point is pyGUI > although there are probably oth

Re: Tkinter: The good, the bad, and the ugly!

2010-12-29 Thread Katie T
On Wed, Dec 29, 2010 at 11:58 PM, rantingrick wrote: > > Then and only then will Python be truly what GvR intended. I want > everyone here to consider what i am proposing and offer some opinions > because it is time for change. What's your opinion of the other gui toolkits with Python bindings li

Re: Language Detection Library/Code

2010-12-28 Thread Katie T
On Tue, Dec 28, 2010 at 12:42 AM, Shashwat Anand wrote: > Regarding dictionary lookup+n-gram approach I didn't quite understand what > you wanted to say. Run through trigram analysis first, if it identified multiple languages as being matches within the error margin then split the text into words

Re: Language Detection Library/Code

2010-12-27 Thread Katie T
On Mon, Dec 27, 2010 at 7:10 PM, Shashwat Anand wrote: > Can anyone suggest a language detection library in python which works on a > phrase of say 2-5 words. Generally such libraries work by bi/trigram frequency analysis, which means you're going to have a fairly high error rate with such small

Re: Python Average Salary Report

2010-12-25 Thread Katie T
On Sat, Dec 25, 2010 at 11:38 AM, czarina08 wrote: > I'm doing a market research report on the average hourly rates for > Python/Django developers. Any input on this? I do understand that it > does depend on the location, amount of experience and skills. I'd like > to hear what are the hourly rate

Re: Python Web App

2010-12-25 Thread Katie T
On Wed, Dec 22, 2010 at 9:43 PM, Sean wrote: > Anybody know where I can find a Python Development Environment in the > form of a web app for use with Chrome OS. I have been looking for a > few days and all i have been able to find is some old discussions with > python developers talking about they

Re: Help regarding pattern matching

2010-12-15 Thread Katie T
On Thu, Dec 16, 2010 at 2:34 AM, Chris Rebert wrote: > On Wed, Dec 15, 2010 at 6:22 PM, Katie T wrote: >> On Wed, Dec 15, 2010 at 9:21 PM, jupiter wrote: >>> Hi People, >>> >>> I need some ideas on how to find pattern in random data series like stock >

Re: Help regarding pattern matching

2010-12-15 Thread Katie T
On Wed, Dec 15, 2010 at 9:21 PM, jupiter wrote: > Hi People, > > > I need some ideas on how to find pattern in random data series like stock > chart. > > > What I want is to be able to find Head & Shoulder pattern in chart. Have a look at the references in: http://www.dpem.tuc.gr/fel/fm2009/Pap

Re: Python distribution recommendation?

2010-12-11 Thread Katie T
On Sat, Dec 11, 2010 at 12:43 PM, Octavian Rasnita wrote: > Hi, > > Is there a "recommended" Python distribution for Windows XP? Either will work, although the python.org one is the more popular and is likely the one used by most tutorials and beginners guides. The ActiveState one bundles PyQT if

Re: Calling FORTAN dll functions from Python

2010-12-08 Thread Katie T
On Tue, Dec 7, 2010 at 11:11 AM, Alex van der Spek wrote: > Does anyone know how to call functions from FORTRAN dlls in Python? Is it > even possible? I browsed the documentation for Python 2.6.1 and the Python/C > API comes close to what I would like to do but it is strictly limited to C. > > Un