« first day (3349 days earlier)      last day (1598 days later) » 
00:00 - 19:0019:00 - 00:00

12:04 AM
I’ll just do both
 
that'll do
 
12:21 AM
Ok, I am looking at Floatplane.com and I know they are running on NodeJS for a backend, what kind of ID would this be? 5ae0f8114336369a2c3619b4 I know in Sequalize you can give it a GUID or Int for an ID, technically speaking you could use anything for an pkid but it is interesting me, they are also using some Firebase stuff so it might be with firebase
 
@NoahHalstead 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.
 
that looks like a hash
 
Hrm.
They are using it for all of the Ids, Videos, Users, Channels etc.
 
nope
its just random generated string
24 characters = 12 bytes. 12 bytes isn't standard hash size. So i think its just a random generated string.
Is there a particular reason you need to know @NoahHalstead?
 
Its something that interests me, I like to see what internals are used on websites. I am a young developer and I am just scouting to see what people use, rhyme and reasons to use one over another
 
12:28 AM
cool
 
Ok GUIDs in MySQL, thoughts?
 
Wdym?
You can store em if you need/want
 
Rob
@NoahHalstead I'm guessing you mean as a primary key? dba.stackexchange.com/a/266
 
^
Thanks
 
 
12:36 AM
neat
 
12:58 AM
neat
 
1:11 AM
someone needs to train a bot on thousands of college essays and make a generator
 
2:02 AM
Anyone got some Ideas on HTML elements youd want to simplify making your page, small features, additions, other things like that
Ive already created a syntaxer, highlighting, noselect, fabric.js canvas simplified, miniature console.log adapter, etc
Im once again out of ideas to make
and no, im not doing a css-safe marquee
that was a pain in my ass
and it never worked
 
 
1 hour later…
3:34 AM
lmao
@TaylorS wdym by these projects? Are they public?
 
4:16 AM
 
@explorer 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.
 
Is that "Promise" support or how to test promise functions?
 
4:32 AM
@explorer Can you post link of where that is from? Difficult to understand without context.
 
4:52 AM
@JBis yeah, its just a small thing I was doing for HTML, right now my portion of study is "Improving and Changing the Default Features of Web-Development"
I got through css variables and preproccessing quickly, finished JS Prototypes and System Variables, now Im working with custom HTML
Like here are a couple of formatting custom html elements requested by a friend: codepen.io/SkylerSpark/pen/MWYbrLL
just making small things like that
got to sleep though, midnight
 
5:13 AM
Any React Native developer here?
Need help to integrate video trimming in RN for android & IOS.
 
5:47 AM
i have an li with an anchor tag in the side nav bar. When I click it I open a sub menu. But since it's an anchor it refreshes the page and the sub menu closes again(since thats the initital state when page opens). how do i fix this
 
6:12 AM
Does anyone have an idea how Google Docs / Google Sheets implements their collaborate feature, e.g. two users looking at same page at same time?
 
@bloolizard 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…
7:22 AM
@bloolizard websockets likely
it probably sends click and input information to the server which then gets updated to the collaborator
for lots of input, maybe it attempts to optimize, like say, current mouse position is only updated once every half a second or so
 
 
2 hours later…
 
2 hours later…
10:48 AM
Gotta give it to bootstrap on persistence
I wish the web started with decent looking inputs/controls by default
 
I'd rather use the native notification api
 
@BenFortune Duh
I'd rather use Native .
 
 
1 hour later…
12:10 PM
Question: If you had a choice to add a new Element(s) to HTML, whatd be your choice, and what would the element do?
I'm looking for ideas
Wether it be a Styler, Formatting, Syntax, or just a random feature or utility
 
i'm happy with that is available
 
Im just bored this tuesday morning
and making more html elements sounds FUN.
 
@TaylorS Marquee element
That or bring back blink
 
