Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Veek M
Just to be very very clear about this: 1. I have never worked seriously with Javascript, frameworks, django, flask etc. 2. I can write CGI on Apache. 3. I have never worked with nginx untill 2 days ago. 4. All this started because I wanted to mess with SQL/CSS/HTML5. 5. Some frigging! *moron* on I

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Veek M
http://discuss.joelonsoftware.com/default.asp?joel.3.219431.12 -- https://mail.python.org/mailman/listinfo/python-list

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-17 Thread Veek M
Dumped uwsgi - the documentation is utterly ridculous!! Switched to 'Bottle' - very nice, intutive and clean - tutorial+documentation is excellent and i got 'hello world' up and running in like 10-15 minutes vs the 2 days intermittent it took to scroll through the crap that is uwsgi-server. It

Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-18 Thread Veek M
I'm messing with Google-Maps. Is there a way I can create a map, embed it on a page (CSS/HTML/Javascript for this bit), and add images, videos, markers - using python? Any libraries available? -- https://mail.python.org/mailman/listinfo/python-list

Re: Logic problem: need better logic for desired thruth table.

2015-05-29 Thread M Philbrook
In article <3794b$55678d83$5419aafe$56...@news.ziggo.nl>, skybuck2000 @hotmail.com says... > > Hello, > > I was just coding and ran into a little logic problem which is as follows: > > There are two booleans/variables which can be either false or true. > > The desired thrutle table is: > > A =

Javascript website scraping using WebKit and Selenium tools

2015-07-01 Thread Veek M
I tried scraping a javascript website using two tools, both didn't work. The website link is: http://xdguo.taobao.com/category-499399872.htm The relevant text I'm trying to extract is 'GY-68...': I'm trying to match the class="

Re: Javascript website scraping using WebKit and Selenium tools

2015-07-01 Thread Veek M
dieter wrote: > Once the problems to get the "final" HTML code solved, > I would use "lxml" and its "xpath" support to locate any > relevant HTML information. Hello Dieter, yes - you are correct. (though I don't think there's any auth to browse - nice that you actually tried) He's using jsonP an

lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Veek M
I travel to 'item-name', how do i quickly travel to c-price and then print both values of text. I tried: for anchor in element.xpath('//a[@class="item-name"]'): #Travel to item-name but when i getparent and then call xpath I get a whole bunch of span elements as a list - why? Shouldn't xpath sta

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Veek M
never mind fixed.. it's returning a list so whatever[0].text and relative-path for the xpath -- https://mail.python.org/mailman/listinfo/python-list

requests.Session() how do you set 'replace' on the encoding?

2015-07-02 Thread Veek M
I'm getting a Unicode error: Traceback (most recent call last): File "fooxxx.py", line 56, in parent = anchor.getparent() UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in position 8: illegal multibyte sequence I'm doing: s = requests.Session() to suck data in, so.. how do

Re: requests.Session() how do you set 'replace' on the encoding?

2015-07-06 Thread Veek M
dieter wrote: > Veek M writes: >> UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in >> position 8: illegal multibyte sequence > > You give us very little context. It's a longish chunk of code: basically, i'm trying t

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-06 Thread Veek M
Saran Ahluwalia wrote: > So what did you do to resolve this? Please provide your fix. This is an > excellent case study for others. it's provided, what part didn't you understand? Try googling relative-path, wth? -- https://mail.python.org/mailman/listinfo/python-list

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-09 Thread Veek M
Mark Lawrence wrote: > > If it's provided why have you snipped it this time around? May I most > humbly suggest that the next time you ask, please ensure that you tell > us what you've googled for prior to putting your question. > umm.. I can't determine what you mean by 'snipped it'. 1. I post

Re: requests.Session() how do you set 'replace' on the encoding?

2015-07-09 Thread Veek M
dieter wrote: > > It looks strange that you can set "s.encoding" after you have > called "s.get" - but, as you apparently get an error related to > the "gbk" encoding, it seems to work. Ooo! Sorry, typo - that was outside the function but before the call. Unfortunately whilst improving my functi

