Hi Friends
In this world everyone is searching for free webhostings for their
websites
So only i found this website after some struggle it's a free
webhosting directory
www.webhostingsfree.com
Having more than 500 free web hosting websites and free file
hostings ,image hostings etc
--
h
The following program print hello world only once instead it has to print the
string for every 5 seconds.
from threading import Timer;
class TestTimer:
def __init__(self):
self.t1 = Timer(5.0, self.foo);
def startTimer(self):
self.t1.start();
On Wednesday, November 30, 2016 at 7:35:46 PM UTC+5:30, siva gnanam wrote:
> The following program print hello world only once instead it has to print the
> string for every 5 seconds.
>
> from threading import Timer;
>
> class TestTimer:
>
>
On Wednesday, November 30, 2016 at 8:11:49 PM UTC+5:30, vnthma...@gmail.com
wrote:
> from threading import Timer
>
> class TestTimer:
> def foo(self):
> print("hello world")
> self.startTimer()
>
> def startTimer(self):
> self.t1 = Timer(5, self.foo)
> sel
Hi all,
I need to extract the domain-name from a given url(without sub-domains).
With urlparse, i am able to fetch only the domain-name(which includes the
sub-domain also).
eg:
http://feeds.huffingtonpost.com/posts/ , http://www.huffingtonpost.de/,
all must lead to *huffingtonpost.com or
On Tue, Jan 13, 2009 at 1:50 PM, Chris Rebert wrote:
>
> On Mon, Jan 12, 2009 at 11:46 PM, S.Selvam Siva
> wrote:
> > Hi all,
> >
> > I need to extract the domain-name from a given url(without sub-domains).
> > With urlparse, i am able to fetch only the domai
Hi all,
I am running a python script which parses nearly 22,000 html files locally
stored using BeautifulSoup.
The problem is the memory usage linearly increases as the files are being
parsed.
When the script has crossed parsing 200 files or so, it consumes all the
available RAM and The CPU usage
Hi all,
I have found the actual solution for this problem.
I tried using BeautifulSoup.SoupStrainer() and it improved memory usage
to the greatest extent.Now it uses max of 20 MB(earlier
it was >800 MB on 1GB RAM system).
thanks all.
--
Yours,
S.Selvam
--
http://mail.python.org/m
On Tue, Jan 20, 2009 at 7:27 PM, Tim Arnold wrote:
> I had the same problem you did, but then I changed the code to create a new
> soup object for each file.That drastically increased the speed. I don't
> know why, but it looks like the soup object just keeps getting bigger with
> each feed.
>
>
Hi all,
I am developing spell checker for my local language(tamil) using python.
I need to generate alternative word list for a miss-spelled word from the
dictionary of words.The alternatives must be as much as closer to the
miss-spelled word.As we know, ordinary string comparison wont work here .
Thank You Gabriel,
On Sun, Jan 25, 2009 at 7:12 AM, Gabriel Genellina
wrote:
> En Sat, 24 Jan 2009 15:08:08 -0200, S.Selvam Siva
> escribió:
>
>
> I am developing spell checker for my local language(tamil) using python.
>> I need to generate alternative word list for a m
Hi all,
I need to parse rss-feeds based on time stamp,But rss-feeds follow different
standards of date(IST,EST etc).
I dont know,how to standardize this standards.It will be helpful if you can
hint me.
--
Yours,
S.Selvam
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jan 29, 2009 at 2:27 PM, M.-A. Lemburg wrote:
> On 2009-01-29 03:38, Gabriel Genellina wrote:
> > En Wed, 28 Jan 2009 18:55:21 -0200, S.Selvam Siva
> > escribió:
> >
> >> I need to parse rss-feeds based on time stamp,But rss-feeds follow
> >> diffe
Hi all,
I have a small query,
Consider there is a task A which i want to perform.
To perform it ,i have two option.
1)Writing a small piece of code(approx. 50 lines) as efficient as possible.
2)import a suitable module to perform task A.
I am eager to know,which method will produce best performa
On Mon, Feb 2, 2009 at 3:11 PM, Chris Rebert wrote:
> On Mon, Feb 2, 2009 at 1:29 AM, S.Selvam Siva
> wrote:
> > Hi all,
> > I have a small query,
> > Consider there is a task A which i want to perform.
> >
> > To perform it ,i have two option.
> >
Hi all,
I tried to do a string replace as follows,
>>> s="hi & people"
>>> s.replace("&","\&")
'hi \\& people'
>>>
but i was expecting 'hi \& people'.I dont know ,what is something different
here with escape sequence.
--
Yours,
S.Selvam
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Feb 5, 2009 at 5:59 PM, wrote:
> "S.Selvam Siva" wrote:
> > I tried to do a string replace as follows,
> >
> > >>> s="hi & people"
> > >>> s.replace("&","\&")
> > 'hi \\& peo
Hi all,
I need to parse feeds and post the data to SOLR.I want the special
characters(Unicode char) to be posted as numerical representation,
For eg,
*'* --> ’ (for which HTML equivalent is ’)
I used BeautifulSoup,which seems to be allowing conversion from ""(
numeric values )to unicode ch
Hi all,
I need some help.
I tried to find top n(eg. 5) similar words for a given word, from a
dictionary of 50,000 words.
I used python-levenshtein module,and sample code is as follow.
def foo(searchword):
disdict={}
for word in self.dictionary-words:
distance=Levenshte
On Sat, Feb 14, 2009 at 3:01 PM, Peter Otten <__pete...@web.de> wrote:
> Gabriel Genellina wrote:
>
> > En Fri, 13 Feb 2009 08:16:00 -0200, S.Selvam Siva <
> s.selvams...@gmail.com>
> > escribió:
> >
> >> I need some help.
> >> I tried to
I am trying to post file from python to php using HTTP POST method. I tried
mechanize but not able to pass the file object.
from mechanize import Browser
br=Browser()
response=br.open("http://localhost/test.php";)
br.select_form('form1')
br['uploadedfile']=open("C:/Documents and
Settings/user/Desk
ilename="newurl-ideas.txt",name="uploadedfile")
>
On Tue, Dec 2, 2008 at 1:33 PM, S.Selvam Siva <[EMAIL PROTECTED]>wrote:
> I am trying to post file from python to php using HTTP POST method. I tried
> mechanize but not able to pass the file object.
>
Hello,
i am in a process of writing spell checker for my local language(Tamil).
I wrote a plugin for gedit with pygtk for gui.Recently i came to know about
pygtkspell ,that can be used for spell checking and suggestion offering.
I am bit congused about it and could not able to get useful info by
go
I have to do a parsing on webpagesand fetch urls.My problem is ,many urls i
need to parse are dynamically loaded using javascript function
(onload()).How to fetch those links from python? Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I have a dictionary in which each key is associated with a list as value.
eg: *dic={'a':['aa','ant','all']}*
The dictionary contains *1.5 lakh keys*.
Now i want to store it to a file,and need to be loaded to python program
during execution.
I expect your ideas/suggestions.
Note:I think
Hi all,
I want to upload a file from python to php/html form using urllib2,and my
code is below
PYTHON CODE:
import urllib
import urllib2,sys,traceback
url='http://localhost/index2.php'
values={}
f=open('addons.xcu','r')
values['datafile']=f.read() #is this correct ?
values['Submit']='True'
data
Hi friends,
I am writing a new language.
So I want an editor with auto complete.
I there any such tool in Python ?(not only in python any other)
I want it for my new lang
help me
Thanks
siva
--
http://mail.python.org/mailman/listinfo/python-list
close()
please post some solution .
and what is the command in windows for EOF (like Cntrl D in linux)
thanks in advance
Siva
--
http://mail.python.org/mailman/listinfo/python-list
Hi Chris,
Thanks for you reply.
The error log is here for my above program in windows:
Traceback (most recent call last):
File "C:\Documents and Settings\user\Desktop\t1.py", line 3, in
orig_source = sys.stdin.read()
AttributeError: read
Regards,
Siva
On Sat, Dec 5, 2009 a
open source.)
I have seen Komodo edit but it looks too big
any help plz.
Regards,
Siva
On Fri, Dec 4, 2009 at 8:04 PM, Gerhard Häring wrote:
> Siva B wrote:
> > Hi friends,
> >
> > I am writing a new language.
> > So I want an editor with auto complete.
> >
for the line of code you given,
print type(sys.stdin), sys.stdin
the output is:
there is no change.
I have tried it in python2.6 on windows platform.
Thanks,
Siva
On Sat, Dec 5, 2009 at 12:57 PM, Chris Rebert wrote:
> > On Sat, Dec 5, 2009 at 11:54 AM, Chris Rebert wrote:
> &
for col in row:
This only gets me the following output
{'FieldName1': '4', 'FieldName2': '0.00', 'FieldName3':
'4001433', 'FieldName4': '759'}
1. How do i access the 4, 0.00, ... the values ?
2. How do i compare it with another csv file ?
Thanks in advance
Siva
--
http://mail.python.org/mailman/listinfo/python-list
Amount3 : 40
I am new to programming and I have been extracting this data using MS –
Access and I badly need a better solution.
Will really appreciate any sample code in python.
Thanks in advance
Siva
--
http://mail.python.org/mailman/listinfo/python-list
For Good messages please visit
http://messagezonehere.blogspot.com/2010/03/friendly-messages.html
--
http://mail.python.org/mailman/listinfo/python-list
hi all,
i wish to code for translation in python
i want to parse a python program itself and make some keyword changes
(replacement)
tell me any library to parse python source code and another library to
change some words phonetically to other language
thanks in advance
Siva
--
http
Hey everyone,
I am really new to Python contribution community want to propose below
methods for List object. Forgive me if this is not the format to send an
email.
1. *list.replace( item_to_be_replaced, new_item )*: which replaces all the
occurrences of an element in the list instead of writing
Also make sure that the Pythonpath contains the folder where the modules
are installed in your machine. - site packages folder.
On Thu 8 Nov, 2018, 16:28 Thomas Jollans On 2018-11-08 06:04, Ian K. wrote:
> > Hello,
> >
> > My name is Ian Kilty and I have been having trouble with pip. I have pip
>
file=open("input","r")
line=file.seek(7)
print line
The above code is supposed to print a line but it prints "none". I don't know
where the mistake is. Help.!
--
https://mail.python.org/mailman/listinfo/python-list
There is a file named "input.cpp"(c++ file) that contains some 80 lines of
code.
--
https://mail.python.org/mailman/listinfo/python-list
Source Code:
clean_train_reviews=[]
for review in train["review"]:
clean_train_reviews.append(review_to_wordlist(review,
remove_stopwords=True))
trainDataVecs=getAvgFeatureVecs(clean_train_reviews, model, num_features)
print "Creating average feature vecs for test reviews"
clean_test_review
Dear members,
how to install wikipedia 1.4 package in python 2.7 above without PIP.
from,
Sivakumar S
--
https://mail.python.org/mailman/listinfo/python-list
Dear members,
How to install Wikipedia 1.4 package in python 2.7 above without PIP.
from,
Sivakumar S
--
https://mail.python.org/mailman/listinfo/python-list
42 matches
Mail list logo