Remote Work Wanted - Junior Python Developer

2019-09-22 Thread Shane Thomas
consuming hurdles. As far as money goes, I am open to reasonable offers. cheers Shane -- https://mail.python.org/mailman/listinfo/python-list

Python Remote Work

2019-04-01 Thread Shane
developer with too much work on his/her plate that wants some paid help and is willing to point me in the right direction. cheers Shane -- https://mail.python.org/mailman/listinfo/python-list

Re: Separate Address number and name

2014-01-21 Thread Shane Konings
inHandler = open(inFile, 'r') outHandler = open(outFile, 'w') outHandler.write('ID\tAddress\tStreetNum&Name\tSufType\tDir\tCity\tProvince\tPostalCode\n') for line in inHandler: str = line.replace('FarmID\tAddress','') outHandler.write(str[0:-1]) str = str.replace(', ON', '\t ON\t')

Re: Separate Address number and name

2014-01-21 Thread Shane Konings
> I don't have any code to split that part up. There is other information > following the street name such as street suffix, city, province, postal code, > etc. I have been able to split the rest of it up based on certain criteria > but have had no luck with splitting up the street name from th

Separate Address number and name

2014-01-21 Thread Shane Konings
I have the following sample from a data set and I am looking to split the address number and name into separate headings as seen below. FarmID Address 1 1067 Niagara Stone 2 4260 Mountainview 3 25 Hunter 4 1091 Hutchinson 5 5172 Green Lane 6 500 Glenridge 7

Re: [Python-ideas] Message passing syntax for objects

2013-03-18 Thread Shane Green
So, by introducing this collaboration mechanism with a syntax that defines it as sending and receiving things that are *not* arbitrary objects, the language would naturally reinforce a more thoroughly decoupled architecture? Sent from my iPad On Mar 17, 2013, at 8:53 PM, Mark Janssen wrote:

Help with MultipartPostHandler

2012-03-07 Thread Shane Neeley
Hi Python Google Group! I hope someone could help me and then one day when I am good I can contribute to the forum as well. Does anyone know what is wrong with my syntax here as I am trying to submit this form using MultipartPostHandler that I installed? import MultipartPostHandler, urllib2 p

Python site-packages permission denied?

2012-03-07 Thread Shane Neeley
What do I need to do to successfully install a package onto python so that I can use it as a module? I have tried in terminal in the correct directory "python2.7 ./setup.py install" but it says permission denied. Shanes-MacBook-Pro:seisen-urllib2_file-cf4c4c8 chimpsarehungry$ python2.7.1 ./se

non-standard module location (again)

2011-10-21 Thread Shane
Need to refine a question I asked earlier. If I have a module, |-- foo |---| |---|---bar |---|---| |---|---|---__init__.py then I can say import foo.bar But suppose I want to import foo.bar.stuff and stuff isn't located on under `bar' because it's user supplied code: |-

Re: define module in non-standard location?

2011-10-17 Thread Shane
On Oct 16, 11:55 pm, Steven D'Aprano wrote: > On Sun, 16 Oct 2011 19:43:20 -0700, Shane wrote: > > Normally if one has a code set under a directory "top_level" like this: > > > top_level: > >    __main__.py > >    a > >       __init__.py &

define module in non-standard location?

2011-10-17 Thread Shane
Normally if one has a code set under a directory "top_level" like this: top_level: __main__.py a __init__.py b __init__.py then this directory structure is naturally satisfies this line in __main__.py: >import a.b But support, for some stupid reason --- say a.b is use

type vs. module (part2)

2011-10-17 Thread Shane
In the following t,t1 are the result of built-in call type() -- the form that takes three arguments. Therefore they are classes. Consider the following output: print type(t) > print id(t) >1234567 print t.__module__ >a.b.t.d print type(t1) > print id(t1) >1234568 print t1.__module__ >a.b.t.d I n

re: type(), modules: clarification please

2011-10-15 Thread Shane
Hi, When one writes, > className='Employee' > baseClasses = ... > dictionary = { ... } > newClass = type( className, , dictionary) in what module does newClass belong? If it's the current module what code do I run to print out the name of that module in a.b.c... form? Related: If I want to make

Re: Some objects missing from tkinter

2010-04-26 Thread Shane
On Apr 26, 11:58 am, Lie Ryan wrote: > On 04/27/10 03:50, Peter Otten wrote: > > > It is a bit unfortunate that your editor has side effects on your program, > > and I recommend that you never trust the result of importing a module from > > within idle's shell completely. > > In fact, never trust

Some objects missing from tkinter

2010-04-26 Thread Shane
I'm new to Python, so I'll try to be clear about my problem. I'm using Python 3.1 (latest stable version from python.org) on Windows 7. I have a program using tkinter for UI, and it works properly from both pything GUI shell, and running from command prompt, EXCEPT that I have a menu command to in

How to dynamic insert more conditional statements into a function

2010-03-09 Thread Shane
Hi I am a newbie for Python Here is a question, say I have a list L, function foo is: def foo(L): if L[0] > 0: return True if later I want another function goo which returns "True" when L[0] and L[1] are both > 0, i.e., def goo(L): if L[0] > 0 and L[1] > 0: return True Can anybody tel

Web Service Using XML for input and output

2010-02-15 Thread Shane McIntyre
I'm attempting to use a web service that takes XML as an input and returns an XML output.  I can connect to the service and attempt to pass in the XML but do not get any results. I believe my problem is how to package up the XML and send it in the request.  The XML consists of about 20 tag/value

Re: list comprehension question

2009-05-01 Thread Shane Geiger
is). What you're trying to do is difficult if not impossible to do as a comprehension. Here's another approach: b = list(itertools.chain.from_iterable(a)) And without using a library function: b = [] for pair in a: for item in pair: b.append(item) Cheers, Chris

WSE 3 with Python (Newbie)

2009-03-11 Thread Shane Bignell
following: ACTION ADDRESS MESSAGE ID ASMX ADDRESS USERNAME PASSWORD 2009-02-14T16:14:00Z 2010-01-01T12:00:00Z I am not getting a valid response back. Any ideas what I may be doing wrong? Kind Regards Shane Bignell Spotlight Interactive Planning for Financial

Re: How to create Standalone PYC File

2009-03-04 Thread Shane Geiger
independent , something called embedded into one file only ? thank you in anticipation . Rohan. -- http://mail.python.org/mailman/listinfo/python-list -- Shane Geiger, IT Director Council For Economic Education

Re: OTish: convince the team to drop VBScript

2009-02-28 Thread Shane Geiger
modules is easier than upgrading most other language's libraries[citation needed]. -- http://mail.python.org/mailman/listinfo/python-list -- Shane Geiger, IT Director Council For Economic Education / www.councilforeconed.org sgei...@councilforeconed.org / 402-438-8958 Teaching Opportunity -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Program

2009-02-28 Thread Shane Geiger
#x27;s language, as it makes many of the annoying things about programs non-issues. -- Shane Geiger, IT Director Council For Economic Education / www.councilforeconed.org sgei...@councilforeconed.org / 402-438-8958 Teaching Opportunity -- http://mail.python.org/mailman/listinfo/python-list

Re: Capture Keystrokes from a USB Wireless Keyboard.

2009-02-27 Thread Shane Geiger
http://mail.python.org/mailman/listinfo/python-list -- Shane Geiger, IT Director Council For Economic Education / www.councilforeconed.org sgei...@councilforeconed.org / 402-438-8958 Teaching Opportunity -- http://mail.python.org/mailman/listinfo/python-list

Re: Flattening lists

2009-02-05 Thread Shane Geiger
else: res.append(el) return res Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list -- Shane Geiger, IT Director Council For Economic Education / www.councilforeconed.org sgei...@councilforeconed.org / 402-438-8958 Teaching Opportunity -- http://mail.python.org/mailman/listinfo/python-list

parallel and/or synchronous start/run/stop on multiple boxes

