« first day (3639 days earlier)      last day (1311 days later) » 

3:22 AM
i am having a div contenteditable in my page.. how can i make sure that whenever tags are entered into it, that it renders them right away?
 
you can't
contenteditable won't render html, you'll need to create a separate div and render it there with js. Otherwise you could add a button and render it to the original div.
 
3:47 AM
hi
 
@KokHyvv 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.
 
i can ask about something simple in python here ?
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
 
yes i check it , no one there
thanks
 
there are people there, they just may not respond to your hi message
ask your question and if people want to/can answer they will (in python chat)
 
3:50 AM
yes thanks bro
 
 
5 hours later…
8:39 AM
@KokHyvv why you would ask that here when you've been in the python room for a week or more is beyond me
 
 
4 hours later…
12:45 PM
🤔 interesting
I want to listen on a specific port but it is in use. So I netstat'ed it
 Can not obtain ownership information
  TCP    0.0.0.0:1099           KG-WORK-LAPTOP:0       LISTENING
 
the NSA doesn't want you snooping around their port
 
there is a PID but that PID points to a process with register addresses only present in the RAM. No actual binaries
fortunately there's a /F >:D
 
Trump has COVID
 
1:00 PM
yeah
kinda amusing for me
 
maybe trump can get putin's vaccine
 
some people here were grinning when I was reading the news' headline alout.
but it is also a bad thing, if he is surviving it, then he has another argument that it's not a "big thing"
 
well, if he'll be very sick it will be the liberals' fault, and if he'll be fine it will be proof that it's a hoax...
 
" so why wearing mouth masks? " ect
 
Did you read his tweet? "Tonight, @FLOTUS and I tested positive for COVID-19. We will begin our quarantine and recovery process immediately. We will get through this TOGETHER!". Let that "TOGETHER" sink in for poor Melania :P
 
1:03 PM
https://repl.it/@skylerspark/SOCHATEXTENSION#script.js The Active / Hover / Focus elements in my CSS within my javascript arent being applied.

When I focus / hover my buttons, they still show chrome's default button outline thing
Is it the javascript, or my CSS just invalid
 
@AndrasDeak "I'm sorry honey, but I don't want to get you reinfected. We should quarantine separately."
 
@AndrasDeak he's now serious with his quarantine?
 
it gets him out of the debates, so yes
sad part is, if he held a rally right now people would still attend
 
@KarelG people tend to take it more seriously once they realize that they are actually infected
 
saw the half of the last debate. I cannot comment on that. It's a truly loss for you, USA people.
 
1:06 PM
it's our own damn fault :(
we shall fix our mistake in november
 
@KarelG I went out of my way not to pay attention to any of that. Checked out imgur, 90% of posts was debate-related. It was insane, almost all content was US politics. I think something is starting to snap...
 
How does it feel for almost everything to be US centric when not from the US?
 
we have our own problems 😁
so we're usually watching to it as like it's a bad comedy show
 
like if you search on google it basically assumes your american (and im assuming thats the same regardless of location)
 
@JBis it's amusing up to a point but to be honest the series jumped the shark years ago
 
1:08 PM
@KarelG All the politicians in this damn country are retards... However, I would rather have trump then biden.

I legitmately fear what he might do.
 
everyone gets US presidential debates
 
@MisterSirCode lol
 
@MisterSirCode What do you fear biden will do?
 
Honestly, its mostly just Socialism, things related to the Green New Deal
 
lol
 
1:09 PM
etc, things that will change the entire country
 
oh no, not the socialism :D
 
you need to be specific though
 
What Im saying is
 
@MisterSirCode Sanders and Warren were the socilistic candiates.
 
What about biden?
Ive heard hes the same way
 
1:09 PM
He's been in politics for 40+ years and he is proven to not be a socialist
 
what you just said is kinda the grand lines behind Sanders and Harris
 
Also, he hasn't commited to any of the socialist policies
You cannot say Biden is socialistic.
 
Oh, well shit I have to go, test in class, cya.

Ill think about it
 
can't find the right aspect ratio for i.redd.it/t18aij8dvwj21.png
 
but I still wont agree to biden
 
1:10 PM
Biden is least socialist of the whole Democrats running for presidency this term
 
This, is the reason Trump has a chance..
 
the fact that people are arguing about socialism is exactly why the country is where it is :D
yeah, what he said
 
what's wrong with some socialistic governance?
 
@AndrasDeak Two separate issues
 
@JBis not sure about that
 
1:12 PM
It is
 