12:26 PM
why? lol marquee is a pain in the ass, doing dynamic animations in JS
you CAN make animations using JS, but trying to get keyframes working inside shadow dom to parent and then using hidden dynamic style.animation keys to reset and load animations
its a pain in the ass
but blink?
I guess... :L
right now, I was actually working on a small simple math equation visualizing element (<simath->)
 
I love how you take everything I say so seriously :D
 
Sorry, my bad, its the aspergers thing, anyways
hey by the way, if I wanted to grab the content of the innerHTML using typeof in a custom element, would it be smart to detect typeof innerHTML if its string or object (like if its a string on page load, wrap all the content into a custom child element with the math visualized)
 
wouldn't it always be a string?
it's not returning dom objects, rather the string representation of it
 
it is
 
it returns "object" if the innerHTML is a child element
 
12:32 PM
wut?
*walks away*
 
can you give an example of this?
 
I thought of this because mainly: trying to store the innerHTML to use it in some way in itself without it deleting the saved data is a PAIN IN THE ARSE.

SO, instead, Ill keep the innerHTML and use the saved data in the shadow dom?
Because, its like this: You use this.innerHTML in your prototype to take the content from your custom element and use it in some way, but you want to HIDE the original innerHTML content so the user can type in NEW innerHTML content..
if that makes sense
|| var a = document.createElement('test'); console.log(typeof a.innerHTML);
 
Invalid command! Did you mean: war, ban, jan? Try help for a list of available commands..‍.‍.‍
 
||> var a = document.createElement('test'); console.log(typeof a.innerHTML);
 
@TaylorS "ReferenceError: document is not defined" Logged: ``
 
12:35 PM
Bruhhhh
dumbo bot
 
that gives "string" if you want to know
 
 
2 hours later…
2:36 PM
I installed my pwa app on my android phone and it works fine when i disconnect internet . but when i disconnect and reopen app, it shows no internet page
 
2:53 PM
Hi guys

Is there any plugin out there that can create a slideshow like this website.

if you scroll down you can see a vertical slideshow that image will be sticky till all the contents show up.

https://www.nrk.no/norge/xl/bomsjefen-i-bergen-styrte-skattesystem-i-kongo-1.14733957
 
@Enzo 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.
 
Hi! Has someone work with prerendering in Vuejs? I need help on a design decision based on our current arquitecture
We have a Vue project in S3 that answers for a custom subdomain for every profile in our web app
 
Found the issue with google search commands (mdn).
 
I need a prerender of every subdomain for this page so every subdomain can be seen properly by any of the existing crawlers
to benefit SEO positioning
 
@Enzo Probably, but why not make your own :)
 
3:05 PM
Not sure what "prerender" means in this context
 
@JavierPallarés Do you mean a site map on a robots.txt?
 
As far as I know and I've been reading, for this SEO problem in single page applications there are two options: SSR (server side rendering) and prerendering the vue app as static html
No, the sitemap thing is already covered by a dynamically generated xml file and routed with vue router
 
So you need a static site generator?
 
I know the options, but my problem is bigger
 
I just looked it up. I see what you mean now.
 
3:07 PM
because I have a single vue project for multiple different subdomains
for those I cannot prerender all the URLs into static html files due to volume and the fact that it is dynamically generated content
the problem is that when Google robot for example comes to my page it just sees my loading animation
so for him my page dynamically generated headers are empty
and I assume would not rank properly in SEO
 
Couldn't you have a dynamically generated robots.txt file dependent on subdomain?
 
robots.txt and sitemap.xml is not a problem for me because I can serve them from API via vue router
 
the problem itself it is in the head
meta tags, hreflang and those stuff that for this case has to be dynamically generated from that user subdomain
I appreciate tthe attention @Hypersapien
 
I don't do SEO. I leave all that to other people. I just make the site work the way they tell me
 
3:14 PM
okey thanks anyway!! we've been doing this SEO thing from Razor until this moment
what was fine for crawlers because the head section was served by the server
 
