« first day (3759 days earlier)      last day (1187 days later) » 

12:09 AM
I don't know what I'm missing but none of you cast the close vote before me?
I tell a lie! holodenweb did
@inspectorG4dget This is the second time you've brought a question to us recently where you've made a snarky comment. I don't like it. I'm certainly not holding it against you, but I don't think this is appropriate. If a question needs to be closed, it's fine to call it out, but bravado over a sarcastic comment is too much
Especially since you chose not to close it
 
12:27 AM
agreed
 
 
2 hours later…
2:06 AM
@roganjosh I thought there was a 10min wait period for a close-vote. I was running out the clock and then got distracted. I'll work on curbing the sass, though
 
@inspectorG4dget nobody can tell you when to vote. The grace period is for asking others to vote here.
and you pretty much literally said cv-pls
 
 
3 hours later…
5:22 AM
@AndrasDeak morning
 
@Aran-Fey "Last seen 6 hours ago" (i..e, when the question was posted) tough luck
I know you were secretly hoping it would work out, sorry bout that
 
You know me so well :P
 
on the bright side, if you want a good question to answer, think of one worth asking, then answer it
 
Easier said than done, especially since I've hardly written any code in the last couple months
 
No code in months? Nothing at all? sounds bad
 
5:36 AM
slightly more than nothing
 
 
3 hours later…
8:07 AM
I would like to make counter that just displays a number in a large font and counts down to zero. I can’t work out how to do the display part. Is there a suitable module for this?
 
tkinter?
 
I will look into that thanks
 
8:37 AM
@Aran-Fey tkinter seems to be based around event loops
 
Every GUI toolkit has a mainloop
 
hmm.. so how in code can I have display("fred") for example to show the word "fred" in the window?
 
With a label, and that's all I'm gonna say. Everything else can be answered by a tkinter tutorial
 
8:58 AM
@Aran-Fey ok :)
 
@Aran-Fey eh - what's this? A promotion to something more managerial?
 
it does feel like that :)
 
weird conference schedule morning cbg
 
@roganjosh Yes, I've promoted myself to executive watcher of anime and youtube videos, and on the side I help out the QA department by playtesting Genshin Impact :P
 
A worthy cause! I hope things are well and sorry if I missed context from earlier chat
 
9:07 AM
Nah, no context was missed. I just don't have a job where I have to code, it's all a hobby for me
 
9:41 AM
hello guys
 
Hello
 
10:35 AM
So I finally found an excuse to do some work task using Rust instead of Python. The first module I missed dearly: struct. Not sure whether to laugh or cry...
 
AAB
10:53 AM
Hi all,
In Django is accessing sessions in the template a bad idea?
should I pass the necessary session data via context in the view or access session values in the template directly
 
I suspect that it will work like Flask, and that it's backend work either way. The template renderer will access those values before it gets to the browser of the client
One day, I'll properly dig into Django.... One day...
 
AAB
11:09 AM
@roganjosh thanks
 
Why are you concerned about this btw?
I can only go on the Flask basis, but your question itself points to a concern you might have that might be covered by this
IOW use db-backed sessions
 
AAB
I use DB for sessions
I just wanted to know if doing so is good or bad practice, the right way is to pass info using context object or using session directly is fine
 
Ah, cool, then ignore my comment. I was just thinking around why this was an issue for you and that sprung to mind
For django, I definitely can't help with best practice, sorry
 
AAB
@roganjosh :) no issues thanks for your time.
 
11:31 AM
Hi all
 
11:47 AM
Hello
 
12:06 PM
hello
 
roganjosh keeping at it with the hellos :D
 
 
1 hour later…
1:08 PM
Completely off-topic, but I'd appreciate if someone could check my math (and logic) here. Background: A character in my video game is close to the level cap, and I want to figure out if it's more efficient to 1) grind xp by killing enemies or 2) Use a (consumable) item (an experience book) to gain xp instantly, even though some of that xp will go to waste due to the level cap. I think everything else you need to know is included in the text
I suspect I've made a mistake somewhere because it's weird that the output for "1 out of 4 party members are useless" is "it's not worth wasting more than a 5th of the xp book"
 
@python_user The Primary Directive for ROs :)
 
@Aran-Fey this is just terminology pedantry, but "rate" and "speed" would imply xp/sec: large number means it's fast, i.e. you get more xp in the same amount of time
 
Yeah, but the math seemed easier to do with sec/xp and I had no better ideas for the variable name :(
 
* over /? Yeah ;)
 
I'm not good at math, don't judge :P
I suspect the issue lies in the inefficiency_factor. I realized at the end that because I'd used sec/xp, slowing down the rate at which xp is acquired means increasing the inefficiency_factor. Originally I was thinking "the factor's gonna be 3/4, because only 3 of my 4 party members are actually contributing". But now it's 1.25 instead, so 25% more instead of 25% less
 
