Re: Improving the web page download code.

2013-08-27 Thread mukesh tiwari
On Wednesday, 28 August 2013 04:03:15 UTC+5:30, MRAB wrote: > On 27/08/2013 21:53, mukesh tiwari wrote: > > > On Wednesday, 28 August 2013 01:49:59 UTC+5:30, MRAB wrote: > > >> On 27/08/2013 20:41, mukesh tiwari wrote: > > >> > > [snip] > > >> > if __name__== '__main__': > > >> >

Re: can't get utf8 / unicode strings from embedded python

2013-08-27 Thread David M. Cotter
I am very sorry that I have offended you to such a degree you feel it necessary to publicly eviscerate me. Perhaps I could have worded it like this: "So far I have not seen any troubles including unicode characters in my strings, they *seem* to be fine for my use-case. What kind of trouble ha

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-27 Thread dieter
Luca Cerone writes: > ... > Ok so after reading the documentation for urllib2 and cookielib I came up > with the following code: > > #START > from urllib2 import urlopen , Request > from cookielib import CookieJar > import re > regex = re.compile(r'\{(.*)\}') > > base_url = "http://quiz.gambitre

Re: How to I do this in Python ?

2013-08-27 Thread Ganesh Pal
On Mon, Aug 19, 2013 at 12:57 PM, Steven D'Aprano wrote: > On Sun, 18 Aug 2013 22:36:01 +0530, Ganesh Pal wrote: > > > Please find the comments >>> inline > > Please don't do that! > > "Arrows" > are used for quoting in emails. If you prefix your *new* > comments using >>> it looks like they were

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread tausciam
I've played around with it and got code that plays mp3s now. I'm not sure what I was doing wrong or why it plays now...but it does, so I'm going to use it: #!/usr/bin/env python import sip sip.setapi('QString', 2) import sys from PyQt4 import QtCore, QtGui from PyQt4.phonon import Phonon

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread tausciam
When I pare down the code to the following, I can't hear the mp3 play either: #!/usr/bin/env python import sip sip.setapi('QString', 2) import sys from PyQt4 import QtCore, QtGui from PyQt4.phonon import Phonon class MainWindow(QtGui.QMainWindow): def __init__(self): super(QtGui.

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread tausciam
But, the PYQT example works: https://github.com/Werkov/PyQt4/blob/master/examples/phonon/musicplayer.py#L1 It's just my code isn't working for some reason. I don't hear anything coming from it -- http://mail.python.org/mailman/listinfo/python-list

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread tausciam
I unplugged the tv capture card and got no errors at all. It didn't cause it to crash when I had it plugged in. However, it appears that it's not actually playing the mp3. I don't hear it at all. I checked my sound mixer and no channels are muted. -- http://mail.python.org/mailman/listinfo/pyth

Re: can't get utf8 / unicode strings from embedded python

2013-08-27 Thread Steven D'Aprano
On Tue, 27 Aug 2013 15:21:00 -0700, David M. Cotter wrote: > i am already doing (3), and all is working perfectly. bytestring > literals are fine, i'm not sure what this trouble is that you speak of. Neither is anyone else, because your post is completely devoid of any context. Who are you talk

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread tausciam
It's not giving me an exception. Here is the code I used: from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.phonon import Phonon import os import sys, traceback def lumberjack(): song = '/home/tannhaus/Music/A Perfect Circle/eMOTIVE/02 Imagine.mp3' QCoreApplication.setApplic

Re: Improving the web page download code.

2013-08-27 Thread MRAB
On 27/08/2013 21:53, mukesh tiwari wrote: On Wednesday, 28 August 2013 01:49:59 UTC+5:30, MRAB wrote: On 27/08/2013 20:41, mukesh tiwari wrote: [snip] >> > if __name__== '__main__': >> > u = Downloader() >> > signal.signal( signal.SIGINT , u.handleexception) >> > thread.start_new_thread

Re: can't get utf8 / unicode strings from embedded python

