Python would be good for this, but if you just want a chuck an rumble
solution might be.
bash $wget -r --ignore-robots -l 0 -c -t 3 http://www.cnn.com/
bash $ grep -r "Micheal.*" ./www.cnn.com/*
Or you could do a wget/python mix
like
import sys
import re
sys.os.command("wget -r --ignore-robots
so you run data pool as like a sruct that contains all your global
objects? That sounds like an iteresting way of doing things. i try to
stay away from gloabs as much as possible but this might be a good time
to queue up that particular tool
thanks for your reply
--
http://mail.python.org/mailma
What is the running time of conactination on character strings.
i.e.
>> joe="123"
>> joe+="9"
is it Amortized Constant time? I don't think it would be O((number of
chars)^2) but i really don't know.
Teach me how to fish, where would i find out more about the internal
representa
escape chars are always a pain when making regex's. There is a section
on it the Regex HOWTO
http://www.amk.ca/python/howto/regex/regex.html#SECTION00042
--
http://mail.python.org/mailman/listinfo/python-list
I didn't look at the original code but i you should know that passing
vectors directly (i.e by value) to functions is not a good idea
(results in big copy), its better to use `const vector<> &` or
`vector<> &` (i.e. by reference). In general you should try to reduce
the number of vector coping to
Well i don't know of any tutorials but i thought of a cool little
"assignment" that might interest someone of that age assuming english
is her first language. Its a neat little trick with english and the way
that we proccess letter combinations (or should i say permuations). But
a program that turn
Well your welcolme to send me the specs, im always up for making a few
pennys.
As for the yahoo account, i have me a spam catcher account and seems to
work rather well.
Hope To Here From You
- Haz
--
http://mail.python.org/mailman/listinfo/python-list
Michele Simionato:
>Actually, one could even make the case that children are much
> better than adults at learning new things.
In the case of natural languge it has been pretty much proven that
children are (much) better/faster at learning then adults. Now it is
left to be shown if this carries ov
Thanks Guys It Was Great Help and I have began to mark my code for the
''.join() string conatination optimization. Upon regoogling (when you
know the right thing to google it can make a big diffrence, having not
know how to google +=, hehe). I found this commentary and set of tests.
I find it a goo
Posting the error message could help. Also you might check out this
example
http://thraxil.org/thread.txt
- Haz
--
http://mail.python.org/mailman/listinfo/python-list
you should have that file i/o in some try: except: pairs for starters.
and you should close data_file when you are done. isn't it just
data_file.read() ?
--
http://mail.python.org/mailman/listinfo/python-list
I posted a question about string concatination just last week. There is
plenty of discussion on it, if you just search the group.
--
http://mail.python.org/mailman/listinfo/python-list
OK i find this a quark in string.find that i think needs some
consideration.
Normally if a substring is not in the searched_string then string.find
returns -1 (why not len(searched_string) + 1, i don't know but
nevermind that) but what if a searched_string == '' ? Then
string.find(substring,search
thanks all that clears things up nicely
- Haz
--
http://mail.python.org/mailman/listinfo/python-list
If you haven't looked into it, you may like the way class
OptionParser() makes the help text for you.
- Haz
--
http://mail.python.org/mailman/listinfo/python-list
I playing around with streaming shoutcast mp3s.
Here is some sample code:
---
import httplib
# Put together the headers
headers = {"Icy-MetaData":"1"}
con = httplib.HTTPConnection('64.142.8.154', 8000)
con.request("GET", "/")
stream = con.getresponse()
print str
16 matches
Mail list logo