2009-01-07 Thread Shane
opies of the code running on different boxes with synchrounous (maybe asychronous) communication. Shane -- http://mail.python.org/mailman/listinfo/python-list

Re: Text parsing via regex

2008-12-08 Thread Shane Geiger
ng: mag = len(string) upper_lim = mag/50 + 1 But i'm not sure how to declare and set them to my parsed strings. Now problem #1 isn't as pressing, i can technically get away with cutting up the words, i'd just prefer not to. The most pressing problem right now is #2. Any help, or sugg

Re: generating a liste of characters

2008-12-03 Thread Shane Geiger
tp://mail.python.org/mailman/listinfo/python-list -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: hw to program on python

2008-04-15 Thread Shane Geiger
om/2008/04/developers-start-your-engines.html http://googleappengine.blogspot.com/2008/04/introducing-google-app-engine-our-new.html Shane Diez B. Roggisch wrote: > ashish wrote: > > >> hi , >> python experts i want some help from u people just mail me how to >> write sc

Trouble with list comprehension

2008-04-09 Thread Shane Lillie
I've got a bit of code that looks like this: for i in xrange(1000): # shuffle the doors doors = [ 'G', 'C', 'G' ] random.shuffle(doors) # save the doors that have goats (by index) goats = [ x for x in range(2) if doors[x] == 'G' ] but for some reason the list comprehension is

Re: Converting a tuple to a list

2008-04-08 Thread Shane Geiger
; --- > > Any idea ? > > Thanks ... > > # Gabriel > > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking processes running under Windows

2008-03-27 Thread Shane Geiger
Windows (XP Pro, Home, whatever). The > method I'm using is: > > >>> process_list = os.popen('TASKLIST').read() > > However, XP Home doesn't have the tasklist.exe tool so, this is kind > of useless in that OS. Do you have any other methods I can use for

Re: Thousand Seperator

2008-03-14 Thread Shane Geiger
r =~ s/(\d\d\d)(?=\d)(?!d*\.)/$1,/g; >>return scalar reverse $number; >> } >> > > >> But I cannot find how to do this in Python. >> > > Look at the locale module. If you're producing the numbers yourself then they > get pri

Re: Monitoring SSHd and web servers?

2008-03-14 Thread Shane Geiger
gt; > What you monitor is up to you. At a basic level, you can see if the > server is accepting connections. At a higher level, see if you can get > a page or see if you can login as a specific person. At a higher > level, you may want to check what is on the page or what happens when >

Re: List Combinations

2008-03-12 Thread Shane Geiger
end(l) > > #now list is [3,9,1,5,4,2,8] > > list.sort() > > #now your list is in sorted order > > Then, you can just write a series of for loops to spin off your data > however you like. > > def gen(lists): out = '[' + ','.join(["v%s"

Re: How to factor using Python?

2008-03-11 Thread Shane Geiger
a good start to create your gamma function: > http://en.wikipedia.org/wiki/Factorial > http://en.wikipedia.org/wiki/Gamma_function > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economi

Re: image matching algorithms

2008-03-10 Thread Shane Geiger
#tmp = tempfile.mktemp() print commands.getoutput('/Applications/wacaw --png ' + current ) # ' + tmp +'.png') # Here's the actual name of the file wacaw created: current = '/Applications/'+current+'.png'

Re: for-else

2008-03-04 Thread Shane Geiger
oves bearophiles point, for-else is really >> tricky. >> > > Ah ha, but that would have been a mistake with or without the else > clause > > > Carl Banks > This approach works well for me: def foo0(): print 'foo0' def bar0(): print 'bar0&#

Re: smtplib & gnupg

