« first day (2620 days earlier)      last day (2328 days later) » 

2:01 PM
Hi. TS: What is the problem of returning T as a generic type of array ?
class A {
    private _allSessions: Array<number> = [];

    public loadSessions<T>(): Promise<T> {
        return new Promise((resolve, reject) => {
            resolve(this._allSessions);
        });
    }
}
 new A().loadSessions();
 
my eyes hurt, what do I do in life?
 
Hi, I got a question about. "ShadowRoot". Is there a way to detect this with Javascript -> the 'close' mode?
 
sun is going down in like 1hr
 
@user1731468 Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
It refuses to except <T> as an array : tinyurl.com/yamceoba
 
2:02 PM
@user1731468 shadowRoot.mode === 'close' ??
 
hello
what is the butter
$("#div").append("<input id='x' type='text' />")
or
var textbox = document.createElement('input');
textbox.id = "x";
div.appendChild(textbox);

add html as string in jquery append or create structure noods in javascript
 
or do you want some kinda event to tell you when it changes?
@IbrahimAlsurkhi depends on what you mean by 'butter'?
 
@rlemon no that doesn't work. I already tried that. I got always this error message: "Cannot read property 'mode' of null"
 
@user1731468 then your shadowRoot variable is 'null'
that'd be the first problem
 
butter for browser most used by developers
or most used by developer
 
2:05 PM
@IbrahimAlsurkhi butter is a spread you put on toast.
 
!!learn butter <>https://chat.stackoverflow.com/transcript/message/40494352#40494352
 
@KendallFrey Command butter learned
 
I enjoy conversations about butter.
 
@FlorianMargaine hates them
 
We can butter him up on the matter.
 
2:06 PM
@rlemon any ideas or tip? to get this detected? Because the shadowroot is closed. However, when I use "open" mode. it found this element.
 
is butter still available? or am i late?
 
@Malik Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Eating up too much memory and slow speed....any hop
 
@user1731468 make a demo
 
!!butter
 
2:16 PM
13 mins ago, by Ibrahim Alsurkhi
hello
what is the butter
$("#div").append("<input id='x' type='text' />")
or
var textbox = document.createElement('input');
textbox.id = "x";
div.appendChild(textbox);

add html as string in jquery append or create structure noods in javascript
 
> add html as string in jquery append or create structure noods in javascript
this is godly butter
 
I can’t believe it’s not butter
 
betty bought a bit of better butter to make her bitter batter better
 
picky people pick peter pan peanut butter, it's the peanut butter picky people pick.
 
2:20 PM
I prefer jiff
 
Uh, no Peter Pan Peanut Butter is terrible. JIF or bust
 
Sep 10 at 2:05, by Kendall Frey
@BenFortune https://www.reddit.com/r/WordAvalanches/comments/3ogese/a_swindler_passes_by_a_b‌​ird_in_the_stairwell_of/
 
ugh... I bet you guys live in motherfucking Jondor
 
@towc I like that one, ok?
 
@KendallFrey I don't have a problem with it. Do you have a problem with it?
because if so, we have a problem
 
2:23 PM
@FélixGagnon-Grenier no, I live in Ontario. That's the reason we can't be friends you filthy quebecois. 😛
 
gets the pitchforks out !!!
 
> no, not the baguettes!
 
we use them to fuel the fires
fite me
 
The Canadian Civil War of 2018
Casualties: Niceness
 
and one timbit
 
2:24 PM
French canadians are to blame for 9/11
 
it was a tough day
 
indeed
@hilli_micha Sorry, eh?
 
work tried to get me to use a french keyboard
it was pretty annoying when you're not used to using one
 
hue hue hue
even when you are
I actually have a US keyboard older than mother teresa, sometimes I switch to french layout so as not to look retarded without accents
itès kinda hard
^ point in case
 
no but really, what do you do when the sun is down and your eyes hurt?
 
2:27 PM
sleep
 
can't really exercise, there's people around
 
@Jacktriun fuck
 
omg, gnome tweak tools lets me force numlock on always ❤️
 
