« first day (2292 days earlier)      last day (2654 days later) » 

5:00 PM
I kinda just want @MadaraUchiha to dress up like bboy360 and try to pick up women with his SO rep / diamond. "hey baby :pulls out phone: did you know I mod TWO stackexchange sites.. yea :leans on bar, does duckface:"
 
let answer = yield "Pull the trigger?";

if (answer === 'yes') {
    yield "....";
}
 
module.exports.frames = Rx.Observable.bindCallback(callback =>
{
	frame = callback;
})()
.observeOn(Rx.Scheduler.animationFrame)
.repeat();
Is there a better way to start an RAF loop?
 
@Luggage oooooh I see how that could be quite useful now
and I see how an array-state based implementation would suck
 
@towc and in that example, the "consumer" of the generator could wait for UI events, etc.
 
@rlemon reminds me the comic that the women keeps laughing but they have sex nonetheless
 
yh yh
my life makes more sense, thanks
 
yay
 
@ssube Yes I saw that, but it doesn't work for me
for one thing, that's Rx 4
 
@towc in my fiddle with the react wizard, the .next() is causing the wizard function to resume where it left off.
 
A related question: Is there a better way than bindCallback to create an observable that I can "start" at a later time?
 
5:03 PM
@KendallFrey I know there's a similar pattern with newing up stuff now
 
@KendallFrey why do you need to extract the frame here? It'll work, but it's not really required.
 
@BenjaminGruenbaum Because I don't want to start the render loop until later, once resources are loaded
 
then just don't fire it
 
I call frame() to start the render loop
 
user2620028
@jhawins honest thoughts, do i repair the jag or not? the $500 car i bought as a temporary means of transportation just had the starter bendix go out to the point that it takes like 3 minutes to get the car started lmfao
 
5:04 PM
you can filter, you could just not generate next
 
@ssube I don't understand
 
there are some options
@KendallFrey tbh benji can probably explain much better than I, this is still on the edge of what I'm comfortable with.
 
user1596138
@HatterisMad Fix the Jag and I'll fix the Ranger. We're both fucked
 
@KendallFrey subscribe to start the render loop, it's simpler.
 
if you can convince him to elaborate
 
5:05 PM
But generally you're doing fine.
 
user1596138
Except one of us met his girl in his... So I have to fix mine :/
 
user2620028
@Jhawins i told you to not fix the damn ranger lol
 
@BenjaminGruenbaum do you have to construct it in a certain way to make sure it doesn't queue up events until then?
 
user2620028
@Jhawins my girl hates the jag... but thats mainly because it doesn't have computers and a/c and whatnot haha
 
I'm not clear on what produces a hot observable and what makes a cold one
 
5:06 PM
@BenjaminGruenbaum It seems wrong to me to force the callee to wait. For one thing, it means that subscribing to the loop must be done nested in another subscribe handler.
 
user1596138
@HatterisMad I need to just slice the Ranger up, use back of cab as a headboard
 
user1596138
 
user2620028
@Jhawins there is an idea
 
user1596138
It's our first bed literally. So. Lol
 
user2620028
@Jhawins but you know if you do that, you risk needing to call a buddy with a chevy anytime you want to get the job done.
 
5:08 PM
@KendallFrey if you're nesting subscribes, you probably want to merge them or map one into the other or something
it's like nesting promises
 
user1596138
Gross
 
user2620028
cmon that couldn't be left alone...
 
@ssube It seems wrong to me to use a single observable instance for different events
 
@KendallFrey it probably is, but having A->map->A' and B->map-B' and A'->merge(B')->C is a real (good) pattern
 
When is it useful?
 
5:11 PM
@ssube no?
@KendallFrey that's your design choice
 
Hey guys, my boss told me something and I'd like to have inputs on that. I was using XHR and he basically told me not to use that, but to use $.get instead, saying that he doesn't think it's working on all browsers, that it requires adjustments on different browsers (IE in particular). What do you guys think about that?
 
@Shozs 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.
 
user2620028
@Jhawins also after having made my own bed. Make it in a way that is easy to move in and out of doors, around corners, down stairs. Mine is kind of a bitch to do that with.
 
my favorite example is a multiplayer game where your actions, the server's state, and the physics engine all influence the position of things in the world
 
Observable subscription is lazy
 
5:12 PM
 
Observable subscription is lazy
 
@ndugger Your twin?
 
omg ndugger
 
2:32am.. psh. Way to be original.
 
@BenjaminGruenbaum The problem for me is that I need to create the observable at some point in the future, but I want to expose it immediately
Is that a bad thing to want?
 
user2620028
5:14 PM
@Shozs ie10+ supports most features of xhr, basic support ie7+ according to mdn developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest
 
@KendallFrey observables are not like sequences, they are functions for sequences. I would create the observable ahead of time, return it and only subscribe to it later on.
 
I can't create the observable ahead of time, unless I use bindCallback or fromPromise or something like that
 
if you look at the underlying subject/subscriber classes, you'll see how that works
I've got a snippet where I do just that, but I'm not sure it's Good Code
 
@HatterisMad Thanks!
 
user2620028
you are welcome
 
5:20 PM
 
poor guy
this is why I leave early, so nobody can ask for things at the last minute
 
user2620028
or maybe don't push and merge right before you want to walk out the door :)
 
git commit -m "stuff. probably works."
git push production
 
Latin has a term for 'alternative facts' - Taurus Excretia.
shade
 
-_-
ok, actually funny
 
5:27 PM
@KendallFrey LOL
 
While I have no love for Kellyanne Conway, and I find the constant making-up of 'facts' to be a huge problem, I could have interpreted her statement in another way. In the context of the conversation, she could have meant "He gave [counter-evidence]".
But since she is 99% slimey... meh..
 
was there any actual evidence?
 
Yes, and they made up numbers.
the riders on the metro, for example, are actual evidence.
 
i meant evidence to the contrary
 
No. there was no evidence to dispute the low turnout that I hav heard.
 
5:31 PM
> it has been found that 3 + i95% of money goes to trump's cat
 
The only numbers to dispute were either just pulled out of Trump's ass (the 1.5 million) or made up and contrary to records (metro riders)
 
user2620028
wait? this is about the members in the audience bullshit again? Who gives a fuck? And if someone actually does can you explain why it matters?
 
The only reason people give a fuck is that trump disputed it, claimed the media was against him and had his people attack them with made up figures
Otherwise.. no one would care.
 
@HatterisMad it matters because he wants to make us think people already think he's the best
 
You have to keep attacking the small every-day lies.
 
5:33 PM
that's how most governments get full control, and not in a good way
 
user2620028
@towc a government wants to project that people love them. And this surprises you in the slightest? They all do this
 
back in the days of eastern-european communism, the gov made people think it was inescapable and that noone should stand up to them, by telling tales of how much people love that government. It kinda worked
 
Right. You need to think you are alone in your opposition.
 
and if you were questioning the government and the gov decided that you're a threat, they can blame it on the people who loved the government
 
user2620028
@towc people have an open forum of communication with each other now. globally.
 
5:34 PM
lol
 
@HatterisMad yeah well, except when the networks are blocked
 
People don't talk to each other. At least not with people that disagree with them.
 
@HatterisMad That's why so many people are tearing into the govt
 
or when the gov says that the people of the internet are enemies of the state and shouldn't be trusted, which is kinda what schools are doing, rightly
 
user2620028
@Luggage i agree, i think thats a bigger problem than talking all day about the insecure person who is leading our country
 
5:36 PM
@HatterisMad well no, that's always going to be true, and it's only a matter of how much the higher-ups use that
 
Perhaps, but I think saying "all politicians lie" is a false equivalence and ignoring a big warning sign.
 
user1596138
Main's down
 
user2620028
@Luggage all people lie, it is human nature to follow their own interests
 
user2620028
why am i double posting?
 
because not everyone feels the need to lie about small details like that.
 
user2620028
5:38 PM
RO's are you able to see my double posts right now?
 
No
 
it's fine. refresh, they'll go away. It's happening to me, to
 
F5
 
RUN
 
