« first day (3329 days earlier)      last day (1844 days later) » 

01:25
morn
o/
 
2 hours later…
03:38
🚽
03:52
When did you become RO? I haven't seen you around :)
 
2 hours later…
05:34
I pray all regex gurus are doing well today...Can we split a pascal string into its basic components using regex? For e.g. verifyAddOperationForBalanceTxn => verify, Add, Operation, Balance, Txn
06:05
||> "verifyAddOperationForBalanceTxn".split(/(?=[A-Z])/g)
@geisterfurz007Stopthischaos ["verify","Add","Operation","For","Balance","Txn"] Logged: ``
where did caprica go?
Left with rlemon a few weeks ago. James is the new Caprica, maintained by JBis.
Hmm. Less fun. Still useful ;)
06:09
I think it's a straight fork of Caprica so it should be at least the same amount of fun! And it's got a working mdn command :D
Okay. Another example string: populateTRANSDtlsForBlnce => populate, TRANS, Dtls, For, Blnce
@geisterfurz007Stopthischaos I had come up with this: repl.it/repls/BluevioletJitteryDeveloper
TRANS for the second one? Or is TRAN intended?
However, if you did a .split() with that...it was messy
Its TRANS - edited the message
Btw what was rlemon's reason for leaving...? Anything to do with SO being in news recently?!
06:26
No idea, I just heard it recently
@JBis I am pretty sure you know that user ;)
In fact he was added as room owner on November 10th 2016 :D
Good morning Karel!
 
2 hours later…
08:06
@geisterfurz007Stopthischaos bad lurker
 
1 hour later…
09:24
Anyone knows FFMPEG?
I am converting an mp4 into motion jpeg format in chunks, but every chunk that I get is around 60-40 bytes. Do you know how can I make it so each chunk will be a whole frame?
const args = [
    '-re',
    '-i', 'video.mp4',
    '-acodec', 'copy',
    '-vcodec', 'copy',
    '-f', 'mjpeg',
    '-loglevel', 'error',
    '-',
];
These are my args
You want to extract all video frames to their own image?
I need to send Buffers over the network
Where each buffer is a chunk, which represents an own Image, yes
So I know that this chunk represents an image frame of that video
    const process = child.spawn('ffmpeg', args, options);

    process.stdout.on('data', (chunk: Buffer) => {
       zmqSocket.send(chunk);
    });
@BenBeri Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
09:33
Oh! No clue about that sorry :/
10:00
@BenBeri yikes
you don't generally care about the contents of the data being sent
you simply have a minimal buffer that would basically guarantee at least one frame to show
if the image varies, then maybe the amount of data you have to send to ensure that one frame has been sent increases also
 
2 hours later…
12:06
GPU in node - gpu.rocks
@geisterfurz007Stopthischaos not exactly. Rebuilt from ground up because caps code was really bad an unmaintainable. James is a bit better. But most of the commands I made sure to implement but some are missing. :)
np, means I did a could job of copying ;)
12:33
@JBis have respect for Zirak's wizardry!
12:45
Oct 21 at 23:25, by JBis
Note: That isn't code, Zirak just slammed on the keyboard and it worked
yes, that's his magic
(saw that earlier)
ah
how did you solve the mdn issue tho?
just different approach (scraping and getting the definition? )
with his own wizardry
12:48
That's cheating on a whole new level...
I would do that as well :P
I need to rebuild some of it tho. When i built i didn't fully understand async and promises so there are inconsistencies and stuff
was expecting await but w/e
functionality is important
@JBis Is that thing run in a browser instance or with node?
Node. Originally made for browser but was told that was stupid and i agreed so now its node.
13:00
@JBis :') Guess I know who's stuff I am trying to break tomorrow :D
||> __dirname
@BenFortune "/Node/StackExchangeJames/src/plugins/eval" Logged: ``
@JBis Yeah, you should really look into better sandboxing
||> const cp = require('exec').childProcess; cp
@geisterfurz007Stopthischaos "Error: Cannot find module 'exec'\nRequire stack:\n- /Node/StackExchangeJames/src/plugins/eval/worker.js" Logged: ``
13:08
Oh. It was something like that tho :D
const exec = require('child_process').exec; exec
oops
no require
Does it just do nothing then?
It tried to do something when I used exec though :D
||> require
13:09
@BenFortune undefined Logged: ``
2 mins ago, by JamesBot
@geisterfurz007Stopthischaos "Error: Cannot find module 'exec'\nRequire stack:\n- /Node/StackExchangeJames/src/plugins/eval/worker.js" Logged: ``
How did that happen then?
eval, lmao
||> eval('require');
@geisterfurz007Stopthischaos undefined Logged: ``
Worth a shit
3
shot
WORTH A SHOT! Goddamn fingers
Why the heck did it try to find exec in my first attempt though, I don't get it? >.>
13:15
lmao, found a vuln
@JBis better disable the bot before I show everyone the password :D
break it, break it, break it
LOL
or your /etc/shadow
|| sudo disable
Shut Down
Pretty sure I could shell your server at this point
disable eval
13:18
How would it have worked?