3:33 PM
Im completely bluffed right now
this stupid snippet wont function right, in the terms that it gives typerrors that .join isnt a function
function conv(emote) {
 if (emote.length > 1) {
  emote.split('');
  emote.join('&#xFE0E;');
 }
 document.getElementById("output").innerHTML = emote+"&#xFE0E;";
}
Ive clearly supplied the array "👨👨👨👨👨👨👨"
but it doesnt detect its an error and gives a typerror on .join
 
@TaylorS That's a string, not an array.
 
emote.split('')
if the length of the string is more than 1 character, it splits all characters
 
That returns an array, but you need to do something with the result
 
thats returning characters now, but now its just a bunch of "unidentified" chars
�︎�︎�︎�︎�︎�︎
👨
Disabled Variant:
�︎�︎
dont get it ^^^
 
Try using Array.from(emote)
 
3:45 PM
@JamesBot ty for input
 
4:03 PM
We finally have biometrics enabled for authentication, so I no longer have to type my password in a dozen times a day.
 
@ndugger In what way? Is your company collecting yur biometrics
or is it using WebAuthn or local device?
 
Yeah, have the fingerprint reader on the macbook pro, and I guess there's now a web API for biometrics, so we have it built into our auth modal
passwords are a shitty security measure
 
@ndugger Macbook doesn't expose your biometrics
 
It's local device, though; probably hooked up to the mac keychain and compared the fingerprint somehow
 
only if you are who owns the mac or not
 
4:06 PM
right
 
webAuthn provides key based auth, your macbook is basically authenticating on your bhealf
this makes me clap 😃
NOICE!
 
Just saw the option pop up for the first time today, so they must have released it full-scale today
 
@ShrekOverflow what language is that?
 
JavaScript
this seems weird
 
how does it think it is infinity?
 
4:10 PM
nice to know though
its 2^65536
in the last step
and 2^16 in the step before
it seems like its going from right to left
 
oh, I thought it did ((((2**2)**2)**2)**2)
 
time to read the spec
for both of us
but basically write it on a paper
 
No, it definitely goes right to left
In every language I know of
 
Makes sense though
 
TIL
 
4:14 PM
if yu write it on a piece of paper
you resolve the highest exponent first
but still funny to find out xD
 
ofc 2**4 == 4**2
 
Also, Ruby's output:
 
Python is the same too
 
None of this "infinity" nonsense :p
 
how many numbers can you say n^m == m^n where n != m?
I'm starting to think that only works for 2 and 4
 
4:17 PM
Infinite?
@meagar can yu add one more **2 ?
I am sure it'll run out of precision at some point
 
Well, of course
I have a finite amount of computer
 2 ** 2 ** 2 ** 2 ** 2 ** 2
(irb):13: warning: in a**b, b may be too big
=> Infinity
Writing out that number in my terminal would probably take the rest of the lifetime of the universe :p
It's 2 ** (a 19729 digit number)
 
pfft
your terminal can't handle that?
 
Repeated exponentiation quickly yields numbers with more digits than there are atoms in the universe
What we're talking about here is 2 (up arrow) 6
 
I don't know if there's a unicode character for this, but I can't find one
 
4:23 PM
@meagar i know i know
but i don't think it'll be that long a number ...
wait its 10 ^ 19000 digits
 
the operation is pretty simple tho
 
just use binary 1 + n zeroes
 
Yeah, by comparison, there are 1*(10**80) atoms in the universe, so.... you're way, way, way, WAY beyond the number of atoms
 
where n is b
on 2 ^ b
 
4:25 PM
an atom thin layer of the tip of a hair on a human is 465 quadrillion atoms... I dont think there CAN be a number big enough for all the atoms in the universe
 
@Wietbot evaljs new java.math.BigInteger("65536").pow(4096).toString().length()
 
19729
 
Theres a LOT more than a googol of atoms
 
