bruno at modulix wrote:
> Philippe Martin wrote:
> (snip)
>>
>> l_init really is a boolean parameter and l_value a value that _might_
>> exist in a shelve.
>>
>> So I just want to have a parameter to a method so if the first value
>> tested is false (
Benji York wrote:
> D wrote:
>> Is it possible to have Python authenticate with Active Directory?
>> Specifically what I'd like to do is have a user enter a
>> username/password, then have Python check the credentials with AD - if
>> what they entered is valid, for example, it returns a 1, otherwi
bruno at modulix wrote:
> Philippe Martin wrote:
>> bruno at modulix wrote:
>>
>>
>>>Philippe Martin wrote:
>>>(snip)
>>>
>>>>l_init really is a boolean parameter and l_value a value that _might_
>>>>exist in a shelve.
Fredrik Lundh wrote:
> Philippe Martin wrote:
>
>> l_init really is a boolean parameter and l_value a value that _might_
>> exist in a shelve.
>>
>> So I just want to have a parameter to a method so if the first value
>> tested is false (l_init) then the
Through Wine maybe ?
Philippe
Dennis Lee Bieber wrote:
> On 4 May 2006 09:57:15 -0700, [EMAIL PROTECTED] declaimed the
> following in comp.lang.python:
>
>> I am using python on a linux terminal.
>>
>> I want to shutdown a remote windows box. I found a script which does
>> something like this
Xiao Jianfeng wrote:
> Tim N. van der Leeuw wrote:
>> Your question is insufficiently clear for me to answer.
>>
>> Do you want to know how to read from standard-input in a Python
>> program?
>>
>> Do you want to know how to start an external program from Python, and
>> then connect something to t
[EMAIL PROTECTED] wrote:
>
> Hello together !!
>
> I have programmed a List Control and I introduced information in several
> rows. What I want to do is, modify this information when i select a row
> and press a button.
> There two options:
> - when i do this, a window appears and asks me to
Looking at their flash demo made me want to try it, but after all
dependencies installed, I get "Fatal Python error: can't initialise module
gtksourceview Aborted (core dumped)"
Is it stable ?
Philippe
mystilleef wrote:
> The powerful no-nonsense, no-frills, no-hassle, no-fuzz editor,
> S
Hi,
Are there any (even prototypes/proof of concept) gdm/kdm/xdm.../-style
packages written in Python ?
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
Philippe Martin wrote:
> Hi,
>
> Are there any (even prototypes/proof of concept) gdm/kdm/xdm.../-style
> packages written in Python ?
>
> Regards,
>
> Philippe
I guess to further define my problem:
I am looking for clues as to how to launch an X11 session (remo
[EMAIL PROTECTED] wrote:
>>You can get Python sources from python.org
>
> I'm unable to locate a source file brings that will work with WinZip.
> Can anybody please point me to the exact URL that will get me to the
> source code? but it it is tar ball format or a gzip format, than that
> will wor
John Machin wrote:
>> http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tar.bz2
>
> And the reason for posting that would be what? WinZip doesn't support
> bzip2 compression.
>
> http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz (a gzipped tar
> file) is what the OP would be better point
John Salerno wrote:
> Since the connect method of mysqldb requires a database name, it seems
> like you can't use it without having a database already created. So is
> there a way to connect to your mysql server (without a specified
> database) in order to create a new database (i.e., the CREATE D
Xah Lee wrote:
> Software Needs Philosophers
>
> by Steve Yegge, 2006-04-15.
>
> Software needs philosophers.
>
> This thought has been nagging at me for a year now, and recently it's
> been growing like a tumor. One that plenty of folks on the 'net would
> love to see kill me.
>
> People don'
Hi,
I need to write a script to reduce the resolution/color depth of an image
(ex: .jpg) based on a target size.
The point is for the target picture to still be "understandable" - yet I
target getting down to 5K.
Are there libraries out there that could help me start ?
Thanks
Philippe
--
ht
Larry,
I actually did not find what I needed in PIL (missed it ?) but found this
package quite usefull: http://www.imagemagick.org/script/index.php
Philippe
Larry Bates wrote:
> Philippe Martin wrote:
>> Hi,
>>
>> I need to write a script to reduce the resolution/co
Thanks,
I'll give it a shot.
Philippe
Kamilche wrote:
>
> To reduce the color depth of an image in PIL:
> im = im.convert(mode="P", palette=Image.ADAPTIVE)
--
http://mail.python.org/mailman/listinfo/python-list
Kamilche,
I am posting the code in another thread but am not certain that convert does
anything to the picture color depth ... still searching in the doc.
Philippe
Kamilche wrote:
>
> To reduce the color depth of an image in PIL:
> im = im.convert(mode="P", palette=Image.ADAPTIV
Hi,
Thanks to the NG, I got the script hereunder working.
1) I am not certain that the call to convert does much (checking the doc)
2) Can this be improved as far as the final image size in (X,Y) ?
For instance, passing a large .jpg with a target byte size of 7000, I get
final (X,Y) results aro
Kamilche wrote:
> Be sure and use mode = P instead of RGB, like you have in your other
> code. P is for palettized images. Don't palettize if you're storing as
> JPG, only if you're storing as PNG or some other format that can handle
> 256 color images.
My problem is this:
1) If I use a save to
nikie wrote:
> Philippe Martin wrote:
>> Hi,
>>
>> Thanks to the NG, I got the script hereunder working.
>>
>> 1) I am not certain that the call to convert does much (checking the doc)
>
> I think you only need it if your source image comes in a format
PS: where can I find those extra parameters in the doc (ex: quality) ... I
must be blind.
Philippe
nikie wrote:
> Philippe Martin wrote:
>> Hi,
>>
>> Thanks to the NG, I got the script hereunder working.
>>
>> 1) I am not certain that the call to convert do
Many thanks
nikie wrote:
> Philippe Martin wrote:
>> PS: where can I find those extra parameters in the doc (ex: quality) ...
>> I must be blind.
> In the http://www.pythonware.com/library/pil/handbook/formats.htm page.
> Look in the "JPEG" section. Different
Not sure I understand: a wx.CheckBox has up to three states (on, off ...
does not apply/greyed)
Is that what you read from your file ?
Philippe
luca72 wrote:
> Hello
> I write one file using:...(i think that is ok for write all the
> lines of my list)
> luca = open('/tmp/luca', 'w')
> luc
Hi,
I do not see where you close the file: I beleve you need to close it to
flush information prior to reading again.
Philippe
luca72 wrote:
> i have again one simple problem:
> the script is this:
>
> def output(self):
> global lista2
> lista2 = open('/lista2', 'w')
>
That was nasty Steve - at least I'm ready for any kind of bad new today ;-)
Regards,
Philippe
Steve Holden wrote:
> As the only director of the Python Software Foundation to vote against a
> recent Board motion to implement the change in licensing terms described
> in
>
>http://pyfound.b
Hi,
A suggestion:
I would use encryption (ex: AES):
Hide a secret key in your code and generate an encrypted (readable: ex 07 7B
6F ) version of the correct info (such as full release, or demo expire
in ...) with that very same key.
Have your software input that encrypted info (some GUI di
Hi,
Use the DES example here (DES has been cracked but is definitly secure
enough for your need):
http://www.amk.ca/python/writing/pycrypt/pycrypt.html
Can't help you with the Dutch ;-)
Philippe
Math wrote:
> P..Philippe..
> Where can I find some sample code if any?
> And I'm not
Hi,
I do not know what your constraints are ... but, having been through the
same thought process (because there is not VB6 _free_ calendar) ... I feel
that getting to that stage _might_ justify rewriting the application in
Python/wxPython (and potentially gain cross-platform compatibility in the
Hi,
Is there (maybe through pywin) a way to call the default browser with a url
as param ?
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
BartlebyScrivener wrote:
> Philippe,
>
> import webbrowser
>
> webbrowser.open("http://groups.google.com/group/comp.lang.python";)
>
> rpd
Many thanks,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
Roman Susi wrote:
> Hi!
>
> Out of curiosity, how do I draw functions outside classes with UML? How
> module could be drawn in this case?
>
I'm not up to par on the latest UML specs (or not too old) - but I don't
believe UML handles that: it is called a class diagram after all.
> More theoretic
But not in UML: a class diagram will represent classes while a sequence
diagram objects.
Philippe
bruno at modulix wrote:
> Philippe Martin wrote:
>> Roman Susi wrote:
>>
> (snip)
>
>>>More theoretical question is if I create classes on the fly, how UML can
&
I needed a laugh: funny but why ?
Felipe Almeida Lessa wrote:
> Em Ter, 2006-04-04 às 16:42 -0700, flamesrock escreveu:
>> Hi,
>
> Hi
>
>> Are there any good decompilers for python?
>
> Yes
>
>> -Thanks
>
> You're welcome =)
>
--
http://mail.python.org/mailman/listinfo/python-list
,
Philippe
Felipe Almeida Lessa wrote:
> Em Ter, 2006-04-04 às 20:40 -0500, Philippe Martin escreveu:
>> I needed a laugh: funny but why ?
>
> I made a simple answer for a simple question. =)
>
> Sometimes the way people ask things annoys me a lot, they seem to think
> that
Yes
John Salerno wrote:
> John Salerno wrote:
>> Diez B. Roggisch wrote:
>>
>>> Alternatively you can see it as boundary lines, in the order left,
>>> top, right, bottom.
>>>
>>> (10, 20, 30, 100)
>>
>> So in the above, from where are the numbers being counted? 10 is ten
>> pixels from the l
Hi,
I am currently packaging python and a few libraries: PyWin32, PySerial, PIL,
wxPython, HTML generator, numarray for U3 distribution.
Basically that means that the complete system initially in $path1\host will
be moved dynamically to $path2\at execution.
To take PIL as an example, I notice w
PS: I forgot to say that on the win32api import I get a "DLL load failed"
Philippe
Philippe Martin wrote:
> Hi,
>
> I am currently packaging python and a few libraries: PyWin32, PySerial,
> PIL, wxPython, HTML generator, numarray for U3 distribution.
>
> B
Hi,
I had to move the dlls from pywin32_system32 to where python.exe is.
PS: if someone has a great desire to have another library included in the
package, let me know.
Regards,
Philippe
Philippe Martin wrote:
> Hi,
>
> I am currently packaging python and a few libraries
Hi,
It is very hard to avoid C in embedded/low-level/industrial programming.
Philippe
John Salerno wrote:
> Because of my 'novice-ness' in programming, I had always thought that C
> was replaced by C++ and wasn't really used anymore today. I know that's
> not the case at all now, but I'm stil
Hi,
I understand that access can be accessed through an ODBC driver under
windows (instead of Jet).
I am wondering if the same can be done under Linux.
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
Thanks a lot Felipe.
Regards,
Philippe
Felipe Almeida Lessa wrote:
> Em Seg, 2006-04-10 às 10:38 -0500, Philippe Martin escreveu:
>> I understand that access can be accessed through an ODBC driver under
>> windows (instead of Jet).
>>
>> I am wondering if the s
Thanks TIM.
Philippe
Tim Golden wrote:
> [Philippe Martin]
>
> | I understand that access can be accessed through an ODBC driver under
> | windows (instead of Jet).
> |
> | I am wondering if the same can be done under Linux.
>
> You need to look at the mdb
Hi,
I need to add a feature to an existing C wrapper that is not based on swig
(pycsc:http://homepage.mac.com/jlgiraud/pycsc/Pycsc.html)
I'm not the best with C wrapper and would love it if there were some type of
utility that would generate the correct code (most) for a specific C
function that
Hi,
First I'd check if the type is indeed tuple.
How about converting the tuple to a list, modifying the list, then making it
a tuple again ?
Philippe
Mike Howard wrote:
> Should read ...
> I'm doing some conversion of vb code to python code and I have a
> problem with a COM object
>
> Spec
Hi,
Is it possible to define a packed C structure in python and pass it to the c
module, or should the wrapper do that ?
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
Thanks,
It's a pretty big structure: painfull to pass each item as a param.
Regards,
Philippe
"Martin v. Löwis" wrote:
> Philippe Martin wrote:
>> Is it possible to define a packed C structure in python and pass it to
>> the c module, or should the wrapper d
is that ?
PS: the wrapper also has to work under multiple OSs
Regards,
Philippe
"Martin v. Löwis" wrote:
> Philippe Martin wrote:
>> It's a pretty big structure: painfull to pass each item as a param.
>
> So how else would you like to pass them? Define the
I misslead you: it is a smart card-style ioctl ...
Philippe
"Martin v. Löwis" wrote:
> Philippe Martin wrote:
>> The call actually is an IOCtl: depending on the control code, the
>> structure has a different format.
>
> Ah. In that case, I recommend to use the
I'll take a look,
thanks.
Jay Parlar wrote:
>
> On Apr 14, 2006, at 9:44 AM, Philippe Martin wrote:
>
>> Thanks,
>>
>> It's a pretty big structure: painfull to pass each item as a param.
>>
>> Regards,
>>
>> Ph
101 - 150 of 150 matches
Mail list logo