« first day (2779 days earlier)      last day (2165 days later) » 

12:05 AM
@KendallFrey Just like religions. Its funny how similar lots of them are
 
@William I'm reading a REALLY good book on that right now
disclaimer: the author of the book is a Christian apologist
 
Do share. Might have time eventually.
 
but the book is called The Reason For God
I can't get enough of it. My personality is somewhere along the lines of "logical to a fault" and I immensely enjoy how objectively the author tackles different issues
I don't ever have time for reading so I have a long list of books that people have recommended me sitting untouched. But my roommate was listening to an audiobook of this and I just listened to the first chapter and I was HOOKED
 
Awesome! Yeah I believe I have heard of it. I was raised in Christian schools at least part of my life so I found those books less informing for new information.
 
yeah I've never been to Christian schools but I'm intimately familiar with the faith (for probably obvious reasons) but nonetheless this guy is blowing my mind
 
12:10 AM
My favorite short argument. Is the watchmaker analogy
 
the creationism argument?
 
I find watches fascinating because I believe benjamin franklin was born of a watch maker. Not a rich family but he did so much.
 
right this one
 
12:29 AM
How do I import a file into a component? I mean an external library from a cdn.
I have to use the cdn in this situation or my app won't be compliant
I don't want to do the index.html with a script tag. I literally only need to load it every 100 page views more than likely
 
1:02 AM
I swear that the level of difficulty implementing credit card payments in react compared to anywhere else is putting me in a murderous rage at this point..
 
 
4 hours later…
5:10 AM
omg this guy on fb:
 
5:41 AM
ha ha
 
 
2 hours later…
7:20 AM
I have a node file which has 10 exporting functions, is there a way that I can call another function everytime any one of them is called without having to write that line to the end of the function?
 
7:41 AM
need help debugging this reactjs, formik and YUP issue
 
8:20 AM
Did everyone finally migrate to Discord?
 
user6086034
It's Saturday
 
8:48 AM
Hi everyon e
 
@towc People trying to cheat their way into citizenship
There are folks like there in groups here too
 
sure, but I didn't expect them to ask about it in a public group
 
People are stupid
 
9:13 AM
@JacobSchneider use proxies
 
I have a question guys if you know please correct me.
On registration I'm registering users email, phone and name But on name property I want them to have 4 different names so on there blog they can change it.
my mongoose model:

myId: {IdOne:String, IdTwo:String, IdThree: String, IdFour: String }

in my /register request when I'm trying to do this:
myId.IdOne: req.body.myId.IdOne,
I endup with this error account.js: Unexpected token, expected , (51:8)
Can anyone please correct me
 
user6086034
9:50 AM
does anyone know where I can find flexbox practice layouts like this
 
user6086034
4
Q: flexbox displaying sub-div at the top

AbhiThis is what I want to do: I have the brown part separately at the top as a div. Then the other colors in a content div. I don't understand how to bring the blue part at the top for < 768px since it is inside the content div . <!DOCTYPE html> <html lang="en"> <head> <meta char...

 
10:07 AM
Does this have any errors? Shouldn't preventDefault() prevent my form from being sent? It isn't working. The form gets posted anyway when I click on the submit button.
 
@Simon.B 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 message moved to Trash can
@Simon.B Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
<script>
        $('#uploadSubmit').click({ function(e){
            e.preventDefault();
            var link = $(input).val();
            alert('Test');
        }
        });
    </script>
 
10:25 AM
hello, can someone help me
is there a way in javascript to threat a request and fire certain action in ajax before sending it to onreadystatechange
globally
 
 
1 hour later…
11:44 AM
I want to do something useful
 
user6086034
12:15 PM
me too
 
1:42 PM
no
 
2:25 PM
Dead room
 
@SterlingArcher none of you answered though - the reason is stackoverflow.com/questions/750486/…
 
3:07 PM
most of us have more connections than bill gates apparently:
 
3:29 PM
hi can someone take a look at this really quickly
 
@MindlessRanger 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 message moved to Trash can
@MindlessRanger Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
@MindlessRanger Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
const isImg = (url) => {
	try {
		return fetch(url, {
			method: 'HEAD',
			mode: 'no-cors'
		}).then(res =>
			res.headers.get('Content-Type').match('image'));
	} catch (e) {
		Promise.reject(e);
	}
};
when url points to a non-existent address, I want to catch it. Normally I wouldnt put try catch but the error I got wasnt thrown inside a promise (devtools). So I put try catch around it and even now I cant catch the error?
 
.catch on the promise or don't catch it at all
 
Is there a way to take "fractions" of the exp function? I'm thinking of a function f(m, x) where f(0, x) = x, f(1, x) = exp(x), f(-1, x) = ln(x), but I don't know how to compute such a function.
 
@BenjaminGruenbaum this doesnt work either
const isImg = (url) => {
	try {
		return fetch(url, {
			method: 'HEAD',
			mode: 'no-cors'
		}).then(res =>
			res.headers.get('Content-Type').match('image')).catch(e => console.log('only if I could catch', e));
	} catch (e) {
		Promise.reject(e);
	}
};
notice the catch on the fetch
 
