Re: Need a compelling argument to use Django instead of Rails

2006-07-25 Thread Yannick
Hi,

A few months ago I had to choose between RoR and a Python framework
(TurboGears in that case). I picked TurboGears because of the language
maturity and all the third party libs. i.e. I can do PDF reporting with
reportLab, control OpenOffice with Python..
Ruby has still a "cool factor" going with it, but give it 2-3 years to
become mainstream and another language will be the new cool thing to
program with..


Ray wrote:
> I just moved to another company that's mainly a Java/.NET shop. I was
> happy to find out that there's a movement from the grassroot to try to
> convince the boss to use a dynamic language for our development!
>
> Two of the senior developers, however, are already rooting for Ruby on
> Rails--although they haven't tried RoR themselves. When I suggested
> Django, they went like, "what's that?".
>
> I said, "It's like the Python counterpart of RoR".
>
> "Nah, we're not interested in Python."
>
> I think they are already predisposed to RoR simply because of RoR's
> visibility (i.e.: at my workplace everybody knows RoR but nobody knows
> about Django unless they've used Python as well). So far the arguments
> I can think of:
>
> 1. The investment of learning Python will be a good investment because
> it transfer to platforms that we've already supported, i.e.: JVM and
> .NET CLR (using Jython and IronPython). Ruby's availability on this
> platform is not as mature--JRuby is still at 0.9 and I don't think
> IronRuby is coming out anytime soon :)
>
> 2. Python is a much more mature language than Ruby--it's been around
> since ages ago and as such has a lot more tools, articles, and other
> resources than Ruby. It is also the language being used by
> high-visibility company like Google, with the creator of the language
> himself working there.
>
> 3. Python emphasizes readability instead of cleverness/conciseness.
>
> 4. What else? I haven't tried RoR so I can't argue meaningfully on
> whether using Django will put us at an advantage.
>
> Can you help me with my argument? Meanwhile I think I'll give RoR a try
> as well.
> 
> Thank you,
> Ray

-- 
http://mail.python.org/mailman/listinfo/python-list


Python share CPU time?

2006-08-09 Thread Yannick
Hi,

I would like to program a small game in Python, kind of like robocode
(http://robocode.sourceforge.net/).
Problem is that I would have to share the CPU between all the robots,
and thus allocate a time period to each robot. However I couldn't find
any way to start a thread (robot), and interrupt it after a given time
period.
Any suggestions on how to proceed?
Is Python just not adapted to this kind of things?

Thanks,
Yannick

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python share CPU time?

2006-08-10 Thread Yannick
Thank you all for the detailled answers.

What I would like to achieve is something like:

# main loop
while True:
for robot in robots:
robot.start()
robot.join(0.2) # wait 200ms
if robot.is_active():
robot.stop()
# run all the game physics, pause, frame/rate, etc...

Unfortunately the stop() call doesn't exist in Python.

By using a generator I would make the assumption that every robot is
playing fair, and would yield often. But I cannot control this as
eventually robots would be coded by third parties.

Using Python scheduler would allow me to share time equally between
each robot, but then I would loose the ability to have a main thread
organizing everything.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Rendering Vector Graphics

2006-08-11 Thread Yannick

Bytter wrote:
> Hi ppl,
>
> I've already posted this message through the mailing-list, but it seems
> it never arrived here. Strange... Anyway:
>
> I need to render high-quality vector graphics with Python. I was
> thinking of something like 'cairo', though I need to run under win32
> and can't find a pycairo package for it. Suggestions?
>
> Thanks,
>
> Hugo Ferreira

Hi,

You can use cairo through the pyGTK bindings. Works pretty well for me.

Cheers,
Yannick

-- 
http://mail.python.org/mailman/listinfo/python-list


Web client, https and session management

2005-07-12 Thread Yannick Turgeon
Hello all,

2-3 years ago, I did a program in perl. Now I have to modify it and I
want to rewrite it from scratch using Python.

The program is doing this:
1- Load Yahoo login webpage (https)
2- Log into Yahoo website using my personal login and password.
3- Grasp and extract some information from my mailing lists messages
(http, not https).

My questions are:
- Is it possible to do this using Python?
- How?

To acheive point #3, which is the goal, my web client has to manage
session (because of the login aspect). This is the part I don't know
how it's working. Any help would be appreciated. Thanks.

Yannick

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web client, https and session management

2005-07-12 Thread Yannick Turgeon
Well... Thanks for that! The work is almost completed now! ;o)

