Pycon 2009 Hotel?

2009-02-11 Thread jay graves
I'm attending Pycon this year and for the first time I have to pay for myself. (All training/conference budgets have been zeroed out at my company.) I would like to take the cheaper option by staying at the Crowne Plaza but as I understand it, the part of the conference I'll be attending will be

Re: Pycon 2009 Hotel?

2009-02-11 Thread jay graves
On Feb 11, 9:13 am, jay graves jaywgra...@gmail.com wrote: I'm attending Pycon this year and for the first time I have to pay for myself.  (All training/conference budgets have been zeroed out at my company.) I would like to take the cheaper option by staying at the Crowne Plaza but as I

Re: Simple Python Project Structure

2008-10-10 Thread jay graves
empty) in the directory to turn it into a package. http://www.python.org/doc/2.5.2/tut/node8.html#SECTION00840 HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Large amount of files to parse/organize, tips on algorithm?

2008-09-02 Thread jay graves
On Sep 2, 1:02 pm, cnb [EMAIL PROTECTED] wrote: over 17000 files... netflixprize. http://wiki.python.org/moin/NetflixPrizeBOF specifically: http://pyflix.python-hosting.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Run as Service

2008-07-20 Thread jay graves
a Python app as a Windows service without SRVANY? I have used CherryPy sucessfully as a windows service. You can probably glean what you need from. http://tools.cherrypy.org/wiki/WindowsService HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: I am looking for svn library(module)

2008-07-07 Thread jay graves
core as svn_core ImportError: No module named svn Best regards I believe that it is the python binding provided by Subversion. You didn't say what platform you are on or what version of SVN you are using so I can't point you any closer than: http://subversion.tigris.org/ HTH ... Jay Graves

Re: sqlite3 alternative option

2008-06-26 Thread jay graves
conversion, look into using the bulk import functions. (.import FILE TABLE) Since you are coming from another database you know your constraints are satisfied, I would wait until all the data is loaded before building your indexes. HTH ... Jay Graves -- http://mail.python.org/mailman/listinfo/python

Re: Converting a simple python script to a simple windows executable

2008-06-11 Thread jay graves
On Jun 11, 2:25 pm, geoffbache [EMAIL PROTECTED] wrote: Anyone have any better ideas? How about ExeMaker? http://effbot.org/zone/exemaker.htm I have not used it but it seems to do what you want. ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: File-writing not working in Windows?

2008-06-06 Thread jay graves
os.path.join to create 'tempfileName' and see if it works. HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: File-writing not working in Windows?

2008-06-06 Thread jay graves
On Jun 6, 1:22 pm, [EMAIL PROTECTED] wrote: I am thinking that the g.open(tempFileName, 'a') command is the issue. Is there anything different about opening a file in Windows? Does Windows understand append, or would I have to do control checks for seeing if the file is created and then

Re: File-writing not working in Windows?