typical politicians lie about what they said last year, or come up with excuses when confronted. The difference now it that you have someone who denies a tweet they made yesterday and calls you fake news if you bring it up.
 
5:40 PM
what happened to that nodejs alternative? did it get incorporated back into nodejs in the end?
 
io.js? yes. it's merged.
 
> We apologize for any inconvenience, but an unexpected error occurred while you were browsing our site. It’s not you, it’s us. This is our fault. Detailed information about this error has automatically been recorded and we have been notified.
 
user2620028
yeah we elected someone who appears to have the maturity and intellect of a child. We knew this before the election though. So i guess my viewpoint is why are we surprised about it now to the point of making it big news.
 
We're not surprised, just angry
 
Not surprised, but now that he's actually president, it's important to start fighting the small lies instead of waiting.
 
5:42 PM
more importantly, we need to point fingers :P
well, not sure if I should say "we" or "you"
 
say both and buy a WiiU
 
@HatterisMad ok, the billionaire POTUS has the intellect of a child
 
as do i.
 
TIL: webpack can now export a function instead of an object
 
I? We? You? This equal verbiage is getting out of hand.
Stop talking about yourselves and only pay attention to me.
 
5:44 PM
@corvid ?
 
@corvid it's done that forever
hasn't it?
 
user2620028
@Mosho opinions are subjective. i can only look at the things he says and the way he says them considering i don't personally know the man and have never had in depth conversations.
 
his accomplishments are as objective as it gets, agree with him or not
 
You don't have to be smart to make money.
I wouldn't use that as a solid metric
 
it's not money
 
user2620028
5:46 PM
he made money with money in a capitalist economy. I don't think that is an accomplishment
 
user1596138
@HatterisMad Right lol.
 
it's billions, and becoming the president
 
user1596138
I am also double posting @HatterisMad.
 
user1596138
Just don't refresh... It might not come back up
 
user2620028
ehh i am just ignoring it now, refreshed and im still doing it
 
5:46 PM
phrasing
 
user1596138
 
I'm saying you absolutely have to be smart to make a billion bucks
prove me wrong
 
user1596138
We are having database or network issues on Stack Overflow - investigating now.
 
rip stackoverflow
 
user1596138
Lol "We are having database issues.. Or network... Or Idk who knows"
 
5:48 PM
Trump is likely not stupid...
But that doesn't mean he has the temperament for this job.
 
Does anyone know when the StackOverflow developer survey results come in?
 
user1596138
@Mosho Who do you think made a billion, because they didn't
 
trump
 
user2620028
woah am i back?
 
user1596138
</pedantic>
 
user2620028
5:51 PM
cool... the network kicked me for a bit
 
user1596138
I still want his tax returns... lol. Everyone just forgot
 
user2620028
@Mosho i don't believe that inheriting a lot of money from your family establishes your intelligence
 
He made money after that.
But yes.. he had a head start most people don't. He's not a self-made man.
 
user1596138
Because. Ya know. They may contain information that literally disqualifies him as president...
 
user2620028
From an american voter standpoint, he can barely string together sentences. He lacks cohesion when talks. He never addresses any issue that the conversation was about ( although this is typical of a politician it just seems like he gets sidetracked or never has a real answer )
 
user1596138
5:53 PM
Doubtful. But there's the emoluments clause or other potential problems.
 
user2620028
i don't think that the guy is mentally deficient by federal standards but i don't really think he is well off
 
user1596138
@HatterisMad Sounds like just about every dried up hag in politics. Male or female.
 
I think he's worse and that it's dangerous to accept this as the new normal for politicians.
 
user2620028
God it makes me think of Obama, the worst speaker i have ever seen in politics until Trump came along
 
user1596138
I think he's better than a lot, honestly.
 
5:54 PM
Better at lying and changing the subject?
 
user1596138
@HatterisMad Did you remember 2007....?
 
user1596138
Like. Do you not remember Bush Jr lol
 
user2620028
Haha yeah bush wasn't a good speaker either but at least he was better than obama
 
Supposedly Bush was pretty smart, but the media kept picking up on his verbal fumbles.
 
user1596138
We had a fucking moron as president. This isn't so bad...
 
