') is false
or Άγνωστη Προέλευση )[0]
The you try and get the host name from the ip address Άγνωστη
Προέλευση, but Άγνωστη Προέλευση is not an ip address, so you get an
error.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
to have.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
:
except socket.gaierror as e:
city = host = UnKnown Origin
To:
except socket.gaierror as e:
city = Unknown City
host = Unknown Host
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
protocols
issue that has nothing whatsoever to do with python.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
which takes the same params
as comp do:
def f( t1, u1, t2, u2 ):
if u1 == u2:
return t2
else:
return temp( t2, u2, u1 )
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
if they're in different units
(2 lines), and then do his comparison (5 lines).
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 24 Sep 2013 14:51:31 +, Denis McMahon wrote:
Question, given the original temp function as previously described by
yourself, what does the following function f which takes the same
params as comp do:
def f( t1, u1, t2, u2 ):
if u1 == u2:
return t2
else
value is the input value.
Then to compare T1 in u1 and T2 in u2, convert them both to a common
scale (which might be u1 or u2 or some other scale) using your temp
function, and then compare the resulting values.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman
] The ip address that it is sending ack packets to as part of the smtp
session, so unless you're using a proxy somewhere, this will be your
system's ip address. Can't fake it. If the other system doesn't know your
ip address, it can't send acks, and the tcp session fails.
--
Denis McMahon
until you understand how tcp/ip networks
function. This NG is not a networking for dummies course.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
to prove communication works, he might be better off using
a message subject of test and a message body of this is a test
message.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
IN
comp.lang.python
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
to their spf score.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
/sudoers you must set the permissions back to 440
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
? Just:
wget -m url
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
that you're more interested in having arguments and
slinging insults than you are in discussing python. I'm here to discuss
python.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
of pythonic manner, rather
than actual python code - also because some newsreaders may break
indenting etc, I've used ; as line terminators and {} to group blocks)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
that provides some function that you're trying to
use.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 01 Jul 2013 21:18:26 +0200, Antoon Pardon wrote:
I am not baiting Nikos.
Your opinion, mine differs.
all I have done in the last two weeks that involves Nikos as a
subject is the Don't feed the troll thread
Calling him a troll is baiting. Please stop.
--
Denis McMahon
On Mon, 01 Jul 2013 20:42:48 +0200, Antoon Pardon wrote:
How about the following comprimise.
Let me know what you think about this.
How about you just ignore him.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 19 Jun 2013 13:18:49 -0700, jacksonkemp1234 wrote:
windowSurface.blit(playerImage, player)
for bear in bears:
windowSurface.blit(bearImage, bear)
Try changing this to draw the bears first, then the player.
--
Denis McMahon, denismfmcma...@gmail.com
On Wed, 19 Jun 2013 13:18:49 -0700, jacksonkemp1234 wrote:
if moveDown and player.right WINDOW_WIDTH:
player.right += MOVE_SPEED
Should this be moveRight instead of moveDown?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python
location, then makes a point to the same memory
location as b points to.
b is a pointer to a memory location containing the value 6
a is a pointer to the same memory location
Do you understand the difference?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo
- you could put both code (just append .txt to
the filename) and screenshots from your browser there with no difficulty
at all and just include links.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 16 Jun 2013 11:35:12 +0300, Nick the Gr33k wrote:
TB behaves for me the same way. Any line 80 chars gets a newline. Why
this is happening? Why not post up to 256 chars in a single line?
Because this is usenet. Read the RFCs if you must know!
--
Denis McMahon, denismfmcma
On Sun, 16 Jun 2013 11:07:12 +0300, Nick the Gr33k wrote:
On 16/6/2013 9:32 πμ, Denis McMahon wrote:
On Sat, 15 Jun 2013 19:18:53 +0300, Nick the Gr33k wrote:
In both situations we still have 2 memory units holding values, so
hows that different?
Consider that each named variable
On Sun, 16 Jun 2013 12:59:00 +0300, Nick the Gr33k wrote:
Whats the difference of interpreting to compiling ?
OK, I give up!
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
what is a byte value
Seriously? You don't understand the term byte? And you're the support
desk for a webhosting company?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 14 Jun 2013 12:32:56 +0300, Nick the Gr33k wrote:
I'mm not trolling man, i just have hard time understanding why numbers
acts as strings.
It depends on the context.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
that it works in another fashon(only if the
counter-arguments are strong).
Then you need to stop trying to write python code, because you refuse to
accept how python works, and python is not going to change for you!
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman
misinterpretation of his
terminology.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
, -1)]
middle = sentence.split()[1:-2]
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 15 Jun 2013 13:41:21 +, Denis McMahon wrote:
first_and_last = [sentence.split()[i] for i in (0, -1)] middle =
sentence.split()[1:-2]
Bugger! That last is actually:
sentence.split()[1:-1]
It just looks like a two.
--
Denis McMahon, denismfmcma...@gmail.com
--
http
for such things in
ms office?
A quick google finds me vb code to download a url into a string -
presumably once you've done that you can find the value you want to
scrape into your spreadsheet.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
on your own,
perhaps the really important question you need to be asking yourself
right now is should I even be trying to code this in python when my
basic knowledge of python coding is so poor?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
, =)
test(=, x, x)
test(x, =, =)
test(x, =, x)
test(x, x, =)
test(x, x, x)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
back at the host server, or some script on your server that can obtain
and serve the appropriate resources.
Alternatively, how about displaying the third party website in an iframe
within your own document? Although that's not really pythonic, just
htmlic.
--
Denis McMahon, denismfmcma
() ):
print thing
Prints 1, 2, 3
for thing in sorted( things.keys() ):
print thing
Prints a, b, c
Now although things[b] is a valid reference because b is a key in a
key - value pair, things[3] is not a valid reference, because 3 is not a
key in a key - value pair.
--
Denis McMahon
On Tue, 04 Jun 2013 07:52:17 +0800, usman mjoda wrote:
Good day everyone, I need assistance for python codes of aes 128 bits
key that can be run on SAGE Application. Thanks
google pycrypto
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
need root access.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
(untested) with the relevant imports etc:
nfn=data0.0.+str(max([int(f[8:])for f in os.listdir(p)if re.match
('^data0.0.[0-9]+$',f)])+1)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 26 May 2013 21:32:40 -0700, Avnesh Shakya wrote:
how to compare two json file line by line using python? Actually I am
doing it in this way..
Oh what a lot of homework you have today.
Did you ever stop to think what the easiest way to compare two json
datasets is?
--
Denis
line?
Your code at (1) creates a single list of all the json objects
The code you replied to loaded each object, assumed you did something
with it, and then over-wrote it with the next one.
As for (2) - either inspection, or errors from the json parser.
--
Denis McMahon, denismfmcma
named Foo? The same way. How do you
represent an empty dict/mapping named Foo? Lemme look up my
documentation... ah, the same way. Does this seem right to
you?/JubalEarly
Foo type=list /
Foo type=mapping /
Foo type=string /
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org
On Thu, 23 May 2013 07:17:58 -0700, Keira Wilson wrote:
Dear all who involved with responding to my question - Thank you so much
for your nice code which really helped me.
Hold on a sec? Someone posted code that gave the correct answer to a
homework question?
--
Denis McMahon, denismfmcma
scripts.
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
)
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 22 May 2013 01:15:27 +, i...@databaseprograms.biz wrote:
If you would like this in text format instead, please let me know.
What if we don't want it at all?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
as if bWater is an integer value and doesn't have
a .clicked attribute.
Where is bWater assigned, and what is it assigned to?
If you have a clickable water widget of some sort in your gui, what is
the click handler for that widget defined as?
--
Denis McMahon, denismfmcma...@gmail.com
--
http
to change
the spelling of the class name to make it plural.
I wouldn't use an apostrophe for pluralisation.
The Normal pluralisation of FooEntry would be FooEntries. Who are you
expecting to read the docstring? English majors, grammar nazis, wikipedia
editors, programmers, or all 4?
--
Denis
it is probably your homework task, so
I really shouldn't tell you any more than that.
Also, I might not be right about where you need to make the change, but
hey, this is the internet, it must be right, yeah?
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo
) ) and isinstance( thing[1], ( int, long) ):
if thing in bits:
bits[thing] += 1
else:
bits[thing] = 1
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
] + arr1[2:4] + arr1[5:]
print arr2
# output is: ['a', 1, 3]
print arr3
# output is: ['a', 'c', 1, 3]
--
Denis McMahon, denismfmcma...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
401 - 454 of 454 matches
Mail list logo