« first day (2760 days earlier)      last day (2410 days later) » 

20:00
my wifi essid is "do u know da waefae"
I'm proud of it
user1596138
@DavidKamer I thought the american dream was a pretty partner and a fast/loud car finished off with a freezer full of meat. Mine will be complete next week
nooo you need a picket fence
a house larger then you need, a long way from work (long commute) and lots of debt. American dream.
that's all that really matters
user1596138
I have a picket fence
20:01
INCREDIBLE
user1596138
Like. 6 feet of it lol
Do you have two cats in the yard?
you've made it man
user1596138
@Luggage No I have a Beagle.
@Jhawins For me it involves starting an online business or three and traveling while make lots of moneys coding basically for fun while I maintain mostly automated sources of income answering to no one but myself and the beautiful foreign lady with me that I can't understand lol.
20:03
I didn't even get to musical instruments, yet.
user1596138
@DavidKamer I start working full time remote a week from today so. I could just go to France and keep working what they gonna know
user1596138
@Luggage Piano very very soon! A real one since I got a full house and privacy.
user1596138
I have 3 things I can't choose the priority of. New Motorcycle, Piano, or Paramotor
@Jhawins That's kind of my dream, but I want to make enough money to save up and have a good lifestyle so I need to do my own business. It's definitely possible and dumber people than me have done it with less skill effort and creativity.
definitely paramotor
20:05
and It's Switzerland for me
user1596138
Yea nothing has ever been done that wasn't done by a lowly human such as yourself.
user1596138
I'd like to get there too ;P
@Jhawins Tis true, but everyone I've read about has nothing on my "having no life" level of commitment. Not that it is a determining factor, but I only care about making this a reality. I did my prison shift and I'm not going back into an office
user1596138
There was a mint on my desk when I came back from smoking -HEAR ME OUT- I smoke Marlboro Smooths which smell exactly like these mints. So I'm not sure what they're saying
@Jhawins You smell.
20:08
lol
People that don't smoke probably disagree they they smell exactly the same.
Also, if you want, there are probably quicker and cheaper ways of killing yourself.
user1596138
My cube mates found out this week that I smoked
user1596138
We've been cube mates for 6 months.
user1596138
So not buying it.
20:09
Maybe it's just plain bad breath :)
Maybe they saw how salty you were here on chat, and thought you needed a mint >:)
user1596138
And seriously even my mom has smelled those cigs and been like are you smoking a damn breathe mint wth
user1596138
@MadaraUchiha Bingo
Maybe s/he had an extra mint and as s/he ate one, they decided to be nice and leave you one?
user1596138
Maybe I have no idea why I even told the story, it wasn't interesting
20:10
@copy I'm approaching your level gfycat.com/CourageousMediumBronco
user1596138
I better do some tasks
If anybody is in the market for shit, Dell has a site wide 12% sale going dell.com/en-us
some decent deals
user1596138
@SterlingArcher Dammit dude they blocked dell.com
when did SO chat get ads?
i think around the same time your mom came to town
20:12
Was it an affiliate link?
wait sorry, you said ads
@Jhawins who blocks dell.com?
@SterlingArcher unsubscribe
@Jhawins what?>
@SterlingArcher Lenovo
Dude I could always tell you smoked
20:12
Too many co-workers wasting time on dell.com :-\
it's crazy easy to smell
@Loktar LOL
I mean he sits by other people, just surprises me
dude... if you're people are blocking their tech people... that's bad voodoo
user1596138
@Loktar I have to go off network to hit dell.com rn
20:13
@SterlingArcher unsubscribe
@DavidKamer corporate junk.
user1596138
@Loktar Really? Everyone freaked out at the bar Thursday like flipped shit
really??
@MadaraUchiha @Zirak that's not gonna work
weird
20:14
urge to unRO intensifies
they were being nice.
I'll tell copy on you
oh god.. how do I turn a h1 into an input with out being the react anti christ
user1596138
They were being jerks. Actually lmao
20:14
@SterlingArcher mind control on
user1596138
I ended up being like stfu my own life and I'm going outside
user1596138
@DavidKamer bool ? <h1> : <input> idk
@Jhawins that may not be the react anti christ, but it would be the normal one.
@DavidKamer you don't. you remove one and add the other
I knew I could do it that way, but then it's going to take alot of doing that.
20:16
what ads?
sterling 'advertising' dell.
i wouldn't know if they added ads anyway
dude... there should be a module that lets you substitute dom elements for variables. So you could basically do templating like in C++
there is. react.
20:18
@Luggage that's not how react works
right?
<div> {this.getcontent()} </div>
like I can't send a variable as tags direcely as a div like:
well, c++ templates are not like the templates you use to lay out a web page..
but if you mean some form of high order component, yea, we got that
@DavidKamer Yeah, c++ templating has proved to be easy to grasp and an all-around good concept to deal with :P
    const ele = <div>
    render(){ return {ele} {something} {/ele};}
