Using plotly and getting "This site can't be reached"

2021-01-16 Thread Chuck Untulis
The Chrome browser on the machine shows "127.0.0.1 refused to connect" for various urls of the form 127.0.0.1:x where x are numbers like 64981, 65029,... About once in 20-40 attempts, the graphs appear. I ran the same code on a different machine and it created the plots in the Chrome brows

Re: Sqlite3 help

2014-10-20 Thread Chuck
Thanks a bunch Sibylle! That seems like a better approach. -- https://mail.python.org/mailman/listinfo/python-list

Sqlite3 help

2014-10-14 Thread Chuck
e any designing that included databases. Thanks! Chuck -- https://mail.python.org/mailman/listinfo/python-list

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Chuck Quast
On Thursday, November 14, 2013 3:35:56 AM UTC+7, bob gailer wrote: > I joined a week or so ago. > > > > The subject line was copied from the description of comp.lang.python aka > > python-list@python.org. > > > > I am very disappointed to see so much energy and bandwidth going to > > conv

Stop feeding the Ferrous Cranus troll

2013-11-11 Thread Chuck Quast
http://www.politicsforum.org/images/flame_warriors/flame_62.php why are any of you replying? -- https://mail.python.org/mailman/listinfo/python-list

Re: Generating Filenames from Feeds

2013-03-14 Thread Chuck
> Seriously, if you don't post a minimal code example that shows the problem > and with a full traceback you are asking strangers to do magic tricks for > your pleasure. I'm asking more for a better way of generating destination filenames, not so much debugging questions. I only put my attem

Generating Filenames from Feeds

2013-03-14 Thread Chuck
\Users\\Me\\Music\\Podcasts\\', pubdate.mp3), where pubdate has been parsed and stripped of whitespace. I keep getting an error around the .mp3. Any ideas? Thanks!! Chuck -- http://mail.python.org/mailman/listinfo/python-list

Re: Config & ConfigParser

2013-03-05 Thread Chuck
I guess my question was more what is a config.file & why/how do I use one. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Config & ConfigParser