user2620028
5:55 PM
you think trump is smarter than bush jr?
 
I don't.
 
I do
 
user1596138
Yeah I don't think that's objectively debatable.
 
according to his IQ he is one of the smartest apparently.
 
user1596138
At any capacity...
 
5:56 PM
@Loktar His IQ according to whom?
Sean Spicer?
 
His mom
 
Hey! Don't talk about Dear Leader like that.
 
IQ is a largely invented metric
 
user1596138
He may be kiniving underneath who knows. But the dude seems to be the most intelligent person to stand up there in my life.
 
user2620028
@Loktar #1 IQ is a shit comparison tool
 
5:57 PM
so lets go off of feelings then
and if that's the case I feel he is smarter so I win?
 
user2620028
@Loktar that is what we have been doing lol
 
No, let's go off what he says
and does
 
well. he says he's smart. :)
 
user2620028
@Loktar no, there is no winning in a conversation about feelings
 
like bringing jobs to the US before he's president?
I'm all for judging him on what he does ;)
 
5:58 PM
That was his reason for not needing intelligence briefings.
 
user1596138
Look at how the guy got elected. He sat back, did the math, waited for the year the demographics fit and then he took it all home. Whether he used 100% fluffy feel good policies to get there doesn't matter...
 
user1596138
Fucking genius compared to any of his opponents...
 
user1596138
They couldn't see what he was doing lol
 
well, he only had to beat hillary..
 
user2620028
@Loktar to be honest i don't really think you are willing to objectively look at anything he does because you support him in every tiny little thing he does. It is to the point that you got kicked from the room at one point by entertaining someone trolling you on it.
 
5:59 PM
Someday, people will realize that people need to quit splitting things down the middle politically and just focus on being decent human beings.
 
user1596138
I hated the guy up until he sat down with Obama the morning after the election. So. I'm not just a Trump bias...
 
I'm not calling him stupid, but I don't think it was pure intellect that made him win either.
 
@HatterisMad way to try and silence people.
 
no one said he was
but saying he's stupid is stupid
 
> Wait guys we only want opinions from people who are critical of him please.
 
user2620028
6:00 PM
@Loktar holy shit did my bad. i didn't realize i said do not ever talk.
 
typical room response as of late ;)
 
@Loktar you got kicked? lmao
 
@Mosho lol yeah but it wasn't even for saying anything about or against trump actually
 
user2620028
I am not trying to demean you. Just open up a conversation on why you lean towards fanatical support as opposed to just support?
 
it was for not engaging with someone regarding it
 
6:00 PM
@Jhawins I would LOVE to see that entire meeting.
 
@HatterisMad where is fanatical support?
 
user1596138
@Luggage Dude same
 
I don't see how that would get you kicked
 
because I disagree with the fanatical unsupport of the room lol?
 
user1596138
@HatterisMad Most the room has this in the exact opposite.
 
user2620028
6:01 PM
@Jhawins agreed
 
I'd say the room is mixed with a majority of anti-trump.
 
mixed...
 
Sure.?
 
I mean if you have 1 m&m in a bowl of skittles maybe it's mixed lol
 
He said majority
 
user2620028
6:02 PM
i (hope) i am neither, since we have him as president now I hope he does a great job considering we are all invested in it at this point
 
user1596138
You are ragging on the ONE guy that has somewhat fanatical support of Trump (@Loktar cmon, you're pretty biased lol that's all). The entire rest of the room is completely anti-trump to the point that it's absurd.
 
@KendallFrey then which is it?
 
hehe, well, ok, but there are only every a handful of us talking at a time, usually and usually a couple "trump people" (to simplify).
 
See, love or hate the guy. You have to hope for his success, he's the elected leader. His failure is our failure.
 
We were having a nice conversation, but now we're talking about how fanatical each side is
 
6:03 PM
Can't I hope for his impeachment?
 
It was better when it wasn't meta
 
user1596138
Like. One dude really likes the guy. So he's nuts for liking him a lil extra...
But the rest of the room is so far in the other direction it's fucking hilarious lol
 
@KendallFrey Frankly? Pence scares me a lot more than Trump does.
 
Policy-wise, pence is more right..
 
