« first day (3133 days earlier)      last day (1813 days later) » 

6:00 PM
@ThomasTallman
20 hours ago, by JBis
@forresthopkinsa What frustrates me more is people who thing telepathy exists. We can't read your mind and don't know the issue unless you tell us. "It won't work" doesnt cut it.
 
@ThomasTallman there's a thousand different progress bar plugins/libs/solutions
 
I see these kinds of questions all the time, even in our company's internal slack. People giving not nearly enough information, or people giving completely irrelevant information
 
you didn't specify what your progressbar is
how can we help you change it's current value if we don't even know what progressbar you are using?
 
and if you literally mean the <progress> element, well then,
and you do
 
6:05 PM
yes the progress element
there
 
@ThomasTallman so what do you do when you want to change an inputs value to another ?
what would you do, say, for a text input
 
oh im not trying to get it to say 70%
just a progress bar that corresponds with the number that gets displayed when u click the button
 
your question makes no sense
 
if i click the button the number goes up by 1. i want the progress bar to do the same
 
1 min ago, by rlemon
@ThomasTallman so what do you do when you want to change an inputs value to another ?
 
6:09 PM
.value?
 
yes. okay
so step 1 done
now go to MDN and look up the <progress> element
see what it accepts into the value property
 
Hi
 
@AzizAhmad 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.
 
o/
 
all im getting is that it accepts a number
between 0 and the max
 
6:12 PM
okay cool. so you know you have to set progressbar.value to a number.
now we have two parts done
now, how do you tell something to happen on click?
 
onclick=""
 
how do you do it in your js code
?
(you write a function)
^ freebie
 
uhh onkeydown?
oh wait thats still html
 
no, you write a function to get run when the event is fired
(you have an increase function)
 
6:13 PM
so now you know how to make a value change, and you know what it accepts, and you know where you have to put that update
 
progress.value = increase
 
my god no
progress.value = function() {}..
dude. step back. you are like 99% there. you've said all the answers
 
isn't that the same thing tho
oh
 
yes. and it's wrong. value only accepts numbers
you just looked that up
 
Locally my site displays moment.js converts fine, but when i have published, it doesnt like it, could it be the hosting server is not in the same region, and i need to use other locales of Moment?
 
6:14 PM
so in the function i put clicks?
 
so, you know how to update the value, you know when to update the value.
so.. put them together.
 
@kingtreelo maybe
but UTC time is standard across the board. If you're pulling time from the server, and then on the client displaying it in the client's local time zone, it should be the same. If you're pulling the date from the client, then it shouldn't change between your local server and a production server.
 
hmmm
cant figure it out
 
@ThomasTallman are you taking any JS courses to learn this? or are you just trying to hobble things together randomly? because it honestly seems like the latter. and that's gonna take you so long to figure things out
 
@KevinB im actually taking a datetime from a SQL DB, and trying to convert it, but it just shows as NaN when hosted, but works perfectly locally, even when i am hitting the server DB
 
6:18 PM
What shows NaN?
 
im kinda doing things randomly but this is for a school project
i cant figure it out
 
because there is a bunch wrong with it
 
newTime = moment("@ViewBag.ThisTime", "DD-MM-YYYY HH:mm:ss").format("YYYY/MM/DD HH:mm:s");
 
I don't know where you got some of these assumptions from.
 
6:20 PM
but setting a value to a variable isn't live.
 
okay, I'm done
you're not listening to me at all.
progressbar.value = function () {

}
I told you this was wrong
 
Are you sure you're passing a number to moment?
 
go take a JS course. you need a lot of beginner context
 
or a date?
 
6:22 PM
im passing in a string, which converts fine locally....but not when hosted....
 
rlemon why would you show me that if thats wrong. i didn't even put that down.
 
bruh
 
that's why, and I also told you it was wrong.
you've tried my patience. go take a course man
 
@kingtreelo are you sure the value is the same between the two?
In other words... debug it
find the difference
trace the result back to where it came from
Just looking at the end result isn't enough
 
6:24 PM
@KevinB i'd like to do that, but it doesnt throw up any error and works perfectly locally
 
debug it where it's not working?
 
hmm anyone knows of a markdown render library which works clientside?
 
which leads me back to...it says it is Nan
 
pagedown
 
im trying everything and nothing is working the progress bar wont go up
 
6:25 PM
@kingtreelo Right... so instead skip moment
and print what the view is giving you
follow it up the chain back to the source
 
@ThomasTallman because you refuse to read the documentation, and if you claim that you have, read it again. You're way off course, trying to set the value to a function???
 
no im off of that
im trying to set progressbar.value = clicks
 
you're off something, that's for sure
 