2008-06-06 Thread jay graves
On Jun 6, 3:19 pm, [EMAIL PROTECTED] wrote: This did not make a difference in my script. However, I did what you suggested, and tried the simple script it Windows, and it works as it should. (It's really annoying because it works on the Mac and Linux! (I just tested my script on the Mac as

Re: Cast list of objects to list of strings

2008-06-03 Thread jay graves
On Jun 2, 8:36 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: Still nitpicking: using a generator expression in this case has no advantage. The first thing that str.join does is to create a list out of its argument (unless it is already a list or a tuple). In fact, a list comprehension is

Re: Picking apart strings

2008-06-03 Thread jay graves
On Jun 3, 1:44 pm, tmallen [EMAIL PROTECTED] wrote: Is there a way to pick apart this text without resorting to regular expressions? p { color: black; } p - element color - property black - value http://code.google.com/p/cssutils/ --

Re: Cast list of objects to list of strings

2008-06-02 Thread jay graves
comprehension to avoid building and throwing away a list. \n.join(str(o) for o in args) http://www.python.org/dev/peps/pep-0289/ Very unlikely to yield a material time difference in this case but cleaner IMO. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: make a string a list

2008-05-29 Thread jay graves
On May 29, 4:30 pm, Nikhil [EMAIL PROTECTED] wrote: or a string iterable ? How can I do that. I have lots of '\r\n' characters in the string which I think can be easier if it were made into a list and I can easily see if the required value (its a numeral) is present in it or not after some

Re: iterate start at second row in file not first

2008-05-20 Thread jay graves
this? mov = open(afile) first = mov.next() # check first for ':' and do whatever you need to do # including the 'y' processing from below if required for line in mov: do y ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Python library for clustering from distance vector

2008-05-18 Thread jay graves
Segaran is great and has examples of clustering algorithms written in Python. http://www.amazon.com/Programming-Collective-Intelligence-Building-Applications/dp/0596529325/ ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: save dictionary for later use?

2008-05-16 Thread jay graves
. http://docs.python.org/lib/module-pickle.html ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: save dictionary for later use?

2008-05-16 Thread jay graves
On May 16, 3:24 pm, globalrev [EMAIL PROTECTED] wrote: On 16 Maj, 21:22, jay graves [EMAIL PROTECTED] wrote: On May 16, 2:17 pm, globalrev [EMAIL PROTECTED] wrote: i extract info from one file and put it into a dictionary. i want to save that dictionary for later use, how do i do

Re: call tree tool?

2008-05-15 Thread jay graves
On May 15, 3:47 pm, [EMAIL PROTECTED] wrote: I'm cleaning up some old code, and want to see what orphan functions might be sitting around. Is there a static call tree analyzer for python? How about http://pycallgraph.slowchop.com/ ... Jay Graves -- http://mail.python.org/mailman/listinfo

Re: parsing directory for certain filetypes

2008-03-11 Thread jay graves
On Mar 11, 12:21 am, royG [EMAIL PROTECTED] wrote: On Mar 10, 8:03 pm, Tim Chase wrote: in the version using glob() path = os.path.normpath(os.path.join(folder, '*.txt')) lst = glob.glob(path) is it possible to check for more than one file extension? here i will have to create two path

Re: parsing directory for certain filetypes

2008-03-10 Thread jay graves
On Mar 10, 8:57 am, royG [EMAIL PROTECTED] wrote: i wrote a function to parse a given directory and make a sorted list of files with .txt,.doc extensions .it works,but i want to know if it is too bloated..can this be rewritten in more efficient manner? Try the 'glob' module. ... Jay --

Re: parsing directory for certain filetypes

2008-03-10 Thread jay graves
On Mar 10, 9:28 am, Robert Bossy [EMAIL PROTECTED] wrote: Personally, I'd use glob.glob: import os.path import glob def parsefolder(folder): path = os.path.normpath(os.path.join(folder, '*.py')) lst = [ fn for fn in glob.glob(path) ] lst.sort() return lst Why the

Re: Data aggregation

2008-03-06 Thread jay graves
'A' and 'B' count of unique combinations of columns 'A' and 'C' count of unique combinations of columns 'B' and 'C' in all cases, sum(D) and avg(E) Since I need 'C' by itself, and 'A' and 'C' together, I can't just sort and break on 'A','B','C'. HTH ... jay graves -- http://mail.python.org/mailman

Re: List all files using FTP

2008-03-06 Thread jay graves
. It should be in your Tools/scripts/ subdirectory of your Python installation. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows System Administration: State of the Art on Python?

2008-02-26 Thread jay graves
On Feb 26, 3:23 pm, Krishna Kirti Das [EMAIL PROTECTED] wrote: I am a long-time user of Perl who comes to you in peace and is evaluating different scripting languages for use as a scripting platform for system administrators on the Windows platform. Perl already has many modules that allow sys

Re: Automating GUI interaction with Python

2008-02-20 Thread jay graves
automation : moving the mouse cursor to and from specified screen coordinates, clicking, etc. Thanks a lot. For Windows, try pyWinAutohttp://pywinauto.openqa.org/ dogtail is another http://people.redhat.com/zcerza/dogtail/ ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread jay graves
/value2 /item If it is XML why not use ElementTree or some other XML DOM library? ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Client side GUI-like web framework ?

2008-02-04 Thread jay graves
counterpart, pyjamas? http://code.google.com/p/pyjamas/ ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Network Graph Library

2007-11-28 Thread jay graves
any of the Python bindings. It's always been easy enough to just generate the .dot file that Graphviz expects. http://www.graphviz.org/ I've also book marked NetworkX but I've never used it. https://networkx.lanl.gov/wiki I'm sure there are others. HTH. Jay Graves -- http://mail.python.org

Re: Pythonic ORM with support for composite primary/foreign keys?

2007-11-06 Thread jay graves
On Nov 6, 8:29 am, Jeff [EMAIL PROTECTED] wrote: Django has a wonderful ORM that can be used separately from the framework, but it is pretty top-heavy as well. I'm afraid that size is the price you pay for abstraction. Your business logic code shrinks, but the supporting libraries grow. But

Re: looking for ocbc example

2007-09-21 Thread jay graves
On Sep 21, 2:43 am, Tim Golden [EMAIL PROTECTED] wrote: Carl K wrote: It seems there are 2 odbc modules - pyOdbc and mxOdbc - anyone know the difference? In short, pyodbc is open source; mxOdbc requires a commercial license. pyodbc is a newcomer, but appears to work for everything I've

Re: psycopg2 or pygresql?

2007-09-19 Thread jay graves
On Sep 19, 10:06 am, exhuma.twn [EMAIL PROTECTED] wrote: And before someone says: Use the DictCursor-factory to access column names. Yes I can do that. But a dict does not guarantee the same order of keys as the columns were specified in the query. But you can iterate over the

Re: newbie question: parsing street name from address

2007-06-21 Thread jay graves
success. http://www.google.com/search?q=febrl HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: How to hide a program?

2007-06-21 Thread jay graves
On Jun 20, 10:43 am, Thorsten Kampe [EMAIL PROTECTED] wrote: * jvdb (Wed, 20 Jun 2007 08:22:01 -0700) http://www.ntwind.com/software/utilities/hstart.html I'm not the OP but this looks very useful to me. Thanks. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: How to replace the last (and only last) character in a string?

2007-05-03 Thread jay graves
should use slicing. s='12345 4343 454' s = s[:-1] + 'r' print s 12345 4343 45r See http://docs.python.org/tut/node5.html#strings HTH. Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Where to find pywin32/win32all for Python 1.5.2?

2007-04-03 Thread jay graves
somewhere, hopefully having the filename will help. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: exit to interpreter?

2007-03-27 Thread jay graves
you are looking for the 'code' module. http://docs.python.org/lib/module-code.html ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: fetch html page via isa proxy

2007-03-26 Thread jay graves
with 'urllib' did not work. Any advice? Or better working example? Thanks a lot, Sorry I wasn't able to help more. I'll try to poke at it a bit more when I get a chance. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: using python to query active directory

2007-03-06 Thread jay graves
be great. Tim Golden is your man. http://tgolden.sc.sabren.com/python/active_directory.html HTH ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I edit a PythonWin path to import custom built modules???

2006-12-13 Thread jay graves
BartlebyScrivener wrote: Yup. Did that before. That's what I mean. The d:\\python is there and it doesn't come from the PythonPath in my windows registry. Maybe it scans for any directory with python in the name? Do you have any *.pth files in the C:\Python24 directory? ... jay --

Re: Sort by domain name?

2006-10-02 Thread jay graves
gene tani wrote: Plus, how do you order https:, ftp, URLs with www., www2. , named anchors etc? Now is a good time to point out the urlparse module in the standard library. It will help the OP with all of this stuff. just adding my 2 cents. ... jay graves -- http://mail.python.org/mailman

Re: Does Python provide Struct data structure?

2006-09-22 Thread jay graves
', filedir = 'C:/temp', ) print mystruct.filedir # Does 'Bunch' fit the bill? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308 ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: re.compile() doesn't work under Windows?

2006-08-31 Thread jay graves
ddtl wrote: My script uses re.compile() function, and while it rans without errors under Linux, when I ran that script under Windows I get the following error: Traceback (most recent call last): File C:\a\projects\re.py, line 4, in ? import re File C:\a\projects\re.py, line 95, in

Re: Read Picasa metadata using Python?

2006-08-17 Thread jay graves
(probably not exactly right)) Also there is a Google Groups for Picasa and it might have some pointers in the archives. http://groups.google.com/group/Picasa?lnk=gschghl=en Have fun! ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Rendering Vector Graphics