2008-02-20 Thread Shane Geiger
oes anyone have some sample code? > > Regards > Bernd > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Shane Geiger
se them from python instead of from C#. > > Thanks, > Huayang > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Shane Geiger
ather's name is Gene, and he's expressed software wants > that I've implemented in Python...so yes, I guess I've done some > Gene Expression Programming... > > ;-P > > -tkc > > > -- Shane Geiger IT Director National Council on Economic Education [EM

Re: Is there some Python function that searches "sys.path" for a module?

2008-01-14 Thread Shane Geiger
Also, it seems that the environment variable "PYTHONPATH" applies to > "import", but not to the starting module named on the Python command > line. Is that correct? Thanks. > > John Nagle > -- Shane Geiger IT Director National Counci

Re: Recieving emails in python

2008-01-13 Thread Shane Geiger
st = 'foo.com' account = 'jennyjenny' password = '8675309' import getpass, poplib M = poplib.POP3(host) #M.user(getpass.getuser()) #M.pass_(getpass.getpass()) M.user(account) M.pass_(password) numMessages = len(M.list()[1]) for i in range(numMessages): for j in M.ret

Re: what does **kw mean?

2008-01-11 Thread Shane Geiger
Does this help? def foobar(first_name,last_name, *args, **kwargs): print first_name print last_name print "Tuple:",args print "Dict:",kwargs x = "has" y = "demonstrated" foobar('Shane','Geiger', x, y, adjective='us

Re: getting n items at a time from a generator

2008-01-10 Thread Shane Geiger
ealize this might be more controversial and might have been avoided on purpose, but I wasn't around for that discussion.) >>> sentence = 'this is a senTence WiTH' >>> generator = (word.capitalize() for word in sentence.split()) >>> while a,b,c = generator.

Re: linecache and glob

2008-01-03 Thread Shane Geiger
; > >>>> import linecache >>>> linecache.getline(glob.glob('/etc/*', 4) >>>> > > doens't work > > is there any better methods??? thank you very much in advance > > jo3c > -- Shane Geiger IT Director Nati

SVGDraw is where?

2008-01-01 Thread Shane Geiger
Does someone know where SVGDraw has gone? It used to be here: http://www2.sfk.nl/svg/ Googling hasn't helped me locate it. :-\ -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economi

Re: how to connect to a remote machine using python........

2007-12-30 Thread Shane Geiger
x27;) return "\n".join(msg) def copyfile(self, source, outputfile): shutil.copyfileobj(source, outputfile) def main(HandlerClass = MyHTTPRequestHandler, ServerClass = BaseHTTPServer.HTTPServer): BaseHTTPServer.test(HandlerClass, ServerClass) if __name__ == '__main__': main() vinoj davis wrote: > hi all, > i am new to python, can anyone tell me how can i connect to > a remote machine using python and execute commands. > > Thanking you.. > > Regards, > > ---ViNOJ DAViS--- > > > > Chat on a cool, new interface. No download required. Click here. > <http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yahoo.com/webmessengerpromo.php> -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding tempfile.TemporaryFile

2007-12-27 Thread Shane Geiger
t; > > >>>> import os >>>> os.remove(tmp) >>>> > Traceback (most recent call last): > File "", line 1, in > OSError: [Errno 2] No such file or directory: '/tmp/tmpZkS0Gj' > > > > > You mi

Re: Understanding tempfile.TemporaryFile

2007-12-27 Thread Shane Geiger
> >>>> x.write("1234") >>>> print len(x.read()) >>>> > 0 > >>>> x.flush() >>>> print len(x.read()) >>>> > 0 > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic DNS with a python script

2007-12-27 Thread Shane Geiger
MAIL PROTECTED]:/nu/mine/myothername$ sudo crontab -l 15 10 * * * /usr/sbin/ipcheck.py -l -r checkip.dyndns.org:8245 shanerg asdfasdf sgeiger.mine.nu,sgeigerbot.mine.nu,myothername.mine.nu --acctfile /root/ipcheck.dat [EMAIL PROTECTED]:/nu/mine/myothername$ -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: getting n items at a time from a generator

2007-12-27 Thread Shane Geiger
going to take a look at itertools. I prefer the >> Kugutsumen> list version since I need to buffer that chunk in memory at >> Kugutsumen> this point. >> >> Also consider this solution from O'Reilly's Python Cookbook (2nd Ed.) p705 >> >> def chop(iterable, length=2): >> return izip(*(iter(iterable),) * length) >> >> Terry >> > > >> [snip code] >> >> Try this instead: >> >> import itertools >> >> def chunk(iterator, size): >> # I prefer the argument order to be the reverse of yours. >> while True: >> chunk = list(itertools.islice(iterator, size)) >> if chunk: yield chunk >> else: break >> >> > > Steven, I really like your version since I've managed to understand it > in one pass. > Paul's version works but is too obscure to read for me :) > > Thanks a lot again. > > > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem untaring python2.5

2007-12-20 Thread Shane Geiger
ence, AIXtarmay fail) >> - Is your disk full or do you have the correct permissions with your >> current user? >> >> ++ >> >> Sam >> > > Hi Sam , > I am using windows server 2003, python2.5.1 and version 1.16 of tar > > and as per