the problems with Trump go beyond political labels
 
1. Is socialism bad?
2. Is biden socialistic?
if i dont support socialism (or at least the bernies, etc. policies) then #2 is very important
if trump convinces me biden is socialistic i might vote for trump
 
dang it, this is not some kind of Among Us where the impostor is trying to convince you that the other person is the impostor
 
eh, you need to figure out yourself if Biden is socialistic by his actions/plans/goals, not by what Trump is saying lol. However, to be able to answer that, you need to have received some decent education though...
 
and independent news
 
1:15 PM
that is what is wrong with all these elections, even on the presidential elections, the one who can point best wins
 
what country are you from @AndrasDeak?
 
news is barely independent. There are "right" and "left" influenced news.
 
Hungary \o/
 
just read from multiple sources, from both views.
 
not the most dictatorial country in Europe (thank goodness for Belarus)
 
1:15 PM
there are aspects that this news company is not telling/writing while the other does ect
hehe Hungary
 
speaking of which, i need food
 
your minister of justice tackled down an EU commissary recently
 
@KarelG if there's more to poltiical parties than "left" and "right" then left/right leaning news sites need not be dependent
 
hello, room!!
 
hello
 
1:17 PM
!!moor ,olleh
 
Invalid command! Did you mean: door, meow, goog? Try help for a list of available commands..‍
 
!!door
 
@KarelG "commissary" starts with "commie" so it checks out
 
lol @JamesBot
 
1:18 PM
at least I can tell my country has a government now.
but it's already showing fractures, 24h after it's pledge (?)
it took 493 days
 
after, what, 1.5 years? :D
nice
 
the 7th party delivers the prime minister
:D
 
i just dont understand how people could see biden as socialist
there has got to be psychological reasons
 
I'll take "What things did Fox News tell people?" for $500, Alex
here in the Eastern Bloc I don't even get the problem with socialism :D
 
i wondering if the correlation with religious people isn't a coincidence
religious people blindly believe without question despite science
trump supports blindly believe without question despite science
 
1:24 PM
@KarelG it does?
 
@JBis meh
 
wait, are you from belgium?
 
you're conflating radicalism/fanatism with religion
 
yeah, fresh from yesterday
 
@AndrasDeak wdym?
 
1:25 PM
oh, ok
 
Some religious people (think Young Earth creationism among other things) believe despite science. That's not because they're religious, but because they're extremists of sorts.
 
@JBis fyi, Trump did not even disapprove the violence caused by both BLM and that extreme-right group named "Proud Boys".
*during that debate
 
@KarelG actually, he told them to stand by :P
 
People are making that a much bigger deal that it really is
 
1:27 PM
That's sad actually. Just disapprove any form of violence ...
 
"I just wish them well, frankly." - Trump prolly
 
@JBis I'm more inclined to agree that the vast majority of Trump voters are fanatics. But only because the rational lot have left him years ago.
 
The biggest issue and most consequential issue during the debate was when trump encouraged his supporters to actively engage in voter intimidation and suppression by going to polling stations and watching over.
 
yeah "supervise that shit"
 
that is a much bigger issue that a slip up
 
1:28 PM
and then he has problems with some election fraud in another countries
 
@KarelG well he's been openly preparing for election fraud for months, there's nothing new about that
 
@AndrasDeak im not understanding your distinction of religious fanatics and trump fanatics
 
@JBis How so? There are many kind of fanatics. I'm saying that the "believe despite science" is not a hallmark of religion, it's a hallmark of fanatism
 
I don't mean to be rude, by interrupting this discussion but I am a bit confused about something. please can anyone explain this concept a little to me, or a better way of approaching it?
         ```
         class fish{
            water(){return 'water';}
            food(){return this.water();}
        }
        console.log(new fish().food()); //this works
        const {food} = new fish();
        food(); // this does not work
        ```
 
@BobbyAxe Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
1:30 PM
I know plenty of religious people who don't take the Bible literally and believe science. That doesn't affect their faith.
 
@BobbyAxe it's not a problem to ask something when there's a discussion going on :)
 
@KarelG but asking JS? Well...
 
@AndrasDeak can you be religious without being fanatic?
 
@JBis not part of that slack workspace :P
@JBis absolutely
 
@BobbyAxe food is a method of class fish. You can only call it if you have a fish object.
 
1:32 PM
fanatical (comparative more fanatical, superlative most fanatical)

    Having an extreme, irrational zeal or enthusiasm for a specific cause.
 
