Providing trial section alone will not make much difference. You should consider removing the need to sign in as well and focus on providing great tutorial content.<br><br>Good luck<br><br><div class="gmail_quote">On Sun, Nov 28, 2010 at 2:43 AM, Kok Cheng Tan <span dir="ltr"><<a href="mailto:tkokchen@gmail.com">tkokchen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br><br>Thanks for the feedback. <br>I will add a trial section that doesn't require login so that new visitors are able to give the website a try. <br>
<br>Regards,<br>Kok Cheng<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername"></b> <span dir="ltr"><<a href="mailto:tutor-request@python.org" target="_blank">tutor-request@python.org</a>></span><br>Date: Sun, Nov 28, 2010 at 2:41 AM<br>Subject: Tutor Digest, Vol 81, Issue 105<br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br><br><br>Send Tutor mailing list submissions to<br>
<a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<div class="im"><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br></div>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:tutor-request@python.org" target="_blank">tutor-request@python.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:tutor-owner@python.org" target="_blank">tutor-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Tutor digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Python Exercise (Kok Cheng Tan)<br>
2. Reload() in v3? WAS Re: IDEs (Alan Gauld)<br>
3. Re: Reload() in v3? WAS Re: IDEs (Alan Gauld)<br>
4. Re: Python Exercise (Mac Ryan)<br>
5. Re: normalize an array (Eike Welk)<br>
6. Python Exercise (<a href="mailto:patty@cruzio.com" target="_blank">patty@cruzio.com</a>)<br>
7. Re: Python Exercise (Joel Schwartz)<br>
8. Re: normalize an array (John)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 27 Nov 2010 22:00:03 +0800<br>
From: Kok Cheng Tan <<a href="mailto:tkokchen@gmail.com" target="_blank">tkokchen@gmail.com</a>><br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: [Tutor] Python Exercise<br>
Message-ID:<br>
<AANLkTi=eFHo9tvNdSEJH=xW2=<a href="mailto:Ca3T7KZrrK51-ph-cmh@mail.gmail.com" target="_blank">Ca3T7KZrrK51-ph-cmh@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi,<div class="im"><br>
<br>
I created this website for practising python online: <a href="http://www.pyschools.com" target="_blank">http://www.pyschools.com</a>.<br>
Hope to gather feedback from people here who are interesting in<br>
teaching and learning python.<br>
<br></div>
Regards,<br>
Kok Cheng<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 27 Nov 2010 15:04:57 -0000<br>
From: "Alan Gauld" <<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>><br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: [Tutor] Reload() in v3? WAS Re: IDEs<br>
Message-ID: <icr6ml$obn$<a href="mailto:1@dough.gmane.org" target="_blank">1@dough.gmane.org</a>><br>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";<br>
reply-type=response<br>
<br>
<br>
"Steven D'Aprano" <<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>> wrote<br>
<br>
> The other nine times out of ten *wink* I need to do debugging, and I<br>
> swap tabs and work in my interactive Python interpreter.<br>
><br>
> import filename # first time only<br>
> reload(filename) # all subsequent times<br>
<br>
I'm working on the v3 version of my tutor and while testing some<br>
module code I tried to reload the module in IDLE... I got an error:<br>
<br>
>>> import os<br>
>>> reload(os)<br>
Traceback (most recent call last):<br>
File "<pyshell#65>", line 1, in <module><br>
reload(os)<br>
NameError: name 'reload' is not defined<br>
>>><br>
<br>
Has reload been removed in V3?<br>
Whats the alternative? Does a repeated import auto-reload?<br>
<br>
I'm surprised and confused...<br>
<br>
--<br>
Alan Gauld<br>
Author of the Learn to Program web site<br>
<a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 27 Nov 2010 15:11:53 -0000<br>
From: "Alan Gauld" <<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>><br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: Re: [Tutor] Reload() in v3? WAS Re: IDEs<br>
Message-ID: <icr73l$q2f$<a href="mailto:1@dough.gmane.org" target="_blank">1@dough.gmane.org</a>><br>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";<br>
reply-type=response<br>
<br>
<br>
"Alan Gauld" <<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>> wrote<br>
> Has reload been removed in V3?<br>
> Whats the alternative? Does a repeated import auto-reload?<br>
><br>
> I'm surprised and confused...<br>
<br>
Found it, its been moved into the imp module.<br>
<br>
You need to import imp and then do<br>
<br>
imp.reload(foo)<br>
<br>
>>> import os<br>
>>> reload(os)<br>
Traceback (most recent call last):<br>
File "<pyshell#65>", line 1, in <module><br>
reload(os)<br>
NameError: name 'reload' is not defined<br>
>>> import imp<br>
>>> imp.reload(os)<br>
<module 'os' from 'C:\Python31\lib\os.py'><br>
>>><br>
<br>
I wonder why that was considered "a good idea"?<br>
<br>
Alan G.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sat, 27 Nov 2010 18:12:59 +0100<br>
From: Mac Ryan <<a href="mailto:quasipedia@gmail.com" target="_blank">quasipedia@gmail.com</a>><br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: Re: [Tutor] Python Exercise<br>
Message-ID: <20101127181259.770ea696@jabbar><br>
Content-Type: text/plain; charset=US-ASCII<div class="im"><br>
<br>
On Sat, 27 Nov 2010 22:00:03 +0800<br>
Kok Cheng Tan <<a href="mailto:tkokchen@gmail.com" target="_blank">tkokchen@gmail.com</a>> wrote:<br>
<br>
> I created this website for practising python online:<br>
> <a href="http://www.pyschools.com" target="_blank">http://www.pyschools.com</a>. Hope to gather feedback from people here<br>
> who are interesting in teaching and learning python.<br>
<br></div><div class="im">
Here you go with the first suggestion: remove the need to log in!<br>
(Haven't really watched at the site content, given that I - like 99% of<br>
the Internet users - wouldn't bother to login just to roam around a<br>
site).<br>
<br>
Mac.<br>
<br>
<br></div>
------------------------------<br>
<br>
Message: 5<br>
Date: Sat, 27 Nov 2010 18:44:25 +0100<br>
From: Eike Welk <<a href="mailto:eike.welk@gmx.net" target="_blank">eike.welk@gmx.net</a>><br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: Re: [Tutor] normalize an array<br>
Message-ID: <<a href="mailto:201011271845.38868.eike.welk@gmx.net" target="_blank">201011271845.38868.eike.welk@gmx.net</a>><br>
Content-Type: Text/Plain; charset="iso-8859-1"<br>
<br>
Hello John!<br>
<br>
On Friday 26.11.2010 23:23:51 Peter Otten wrote:<br>
> John wrote:<br>
> > I know this is a simple problem, but I want to do it the most<br>
> > efficient way (that is vectorized...)<br>
> ><br>
> > import numpy as np<br>
> ><br>
> > a = np.array(([1,2,3,4],[1,.2,3,4],[1,22,3,4]))<br>
> > b = np.sum(a,axis=1)<br>
> ><br>
> > for i,elem in enumerate(a):<br>
> > a[i,:] = elem/b[i]<br>
> ><br>
> > suggestions?<br>
><br>
> I'm not a numpy expert, but:<br>
><br>
> (a.transpose()/np.sum(a, axis=1)).transpose()<br>
<br>
The underlying feature of Peter's solution is called broadcasting. For a<br>
detailed explanation look at:<br>
<a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html" target="_blank">http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html</a><br>
<br>
<br>
Eike.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Sat, 27 Nov 2010 09:17:21 -0800 (PST)<br>
From: <a href="mailto:patty@cruzio.com" target="_blank">patty@cruzio.com</a><br>
To: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: [Tutor] Python Exercise<br>
Message-ID:<br>
<<a href="mailto:dc0a0d3334bc5d60c4114867f6b8f4e8.squirrel@cruziomail.cruzio.com" target="_blank">dc0a0d3334bc5d60c4114867f6b8f4e8.squirrel@cruziomail.cruzio.com</a>><br>
Content-Type: text/plain;charset=iso-8859-15<div class="im"><br>
<br>
Hi - I just wanted to add to Mac's comment. I don't have Google<br>
mail/gmail and don't want to create a mail account with them. I was also<br>
wondering if I should just try clicking on links anyway and changed my<br>
mind and exited.<br>
<br>
Regards,<br>
<br>
Patty<br>
<br>
<br>
<br>
<br></div><div class="im">
> On Sat, 27 Nov 2010 22:00:03 +0800<br>
> Kok Cheng Tan <<a href="mailto:tkokchen@gmail.com" target="_blank">tkokchen@gmail.com</a>> wrote:<br>
><br>
>> I created this website for practising python online:<br>
>> <a href="http://www.pyschools.com" target="_blank">http://www.pyschools.com</a>. Hope to gather feedback from people here<br>
>> who are interesting in teaching and learning python.<br>
><br></div><div class="im">
> Here you go with the first suggestion: remove the need to log in!<br>
> (Haven't really watched at the site content, given that I - like 99% of<br>
> the Internet users - wouldn't bother to login just to roam around a<br>
> site).<br>
><br>
> Mac.<br>
> _______________________________________________<br></div><div class="im">
> Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
> To unsubscribe or change subscription options:<br>
> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
><br>
<br>
<br>
<br>
<br></div>
------------------------------<br>
<br>
Message: 7<br>
Date: Sat, 27 Nov 2010 10:15:45 -0800<br>
From: "Joel Schwartz" <<a href="mailto:joel@joelschwartz.com" target="_blank">joel@joelschwartz.com</a>><br>
To: <<a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a>><br>
Subject: Re: [Tutor] Python Exercise<br>
Message-ID: <007201cb8e5f$1d256b60$6501a8c0@JLAPTOP><br>
Content-Type: text/plain; charset="us-ascii"<div class="im"><br>
<br>
<br>
<br>
> -----Original Message-----<br>
> On Sat, 27 Nov 2010 22:00:03 +0800<br>
> Kok Cheng Tan <<a href="mailto:tkokchen@gmail.com" target="_blank">tkokchen@gmail.com</a>> wrote:<br>
><br>
> > I created this website for practising python online:<br>
> > <a href="http://www.pyschools.com" target="_blank">http://www.pyschools.com</a>. Hope to gather feedback from<br>
> people here who<br>
> > are interesting in teaching and learning python.<br>
><br>
I logged in using my google account and the first page that came up was a<br>
ranking of competitors in the site's Python Tournament. I would recommend<br>
that you bring people to an introductory learning page after their first<br>
sign in (if you keep the sign-in requirement, which I also think is a bad<br>
idea) rather than a competition page--that is, unless you want to intimidate<br>
some (many?) beginning programmers into looking elsewhere.<br>
<br>
Joel<br>
<br>
<br>
<br>
<br></div>
------------------------------<br>
<br>
Message: 8<br>
Date: Sat, 27 Nov 2010 19:41:41 +0100<br>
From: John <<a href="mailto:washakie@gmail.com" target="_blank">washakie@gmail.com</a>><br>
To: Eike Welk <<a href="mailto:eike.welk@gmx.net" target="_blank">eike.welk@gmx.net</a>><br>
Cc: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Subject: Re: [Tutor] normalize an array<br>
Message-ID:<br>
<<a href="mailto:AANLkTimkNxXbYNJ7fmcPgUOLeVezw7c4VA3-1h5kBM7b@mail.gmail.com" target="_blank">AANLkTimkNxXbYNJ7fmcPgUOLeVezw7c4VA3-1h5kBM7b@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Thank you both! Broadcasting is a concept I hadn't yet read about, but<br>
knew was important for efficient python programming... thanks for the<br>
link!<br>
<br>
<br>
On Sat, Nov 27, 2010 at 6:44 PM, Eike Welk <<a href="mailto:eike.welk@gmx.net" target="_blank">eike.welk@gmx.net</a>> wrote:<br>
> Hello John!<br>
><br>
> On Friday 26.11.2010 23:23:51 Peter Otten wrote:<br>
>> John wrote:<br>
>> > I know this is a simple problem, but I want to do it the most<br>
>> > efficient way (that is vectorized...)<br>
>> ><br>
>> > import numpy as np<br>
>> ><br>
>> > a = np.array(([1,2,3,4],[1,.2,3,4],[1,22,3,4]))<br>
>> > b = np.sum(a,axis=1)<br>
>> ><br>
>> > for i,elem in enumerate(a):<br>
>> > ? ? a[i,:] = elem/b[i]<br>
>> ><br>
>> > suggestions?<br>
>><br>
>> I'm not a numpy expert, but:<br>
>><br>
>> (a.transpose()/np.sum(a, axis=1)).transpose()<br>
><br>
> The underlying feature of Peter's solution is called broadcasting. For a<br>
> detailed explanation look at:<br>
> <a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html" target="_blank">http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html</a><br>
><br>
><br>
> Eike.<div class="im"><br>
> _______________________________________________<br>
> Tutor maillist ?- ?<a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
> To unsubscribe or change subscription options:<br>
> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
<br>
<br>
<br></div>
--<br>
Configuration<br>
``````````````````````````<br>
Plone 2.5.3-final,<br>
CMF-1.6.4,<br>
Zope (Zope 2.9.7-final, python 2.4.4, linux2),<br>
Python 2.6<br>
PIL 1.1.6<br>
Mailman 2.1.9<br>
Postfix 2.4.5<br>
Procmail v3.22 2001/09/10<br>
Basemap: 1.0<br>
Matplotlib: 1.0.0<br>
<br>
<br>
------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
</div><div class="im"><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br>
<br></div>
End of Tutor Digest, Vol 81, Issue 105<br>
**************************************<br>
</div><br>
<br>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>