2006-08-11 Thread jay graves
a pycairo package for it. Suggestions? AGG (Anti-Grain Geometry) is one such engine that a couple of people have interfaced to Python. http://www.antigrain.com/ ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: running code on client side with cherrypy?

2006-08-10 Thread jay graves
the path they want to unzip to once they have downloaded the file. As for working with SVN, I really like TortoiseSVN but you would have to install it on all machines which is what you are trying to avoid (I think.) Sorry to be the bearer of bad news. ... jay graves -- http://mail.python.org/mailman

Re: Running queries on large data structure

2006-08-03 Thread jay graves
. If the cache hit misses or is expired, I call the expensive query and reload the cache. This way there is a 'fat' web page every 5 minutes (load time of about 4 seconds on my dev box) and almost every other page is sub second. Thanks for any enlightenment. Just my 2 cents. ... jay graves -- http

Re: Running queries on large data structure

2006-08-03 Thread jay graves
Christoph Haas wrote: On Thursday 03 August 2006 17:40, jay graves wrote: How hard would it be to create this nested structure? Not hard. Instead of doing INSERT INTO I would add values to a dictionary or list. That's even simpler. I've found pickling really large data structures doesn't

Re: Fastest Way To Loop Through Every Pixel

2006-07-28 Thread jay graves
Chaos wrote: As my first attempt to loop through every pixel of an image, I used for thisY in range(0, thisHeight): for thisX in range(0, thisWidth): #Actions here for Pixel thisX, thisY But it takes 450-1000 milliseconds I want speeds less than 10