Re: SOAPpy: Expected to find node type 'Element' with name 'CountriesFetchingRequest'; Found node type 'Element' with name 'FetchCountries'

2014-09-23 Thread Veek M
dieter wrote: > I have no experience with "SOAPpy", but with "suds" (another Python > SAOP client). A "suds" client exposes two attributes "factory" *miaows happily* -- https://mail.python.org/mailman/listinfo/python-list

Re: what's the command for (cd ..) in python

2011-09-10 Thread Waldek M.
On Fri, 09 Sep 2011 23:03:10 +1000, Steven D'Aprano wrote: > But think carefully before doing this. Some functions may be confused if you > change directories while they are running. You may be better off staying in > the same directory, and adjusting the path names to the files as you work > with

Re: what's the command for (cd ..) in python

2011-09-10 Thread Waldek M.
On Sat, 10 Sep 2011 21:11:32 +1000, Steven D'Aprano wrote: > The main one that comes to mind is os.walk, which has this to say: > > Caution: if you pass a relative pathname for top, don't change the > current working directory between resumptions of walk. walk never > changes the cur

Re: Request for research feedback

2011-09-15 Thread Waldek M.
On Thu, 15 Sep 2011 16:55:13 +0100, Fulvio Valente wrote: > Hi, I am a research intern at the University of Strathclyde > who has been doing a summer research internship. I don't want to be rude, but please: could you rather first research how to use a newsreader before you use it? These long lin

Re: Request for research feedback

2011-09-15 Thread Waldek M.
On Thu, 15 Sep 2011 16:11:13 -0400, Prasad, Ramit wrote: > I don't want to be rude but... > Not rude: > Rude: You're right. I must have gotten a few bad habits I didn't even realize. Thanks. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Freelance Django developer needed

2011-10-11 Thread Waldek M.
> (First to everyone not into Django: sorry for the shameless job > advertisement!) > > We are searching for a Freelance Django developer to help us out! Well, if you're sorry then why do you go on? There's a much better place to post the job offer: http://www.python.org/community/jobs/ There,

Re: Job Offer: 3 Python Backend Developer and other Positions in Berlin

2011-10-23 Thread Waldek M.
On Sun, 23 Oct 2011 17:50:54 +0200, webcrowd.net wrote: > hope it is okay to post job offers here. If not sorry for the spam and > please let me know! Not really. It's a newsgroup on Python *language*, not on Python-everything. You might want to post here instead, though: http://www.python.org/c

Re: How do I pass a variable to os.popen?

2011-10-31 Thread Dan M
On Mon, 31 Oct 2011 13:16:25 -0700, extraspecialbitter wrote: > cmd = 'ethtool %interface' Do you perhaps mean: cmd = 'ethtool %s' % (interface, ) -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic variable creation from string

2011-12-07 Thread Waldek M.
On Wed, 7 Dec 2011 09:09:16 -0800 (PST), Massi wrote: > def Sum(D) : > return D['a']+D['b']+D['c'] > > Is there a way to create three variables dynamically inside Sum in > order to re write the function like this? > > def Sum(D) : > # Here some magic to create a,b,c from D > return a+

Re: InvalidResponseError: headers must be str

2012-01-02 Thread Waldek M.
On Sat, 31 Dec 2011 17:40:15 -0800 (PST), Niklas Rosencrantz wrote: > Thanks for the replies here. I will have patience but this bug > is blocking my integration efforts. I tried logging the TCP > packets with tcpdump and nothing special appeared. Well, it's free software, isn't it? You may either

Pick random choice from variables

2013-02-10 Thread eli m
How do i make something with python that will ask the user for input, and then use the random.choice function to select a random choice from what the user entered. -- http://mail.python.org/mailman/listinfo/python-list

How would you do this?

2013-02-14 Thread eli m
I want to make a guess the number game (Which i have), but i want to make the computer play the game against itself. How would i do this? -- http://mail.python.org/mailman/listinfo/python-list

Re: How would you do this?

2013-02-14 Thread eli m
On Thursday, February 14, 2013 4:09:37 PM UTC-8, Oscar Benjamin wrote: > On 14 February 2013 23:34, eli m wrote: > > > I want to make a guess the number game (Which i have), but i want to make > > the computer play the game against itself. How would i do this? > >

