Re: Simple webserver

2023-10-21 Thread Janis Papanagnou via Python-list
On 20.10.2023 23:05, Paul Rubin wrote: > Janis Papanagnou writes: >> I found a Python sample[*] but I am neither familiar with >> Python nor with the 'simple_websocket_server' package that >> is used in that sample code. But the code looks so simple >> that I&

Re: Simple webserver

2023-10-20 Thread Janis Papanagnou via Python-list
e time implementing the server. :-) Janis -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple webserver

2023-10-18 Thread Janis Papanagnou via Python-list
and I also appreciate your offer and will probably come back soon with a question... - Thanks again! Janis -- https://mail.python.org/mailman/listinfo/python-list

Simple webserver

2023-10-18 Thread Janis Papanagnou via Python-list
possible with Python and with that 'simple_websocket_server' package used? Thanks for any hints (or search keywords, or code samples)! Janis [*] https://pypi.org/project/simple-websocket-server/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Quickie - Regexp for a string not at the beginning of the line

2012-10-26 Thread Janis Papanagnou
Am 26.10.2012 06:45, schrieb Rivka Miller: Thanks everyone, esp this gentleman. Who is "this"? The solution that worked best for me is just to use a DOT before the string as the one at the beginning of the line did not have any char before it. Which was what I suggested, and where you rude

Re: Quickie - Regexp for a string not at the beginning of the line

2012-10-25 Thread Janis Papanagnou
. .hello The dot represents any character. But for specific strings that needs adjustments (e.g. looking for hh not at the beginning of a line would require something like ^[^h]+hh - ah, well, you wrote something similar below). Janis > > In addition, if you have a more difficult proble

Re: Seome kind of unblocking input

2012-09-25 Thread janis . judvaitis
Thanks for reply's. I'll be looking into threading, it seems like right way to go. btw. Why Python developers don't make a wrapper for input() with callback function using threads, so people can easily use nonblocking input? -- http://mail.python.org/mailman/listinfo/python-list

Seome kind of unblocking input

2012-09-21 Thread janis . judvaitis
Hello! I'm building small console like program for embedded system control over serial port. Naturally I need to be able to recieve commands from user and print reply's from embedded device. Since I'm using threads and pipes everything works ok, except that when i call input() there is no way

Re: using subprocess.Popen does not suppress terminal window on Windows

2012-09-13 Thread janis . judvaitis
It looks like normal terminal to me, could You define normal? Looks like it appears only when target script prints something, but it shouldn't cus I'm using pipes on stdout and stderr. If anyone is interested I'm using function doPopen from here: http://code.google.com/p/mansos/source/browse/tr

Re: using subprocess.Popen does not suppress terminal window on Windows

2012-09-13 Thread janis . judvaitis
Thanks for answer, but that's not helping. I'm making a little embedded system programming IDE so I need to run .exe(windows only), make commands, perl & python scripts etc(multiplatform). I'm using subprocess.Popen for all of them and it works fine except that blank console window and btw it

Re: using subprocess.Popen does not suppress terminal window on Windows

2012-09-12 Thread janis . judvaitis
Hi, and I'm sorry for using this old thread, but I'm experiencing the same problem, except, that I wan't to execute any shell script or exe without blank terminal window. Is there any way in python to supress blank console screen while script is executing? Multiplatform solution would be nice.

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-10 Thread Janis
I have confirmed that the signal involved is SIGKILL and, yes, apparently OS is simply running out of memory. Thank you all, again! Best Regards, Janis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Janis
SIGTERM? Then I guess these could be misleading statuses from those cases when I have terminated the sessions myself, and when there is the real problem apparently the caller detected nothing here. SIGKILL and SIGTERM would probably also explain why there was nothing in stderr. Thanks, Janis P.S. the probl

Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Janis
thon 2.6, Python 2.7 (and I think it happened also in Python 2.5, but I'm not sure) Thanks, Janis -- http://mail.python.org/mailman/listinfo/python-list