Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Handshake ( Server Hello )
Post: RE: Handshake ( Server Hello )

(May-26-2023, 12:03 AM)DigiGod Wrote: (May-25-2023, 10:39 AM)JohnnyCoffee Wrote: Do I need to send a ( Server Hello ) as a response to the handshake ( Client Hello ) received, but I couldn’t find ...
JohnnyCoffee Networking 2 1,485 May-27-2023, 03:23 PM
    Thread: Handshake ( Server Hello )
Post: Handshake ( Server Hello )

Do I need to send a ( Server Hello ) as a response to the handshake ( Client Hello ) received, but I couldn’t find out why it doesn’t work? If I can help, below is an example: import socket import ss...
JohnnyCoffee Networking 2 1,485 May-25-2023, 10:39 AM
    Thread: Thread Limits . . .
Post: RE: Thread Limits . . .

(Mar-02-2023, 12:57 PM)jefsummers Wrote: In Cython you can release the GIL, but given the application (will be IO intensive rather than CPU intensive) I would agree with @deanhystad that the GIL is ...
JohnnyCoffee General Coding Help 10 1,678 Mar-02-2023, 04:44 PM
    Thread: Thread Limits . . .
Post: RE: Thread Limits . . .

(Mar-01-2023, 09:49 PM)deanhystad Wrote: You likely won't see any problems that are related to the global interpreter lock. I've done quite a bit of programming involving muliple threads talking to...
JohnnyCoffee General Coding Help 10 1,678 Mar-01-2023, 11:16 PM
    Thread: Thread Limits . . .
Post: RE: Thread Limits . . .

(Mar-01-2023, 01:09 PM)jefsummers Wrote: The concept to understand is the GIL. Here is an article that explains what the GIL is, why multiple threads may exist and yet only one executes at a time, e...
JohnnyCoffee General Coding Help 10 1,678 Mar-01-2023, 01:17 PM
    Thread: Thread Limits . . .
Post: RE: Thread Limits . . .

(Mar-01-2023, 02:12 AM)deanhystad Wrote: Threads have nothing to do with cpus Of course it is, a thread is the smallest processing unit, it's what the CPU does.
JohnnyCoffee General Coding Help 10 1,678 Mar-01-2023, 04:42 AM
    Thread: Thread Limits . . .
Post: Thread Limits . . .

On a computer with only (1 CPU), how many threads can I run at the same time in the python process ?
JohnnyCoffee General Coding Help 10 1,678 Mar-01-2023, 02:00 AM
    Thread: Read the Processor . . .
Post: Read the Processor . . .

Hello I'm using the platform module with the function ( machine ), which returns the architecture of the processor, but I need to know how many ( Core ) are in the processor, which would be the path o...
JohnnyCoffee General Coding Help 1 789 Feb-26-2023, 07:14 PM
    Thread: Decode string ?
Post: Decode string ?

Simulating a direct http request in the browser address bar for the module (wsgiref), with the following url: ( OvO ) - Http Request : http://127.0.0.1:8000/'session':'meLNaJb6kdYDjOHRzBdQzAjRArmpEi...
JohnnyCoffee General Coding Help 1 823 Jan-11-2023, 12:07 AM
    Thread: Prompt of Access ( Authentication Http ) ?
Post: RE: Prompt of Access ( Authentication Http ) ?

I checked the link, but nothing related to schema type and realm as is in the statement below that triggers the window prompt for http authentication: (Dec-07-2022, 10:27 PM)JohnnyCoffee Wrote: ("W...
JohnnyCoffee Networking 4 1,709 Dec-08-2022, 11:12 AM
    Thread: Prompt of Access ( Authentication Http ) ?
Post: Prompt of Access ( Authentication Http ) ?

I'm doing some authentication tests through the http header, but the browser's login prompt window isn't being triggered? I think I'm forgetting something, below is the example: from wsgiref.simple_s...
JohnnyCoffee Networking 4 1,709 Dec-07-2022, 10:27 PM
    Thread: Prompt of Access ( Authentication Http ) ?
Post: Prompt of Access ( Authentication Http ) ?

I'm doing some authentication tests through the http header, but the browser's login prompt window isn't being triggered? I think I'm forgetting something, below is the example: from wsgiref.simple_s...
JohnnyCoffee General Coding Help 1 777 Dec-07-2022, 04:11 PM
    Thread: Problem : IndexError...
Post: RE: Problem : IndexError...

(Nov-16-2022, 04:17 PM)carecavoador Wrote: paco.split('/') returns a list with two empty strings ['', ''] this is the reason. You are trying to access indexes (2, 3) that are out of the list range (...
JohnnyCoffee General Coding Help 5 1,053 Nov-16-2022, 09:21 PM
    Thread: Problem : IndexError...
Post: Problem : IndexError...

I'm capturing a string (url) where the array will be assembled at runtime, but I'm facing the following error ( IndexError: list index out of range ), how do I remedy this problem, below is the code: ...
JohnnyCoffee General Coding Help 5 1,053 Nov-16-2022, 03:52 PM
    Thread: Get User Mac Address ?
Post: RE: Get User Mac Address ?

(Nov-16-2022, 01:42 PM)carecavoador Wrote: Did you solve this already? I'm not sure I understood what you are trying to do. Do you want to run a script remotely to get a local mac adress? If this i...
JohnnyCoffee Networking 4 2,699 Nov-16-2022, 02:39 PM
    Thread: Get User Mac Address ?
Post: Get User Mac Address ?

I'm using the uuid module to try to capture the source mac address ( cleinte ). Using the code below locally I can get the source mac address (local device), but when I remotely run the destination ma...
JohnnyCoffee Networking 4 2,699 Nov-10-2022, 07:09 PM
    Thread: Get session id from users ?
Post: Get session id from users ?

I'm developing a distributed software (in python) that I intend to run on the web (browser) and I came across a question about session id? For this, I need to develop a solution ( Stateful ) between (...
JohnnyCoffee News and Discussions 0 680 Nov-10-2022, 12:53 AM
    Thread: Wsgiref with asyncio ?
Post: RE: Wsgiref with asyncio ?

(Oct-31-2022, 03:47 PM)wavic Wrote: You can print a message for every request and after that you await asyncio.sleep(15) both in maincoro. Run the whole thing and refresh the "web page" two-three ti...
JohnnyCoffee Networking 8 2,414 Nov-01-2022, 08:35 PM
    Thread: Wsgiref with asyncio ?
Post: RE: Wsgiref with asyncio ?

(Oct-31-2022, 02:50 AM)wavic Wrote: I am not familiar with the plain WSGI at all. Never used directly. So I can only guess how it works. But first something about asycnio. run_until_complete retur...
JohnnyCoffee Networking 8 2,414 Oct-31-2022, 03:42 PM
    Thread: Wsgiref with asyncio ?
Post: RE: Wsgiref with asyncio ?

(Oct-28-2022, 02:59 PM)wavic Wrote: Maybe this could give you some directions. Note that the syntax for making a coroutine is async def/await now. That one there was the old way. Using a decorato...
JohnnyCoffee Networking 8 2,414 Oct-30-2022, 10:36 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020