Small program ideas

2013-02-15 Thread eli m
Any small program ideas? I would prefer to stick to command line ones. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Small program ideas

2013-02-15 Thread eli m
On Friday, February 15, 2013 7:52:57 PM UTC-8, Mitya Sirenef wrote: > On 02/15/2013 10:22 PM, eli m wrote: > > > Any small program ideas? I would prefer to stick to command line ones. > > Thanks. > > > > How about these two: > > > > - simulation

Import Question

2013-02-20 Thread eli m
How long does it take for the program to import something? I am asking this because i have like 7 imports at the beginning of my program and i am thinking thats the reason why it is slow to start up. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Small program ideas

2013-02-25 Thread eli m
On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote: > Any small program ideas? I would prefer to stick to command line ones. Thanks. Thank you guys for the suggestions. Any more? -- http://mail.python.org/mailman/listinfo/python-list

Re: Small program ideas

2013-02-26 Thread eli m
On Monday, February 25, 2013 10:15:24 PM UTC-8, Dave Angel wrote: > On 02/25/2013 10:48 PM, eli m wrote: > > > On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote: > > >> Any small program ideas? I would prefer to stick to command line ones. > >> Thanks.

Re: Small program ideas

2013-02-26 Thread eli m
On Tuesday, February 26, 2013 4:22:10 PM UTC-8, Joshua Landau wrote: > On 26 February 2013 22:47, eli m wrote: > > > > > > How hard would it be to change one file to another and would it be a > small-medium sized program? > > > How do you want to change

Display video in tkinter?

2013-02-27 Thread eli m
Is there a way to display video (an avi) in tkinter without having to download other modules? If not then are there any other options? -- http://mail.python.org/mailman/listinfo/python-list

How would you do this?

2013-02-27 Thread eli m
How would you find the slope, y intercept, and slope-intercept form equation for a line in python? -- http://mail.python.org/mailman/listinfo/python-list

Store a variable permanently

2013-02-28 Thread eli m
So i have a variable called funds that i want to store the value of even after the program is exited. My funds variable holds the total value of funds i have. I add a certain number of funds each time i run the program by entering how much i want to add. How would i store the funds variable to k

Input wont work with if statement if it has a space

2013-03-05 Thread eli m
Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: raw_input("Type in a function:") if function == "Example": print ("Hello World!") else: print ("blah blah blah") The problem is that whenever i type in example with a space after it th

Re: Input wont work with if statement if it has a space

2013-03-05 Thread eli m
On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: > Hi guys, i have a program like this: (A lot of code is not included) > > run = 0 > > while run == 0: > >raw_input("Type in a function:") > >if function == "Example":

Re: Input wont work with if statement if it has a space

2013-03-05 Thread eli m
On Tuesday, March 5, 2013 3:47:31 PM UTC-8, emile wrote: > On 03/05/2013 03:33 PM, eli m wrote: > > > On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: > > >> Hi guys, i have a program like this: (A lot of code is not included) > > >> > >

Insert comma in number?

2013-03-06 Thread eli m
I have a python program that accepts input and calculates the factorial of that number, and i want to know if i can make it so commas get inserted in the number. For example: instead of 1000 it would say 1,000 -- http://mail.python.org/mailman/listinfo/python-list

Re: Small program ideas

2013-03-18 Thread eli m
Any other ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem this random seed()

2013-03-18 Thread eli m
On Monday, March 18, 2013 6:57:30 PM UTC-7, NZach wrote: > Hello everyone, > > > > i am using the MMK.py example from a SimPy tutorial, which can be found here: > http://heather.cs.ucdavis.edu/~matloff/156/PLN/DESimIntro.pdf > > > > I have made very little changes to the code and i have uplo

RGB combine

2013-04-17 Thread m . shemuni
Hi everyone. I have 3 grayscaled picture. These are Red, Green and Blue filtered. I want to colorize it. I'm a GNU/Linux user and I did it with imagemagick using this code: convert r.png g.png b.png -set colorspace RGB -combine -set colorspace sRGB rgb.gif But I want to colorize it with using c

