Re: os.walk the apostrophe and unicode

2017-06-25 Thread Rod Person
On Sun, 25 Jun 2017 08:18:45 -0600 Michael Torrie wrote: > On 06/25/2017 06:19 AM, Rod Person wrote: > > But doing a simple ls of that directory show it is unicode but the > > replacement of the offending character. > > > > http://rodperson.com/graphics/uc/ls.pn

Re: os.walk the apostrophe and unicode

2017-06-25 Thread Rod Person
Ok...so after reading all the replies in the thread, I thought I would be easier to send a general reply and include some links to screenshots. As Peter mention, the logic thing to do would be to fix the file name to what I actually thought it was and if this was for work that probably what I woul

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Rod Person
On Sat, 24 Jun 2017 13:28:55 -0600 Michael Torrie wrote: > On 06/24/2017 12:57 PM, Rod Person wrote: > > Hi, > > > > I'm working on a program that will walk a file system and clean the > > id3 tags of mp3 and flac files, everything is working great un

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Rod Person
On Sat, 24 Jun 2017 21:28:45 +0200 Peter Otten <__pete...@web.de> wrote: > Rod Person wrote: > > > Hi, > > > > I'm working on a program that will walk a file system and clean the > > id3 tags of mp3 and flac files, everything is working great until

os.walk the apostrophe and unicode

2017-06-24 Thread Rod Person
Hi, I'm working on a program that will walk a file system and clean the id3 tags of mp3 and flac files, everything is working great until the follow file is found '06 - Todd's Song (Post-Spiderland Song in Progress).flac' for some reason that I can't understand os.walk() returns this file name a

Re: Python and GUI development

2014-12-01 Thread Rod Person
On Mon, 1 Dec 2014 23:13:32 +1100 Chris Angelico wrote: > On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal > wrote: > > Hi folks, > > > > I want to design a GUI interface for my project . I wanted it to > > use it Python and it has to work on freebsd . Please > > provide me the latest trends fo

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Rod Person
On 11/20/2013 11:03 AM, Ev J wrote: I am learning Python and wish to develop GUI applications to run on Windows. I have installed the Visual Studio integrated shell (Ver. 12.0.21005.1 REL) IDE and the Python 3.3 interpreter. I have gone through some of the 3.3 tutorial available at http://docs.

Re: To whoever hacked into my Database

2013-11-10 Thread Rod Person
On Sun, 10 Nov 2013 21:41:54 +0100 Chris “Kwpolska” Warrick wrote: > On Nov 10, 2013 9:01 PM, "Rod Person" wrote: > > Tortoise? What's a tortoise? > Is that a real question? If yes, then it's an animal, similar to a > turtle. Ask Google or Wikipedia

Re: To whoever hacked into my Database

2013-11-10 Thread Rod Person
On Sun, 10 Nov 2013 21:41:54 +0100 Chris “Kwpolska” Warrick wrote: > On Nov 10, 2013 9:01 PM, "Rod Person" wrote: > > Tortoise? What's a tortoise? > Is that a real question? If yes, then it's an animal, similar to a > turtle. Ask Google or Wikipedia for m

Re: To whoever hacked into my Database

2013-11-10 Thread Rod Person
On Sun, 10 Nov 2013 20:32:11 +0100 Petite Abeille wrote: > > On Nov 10, 2013, at 8:21 PM, Νίκος Αλεξόπουλος > wrote: > > > Perhaps > > You're in a desert, walking along in the sand, when all of a sudden > you look down and see a tortoise. It's crawling toward you. You reach > down and you flip

Re: JUST GOT HACKED

2013-10-02 Thread Rod Person
On 10/2/2013 9:30 AM, Νίκος wrote: You learn and you are forced to solve problems better when you deal with real time problems. https://tinyurl.com/44teepw -- Rod The guide of millers uses only the finest grains: true Roman breads, for true Romans. -- https://mail.python.org/mailman/listinf

Re: [CGI] Basic newbie error or server configuration error?

2012-08-20 Thread Rod Person
e some non-printed, > bad characters that prevent Python from compiling the source code? > > Thanks for any help. Check the Apache error log, there should be more information there. -- Rod Person http://www.rodperson.com rodper...@rodperson.com Sent From Claws Mail 3.8.0cvs30 Win7 x86 GTK+ 2.16.6/GLib 2.24.0 -- http://mail.python.org/mailman/listinfo/python-list

Re: unable to get simple html file up

2012-08-03 Thread Rod Person
to the > cgi script. > > But strangely i can't even see the page itself. Any idea why it is > like this? I have made link.py executable. Here is the > server.py<http://dpaste.de/iEPTk/> > . > looks like the closing """ are missing from link.py --

