mousetail's idea is sound: by default, store what you need in a session. have some way of exposing the user to their session cookie value have some way on the client of pasting a session cookie value and that becomes their session cookie for that browser as well
@192927376337929292283737373773 note that the session cookie just contains an identifier, that the server uses to find what data it should load. the client never holds any information beyond this identifier
Another option is to create long random account IDs and use those instead. Actual user data is in the database. Then the users session data just stores what their account number is. This would require less abuse of the session system while being equally secure
but now you've moved account creation to after a specific thing happens, which is you know, fine, except that if you ever create something else that requires you hold state about a user, you also have to create an account there
@Themoonisacheese Every action requires an account right? So you can have a function like get_or_create_account() that you use every time you need the account object
yes. the alternative would be to say, every day at midnight, sum the total and use that for future sums but that's added complexity that won't help you much
You could take the sum on startup and then increment the value in memory potentially, but yea just storing in DB is probably easier and less error prone
I'd like to generate alphanumeric authentication tokens in a cryptographically secure way on my Google App Engine Flask server. How can I go about doing that?
The prices of all the different drugs that I use have not changed at all, in the 46 years I have been alive. (Which means, that the price has consistently gone down, if adjusted).
Please explain how Cartels manage to avoid inflation problems but governments can not.
Remember. Absolutely perfectly...
@att Also, if the package does get delivered before the form gets processed, I feel reasonably confident that it's not a package that elderly retirees would want to keep LMAO
@UnrelatedString Wait don't they not even do CoA for packages or to other states? USPS really going above and beyond to give you a shitty experience lol
It's too bad they haven't handed out our Air Force uniforms yet, we're required to wear them all day on Thursdays meaning I'd be required by the military to show up to the student diversity center's welcome event for LGBTQIA+ students in uniform (which would be hilarious)
Similar question to my previous one, but in reverse. This time I want you to encode an integer into a VarInt.
Background:
I'm not going to assume everyone's seen my previous question, so here is a little background as too what a VarInt is.
A VarInt is a type of signed integer encoding of variable...
Hmm I thought because of RPN I could get away with just having ] and no [ builtin but it seems you can't actually unambiguously parse where the [ should go
I hate is so much when surveys just ask the same question with slightly different wording like a half dozen times
Had to take one like that a minute ago, finally just chose "somewhat" for everything then emailed the researcher listed to let them know they should ignore my data lol
Though come to think of it Этажи would probably not be as bad for you as it was for me at least
@att This might also be a bit of a teaching style difference and/or just inherent to intermediate level, but we switched to it for 201 and most of the exercises were straight up creative writing even though they were notionally still just to practice grammar/vocab that we were learning
Okay this is not nearly fleshed out enough to hide anything about, so basically The idea is "dyadic Jelly" as its own language, designed from the bottom up to be slightly more usable in general but also more awkward in other ways
Ideally, with a builtin set that makes the optimal way to derive constants depend highly on invariants about the input
But it's also even harder than the sum of its parts, since you have to write within the constraints of your intermediate level grasp of the language, on top of simply writing and using your intermediate level grasp of the language
And some of it can even require indeterminate amounts of research that you aren't actually expected to be good enough at the language to do without scraping for sources in English or MTLing it
Not me misreading the schedule and showing up half an hour after an event I was trying to go to ends (wouldn't have mattered anyway since I was in class lol)
I think anyone who looked at this situation quantitatively would not only deny the request but involvuntarily commit me...the maximum for first years is supposed to be 52 units (17 and a third hours), I'm currently at 58 due to some loopholes, and this course would put me at 70
I guess, but I've also been switching between radically different environments quite a bit recentlky
And the difference between high school when you live in an apartment and college isn't nearly as big as high school when you live with your parents and college
Anyway gotta go to a recitation for fucking chemistry (that is now its course title in my head, "09106 fucking chemistry") o/
What do you currently know about the overall work load for each of your classes?
Because frankly how tenable this is relies a LOT on that
"Enjoy" the recitation :P
But yeah credit hours are honestly not a very good proxy for the amount of time you're going to be spending actually doing things and using effort since AFAIK they tend to just be based on lecture times
@RydwolfPrograms The biggest difference here is just the way the work is patterned
You have to organize more for yourself, you're going to have a larger variety of kinds of work, you're going to have a bunch of extremely important exams at the same time of year
4
It's all very unreliable
And don't even think about trusting what other students say about what is and isn't a hard class LMAO