Video tutorial for making a guess the number game in python

2013-05-04 Thread eli m
I made a video tutorial for making a guess the number game in python. You can check it out here: http://www.youtube.com/watch?v=0WSQb-7wMJQ -- http://mail.python.org/mailman/listinfo/python-list

Newbie: executing a system command from my Python app

2005-12-12 Thread Dan M
TS, SENDER, and SENDMAIL-QID, and get stored in subdirectories named qdir--MM-DD-hh.mm.ss-nnn, where Y-M-D is the date received, hms is time received, and nnn is to allow for up to 10 messages to quarantined any given second. I know I can do this by descending into the directories I've identi

Re: Newbie: executing a system command from my Python app

2005-12-12 Thread Dan M
On Mon, 12 Dec 2005 13:25:14 -0800, Dan M wrote: > I'm writing a Python replacement for a particularly ugly shell script. we > are running mimedefang on our mail server, moving spam and virus messages > to a quarantine directory. This little python script successfully chdir's

Re: Newbie: executing a system command from my Python app

2005-12-13 Thread Dan M
> Few points points: > > 1. Generally: I would try to minimize system calls. They make your code less > portable. Excellent point. In this case the app will never live anywhere other than one specific FreeBSD machine, but I do appreciate the value of the advice anyway. Therefore... > 2. Look

Re: How can I load python script into Html ??

2005-12-13 Thread Steve M
Man, I don't even know where to start. There is no way this will work if you don't have a web browser that can interpret Python. I don't know of one, and I don't think anybody wants one because using a browser that would execute arbitrary Python code provided by the server would be an obscene secur

Re: How To Read Excel Files In Python?

2005-12-13 Thread Steve M
"""Derived from _Python Programming on Win32_ by Mark Hammond and Andy Robinson""" import win32com.client import win32com.client.dynamic class Excel: def __init__(self, filename=None): self.xlApp = win32com.client.dynamic.Dispatch('Excel.Application') if filename:

Re: Simple (?) question about print statement

2005-12-14 Thread Dan M
On Wed, 14 Dec 2005 15:27:58 -0800, TY wrote: > So I guess then my next question is why does adding comma to print > statement cause buffering, but not when you don't have comma? Because of the line buffering. If you don't have a comma at the end, the print statement prints the numeric value and

Re: how to get select label?

2005-12-14 Thread Dan M
On Wed, 14 Dec 2005 13:56:24 -0800, lli wrote: > I build web application. So I use CGI. I need to show select text in > the html page. Now I can only display select value such as '001'. But I > need to display its text 'AAA'. > > LLI I'm a Python newbie, so by all means verify this answer with m

Newbie question - deleting records from anydbm database

2005-12-14 Thread Dan M
I've been Googling like a mad fiend and flipping through my hard-copy Python books, but still haven't located the one little bit of info I need. I've put together a simple SMTP-after-IMAP script that gets the authorized IP info from the mail log (I know, it's not elegant but it works). All works f

Self-awareness of imported modules? Do they know where they live?

2005-12-14 Thread Martin M.
Hi, I have the following question: How can an imported module see/find the path to itself? Background: From my main script I import a module which needs a file (AppleScript) located in the same directory as the imported module. What I do not want is to tell the module the location of the AppleScr

Re: Self-awareness of imported modules? Do they know where they live?

2005-12-15 Thread Martin M.
) results in: martin% python main.py /Volumes/CodeIsland/Projects/glashaus/glashaus0.1a/lib/being.pyc Now I can use os.path.split() to get the parent directory and os.path.join() to target my AppleScript file. Thanks again! Martin M. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question - deleting records from anydbm database

2005-12-15 Thread Dan M
>> Now how can I go about deleting that record when it's too old? >> > (untested) > > try > > del db[ipAddress] Yep, that did it. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: doubt on csv file

2005-12-15 Thread Dan M
> here is what am trying to do, first am trying to open it in a read > mode, and checking each row by row , if it is not found till my last > row, i want to append it to the last row , so how should i do that. > > file = open ('C:\some.csv','r') > reader = csv.reader(file) > for row in reader: >

