« first day (2698 days earlier)      last day (2156 days later) » 

12:25 AM
tfw you come back and you got only 3 more stars on your msg
TNB these are rookie numbers, we need to pump those numbers up
 
12:58 AM
@Riker I can get you HL1's Boids implementation for reference if that helps
it's in this file github.com/ValveSoftware/halflife/blob/master/dlls/aflock.cpp, let me find the line numbers
I see two methods, FlockLeaderThink and FlockFollowerThink
let me read this more carefully
OK
I think I understand this
There's two entities in this file: CFlockingFlyerFlock, which then controls the spawning of multiple of CFlockingFlyer entities (and adding them all to a squad)
(that part is actually done by the first one spawned in ::FormFlock I think)
The FlockLeaderThink has the leader move in a straight line, and turn if there's an obstacle in front of it until the path is clear
Then it calls SpreadFlock
 
1:15 AM
I have read some posts on SO licensing but the upshot is still unclear to me. Let's say I post a question to the code golf site, and I want to reuse that material (or some portion of it) on a personal blog or elsewhere. Are there any legal issues with that?
 
which goes over all the followers and if they're too close to the leader, it computes (unit vector of the follower's current velocity + (unit vector of leader position - follower position))/2, then scales it back up to the original speed of the follower for the new velocity. effectively pushing it away from the leader
 
@Jonah I am not a lawyer, but as far as I know there's nothing wrong with that
I think you could even copy code from SE sites into closed-source production code and that's not an issue
 
FlockFollowerThink first checks if the leader dies (and if so assigns a new one), then checks if the follower can see the leader
It moves at 1.5 * leader velocity if it think it's too far away, and 0.5 * leader velocity otherwise
But if it can't see the leader it moves at 0.5x always, to let it catch up
 
@DJMcMayhem and conversely, if I post something, what rights to I give away? Can someone else republish my post on their personal blog without attribution?
 
Oh, I misread this code for when it's too far away
 
Anonymous
1:22 AM
@Jonah All user-submitted content on the network is licensed under CC-BY-SA. That means, if you want to reproduce it elsewhere, in whole or in part, you must give attribution.
 
Anonymous
If someone publishes content from SE without attribution, it's a violation of the copyright, and you can report it to SE
 
OK so it moves at 1.5 * leader speed * (unit vector of leader's velocity + unit vector of (leader position - follower position))/2
 
@Mego So if I want to republish (all or part) of one of my own posts, I must give attribution back to myself with a link to the SO post?
 
And for SpreadFlock I meant (follower position - leader position). It's pushing the other way
 
Anonymous
@Jonah While it's not strictly necessary to do so for your own posts, it's not a bad idea, so you don't get accused of copyright violation (since there's no good way to prove that your identity somewhere else is the same as your identity on SE).
 
1:26 AM
It points from the leader to the follower, whereas here it points from the follower to the leader
Both are the same idea though -- when you're too close, average where you want to go with a vector pointing away from the leader. when you're too far, average with a vector pointing towards the leader
Aside from the boilerplate speed up/speed down to desired velocity stuff that all NPCs have there's one more thing in FlockFollowerThink
SpreadFlock2
 
@Mego thanks.
 
which basically does the same thing as SpreadFlock to the given follower? I guess? seems like it would do it twice...
Oh
This is for between followers
Not between a follower and the leader
So if it's too close to a given follower, it once again averages in a vector pointing away from the other follower, and it does this for all the followers
Thats a horribly named method...
They should be named AvoidLeader and AvoidFollowers
Although AvoidLeader I suppose is misleading since it's really the leader repelling away all the followers, not an individual follower steering to avoid the leader
All right that's enough
These, by the way, are only used once in retail HL1: at the very end in a scripted sequence
lmao
 