Re: Reading long lines doesn't work in Python

2006-07-19 Thread jay graves
Scott Simpson wrote: I have a loop for line in f: ... and if the line is over about 10,000 characters it lops it off. How do I get around this? Hmmm. Works for me on Windows. Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits

Re: Warning when new attributes are added to classes at run time

2006-07-19 Thread jay graves
Matthew Wilson wrote: I sometimes inadvertently create a new attribute on an object rather update a value bound to an existing attribute. For example: snippage All comments are welcome. Is there a better way of implementing the above class, OR, is this approach generally wrong-headed? Am I

Re: print names of dictionaries

2006-04-26 Thread jay graves
-the-name-of-an-object ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Shell window

2006-04-10 Thread jay graves
Jay wrote: Is their any way of setting wear the Python Shell window appears on the screen when I run my program? I am testing a full screen program with no Window Frame on a comp with 2 monitors and I have to keep pressing the Window Key to bring the Shell to the front and then moving it

Re: Python Shell window

2006-04-10 Thread jay graves
find the errand CMD prompt and move it. errand - errant -- http://mail.python.org/mailman/listinfo/python-list

Re: NOT Python: Taxonomy list reference

2006-03-21 Thread jay graves
that. Also Mark Pilgrim's diveintomark.org blog (http://diveintomark.org/archives/rooms/) has categories that are reminiscent of the list. I think this was my first exposure to it. HTH. ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Py2exe

2006-02-28 Thread jay graves
First google.com hit using your title. http://www.google.com/search?q=py2exe -- http://mail.python.org/mailman/listinfo/python-list

Re: using an existing DLL file without having access to the source code?

