[Tutor] smtp project

2010-01-17 Thread Kirk Z Bailey
I am writing a script that will send an email message. This will 
run in a windows XP box. The box does not have a smtp server, so 
the script must crete not merely a smtp client to talk to a MTA, 
it must BE one for the duration of sending the message- then shut 
off, we don't need no bloody op0en relays here!


I am RTFM and having some heavy sledding, can I get an Elmer on this?

--
end

Very Truly yours,
 - Kirk Bailey,
   Largo Florida

   kniht
  +-+
  | BOX |
  +-+
   think
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] length of a string? Advice saught

2010-01-27 Thread Kirk Z Bailey
I wrote a program to let me edit web-pages without bothering with 
ftp; it loads up a simple form with the page guts in it, and 
saves it through another script. Until yesterday, EditMyPage 
worked fine. Alas, I had a rather long winded page and it 
truncated it- completely omitted the last 1/4 of the original 
file, creating big problems. Looking everything over, I can only 
conclude that somehow python 2.23 (ok, it's an old server; shoot 
me, I'm poor) has a limit on a simple string variable. Can I 
declare the variable as a long winded version and save the 
trouble, or do AI need a witchdoctor here?


--
end

Very Truly yours,
 - Kirk Bailey,
   Largo Florida

   kniht
  +-+
  | BOX |
  +-+
   think
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] sqrt?

2010-04-24 Thread Kirk Z Bailey
ok gang, My desktop runs 2.5, and for my college algebra I needed to do 
som quadratic equation work. This involves squareroots. So I fired uop 
the interactive idle and imported math. I then tried to play with sqrt.


Nothing.

Importing math does not import a sqrt function.

Now riddle me this: if string.foo makes it do a function FOO on a 
string, whyfore and howcome does math.sqrt not do square roots on a 
simple number like 4???


I am now officiciously pissed.

Help?

--
end

Very Truly yours,
- Kirk Bailey,
  Largo Florida

  kniht   
 +-+  
 | BOX |  
 +-+  
  think   


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] An interesting situation befalls me

2010-05-08 Thread Kirk Z Bailey
An instructor of mine is about to teach the FIRST EVER class in Python 
at Saint Petersburg College; knowing I am a snakecharmer, he asked me 
for referrals to online resources.


Oh my.

So I sent back this:
"
Ah, python., my fav obsession. First, the language website itself:
  http://www.python.org/
Natch, they offer a tutorial:
  http://docs.python.org/tutorial/
But this one is better for rank beginniners:
http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
And there's another one here:
  http://www.sthurlow.com/python/
And a nice writeup on wikipedia:
  http://en.wikipedia.org/wiki/Python_%28programming_language%29
You may care to go teleport to planet python:
  http://planet.python.org/
And you can swim into it at diveintopython:
  http://diveintopython.org/toc/index.html
"

Now here is a chance to help influence this getting off on the right foot. 


I can use reccomendations for texts for use in an introduction to Python class, 
and I will condense it down and provide them to the good doctor.

--
end

Very Truly yours,
- Kirk Bailey,
  Largo Florida

  kniht   
 +-+  
 | BOX |  
 +-+  
  think   


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] An interesting situation befalls me revisited

2010-05-09 Thread Kirk Z Bailey
Well, this has been a fruitful thread! Now here's the next exciting 
installment; what's a

good TEXTBOOK for a class to use on the subject?

--
end

Very Truly yours,
- Kirk Bailey,
  Largo Florida

  kniht   
 +-+  
 | BOX |  
 +-+  
  think   


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Hat lands in ring

2009-12-12 Thread Kirk Z Bailey

I'm Baaacck...

--
end

Very Truly yours,
 - Kirk Bailey,
   Largo Florida

   kniht
  +-+
  | BOX |
  +-+
   think
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] It lives...

2007-02-20 Thread Kirk Z Bailey
I'm back.

Melted my life, got a divorce, gutted the house, acquired true love, 2 
cats, redid house, new job, and dentures. Let's see, I still need a 
total blood change-out, but other than that, I did it all.

Now I can start paying attention to python and wiki's again.

And this is good, because the new edition of python does not like my 
windows wiki very well. Seems when it reads the page in, it creates the 
data in a list- with everything in one cell, not one line per cell. 
Hmmm it did not used to do this... bitrot?


-- 
end

Very Truly yours,
  - Kirk Bailey,
Largo Florida

kniht
   +-+
   | BOX |
   +-+
think

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] miniwiki 1.3 BETA bugs

2007-02-23 Thread Kirk Z. Bailey
ok, let's post this again. last time went into purgatory instead of the list. 
hmmm

I am working on updating miniwiki. the current beta code has rendering problems 
with wikiwords and external sites under some circumstances. Here is a link to 
the latest code:

http://www.tinylist.org/MW.txt








Blessed Be!
   - Kirk Bailey
 Largo FL USA


 kniht  
+-+ http://www.mylemonadestand.biz/ - play the lemonade game!
| BOX | http://www.tinylist-org/ Freedom software
+-+ In HER Service- http://www.pinellasintergroupsociety.org/
 think  http://www.seaxtradusa.org/ - The Seax Wica Trad in the USA!

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] miniwiki 1.3 BETA bugs

2007-02-25 Thread Kirk Z Bailey
RE leaves me totally confuzzzeddded. Yep, so confuised I'm having 
trouble spelling it. Sp this one line will replace both words and give a 
reliable result?

Barnaby Scott wrote:
[snip]
> No idea if it has anything to do with your problem, but it struck me 
> that the iswikiword() function (and processword() which seems to be a 
> helper for it) could be replaced with one line, and it would be reliable!
> 
> def iswikiword(word):
> return bool(re.match('^([A-Z][a-z]+){2,}$', word))
> 
> Of course you need to import re, but that seems a small price to pay!
> 
> HTH
> 
> Barnaby Scott
> 
> 

-- 
end

Very Truly yours,
  - Kirk Bailey,
Largo Florida

kniht
   +-+
   | BOX |
   +-+
think

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] arrays in python

2008-06-28 Thread Kirk Z Bailey
Just wondering, if I can find a way to do a 2 dimensional array in 
python. 1 dimension would be a list it would seem; for 2, I could use a 
list of lists?


Strange how I can't think of ever needing one since I discovered snake 
charming, but so many languages do foo dimensional arrays, it would seem 
like there ought to be a way to do it in python.


--
end

Very Truly yours,
 - Kirk Bailey,
   Largo Florida

   kniht
  +-+
  | BOX |
  +-+
   think
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor