pycrypto 3DES keysize

2006-12-13 Thread Ning
I'm trying to write an IM client which sends encrypted messages to the
server.  I tried to use pycrypto library, but when I came to 3DES
cypher I was confused about the keysize to use.  In the standard it
said that it should be either 112 bits or 168 bits, whereas it's 16
bytes or 24 bytes in pycrypto.  If I use 16 bytes key to encrypt and
send this key to the server which is expecting a 112 bits key, there'll
be a problem.  How I should solve this?

-- 
http://mail.python.org/mailman/listinfo/python-list


how to fit a gamma distribution

2009-04-13 Thread ning luwen
hi,
  i need to fit a gamma distribution, is there any module can do the job?



luwen
--
http://mail.python.org/mailman/listinfo/python-list


SOAPpy(10060, 'Operation timed out')

2009-05-09 Thread Zhang, Ning
Hi all

I am working for a energy company, we currently want to use api to load
data into the database.

I am new for soappy package. I have done a bit research on 
http://www.ibm.com/developerworks/webse ... #resources
<http://www.ibm.com/developerworks/webservices/library/ws-pyth16/#resour
ces> 
and
http://www.diveintopython.org/soap_web_ ... gging.html
<http://www.diveintopython.org/soap_web_services/debugging.html> 

I can make none of the examples from tutorial correct.  

I have also tried the the example from Endolith posted last year.

viewtopic.php?f=19&t=10038&p=45872&hilit=soap#p45872
<http://www.python-forum.org/pythonforum/viewtopic.php?f=19&t=10038&p=45
872&hilit=soap#p45872> 

Code: Select all
<http://www.python-forum.org/pythonforum/viewtopic.php?f=5&t=12876##>  

from SOAPpy import WSDL

wsdl_file = 'http://xurrency.com/api.wsdl'
server = WSDL.Proxy(wsdl_file)
values = server.getValuesInverse('usd')



However, I got the error message below:  

error: (10060, 'Operation timed out')

Can anyone kind help me with this issue? Alternatively if anyone could
provide any worked examples, i will be much appreciated.  

Kind regards,
Ning Zhang

 


_
The information contained in or attached to this email is intended only for the 
use of the individual or entity to which it is addressed. If you are not the 
intended recipient, or a person responsible for delivering it to the intended 
recipient, you are not authorised to and must not disclose, copy, distribute, 
or retain this message or any part of it. It may contain information which is 
confidential and/or covered by legal professional or other privilege (or other 
rules or laws with similar effect in jurisdictions outside England and Wales).
The views expressed in this email are not necessarily the views of Centrica 
plc, and the company, its directors, officers or employees make no 
representation or accept any liability for its accuracy or completeness unless 
expressly stated to the contrary.

Centrica plc

Registered office: Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD

Registered in England and Wales No 3033654<><><>--
http://mail.python.org/mailman/listinfo/python-list


Re: how to change current working directory while using pdb within emacs

2007-11-26 Thread du yan ning
On Nov 21, 1:28 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> duyanningwrote:
> > I have written a pyhton script that will process data file in current
> > working directory.
> > My script is in an different directory to data file.
> > When I debug this script using pdb within emacs, emacs will change the
> > current working directory to the directory which include the script,
> > so my script cannot find the data file.
>
> > I think this is the problem of emacs because when I start pdb from
> > console directly, it will not change current working directory to the
> > one of script being debugged.
>
> Just issue
>
> import os
> os.chdir('whatever')
>
> inside the pdb-session. Unfortunate, but should work.
>
> Diez

thank you! my friend.
-- 
http://mail.python.org/mailman/listinfo/python-list