2013-03-05 Thread Chuck
Thanks Tim! So much stuff I haven't thought of before. Out of curiosity, what's the benefit of caching the download, instead of downloading to the final destination? So much stuff they never teach you school.So much theory & not enough practice. :( -- http://mail.python.org/mailman/l

Config & ConfigParser

2013-03-05 Thread Chuck
I'm curious about using configuration files. Can someone tell me how they are used? I'm writing a podcast catcher and would like to set up some default configurations, e.g. directory, etcOther than default directory, what are some of the things that are put in a configuration file? They

Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
Yeah, I am mostly a Java guy. Just starting with Python. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
Thanks for the help guys! I finally got it working. Shouldn't I technically call quiz() through the constructor, though? Otherwise, the constructor is pointless. I just put in pass for now. (Also, I always thought that if __name__ == '__main__': went IN the class. Why wouldn't it be apart

Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
On Friday, August 10, 2012 2:05:36 PM UTC-5, Pedro Kroger wrote: > On Aug 10, 2012, at 3:52 PM, Chuck wrote: > > > > >if __name__ == '__main__': > > > > > >quiz() > > > > > > > > > > You need to i

Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
Hi all, I cannot figure why I keep getting this error. It is my understanding that all methods need a self argument when designing a class. Here is my code: import random class ElementsQuiz: elements = {'H' : 'Hydrogen', 'He' : 'Helium', 'Li' : 'Lithium',

Re: installing modules in Enthought Python

2012-05-30 Thread Chuck
On May 30, 10:57 am, David Fanning wrote: > Chuck writes: > > > I just downloaded Enthought Python, free version.  I wanted all the > > included packages, but I can't seem to find the correct directory to > > install new Python modules.  Does anybody have an

installing modules in Enthought Python

2012-05-30 Thread Chuck
I just downloaded Enthought Python, free version. I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules. Does anybody have an idea? I am trying to add Universal Feed Parser to Enthought. I have tried C:\Python27, C:\Python27\Lib, C:\Pyt

ControlDesk, Python, ActiveX, TableEditor

2012-04-27 Thread Chuck
I am trying to hook into the TableEditor on Controldesk using Python. Unfortunately there are no good examples of how to write the code anywhere I have looked. Does anyone know where to look? OR does anyone have code? Thanks Chuck -- http://mail.python.org/mailman/listinfo/python-list

Re: unable to compile Python 2.6.4 on AIX using gcc

2009-11-04 Thread chuck
ersions of python on that machine. I would appreciate any help. Do I need to set the exec_prefix as well? Thanks. Mark Dickinson wrote: On Nov 3, 10:40 pm, chuck wrote: Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX 5.3. Here are the settings: Take a look at: http:/

unable to compile Python 2.6.4 on AIX using gcc

2009-11-03 Thread chuck
Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX 5.3. Here are the settings: export OBJECT_MODE=64 export AR="ar -X64" export MAKE=/usr/bin/gmake export CC="gcc" export CFLAGS="-maix64 -O2 -g -mcpu=power5" export LDFLAGS="-L/usr/lib64 -L/opt/freeware/lib64 -L/opt/freeware/

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
Never mind, guys I finally got things working. Woo hoo -- http://mail.python.org/mailman/listinfo/python-list

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
On Sep 19, 7:40 am, Dave Angel wrote: > Chuck wrote: > > On Sep 12, 3:37 pm, Chuck wrote: > > >> On Sep 11, 9:54 pm, Chris Rebert wrote: > > >>> On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > >>>> Does anyone know how I should read/dow

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
On Sep 19, 7:40 am, Dave Angel wrote: > Chuck wrote: > > On Sep 12, 3:37 pm, Chuck wrote: > > >> On Sep 11, 9:54 pm, Chris Rebert wrote: > > >>> On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > >>>> Does anyone know how I should read/dow

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
On Sep 19, 7:40 am, Dave Angel wrote: > Chuck wrote: > > On Sep 12, 3:37 pm, Chuck wrote: > > >> On Sep 11, 9:54 pm, Chris Rebert wrote: > > >>> On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > >>>> Does anyone know how I should read/dow

Re: Podcast catcher in Python

2009-09-18 Thread Chuck
On Sep 12, 3:37 pm, Chuck wrote: > On Sep 11, 9:54 pm, Chris Rebert wrote: > > > On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > > Does anyone know how I should read/download the mp3 file, and how I > > > should write/save it so that I can play it on a media play

Re: Podcast catcher in Python

2009-09-12 Thread Chuck
On Sep 11, 9:54 pm, Chris Rebert wrote: > On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > Does anyone know how I should read/download the mp3 file, and how I > > should write/save it so that I can play it on a media player such as > > Windoze media player?  Excuse my

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 9:07 pm, Chuck wrote: > On Sep 11, 8:32 pm, Chris Rebert wrote: > > > > > > > On Fri, Sep 11, 2009 at 11:09 AM, Chuck wrote: > > > On Sep 11, 12:56 pm, Chuck wrote: > > >> On Sep 11, 10:30 am, Falcolas wrote: > > >>

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 8:32 pm, Chris Rebert wrote: > On Fri, Sep 11, 2009 at 11:09 AM, Chuck wrote: > > On Sep 11, 12:56 pm, Chuck wrote: > >> On Sep 11, 10:30 am, Falcolas wrote: > >> > On Sep 11, 8:20 am, Chuck wrote: > > >> > > Hi all, > > &

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 1:09 pm, Chuck wrote: > On Sep 11, 12:56 pm, Chuck wrote: > > > > > > > On Sep 11, 10:30 am, Falcolas wrote: > > > > On Sep 11, 8:20 am, Chuck wrote: > > > > > Hi all, > > > > > I would like to code a simple p

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 12:56 pm, Chuck wrote: > On Sep 11, 10:30 am, Falcolas wrote: > > > > > > > On Sep 11, 8:20 am, Chuck wrote: > > > > Hi all, > > > > I would like to code a simple podcast catcher in Python merely as an > > > exercise in interne

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 10:30 am, Falcolas wrote: > On Sep 11, 8:20 am, Chuck wrote: > > > Hi all, > > > I would like to code a simple podcast catcher in Python merely as an > > exercise in internet programming.  I am a CS student and new to > > Python, but understand Java

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
Also, if anyone could recommend some books that cover this type of programming, I would greatly appreciate it. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Podcast catcher in Python

2009-09-11 Thread Chuck
3, or whatever, podcast? Do I need to somehow parse the XML document? I really don't know. Any ideas? Thanks! Chuck -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading then sending new parts of a log file

2009-06-24 Thread Chuck Connors
On Jun 24, 2:48 pm, unayok wrote: > Here's a little nudge:http://code.activestate.com/recipes/157035/ > > In place of its "print" line, you'd make your call into your existing > code to send the message. Wow! Thanks for the _shove_ in the right direction. Looks perfect. -- http://mail.python.o

Re: Reading then sending new parts of a log file

2009-06-24 Thread Chuck Connors
On Jun 24, 11:57 am, Scott David Daniels wrote: > What OS and version, what Python and version. Win XP, Python 2.6.2 -- http://mail.python.org/mailman/listinfo/python-list

Reading then sending new parts of a log file

2009-06-24 Thread Chuck Connors
Hey guys. I'm trying to work up a little program that will send any new lines written to a file (log file from my home automation software) to me via instant message. I've gotten the instant message sending part figured out using xmpppy. I've done a few things with Python in the past but I am in

Re: What does self.grid() do?

2009-03-10 Thread chuck
On Mar 5, 3:03 am, Marc 'BlackJack' Rintsch wrote: > On Wed, 04 Mar 2009 09:04:50 -0800, chuck wrote: > > On Mar 3, 10:40 pm, Marc 'BlackJack' Rintsch wrote: > >> On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote: > >> > I am learning pyth

Re: What does self.grid() do?

2009-03-04 Thread chuck
On Mar 3, 10:40 pm, Marc 'BlackJack' Rintsch wrote: > On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote: > > I am learning python right now.  In the lesson on tkinter I see this > > piece of code > > > from Tkinter import * > > > class MyFrame(Frame):

What does self.grid() do?

2009-03-03 Thread chuck
I am learning python right now. In the lesson on tkinter I see this piece of code from Tkinter import * class MyFrame(Frame): def __init__(self): Frame.__init__(self) self.grid() My question is what does "self.grid()" do? I understand that the grid method registers widgets wit

Re: Need help converting text to csv format

2008-11-22 Thread Chuck Connors
Firstly, I would like to thank those that offered help. I was able to get my data into the database and also have connectivity with the mysql and can pull the data in/out at will. Hooray and thanks again. Secondly, perhaps I overstated my abilities. I have written a couple of websites from scr

Re: Need help converting text to csv format

2008-11-21 Thread Chuck Connors
Wow! What a change in direction from the previous post. Thank you both for the help and the explanations. This will work great! -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help converting text to csv format

2008-11-21 Thread Chuck Connors
> I'm wondering if PHP experience precludes the ability to use a search > engine before asking for help... Thanks for the push in the right direction, friend. -- http://mail.python.org/mailman/listinfo/python-list

Need help converting text to csv format

2008-11-21 Thread Chuck Connors
Hey guys. I'm working on a little program to help my wife catalog her/ our coupons. I found a good resource but need help formatting the text data so that I can import it into a mysql database. Here's the data format: 40922003 Life Fitness Products $1 (12-13-08) (CVS) 546500181141 Oust Air S

"Music Theory Programming" Google Group

2008-10-22 Thread Chuck Cronan
too late, but I just joined VBAX today (I hope someone will answer my question but it seems no one is interested). I am not a musician (but I have a piano I want to sell). Chuck Charles L. Cronan, PhD 4239 N. Larkin St Shorewood, WI 53211-1558 414-962-1627 [EMAIL PROTECT

Re: Good python equivalent to C goto

2008-08-18 Thread Chuck Rhode
d *come from* construct proposed for *fortran*? Here there be typos (abject apologies): o Clark, R. Lawrence. "A Linguistic Contribution to GOTO-less Programming." _Datamation_ Dec. 1973. 18 Aug. 2008 <http://www.fortranlib.com/gotoless.htm>. -- .. Be Seeing You, .. Chuck Rhod

Re: Web Crawler - Python or Perl?

2008-06-26 Thread Chuck Rhode
ndshake even though the download stalled. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda Goldwing GL1000 (Geraldine) .. Weather: http://LacusVeris.com/WX .. 73° — Wind Calm -- http://mail.python.org/mailman/listinfo/python-list

Re: Web Crawler - Python or Perl?

2008-06-12 Thread Chuck Rhode
ittier solution is to supply timeout parms to the *curl* command through the shell. Execute the command and retrieve its output through the *subprocess* module. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda Goldwing GL1000 (Geraldine) .. Weather: http://LacusVeris.com/WX .. 64° — Wind

Re: Python 3000: Standard API for archives?

2007-06-05 Thread Chuck Rhode
Tim Golden wrote this on Mon, 04 Jun 2007 15:55:30 +0100. My reply is below. > Chuck Rhode wrote: >> samwyse wrote this on Mon, 04 Jun 2007 12:02:03 +. My reply is >> below. >>> I think it would be a good thing if a standardized interface >>> existed, sim

Re: Python 3000: Standard API for archives?

2007-06-04 Thread Chuck Rhode
of tars and other abominations). -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 62° — Wind N 7 mph — Sky overcast. Mist. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 8 style enforcing program

2007-05-31 Thread Chuck Rhode
montyphyton wrote this on Thu, 31 May 2007 05:16:30 -0700. My reply is below. > I understand that there are a lot of code beautifiers out there, but > i haven't seen one specially tailored for Python. Consider PythonTidy: o http://lacusveris.com/PythonTidy/PythonTidy.python -- ..

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Chuck Rhode
uction. While skimming this discussion, I, too, was suffering flashbacks to CDC's 6-bit Hollerith code. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 69° — Wind NNE 6 mph — Sky partly cloudy. -- http://mail.python.org/mailman/listinfo/python-list

Re: nonstandard XML character entities?

2007-04-14 Thread Chuck Rhode
Chuck Rhode wrote this on Sat, 14 Apr 2007 09:04:45 -0500. My reply is below. Fixed text wrap: > import xml.etree.ElementTree # or elementtree.ElementTree prior to 2.5 > ElementTree = xml.etree.ElementTree > import htmlentitydefs > class XmlFile(ElementTree.ElementTree): >

Re: nonstandard XML character entities?

2007-04-14 Thread Chuck Rhode
arser = ElementTree.XMLTreeBuilder( : target=ElementTree.TreeBuilder(Element)) : parser.entity = htmlentitydefs.entitydefs : self.parse(source=file, parser=parser) : return It looks goofy as can be, but it works for me. -- .. Chuck Rhode, Sheboygan, WI, USA ..

Re: [JOB] Sr. Python Developer, Northern VA

2007-03-23 Thread Chuck Rhode
ational. ... so what's this we hear of employers' (in the US) being so starved for talent that they're willing to bring in young men from overseas with 3.5 kids and 1.5 wives? -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 44° — Wind SSE 7 mph — Sky

Re: Python Source Code Beautifier

2007-02-27 Thread Chuck Rhode
ythonTidy/PythonTidy.python It doesn't have a graphical user interface, and it doesn't do everything you want, and it isn't reasonable (It's of an unreasonable size.), but it is a beginning. For future reference, look in: o http://cheeseshop.python.org/pypi ... under "reformat.&q

Re: Automated resizing of JPEG image + making slices?

2007-02-15 Thread Chuck Rhode
rubbed clean of any delimiters that would look like executable shell script code, variable substitutions, or even spurious path names. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 18° — Wind WNW 13 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: beep or sound playing under linux

2007-01-22 Thread Chuck Rhode
hg wrote this on Mon, Jan 22, 2007 at 04:12:50PM +0100. My reply is below. > Is there a way to do that? (Make noise.) In Gnome there is: gtk.gdk.beep() -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 28° — Wind WSW 10 mph — Sky overcast. -- h

PythonTidy 1.10

2007-01-18 Thread Chuck Rhode
/PythonTidy/PythonTidy-1.10.python";>PythonTidy 1.10 - Cleans up, regularizes, and reformats the text of Python scripts. (18-Jan-07) .. Chuck Rhode, Sheboygan, WI, USA .. mailto:[EMAIL PROTECTED] .. Weather: http://LacusVeris.com/WX .. 20° — Wind WNW 13 mph -- http://mail.python.org/mailman/

Re: Conflicting needs for __init__ method

2007-01-17 Thread Chuck Rhode
Ben Finney wrote this on Wed, Jan 17, 2007 at 08:27:54PM +1100. My reply is below. > I recommend, instead, separate factory functions for separate input > types. Uh, how 'bout separate subclasses for separate input types? -- .. Chuck Rhode, Sheboygan, WI, USA .. Wea

Re: ReportLab - Frames - Images

2007-01-15 Thread Chuck
Thanks for the help. I made you changes but it still puts the picture above the text, not beside the text. I also found a user group at http://news.gmane.org/gmane.comp.python.reportlab.user . It may be the same. I have now posted there. Chuck -- http://mail.python.org/mailman/listinfo/python

ReportLab - Frames - Images

2007-01-15 Thread Chuck
next line. Please help. Chuck *** CUT *** from reportlab.pdfgen import * from reportlab.platypus import * from reportlab.lib.units import inch from reportlab.platypus import SimpleDocTemplate from reportlab.platypus import flowables from reportlab.lib.enums i

Re: help: code formatter?

2007-01-08 Thread Chuck Rhode
siggi wrote this on Mon, Jan 08, 2007 at 03:33:21PM +0100. My reply is below. > Is there a simple code formatter that first removes all indentations > and then refomats correctly? Why, yes, there is: http://lacusveris.com/PythonTidy/PythonTidy.python -- .. Chuck Rhode, Sheboygan, W

Re: PythonTidy

2006-12-06 Thread Chuck Rhode
my own style is > to use double quotes (I don't think that pep8 prefers one over the > other). Is it possible to customize this? Here is a new global: DOUBLE_QUOTED_STRINGS = True. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 30° — Wind WNW 15 mph — Sky overcast. -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My reply is below. > I suggest you open the file with open(input-file, "rU"). This doesn't work so pretty good while reading from sys.stdin, so I'm still at the drawing board. -- .. Chuck Rhode, She

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
PythonTidy to do the right thing on > unfamiliar code, and I can't readily try out various options by > simply activating or deactivating them; if I could, it would be much > more useful to me. PythonTidy should be run only on code that is already familiar or that will ra

PythonTidy

2006-12-05 Thread Chuck Rhode
scripts: http://www.LacusVeris.com/PythonTidy/PythonTidy.python What next? Is it appropriately submitted to the Cheese Shop? -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 3° — Wind W 8 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
Thomas Heller wrote this on Fri, Dec 01, 2006 at 10:12:38PM +0100. My reply is below. > Chuck Rhode schrieb: > > o Command-line args: Please give an example of a standard command that > > I might emulate w.r.t. standard argument use. > Well, at least it would be ni

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
, one of which should prevent it in all cases, obviating the need for a custom switch. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda Goldwing GL1000 (Geraldine) .. Weather: http://LacusVeris.com/WX .. 10° — Wind S 5 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
m only minimally and am not greatly inconvenienced when they are moved around a little. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 21° — Wind N 8 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
d to externalize all the options; nevertheless, most are declared near the beginning where they sit just begging for end-user involvement. See: CODING_SPEC and SHEBANG. *PythonTidy* is all about consistency, consistency, and consistency. You can use it to standardize shebangs and coding across a

PythonTidy

2006-11-29 Thread Chuck Rhode
ing out. Thanks. -- .. Chuck Rhode, Sheboygan, WI, USA -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding skilled pythonistas for micro-jobs?

2006-11-18 Thread Chuck Rhode
ioritize requests before he even thinks about beginning a task. It's difficult to outsource these things, and they are time consuming. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 38° — Wind NNW 9 mph — Sky overcast. -- http://mail.python.org/mailman/listinfo/python-list

If you were given a mall would you take it?

2006-05-18 Thread Chuck
http://www.telebay.com/esolutions/opp.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile ui files from within Eclipse

2006-03-07 Thread Chuck
I guess I could prompt for input but was hoping to find a better way. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile ui files from within Eclipse

2006-03-07 Thread Chuck
Well, I tried that but there isnt a way to get the filename without the extension. For example, pyuic -o MyClass.py MyClass.ui Using the variables in the external tool config I dont see a way to get just the filename in order to create an output filename and pass it into the pyoic. -- http://ma

Compile ui files from within Eclipse

2006-03-06 Thread Chuck
Hello, I am new to the Eclipse IDE. I am using pydev plug-in to create python projects. Is there a way to create custom builders to build certain types of files? I have done this with other IDE's but can't seem to figure it out with Eclipse. I am trying to build *.ui files of a pydev project t

Re: logging module question

2006-01-23 Thread chuck
Ok, so I've figured this out (see below), mail = logging.handlers.SMTPHandler('mail.vw.com', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'Data Processing Error at location: %s' %

logging module question

2006-01-23 Thread chuck
I want to create two different loggers so that users see one output (e.g. no exception/stack traces) and others (e.g support staff) that does see stack traces via email. The code below is close but I still get console output on the email logger from the "root" logger. How do I get rid of it? im

advanced module/import/namespace idioms

2005-12-31 Thread chuck
Every once in awhile I run across a python module that might have statements like: for c in sys.modules[module].__dict__.values(): or import __builtin__ __builtin__.__dict__['_'] = lambda x: x Snurf also does some strange import trickory (see http://bdash.net.nz/svn/snurf/trunk/snurf/dataStore/

Re: PythonWin troubleshooting

2005-12-18 Thread chuck
Oh my gosh - thank you, thank. I must have had thousands of these entries in my registry. I've blown it away and at least at initial testing, appears to have solved the problem. I should have gone poking around the the bug database. Next time I will. -- http://mail.python.org/mailman/listinfo

Re: Python IDE (was: PythonWin troubleshooting)

2005-12-17 Thread chuck
Yeah but is it 'fast'. What is Komodo written in? -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread chuck
> Let's just note that sturgeon's law applies to all programmers, and > let it go at that. I'll get back to this. fine > And thank you. you are welcome > I'm not a big fan of popularity for the sake of popularity. neither am I > "it would make Python more popular" isn't an adequate > justifica

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread chuck
> I did a fairly thorough investigation of web frameworks that let us > write Python (we didn't care what the framework was written in; merely > that it interfaced with Python) for one of the systems I've built this > year. I wouldn't call the evaluation of web frameworks a problem - we > met our s

Re: Which Python web framework is most like Ruby on Rails?

2005-12-15 Thread chuck
> People keep talking about Python's wealth of web frameworks as if it > were a bad thing. I disagree somewhat. While variety and choice are nice, sometimes having too many choices may inhibit people from trying the language because they don't know where to start in terms of framworks. Maybe I'm

Python IDE (was: PythonWin troubleshooting)

2005-12-15 Thread chuck
Apparently not too many people use or are interested in PythonWin. I'm giving up on it. It used to work pretty good. I'm lucky that I have found PyScripter (http://www.mmm-experts.com/) a python IDE for the windows platform which is much more stable and has more features that PythonWin. If you

Re: Dectecting dir changes

2005-12-15 Thread chuck
Thanks, I am aware of it. I may pick it up, but in reviewing it on Amazon and at the bookstore I've noted that it does not touch on FTP server stuff or how to grok the framework in general. -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonWin troubleshooting

2005-12-13 Thread chuck
Thanks for the suggestions but I have all of the MFC dll's. In fact I have Visual Studio 2003 installed on the box. However my mfc42.dll is different than the size stated on that link. In fact the download is a different size that what is stated on the link. -- http://mail.python.org/mailman/l

Re: PythonWin troubleshooting

2005-12-13 Thread chuck
chuck wrote: > Sticking with 2.4.2 I reverted to win32 ext 204 and problems were the > same or worse. Then I uninstalled both, removed the dangling py*24.dll > and then installed "ActivePython 2.3.5.236". All the problems went > away. > > I hate to go back to 2

Re: PythonWin troubleshooting

2005-12-13 Thread chuck
Sticking with 2.4.2 I reverted to win32 ext 204 and problems were the same or worse. Then I uninstalled both, removed the dangling py*24.dll and then installed "ActivePython 2.3.5.236". All the problems went away. I hate to go back to 2.3 cause there are some nice updates in the 2.4 library that

Re: PythonWin troubleshooting

2005-12-12 Thread chuck
Build 205 for the win32 ext. -- http://mail.python.org/mailman/listinfo/python-list

PythonWin troubleshooting

2005-12-12 Thread chuck
Having problems with PythonWin on Windows XP SP1. Shortly after startup and trying to debug I see: LoadBarState failed - LoadBarState failed (with win32 exception!) Things go down hill quickly from there. From there I see stuff like: [Dbg]>>> Traceback (most recent call last): File "C:\Pytho

Re: Dectecting dir changes

2005-12-10 Thread chuck
I do need to stick to FTP though as indicated I could run it on a different port. Limit comes more from the client side capabilities. Did some reading about twisted and I now understand that things in general are single threaded. I started working my way through the twisted finger tutorial. Whi

Re: Dectecting dir changes

2005-12-09 Thread chuck
Hmmm, that is an interesting idea. I've noticed the new book on Twisted, thinking about picking it up. I assume that this little snippet will handle multiple/concurrent incoming transfers via threading/sub-process, is scalable, secure, etc? I could even run it on a non-standard port making it a

Re: Dectecting dir changes

2005-12-09 Thread chuck
ty - more useful than 'works here' -- http://mail.python.org/mailman/listinfo/python-list

Re: Dectecting dir changes

2005-12-09 Thread chuck
Is this on Solaris? I think you may have missed my point. I don't have fcntl.py on my Solaris box so how do I know what signals that I can used to monitor a directory for modification. In other words will the following work? fcntl.fcntl(self.fd, fcntl.F_NOTIFY, fcntl.DN_DELETE|fcntl.DN_CREATE|f

Dectecting dir changes

2005-12-09 Thread chuck
I need to write a daemon for Solaris that monitors a directory for incoming FTP transfers. Under certain conditions, when the transfer is complete I need to send an email notification, and do other stuff. Win32 provides FindFirstChangeNotification(), but as best I can tell this isn't supported on

File Upload Script

2005-09-29 Thread Chuck
Hi, can anyone provide or point me in the direction of a simple python file upload script? I've got the HTML form part going but simply putting the file in a directory on the server is what I'm looking for. Any help would be greatly appreciated. Thanks, Chuck -- http://mail.python.o

Re: Why doesn't IDLE editor windows have horizontal scrollbars?

2005-09-16 Thread chuck
Well I don't want to start yet another thread on IDE's. I've googled and all of that an am aware of most of the IDE's that are out there. I am curious if there is someplace where statistics have been captured on what IDE's most people are using. Since IDLE ships with Python I assume a lot of peo

Why doesn't IDLE editor windows have horizontal scrollbars?

2005-09-16 Thread chuck
The browser windows do. Why not the editor windows? I hate to complain but is there any way to get IDLE to run in more of an MDI mode? Having the floating windows everywhere is rather confusing to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Database Scripts

2005-09-13 Thread Chuck
Hi, thanks for (all) of your help. BTW, where is the DB-API docs for python? Thanks, --Chuck -- http://mail.python.org/mailman/listinfo/python-list

Python Database Scripts

2005-09-12 Thread Chuck
Hello, Can anyone provide any kind of python database (mysql) code or point me to a link that has this? Just simple things as maybe using a driver, opening up a db, an insert and select. Any help would be greatly appreciated! Thanks, --Chuck -- http://mail.python.org/mailman/listinfo/python

  1   2   >