2023
Dec
30
comment Two images do not perfect align when using Pillow putalpha to set image transparency
Thanks I have updated my question to add my code!
Dec
30
revised Two images do not perfect align when using Pillow putalpha to set image transparency
added 681 characters in body
Dec
30
asked Two images do not perfect align when using Pillow putalpha to set image transparency
Nov
15
awarded Popular Question
Nov
15
awarded Notable Question
Oct
9
awarded Notable Question
Sep
14
awarded Popular Question
Jul
6
comment Shouldn't IPsec be an application layer protocol since it is "over UDP"?
@Ja1024 I am not disagreeing. As I said, I am a teacher, so when I tell students that "IPsec is a network layer protocol", I need to explain why a network layer protocol "works on UPD port 500". I am just saying it is not strictly correct to say "IPsec is a network layer protocol" but I get what it means, and I am gonna explain it to my students.
Jul
5
comment Shouldn't IPsec be an application layer protocol since it is "over UDP"?
I maybe being nitpicking, but I am a teacher and I need to know all the details to tell my students the correct thing. I am asking this question because I want to know if there is any hidden facts that I don't know, which makes IPsec a real network layer protocol. From the answers I see, the major functional part still works on Application. Thanks!
Jul
4
comment Shouldn't IPsec be an application layer protocol since it is "over UDP"?
Hi, Ja1024, in the real-world TCP/IP 5-layer stack, there is no session layer. Above the transport layer is application. So, if a protocol uses UDP to encapsulate its data, it should be considered as an application layer protocol, right?
Jul
4
asked Shouldn't IPsec be an application layer protocol since it is "over UDP"?
Jul
2
comment How to setup and access session of Shopify using SQLite?
This only get the session id, but how to get the actual session from the storage?
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
@Nitish Isn't it easier to read and exactly follows my intention? I only want to see if n is between n1 and n2, and don't want to find the min and max of them.
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
@ Kelly Yes for my specific case, including the boundary or not does not make much difference.
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
This is a good point and I didn't realize it, but it is acceptable in my case, thanks!
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
Exactly what I want, thanks!
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
Anyway to do it in one line?
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
Thanks, this is a smart way but a bit ambiguous if someone else is reading your code without prior knowledge.
Apr
22
comment The simplest and most pythonic way to test if a variable is between two other variables?
I just wonder if there is a way I only need to type n1 and n2 once?
Apr
22
asked The simplest and most pythonic way to test if a variable is between two other variables?
1 2 3 4 5