Yannick

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ConFoo spam?

2010-10-07 Thread Yannick Gingras
On October 7, 2010, Chris Withers wrote:
> Hi All,
> 
> Is it just me or does the mailing of just about every single 
> python-based project mailing list with a 90% form email advertising a 
> conference that only has one python track and clashes with PyCon feel 
> just a bit like spam?
> 
> I know it's enough to put me off even considering going to ConFoo, 
> whatever it is...

[I'm sending this message again because the first time, I was not
subscribed to the list and my reply seems to be withheld.  I hope that
the list moderator will see this and that you won't receive it twice.]

Hello Chris and others, 
  I'm sorry if our call for speakers was too broad.  A few weeks ago,
PyCon launched its call for speakers with a very massive coverage on
great many mailing lists, including the Montréal-Python one.  We
understand that PyCon it THE Python conference and we actually
appreciated that our low volume mailing list was considered important
enough to receive the PyCon call for speakers.

Inspired by that massive out-reach effort by the PyCon program
committee, we decided to launch the ConFoo CFP with great glory too.
A total of 24 lists were contacted, most of them related to Web
development and a few where Python core hackers can be found on
because Raymond Hettinger's talk last year was a great success.

Should we only have contacted the Web related lists?  Should we
refrain from contacting any lists?  I admit that we don't know what
the right answer is but we will take the feedback from the community
and adjust our strategy for next year.

Regarding the clash with PyCon, we are also very torn.  ConFoo does
not have a lot of leverage to negotiate with the hotel so we had to
book a date as early as possible to get a decent rate and we did it
with PyCon 2010 dates in mind.  When the news came out that PyCon
would clash with ConFoo in a very significant manner, we,
Montréal-Python, had the option to cancel the Python track or to look
for a compromise, which was to ensure that all the Python talks would
happen before the first day of PyCon talks.  We'll do better next year
but this is the best that we could do this year.

By the way, ConFoo and Montréal-Python are non-profits, we do it
because we want to show how Python is a viable Web development
plate-form; we won't make money out of it.

Again, I'm sorry if our call for speakers was too broad and we'll do
better next year.

Best regards, 

-- 
Yannick Gingras
http://montrealpython.org -- lead organizer


signature.asc
Description: This is a digitally signed message part.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ConFoo spam?

2010-10-07 Thread Yannick Gingras
On October 7, 2010, Chris Withers wrote:
> Hi All,
> 
> Is it just me or does the mailing of just about every single 
> python-based project mailing list with a 90% form email advertising a 
> conference that only has one python track and clashes with PyCon feel 
> just a bit like spam?
> 
> I know it's enough to put me off even considering going to ConFoo, 
> whatever it is...

Hello Chris and others, 
  I'm sorry if our call for speakers was too broad.  A few weeks ago,
PyCon launched its call for speakers with a very massive coverage on
great many mailing lists, including the Montréal-Python one.  We
understand that PyCon it THE Python conference and we actually
appreciated that our low volume mailing list was considered important
enough to receive the PyCon call for speakers.

Inspired by that massive out-reach effort by the PyCon program
committee, we decided to launch the ConFoo CFP with great glory too.
A total of 24 lists were contacted, most of them related to Web
development and a few where Python core hackers can be found on
because Raymond Hettinger's talk last year was a great success.

Should we only have contacted the Web related lists?  Should we
refrain from contacting any lists?  I admit that we don't know what
the right answer is but we will take the feedback from the community
and adjust our strategy for next year.

Regarding the clash with PyCon, we are also very torn.  ConFoo does
not have a lot of leverage to negotiate with the hotel so we had to
book a date as early as possible to get a decent rate and we did it
with PyCon 2010 dates in mind.  When the news came out that PyCon
would clash with ConFoo in a very significant manner, we,
Montréal-Python, had the option to cancel the Python track or to look
for a compromise, which was to ensure that all the Python talks would
happen before the first day of PyCon talks.  We'll do better next year
but this is the best that we could do this year.

By the way, ConFoo and Montréal-Python are non-profits, we do it
because we want to show how Python is a viable Web development
plate-form; we won't make money out of it.

Again, I'm sorry if our call for speakers was too broad and we'll do
better next year.

Best regards, 

-- 
Yannick Gingras
http://montrealpython.org -- lead organizer


signature.asc
Description: This is a digitally signed message part.
-- 
http://mail.python.org/mailman/listinfo/python-list