2:05 AM
@ASCII-only pls suggest how to fix I could add more buttons but then I need to shrink font / decrease margins and I like the side margins
@ASCII-only so, you would suggest load all assets and then slide them over when pressing to avoid load times? I could do that if it actually matters
@ASCII-only o_O not meant to alert anymore. and yeah well I could fix but then if the internet gets cut off between the username field updating and the request going through it would cause problems. (ok but sure will fix that's not actually going to happen)
@ASCII-only that's the POINT read lesson description xd
@ASCII-only well how should I fix it then ._. should I just take out the navbar or something
@ASCII-only I could increase contrast if you wanted. will experiment with that
@ASCII-only currently unimplemented but basically for each problem it's like hints or an analysis of the problem almost
@ASCII-only no this should not be thing it should be (for those who didn't already know my name happens to be alex xd)
 
2:29 AM
@ASCII-only how would you make username not take time to load because it's using firebase and after webpage is loaded it starts loading username. should I just make the page not have anything on it until the firebase auth updates
 
2:39 AM
@HyperNeutrino i would say use a much lighter black for the background and use opacity for your navbar + remove the bars
i.e. using color to establish hierarchy rather than seperators
 
@Downgoat background is actually blue but ok could fix. and wdym "use color instead of separators" like make every button a different color?
 
@HyperNeutrino like choose a base color e.g. rgb(222, 225, 247) and the header could be rgba(222, 225, 247, 0.98) and body could be rgba(222, 225, 247, 0.8) and the nav could be rgba(222, 225, 247, 0.2) or something
 
2:54 AM
oh you meant <hr /> I thought you meant vertical bars
ok thanks
 
3:06 AM
I think I prefer vertical bars because I'm not sure I'll like the design if the horizontal colors extend through the margins, or if they don't
 
3:17 AM
0
Q: Visualize a Nim board like an expert

JonahBackground In the game of Nim, players alternate removing "stones" from "piles": on each turn, a player must remove between one and all stones from a single pile. The object of Nim is to take the last stone or, in the misere variant, to force your opponent to do so -- however, it turns out the ...

 
 
2 hours later…
4:53 AM
-1
Q: Unique Bin Packing Problem/Water-bucket problem

SpagettI haven't seen a problem like this before, I was looking for ideas... Here it is: You have tens of buckets of different carrying capacity, and thousands of cups of water, also each with different capacity. Cups can be poured into buckets all at once, not partially. To complicate things, there ar...

 
@HyperNeutrino don't have login button on the same tab as everything else then
@HyperNeutrino yes. because it's just really jarring when it looks like they should have instant load times but don't
@HyperNeutrino :O this is so true
@HyperNeutrino hmm. if you load everything all at once then there should be no problem. (also if it's possible for server to get firebase username then render the page server-side)
 
5:28 AM
If you can load it async
Which Flask I'm sure doesn't make easy...
 
oh :|
 
0
A: Sandbox for Proposed Challenges

ConManExecute a Subpar Shuffle™ Inspired by the Execute a Superb Shuffle™ challenge, and a shuffling method I used as a young child before I realised how bad (and time consuming) it is. In a Subpar Shuffle, you take the deck of cards, and perform the following actions: Take the top card of the deck...

 
 
4 hours later…
9:26 AM
1
Q: Indexing Cha-Cha Slide

Kevin CruijssenIntroduction: Although I originally had a Dutch song in my head, where the lyrics are: "Doe 'n stapje naar voren, en 'n stapje terug" (which translated to "Take a little step forward, and a little step back"), when I searched for the full lyrics, I realized they only got back and forth, and neve...

 
 
2 hours later…
11:03 AM
middle mouse button in my windows cmd seems to now scroll instead of pasting (ctrl+V works instead) - does anyone here reproduce?
 
 
1 hour later…
Anonymous
12:30 PM
@quartata Why would it depend on Flask? Just stream over a websocket, or use simple AJAX
 
1:33 PM
lol "simple AJAX"
 
1:48 PM
I accidentally put the line def kill(self):in my Python code.
 
@Mego async server-side
 
 
2 hours later…
3:45 PM
@Soaku lolol
 
 
1 hour later…
4:53 PM
Typed into the wrong window?
 
I didn't mean to type at all
By the way, I'm totally losing my patience. I really want MathJax, once and for all! I feel like 5 months is enough waiting.
 
@Mr.Xcoder Good point, I'll try pinging Jon
 
 
2 hours later…
7:12 PM
@quartata this is fascinating thank you
 
7:23 PM
@Mr.Xcoder KaTeX should be used, not MathJax.
 
@mınxomaτ not using mathjax was a question asked somewhere sometime but that'd take actual time to implement whereas mathjax should be just an on/off switch
 
SE has MathJax :P
 
^^^ also a sane Markdown parser that doesn’t parse math in codeblocks
 
7:49 PM
I dunno if SE still uses MarkdownSharp but wow...: github.com/StackExchange/MarkdownSharp/blob/master/… it's all regex find+replace
 
 
1 hour later…
9:02 PM
How much do I need to worry about the interception of data such as admin account UUID hashes being sent across HTTPS?
 
uuid hashes?
 
like the hashes of UUIDs
 
why are you hashing uuids
 
or even just the UUIDs themselves
idk so even if intercepted you don't know the actual UUID
though I don't think that actually matters
 
but a uuid is random(ish)
who cares if you know it
 
9:04 PM
ok
nvm will just send plainly then
 
o.o
 
rot13 it, done.
 
i recommend sending everything over https
/me shrugs
 
well yeah obviously I'm not going to send sensitive information over HTTP :P but HTTPS is good for sending plaintext sensitive information across right
 
yeah
that'd be how your password is sent across the wire when you enter it in a form
 
9:08 PM
The point of hashing something is not to prevent someone from listening to the request and taking the secret -- they can still just replay it with the hash, it doesn't make a difference -- but rather to make it so that if your server is compromised all they have is the hash
if you don't have HTTPS, you can use something like SRP
Having the server take the hash of the password rather than the password itself defeats hashing, in fact -- the attacker no longer has to know what hashes to it, just what the hash is
 
9:30 PM
@Riker I encourage you to read the code yourself, it's not too bad
 
9:44 PM
Hello is a bubble sort of numbers a duplicate or can I create a sandbox?
 
bubble sort is really just sort, no?
 
@EriktheOutgolfer upload.wikimedia.org/wikipedia/commons/5/54/… Here's a Bubble Sort animation
 
well, do you want the output to contain each step of the bubble sort?
 
Yes
Each step got to be printed
 
@DIDIx13 It looks like it has been done before:
18
Q: Bubble sorting in progress

Stewie GriffinCreate a function or program that takes two inputs: A list of integers that shall be sorted (less than 20 elements) A positive integer, N, saying how many comparisons you should take The function shall stop, and output the resulting list of integers after N comparisons. If the list is fully s...

 
9:48 PM
that's not the same thing
looks like there's no dupe
but, eh, it's pretty similar
 
@quartata oh ok. thanks. yeah I used to send hashed passwords because I only had HTTP but I actually bothered to use HTTPS this time so I'll just send info plain-text and hash server-side for storage then
 
like, that one is about indexing in the steps
 
Ah, I didn't notice that. It's still pretty similar though
Not necessarily a dupe though
 
yeah, but I suspect algorithms can get different for that one compared to DIDIx13's one
I'd say let's sandbox and see
 
can you develop? @EriktheOutgolfer that looks a lot like what I first had in mind is it too similar ?codegolf.stackexchange.com/questions/92753/…
 
9:53 PM
that's what DJ linked above
 
I feel like that one you just linked has been closed for the wrong reason...
it's unclear, not a dupe imho
 
So you suggest to create my own or to add something to make it less similar?
 
no, don't add!
 
Stay simple I agree
 
9:57 PM
added stuff that's not part of a challenge's core to make a challenge more difficult is massively discouraged
but I'd say post it in the sandbox
 
@EriktheOutgolfer Thank you I will work on it and post a sandbox tomorrow.
 
that is, I suggest you do post it at the sandbox, so that you get the opinion of more users
 
10:39 PM
0
A: Sandbox for Proposed Challenges

AdámBake me some moji Given some UTF-8 text, convert it from Windows-1252 to UTF-8. Input is valid Windows-1252. Examples: £ → £ £ → £ £ → £ I ♥ UTF-8 → I ♥ UTF-8 árvíztűrő tükörfúrógép → árvÃztűrÅ‘ tükörfúrógép code-golf string conversion encoding unicode Should ...

 
11:39 PM
@Adám how long ago was it that you were active in the Space SE :D? I +1'd your space.stackexchange.com/questions/24694/…
 
@MagicOctopusUrn I look there every once in a while, or go if I have a question.
 
Sorry, off-topic, just wanted to drop you a note where I knew you'd see it to thank you for that specific chart haha.
@Adám I've read all questions there with more than 20 upvotes and I'm working my way to 10.
@Adám I can't decide which SE I like more now :(
 
2 messages moved from The APL Orchard
 
Haha, sorry. Thanks.
 
@MagicOctopusUrn Do you play KSP?
 
11:43 PM
@Adám haha undoubtedly.
I've actually posted in PPCG-Gaming a few of my more complex missions: imgur.com/gallery/NSQ1ITw imgur.com/gallery/hcMzbKg
"Complex" as in best-of-me, I can't compete with the people who calculate thrust-to-mass ratios and delta-v requirements. I don't go that intense, if I were to do that I'd plan a real moon mission.
@Adám You obviously do then too :). Have you ever made it to Eeloo?
 
@Adám shalum
wus machst'i
 
I'm in PPCG-Gaming if you want to keep it outta 19B
I've been dying to see other peoples missions (especially people I know to ask them HOW DID YOU DO THAT!?!?)
I've yet to dock 2 separate vessels, create a modular base and a few other things
 

« first day (2698 days earlier)      last day (2156 days later) »