@TaylorS Yes, see above. We've produced such a number, there are literally an infinite number of such numbers.
 
@Wietlol nno no no
 
4:26 PM
@Wietbot evaljs new java.math.BigInteger("2").pow(65536).toString().substring(0, 490)
 
2003529930406846464979072351560255750447825475569751419265016973710894059556311453089506130880933348101038234342907263181822949382118812668869506364761547029165041871916351587966347219442930927982084309104855990570159318959639524863372367203002916969592156108764948889254090805911457037675208500206671563702366126359747144807111774815880914135742720967190151836282560618091458852699826141425030123391108273603843767876449043205960379124490905707560314035076162562476031863793126484703743782
 
"465 quadrillion" is nothing in mathmatics. That's a very, very small number.
 
@ShrekOverflow what?
 
I know -_-
 
@Wietlol go 1 step higher lol
for the length
 
4:27 PM
not sure how I can do that
 
> Theres a LOT more than a googol of atoms
No
A googol is 1x10^100, there are only 1x10^80 atoms in the universe
 
@Wietbot evaljs new java.math.BigInteger("2").pow(9223372036854775807).toString();
 
java.lang.ArithmeticException(Negative exponent)
 
How big can it calculate
 
@Wietbot evaljs new java.math.BigInteger("2").pow(new java.math.BigInteger("2").pow(65536)).toString().length()
 
4:29 PM
javax.script.ScriptException(TypeError: java.math.BigInteger is not a function in <eval> at line number 1)
 
It cant calculate power to the 64 bit int
:P
 
java.lang.ArithmeticException(BigInteger would overflow supported range)
 
You want biggerIntegeer
lol i am sure the toString() would exhaust
your RAM though
 
thats a thing .-.
 
pretty easily
 
4:30 PM
 
IIRC there was a function for deriving digits
 
This 5 dollar school laptop with an i3 is pretty shit
 
can we assume 2^10 == 1000 ?
 
but it can still calculate pi, to the most part
a decent amount of it
 
@TaylorS I used to code on 1/100th the power of an i3
its not that shit
 
4:31 PM
@Wietlol 2^10 is 1024 :L
 
but can we assume it is 1000?
then you can easily determine the length
 
I guess?
Close enough
 
not really
the deviation will grow exponentially too
 
true
cant just round everything
 
4:32 PM
For eg
 
because 2^n is a 1 and n/10*3 zeroes
 
Falling down this rabbit hole is where I found out about uparrow notation: en.wikipedia.org/wiki/Large_numbers
It's a super interesting read
Turns out a Googol or even a Googol plex is a relatively small number
 
@meagar heh
I found that notation similarly
on a rabbit hole long long time ago
I thought it was just a matter of fact
 
10^10^10^10^10^1.1 ALso read up on that a couple years ago
 
of having to disclose in power of power of power of power of
 
4:34 PM
the number of digits in 2**2**2**2**2**2
approximately
 
Hell fucking no
Yup, notation is fun
but I hate notation once it goes past a million
No thanks
 
@Wietlol nope
 
nope?
 
wolfram predicts it around 10^that
 
Well shit.. now theres a googolplex?
 
4:36 PM
 
it should be correct tho
that is 2^^5, no?
 
Ah nvm I misread that
 
(as in 2**2**2**2**2)
although... * 3
 
anyway
my brain need some slep
cya l9r
 
bye
 
4:37 PM
10^10^100
googolplex...
I give up math
nevermind
theres also grahams number
 
5:12 PM
|| calc 10^10^100
 
@JBis "Infinity"
 
perfect
 
In computability theory, the Ackermann function, named after Wilhelm Ackermann, is one of the simplest and earliest-discovered examples of a total computable function that is not primitive recursive. All primitive recursive functions are total and computable, but the Ackermann function illustrates that not all total computable functions are primitive recursive. After Ackermann's publication of his function (which had three nonnegative integer arguments), many authors modified it to suit various purposes, so that today "the Ackermann function" may refer to any of numerous variants of the original...
|| die
 
