Ismael Garrido schrieb:
> John Fouhy wrote:
...
>
> I believe there was a version of Qbasic translated to French or Spanish.
> By "translated" I mean that the keywords (reserved words) were, for
> instance, "para" instead of "for", that is, their French/Spanish
> counterpart.
>
I know that
John Fouhy wrote:
>On 10/11/05, Gregor Lingl <[EMAIL PROTECTED]> wrote:
>
>
>>but Shi Mu didn't ask for a program in English ;-)
>>
>>
>
>This is pretty off-topic, but ---
>
>Is it possible to be a programmer and not speak English? Are there any
>languages out there where the reserved words,
> Is it possible to be a programmer and not speak English? Are there any
> languages out there where the reserved words, library functions, etc.
> are in (say) German?
Hi John,
If you're asking about if it's possible, as in technically feasible, then
yes. As an example of this, see Damian Conw
Found the problem myself.
(look down)
Ismael Garrido wrote:
> This is the script:
>
> import BeautifulSoup
> import os
>
> a = open("zona.htm")
> text = a.readlines()
> a.close()
>
> BS = BeautifulSoup.BeautifulSoup(str(text))
Apparently, str(text) is the cause of the problem. If instead I do:
Perl seems to be written in a foreign language. ;)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Fouhy
Sent: Thursday, 10 November 2005 2:04 p.m.
To: Tutor
Subject: Re: [Tutor] [OT] triangulation
On 10/11/05, Gregor Lingl <[EMAIL PROTECTED]> wrot
On 10/11/05, Gregor Lingl <[EMAIL PROTECTED]> wrote:
> but Shi Mu didn't ask for a program in English ;-)
This is pretty off-topic, but ---
Is it possible to be a programmer and not speak English? Are there any
languages out there where the reserved words, library functions, etc.
are in (say) Ger
Liam Clarke-Hutchinson schrieb:
> German is an awesome language, I love the compound words (if that's what
> they are). What does 'Gegenuhrzeigersinn' mean in English?
>
counterclockwise
but Shi Mu didn't ask for a program in English ;-)
Gregor
>
> -Original Message-
> From: [EMAIL
Both!
See attachment
Regards,
Gregor
Shi Mu schrieb:
any code to draw parabola or curve?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Gregor Lingl
Reisnerstrasse 3/19
A-1030 Wien
Telefon: +43 1 713 33 9
Alex Hunsley schrieb:
Shi Mu wrote:
is there any sample code of triangulation? many thanks!
Yes, probably.
Indeed, there is.
See attachment
regards
Gregor
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/t
> I haven't written any code yet, but I was thinking I would like to test
> for either a windows environment (Is an X-Server running) or is this a
> strictly console (no X-server) environment and then do the appropriate
> thing for each environment. I am not sure that is any clearer, but I
> hope i
On Wed, Nov 09, 2005 at 10:00:49PM -, Alan Gauld wrote:
> >How does one test for a running gui in python?
> >
>
> Can you be more specific? A GUI is a feature of a program.
> The GUI is part of the program - although a few programs
> can run in either GUI or Text mode, but they are the except
Eek.
-Original Message-
From: Alan Gauld [mailto:[EMAIL PROTECTED]
Sent: Thursday, 10 November 2005 12:07 p.m.
To: Liam Clarke-Hutchinson; 'Shi Mu'
Cc: tutor@python.org
Subject: Re: [Tutor] triangulation
> As in Pythagoras?
> Or as in triangulation on a 2D surface, navigation etc.?
> As in Pythagoras?
> Or as in triangulation on a 2D surface, navigation etc.?
> Or, do you mean radio triangulation by directional signal propagation
> Or, do you mean drawing a triangle in Tkinter?
Or even triangulation of currency from EU currency to EU currency
via the euro?
See:
http://
Oh dear, I missed that query. Nevermind google, try docs.python.org...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Alex Hunsley
Sent: Thursday, 10 November 2005 12:08 p.m.
To: Shi Mu
Cc: tutor@python.org
Subject: Re: [Tutor] image
Shi Mu wrote:
>any
Shi Mu wrote:
>any python module to calculate sin, cos, arctan?
>
>
STFW. Have you heard of this site called "Google"?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ACS is a program to verify checksums of files (sha1 and md5) from the
command line. It allows you to check for the sum in local and remote
files via ftp or http. Any comments on the code would be good along
with anything in the subject.
Cheers.
Adam
err woops this might be useful link
___
ACS is a program to verify checksums of files (sha1 and md5) from the
command line. It allows you to check for the sum in local and remote
files via ftp or http. Any comments on the code would be good along
with anything in the subject.
Cheers.
Adam
___
Title: Re: [Tutor] Python persistent webserver?
Hi Howard,
It sounds like you want to integrate Python to handle CGI requests from Apache.
So, don't look down the road of building your own web server with the HTTPServer stuff in Python but rather investigate how to hook Python up to *proce
From: Ken Stevens [mailto:[EMAIL PROTECTED]
> Yes. Under Linux no x-server running? I guess it really wouldn't be
> applicable under a windows enviroment,
OK, I see what you wanted now, ignore my previous message
.
Note that X windows is a protocol and not a GUI.
There are several GUI environme
> ...Not that I know if that will work or not. I'm just going on some
> outdated Tkinter tutorials; I daresay the syntax of passing co-ordinates
> has changed (I'd hope so.)
>
> Can you be more specific?
Hi Liam,
Many of the questions that Shi Mu has been asking:
http://mail.python.org/pipe
> How does one test for a running gui in python?
>
Can you be more specific? A GUI is a feature of a program.
The GUI is part of the program - although a few programs
can run in either GUI or Text mode, but they are the exception.
Can you give an example of what you want to test for?
Alan G
__
> sure how to do it on a windows box since the file is an executeable.
> os.chdir('spacinVaders-0.1') #switch to the game's directory
> os.spawnlp(os.P_NOWAIT, 'pythonw', 'pythonw', 'play.py')
>
> and it would launch fine can someone help me with this??
You should be able to use os.syste
As in Pythagoras?
from math import *
c = sqrt(a^2 + b^2)
Or as in triangulation on a 2D surface, navigation etc.?
from math import *
o = tan(theta) * a
o = sin(theta) * h
h = o/sin(theta)
Noting of course that theta defaults to radians.
Or, do you mean radio triangulation by directional sign
Chris or Leslie Smith wrote:
> I know that chr() can be used to convert an integer into an ASCII
> character, but I am having a hard time trying to generate unicode
> characters from numbers. e.g. say I want to generate u'\u0950' from
> the integer 950, does anyone know if/how this can be done?
u
I know that chr() can be used to convert an integer into an ASCII character,
but I am having a hard time trying to generate unicode characters from numbers.
e.g. say I want to generate u'\u0950' from the integer 950, does anyone know
if/how this can be done? Here are some failures:
###
>>> uni
On Wed, 9 Nov 2005, Shi Mu wrote:
> is there any sample code of triangulation? many thanks!
Hi Shi Mu,
I know people have already asked you to read "How to Ask Questions the
Smart Way".
http://www.catb.org/~esr/faqs/smart-questions.html
Please really look at it. Frankly, you're asking q
Michael Haft wrote:
> Hello,
> thanks for all the help with lists and strings, the list I have has
> nested sublists in it though. How do I remove these or is there a way
> to convert from lists to strings without removing them?
>
> The code looks something like:
>
> result = []
> data = [fi
Looks like CherryPy is a good candidate. Take a look at:
www.cherrypy.org`
it can be plugged into Apache, and if persistency is what you need,
you'll get it. There are nice examples for getting started.
Hugo
Howard Kao wrote:
> Hi all,
>
> I know the subject is confusing but I don't know how
Have you tried pickling them?
If you want it to be flattened, so that result is:
[fields[1], fields[2], fields[3]]
instead of
[[fields[1], fields[2], fields[3]]]
you should use the extend method instead of the append method.
Hugo
Michael Haft wrote:
> Hello,
> thanks for all the help wi
[Kent wrote]
> > OK, none of my suggestions gets you closer to this...the simplest way is
> > if you can read the whole file into memory. Then you can just replace
> > the strings in place and write it out again. For example:
> >
> > oldPolicies = '''<<
> > /Policies <<
> >/PageSize 3
> > >>
Forwarding... Forgot the list.
--- Begin Message ---
Kent Johnson wrote:
Ismael Garrido wrote:
Hello
I'm using Beautiful Soup to scrape a site (that's in Spanish) I
sometimes come across strings like:
'Ner\\xf3n como cantor'
Which gets printed:
Ner\xf3n como cantor
When they should be:
N
Hello,
thanks for all the help with lists and strings, the list I have has
nested sublists in it though. How do I remove these or is there a way
to convert from lists to strings without removing them?
The code looks something like:
result = []
data = [fields[1] fields[3] fields[7]]
result.ap
Danny Yoo wrote:
>On Sun, 6 Nov 2005, Shi Mu wrote:
>
>
>
>>I have a list of random points: [[x0,y0],[x1,y1],...,[xn,yn]] how can I
>>use Tkinter to draw lines to connect them one by one based on the order
>>in the list?
>>
>>
>
>Do you know how to draw a single line in Tkinter? Have you lo
Shi Mu wrote:
>is there any sample code of triangulation? many thanks!
>
>
Yes, probably.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Ismael Garrido wrote:
> Hello
>
> I'm using Beautiful Soup to scrape a site (that's in Spanish) I
> sometimes come across strings like:
> 'Ner\\xf3n como cantor'
>
> Which gets printed:
> Ner\xf3n como cantor
>
> When they should be:
> Nerón como cantor
>
> I don't know if it is my fault (due
>> I have a PostScript file which contains the following lines (the numbers
>> are for reference only and are *not* in the file):
>>
>> 1 <<
>> 2 /Policies <<
>> 3 /PageSize 3
>> 4 >>
>> 5 >> setpagedevice
>>
>> I want to open the the file and read it, find these five lines and then
>> re
is there any sample code of triangulation? many thanks!
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Bill Burns wrote:
> I have a PostScript file which contains the following lines (the numbers
> are for reference only and are *not* in the file):
>
> 1 <<
> 2 /Policies <<
> 3 /PageSize 3
> 4 >>
> 5 >> setpagedevice
>
> I want to open the the file and read it, find these five lines and t
John Fouhy wrote:
> On 09/11/05, Roy Bleasdale <[EMAIL PROTECTED]> wrote:
>
>>I have created a List within a class. If I try and append to the list using
>>the set function using the property value my variable stops being a list.
>
> Properties only work properly with new style classes. You get
Thanks everyone for the help. I'll look into them.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
40 matches
Mail list logo