I've dropped so many hints and told you what docs to go look at. I've all but written the actual damn code for you
 
6:27 PM
how am i going to use a number
 
YOU ARE SETTING IT OUTSIDE OF THE UPDATE FUNCTION
 
Go take a course
 
god dammit you make me mad
not really mad mad, but enough to say it 😉
 
when you make bob mad, you've really gone and done it now, bub
 
0
Q: JS/jQuery events/data lost when altering cloned DOM element

raQaiI am pretty new to JS and jQuery and trying to build a plugin for some form controls to dynamically add and remove elements containing inputs and values which should be stored in a database later on. I am using a list of elements while the first of those elements serves as a template. In prepara...

 
6:36 PM
i like this room, a lot friendlier than the c# room
11
 
back
and by update function you mean increase?
well fuck
i figured it out
i really hate the way scope works
 
it's not a scope issue
you need to tell the code to run when you want it ran
not just plop it anywhere and hope it updates magically.
unless you use mobx
<3
 
oh
well thats most of my problems
 
scope
 
and he said it wasnt scope
i hate scope
 
6:49 PM
scoop
 
I'm new to React. I'm converting a webpage into a React component. The original .html page has a lot of script tags. I know to use NPM to install the ones that are on NPM, but there are 8 scripts that aren't loaded that way that deal primarily with editing the DOM. Where do those go in the React component? Adding them to the render() function doesn't seem to be the right approach
 
user1596138
Those can go either on the page that houses your React script (Index), or you can add them as scripts from your app.js
 
Do you need them?
 
@KevinB yes
 
user1596138
Look into Webpack aliases/globals so that you can use them without errors
 
user1596138
6:56 PM
Oops, they are called "Externals"
 
Okay, thanks for the direction
 
that's true even for non-third party script resources?
 
user1596138
Anything that will be on the page but is not included in your bundle. I.e. external scripts added as <script>
 
6:57 PM
I only ask, because... it's rare to actually need to interact with the dom directly with react
 
user1596138
Definitely don't do it from within any React component.
 
or convert them / find React replacements
most of my front end 3rd party stuff has had a react version that required very little massaging to get working
 
I've been trying for the past few hours to get it to convert and it hasn't been easy, but I also a noob at this sort of stuff
github.com/lutzroeder/netron/blob/gh-pages/index.html#L132 is the file that I'm converting if that helps
all the scripts above the highlighted one I found on NPM
it's a pretty hefty JS app to visualize ML graphs
that I'm supposed to turn into a React component :P
 
well in that case just separate the two
React wants to own everything in its root rendering container
 
That's what I was suggesting, to just host its own .html page and use an iframe to load it, but the guy who is paying me said to load it directly in the component if possible (and I think it's possible)
 
7:05 PM
Hello, i´m having a problem at my code.. i tryed to post it but no one could help me..
 
@Donutsrool 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.
 
oh I meant in the same page. you don't have to have React look at the entire page.
you tell it what the root node is
 
@rlemon example?
 
I mean as simple as this
(html is in /src/index.html)
 
1
Q: How to use "other" option with checkbox and text input

DonutsroolI´m trying to make a text input appear when I click on the "outra", that means "other" option on the checkbox... I want it to appear just when i click that and then it will register that thing on the database. Does anyone know how to help me? Code with the functions: <label class="checkbox-...

 
7:10 PM
@rlemon could that entire thing be loaded as a component though? My understanding is that it couldn't be
 
could be
you'd probably have to inject the js some other way. or import it.
but you can just hammer a bunch of HTML into react. it's highly discouraged tho
 
that seems to place me back where I started then :P
 
user1596138
The script belongs in the html file, if it has to be loaded as an external script
 
user1596138
Don't let someone tell you to put it in a component lol
 
yea I would just split up the React and this .. component? widget? whatever it is
so they live separate in the same DOM
 
7:38 PM
🚽
 
I am sad that I can't search for emojis in chat. I want to see how many times @KevinB has done the toilet emoji.
 