@KendallFrey well, I plan to clean the place up some more later tonight
 
2:28 PM
@Jacktriun Please don't troll or flamebait or whatever you're doing
 
and I don't want to sleep while people are around, because I might snore or even fart
I feel for mosho right now
 
farting when you sleep is sign of good health, I say out of my ass just now
 
no, you say it while you sleep
duh
 
@KendallFrey ok
 
2:29 PM
@towc Fart and snore while awake. Problem solved
 
I fart into snoring people’s mouths
 
it's cold outside and I'm somewhat tired, going for a walk might not be a good idea
that sounds like a good hobby
 
numlock is off, and I'm typing 123456789 like a boss
this makes me so happy.
I always end up hitting numlock by mistake and turning it off.
and I use the numpad a lot
 
I don't remember the last time I used the numpad
 
Me neither
 
2:31 PM
anyone converted a c or c++ lib to run in js?
 
The price is dropping! Quick! Panic!
 
@littlepootis how did it go?
 
@SuperUberDuper where are you stuck at?
 
2:45 PM
havnt started yet, need to know what is possible. We have an AI lib we need to run in the browser
we can convert our existing one or use a new one , ie use deeplearnjs
 
Depends on what you mean by "convert"
convert lib.so lib.js or rewrite
 
@rlemon That's amazing
 
We just introduced into our codebase the worst pluralization utility I've ever seen.
 
Readjusting syntax coloring for the dark theme in @jsfiddle – still work in progress but I like the general direction 👨🏻‍🎨
dark theme jsfiddle? yes please.
 
@KendallFrey Good for you!
 
3:01 PM
@rlemon how much time do I need to generate 1 BTC?
 
all of it
 
Depends on how many chinese sweat shops you have
 
alright, strongly-worded email sent
 
> Dear buddy, I'm so sorry, eh
 
No one to blame though, because the code has been copied around the internet several times
and the original version appears to be gone
 
3:06 PM
He said strongly worded
 
that is strongly worded
 
> Aight bud, here's where we're at eh
 
oh, I see
 
> Tilly time
 
and heh, look at the url in that jsfiddle code :P
#vuematters
 
3:07 PM
> Hi mike,
💪Listen, we need to 💪talk about the new 💪library you added to the 💪project
@KendallFrey ??
 
Basically "this is built-in, we don't need to copy a worse version from github"
 
my largest print (and longest) yet.
almost done
 
do you have a cat?
 
yes, but this isn't for me
 
yeah, I guessed it was for your cat, not for you
 
3:12 PM
2 hours ago, by rlemon
nope. I'm building a cathouse for my inlaws
 
it's his rimworld cat
 
inlaws?
what are inlaws :P
parent in law?
 
significant others parents.
 
oh
 
@ssube What's your hourly rate? :P
Our apache server is borked, and keeps hanging
inb4 switch to nginx
 
3:18 PM
switch to node.js
 
screw nginx, go for tomcat. A tomcat is a nice jet fighter. Good speed. Good backwings.
 
@BenFortune Install a VM with IIS next to it. It might scare it into working again
 
is React smart enough in binding muitiple event listeners to children components to "batch" them, or will I have to do that manually?
 
i'll ask this again when a lot more people are around: thoughts on this mismash of libs to create a web app? typeorm (or raw sql queries)+koa+graphql+apollo+mobx+react
 
I think you can do all of that with jQuery
 
3:31 PM
can != should
 
@rlemon jsfiddle.net/n4cf8m3w/2 as you can see I created 2 shadowroot, but it can not find the "closed" mode. I need a way to find this closed.
 
@KamilSolecki my tinder game is crazy strong these days
I'm unstopable
 
except at spelling bees
 
Nobody spells things right these days
 
3:39 PM
disappears
 
@user1731468 shadowRoot always returns null if using closed mode of Shadow DOM
 
@SterlingArcher what game
 
says so in the docs.
 
I'm actually talking to a canadian chick (the swimmer), but she's got competition
 
I don't use tinder that much now, but anyway I stop getting matches for some reason
maybe I should keep the old photos I had xD
 