Re: How to generate pdf file from an html page??

2007-12-16 Thread Shane Geiger
this using python. If yes then > which library and functions are required and if no then reasons why it > cant be done. > > Thank you All > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading

Re: Finding overlapping times...

2007-12-13 Thread Shane Geiger
ich of these overlap each > other. So, in this case, tuple 1 overlaps with tuples 2 and 3. Tuple > 2 overlaps with 1. Tuple 3 overlaps with tuple 1. > > In my scenario I would have hundreds, if not thousands of these > ranges. Any nice pythonic way to do this? > > Thanks. &g

Re: Is anyone happy with csv module?

2007-12-12 Thread Shane Geiger
= ['cat','num','name','blank1','blank2','company','phone1','phone2', \ 'phone3','phone4','email','addr1','city','state','zip','blank3

Re: Loading an exe icon into a pixmap/bitmap

2007-12-11 Thread Shane Geiger
have to > convert over to that. Any help is appreciated. Thanks > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy -- http://mail.python.org/mailman/listinfo/python-list

Re: finding dir of main .py file

2007-12-11 Thread Shane Geiger
image2 >> etc. >> > > I just put the reference in my module. Don't hard code an absolute > path, use the environment tools. > > app_path = os.getenv('HOME') + "/your_sub_dir" > > resources_path = os.getenv('HOME&#

Re: Calculate an age

2007-12-08 Thread Shane Geiger
If you are just asking those questions for people living now (and are > not called Connor McLeod ;-) and the gregorian calender it's easy but > providing functions in the standard library for arbitrary date calculation > involving years is not so easy. > > Ciao, > Marc

Re: [NEWB] Dictionary instantiation?

2007-12-07 Thread Shane Geiger
csv_list: > author_name = row[-1] > if author_name == '': #Find entries where no author is listed > csv_list.remove(row) #Remove those entries from the list > > def assign_author_to_title(): #Assign an author to every title > author_of_title = {} > for row in csv_file: > title = row[3] > author = row[-1] > author_of_title[title] = author > > > assign_author_to_title() > print author_of_title > > -- > > Ok, the last two lines are kind of my "test the last function" test. > Now when I run these two lines I get the error: > > Traceback (most recent call last): > File "D:\Python25\Lib\SITE-P~1\PYTHON~1\pywin\framework > \scriptutils.py", line 310, in RunScript > exec codeObject in __main__.__dict__ > File "D:\Python25\csv_read.py", line 33, in > print author_of_title > NameError: name 'author_of_title' is not defined > > I am guessing that the author_of_title dict does not exist outside of > the function in which it is created? The concept of instantiation is > sort of foreign to me so I'm having some trouble predicting when it > happens. > > If I call the assign_author_to_title function later, am I going to be > able to work with the author_of_title dictionary? Or is it best if I > create author_of_title outside of my function definitions? > > Clearly I'm just stepping through my thought process right now, > creating functions as I see a need for them. I'm sure the code is > sloppy and terrible but please be gentle! > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: which configparse?

2007-12-06 Thread Shane Geiger
e cmdline parsing with ini > file parsing code) > > I've looked at configparse, cfgparse, iniparse. > > configparse looks like what I want, but it seems last commit was >2years > ago. > > What is the best choice? > > -- Shane Geiger IT Director National Co