@ShrekOverflow You are not authorized to administer this command
 
aw :P
 
5:18 PM
@ShrekOverflow whats dis
 
|| echo @Wietbot Hai!
 
@Wietbot Hai!
 
I don't know this command, did you mean any of the following? join, leave
 
ahaahahahahahaha
 
uh oh
 
5:18 PM
is the room thinking what I am thinking?
 
yes
 
JBI don't shut it down
let us atleast try !
|| echo @Weitbot echo || echo @Weitbot echo || echo @Weitbot
 
@Weitbot echo || echo @Weitbot echo || echo @Weitbot
 
well weitbot not echo
@Wietbot help
 
I don't know this command, did you mean any of the following? join, leave
 
5:20 PM
@Wietbot hello
 
I don't know this command, did you mean any of the following? leave
 
ok, we don't need multiple bots, please and thanks
 
@Wietbot evaljs "|| echo @Wietbot"
 
the challenge would be making it recursive
 
@ndugger I agree. I think Wietbot should be removed.
We can have funn in the...
|| sandbox
 
5:21 PM
the chat has a spam filter
 
Please go and play in the Sandbox
 
|| echo @Wietbot
 
@Wietbot
 
oh here we go
 
I think they should both be removed and the entire site shut down
 
5:22 PM
@Wietlol Can you please remove your bot?
 
@JBis @Wietbot has been banned
 
Noooooooooo
/leave
 
no fun allowed
 
Now i vote leave
back to work i guess
 
@ShrekOverflow I will unban once it leaves. I don't want chance of recursion on this room. Don't you agree?
 
5:23 PM
You can't make them recursive realistically
the room will auto spam filter you
at about 5 messages
 
It will be delayed but probably possible
 
Just use some Math.random() so the message changes
 
No
the room literally spam filters
me when I am
typing my messages
 
right
 
5:25 PM
like this
try
 
but it's not hard to code in a delay to avoid it and still end up with a recursive result
 
Yes, but my bot is setup to read the spam error messasge and delay a response
 
@user400654 jbi's bot dies in 0.1 sec
you can't delay
@JBis for recursion to work
they both need to be able to talk
what you'll get is both bots DOSed
 
 const delay = error.error.match(/(?!You can perform this action again in )[0-9]+(?= second(s*)\.)/);
        if (delay) {
            setTimeout(async () => {
                resolve(await this.send(msg, roomNum));
            }, (parseInt(delay) * 1000) + 0.25);
        } else {
            resolve();
        }
 
in perpituity
which makes it even more fun to do xD
I am tempted to write a bot taht just says || echo @Self
|| echo @ShrekOverflow
 
5:28 PM
@ShrekOverflow
 
|| echo @JamesBot
 
@JamesBot
 
nerd
 
what you want is
 
5:29 PM
|| echo stahp
 
HAMMAHTIME!
stahp
 
|| echo "|| echo '|| echo lol'"
 
"|| echo '|| echo lol'"
 
ofcourse the bot filters itself :P
 
i wish it didn't
cap didn't
 
5:30 PM
Wouldn't that cause issues?
 
|| echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo || echo
That would be the issue #1 if it did
Boom bot goes down
 
just make a special case for echo
 
spam fileted
 
@user400654 but then the above ^
 
well, no, the opposite
 
5:32 PM
You don't think it would create issues?
 
you're reading what i'm sayin backwards i think
echo would be exempt from the self-reading of commands
so echo echo wouldn't do anything
but || echo staph would result in two hammers
 
Oh, I see. eval could be an issue tho.
eval eval
 
why would eval be a problem
 
alright, i'll change it
 
6:12 PM
cap was later changed to filter itsself, pretty sure
 
00:00 - 19:0019:00 - 00:00

« first day (3349 days earlier)      last day (1598 days later) »