Re: doubt on csv file

2005-12-15 Thread Dan M
On Thu, 15 Dec 2005 16:09:51 -0800, muttu2244 wrote: > hey thanks a lot for that it worked . Excellent! Glad to be of assistance :) -- http://mail.python.org/mailman/listinfo/python-list

Re: urlretrieve() questions

2005-12-23 Thread Dan M
> Pretty straight forward...but what I'm finding is if the > url is pointing to a file that is not there, the server > returns a file that's a web page displaying a 404 error. > > Anyone have any recommendations for handling this? You're right, that is NOT documented in a way that's easy to find

Re: MidiToText : EventDispatcher instance has no attribute 'sysex_events'

2006-01-01 Thread Max M
Try changing "def sysex_event(self, data):" in > ...\midi\EventDispatcher.py to "def sysex_events(self, data):" Or just do a search and replace on the whole package:: search: sysex_events( replace: sysex_event( Apparently I have been inconsistent in my naming. New version at: http://www.mxm.dk/products/public/pythonmidi/download -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Are there anybody using python as the script engine for ASP?

2006-01-05 Thread Max M
nPython would be worth trying out, though a bit premature. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft IronPython?

2006-01-06 Thread Max M
EP wrote: > Luis M. González wrote: > >> Will Microsoft hurt Python? >> > I think it is naive to ignore the fact that Microsoft could hurt Python, > though there may be nothing anyone can do. > >> How? > > - create a more prevalent version of "Py

Re: copying a file from windows file system to ext2 and ext3

2006-01-10 Thread Dan M
On Tue, 10 Jan 2006 15:59:01 -0800, muttu2244 wrote: > hi all > > could anybody please tell me how can i copy a file from windows file > systems like FAT12, FAT16,FAT32 and NTFS to EXT2, and EXT3. > Is their any function in python that we can do the above > > Thanks in advance > Yogi I'm sure m

Re: getaddrinfo not found on SCO OpenServer 5.0.5

2006-07-21 Thread Steve M
In case you haven't heard Microsoft is suing SCO for stealing his Internet concepts and letters and numbers, so you should probably just ditch OpenServer and get Debian like all the smart people have done. I guess the quality of SCO software has declined over the last forty or fifty years and they

Re: Unicode question

2006-07-28 Thread Steve M
Ben Edwards (lists) wrote: > I am using python 2.4 on Ubuntu dapper, I am working through Dive into > Python. > > There are a couple of inconsictencies. > > Firstly sys.setdefaultencoding('iso-8859-1') does not work, I have to do > sys.setdefaultencoding = 'iso-8859-1' When you run a Python script

Re: newb question: file searching

2006-08-08 Thread Steve M
[EMAIL PROTECTED] wrote: > I must ask, in the interest of learning, what is > > [file for file in files if file.endswith(extension)] > > actually doing? I know that 'file' is a type, but what's with the set > up and the brackets and all? Other people explained the list comprehension, but you m

Re: newb question: file searching

2006-08-08 Thread Steve M
[EMAIL PROTECTED] wrote: > Okay. This is almost solved. I just need to know how to have each > entry in my final list have the full path, not just the file name. from http://docs.python.org/lib/os-file-dir.html: walk() generates the file names in a directory tree, by walking the tree either top

Re: Class data being zapped by method

2006-08-08 Thread Kevin M
Figures. I'll try to complicate it sufficiently ;) [edit] I was going to try to sum up what goes on, but I realized that I was retyping what I already programmed in an effort to better illustrate exactly what I'm doing. Pastebin it is. Don't fear, it's only around 200 lines total. Class file --

Re: Class data being zapped by method

2006-08-08 Thread Kevin M
x27;ll try to take another > look at your code. Print statements and debuggers are your friends, > and John Machin's advice seems good to me. > > Peace, > ~Simon Thanks to John M's debugging code I was led to the source of my problems, or so it seems. I'll post a follow u

Re: Class data being zapped by method

2006-08-09 Thread Kevin M
Good news. I've fixed it up and all seems to be well. Thanks, all. I've learned a lot from this :) John Machin wrote: > Kevin M wrote: > > Inline > > > > > 1.) Why are you removing the .pyc file? > > > > After I had run the script once and subseq

