Re: If you were starting a project with XML datasource using python

2015-01-05 Thread George Silva
As people already said, don't use XML for persistence. Read it, parse it, and persist it in another format. databases are quite good for that. even sqlite3 will outperfom any few MB xml files. On Mon, Jan 5, 2015 at 11:55 PM, Chris Angelico wrote: > On Tue, Jan 6, 2015 at 11:49 AM, Dennis Lee B

Re: PyCharm refactoring tool?

2014-09-15 Thread George Silva
It's pretty useful. I use it for some time now and I very much like it. There are some things that might not be available on Python because of it's duck typing behavior (Pycharm perhaps can't confirm that the type is boolean to suggest it's inversion, for instance). The most powerful for me are t

Re: Topological Overlap

2014-08-16 Thread George Silva
Homework? You need to give us a start, sample of the data and an actual question. I don't think many people will help you do your homework for you. On Sat, Aug 16, 2014 at 7:32 AM, lavanya addepalli wrote: > Hello > > I have a file with network node pairs and weights as time difference > I am

Re: PEP8 and 4 spaces

2014-07-04 Thread George Silva
> I assume any sane editor has similar functionality. I see my coworkers > using vim, sublime, eclipse, and X-code. They all appear to do these > things, and I would thus classify any of them as sane editors. I'm sure > there are others. If the tool you're (in the generic sense of "you") > usin

Re: PEP8 and 4 spaces

2014-07-04 Thread George Silva
Isn't this an old discussion? Just configure your editor properly. In my team we all use spaces, but I'll be damned if I need to type 12 spaces in a row. I'll just configured Sublime to insert spaces instead of tabs. Problem solved. On Fri, Jul 4, 2014 at 12:12 PM, Mark Lawrence wrote: > On 04/

Re: Help with Python/ArcPy

2012-12-12 Thread George Silva
even better gis.stackexchange.com On Wed, Dec 12, 2012 at 9:42 PM, Xavier Ho wrote: > You can always try http://stackoverflow.com/search?q=ArcPY, or post your > question there. > > Cheers, > Xav > > > > On 13 December 2012 08:07, Michelle Couden wrote: > >> Does anyone know of a website or for

Re: A sad day for the scientific Python community. John Hunter, creator of matplotlib: 1968-2012.

2012-08-29 Thread George Silva
May he rest in peace. On Wed, Aug 29, 2012 at 11:41 PM, Fernando Perez wrote: > Dear friends and colleagues, > > I am terribly saddened to report that yesterday, August 28 2012 at > 10am, John D. Hunter died from complications arising from cancer > treatment at the University of Chicago hospital

Re: Geodetic functions library GeoDLL 32 Bit and 64 Bit

2012-08-28 Thread George Silva
Hi Fred. Do you know about proj4? proj4 is opensource library that does the coordinate transformations side of geospatial for many many already tested projects. Does your libraries do anything that proj4 does not? On Wed, Aug 29, 2012 at 2:51 AM, Fred wrote: > Hi developers, > > who develops p

Re: Why is python source code not available on github?

2012-06-23 Thread George Silva
http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 On Sat, Jun 23, 2012 at 9:16 PM, gmspro wrote: > Why is python source code not available on github? > > Make it available on github so that we can git clone and work on source > code. > > -- > http://mail.python.org/mailman/listinfo/pyt

Re: Converging Multiple Classes

2011-02-04 Thread George Silva
Take a look at the strategy pattern. But with python being a dinamic language, you probably won't need to implement it like that. http://en.wikipedia.org/wiki/Strategy_pattern Example: # import all you need CAMERAS = ['A','B','C'] def capture_A: pass def capture_B: pass def capture_C: pass