Re: Help With Hiring Python Developers

2004-12-01 Thread Bill McClain
On 2004-12-01, fuego [EMAIL PROTECTED] wrote: My company (http://primedia.com/divisions/businessinformation/) has two job openings that we're having a heckuva time filling. Allow offsite workers and you'll have all the candidates you want. -Bill -- Sattre Press

freetype2 bindings?

2004-12-03 Thread Bill McClain
I have googled for Python bindings for freetype2 and have not found any recent projects. The freetype page references this at Sourceforge: http://www.sourceforge.net/projects/pyft2 ...but it is nonexistent. Nothing else at Sourceforge for python + freetype. I will wrap the api myself (my

Re: Back to the future - python to C++ advice wanted

2005-06-17 Thread Bill McClain
On 2005-06-17, George Sakkis [EMAIL PROTECTED] wrote: So, I wonder what have others who have gone the same path done and learned in similar situations. How one can avoid the frustration of having to work with a low level language once he has seen the Light ? This project:

Re: Code not work - DESPERATE HELP :(

2008-10-30 Thread Bill McClain
On 2008-10-30, fx5900 [EMAIL PROTECTED] wrote: Hi, i am trying to convert an .osm (openstreetmap) file into gml format and finally to shapefile given this wiki info http://wiki.openstreetmap.org/index.php/GML. I'm using windows and when i entered the following commands osm2gml.py

Re: Code not work - DESPERATE HELP :(

2008-10-30 Thread Bill McClain
On 2008-10-30, fx5900 [EMAIL PROTECTED] wrote: I just went to go and get a coffee when i noticed a email, thought it was just usual spam. Read your message, and it worked. it was because i did not put they 'python' keyword infront. How did u figure it out? It is some problem with the DOS

Windows DOS box redirection (was: Code not work - DESPERATE HELP)

2008-10-31 Thread Bill McClain
On 2008-10-31, Glenn Linderman [EMAIL PROTECTED] wrote: The problem with stdin/stdout is on Windows 2000 (and maybe the earlier NT?). But not on XP or AFAIK Vista. It only occurs when a program is executed indirectly using the file associations instead of directly via the command line.

Re: Windows DOS box redirection

2008-10-31 Thread Bill McClain
On 2008-10-31, Tim Golden [EMAIL PROTECTED] wrote: You've got a few options. Ok, thanks! It is a small hobbyist community. I'll just document it and tell them life is hard for Windows users. -Bill -- Sattre PressThe King in Yellow http://sattre-press.com/

Re: Windows DOS box redirection

2008-10-31 Thread Bill McClain
On 2008-10-31, Stef Mientki [EMAIL PROTECTED] wrote: Well I don't know any Windows users that still use DOS-boxes ;-) cheers, What do they do when they want to run a cross-platform command-line script with parameters and redirection? I suppose they could install cygwin and run bash, but that

Re: Windows DOS box redirection

2008-10-31 Thread Bill McClain
On 2008-10-31, Shawn Milochik [EMAIL PROTECTED] wrote: Easy. Make a desktop shortcut which includes the parameters, etc. People do that all the time, including for GUI apps such as Internet Explorer which have some optional command-line shortcuts. The only thing you have to do is make sure

Re: Windows DOS box redirection

2008-10-31 Thread Bill McClain
On 2008-10-31, Bill McClain [EMAIL PROTECTED] wrote: Ok, trying that...works, but the window doesn't stay open, so we can't see the results. Any way to do that? Sorry for the Windows-101 tutorial. I received an email solution: prepend the shortcut command with cmd.exe /k. Works great! -Bill

Re: Video information

2008-08-09 Thread Bill McClain
On 2008-08-09, dusans [EMAIL PROTECTED] wrote: Is there a py module, which would get me information of a movie file: - resolution - fps I don't know of one. I use the transcode utilities for this and parse their output. -Bill -- Sattre PressIn the Quarter

Re: Freetype bindings, finally?

2007-09-20 Thread Bill McClain
On 2007-09-19, Jason Yamada-Hanff [EMAIL PROTECTED] wrote: Hi all, I'm working on a project that would benefit very much from Python Freetype2 bindings (the Fonty Python project). I don't want to duplicate efforts and wrap the library again if we don't have to. Interestingly, it seems like

StringIO in 2.6 and beyond

2008-12-08 Thread Bill McClain
I've just installed 2.6, had been using 2.4. This was working for me: #! /usr/bin/env python import StringIO out = StringIO.StringIO() print out, 'hello' I used 2to3, and added import from future to get: #! /usr/bin/env python from __future__ import print_function

Re: StringIO in 2.6 and beyond

2008-12-08 Thread Bill McClain
On 2008-12-08, Christian Heimes [EMAIL PROTECTED] wrote: In this context 'str' means Python 3.0's str type, which is unicode in 2.x. Please report the misleading error message. So this is an encoding problem? Can you give me a hint on how to correct in my example? I see that io.StringIO() has

Re: StringIO in 2.6 and beyond

2008-12-09 Thread Bill McClain
On 2008-12-08, Bill McClain [EMAIL PROTECTED] wrote: On 2008-12-08, Christian Heimes [EMAIL PROTECTED] wrote: In this context 'str' means Python 3.0's str type, which is unicode in 2.x. Please report the misleading error message. So this is an encoding problem? Can you give me a hint

Re: StringIO in 2.6 and beyond

2008-12-09 Thread Bill McClain
On 2008-12-09, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This puzzles me too. According to the documentation StringIO accepts both byte strings and unicode strings. Try to replace output.write('First line.\n') with output.write(unicode('First line.\n')) or output.write(str('First

Re: StringIO in 2.6 and beyond

2008-12-09 Thread Bill McClain
On 2008-12-09, Peter Otten [EMAIL PROTECTED] wrote: out = io.StringIO() print(uhello, file=out, end=u\n) out.getvalue() u'hello\n' That has the benefit of working. Thank you! That can't be the intended behavior of print(), can it? Insering non-unicode spaces and line terminators? I

Re: StringIO in 2.6 and beyond

2008-12-09 Thread Bill McClain
On 2008-12-09, MRAB [EMAIL PROTECTED] wrote: In Python 2.x unmarked string literals are bytestrings. In Python 3.x they're Unicode. The intention is to make the transition from 2.x to 3.x easier by adding some features of 3.x to 2.x, but without breaking backwards compatibility (not

Re: StringIO in 2.6 and beyond

2008-12-10 Thread Bill McClain
On 2008-12-10, ajaksu [EMAIL PROTECTED] wrote: On Dec 9, 5:24 pm, Bill McClain [EMAIL PROTECTED] wrote: On 2008-12-09, MRAB [EMAIL PROTECTED] wrote: In Python 2.x unmarked string literals are bytestrings. In Python 3.x they're Unicode. The intention is to make the transition from 2.x

Re: StringIO in 2.6 and beyond

2008-12-10 Thread Bill McClain
On 2008-12-10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think this combination might do the trick (I don't have 2.6 to test it right now): from __future__ import print_function from __future__ import unicode_literals from functools import partial import io print = partial(print, sep=

Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread Bill McClain
On 2009-01-28, W. eWatson notval...@sbcglobal.net wrote: Yes, that's true, but the big question is how to see the final image? Either one employees another module or writes the file into a folder, then displays it with a paint program? Does im.show() not work? -Bill -- Sattre Press

Re: Date Comparison

2009-02-03 Thread Bill McClain
On 2009-02-03, mohana2...@gmail.com mohana2...@gmail.com wrote: Hi, I need to compare two dates and find the number of days between those two dates.This can be done with datetime module in python as below, but this is not supported in Jython. There are julian day routines in this astronomy