@Jhawins That doesn't sound biased at all
 
user2620028
6:04 PM
@Loktar the reason i was saying this is because it feels like you support him no matter what he does or says. Your unwavering support doesn't feel like politics. It feels like religion. You are allowed to have your own opinion or stance on what is happening.
 
On the first page open, I add username automotically with setcookie in php. But node always sends empty value on first page open. Anybody knows why ?
<
socket.emit('new user', { nick: '<? echo $_COOKIE[name]; ?>'});
 
user1596138
@KendallFrey Bias is inherent to opinion.
 
@Trasiva The whole administration scares me more than Trump.
 
@HatterisMad you don;t even know me....
like I've commented on a handful of things mentioned here lol
 
What is the best way to format code here in chat? Like, I have some code I want to cut and paste, but when I hit enter to move down a line, it just posts it.
 
6:04 PM
!!format
 
Format your code - hit Ctrl+K before sending and see the faq
 
@Pennywise control enter to put a line without submitting
 
Shift+Enter inserts a newline
 
or shift enter?
 
I guess that's your "feelings" though @HatterisMad lol
 
6:05 PM
yeah shit enter :)
 
user2620028
@Loktar yeah, fair enough. I can only tell you my observation. Like i said before im not trying to insult you or be rude. Just want to have a discussion.
 
cool. Lemme try
 
@HatterisMad @Loktar Can we get back to taling about his actions? :)
 
@KendallFrey The only one for the cabinet I'm really for is Mattis, and that's because he's a fantastic leader.
 
I have the following code:
 
6:06 PM
Why @Luggage?
didn't we all agree maybe we should tone it down?
 
user2620028
@Luggage yeah i just feel bad because i feel like i have insulted loktar when that wasn't really my goal.
 
user1596138
@HatterisMad You are not opening up any discussion. What
 
@HatterisMad oh no dude, not insulted at all actually
 
what happened to SO?!?!
 
user2620028
@Jhawins yeah i don't really know how to... what the right words are...
 
6:07 PM
@StackStatus
Status updates for the Stack Exchange network, including http://t.co/VY1vdMiR. You can also find more detailed updates on http://t.co/uCcZjNx5.
634 tweets, 5.5k followers, following 0 users
 
I have the following code:

            if (!e.target.matches('dropdown-toggle')) {
                var parent = ($(e.target.parentNode).attr('class'));
                var grandparent = ($(e.target.parentNode.parentNode).attr('class'));
                alert(parent);
                alert(grandparent);
                if ((parent.includes("dropdown")) || ((grandparent.includes("dropdown-menu")))) {
                     alert("hi")
                }
            }
 
then maybe the words shouldn't be used in the chat period :p
 
user1596138
#triggered
 
OK, still working on formatting...
 
Anyone else see the outline of the republican replacement plan for the ACA?
 
user1596138
6:07 PM
#hashtag #politics #notJavaScript
 
^ exactly
 
I saw a picture of the pre-existing conditions exclusions
 
user1596138
@Luggage No one cares. This is JS chat
 
user1596138
Owners, start binning and kicking.
 
lets move the discussion off of politics before it gets out of hand like it always does.
 
user1596138
6:08 PM
Seriously. You guys bitch about this shit and then do nothing. Have some rules, or don't. It's simple
 
For once I agree with Loktar
 
have asked multiple times over the past few days, if you look at my chat history I am not bringing it up
 
the politics talk was fine. The talk about who is fanatical and shutting down conversatin is the problem, and the biggest problem there was a room owner
 
@Luggage so there are problems with the discussion
 
user1596138
@Luggage Hatter isn't an owner...
 
6:09 PM
so... lets not have them?
in a JS chat anyway
 
has anybody seen or used or even heard about amon.cx ?
I'm trying it out as a DataDog alternative for my personal stuff, since it's ~$2/host instead of $15
 
I remember the .cx tld
 
amon like the satan demon thing? weird name
 
hehe
 
^ yeah weird extension
 
6:10 PM
yes, oddly enough tons of daemons are named after demons
nobody knows why
it was super easy to set up and is collecting good data, the dashboards aren't quite as fancy, but the price difference makes that ok
yet another tiny go daemon on every box, my infrastructure is going to end up as more of those than anything useful
 
