« first day (4257 days earlier)      last day (689 days later) » 

8:54 AM
@Aran-Fey Doesn't sound like you're doing either AuthN nor AuthZ, since you inspect neither subject nor capabilities. If you only act on the user's behalf, it's delegation.
 
But first I have to find out who the user is and get their permission, no?
 
Isn't that between the user and the service provider? You just say "hey user, go do the auth stuff" and get back a token for your trouble.
 
Ok, true, my code never actually finds out who the user is. But still, I'm the one initiating the whole process, and I get a token that can identify the user (to the service provider) and tells the service provider what I'm allowed to do
 
We could call it "CargoAuth". Or "OCult".
 
9:13 AM
Today's funny programming terminology: "convert camel to snake"
 
 
1 hour later…
10:35 AM
Today's useful link to read:
https://aran-fey.github.io/programming-guides/
 
never seen that one :P
Ah, you're the Aran worshipper! Makes sense. Welcome back.
 
I am a Python beginner and learner. I am grateful to be in this python community....
 
That's where we all started :)
 
Even Aran?
 
11:01 AM
I was more of an experimenter than a learner...
 
11:55 AM
> Writing efficient code (not coming anytime soon)
Nice.
 
Honest advertising
 
12:14 PM
Blog writing made efficient
 
 
4 hours later…
4:20 PM
How does one put a frame into a canvas (tkinter)?
 
Usually not at all. A canvas is for drawing, not for widgets
 
I am using a canvas for widgets so that I can have a background image...
(and not be obstructed by the widgets background)
 
Have you tried something like this? Seems easier
 
I would probably use place. I think a canvas-based approach would cause difficulties when the user resizes the window.
 
4:32 PM
Such power you give your users!
 
More hassle than it's worth, honestly. My users should simply keep the dimensions I have chosen for them.
 
If you put it like that... I usually also limit my user interfaces to 2 dimensions.
 
Here is a little prototype that puts eight labels in a frame, and puts the frame in a canvas. Unfortunately, the blank spot in the center of the frame isn't transparent, so you can't see the canvas contents behind it.
 
@Aran-Fey the widgets all have background colours, which look very ugly on the background image...
 
4:52 PM
stackoverflow.com/questions/19080499/… is interesting. You can create transparent windows on certain OSes. However, I don't think you can use it to make just the backgrounds of a widget transparent, while the background of its container is still opaque
For example, If I make the frame in my prototype transparent, I still can't see the lines on the canvas behind it. I can see my desktop background though.
 
 
6 hours later…
11:11 PM
Anyone here every try using Google Cloud Platform's API? I just posted a total rant on their subreddit stemming from basically not being able to understand how to do something basic, like pass an authentication header to the RESTful API.
They seem to make you use a command line binary to authenticate, then your RESTful API requests should "just work" but that seems so off-putting to me. It that normal? I want to just pass an API key to an authentication header like normal :/
Also this Python client library: i.gyazo.com/e5e95351b6a8a8804c163640482492da.png
Is it just me, or does that look like pain?
 
11:42 PM
Yeah, google's python libraries are generally awful
I don't know which API you're talking about, but I'm pretty sure they all use the same authentication system. Which is standard OAuth2. The hardest part for me was to figure out the URLs for all the endpoints: The auth url (what you open in the web browser) is https://accounts.google.com/o/oauth2/v2/auth and the token exchange url is https://oauth2.googleapis.com/token
And of course there's some trial-and-error involved in figuring out which endpoints want your client_secret and which don't, as usual for OAuth ¯\_(ツ)_/¯
Here are some useful docs regarding authentication
 

« first day (4257 days earlier)      last day (689 days later) »