1:28 PM
"because only 3 of my 4 party members are actually contributing" is this actually something to implement into the game?
I used to spend a lot of time playing Everquest, and this kinda situation was a PR disaster
So it's not just the maths, it's the rampaging mob of players with their flaming pitchforks :P
 
@Aran-Fey that sounds off to me
3/4 in one representation should be 4/3 in the other, if it's just an overall reciprocal
 
@roganjosh Well... yeah, sorta. The way it works is that you can only control 1 character at a time, but you can swap between party members at will. So if a party member is underleveled or undergeared, you basically never swap them in and play as if you only had 3 characters
I tried changing the formula to xp_acquisition_speed / efficiency_factor sec/xp and now inputting 3/4 actually comes out to "a quarter of the xp book can go to waste": dpaste.com/HXZJ3N47V
oops, forgot to update 1 formula. Fixed version here, the result stays the same
 
The claim seems to be "if 3 people work out of 4 then they earn 3/4 the XP in a given time frame". Is this correct?
 
In the end it's only an approximation, but yes, that was my intent
 
1:43 PM
OK, I think that sort of makes sense. They deal 3/4 the damage, so to hit HP they need 4/3 the time
 
You're telling me that's not the same thing as "it takes them 1.25 times as long to earn the same amount of xp", right?
 
11 mins ago, by Andras Deak
3/4 in one representation should be 4/3 in the other, if it's just an overall reciprocal
that's what I was saying, yes
I think it's correct to assume that with 3 useful party members instead of 4 you need 4/3 the time to gain the same amount of XP. But I just had lunch so I might be missing something.
1.25 is 5/4 which seems very sus
 
Yeah, I'll have to mull it over and decide which one is more intuitive. Thanks for the help
@AndrasDeak I literally only just realized that. That's embarrassing :|
In my mind, 4/3 was obviously the same thing as 1.25
 
I see :)
 
Guess that's enough math for a day. Time to do something that more closely corresponds to my current level of intellect - which is watching flat earth videos on youtube
 
1:59 PM
@Aran-Fey it's dangerous to go alone! Take this.
 
Thanks! I can't let this opportunity slip by - if I have any chance of ever understanding flat earth math, it's right now!
 
@Aran-Fey That was multi-boxing in EQ :)
Though you could also set up macros with multi-boxing and there was a whole industry built up around that so that people would farm rare things. Gosh, this has really given me a throwback to my previous life as Gatash the beastlord
 
EQ?
 
EverQuest
 
2:15 PM
I played Lineage II
 
Was that an MMO?
indeed it was, according to wiki
 
yup
 
You can thank EQ for the foundations of that :P
 
*laughs in MUD*
 
Lineage 2 apparently has an auto-grinding feature built in. That's innovation. No more macros!
 
2:23 PM
Ah, that was a no-no in EQ. It's only in the later days that it became a thing. Back in the day, if you died and didn't "bind" in the "zone" you were in, you had 7 days to get to the corpse or you'd lose literally everything
 
wow, hardcore
 
So you used to have to sit on a boat for 20 mins doing nothing and hope a glitch didn't catapult you into the ocean. I once had to do a 4 hour CR (corpse-run) to not lose my staff
 
Your naked wizard's staff?
 
Exactly that!
 
2:57 PM
Spam email campaign fail: "Receive Exclusive Items Fname!"
Wait until they try to spam Bobby Tables!
 
3:44 PM
I'm considering signing up for some subscription lists as "Paul'; drop table contacts; --"
 
4:01 PM
@AndrasDeak completely out of context, i, for some reason, just imagined you lying down, face up in a puddle of mud, and laughing like a maniac
I thought room 6 finally got to you.
 
@ParitoshSingh heh
 
4:22 PM
@AAB How would the template access the session data if it weren't in the rendering context? Genuine question—but if there's a documented way, use that, otherwise out it in the session.
Anyone here know enough about Mongoengine to point me at examples of idiomatic CRUD or web forms update code?
 
 
2 hours later…
6:05 PM
@ParitoshSingh question is, has it got to you? :P
 
 
2 hours later…
AAB
7:41 PM
@holdenweb @holdenweb yes we need to add a line in settings for templates I just found that newer versions of Django have it enabled :| by default
@holdenweb I used this youtube.com/watch?v=E-1xI85Zog8&t=3310s for mongoengine
I tried examples for insert select and updating a list in the document it seemed similar to Django models(not sure if the info helps just putting it out here) and thanks for taking the time to answer my query.
 
 
2 hours later…
Any stand-outs to you?
Woah, I can already see one with treatment of ints
Wait, no, I think the default is still going to be 32 bit on Windows
 
 
1 hour later…
10:55 PM
@roganjosh Yeah, that's a related but different matter
one of the options with that deprecation is to create new behavior that would make windows sane, but there are always drawbacks
 

« first day (3759 days earlier)      last day (1187 days later) »