Re: Python Script Works Locally But Not Remotely with SSH

2012-04-03 Thread Rod Person
ust have a terminal window? If You just have a terminal, > You wont be able to run GUI apps. > You need an X server on the XP machine. I've use Xming for this. http://sourceforge.net/projects/xming/?_test=b -- Rod Person http://www.rodperson.com rodper...@rodperson.com 'Silen

Re: class checking its own module for an attribute

2012-03-21 Thread Rod Person
On Wed, 21 Mar 2012 17:59:56 +0100 Peter Otten <__pete...@web.de> wrote: > Rod Person wrote: > > > We have a module called constants.py, which contains [whatever] > > related to server names, databases, service account users and their > > passwords. > > Pa

Re: class checking its own module for an attribute

2012-03-21 Thread Rod Person
On Wed, 21 Mar 2012 09:56:57 -0700 Chris Rebert wrote: > On Wed, Mar 21, 2012 at 8:25 AM, Rod Person > wrote: > > The question is there a way I can do this with out having to import > > constants when what it's doing is importing itself. It would seem > > to me tha

class checking its own module for an attribute

2012-03-21 Thread Rod Person
s when what it's doing is importing itself. It would seem to me that there should be a way for a module to reference itself. In that thinking I have tried if not(hasattr(__file__, value): if not(hasattr(__name__, value): and even: this = sys.argv[0] if not(hasattr(this, value): None of

Re: converting from tcl/tkl to python

2012-03-09 Thread Rod Person
bindings that allow you to use WxWidgets, Qt and GTK. -- Rod Person http://www.rodperson.com rodper...@rodperson.com 'Silence is a fence around wisdom' -- http://mail.python.org/mailman/listinfo/python-list

Re: Komodo 7 release (Python development tools)

2012-02-09 Thread Rod Person
the editor. It also supports more than python, just in case for some old reason you'd find the need to write Perl, Ruby or TCL code. -- Rod Person http://www.rodperson.com rodper...@rodperson.com 'Silence is a fence around wisdom' -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not get the result of query in pymssql module of python...

2012-02-09 Thread Rod Person
;>> print cur.fetchall() What if you change this to print cur.fetchone() About 95% of my python database work is with MS SQL. I use fetchone when as_dict is True and it seems to work better for me. > [] > >>> cur.rowcount > -1 > >>> exit() > > I am expecting that th

Re: Unable to install xmldiff package on WIndows7

2012-01-05 Thread Rod Person
ions\maplookup.o > > error: command 'gcc' failed: No such file or directory > It trying to compile this extension using GNU gcc. You'd need that to compile this one windows. Don't know if there is a windows version but check http://gcc.gnu.org -- Rod Person http://www.rodperson.com rodper...@rodperson.com 'Silence is a fence around wisdom' -- http://mail.python.org/mailman/listinfo/python-list

Re: Py and SQL

2011-11-30 Thread Rod Person
On Wed, 30 Nov 2011 15:30:48 -0500 Verde Denim wrote: > All > I have a sql script that I've included in a simple Py file that gives > an error in the SQL. The problem is that the SQL code executes > correctly in a database IDE environment (in this case ora developer). > So, I'm concluding that I'

Creating and Audio Equalizer with python and gstreamer

2008-04-09 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For about 3 weeks I have been search for examples for grabbing and frequency from an audio stream and manipulating it. So far I haven't been too successful. Just wondering if anyone has done this or has a good example of doing such. TIA Rod -BE

Re: Python Class Best Practice

2007-12-04 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 04 Dec 2007 15:51:18 -0800 Gary Herron <[EMAIL PROTECTED]> wrote: > Rod Person wrote: > > > > 1: > > class Foo(object): > > member1='' > > member2=0 > > > > def __init

Python Class Best Practice

2007-12-04 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been doing python programming for about 2 years as a hobby and now I'm finally able to use it at work in an enterprise environment. Since I will be creating the base classes and libraries I wondering which why is consider best when creating python

FreeBSD/Linux X11 determine which window manager is active

2007-07-07 Thread Rod Person
I'm looking for a way to determine which window manager is running using python. I can't seem to find a system variable that hold this info. -- Rod "it takes an unusual mind to see the obvious." - Alfred Whitehead signature.asc Description: This is a digitally signed message part -- http://ma

Help with creating processes

2007-01-19 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to create a simple gui wrapper for the handbrake dvd ripper with python 2.4 on a FreeBSD system. My problem is this. I want to scan the dvd to see all the titles and chapters. The handbrake command for this is: handbrake -i /dev/ac