3:42 PM
eh
 
Maybe you should git gud
 
i prefer hit hud
 
I'm I solid 3 here brah
 
so teach me senpai
 
I wonder if I can make a tinder account for my newt. he seems lonely
 
3:42 PM
The key is to just dangle the ol' worm out there
And have perfect hair
 
no, he'll eat it
 
wut
 
he's a newt
 
@rlemon so there is no way to detect this shadowroot?
 
@user1731468 attach a fake property to the element when you create it
 
3:46 PM
the key is to dangle the perfect hair out there, when you get nibbles: shadowroot
 
shadownewt
 
@rlemon the shadowroot (in my real project) is created by the website. The code I want to add is what is inside the search button.
@rlemon (i can not add a fake property)
 
you can't access a closed shadowroot
 
isn't a newt a salamander?
 
you can detect it if you have control over when it is attached
otherwise you are shit outta luck
 
3:52 PM
newts are a type of salamander
 
user2620028
@SterlingArcher are you assuming you don't have competition?
 
well, that's what I meant
 
@HatterisMad have you seen me?
I'm my own competition
 
i had to look it up
 
user2620028
@SterlingArcher you gonna fuck your own chances up? got it
 
3:55 PM
are you your own worst enemy and your own bff and your own annoying friend?
 
He likes to role play as Guy Pierce from Memento when he goes on Tinder
 
uhmmmm
WTF is this, YouTube?
 
hi towc, is that new? just asking what you want in your video overlay and link
 
I don't see what I'm supposed to be outraged about
 
why is the display and destination different?
I get that maybe you want to use a url shortener or something
 
4:01 PM
An image link and a url?
I don't know what that is
 
but that's fishy af
 
And I've been given no context
 
it says this, links to this,l for shift switchy practices, the old bait and switch
 
Maybe the display URL is an image URL
Or a video URL
 
now I can't really trust youtube overlays :P
 
4:02 PM
It says Overlay
I can't imagine it's text
 
oh, I assumed it's a link
 
I'd rather see foo.com instead of foo.com?ref=some_stupid+long;thing-here-that-doesn't_matter_to-me_but_does-to%20‌​theAD-guys,AndPayment-Scheme
 
but an image makes more sense
 
Or what rlemon said
 
@towc guess what... <a href="foo.com">notfoo.com</a>
this isn't new, and is everywhere.
 
4:03 PM
oh, it's for ads apparently
@rlemon yeah, but normally you don't have to worry about that on sites like youtube
 
:/
 
@towc lol really?
 
I trusted it, now I can't. Sure, #firstworldproblems, but still
on the other hand, I have an adblocker, so I'm the dick
 
@towc neither I do #adblock
 
oh, turns out cgp was confused because he didn't know what it was
so while I was trying to find out why he'd be confused, I reached another conclusion
and that's how kids are born
 
4:07 PM
its okay, good vigilance, keep em coming
 
I, too, look for things to be outraged about
 
!!giphy old man yells at cloud
 
i look for things to be amazed at to share with yall
 
(>^_^)>
 
every time something happens, there's a 1/1000 chance I'll share it with someone, regardless of what it is
 
4:09 PM
1
Q: why doesn't this jquery work?

K BobWhy won't this jquery work? It's supposed to take the content out of a div named poop and insert it into a div named moreinfo. Instead, there's no content at all in the moreinfo div. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> jQuery(doc...

 
@towc like that guy that asked you to masturbate together and popped his dick out of his pants?
 
exactly like that
 
Thanks guys. I tried the # before. I tried not including the # because the JQuery for Dummies book didn't use it. Anyway, I solved my problem by putting all of my scripts within one script element. Are you not allowed to have multiple script elements in the head? — K Bob Sep 9 '11 at 23:03
troll alert
 
#poop
 
@BenFortune always a good choice, but do you know why it's broke?
 
4:12 PM
> jQuery for Dummies
AKA jQuery
 
@ssube Just a bad config I think, it's christmas peak and we've had a massive influx of traffic
I thought apache would be able to handle it
I've configured some event MPM parameters and it seems to be doing better
 