20:19
It's not like any time you have to debug anything template related you must sacrifice all the children (especially the british children)
@Luggage I was thinking HOC's are probalby what I want, but they are way too complicated to implement and even the react docs warn to avoid them as much as possible in at least one place.
my point was simply that I could throw in div or input for ele so that I could make better form/documents
const ele = <div />;

render() {
    return React.cloneElement(ele, { children: something }); // check this signature, from memory
}

// or
render() {

    const Ele = "div"; // must capitalize variable here

    return <Ele>
        {something}
    </Ele>
}
good show!
ty. I'm a 9 out of 10. :)
lol, thanks. I've just never seen that before. You learn sosmething new every day. I did know about capitals though. My first time with react I was using a stateless functional component and I didn't know that it needed to be capital and it made blood squirt out of my eyes
@Luggage with react or JS?
20:23
yes.
Because I said I was like a 6 for react or less maybe, but on a population curve of people who use react regularly and not a "genius" curve I'm like 5 to 7, probably on both if I'm honest.
user1596138
@DavidKamer No. That's how you develop. Nothing weird whatsoever
like 5-8 if you're asking about whether you'd be pissed after seeing my code
I don't really rate myself with a number. I was poking fun (in a friendly way, I hope) at your earlier 9/10 comment.
user1596138
20:26
For the record. She says it's a mint from her country (India) and she gave everyone one.
user1596138
So HAH!. Time to smoke
@Luggage "And the heavens opened as Luggage ascended to make the mere mortals tremble on their keyboards"
@Luggage yeah, I don't know what happened that day, but I drank like 15 cups of coffee
Heh, yeah.
user1596138
You guys got me feeling bad tho. I mean I wash my hands on the way back from the smoke room cause I don't want to stink. I'd start buying more spray if I wasn't only working here 2 more days
@Jhawins here you were thinking you were special for getting a mint
it was a cruel coincidence
user1596138
20:28
!!s/pecial/inky/
@Jhawins @Jhawins here you were thinking you were sinky for getting a mint (source)
user1596138
sTinky
// in react, this JSX
<div foo={42}>Hello</div>

// translates to one of these
React.createElement("div", { foo: 42, children: "Hello"});
React.createElement("div", { foo: 42 }, "Hello");

// if it has a capitalized identifier, then this:
<FooComponent ... />
React.createElement(FooComponent, { ... });