2006-02-14 Thread jay graves
(http://filters.sourceforge.net/) without having to compile or build the DLL myself, which is according to the authors very hard. I don't have any experience with this specific library but I've used ctypes in the past and it worked great. HTH. ... jay graves -- http://mail.python.org/mailman

Re: Launch Windows command window....

2006-02-03 Thread jay graves
are trying to do but if you are trying to drive telnet maybe you want the pexpect module. http://pexpect.sourceforge.net/ I've never had the need to use it myself so I can't offer any other advice. ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: append to the end of a dictionary

2006-01-24 Thread jay graves
Yves Glodt wrote: I seem to be unable to find a way to appends more keys/values to the end of a dictionary... how can I do that? A dictionary doesn't have an 'end' because it is an unordered collection. E.g: mydict = {'a':'1'} I need to append 'b':'2' to it to have: mydict['b'] = '2' print

Re: xpath support in python 2.4

2005-11-29 Thread jay graves
Fredrik Lundh wrote: sounds like you've installed http://pyxml.sourceforge.net/ on one of your machines, but not on the other. or ActiveState Python on one and python.org Python on the other??? Just a guess. No STFWing was done before posting this message. ;-) --

Re: Mantain IDE colors and paste them in an HTML page

2005-10-04 Thread jay graves
billie wrote: I tried the export function of scite but it does not generate a proper HTML code that permit me to copy and paste it into another HTML page. Works OK for me. What exactly is it doing wrong on your side? Does anyone got any suggestion? I've used Webcpp before.

Re: Plotting points to screen

2005-09-26 Thread jay graves
image viewer to pan and shrink/zoom. I had the drawing portions of my script well separated from the data parsing and manipulation so tweaking the script was simple. YMMV, but PIL was the best way for me. ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread jay graves
Mark Dickinson wrote: Questions: (1) Can anyone else reproduce this behaviour, or is it just some quirk of my setup? yes. I get 7 sec vs 1 sec on my laptop. (2) Any possible explanations? Is there some optimization that kicks in at a certain number of lines, or at a certain length

Re: How can i craft my own ip packets in python

2005-06-01 Thread jay graves
http://www.cartel-securite.fr/pbiondi/projects/scapy/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting win32 console title from Python

2005-04-28 Thread jay graves
Hmm. From an interactive interpreter this works for me. import os os.system('title Jay') but the title returns to its previous value when I Ctrl-Z out of the process. If I save this as a file and run it, it seems to work without spawning a new window but resets it the title after the program

Re: Setting win32 console title from Python

2005-04-28 Thread jay graves
Cool. Let me know if you want a copy of p.py (in all of it's hard-coded glory). I can easily put it under Public Domain and you can copy whatever you want out of it. ... jay -- http://mail.python.org/mailman/listinfo/python-list

Re: recording data between [ and ]

2005-04-21 Thread jay graves
://kodos.sourceforge.net/home.html http://weitz.de/regex-coach/ HTH, jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: recording data between [ and ]

2005-04-21 Thread jay graves
Paul McGuire wrote: Jay - Thanks for the pyparsing plug. NP. pyparsing is on my list of stuff to play around with. I'm just waiting for the proper problem to present itself. Here is how the OP's program would look using pyparsing: And the exact reason that I could 'plug' pyparsing is that

Re: recording data between [ and ]

2005-04-21 Thread jay graves
[EMAIL PROTECTED] wrote: Beside rxb15, there is also redict, in the standard lib (Jay Graves shows the HD path): http://home.earthlink.net/~jasonrandharper/reverb.py I knew there was a newer one out there but my google skills failed me. Thanks for the link. -- http://mail.python.org/mailman

Re: changing colors in python

2005-04-14 Thread jay graves
AFAIK, the cmd.exe program on Win2K/XP doesn't support ANSI escape sequences. There are various other options on windows but they probably won't work on Linux. http://newcenturycomputers.net/projects/wconio.html http://effbot.org/zone/console-handbook.htm --