Re: Standalone USB Web Server and Python Interpeter

2007-12-05 Thread Shane Geiger
html",index2_html) os.system('chmod 755 ' + DOCUMENT_ROOT+"/index2.html") try: os.remove('/tmp/web') # this path is OS-dependent os.symlink(DOCUMENT_ROOT, '/tmp/web') print "Created symlink /tmp/web" except: pass import os

Re: Tool for translating Matlab to Python?

2007-12-04 Thread Shane Geiger
/using_matlab_from_python.html Calling Matlab from Python Rolf Wester wrote: > Hi, > > is there a tool to automatically translate Matlab source to Python/numpy > code? > > Regards > > Rolf > -- Shane Geiger IT Director National Council on Economic Education [EMAIL

Die, thread! Die! (Was Re: "Python" is not a good name)

2007-12-04 Thread Shane Geiger
http://montypython.tribe.net/thread/fd519910-25e3-4102-b898-8815d6ece32a > > http://www.flickr.com/photos/kirstywombat/1862165664/ > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Ec

audiodev problem

2007-12-02 Thread Shane Geiger
print str(i) + " COMPLETED" # debug data = sound.readframes(bytes_per_second) if not data: break #print data # debug player.writeframes(data) # this line is causing this problem with every .aiff file I try: i += 1 #import sys; sys.exit() player.wait()

Re: Outbound HTML Authentication

2007-11-29 Thread Shane Geiger
ver I'm not sure how to tell the request that I'm building in my > python script to either use the info in my AD account or enter in my > user/pass automatically. > > Anyone know how to do this? > > Thanks > -- Shane Geiger IT Director National Council on Economic

Re: Lib for audio?

2007-11-29 Thread Shane Geiger
This should do the trick: http://www.libsdl.org/ Dave wrote: > I need to read microphone input and determine frequency. Is there a lib > for that? > > Thanks, > Dave > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402

Re: Rss Feed Creator

2007-11-26 Thread Shane Geiger
I think this is what you need to make the output readable: tidy -asxml output.xml James Matthews wrote: > Thank You Shane, > > However that is using PyRss2Gen which doesn't put newlines in the XML. > So it's a little out of the picture! > On Nov 27, 2007 1:57

Re: Rss Feed Creator

2007-11-26 Thread Shane Geiger
ames > > > -- > http://search.goldwatches.com/?Search=Movado+Watches > http://www.goldwatches.com/coupons > http://www.jewelerslounge.com -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Ec

Re: Add speller to Python application

2007-11-26 Thread Shane Geiger
http://pyenchant.sourceforge.net/ helzer wrote: > I need to add spell checking to my Python application (for Windows). > Any ideas on where to start? > > Thanks, > Helzer > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402

RE: Getting name of control under mouse in Windows?

2007-11-20 Thread Shane Clark
om: [EMAIL PROTECTED] > > Subject: Re: Getting name of control under mouse in Windows? > > Date: Mon, 19 Nov 2007 03:33:24 -0300 > > > > En Sun, 18 Nov 2007 21:10:18 -0300, Shane Clark > > escribió: > > > >>> From: [EMAIL PROTECTED] > >>

RE: Getting name of control under mouse in Windows?

2007-11-19 Thread Shane Clark
> To: python-list@python.org > From: [EMAIL PROTECTED] > Subject: Re: Getting name of control under mouse in Windows? > Date: Mon, 19 Nov 2007 03:33:24 -0300 > > En Sun, 18 Nov 2007 21:10:18 -0300, Shane Clark > escribió: > &g

RE: Getting name of control under mouse in Windows?

2007-11-18 Thread Shane Clark
> To: python-list@python.org > From: [EMAIL PROTECTED] > Subject: Re: Getting name of control under mouse in Windows? > Date: Sun, 18 Nov 2007 13:32:54 -0300 > > En Fri, 16 Nov 2007 16:16:25 -0300, Shane Clark > escribi�: >

Getting name of control under mouse in Windows?

2007-11-17 Thread Shane Clark
s was the wrong place to ask for help, but I did not find a more pertinent mailing list. Thanks, -Shane _ Climb to the top of the charts!  Play Star Shuffle:  the word scramble challenge with star power. http://club.live.com/star_sh

Re: Creating Installer or Executable in Python

2007-11-14 Thread Shane Geiger
> > I was wondering how can I make an executable or some kind of > installer, so that end user doesn't need to compile and worry if he/ > she has Python installed or not ? > > Every help is greatly appreciated. > > Thanks, > > -- Shane Geiger IT Director N

Re: why there is no pythonscript insine web browsers?

2007-11-13 Thread Shane Geiger
ter core. > Might need to do nasty things to the low-level import mechanism so that > villains can't rig a web site to contain an import module with ability > to access the local file system. > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED

Re: 911 was a hoax!

2007-11-12 Thread Shane Geiger
lso don't condone tirades based on myths. Please verify for yourself that some problems exist. -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy begin:vcar

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Shane Geiger
t; 'Decimal' is about as short as I'd want. >> > > You don't like str, int, float, list, set, dict, or bool? > > Or for that matter, enum > http://www.python.org/dev/peps/pep-0354/ > > *wink* > > > -- Shane Geiger IT Director Na

Re: How to best send email to a low volume list?

2007-10-24 Thread Shane Geiger
>> Chris >> >> > > Before you reinvent the wheel, you should look into using a mailing list > manager, Mailman for example: > > http://www.gnu.org/software/mailman/index.html > > Regardless, confirmed double-opt-in should be a requirement as should a >

Re: calling a function from string

2007-10-22 Thread Shane Geiger
ng first that could equivalent to the > name of the function I wish to call. how could I do that? the string > could might include name of the module. > > for example > > a_string = 'datetime.' + 'today()' > > how could I call a_string as function? > &g

Re: Pull Last 3 Months

2007-10-17 Thread Shane Geiger
last_months(3)) >for month in last_months(24): print month > > The alternative would likely be to do something like subtract one > from the current month, and if it drops below 1, decrement the > year and reset the month to 12. Equally fuzzy: > >def lastN(months

Re: confused on calculating date difference in days.

2007-10-16 Thread Shane Geiger
6/10/2007" into a date object which I can then compare with the > current date created by datetime.now(). > is that right? > if yes then please explain me how I can get the delta object to give > me results in days. > regards, > Krishnakant. > -- Shane Geiger IT Di

Re: Building a Python app with Mozilla

2007-07-05 Thread Shane Geiger
ible with Qt also. > So, perhaps (which I don't know) Aqua buttons simply don't permit > absolute stuff ? > Or the Aqua programmers read the user interface guidelines carefully ? > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-

Re: Off Topic: What is the good book to learn Python ?

2007-05-30 Thread Shane Geiger
"for dummies" or "in x (hours/days)" books. They can be decent introductory material, but unless you are really really new to programming, you probably wouldn't be getting enough information to justify the cost of the book (and a lot of times they have a lot of bad pra

Re: Creating a distro of python... What would you include in it?

2007-05-30 Thread Shane Geiger
jango and PyGame. Something you could point a newbie to and they would be able to create "real" applications with, without needing to download hundreds of dependencies. -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http:/

Re: A best approach to a creating specified http post body

2007-05-18 Thread Shane Geiger
text files is not possible. I'm not completely understanding your problems here. Can you explain why urllib.urlencode wouldn't work? (http://docs.python.org/lib/module-urllib.html) Thanks, -Dave -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTE

Watch Television online for free.

2007-05-17 Thread shane . buggins41
Watch television online now for free. Includes television channels from all over the world and sport events from all over the world including, NBA, Soccer, Motor Racing and much more. http://homepage.ntlworld.com/louise.randall41 -- http://mail.python.org/mailman/listinfo/python-list

ipython environment question

2007-05-08 Thread Shane Geiger
t_name if __name__ == '__main__': sys.argv.append('-cl') from IPython.Shell import IPShellEmbed ipshell = IPShellEmbed() print "Please set these variables: project_name, group_name ...and then type create()" ### I even tried to put all my ipshell() #

Re: wtf

2007-04-26 Thread Shane Hathaway
Sergiy wrote: > print 1 / 2 > print -1 / 2 > > 0 > -1 > > correct? Yes. It works like the floor() function. >>> import math >>> math.floor(1.0 / 2) 0.0 >>> math.floor(-1.0 / 2) -1.0 Shane -- http://mail.python.org/mailman/listinfo/python-list

Re: script for seconds in given month?

2007-04-16 Thread Shane Geiger
sInMonth(year, month): Matt> s1 = mktime((year,month,1,0,0,0,0,0,-1)) Matt> s2 = mktime((year,month+1,1,0,0,0,0,0,-1)) Matt> return s2-s1 Probably won't work if month==12. ;-) Skip -- Shane Geiger IT Director National Council on Economic Education [EM

Re: Newbie help with array handling

2007-04-12 Thread Shane Geiger
11', 'value12', 'value13'], 'keyvalue3': ['value31', 'value32', 'value33'], 'keyvalue2': ['value21', 'value22', 'value23']} do something like this {keyvalue1:[ value1, value2, va

Re: bittorent

2007-04-11 Thread Shane Geiger
can spend more time finding cool files to share and making funny user pictures. It's kind of like myspace really, except it's not broken every other day. (Well, let's hope.) -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958

Re: How can I import functions from another python file

2007-04-09 Thread Shane Geiger
st): File "", line 1, in ? ImportError: No module named amod import sys sys.path.append('otherdir') import amod amod.afunc() 'found' -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.n

Re: How can i compare a string which is non null and empty

2007-04-01 Thread Shane Geiger
ED]> wrote: how can i compare a string which is non null and empty? [...] In java,I do this: if (str != null) && (!str.equals("")) how can i do that in python? If you want to litterally do that, it's if (str != None) and (str != ""):

Re: Measureing memory used by a subprocess

2007-04-01 Thread Shane Geiger
t, see the recipe http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303339 But I don't see any obvious way to get the process id of the spawned subprocess. - Andrew -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee

Re: [Python-Dev] Python 3000 PEP: Postfix type declarations

2007-04-01 Thread Shane Geiger
OMG, I was starting to reconsider Ruby. Maël Benjamin Mettler wrote: Is this supposed to be a joke? First of April? Likely. -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for

Re: clean up html document created by Word

2007-03-30 Thread Shane Geiger
dant 'cruft' that Word puts in there, rather than making valid HTML out of invalid HTML. Again, IIUC, HTMLtidy does not do this. If Beautiful Soup does, then I'm intererested! jon N -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] |

Re: A nice way to use regex for complicate parsing

2007-03-29 Thread Shane Geiger
ing']=RN('quoted_string', r'"%(qtext)s"' % regex) # ::= | regex['local_part']=RN('local_part', r'%(quoted_string)s|% (dot_string)s' % regex) # ::= "@" regex['mailbox']=RN('mailbox', r'

Re: Auto execute python in USB flash disk

2007-03-27 Thread Shane Geiger
'sandboxes' for testing programs. It is also an ideal launcher for IronPython. -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy begin:vcard fn:Shane Gei

Re: enumerating processes

2007-03-27 Thread Shane Geiger
nows how to enumerate the current running processes , or how to obtain a specific process by its name or process id. I know I can do this in many programming languages , but how in python? any one know? Thanks for any guidance. -- li xianmin [EMAIL PROTECTED] <mailto:[EMAIL PROT

Re: enumerating processes

2007-03-26 Thread Shane Geiger
any guidance. -- li xianmin [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.net Leading the Campaign for Economic and Financial Literacy begin:vcard fn:Shane

  1   2   >