3:36 PM
@KendallFrey what's f(1/2, x)?
 
well, something in between, not exactly sure
 
@MindlessRanger why aren't you using async/await?
@KendallFrey it's hard to answer since how you transition between them is really important
 
I remember hearing about a similar approach for defining exponentiation with fractional powers
 
That's a big vague
 
as in a^(x+y) = a^x * a^y
I don't know what definition I'd need here
basically just want the function to straighten out towards 0
sort of like a gamma function, but that's x^gamma, right?
 
3:40 PM
@Neoares glorious
 
@BenjaminGruenbaum didn't want to create unnecessary overhead with babel-plugin only for async await
 
Note that your whole fetch won't work as Content-Type won't work with no-cors afaik
 
@BenjaminGruenbaum figured it out :) the error I was getting wasnt actually thrown, it was just chrome-devtools logging the unsuccessful attempt as an error. And because fetch doesnt error with status codes (it sets ok false), I wasnt getting any errors that I could catch
 
4:25 PM
if someone tries to recruit me from utc-4, it's probably south america, right?
huh, this map loads incrementally on my browser, it's kind of cool:
 
It's SVG, it's the same incremental loading you see when opening a web page
 
user7909000
Hello.
 
Nope.
 
user7909000
I cant ask anymore questions on stackoverflow.
 
4:42 PM
@towc didn't know australia was 2 countries
looks like the island split
 
1 message moved to friendly bin
This room was placed in timeout for 5 seconds; There is now a timeout button rom owners can use under "room ▼ " - did anyone else notice this?
(I waited more than 5 seconds which meant there was no actual timeout - but it's interesting)
This room was placed in timeout for 30 seconds; Testing timeout feature, no one is talking so seemed like a good time to check how the room reacts.
 
user7909000
Someone invited me to dustbit room.
 
ehh.... timeouts have existed for a long time
 
Mod timeouts have existed for a long time but I totally missed having RO timeouts
and in any case we should discuss when to use them
 
user7909000
They are meant for low reps.
 
4:54 PM
yeah, RO timeouts have as well
 
@BenjaminGruenbaum We've discussed them indirectly a few times before. I'm kinda surprised you missed that.
 
Not sure why the map refuses to acknowledge the existence of countries that have a XX:30 timezone.
 
@KendallFrey totally missed that
 
RO timeouts have existed??
Yeah I didn't know that either, I don't remember RO's being able to still speak
and if so, why haven't they been used more often?
 
@Loktar There aren't many cases where we need to timeout the entire room. Usually it's one particular user.
 
user7909000
5:14 PM
I better dare not to type something.
 
user1596138
Anyone had the HTML5 Location service tell you you're on the other side of the world
 
user1596138
Geolocating etc works fine. All my other devices on the same network are fine. But my PC thinks I'm in some other country
 
user1596138
I also got a "Welcome to Los Angeles" message on FB on that PC. I have never been to LA
 
quit vpning :P
 
user1596138
I VPN for work 9-5 but outside of that I only have one specific program routing through a VPN.
 
user1596138
5:25 PM
So idk
 
5:36 PM
What is clohure ?
 
@ErenYagdiran 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.
 
Clojure? It's a programming language.
 
5:56 PM
@littlepootis Nope, it's a Tide ad.
 
user1596138
6:50 PM
Finally got DP and my desktop works at 1440@75
 
8:14 PM
@Jhawins My life improved by a lot when I discovered I can set both Windows and Ubuntu to 144Hz refresh rate which is supported by my monitor
So smooth
 
8:35 PM
@BenjaminGruenbaum I was looking for that but couldn't find it, I knew it was because closures but couldn't make the words happen :(
then it was deleted
 
@SterlingArcher You're a disgrace. Stop making excuses for your own shortcomings.
 
9:15 PM
but you know im tall
 
unlike the tiny people
 
guys
when sending lists of objects for multiple select fields
is it preferrable to pregenerate all the options multiple times on the server or send them once and then populate in JS?
I have list of entities, and they need to be assigned to a category. I'm making a view that allows easy change of all the entities from the list, with each having the select on the screen (as opposed to the dedicated "detail" / "edit one" view)
 
9:32 PM
@BartekBanachewicz no, only data should come from the server and the UI will generate the options when the state changes
 
according to my phone's camera, I'm a 26yo female
 
Maybe I misread -- if it means all data vs only what you need, it depends on the object size. I typically only send exactly what I need to limit calls, or that if I need more the data is small
 
9:53 PM
@towc PSA: If your camera starts talking to you and assuming your gender, you should get rid of it.
 
 
1 hour later…
11:01 PM
How would one use a ReadableStream (or maybe WritableStream) to stream the body of a fetch request directly into an ArrayBuffer instead of into another response?
I realize the question is a bit odd, but I'm using a ReadableStream so I can track the progress of the response
 
11:34 PM
@ndugger developer.mozilla.org/en-US/docs/Web/API/ReadableStream/… IDK the different between modes. It seems to indicate byob is for your situation, but the default looks like it would work just as well.
 

« first day (2779 days earlier)      last day (2165 days later) »