I like new relic
 
@BenFortune heh, I used them for a year or so at my last job
ended up getting rid of it and firing the guy who brought it in, actually
 
I have the following code:

            if (!e.target.matches('dropdown-toggle')) {
                var parent = ($(e.target.parentNode).attr('class'));
                var grandparent = ($(e.target.parentNode.parentNode).attr('class'));
                alert(parent);
                alert(grandparent);
                if ((parent.includes("dropdown")) || ((grandparent.includes("dropdown-menu")))) {
                     alert("hi")
                }
            }

The first 2 alerts are giving me what I expect.  The problem is my third alert does not fire if the second half of my conditiona
 
not specifically for new relic, just for wasting our time and not committing his code
 
Haha
 
6:14 PM
the UI was nice but the rest of it just didn't really work well, and the monitoring was pretty spotty
 
plus they kept stripping features on the graphing/stats side
 
@ssube Yeah, pretty much this. They keep stripping features from us, because we're on a grandfathered package and we need to "upgrade"
IE pay $200 a month more for the same stuff
 
hah, that sounds like them. We were on one of the bigger plans.
 
The monitoring is spot on for us, helps find bottlenecks in legacy code
 
6:16 PM
that was back when they priced per host, which I'm not seeing now
 
I say that, it's all fucking legacy code
 
their performance monitoring caused more problems than it highlighted
also broke a few other libs that were doing reflection
if you want system monitoring or you're running Java apps, it's not a good choice
 
luckily I am not running any java on this network, not anymore :D
> $7.20/month
> 12k CUs per host per month
wtf kind of pricing is that for self-hosted?
 
> New Relic Subscription
This is a New Relic account which has special pricing terms and privileges. To request changes to your subscription, please contact our sales team at sales@newrelic.com.
:P
 
6:20 PM
> * A CU (compute unit) = (CPU Cores + GB RAM) x hours used
ha, fuck
 
Yeah, they do it weird now. We just have dedicated servers
Company I work for has been with them since Feb 2013
 
so my dedicated server would cost about $50/month on that plan, plus about that again for the VMs
that is insane for infrastructure monitoring
the CPU+GB thing is absolute bullshit
that bill would be more than half what my hosting bill is
 
damn
 
so that's not really a good option
it's kind of stupid that datadog and folks charge $15 for a single host that probably records a few dozen datapoints
 
That moment when you meant to bring a full meal, and you bring the leftover hash and have to eat vegetarian instead.
 
6:34 PM
you'll survive until tomorrow.
 
I'll just pack dinner heavier with protein is all.
 
you don't need to 'catch up' if you regularly eat meat anyway.
 
Can you unpack arguments from an array within an anonymous function? IE: Object.entries(myObj).map([ key, value ] => ({ /** ... */ }))
 
you need () around the args if you are destructuring
 
Ah, that explains it, thanks Luggage
Also super useful for serializing values to a string
 
6:39 PM
also really hard to read if you do more than one or two items
I've stopped destructuring in the parameter list because it gets too long
 
In this case, it should only ever have two values, It's basically just to map { key: value } into `${key}=${value};`
 
its only funny because nobody got hurt
 
that is how funny works
 
except the woman
 
6:54 PM
it's also funny because the person is getting in trouble
 
> Once inside, Bybee allegedly held the woman down and forced prescription medication into her mouth, causing lacerations and abrasions to her face as well as bruising to her body. She lost consciousness and called for help when she awoke.
Investigators discovered that the door to her garage was left open and her car was left running, filling her home with carbon monoxide.
yea, "no one got hurt"
i.imgur.com/yZi1X91.jpg this is a 'no one got hurt' funny
 
he was rubbing cat litter on his windows?
 
or the feces?
 
that deserves carceration by itself
plead insanity, man
 
maybe it's to absorb moisture from the air?
 
6:57 PM
those crystal fancy ones absorb moisture in the air
not the cheap stuff.
 
flavor crystals
 

« first day (2292 days earlier)      last day (2654 days later) »