// therefor, if you have "div" as a string in a capitalized variable you can make the elemnt to use a variable
const ElementToUse = "div"
<ElementToUse> hello </ElementToUse>
@Jhawins I used to vape (I smoked at 17 on) and that stuff smells like butthole mixed with fruit
20:28
cc @DavidKamer
user1596138
Yeah I don't vape.
user1596138
I'd bring a hookah to my desk if I could
user1596138
.....o. M. G. I can.
I can't stand the smell of vape. It annoys the hell out of me when people think their vapor smells good.
user1596138
I work in my house lol I can do whatever I want this is gonna be sick
20:29
@Luggage If someone would have shown me this pattern on day one of React learning, I would have solved 1500 problems 1000% better... And understood the "transpiler" (hope I"m using that right) way better.
user1596138
Once weekly showers ftw
user1596138
Once weekly showers ftw (no)
@Jhawins You'll be moving to Turkey pretty soon with that attitude lol
I would never show that so someone on day one or they'd XY themselves hard.
@Jhawins Even though I've really just been working on my own from home, I can say that you will shower less now...
20:30
day 4.
get a roommate
@Luggage React is by far the most complicated beast I've tackled and I understand assembly (with a reference sheet)
It's @Bartek's birthday, I challenge you all to find him and wish him a happy birthday.
haskell hipster chat rooms
oops, that was for google
user1596138
20:36
@DavidKamer I will definitely still do that every single morning lmao
user1596138
I live with my girlfriend anyway lol
@Jhawins I went from every day to every other day.
user1596138
I am far far too active after work for that
@BartekBanachewicz Happy Birthday #modabuse
11
[screenshot]
20:37
anyone here consider themselves a pro with creating selectors?
got a particular one that may or may not be possible
user1596138
I create selectors for work. So I guess so
@Jhawins yeah, but it changed to "when needed" from "ocd all the time, all the time" for me
but that room is rather dead!
:O
@MadaraUchiha bug >
user1596138
Who is maintaining the bot account atm
@MadaraUchiha awesome username :D
I'm 10 points away from 3,333 rep
@ndugger downvotes instantly
20:46
pls
downvotes real slow
CHA CHA REAL SMOOTH
!!stat
@DavidKamer You (https://stackoverflow.com/users/9260060/david-kamer) have 59 reputation, earned 0 rep today, asked 6 questions, gave 9 answers, for a q:a ratio of 2:3.
avg. rep/post: 3.93. Badges: 0g 0s 8b
nb4 you suck
user1596138
20:47
!!stat
@Jhawins You (https://stackoverflow.com/users/1596138/jhawins) have 2323 reputation, earned 0 rep today, asked 8 questions, gave 30 answers, for a q:a ratio of 4:15.
avg. rep/post: 61.13. Badges: 0g 18s 39b
user1596138
My rep/post went up
how long have you been on SO?
@TravisWhite You (https://stackoverflow.com/users/4354883/travis-white) have 1215 reputation, earned 10 rep today, asked 0 questions, gave 62 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ.
avg. rep/post: 19.59. Badges: 1g 5s 14b
user1596138
20:48
Like 6-7 years
less than 1 lol
user1596138
I go a few years between posting an answer.
I try to answer questions, but It's kind of like climbing an infinitely steeper mountain as it approaches infinity
does anybody else see garbled text for my q:a ratio?
user1596138
I just wanted to get back into Main and help out. But when I did everyone started acting like that was the wrong move? So I ditched haha
user1596138
20:49
@TravisWhite Because you're a god with no questions all answers.
it's just a joke instead of NaN
0
Q: how to get value onchange function and pass this value to onClick function after button is clicked using javascript

user9755028Hi I have table with input types. when user enter the value , it triggers OnChange function, (1) as shown in figure. Runs the below code $(document).on("change", ".goalsdata", function(e) { debugger; var type = $(e.target).parent().parent().parent().parent().children().children().first...

user1596138
There's a separate joke for all questions and no answers.
 $(e.target).parent().parent().parent().parent().children().children().first
oh god
20:51
i thought that was also garbage text?
user1596138
Set a global variable. — Barmar 2 mins ago
user1596138
@Luggage It is but it's tony the pony
user1596138
I think...
user1596138
It might be rando
20:51
I think
that should be a valid flag reason, suggesting globals :)
 $(e.target).parent().parent().parent().parent().children().children().first
is how computers have strokes
wha, the computer will have no problem performing that command
it's more the future developers that will hate you
user1596138
I replied but then decided Idc
I'm not in the future, and I hate him too
user1596138
20:55
@KevinB what happens when that is called on an element without a parent?
seg fault lol jk
seg faults are like storkes in a sense
user1596138
@DavidKamer Nothing. It's jQuery. It will always be callable
user1596138
$(document.html).parent().parent()
module.exports.foo = foo;
module.exports.bar = bar;

const {foo, bar} = require('foobar');
is it guaranteed that foo will be foo and bar will be bar? I thought we can't be certain of the order of keys in an object?
@Jhawins well, It gives me a stroke
@AndrasDeak storks cab ne carsy?
user1596138
@DavidKamer I love your typos dude lmfao don't change
I think we all are afraid of storks. Think about it.......
const obj = {a:1, b:2};
const {a, b} = obj;

simpler example ^
user1596138
You guys see that the guy that said "Set a global" has 373K rep?
user1596138
20:58
@SterlingArcher is this the same guy you were talking about earlier
@JBallin you're dereferencing by object key
user1596138
Yea that has nothing to do with ordering. You will always get foo and bar ?
so module.exports will have two objects each with a key that is being derefferenced by that key so the name matters
21:01
oh right right sorry thanks @DavidKamer
oh god. How do I focus into a input when I do bool ? <h1>stuff</h1> : <input type="text />
@JBallin no probs
probably another css solution lol.
user1596138
@DavidKamer isn't there an autoFocus prop on React's inputs
user1596138
Otherwise... ref and call .focus
user1596138
Just like any other dom where you rendered an input.
user1596138
21:07
7
A: AutoFocus an input element in react JS

Mayank ShuklaThere is a attribute available for auto focusing autoFocus, we can use that for auto focusing of input element instead of using ref. Using autoFocus with input element: <input autoFocus /> We can also use ref, but with ref we need to call focus method at correct place, you are calling that in ...

user1596138
Idk it really isn't a React issue tho
AutoFocus exists on material-ui components
it's not a react issue, but doing it an idiomatic react way isn't immediately obvious
user1596138
True enough.
user1596138
21:08
There you go. Steer clear of outdated ref tutorials, things like string refs are old and deprecated
I use ref and .focus(), but it'd try that autofocus prop (that I just learned of).
what is ref
user1596138
If autoFocus doesnt exist, tbh, I'd probably just make AutoFocusInput and focus itself on didMount
<SomeComponent ref={} />
that autoFocus props is the bomb. Works well thanks. I rarely use refs, is that a bad sign?
21:09
stores a component instance or DOM element.
user1596138
With {...props}
user1596138
@DavidKamer Good sign don't come back to it until it's necessary lol
the only time i used refs was when i tried to use refs as a property name and couldn't figure out why it made everything break
still don't know exactly what it's for
user1596138
It gets you a link to the real DOM element. You need it for stuff like... getBoundingClientRect, etc
like above, to get a reference to a DOM element to call methods on it.
It's rarely needed. If you wanted to use a canvas or soemthing, you'd need ref.
user1596138
21:11
Or adding more complex events
user1596138
Like resize for example
Ah, so like with youtube iframe gaining access to the iframe to call youtube api methods etc (is that still a thing?)
google maps probably more relevant
user1596138
Yeah, same thing
thanks. I feel less bad for not extensively understanding refs. I find that happens a lot. I feel like I should know something and then get a false imposter syndrome for like 10 minutes.
i thought it was a way of passing data around between components... but maybe that's something else
user1596138
21:14
@KevinB You might be thinking of the also-somewhat-obscure context API?
It CAN be. You can get a reference to the instance of a child component react made so you can call methods on it.
user1596138
ref can actually get you a ref to the instance of a component class too. Of a child anyway. It's not always the DOM node, that's where it's confusing
the way i saw it used was a component needed access to a "color" property, and you were able to pass the property down to the child component without getting the intermediary component involved
render() {
    <div>
        <FooComponent ref={this.fooComponent} />
    </div>;
}

someFunction() {
    this.fooComponent.someMethodOnFooComponent();
}
user1596138
Prob one of those articles to be avoided lol...
21:15
@KevinB that sounds like context.
yeah, it was something i wouldn't do, so to me it seemed like a dumb tutorial
Like a solution in search of a problem
Colors shouldn't be dictated by the component imo, that's scss, i just want my components to present html
true, but there are times for that.
i can't imagine how ref is involved, though
it was probably context, not ref
ah, ok
i don't see how that could have been related to ref
but it was that same day i was looking into refs, which is why i connected the two
21:19
refs are handy
@TravisWhite refs are bad news.
They're generally last-resort.
bad news? sometimes your only option is a ref, definitely don't go looking to use them, but they have a purpose, avoid string refs of course
Imagine for a moment, being a doctor and treating a child with a genetic developmental problem. Imagine calling the parent for a talk, and having to tell them their child would always be behind because of a problem with the sonic hedgehog gene
user1596138
@MadaraUchiha That's plain not true.
user1596138
@MadaraUchiha can you show me how to track the scrolling within my component without a ref?
21:21
@TravisWhite Right, which makes it a last-resort.
As in, anything that can be done without a ref, should be done without a ref.
user1596138
Just need to know how to do addEventListener('scroll'
1 message moved to Trash can
@makat 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
user1596138
@MadaraUchiha K. Agreed :P
user1596138
My bad
@Jhawins Fairly sure onScroll is a thing
21:22
1 message moved to Trash can
@makat 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
@makat paste, CTRL+K, enter
I did :/
user1596138
@MadaraUchiha Idk I'm pretty confident that it isn't
The fact that you are sometimes forced to use a ref doesn't mean they aren't handy, that is what makes them handy
21:23
split your message into two makat, one for the text, another for the code
@makat All lines must have 4 spaces, even blank ones.
code and text shouldn't be in the same message
Even normal text.
@TravisWhite They're a backdoor
oh okay
They're like TypeScript's any
user1596138
21:23
I found it listed here reactjs.org/docs/events.html so maybe?
escape hatch
still handy
/me goes back to work
escape hatches are handy as sometimes one needs to escape :)
fire extinguishers are also handy
I like this guy, often sharing the same views
21:24
Oh, of course escape hatches are handy
It's just that you should definitely actively try to avoid them when at all possible.
There are even more handy stuff you can do with refs
For example, did you know you can get a ref to a component, and not just a DOM elements? @Luggage @TravisWhite
I agree to that, they complicate things more so in many situations and can be a smell if you constantly turn to them
yes I knew that, that is how I primarily learned to use refs, with react-native
17 mins ago, by Luggage
stores a component instance or DOM element.
refs to components is where I'd be more critical.
that kinda violates the one-way data flow (but there could be reasons)
Well, I guess it doesn't
@Luggage Mostly, 3rd party libs being retarded.
@Luggage It does
It allows you to pull internal state from a child, without uplifting it.
21:28
well, it could be one-way still, but then there isn't any reason not to just change a prop and re-render like you should.
It allows you to modify internal state as well
@Luggage Exactly, if you could do it without violating 1w, you'd not be forced to use a ref.
TIL what a bigram is
Honestly would have thought it was a risky google but it's all good
we aren't falling for it.
This is a big ram.
TIL what a lemon party is
not a risky google either /s
I am travelling to Panama and then to US for a week my Dudes.
@Loktar this was the case I was talking about back about 10 ish days ago youtube.com/watch?v=48CXKwDVmXE
Simple question trying to use filter, I filter on the API results to get only those that have "Clear" in them and then I get only those.. now I want to push to the APIs array result an image url string for each of them.. how can I do that?
const whiteList = ['Clear'];
const flist = this.forecasts.list;
const images = flist.filter(weather => {
return whiteList.indexOf(weather.weather[0].main) > -1;
I know how to do that without filter just for loop.. but how do you do that in filter
it's probably best done not in the filter
Oh
Why not?
21:36
the filter is meant for filtering an array, not for altering records within it. You certainly could do both, but that's not something i'd expect, so it could be confusing for you later down the road or if another dev comes along.
I am trying to learn this functionality by converting my simple loops to functional ones
you could do it after you filter, but filter 'creates a new array with all elements that pass the test implemented by the provided function', so the function should determine true (to keep) or false for each item, not actively change the data, maybe you could do it all in one map?
No idea how to use map yet, still trying to master filter :D
map wouldn't be able to filter out the records he doesn't want (unless i'm missing something)
filter() then .map()
or just a loop is fine.
21:39
I see, so in this case filter is not the right answer - when I want to assign new values for each one
filter then map, pretty standard
filter filters (will return all records that match) but won't alter them. So.. just do that after you filter (with a map())
You have 1 and you want to get the number 4, and you already did the 1 + 1. Now just do the + 2
what is the benefit to filter them and then assign the value if I can just loop through it and assign ?
throw an if in the map function to test whether to return the modified object? Is a little dirty, filter then map would be better, I know it works in jsx sometimes for components but yah, kinda hacky
21:40
what do you think the solution is here? Do you think it's that the dom elements aren't loaded yet?
@makat cleanliness. Personally I wouldn't let you pass a CR with a loop and tell you to use array methods.
the only benefit is that you can filter and then transform separately. Maybe you want to use that same list you filtered to do something ELSE with it besides just getting a url.
@DavidKamer naw, that can't be the reason.
Thanks, that makes more sense now :)
@KevinB enlighten me?
21:42
@ShrekOverflow Very pretty
initialize will get called any time the window is resized
it doesn't matter if the dom is loaded or not
the window is available anyway
@KevinB even when nested in a call back?
yup
even moreso actually
@Zirak Thanks!
ok, makes sense.
21:43
@Luggage Thanks!
@Loktar :)
Probably out of my affordance
@DavidKamer My guess is the OP isn't resizing the window. :)
and therefore the function never gets called
@KevinB that would make sense. I just assumed he would know that lol.
np. Just to clarify that it's not a random decision, array functions are the language in which we describe operations on enumerable entities. When you look at a `for` loop you have no way of knowing what it does: Does it map? Filter? Fold? All of the above?
So we use higher level constructs to both clarify our intent and improve our level of abstraction, while sometimes taking a hit on immediate comfort. It's the same way with `goto` vs `if`: We're going up the abstraction chain.
It helps immensely that these operations abstract over many many types ranging most languages, so while a for loop carries the same meaninglessness as in C, a map carries a meaning you see in all functional (and pseudo-functional) languages
seinfo seems missing. It's in the selinux man page.
yum provides /usr/sbin/seinfo shows nothing
21:51
that makes sense. there is another little fact to tuck away lol.

« first day (2760 days earlier)      last day (2410 days later) »