Re: Two Classes In Two Files

2006-08-09 Thread Max M
__name__ == "__main__": > x = Two() > x.methodA() > x.methodB() > > When I run the Two.py file, I get the expected output but I'd like to > eliminate the from line in two.py. > -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory Management in python 2.5

2006-10-09 Thread Max M
could reuse it again later. From 2.5 onwards it should release most of the unused memory. However it doesn't use less memory. The peak memory usage should be the same as before. So for one-off programs that starts up and runs once, there should not be much gain. -- hilsen/re

Re: OT: Sarcasm and irony

2006-10-10 Thread Max M
"yes, that's what it means" Are you an american? Irony does mean that one says the opposite of what one really means. If you do it for humor its irony, if you do it for mocking it is sarcasm. So now I see... americans really *do* understand irony. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Sarcasm and irony

2006-10-10 Thread Max M
as such and not as sarcasm. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Forth versus Python: a case study

2006-10-13 Thread B M
i hang my head in shame. On 10/12/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 12/10/2006 17:44, [EMAIL PROTECTED] wrote: > > > > > > fun median { > > > > > var x = 0. > > > > > while( *p++) { > > > > > if( (*p) > x) x = *p. > > > > > } > > > > > return x. > > > > >

Restart a Python COM Server

2006-10-17 Thread m . errami
Hello all. I am desperately in need for you help guys. Here is the story: 1- I have created a small simple COM serve with python (along the lines read in Win32 Programming with python). 2- If I start the server and call a function from VBE everything works fine 3- I then want to modify the function

Re: Restart a Python COM Server

2006-10-18 Thread m . errami
OK, well thank you for your help (merci pour ton aide!) M.E. MC wrote: > Hi! > > It is the normal behavior of COM. > > Note that, Python being dynamic, you can modify Python script, OF THE > INTERIOR, during execution. > > -- > @-salutations > > Michel Claveau -- http://mail.python.org/mailm

Re: Restart a Python COM Server

2006-10-18 Thread m . errami
Alright. I kind of get the idea. But how do I do that? Anyway, it is more for development reason than anything else. It's not that big of a deal. But still it would be nice to have a solution... Thanx again M.E. [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > Hello all. > > I am desperate

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread Scott M.
Perhaps you should do your own work so you'll understand the concept and learn something? Also, widely posting your real (unaltered) email address in forums like this is a sure way to get noticed by spammers. Good luck. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm doing a

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Max M
y read html messages. In my experience the kind of user that receives emails with html and pictures often prefer it that way. So why bother with the lecture? I cannot remember when I have last received a relevant email that I could not read in text mode. -- hilsen/regards Max M, Denmark http://w

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Max M
Scott David Daniels wrote: > Max M wrote: > >> 90% of users are non-technical users who use standard email readers, >> that can easily read html messages. >> >> In my experience the kind of user that receives emails with html and >> pictures often prefer i

Re: John Bokma harassment

2006-05-30 Thread Max M
ke you should be spending time on MySpace OMG!. I assume that the single l in alright is the courteous misspelling that should allways be in a posting, when correcting other peoples speling? -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mo

Re: Best Python Editor

2006-05-31 Thread Max M
Manoj Kumar P wrote: > Hi, > > Can anyone tell me a good python editor/IDE? > It would be great if you can provide the download link also. pydev on top of eclipse is a nice tool. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94

Re: Variable name has a typo, but code still works. Why?

2006-05-31 Thread Max M
spelled > in the singular (session). > > Is there some type of name resolution of local variables where Python > makes assumptions? No. You are probably running your script in an ide that keeps an old variable hanging around. Try it from a command promt. -- hilsen/regards Max M,

Re: TSV to HTML

2006-05-31 Thread Dan M
> 1) in the code define a css > 2) use a regex to extract the info between tabs In place of this, you might want to look at http://effbot.org/librarybook/csv.htm Around the middle of that page you'll see how to use a delimiter other than a comma > 3) wrap the values in the appropriate tags and in

