rm -f .rnd
(for .bat, just ignore the last line and use "move" instead of "mv",
"del" instead of "rm" and "yourdomain.com" instead of "$1")
It will generate 4 files. Take the two with .pem extension, and put it
on the same directory as the SecureXMLRPCServer code.
3. In order for get running the code, install pyOpenSSL available at
http://pyopenssl.sourceforge.net/. For Windows you may prefer
http://webcleaner.sourceforge.net/pyOpenSSL-0.6.win32-py2.4.exe
That's it.
Special thanks to Laszlo Nagy
Enjoy!
Daniel Crespo
--
http://mail.python.org/mailman/listinfo/python-list
Hi Laszlo,
> Try this (untested):
>
> openssl req -config openssl.cnf -new -out my-server.csr
> openssl rsa -in privkey.pem -out my-server.key
Here's what I tried:
C:\OpenSSL\bin>openssl req -config openssl.cnf -new -out my-server.csr
Loading 'screen' into random state - done
Generating a 1024 b
code I submited earlier, but I need the .pem
files. You told me to change generate.sh to generate.bat. How can I do
that?
Many thanks,
Daniel
Laszlo Nagy wrote:
> Daniel Crespo írta:
> > Laszlo Nagy wrote:
> >
> >>> If you have OpenSSL installed, you can do the following:
Laszlo Nagy wrote:
> >
> >
> > If you have OpenSSL installed, you can do the following:
> >
> > 1. Create a new directory and place the two attached files in it
> > (openssl.cnf and generate.sh)
> > 2. Run "chmod +x gen_cert.sh ; ./gen_cert.sh yourdomain.com"
> I meant generate.sh instead of gen
Hello everybody,
I'm trying to implement a secure xmlrpc server with basis on
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 recipe.
The thing that I'm concerned about is how can I get/create rapidly the
.pem files (the key and cert).
Any help?
Thanks
Daniel
--
http://mail.pyt
Hi to all,
Does anyone know about how to make a dot matrix printer print a PDF
file with the quality of a Microsoft Word printing?
When I print from Microsoft Word, the output is perfect for the kind of
printer. But, from a PDF file, the characters are distortionated in an
uniform way. With "unif
Thank you very much Roger Upole and Tim Golden for your posts...
I found an exe that can print a pdf file (using Acrobat Reader) on any
windows printer right from the command line. It opens Acrobat, order it
to print the pdf file at a certain printer and then closes Acrobat. The
exe is a c-compile
> Have you seen this?
> http://tgolden.sc.sabren.com/python/win32_how_do_i/print.html
> In particular, the section on using win32print directly.
Yes, I have. The problems is that an external program is launched for
handling the file and print it. In the case of PDF, acrobat is
launched. In the
> Have you seen this?
> http://tgolden.sc.sabren.com/python/win32_how_do_i/print.html
> In particular, the section on using win32print directly.
Yes, I have. The problems is that an external program is launched for
handling the file and print it. In the case of PDF, acrobat is
launched. In the
> Adobe has a Windows PostScript driver for free; but that still
> leaves you out... It works as a "printer" but you still have to run the
> normal application to print /to/ it -- and that is what you say you
> don't want! http://www.adobe.com/support/downloads/detail.jsp?ftpID=1500
Yes, I've seen
Hi, Thanks for all the answers.
My main purpose is to print on Windows systems (98,2000,XP) and permit
to print pages of 1/3 of a letter height, and make the printer to stop
at that point (in dot matrix printers). When I have a PDF with that
paper size and send it to print from Acrobat, it prints
Hi to all,
I want to print a PDF right from my python app transparently. With
"transparently" I mean that no matter what program handles the print
petition, the user shouldn't be noticed about it.
For example, when I want to print a PDF, Adobe Acrobat fires and keep
opened. This is what I don't w
Hello to all,
I have to build a server app without GUI. This app must be an xml-rpc
server, so it has to be up all the time. I would control it through the
xml-rpc port from a web interface using php, sending parameters to
defined xml-rpc functions for running certain processes, like viewing
curre
Hi to all,
I'm using adodb for accessing mysql and postgres. My problem relies on
the mysql access.
Sometimes, when I try to execute a query (using ExecTrans method
below), I get this error:
'NoneType' object has no attribute 'cursor'
Maybe this error ocurrs not in my code, but in the mysql mod
Hi Dody!
It works perfect! Now, I want the SimpleXMLRPCServer.py not to be on
the same directory, but in my /lib directory. I tried it, but it seems
that the module loads from python24/ first. How can I change this?
Thank you!
--
http://mail.python.org/mailman/listinfo/python-list
> I was looking on how to get MAC address universally (Windows and Linux) and
> found one package that is doing that and more...
> http://libdnet.sourceforge.net/
Thank you for the info too :)
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Hi, Scott,
Thanks for your answer
>> Hi, I tried: ...
>> # Convert binary data into a string.
>> macaddr = ''
>> for intval in struct.unpack('BB', buffer):
>> if intval > 15:
>> replacestr = '0x'
>> else:
>> replacestr = 'x'
>> macad
By the way:
> Under windows, only needs some dlls
py2exe does this job :)
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much! I will try it as soon as possible, and write you
back with my results.
Best regards
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
> So wxPython doesn't need a runtime? I don't think so. wxPython for me
> sucks under Linux (built on gtk2) and I don't like its API at all. It
> seems a bit awkward to me. Anyway... what do you mean with "much better" ?
It's much better:
- Its portability is superior over PyGTK
- Its look & feel
Good question, I have the same anxiety.
Thanks
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I tried:
import ctypes
import socket
import struct
def get_macaddress(host):
""" Returns the MAC address of a network host, requires >= WIN2K.
"""
# Check for api availability
try:
SendARP = ctypes.windll.Iphlpapi.SendARP
except:
raise NotImplementedError('Usa
Lawrence Oluyede wrote:
> ps. the customer wants Windows as a platform, we develop on Linux using
> PyGTK, postgre and sql server for some old data. This is the true power of
> cross-platform :)
PyGTK is crossplatform, that's true, but it looks very ugly under
Windows and don't know under MacOS (
Hello,
Does anyone know which methods do I have to override for allowing Nones
to be accepted and sended from SimpleXMLRPCServer to the client?
Thanks
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Use adodb for it. Also, adodb accepts mysql, mssql, oracle, access, ...
Anyway, It needs psycopg for accessing Postgres databases, but I
recommend to use adodb, specially if you plan to use conectivity with
other databases too, because the access to them is the same way. Of
course, there are s
> WHY WHY WHY the obsession with one-liners? What is wrong with the good old
> fashioned way?
> if cond:
>x = true_value
> else:
>x = false_value
Let me tell you something: I'm not a one-liner coder, but sometimes It
is necesary.
For example:
I need to translate data from a DataField to
Hi Peter,
Expand your mind.
a = {'whatever': TernaryOperation(quantity>90,"It is very huge","The
value is correct")}
;-)
thanks for your advice anyway
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Oh... Well, thanks for that information.
I'll do this then:
def TernaryOperation(condition,true_part,false_part):
if condition:
return True-part
else:
return False-part
a = {'Huge': TernaryOperation(quantity>90,True,False)}
Thank you
--
http://mail.python.org/mailman/l
Hello to all,
How can I do
new_variable = (variable) ? True : False;
in Python in one line?
I want to do something like this:
dic = {'item1': (variable) ? True-part : False-part}
Any suggestions?
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I would like to know how can I do the PHP ternary operator/statement
(... ? ... : ...) in Python...
I want to something like:
a = {'Huge': (quantity>90) ? True : False}
Any suggestions?
Thanks
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
I prefer wxPython www.wxpython.org
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Ok. Thanks for your answer :-)
I have implemented this and works correctly.
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm in the way for creating an application and its monitor. Yes, there
are 2 applications: The main app, and a monitor. The last one monitors
the main application for keeping it alive, and viceversa. But if I
close the main app, I want to close the monitor.
That is very easy under nt syste
Hello,
I'm in the way for creating an application and its monitor. Yes, there
are 2 applications: The main app, and a monitor. The last one monitors
the main application for keeping it alive, and viceversa. But if I
close the main app, I want to close the monitor.
That is very easy under nt syste
Hi to all,
I have an exe file generated by py2exe. It runs perfect, but in some
parts of my code I raise exceptions. When I close my exe file, and if
it had errors, then they writes down to a .txt file in the same
directory of the referred exe file. I would like to not to generate
this error. Is i
> not sure, but the return value looks like a PID, so maybe you're seeing the
> PID for the cmd.exe instance used to run the program. or something.
No. There wasn't a 196 PID for any of the processes.
--
http://mail.python.org/mailman/listinfo/python-list
Is there a built-in method for transforming (1,None,"Hello!") to
1,None,"Hello!"?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
> >>> import subprocess
> >>> p = subprocess.Popen("c:/windows/notepad.exe")
> >>> p.pid
> 1948
Yes, it works. But in my case, I need to run the program totally
separated from my main program. So, when I start a new program through
subprocess, it doesn't unlink. I mean, if I close my main app, so
Hi
> >>> os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe")
> 1944
I don't get the correct PID.
When I do os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe")
I get 168 (for example), while in the tasklist appears notepad.exe with
the 2476 PID.
Why?
Thanks
Daniel
--
http://mail.python.org/mailman
Hi
Proposition 1:
> data = [0, None, 2, 0]
> ref = data[-1]
> ref = 1
> assert data[-1] == 1
Logically, it doesn't work. Here you are assigning to ref a NEW value.
That won't replace the data[-1] value. It's out of logic this
proposition.
While this (proposition 2):
data = [0, None, 2, ["hello"]
Magnus Lycka wrote:
> You *could* use twisted.runner for process control even if you
> don't use twisted for your networking code. It does seem like
> a funny thing to do, but there's nothing stopping you from doing
> that. The example code in twisted.runner starts up a few shell
> scripts that die
Hi to all,
How can I install an exe file as a service through Python?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Many thanks for your answers.
Respect Init, I need a cross platform solution. Most of times my system
will run in Win98 and XP (more on XP than 98)
Respect Twisted... Mmm... I already started with another networking
library (TCPServer and SimpleXMLRPCServer), and I wouldn't like to mix
things bec
43 matches
Mail list logo