Thank you all for the feedback and suggestions. I have never used an
assertion, before so I will read up on the concept. But this last email
about the optimizations makes me want to go with an AssertionError
exception, since assert is skipped if the compiler is told to optimize.
Alan you are r
On 04/09/2013 08:29 PM, ALAN GAULD wrote:
Forwarded to group. Please use ReplyAll when responding to tutor posts.
From: Mariel Jane Sanchez
To: Alan Gauld
Sent: Wednesday, 10 April 2013, 1:06
Subject: Re: [Tutor] Chapter 3 Projects
Thank you so much, I fin
>
> You've gotten some good feedback, but I suspect you will get better
> information if you provide more information about your goals for the site.
>
Thanks for your help, everyone. There are some specific things I want the site
to do, and I'm not sure which would be the best developing tool
On Wed, Apr 10, 2013 at 12:47 PM, Amit Saha wrote:
> On Wed, Apr 10, 2013 at 7:31 AM, Benjamin Fishbein
> wrote:
>> Hello. I learned Python this past year (with help from many of you) and
>> wrote many programs for my small business. Now I want to build a website. I
>> acquired the domain name
On Wed, Apr 10, 2013 at 7:31 AM, Benjamin Fishbein
wrote:
> Hello. I learned Python this past year (with help from many of you) and wrote
> many programs for my small business. Now I want to build a website. I
> acquired the domain name through godaddy.com (bookchicken.com) but have not
> found
On Wed, Apr 10, 2013 at 12:03 PM, Don Jennings wrote:
>
> On Apr 9, 2013, at 5:31 PM, Benjamin Fishbein wrote:
>
>> Hello. I learned Python this past year (with help from many of you) and
>> wrote many programs for my small business. Now I want to build a website. I
>> acquired the domain name t
FWIW, I'd like to reverse my answer, and now I agree with Oscar's 29 Jan
suggestion to make "Reply-to-tutor-list" the default.
Lately, several times a tutor had to forward to the list an email meant for
the list but sent to him only, by mistake. On the other hand, the
wrote-to-1-person-but-mistake
On Apr 9, 2013, at 5:31 PM, Benjamin Fishbein wrote:
> Hello. I learned Python this past year (with help from many of you) and wrote
> many programs for my small business. Now I want to build a website. I
> acquired the domain name through godaddy.com (bookchicken.com) but have not
> found hos
On Tue, Apr 9, 2013 at 8:17 PM, Danny Yoo wrote:
>
> Going back to the original question: perhaps an assertion here would
> be sufficient. Something like:
>
> assert False, "Impossible situation"
Like "if __debug__" statements, assert statements are skipped by the
compiler if optimization is
Forwarded to group. Please use ReplyAll when responding to tutor posts.
>
> From: Mariel Jane Sanchez
>To: Alan Gauld
>Sent: Wednesday, 10 April 2013, 1:06
>Subject: Re: [Tutor] Chapter 3 Projects
>
>
>
>Thank you so much, I finally figured out the 2nd project.
On 10/04/13 07:31, Benjamin Fishbein wrote:
Hello. I learned Python this past year (with help from many of you) and wrote
many programs for my small business. Now I want to build a website. I acquired
the domain name through godaddy.com (bookchicken.com) but have not found
hosting yet.
I learn
>> if condition is 1:
>> do something with 1
>> elif condition is 2:
>> do something with 2
>> else: # Impossible unless the code above is flawed.
>> Raise Exception
>
>
>
> The above isn't a great example, because the sample code *is* flawed.
> The short reason why it is flawed is t
On 10/04/13 06:04, Alan Gauld wrote:
On 09/04/13 13:47, Steven D'Aprano wrote:
Since when did 30 become a representative sample size?
If they are randomly selected, 30 is likely plenty for a representative
sample size. In surveys, a sample size of 30 gives you a margin of error
of about 15%,
On 10/04/13 06:58, Prasad, Ramit wrote:
Much like scientific studies, I am more interested in *how* it
was done than in some summarized (frequently sensationalized)
"findings". In my opinion, a flawed methodology is more
frequently a problem than a small sample size.
+1000 on that.
--
Steven
On 10/04/13 05:22, Jordan wrote:
I want to know what exception should be raised if there is a bug in my code
that allows an else statement to be triggered, because the else condition in my
code should be impossible, unless there is an error in my code. What exception
should I raise so that if
On 09/04/13 20:22, Jordan wrote:
I want to know what exception should be raised if there is a bug in my
code that allows an else statement to be triggered, because the else
condition in my code should be impossible,
class BuggyCodeError(StandardError): pass
Maybe?
Seriously, exceptions are no
As far as hosts, I use digital ocean. It's a cloud based thing like EC2,
but it's cheap (5/10/20 and up). You will of course have to configure
everything yourself, but that's not such a bad thing.
It will give you good experience configuring a linux box as well and
learning about deployment.
Sinc
On 9 April 2013 20:22, Jordan wrote:
> I want to know what exception should be raised if there is a bug in my code
> that allows an else statement to be triggered, because the else condition in
> my code should be impossible, unless there is an error in my code. What
> exception should I raise so
Hello Benjamin,
On 9 April 2013 22:31, Benjamin Fishbein wrote:
> Hello. I learned Python this past year (with help from many of you) and
> wrote many programs for my small business. Now I want to build a website. I
> acquired the domain name through godaddy.com (bookchicken.com) but have
> not
On Tue, Apr 9, 2013 at 2:54 PM, Prasad, Ramit wrote:
> Your hosting solution (needs) to support Python, and I do not believe all
> hosts support Python. You
> should double check with whatever host you choose.
>
Almost all commercial web hosts offer limited Python support (running as an
Apache mo
Benjamin Fishbein wrote:
>
> Hello. I learned Python this past year (with help from many of you) and wrote
> many programs for my
> small business. Now I want to build a website. I acquired the domain name
> through godaddy.com
> (bookchicken.com) but have not found hosting yet.
> I learned html
Hello. I learned Python this past year (with help from many of you) and wrote
many programs for my small business. Now I want to build a website. I acquired
the domain name through godaddy.com (bookchicken.com) but have not found
hosting yet.
I learned html, css, and javascript via codeacademy.o
In the following you can see data from a ephemeris.txt file. Now I want to
retrieve several columns(say, for example the column starting with 00:00,
27.69 and 44.1) and name the array as x,y,z. What do I have to I tried this
x, y, z = numpy.loadtxt("ephemeris.txt", unpack=True)
And got this error
Alan Gauld wrote:
>
> On 09/04/13 13:47, Steven D'Aprano wrote:
>
> >> Since when did 30 become a representative sample size?
> >
> > If they are randomly selected, 30 is likely plenty for a representative
> > sample size. In surveys, a sample size of 30 gives you a margin of error
> > of about 1
On 09/04/2013 20:22, Jordan wrote:
I want to know what exception should be raised if there is a bug in my
code that allows an else statement to be triggered, because the else
condition in my code should be impossible, unless there is an error in
my code. What exception should I raise so that if
On 09/04/13 09:20, daedae11 wrote:
On Windows, how to make a python script run on startup?
The same way you make anything run on startup there is nothing magical
about Python code.
You can schedule it, add it to the registry or put it in the users
startup folder if you want it at login rath
On 09/04/13 13:47, Steven D'Aprano wrote:
Since when did 30 become a representative sample size?
If they are randomly selected, 30 is likely plenty for a representative
sample size. In surveys, a sample size of 30 gives you a margin of error
of about 15%, which isn't too bad.
Hmm, if I'd gon
On Tue, Apr 9, 2013 at 12:35 PM, Dave Angel wrote:
> But does anything in the startup folder run BEFORE any user logs in? It's
> been a long time since I had to run Windows, but I didn't think so.
The contents of the startup folders are executed in the current
session after logon. The same applie
Side note: I would strongly suggest using the biopython libraries for
the basic parsing. FASTA parsing has been done and replicated so many
times that it's almost a hazing ritual for the practicing
bioinformatician. The biopython folks have written a parser, so
perhaps you can reuse it.
http
I want to know what exception should be raised if there is a bug in my
code that allows an else statement to be triggered, because the else
condition in my code should be impossible, unless there is an error in
my code. What exception should I raise so that if my code is wrong it
will raise an
On 04/09/2013 06:58 AM, daedae11 wrote:
(Please don't top-post. And don't forget to include the list in your
cc. I'm forwarding it for you)
Which module to should I use to add entries to that system scheduler?
The system scheduler is an interactive (gui) program that comes with the
OS.
On 04/09/2013 07:50 AM, Najam Us Saqib wrote:
Hi,
This program is killing me, I have been working on it for last 3 hours, I have
tried my best but can't make it work, please help me out.
The Problem:
Create a program that flips a coin 100 times and than tells you the number of
tails and head
On 04/09/2013 05:54 AM, Alexander Mark wrote:
On Apr 9, 2013, at 4:20, daedae11 wrote:
On Windows, how to make a python script run on startup?
_
(Top-posted comment moved AFTER the question)
> There is a startup folder, usually on the start menu, you can add the
script to.
>
But does an
One game wrote along time ago when I was first learning Python and App
Engine is http://cdacabeecdebcabab.appspot.com/
It's kind of a non-interactive Sudoku puzzle, the only really interaction
is to click "solve this" or "display next puzzle" then to watch the python
code written attempt to solve
On Tue, Apr 9, 2013 at 9:48 AM, Kevin Ndung'u wrote:
>
> anybody know how to do this on linux?
For a desktop environment that implements freedesktop.org standards (X
Desktop Group), such as GNOME, KDE and Xfce, you can add .desktop
files per user to "$HOME/.config/autostart". System wide it's
"$X
On Tue, Apr 9, 2013 at 8:35 AM, daedae11 wrote:
> I refer the msdn for ShellExecute, there isn't a "runas" verb, only "edit",
> "find", "open", "print", "properties".
Adding a file to the all users startup folder probably doesn't even
require elevation. Maybe even a regular user can do it, given
On 04/09/2013 07:50 AM, Najam Us Saqib wrote:
Hi,
>
> This program is killing me, I have been working on it for last 3
hours, I have tried my best but can't make it work, please help me out.
>
> The Problem:
>
> Create a program that flips a coin 100 times and than tells you the
number of tai
Hope this link helps.:)
http://stackoverflow.com/questions/8339555/how-to-run-a-script-at-the-start-up-of-ubuntu
On 9 April 2013 19:18, Kevin Ndung'u wrote:
> anybody know how to do this on linux?
>
> On 4/9/13, eryksun wrote:
> > On Tue, Apr 9, 2013 at 5:54 AM, Alexander Mark
> > wrote:
> >>
anybody know how to do this on linux?
On 4/9/13, eryksun wrote:
> On Tue, Apr 9, 2013 at 5:54 AM, Alexander Mark
> wrote:
>> There is a startup folder, usually on the start menu, you can add the
>> script
>> to.
>
> current user:
> "%USERPROFILE%\Start Menu\Programs\Startup"
>
> all users:
> "%A
On 09/04/13 17:50, Alan Gauld wrote:
On 09/04/13 04:20, Len Conrad wrote:
Computer scientists develop video game that teaches how to program in
Java*
http://phys.org/news/2013-04-scientists-video-game-java.html
As an engineer I used to be embarrassed that people called it software
engin
On 09/04/13 21:50, Najam Us Saqib wrote:
Hi,
This program is killing me, I have been working on it for last 3 hours, I have
tried my best but can't make it work, please help me out.
Would you like to tell us what it is doing wrong, or should we guess?
My guess is below:
flip_coin = 100
flip_coin = 100
and then after a while
while flip_coin != 100:
It is contradicting.So the while loop is never executed. Just put flip_coin
= 0 and remove
head = ""
tail = ""
They are not necessary.
It should work.
Cheers,
Sayan
On 9 April 2013 17:20, Najam Us Saqib wrote:
> Hi,
>
> This p
Hi,
This program is killing me, I have been working on it for last 3 hours, I have
tried my best but can't make it work, please help me out.
The Problem:
Create a program that flips a coin 100 times and than tells you the number of
tails and heads.
My code:
# Flip a coin
import random
fli
On Tue, Apr 9, 2013 at 5:54 AM, Alexander Mark wrote:
> There is a startup folder, usually on the start menu, you can add the script
> to.
current user:
"%USERPROFILE%\Start Menu\Programs\Startup"
all users:
"%ALLUSERSPROFILE%\Start Menu\Programs\Startup"
Updating the latter will probably requi
Anything executable inside the start-up folder will run on start up!
On 9 April 2013 15:24, Alexander Mark wrote:
> There is a startup folder, usually on the start menu, you can add the
> script to.
>
> --ame
>
> On Apr 9, 2013, at 4:20, daedae11 wrote:
>
> On Windows, how to make a python scr
There is a startup folder, usually on the start menu, you can add the script
to.
--ame
On Apr 9, 2013, at 4:20, daedae11 wrote:
> On Windows, how to make a python script run on startup?
>
>
> ___
> Tutor maillist - Tutor@python.org
> To unsubscr
On 04/09/2013 04:20 AM, daedae11 wrote:
On Windows, how to make a python script run on startup?
Windows has a system scheduler, which you can add entries to, specifying
what time(s) a particular entry is to run. One of the choices is system
startup.
--
DaveA
On Windows, how to make a python script run on startup?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 09/04/2013 04:20, Len Conrad wrote:
*wrong teaching language! :)
Computer scientists develop video game that teaches how to program in
Java*
http://phys.org/news/2013-04-scientists-video-game-java.html
___
Tutor maillist - Tutor@python.o
On 09/04/13 04:20, Len Conrad wrote:
Computer scientists develop video game that teaches how to program in
Java*
http://phys.org/news/2013-04-scientists-video-game-java.html
As an engineer I used to be embarrassed that people called it software
engineering. Now they are calling this comp
50 matches
Mail list logo