it looks like fine code to me tho
@KarelG he is using destructuring of the new fish object
to only get the food out as const
 
People who happen to believe in a god or supernatural things aren't fanatics.
 
@KarelG so I couldn't use other methods in the class cause I destructured the food method
 
@Wietlol well, that's what I said. That food is the function object from fish.food
 
yes
 
1:34 PM
then you're calling it without any context? So this is not known there
therefore
> You can only call it if you have a fish object.
so either bind it or provide it
 
is JS that trash?
 
@AndrasDeak how?
 
how do I not know this?
 
if you're curious, you cna provide it by .bind or do food.apply(new fish())
 
@KarelG then I assume new Fish().food === new Fish().food, right?
 
1:35 PM
but even then, that's silly
 
@JBis perhaps we have a different notion of fanatism :) You know the kind of person that massacres teenagers? Yeah, that's fanatism.
 
so trump supporters "massacres teenagers"?
 
Believing things that you personally don't believe in doesn't make a person a fanatic.
@JBis huh?
 
@Wietlol that comparison check uses .toString
 
@AndrasDeak ofc
 
1:36 PM
ok, can confirm, JS is trash
 
so ¯\_(ツ)_/¯
 
@JBis as I said there are many kind of fanatics. Let me pull up a quote I have in mind...
 
okay I think I understand better, I will try to use the bindings and see what it results to
 
whats the difference between religion and conspiracy theories?
 
@KarelG I would assume it is the same as in Java like this
Fish::getFood vs myFish::getFood
 
1:37 PM
> a belief that some covert but influential organization is responsible for a circumstance or event.
so god and his angels?
 
where the first is a method of (Fish) -> R and the second is a method of () -> R
the first is the method without context, where you still need to provide the fish, while the second is the method with context, where the fish is already provided
so... in JS Fish.food vs myFish.food
 
@JBis "I could stand in the middle of 5th Avenue and shoot somebody and I wouldn't lose voters". I agree with him for the most part. People thinking that it's perfectly OK to shoot somebody in the street? That's fanatism.
 
You should know that there is "static" and "instance" methods
it is kinda similar here
it all depends of the using of this in the function
 
both are instance methods in Java
 
if there is none then you're save
 
1:40 PM
@AndrasDeak i dont think most trump supporters would believe that is ok. But if trump came up with some bullshit about the person he shot, there would be tons of supporters who would believe they deserved it.
 
@JBis I don't really want to continue this especially since I'm not religious, but most rational religious people separate this world from the supernatural one for the most part. That's in marked contrast to con theories where people believe that they are being controlled by microchips administered by shots
 
interface Fish
{
	String getFood();
}

void foo(Fish myFish)
{
	Function<Fish, String> f1 = Fish::getFood;
	Supplier<String> f2 = myFish::getFood;

	assert f1.apply(myFish) == f2.get();
}
@KarelG like that
JS cannot do the above?
without using bind
 
|| mdn Function.prototype.apply
 
An error occurred with the request.
 
bah
doing food.apply(new Fish()) works as well as you have provided a this-context
 
1:44 PM
@AndrasDeak Ok. We don't have to continue. Last thing I'll say is I'm not saying all religious people are crazy. I'm just saying that they are more susceptible to blind trust.
@KarelG google is ab testing something I think. Messing up stuff.
|| mdn Function.prototype.apply
 
An error occurred with the request.
 
Useless
 
hey, respect the bot!
 
@KarelG yes... but what about f2?
 
hi
 
1:47 PM
@Wietlol the supplier? no
 
i must be oblivious of how much work Kotlin/JS does
 
this is ... like a schrödinger's cat
you only know you have it when the code is executing a given statement with this in that
in the above, some object destructuring got done on an instance object to retrieve a function (method) object.
you have an object that has a this in a statement in its execution body.
that this is only known when you're calling it.
at that phase, no context is given, so this = undefined
therefore you either .apply or bind it before calling that function object as a method to give it a context
many people has written a lot on this. Even I encounter problems with it. So I try to not use it a lot.
 
I would have assumed the binding would be done by default
 
hmm for that, you need to check with js guru's if it is feasible to add it in the engine :P
 
I haven't figured out how to go about the binding properly
 
1:55 PM
and why would I do that?
I am fanatical about getting rid of JS once and for all :D
 
^^
 
can you show me an example of the binding
 
@KarelG i am working on a website for Wietbot completely written in Kotlin-React
 
@BobbyAxe .apply is a clean approach: food.apply(new fish())
 