Test My Bot

A room for discussing and asking questions about SO/SE bot cre...
Not sure if something's changed because I've definitely tried evaling require before and it hasn't worked
||> Set.constructor.prototype('require')
:(
Its disabled, one sec
13:53
Need help with a js query querying firebase
Can someone help?
14:29
Hilarious (intel rant) youtube.com/watch?v=vuaiqcjf0bs
15:21
Can I do without shame
return k.x = k.x || getter() in JS?
15:40
@ShrekOverflow Yes, although ?? is likely better
@MadaraUchiha what is that?
k.x = k.x ?? getter();
return k.x
Does that even work?
Not without transpilation
what even is ??
15:41
Nullish coalesce
Similar to || but returns the first operand when the first operand is not null and not undefined, and returns the second operand otherwise.
Oh my doggo! TGHIS IS GOOD@!
I thought you were joking about me liking swift lol
let x = 0;
let y = x ?? 1;

console.log(y); // 0
Wait until you hear about ?. :D
?.
I know abotu that one
although after using Swift for like forever
I have got better at JS (somehow)
const guaranteedToBeGood = any?.of?.these?.might?.not?.exist ?? 'default';
I think the IDE yelling at me for the whole time is a good to have
@MadaraUchiha Looks like a meme
15:44
This + TypeScript with strictNullChecks = heaven
@MadaraUchiha AW YES!
That is almost what it behaves in Swift lol
I wonder at what point these languages will produce almost copy pastable code
@MadaraUchiha except for const -> let it's almost exactly the same as swift
@ShrekOverflow It's almost like it's a good feature or something!
@MadaraUchiha I know right?
Swift has a lack of promise though
its future is debatable atm
bah dum tssh
Swift sucks tooling-wise
I gave up on swift twice
15:46
@MadaraUchiha vOv I have found XCode just fine
Not even regular sucks. It, like, advanced sucks
but then again, I am not a real dev lol
use jet brains app code
@MadaraUchiha Yeah XCode is flaky a-f
Sometimes, the compiler will decide that it doesn't wanna work hard, and just explode in your face if it reaches a statement that takes too long to compile
15:47
but Apple has shown incredible promise / resolve for Devs this year
@MadaraUchiha or indexes a line forever
because you did [{}] as opposed to [ \n {} \n ]
Sounds like a shitty compiler
@JBis have you ever tried doing Array(1e9).fill() in JS browser? before they fixed htat?
Nope, when was that?
Look up this chat
copy found it :D
instant browser crasher
in <5 chars
If you do 1e12 Array constructor just fails
if you do 1e9 it allocates
if you do 1e9.fill the heap will run out of memory
16:21
Hey all, n00bie here looking for a quick bit of advice if possible?
@Mb18 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
1 hour later…
17:39
!!> Array(1e9).fill()
!!> Array(1e9).fill(0)
!!welcome ShrekOverflow
Yay! Success :)
|| magic
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
so I am guessing it doesn't support !!>
!!> 3 + 4
it does
just not with !!
||
@user400654 Invalid command! Try help for a list of available commands..‍.‍.‍.‍
17:49
||> Array(1e9).fill(0)
|| magic
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
|| >1+1
hello?
@user400654 Invalid command! Try help for a list of available commands..‍.‍.‍
17:51
|| help
Command documentation and syntax can be found here.
i bet he disabled it
5 hours ago, by Ben Fortune
||> __dirname
see that conversation
bummer
it was even worse than I thought
Zirak's ran in Ffox
so the sandboxing + webwekerz were gut enuf
also ZIRAK
T_T
Disabled eval
will be back soon
18:12
Does anyone have experience working with isolate-vm?
19:09
20:01
I'm working on a project where I'm creating an array of objects (like 1 or 2 hundred elements) with a dozen or two properties and methods, including array properties of usually 12 elements. Each element also has references to other elements in the array. Should I be worried about overhead? That maybe having all these be individual objects might be slowing the browser down? They're all functionally identical, so could there be a better way?
Anyone use the kendoUpload control?
@ShrekOverflow that breaks it, how do you suppose i fix?
20:22
Making a table of calculated values. They tell me that on some pages a certain calculation gets done. I put it in. Then they tell me that not only do not all the rows on the table get the calculation, but fucking MOST of them don't.
* seething rage *
I am having a problem with onclick events and when I look at the JS file that is in the console they have different time is that correct?
MeetingsPresentation.js:191
MeetingsPresentation.js?11/27/2019 3:19:07 PM:191
MeetingsPresentation.js?11/27/2019 3:19:07 PM:191
MeetingsPresentation.js?11/27/2019 3:19:07 PM:191

« first day (3329 days earlier)      last day (1844 days later) »