private onSearchChange(_: ChangeEvent, {value}: {value: string}): void { Only an hour in and I already have the feeling that I am molesting TypeScript...
 
i know someone did such a search in the past that was successful
 
Actually in that calm same color, it looks peaceful... Almost correct even.
 
7:51 PM
only works for some of them
 
@rlemon ah thanks
 
Shame! My idea was correct but I didn't follow through and found the correct one :D
 
8:08 PM
Any opinions on the usefulness of knowing how to read/create UML and ERD diagrams?
 
LMAO
I despise them.
Thanks for coming to my TED talk.
 
lol. May I ask why?
 
Maybe too much contact with them? Since I started learning how to code, that was what I liked. Writing the code. Surely planning is an important part and I know that but all those diagrams drive me nuts.
In one class I had to write a whole program with UML diagrams.
Since then I have had enough.
Also:
in Java, Apr 9 '18 at 16:04, by Michael
And no, I have never had to use UML at any of my past jobs.
@JBis
 
Anybody used to GraphQl ?
a
allMessagesOfProject(projectId: "9d81dde8-eb21-4f58-a377-41af9a925430"){
    created_at
    content
    sender{username}
}
From this query I got
"message": "Cannot return null for non-nullable field Message.sender.",
Any clue ?
 
8:23 PM
@geisterfurz007 Fair enough, but arguably its a good planning tool that could be used. (I don't have an opinion yet, I am taking a class on them this summer. Just playing devils advocate.)
thanks for your opinion :)
 
I fully agree that it **could** be used! And it makes sense to use it! I sometimes use something like it but without adhering to the standard. I mostly list the classes and their attributes/methods and draw lines between them so that it makes sense.
It definitely helps to conceptualize your project and also create smaller subsections. But the full UML standard is just too much. It feels like you spend 80% of your time for the planning to then write like two classes in 10 minutes.
Overexaggerated obviously but you get the idea (from my point of view! I don't want to ruin your class before it
@JBis Not for that! I love ranting about stuff.
Good evening Mr. Gruenbaum :)
 
@Loktar I thought you weren't supposed to tell him :P
@Jhawins Feel free to ping me on messenger or google talk
@geisterfurz007 evening
I have a keynote tomorrow morning and it's not ready yet :P
And another talk that's not ready either
 
That's an oof! Good luck :)
 
slacker
 
bummer, google docs is blocked at work :-( what kind of feedback are you looking for? any in particular
 
I'm giving a talk about using the debugger protocol for test authoring
Going over the chrome source related to that and then showing some examples
Basically, I'm scared the C++ is "scary" and that people won't get the point
 
I can take a look when I get home in a bit
might provide a useful baseline for listeners who don't know anything about the topic :-)
 
I think more JS folks should learn C++
or Rust
or literally anything with pointers
 
I know css
 
8:36 PM
Thanks, would be interesting
 
it has pointer
does that count?
 
according to what I said, I guess it does, lol
 
@ndugger in rust you work very little with pointers, to be fair that's also the case in modern C++ but I totally get your point and am just being a pedant ass
Also maybe I'm just bad at rust
 
You don't tend to work with raw pointers in rust, but they're definitely still there
 
one could say, you're rusty?
 
8:38 PM
@ndugger yeah
 
even in C++, you might be wrapping your pointers in smart pointers, but it's still a pointer under the hood
I honestly didn't even know what a pointer was until I learned C++ last year
 
That's a philosophical question IMO, like, if you have a reference it's technically a pointer but that's now how I'd go about explaining it
 
fair enough
 
Or a smart pointer, you can think about it as pointer + destructor for freeing but that's not how I like teaching it
but like I said, you're right and I'm just being a pedant ass :P
 
I'm always right
I wish I had more time to devote to rust these days, but personal projects make my depression really bad, because I obsess and lose balance in my life
so I only write code at work these days
which is mostly typescript
and some yucky java
 
8:41 PM
you gave up on your game?
 
I don't think so. I think we're dumping what's there and going with Unity, but I'm not sure how much motivation I have for personal projects at all anymore. I'm tired of burning out.
 
hey
 
I'm also giving the open source talk which was successful before - so less worried about it
 
Are 502 errors always very cryptic? grrr
 
@ndugger I think balance is really important in personal projects, it's why I don't do freelance/consulting/independent stuff and am salaried - I don't want to be responsible for balance at that level if I can help it and I'd rather take the pay hit and be happy
 
8:43 PM
I'm running a node server on Google cloud, but suddenly the endpoint I specifid for webhook posts returns a 502
 
@BrianJ 502 is just a status code, it's as cryptic as the server is making it out to be
There is nothing special about 502 errors in particular :]
 
yeah gateway error, but is it actually? because I can POST to the same endpoint from postman
unless I'm being naive again
 
@BenjaminGruenbaum for sure. I'm right there too. The problem is that I have a million ideas, some of which I know aren't money makers, some of which I know would be huge money makers, but nobody is going to give me money to work on my ideas, and it drives me crazy. I think maybe I need to find a new outlet for creativity other than programming
 
@ndugger burnout comes from caring and being frustrated - I had a 6 month burnout once, was a bitch. I'm not doing too great at the moment anyway because of a period of partying rather than the level of self care I'd like, but it's scoped in time until next month so I'll manage.
 
that explains it
 
8:45 PM
lol I feel like that dog right now
 
@ndugger that's totally fine, I love programming but having other hobbies is very good. I did an improv course that was a lot of fun last time I felt a bit burned out.
 
@BrianJ swing your hips. You'll fit
 
Also, I warmly recommend the "regular"s like exercise, sleep (sleep is huge for me) and self-care.
 
I used to love pottery. I tried it again as an adult when I was at a really low point, and I hated it.
 
@FrostyFire that's closer to a 507 or a 509
 
8:46 PM
Yeah, exercise...
 
@ndugger lol, people change
 
that's a huge one
 
@ndugger same. painting was fun tho
throw on some bob ross and paint along with him
 
@ndugger my deal with exercise is that if I don't do it in a way I love I don't do it.
 
I watched bob ross when I took some psilocybin, and it was amazing
 
8:46 PM
* @BenjaminGruenbaum this case I can POST to the node server's route from postman and get a 200..but when I supply the same route to the webhook provider it logs a 502 on the server



*
 
Like, I tried doing stuff you do in a group and the thing that ended up working for me is weight lifting while listening to audiobooks
 
I did this not too long ago
a-la bob ross video
 
I love it
 
@rlemon thats arguable
 
yeah it's very bob ross
 
8:47 PM
to death in fact
 
@rlemon that looks great :O
I didn't realize you could paint
 
I took many art lessons as a kid
 
I can see the palette knife marks
 
drawing, painting, pottery, etc.
 
def bob ross
 
8:47 PM
That's not a skill you see in a lot of developers
 
stopped when I was like .. ohh idk. 12?
took art in HS. grade 9 and 10
then went into Drama
 
Many of us (including myself) tend to not be very artistic
Art classes were the only ones I struggled with in high school
 
my mom and my uncle were both professional artists at one point.
 
Except art history, loved that one
 
my mom paints, my uncle (her brother) draws
 
8:49 PM
whoa
artsy family, how'd you end up being a developer?
 
My brother is very artistic, sadly he has a stressful life now
 
my moms other brother who has no art background came to live with us when I was like 8 and he started to learn to code in school
so I learned with him
 
That's super neat
> hey that's pretty neat
 
lmao, are we still allowed to do that here? ^
 
8:50 PM
not into that
 
it's questionable.
 
ok I don't feel as bad about 502 now
 
it's not very welcoming
banned
 
regardless of legality I feel like it's kind of tasteless
 
do what?
 
8:51 PM
a pig
 
no one is concerned about swearing
 
2 messages moved to Trash
this isn't summer camp
no need to prove you're a big boy
 
can we move a user to trash?
6
 
thx for the invite
 
lmao
I'm going to go to sleep, I have to wake up in like 5 hours - good night :]
 
8:52 PM
later
I'm also heading out.
 
SO said we need to tone it down. so even if I don't agree swearing is bad, no need to ask for it.
 
!!afk lunch
 
@rlemon no problem
 
thankyou
 
yourewelcome
 
8:54 PM
@FrostyFire this is allowed yet my Hillary trump mash isn't???
 
I already said questionable. there is no need to tote the line. it just brings in mods and outside influence.
this room has been almost shut down because of freaking Twitter before
hence why a LOT of the old regulars left
 
because of twitter?
 
someone complained about us on Twitter and brought in a bunch of eyes for out of context conversations
 
not cool
yeah ur about the only name i recognize
 
unwelcoming or explicit?
 
8:56 PM
they claimed both.
no need to re-hash it. just assume all rules for content on main apply here too. just with less eyes.
if you wanna risk a off-tone meme.. go for it. but that's all on you if it gets flagged
 
im just killing some time taking a break from a work project thats making me almost suicidal lol. I hate everything about the project so so so so much
havent been in here in a long time
 
🚽
 
I don't get it. The internet police are so inconsistent. Like there are many fucked up subreddits and other stuff.
 
@rlemon that's really good man
 
danke
bob is a good teacher
but he uses oil paints
latex dries SUPER quick
can't do all his techniques
 
8:58 PM
actually @rlemon why does it matter what the twitter experts say about the site chat? Its not like it would affect profits right?
 
oh it does
 
taters
 
@PaulFreeman 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.
 
@rlemon good video series to veg out to as well; very calming voice
 
yes. I love bob
 
8:58 PM
@KevinB how so? I actually dont know how stackoverflow/exchange make money
 
aight, I'm out
 
user growth has been in decline for years on SO.
 
o/
 
social media is poison; the correlation between depression in young people and social media is pretty obvious. I don't have any sources right now, but it's a google search away
I'm going home
 
8:59 PM
@KevinB why :(
Its not like there are really many other alternatives
 
@JBis I'm aware. I've followed this mans work for many years
 

« first day (3133 days earlier)      last day (1813 days later) »