it is working like a charm, but searching how to do things is still a bit difficult
although, I rarely need to search for what I need
 
1:58 PM
be careful though, if you have a class with dynamic variables, it might not give the output you want :)
 
and I still need to take a close look at the theme and stuff
colors, fonts, sizing, etc
obviously overly complicated, but it is my exploration project to see how things work
 
I'm tscing a typescript class es2015 module, which includes a commonJs import. It compiles fine but when I run tests with karma against it. I get an error due to the commonJs imports..
Uncaught SyntaxError: The requested module '../lang/en.js' does not provide an export named 'default'
This is coming from this module being imported
 
yes food.apply(new fish()) works fine
 
import SunEditor from 'suneditor/src/lib/core';
 
import {SunEditor} from ... ?
 
2:05 PM
I'll find the link
 
i mean, what if you put curly braces around it?
 
my bad that whas the type import
the module import is
import suneditor from 'suneditor';
within that module it's importing _lang which causes the test error
Because suneditor is imported inside of a es2015 module
and import _defaultLang from '../lang/en'; seems to be a commonJS import
i.e, this file which has no default export
 
hello
 
@Mohit 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.
 
I probably need to provide more context on the question, will try post a SO question
 
2:10 PM
whats the advantage of creating react native app using react native cli over expo cli.
last time i bundled an app using expo it got to a size of 76 mb which i found overwhelming for a simple app.
 
2:41 PM
@Mohit Considering we have web games on websites that are 500mb, and are downloaded hundreds of times... 76 mb isnt the worst size you couldve gotten.

These days, I think it really comes down to your preference
Chances are, those 76mb are probably mostly just dependencies and libraries used by the application
and barely maybe 0.1mb is your app
so continue to develop it and see where it goes
 
2:59 PM
Angular Question: Our project uses material forms and something that I noticed is that the fields do not upon initial focus have real time validation. If the user selects out of the field and then selects back in then they have real time validation occurring.

Q: How do we enable real time validation on the initial focus of the field? I'm new so I am not sure what to even Google as I have had no luck so far in my searching.
 
3:28 PM
@MisterSirCode Does the package size decrease if i use react-native-cli instead?
 
@Mohit I dont know, you have to test it, and decide on which one you want to use
But considering the usability of react, you may want to move to it, Idk, again, its up to you
 
4:30 PM
Hello Guys, I am a senior developer who has over 8 years of experiences in this field.
3
 
@AlphaDevs 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.
 
@AlphaDevs Ok. We.. er... didnt really need to know that :L
 
 
1 hour later…
6:00 PM
I added a new case to my switch statement. and it is sending form info to the wrong url. before I added the case it was working fine and now its acting up
 
are you using breaks appropriately
 
let me send you the fiddle rq
This should be all the code involved with it.
 
 
When I am adding a new item to the list from the DataTable page, I select Operational Energy for the Program, and it posts to the AppHistoryDeliverables list instead of the OE list. But when it repopulates to the datatable, it is appropriately grouped under the operational energy group
Dont even look at that Kevin
I am an idiot
I forgot the break; after a few cases
 
😉
 
6:14 PM
Finally catching my own errors without begging ppl for help.
would ya look at that
 
i mean
11 mins ago, by Kevin B
are you using breaks appropriately
i wasn't gonna open it anyway tbh
 
I didn't even read that
lol
 
not a whole lot that can go wrong with switches
either it's a break problem, or a syntax problem
 
ya ya
 
6:28 PM
@kmoser how would I add a submit handler. Should I do an onclick in the submit button? — Yashvardhan Khaitan 35 mins ago
 
6:57 PM
?
 
 
1 hour later…
8:19 PM
Yo
 
9:17 PM
i am having div contenteditable in my page, how can i make sure that when tags entered into it
 
user12582392
9:35 PM
guys, you may give me some north here.
 
user12582392
I'm a newbie but have some knowledge of js, react and express. I want to build something similar to mozilla dev docs. Basically, an html page where the "main" area gets updated
 
user12582392
(I don't know if they did it this way). Any ideas what to look for at least?
 
user12582392
The reason not do to many html pages is maintenance, and because I'm generating them from markdown
 
user12582392
But idk what approach to try
 
10:06 PM
@santimirandarp i'd do a react app with markdown support
but you could do it a million ways
 
10:37 PM
@santimirandarp You might be able to save yourself a lot of effort if something like Gatsby fits your needs
 

« first day (3639 days earlier)      last day (1311 days later) »