os.link makes a copy, not a link

2006-06-09 Thread Dan M
I'm a little bit confused. According to the sources I've looked at on the net, os.link('file1', 'file2') should make a hard link from file1 to file2. But what I'm finding is that it's actually making a copy. Am I forgetting a step or something? Python 2.3.4 running on CentOS 4.3 -- http://m

Re: convert .pdf files to .txt files

2006-06-10 Thread Baiju M
o text from Python use system call. For example: import os os.system("pdftotext -layout my_pdf_file.pdf") This will create 'my_pdf_file.txt' file. Regards, Baiju M -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is fun (useless social thread) ;-)

2006-06-19 Thread Max M
ifferent in use than current version. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is fun (useless social thread) ;-)

2006-06-20 Thread Max M
bruno at modulix wrote: > Max M wrote: >> bruno at modulix wrote: >> >>>> Or did you just like what you saw and decided to learn it for fun? >>> >>> Well, I haven't be really impressed the first time - note that it was at >>> the very e

Re: A game idea.

2006-06-27 Thread Max M
ill have to do it yourself. I am not trying to be negative, but I will bet you that every competent programmer on the list has 1+ project that she would love to do, if she just had the time. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 M

Re: iterate over a series of nodes in an XML file

2006-07-05 Thread Steve M
I see you've had success with elementtree, but in case you are still thinking about SAX, here is an approach that might interest you. The idea is basically to turn your program inside-out by writing a standalone function to process one myID node. This function has nothing to do with SAX or parsing

Re: The lib email parse problem...

2006-08-29 Thread Max M
叮叮当当 wrote: > this is not enough. > > when a part is mulitpart/alternative, i must find out which sub part i > need, not all the subparts. so i must know when the alternative is > ended. Have you tried the email module at all? -- hilsen/regards Max M, Denmark http://www.m

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Steve M
> [Dermot Doran] > > | I'm very new to using win32com! I just want to send an email > | message via Outlook. However, I keep getting an annoying > | message box (generated by Outlook) indicating that my program > | could be a virus. Does anybody know how to get around this? The users in our of

Re: sending emails using python

2006-09-07 Thread Max M
can lead you into so many traps. Especially if you are using international characters in you messages. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with email.Generator.Generator

2006-09-12 Thread Max M
possible to use a unicode string as a message. The charset passed in set_payload(pl ,charset) is the charset the the string *is* encoded in. Not the charset it *should* be encoded in. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with email.Generator.Generator

2006-09-12 Thread Max M
Chris Withers wrote: > Max M wrote: >> From the docs: >> >> """ >> The payload is either a string in the case of simple message objects >> or a list of Message objects for MIME container documents (e.g. >> multipart/* and message/rfc822) &g

How to close the DOS Shell when starting a python script

2006-09-22 Thread m . errami
Hello all. I know the question will seem stupid but googling it gives me only stuff I don't care about. So the question is the following: When I start a python script containing a wxApp under windows XP, I double click , my program opens and a background DOS shell also opens. Is there any way to pr

Re: A critique of cgi.escape

2006-09-25 Thread Max M
pper and use that instead. my_escape = lambda st: cgi.escape(st, 1) So. Lawrence is happy, and the escape works as expected. Several man years has been saved. Max M -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-25 Thread Max M
stuff. If you cannot think of other examples for yourself where your change would introduce breakage, you are certainly not an experienced enough programmer to suggest changes in the standard lib! Max M -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-25 Thread Max M
content = f.read() f.close() return '"%s"' % someword in content: You might think that it is stupid code that should be changed to take escaped quotes into account. But that is really not your bussines to decide if the other behaviour is documented and correct.

Re: How to close the DOS Shell when starting a python script

2006-09-25 Thread m . errami
Wildemar Wildenburger wrote: > Paddy wrote: > > Rename the .py file with extension .pyw. > > - Paddy. > > > To elaborate: This works because, by default, .py files are associated > with python.exe and .pyw files are associated with pythonw.exe, the > latter not opening a console window. > You can

<    1   2   3   4   5   6   7   8   9   10   >