2013-08-27 Thread David M. Cotter
i am already doing (3), and all is working perfectly. bytestring literals are fine, i'm not sure what this trouble is that you speak of. note that i'm not using PyRun_AnyFile(), i'm loading the script myself, assumed as utf8 (which was my original problem, i had assumed it was macRoman), then

Re: Adding new lines to word document using zipfile module within python 2.7?

2013-08-27 Thread Christian Gollwitzer
Am 27.08.13 22:45, schrieb accessnew...@gmail.com: Writing text to a word document (word 2007) using the zipfile module via python coding (python 2.7). Below if the section of code I am using to do this. I can't figure out what character I need to use to get it to add new lines to the zipfile.

Re: Improving the web page download code.

2013-08-27 Thread mukesh tiwari
On Wednesday, 28 August 2013 01:49:59 UTC+5:30, MRAB wrote: > On 27/08/2013 20:41, mukesh tiwari wrote: > > > Hello All, > > > I am doing web stuff first time in python so I am looking for suggestions. > > I wrote this code to download the title of webpages using as much less > > resource ( se

Adding new lines to word document using zipfile module within python 2.7?

2013-08-27 Thread accessnewbie
Writing text to a word document (word 2007) using the zipfile module via python coding (python 2.7). Below if the section of code I am using to do this. I can't figure out what character I need to use to get it to add new lines to the zipfile. if Count: blurb = "\r\nINSERT TABLE HERE\r\n\r\

Re: How to check client shutdown?

2013-08-27 Thread Irmen de Jong
On 27-8-2013 22:40, Chris Angelico wrote: > Right. When you use TCP sockets, there's no boundaries, so you could > get two pickles in one recv, or you could get one and a half, or > anything. It depends partly on your buffer sizes and things; if you're > sending very short messages (less than a k

Re: How come StopIteration.__base__ is not BaseException?

2013-08-27 Thread Ethan Furman
On 08/26/2013 12:37 PM, Marco Buttu wrote: Since StopIteration is not an error, how come does it inherit directly from Exception and not from BaseException? Not all exceptions are errors. (Although not dealing with one can be. ;) -- ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-l

Re: How come StopIteration.__base__ is not BaseException?

2013-08-27 Thread Terry Reedy
On 8/27/2013 3:52 PM, Marco Buttu wrote: On 08/27/2013 08:51 PM, Terry Reedy wrote: BaseException was added just so it would be possible to catch nearly everything but a few exceptions. The first two were KeyboardInterrupt and SystemExit (in 2.5). GeneratorExit was switched in 2.6, but I forget

Re: How to check client shutdown?

2013-08-27 Thread Chris Angelico
On Wed, Aug 28, 2013 at 6:22 AM, Irmen de Jong wrote: > ? What is the actual downside of having >> the server set to anticipate a message length which is known to be more than >> will be >> sent (or be allowed to be sent?), for example connection.recv(1). Does >> not the >> receiver know the

Re: New VPS Provider needed

2013-08-27 Thread Gene Heskett
On Tuesday 27 August 2013 15:26:30 Neil Cerutti did opine: > On 2013-08-27, Steven D'Aprano wrote: > > On Wed, 28 Aug 2013 00:41:17 +1000, Chris Angelico wrote: > >> On Wed, Aug 28, 2013 at 12:25 AM, Grant Edwards > >> > >> wrote: > >>> On 2013-08-27, wrote: > Iam having

Re: How to check client shutdown?

2013-08-27 Thread Irmen de Jong
On 27-8-2013 19:44, Paul Pittlerson wrote: >> MAJOR security issue here. You are taking data from a networked source >> >> and running it through a trusting system (pickle). This is NOT >> >> recommended. >> > > Security issue!? Do you mean someone could enter devious python h4xx into the > ch

Re: Improving the web page download code.

2013-08-27 Thread MRAB
On 27/08/2013 20:41, mukesh tiwari wrote: Hello All, I am doing web stuff first time in python so I am looking for suggestions. I wrote this code to download the title of webpages using as much less resource ( server time, data download) as possible and should be fast enough. Initially I used

Re: How to check client shutdown?

2013-08-27 Thread Andrew Berg
On 2013.08.27 12:44, Paul Pittlerson wrote: > Security issue!? Do you mean someone could enter devious python h4xx into the > chat or something? I had no idea using pickle was so dangerous, but I don't > know any other method of transmitting data in python :( JSON, XML, or any other format that d

Re: How come StopIteration.__base__ is not BaseException?

2013-08-27 Thread Marco Buttu
On 08/27/2013 08:51 PM, Terry Reedy wrote: BaseException was added just so it would be possible to catch nearly everything but a few exceptions. The first two were KeyboardInterrupt and SystemExit (in 2.5). GeneratorExit was switched in 2.6, but I forget the details of why. Maybe in order to d

Improving the web page download code.

2013-08-27 Thread mukesh tiwari
Hello All, I am doing web stuff first time in python so I am looking for suggestions. I wrote this code to download the title of webpages using as much less resource ( server time, data download) as possible and should be fast enough. Initially I used BeautifulSoup for parsing but the person wh

ANN: rom 0.19 - Redis object mapper for Python

2013-08-27 Thread Josiah Carlson
Hey everyone, As time progresses, so does my Redis object mapper. The "rom" package is a Redis object mapper for Python. It sports an interface similar to Django's ORM, SQLAlchemy + Elixir, or Appengine's datastore. The changelog for recent releases can be seen below my signature. You can find

Re: How come StopIteration.__base__ is not BaseException?

2013-08-27 Thread Terry Reedy
On 8/27/2013 6:02 AM, Marco Buttu wrote: On 08/27/2013 11:22 AM, Steven D'Aprano wrote: What matters is that when you catch "nearly everything", StopIteration is included in the "nearly everything", but SysExit and KeyboardInterrupt should not be. Consider: try: main() except Exception a

Re: New VPS Provider needed

2013-08-27 Thread Neil Cerutti
On 2013-08-27, Steven D'Aprano wrote: > On Wed, 28 Aug 2013 00:41:17 +1000, Chris Angelico wrote: > >> On Wed, Aug 28, 2013 at 12:25 AM, Grant Edwards >> wrote: >>> On 2013-08-27, wrote: >>> Iam having major issues with my VPS provider and losign customers becaue the p

RE: Can a child access parent attributes if that child added post-hoc as an attribute to the parent?

2013-08-27 Thread Prasad, Ramit
Ian Kelly wrote: > On Thu, Aug 22, 2013 at 3:26 PM, Prasad, Ramit > wrote: > > Bitswapper wrote: > >> > >> So I have a parent and child class: > >> > >> > >> class Map(object): > >> def __init__(self, name=''): > >> self.mapName = name > >> self.rules = {} > >> > >> class Rule(

which better for me?session.query or session.execute?

2013-08-27 Thread Mohsen Pahlevanzadeh
Dear all, Suppose I want to write a function for better using SQLAlchemly dynamically with the following specification: 1. It get field names and values. 2. It get operators such as = , <> , like , between and so on. 3. It get logical operators such as and , or and not. 4. ..

Re: How to check client shutdown?

2013-08-27 Thread Paul Pittlerson
> MAJOR security issue here. You are taking data from a networked source > > and running it through a trusting system (pickle). This is NOT > > recommended. > Security issue!? Do you mean someone could enter devious python h4xx into the chat or something? I had no idea using pickle was so dang

Re: New VPS Provider needed

2013-08-27 Thread Steven D'Aprano
On Tue, 27 Aug 2013 19:40:21 +0300, Ferrous Cranus wrote: > I alredy lost 4 customers :( Nikos, you are mistaking us for your personal friends. We're not. We don't care if you lose 4 customers or 400, whether you become successful web developer and become rich, or end up homeless. Our only rela

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Steven D'Aprano
On Tue, 27 Aug 2013 18:04:23 +0300, Ferrous Cranus wrote: > So, in this line: > > cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) > > the variable 'page' needs conversion to what? You tell us. You want to be a programmer, *you* need to do the programming, and not just keep ask

Re: New VPS Provider needed

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 7:25 μμ, ο/η Steven D'Aprano έγραψε: On Tue, 27 Aug 2013 21:18:10 +1000, David wrote: On 27 August 2013 17:13, Νικόλαος wrote: I know this isn't the place to ask Νικόλαος is 100% correct about this. So, this list is also not the correct place to answer. So please everyone,

Re: New VPS Provider needed

2013-08-27 Thread Steven D'Aprano
On Tue, 27 Aug 2013 21:18:10 +1000, David wrote: > On 27 August 2013 17:13, Νικόλαος wrote: >> >> I know this isn't the place to ask > > Νικόλαος is 100% correct about this. > > So, this list is also not the correct place to answer. So please > everyone, do not respond. Thanks. Asking for reco

Re: New VPS Provider needed

2013-08-27 Thread Steven D'Aprano
On Wed, 28 Aug 2013 00:41:17 +1000, Chris Angelico wrote: > On Wed, Aug 28, 2013 at 12:25 AM, Grant Edwards > wrote: >> On 2013-08-27, wrote: >> >>> Iam having major issues with my VPS provider and losign customers >>> becaue the provider doesnt set thign u[ cprrectly. >> >> Per

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread ishish
Am 27.08.2013 16:04, schrieb Ferrous Cranus: Στις 27/8/2013 4:59 μμ, ο/η ishish έγραψε: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] ValueError: underlying buffer has been detached [Tue Aug 27 13

Re: New VPS Provider needed

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 5:25 μμ, ο/η Grant Edwards έγραψε: On 2013-08-27, wrote: Iam having major issues with my VPS provider and losign customers becaue the provider doesnt set thign u[ cprrectly. Perhaps he's also having problems with a faulty keyboard. Perhaps Then perhaps

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 4:59 μμ, ο/η ishish έγραψε: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] ValueError: underlying buffer has been detached [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] [

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread Chris Angelico
On Tue, Aug 27, 2013 at 1:42 PM, wrote: > Here is my code. I'm just trying to play an mp3 that I've clicked in a PyQT > listwidget: > > @pyqtSlot() > def item_clicked(self): > row = self.listWidget.currentRow() > song = musiclist[row] > QCoreApplication.setApplica

Re: New VPS Provider needed

2013-08-27 Thread Chris Angelico
On Wed, Aug 28, 2013 at 12:25 AM, Grant Edwards wrote: > On 2013-08-27, wrote: > >> Iam having major issues with my VPS provider and losign customers becaue >> the provider doesnt set thign u[ cprrectly. > > Perhaps he's also having problems with a faulty keyboard. Just a faulty

Re: New VPS Provider needed

2013-08-27 Thread Grant Edwards
On 2013-08-27, wrote: > Iam having major issues with my VPS provider and losign customers becaue > the provider doesnt set thign u[ cprrectly. Perhaps he's also having problems with a faulty keyboard. -- Grant Edwards grant.b.edwardsYow! They collapsed

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread ishish
[Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] ValueError: underlying buffer has been detached [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] [Tue Aug 27 13:02:57 2013] [error] [client 11

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 4:05 μμ, ο/η Ferrous Cranus έγραψε: Στις 27/8/2013 3:52 μμ, ο/η Ferrous Cranus έγραψε: I think that something iam missing in the new VPS implementation concerning my python web page. After: tail -F /usr/local/apache/logs/error_log & [Tue Aug 27 12:49:52 2013] [e

Re: New VPS Provider needed

2013-08-27 Thread MRAB
On 27/08/2013 13:55, Tim Chase wrote: On 2013-08-27 08:25, Dennis Lee Bieber wrote: On Tue, 27 Aug 2013 ni...@superhost.gr wrote: >Actually it is. Frankly, it's not. It's called the Python mailing list because it's for discussing *Python*. Otherwise, it would be called "Python and random irr

Re: New VPS Provider needed

2013-08-27 Thread Tim Chase
On 2013-08-27 08:25, Dennis Lee Bieber wrote: > On Tue, 27 Aug 2013 ni...@superhost.gr wrote: > >Actually it is. Frankly, it's not. It's called the Python mailing list because it's for discussing *Python*. Otherwise, it would be called "Python and random irrelevant topics" mailing list. There a

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 3:52 μμ, ο/η Ferrous Cranus έγραψε: I think that something iam missing in the new VPS implementation concerning my python web page. After: tail -F /usr/local/apache/logs/error_log & [Tue Aug 27 12:49:52 2013] [error] [client 178.59.111.223] (2)No such file or dir

Re: New VPS Provider needed

2013-08-27 Thread Antoon Pardon
Op 27-08-13 13:21, Νικόλαος schreef: > Στις 27/8/2013 2:18 μμ, ο/η David έγραψε: >> On 27 August 2013 17:13, wrote: >>> >>> I know this isn't the place to ask >> >> is 100% correct about this. >> >> So, this list is also not the correct place to answer. >> So please everyone, do

Re: New VPS Provider needed

2013-08-27 Thread Andy Kannberg
Niko, No offense, but I have to agree with David. This list is about Python, not about webprogramming nor hosting. If you are in need of a mailing group for such, again, Google or any other search engine can help you with that. best regards, Andy 2013/8/27 Νικόλαος > Στις 27/8/2013 2:18 μμ, ο

Re: New VPS Provider needed

2013-08-27 Thread Chris “Kwpolska” Warrick
On Tue, Aug 27, 2013 at 1:21 PM, Νικόλαος wrote: > Actually it is. > Poeple are web programmers here and lots of them doing hosting. Fortunately, most of them would not trust you. And in case they would, a quick search through what happened on this list a while ago should fix that. -- Chris “K

[error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
I think that something iam missing in the new VPS implementation concerning my python web page. After: tail -F /usr/local/apache/logs/error_log & [Tue Aug 27 12:49:52 2013] [error] [client 178.59.111.223] (2)No such file or directory: exec of '/home/nikos/public_html/cgi-bin/m

Re: New VPS Provider needed

2013-08-27 Thread Νικόλαος
Στις 27/8/2013 3:25 μμ, ο/η Dennis Lee Bieber έγραψε: Your provider made some change and suddenly only YOUR sites have failed? No one else is complaining to the provider? That would seem to indicate that the fault is in your coding -- perhaps making use of undocumented features o

Re: New VPS Provider needed

2013-08-27 Thread Neil Cerutti
On 2013-08-27, David wrote: > On 27 August 2013 17:13, wrote: >> >> I know this isn't the place to ask > > is 100% correct about this. > > So, this list is also not the correct place to answer. So > please everyone, do not respond. Thanks. I can't understand how this savant at

Re: Checking homogeneity of Array using List in Python

2013-08-27 Thread Neil Cerutti
On 2013-08-26, Joshua Landau wrote: > On 26 August 2013 14:49, Neil Cerutti wrote: >> On 2013-08-25, sahil301...@gmail.com wrote: >>> >>> eg. my input is ['1', ' ', 'asdasd231231', '1213asasd', '43242'] >>> I want it to be interpreted as: >>> [1, [None], [None], [None], 43242] >>> >>> NOTE: NO I

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

2013-08-27 Thread tausciam
Looking in /var/log/messages, every time I get that error I get: [41553.128652] xc2028 9-0061: i2c input error: rc = -19 (should be 2) [41553.152537] xc2028 9-0061: i2c input error: rc = -19 (should be 2) [41553.355913] xc2028 9-0061: i2c input error: rc = -19 (should be 2) [41553.379712] xc2028 9

Re: New VPS Provider needed

2013-08-27 Thread Νικόλαος
Στις 27/8/2013 2:18 μμ, ο/η David έγραψε: On 27 August 2013 17:13, wrote: I know this isn't the place to ask is 100% correct about this. So, this list is also not the correct place to answer. So please everyone, do not respond. Thanks. Actually it is. Poeple are web pro

Re: New VPS Provider needed

2013-08-27 Thread David
On 27 August 2013 17:13, Νικόλαος wrote: > > I know this isn't the place to ask Νικόλαος is 100% correct about this. So, this list is also not the correct place to answer. So please everyone, do not respond. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: New VPS Provider needed

2013-08-27 Thread Νικόλαος
Στις 27/8/2013 1:26 μμ, ο/η Antoon Pardon έγραψε: Maybe it does. It is possible your website depended on undocumented features and that one of those features is no longer available. So your website works as expected. This is not the case here. No fancy modules. in the old VPS varsa.gr was work

Re: New VPS Provider needed

2013-08-27 Thread Antoon Pardon
Op 27-08-13 12:00, Νικόλαος schreef: > Στις 27/8/2013 12:38 μμ, ο/η Chris Angelico έγραψε: >> On Tue, Aug 27, 2013 at 7:32 PM, wrote: >>> 27/8/2013 12:06 ��, �/� Tim Delaney ��: On 27 August 2013 18:45, >>> > wrote:

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-27 Thread Luca Cerone
> > > Let me make an additional remark however: you should > > not expect to get complete details in a list like this - but only > > hints towards a solution for your problem (i.e. > > there remains some work for you). > > Thus, I expect you to read the "cookielib/cookiejar" documentation > > (pa

Re: How come StopIteration.__base__ is not BaseException?

2013-08-27 Thread Marco Buttu
On 08/27/2013 11:22 AM, Steven D'Aprano wrote: What matters is that when you catch "nearly everything", StopIteration is included in the "nearly everything", but SysExit and KeyboardInterrupt should not be. Consider: try: main() except Exception as e: print('an unexpected error occur

Re: New VPS Provider needed

2013-08-27 Thread Νικόλαος
Στις 27/8/2013 12:38 μμ, ο/η Chris Angelico έγραψε: On Tue, Aug 27, 2013 at 7:32 PM, wrote: 27/8/2013 12:06 ��, �/� Tim Delaney ��: On 27 August 2013 18:45, mailto:ni...@superhost.gr>> wrote: Iam having major issues with my VPS provider and losign customers

Re: New VPS Provider needed

2013-08-27 Thread Joel Goldstick
On Tue, Aug 27, 2013 at 5:38 AM, Chris Angelico wrote: > On Tue, Aug 27, 2013 at 7:32 PM, Νικόλαος wrote: >> Στις 27/8/2013 12:06 μμ, ο/η Tim Delaney έγραψε: >>> >>> On 27 August 2013 18:45, Νικόλαος >> > wrote: >>> >>> >>> Iam having major issues with my VPS provid

Re: New VPS Provider needed

2013-08-27 Thread Chris Angelico
On Tue, Aug 27, 2013 at 7:32 PM, Νικόλαος wrote: > Στις 27/8/2013 12:06 μμ, ο/η Tim Delaney έγραψε: >> >> On 27 August 2013 18:45, Νικόλαος > > wrote: >> >> >> Iam having major issues with my VPS provider and losign customers >> becaue the provider doesnt set thi

Re: Getting request's source site

2013-08-27 Thread Chris Angelico
On Tue, Aug 27, 2013 at 7:23 PM, Steven D'Aprano wrote: > Need a hand disposing of a body? Yeah, there are > legitimate reasons for this, I'll help if I can. Forcing visitors to your > website to set the Referer header? Nope, no way. Friends help friends move bodies. But even they don't help move

Re: New VPS Provider needed

2013-08-27 Thread Νικόλαος
Στις 27/8/2013 12:06 μμ, ο/η Tim Delaney έγραψε: On 27 August 2013 18:45, Νικόλαος mailto:ni...@superhost.gr>> wrote: Iam having major issues with my VPS provider and losign customers becaue the provider doesnt set thign u[ cprrectly. Given your posting history in this newsgroup/mailin

Re: Getting request's source site

2013-08-27 Thread Steven D'Aprano
On Mon, 26 Aug 2013 08:03:33 -0700, Guy Tamir wrote: [asking about Referer header] > In what cases will i have this header? is there something i can do to > enforce having it? Are there any other ways? The Referer header is in the HTTP Request that is made to your server. What server are you usi

Re: Missing something on exception handling in Python 3

2013-08-27 Thread Steven D'Aprano
On Tue, 27 Aug 2013 00:00:36 -0500, Skip Montanaro wrote: > I found this question/answer on Stack Overflow: > > http://stackoverflow.com/questions/15123137 > > but after fiddling around with it, I can't find a solution that works > for Python 3.2 and 3.3, let alone 2.x. In 3.2, exceptions have

Re: How come StopIteration.__base__ is not BaseException?

2013-08-27 Thread Steven D'Aprano
On Tue, 27 Aug 2013 08:17:15 +0200, Marco Buttu wrote: > On 08/26/2013 10:10 PM, random...@fastmail.us wrote: > >> The reason KeyboardInterrupt and SystemExit inherit from BaseException >> is because you often want them to escape (allowing the program to quit) >> from code that would otherwise ca

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-27 Thread Luca Cerone
Dear all, first of all thanks for the help. As for your remark, you are right, and I usually tend to post questions in a way that is detached from the particular problem I have to solve. In this case since I only have a limited knowledge of the cookies mechanism (in general, not only in Python),

Re: New VPS Provider needed

2013-08-27 Thread Tim Delaney
On 27 August 2013 18:45, Νικόλαος wrote: > > Iam having major issues with my VPS provider and losign customers becaue > the provider doesnt set thign u[ cprrectly. > Given your posting history in this newsgroup/mailing list, I wouldn't be so sure that the problem is on your VPS provider's end.

Re: New VPS Provider needed

2013-08-27 Thread Νικόλαος
Στις 27/8/2013 11:12 πμ, ο/η Chris Angelico έγραψε: On Tue, Aug 27, 2013 at 5:17 PM, Chris Angelico wrote: On Tue, Aug 27, 2013 at 5:13 PM, wrote: So, if someone want to help me out it would be nice if he could provide me with services free of charge for that time period, or at least

Re: New VPS Provider needed

2013-08-27 Thread Chris Angelico
On Tue, Aug 27, 2013 at 5:17 PM, Chris Angelico wrote: > On Tue, Aug 27, 2013 at 5:13 PM, Νικόλαος wrote: >> So, if someone want to help me out it would be nice if he could provide me >> with services free of charge for that time period, or at least at the end of >> they year. > > Are we allowed

Re: TypeError: 'int' object is not callable

2013-08-27 Thread Terry Reedy
On 8/26/2013 10:45 PM, autobotprime...@gmail.com wrote: dear friends when i try to execute following lines import time a = time.daylight() print(a) result is You left out the traceback that shows which line had the error. In this case, Krishnan could tell, but in other code snippets people

New VPS Provider needed

2013-08-27 Thread Νικόλαος
Hello, My Problem is also that i made the mistake of payimg my current provider up until 5/5/2014 I had nothing but trouble with them and they wont refund back. I lost 4 customers, good webistes due to their inablity. I can even prvide proof for what i paid and for the perioed iam writing 5/

Re: New VPS Provider needed

2013-08-27 Thread Chris Angelico
On Tue, Aug 27, 2013 at 5:13 PM, Νικόλαος wrote: > So, if someone want to help me out it would be nice if he could provide me > with services free of charge for that time period, or at least at the end of > they year. Are we allowed to go peeking at all your customers' private/personal data again

New VPS Provider needed

2013-08-27 Thread Νικόλαος
I know this isn't the place to ask but since most of you are web programmers also, you possibly do hosting too. Problem is also that i made the mistake of paying my current provider up until 5/5/2014 I had nothing but trouble with them and they wont refund back. I lost 4 customers, good webs