ha, those suckers. I placed my flower order last week.
if you can, bump your idle/max workers n such
 
In all honesty I don't know what the fuck I'm doing but it's worked so far
 
give it more procs to respond with, especially if each response is fairly cpu-light
 
Current config is
<IfModule mpm_event_module>
  StartServers 5
  ServerLimit 300
  MinSpareThreads 20
  MaxSpareThreads 200
  ThreadLimit 64
  ThreadsPerChild 30
  MaxRequestWorkers 480
  MaxConnectionsPerChild 0
</IfModule>
 
4:13 PM
@BenFortune welcome to the world of sys engineers
lots of people does that
 
@Neoares I'm so confused 0.o what did you edit?
the text looks exactly the same
 
I always check the docs of configs, investigate the shit out and ect
 
We have this server so it's not like it can't handle it
 
@towc msaturbate
 
maybe I am not lazy enough to be a true developer
 
4:14 PM
oh
 
@KamilSolecki Tournaments?
 
I'm rusty on what the apache fields mean, but the thread limit/per child limit seem low, especially compared to the max spares and requests
 
they should implement some advanced diff view, like git
for edited messages
actually like in Q&A edtions
 
might be a job for the dark chat
but looks like my PRs are being ignored
(no beef, meant in a friendly slightly provocative way)
 
is there a way to tell mobx to observe future object properties?
 
4:19 PM
yes, import crystalBall
(no idea)
 
o/
 
You guys hear about the overweight mystic? Their business cards said Heavy Medium/Four chin teller.
 
@observable foo = {}; // foo = { bar: null }  works out just dandy
@action componentWillMount() {
	this.foo.bar = 1;
}
componentDidMount() {
	setTimeout(action(() => this.foo.bar = 2), 3000);
}
render() {
	return <div>{this.foo.bar}</div>
}
^ small demo. should I use observable.map?
maybe
!!afk coffee and vape
And yea, looks like the solution is to use a map
Thanks everyone :)
 
np bro, im here to serve
 
@ssube I'll have a look into that, thanks. It seems our TTFB is randomly really high too, could that be associated with some hanging threads, or not enough?
 
4:33 PM
it could be either way, the status page or system metrics can probably tell you which
 
Oh damn yeah, I forgot about mod status
 
 
good xkcd
faith restored
 
printing that one
a bunch of other stereotypical conversations can be charted like that
and political discussion
opinions arent as widely varied as they might be
 
god damn, I don't know how to make the map work like I want it too. 😒
and I get why, I just don't see how to update a map value unless I do some really strange stuff with map.observe
 
4:49 PM
@rlemon share code
 
I don't really have code to share
I'm trying to write a store that will return a observable value from a function call
so I can do something like <Component value={this.props.store.observe('key')} /> and when the value in the store attached to the key changes, I re-render the component with the new value
 
return ‘a observable value’
 
and I don't know the keys before hand. (well, I do, but I'd like to build them from the api calls)
but map.set('key', newValue) only triggers if I have set map.observer, and how do I elegantly trigger the update in there?
 
My blanket smells like Halo 3
It’s like a combination of farts and pizza
 
diablo 4?
 
4:54 PM
halo 2 is where the cool kids played
 
The recent poe league has this rediculously op helm. basically a vaal skill in helmet format. Every time you kill something, you have a percent chance to gain a charge (15-20% random roll on the item), and every time you use a skill you discharge one of those charges in every direction. It can be boosted by GMP, and does physical dmg and thus can be converted to ele and scaled, or just scaled from physical. the number of charges you get is based on the number of abyss jewels you have equipped
if you scale it with gmp and have 4-6 abyss jewels, you can just shield charge through a map and it all dies
 
I know some of those words
 
@KevinB I got back into it, it's so damn great
Running a CWC frostbolt, so much fun
 
My net was screwed for the first week, then i went on vacation this weekend, just now getting into it last night
frostbol tis really strong
the jewel makes it strong early
 

« first day (2620 days earlier)      last day (2328 days later) »