« first day (2594 days earlier)      last day (2579 days later) » 

21:01
you can't destructure like you import with all, { part } can you ?
const a, { b } = c; is clearly wrong
@rlemon No.
didn't think so, but thought I'd ask
Why do you need to though? You already have c
c is a function call
in my specific case
Ah
Yeah, sadly no.
21:02
I wanted user, { role } = await blah;
would have saved me a line
@rlemon If you're willing to switch to Haskell... :P
ohhhhh well.
time
⌚️
How long was it this time?
time is a tool you can put on the wall, or wear it on your wrist
21:03
time is subjective
time is arbitrary
the past is far behind us, the future doesn't exist
omg that's awesome, can you recognize who that is?
nope
"image not found"
my network is brokededed
21:08
@KendallFrey hrm... dianna?
nope
hint: canadian
purple hair and presumably a youtube personality is all I'm going on
not wrong
maths or physics?
21:10
I wonder why people don't read the fucking manual
especially one written with a multi-part walkthroughz
that's a waste of time
@ShrekOverflow There's a manual for that?
@KendallFrey Matt got purple hair and a sex change? :P
my brain is stuck on like 4 channels.
time that could be spent watching fox news instead
@KevinB India doesn't have Fox News, and thats where this tendency is the strongest.
ahh
I haven't watched the vintage space channel in a while.
but I do recognise her
didn't know she was Canadian
hey, that image worked
21:11
@KendallFrey dude, I've been watching nothing but 3d printing :S
gotta get dem prints out nice
@rlemon 3d print her with a shrek face :D ?
why? her face is her best feature
lol
dunno I've been just fascianted by shrek
is shrek love?
I had a weird dream where I was watching DragonBall but everyone's head was replaced with Shreks
@rlemon no shrek is life
21:13
!!s/watching.*replaced//
@rlemon I had a weird dream where I was with Shreks (source)
it's all ogre now
for the amount of times I type => P{ because of my fat fingers.. I think I should just write an exception in st to handle it
21:18
that's less haha funny, and more
lmao
I want to make an Alex Brooker joke
@rlemon why you
can you create a template :?
why I what?
is here any math gurus presented?
stack here with a task which looks very simple for first look but quite uneasy after some deep

there is like a simple dataset with size like 4 max array size
and I need to sort it, calculate median and average values

it works very nice when dataset size less than max array size
but if it bigger than some kind of algorithm tweaks required

any suggestions?
I don't understand what the problem is.
21:24
it helps if you give actual input, and expected outputs
it's ok to split that dataset into some arrays
calculate average value for each array and then calculate average for that array's avg

but how to proceed with median calculation?
Why would you split it up?
in case dataset huge - 4 time bigger than js max array size
The solution to that wouldn't seem to be splitting arrays
You'd want to stream the data, or use a SQL cursor, or something like that
I fucking give up on life
21:27
Don't use an array, loop over the data source
cursors are discouraged, better to use datareader.
so I can't put all data into one array, sort it and calc median then

that's the case, real data source not available yet but should be mocked
so I'm generating random values for now and store it in array
@AlekseiTselishchev Obviously not if it doesn't fit into memory
how slow is this process if you're looping over more than 4 billion records?
ok, even if it will be mocked via some kind of cloud db then it still not clear how to operate with processing all the data once in case of mem limits
21:31
> time node -p "for( let i = 0; i < 4000000000; i++ ) {}"
undefined

real 0m9.587s
user 0m9.512s
sys 0m0.004s
doesn't look promising :D
Good point, I have no idea what a cursor is
I'v learnt this the very bad way.
@Idle so you like experienced in this area now? any tips?
> My problem is whenever I refresh the page after submitting new entries, the dynamically created divs disappear
well no shit
21:39
lol
> then don't refresh the page
@rlemon where is that from ?
my console
obvy
what are you trying to do?
read the context
I don't get it how that is relevent
21:44
nvm
@AlekseiTselishchev you could just use a generator to progressively load your data process it and move it out of memory
function async * getHugeData() {
     const dataLength = await getLengthOFdata();
     while (rowNum < dataLength) {
        const rows = await get10Rows();
        while (rows.length) {
            yield rows.shift();
        }
     }

}
and then use it as
for (const row of getHugeData()) {
    /* do something here */
}
also it'll help if you can split your operations and parallelize them
for eg instead of going from 0 -> end on single thread use 4 and compute values on each
!!afk freezing my nips off
21:59
@rlemon @SterlingArcher What was the context? Whom did I touch?
@SomeGuy Banana
@rlemon why don't you want your nipples anymore?
@KamilSolecki Why did you think I was a good contact for that? What did @Loktar tell you!?
@Shmiddty His children have been weaned.
I'll wean your children if you don't watch your mouth
googles meaning of weaning
oh, that's pretty sweet actually
@Zirak I don't want to reveal much, but something about pink dresses and makeup.
22:15
did you hire zirak again :/
you know he has a problem
yeah It's been dragging the hole weak
🚽
22:39
tis almost time for turkey gumbo
22:55
@towc The skeletons in Ziraks pockets are not a problem, he is just special.
@rlemon Have you seen this guy's videos? youtube.com/watch?v=2aaIwTB1aRY
@david rlemon is afk: freezing my nips off
@david yea
i love them
23:10
... ok. so after very preliminary tryouts of MobX, I am starting to think that, React fucking sucks, actually. especially setState.
@Zirak LOL
wat, why
momentary foolishness.
0
Q: How to make this jquery efficient? Performing function based on matching id name

DHilseI'm using wavesurfer.js to build a page containing several iterations of code to control the play/pause of each of these. I'm going to have 5 or more waveforms following this same logic on the page, and I know this can be done a lot more efficiently than I've come up with to do it. Basically, I...

23:58
President says turkeys should have thanked him for pardoning them. Issues Executive Order to have both killed and cooked.

« first day (2594 days earlier)      last day (2579 days later) »