« first day (2553 days earlier)      last day (2388 days later) » 

5:00 PM
@rlemon aw fookin ell
 
@Luggage oauth? saml?
 
1
Q: Setup socket listeners based on data that may not be available in time when "connect" fires

SrleLets say that you need to fetch names of available socket rooms from some third party or whatever, in general you are not sure that those names will be available when "connect" event fires on server. io .of(...) .use(...) .on('connection', socket => { if (whateverModule.roomsAreAvailable()) {...

 
LOL I'm dyin here
 
it shows up in a few places and is often misused
 
I forget. I have seen it a lot and have been reading about oauth / openid connect and saml2
so...
 
5:00 PM
Yeah I am going to use it with OAuth
 
there are so many valid ways to pass tokens that it's all about the api, which methods they support
 
I should look up the spec again, I think that field is largely user defined
other than the Basic auth that browsers handle
 
Hello.. Anyone able to help me with my MEAN stack web app? Having data load issues..
 
@Kenzo 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.
 
sorry, I'm Canadian. we use the NICE stack.
 
Here is my website on Heroku b2b-city.herokuapp.com
@rlemon har har
 
I use a NICE stack. Node, nInginx, webpaCk and Express.
 
@rlemon oh my god
 
@Srle :D
 
loving it :D
 
5:02 PM
@SterlingArcher its an entire show dude!
apparently they're all basically the same level of brutality
 
@Srle chill
 
downvotes ARE feedback
 
@Srle your question is unclear, downvotes reflect that
enjoy your ban
 
Yup, valid flag
DOn't come in here complaining about downvotes and calling other people retarded :)
 
don't ban him, he's a very important member of this community--always offers up high quality content
 
5:04 PM
:D
 
such quality
 
I'm gonna tell on you
 
that might be the fastest I've seen a flag get validated
 
@Srle It sounds like what you need is to listen on rooms being created, and when a room is created have the user join it.
 
5:06 PM
@SterlingArcher mtv.co.uk/just-tattoo-of-us/videos/… I really hope they're all like this
man, what a trainwreck of a show
 
i love it when shit works first time
 
@rlemon oh, that one might be a deal breaker
I would have serious second thoughts
 
@ssube Duuude, I'm like 3 'reveal' videos in on youtube
this show is outstanding
 
and then after the story comes out, having been on MTV is definitely a deal breaker
 
5:10 PM
@AHMForhadulIslam 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.
 
@ssube "we'll still be friends tho!" ... 'I don't wanna see you for a while'
it's always the people who see first who freak out then the other guys sees his way worse tattoo and it's like.. why did the first guy freak out?!
 
reality show people are a helluva thing
 
the hosts are great as well
> omg, it's so ugly. I might cry
"and it's there for the rest of your life... "
 
!!s/people/presidents/
 
@mikeTheLiar reality show presidents are a helluva thing (source)
 
5:19 PM
they're like pickup artists but talented
 
@rlemon hahahahahahaha lol I started dying again
 
my hotswap bay finally showed up, so now I can plug in both SSDs
because apparently the one cable I don't have is SATA power
 
@BenFortune ive never Heard them but its pretty noice
 
hi guys, just saying from my vacation: if you have an UPlay account, you can try out the newest Ghost recon: Wildlands for free there (12 - 15 oct)
 
5:22 PM
Oh neat, thanks @KarelG
 
OMFG... season 1 ep 6
OMFG
 
I should back into that, it's a good game
 
I won't even link that one
but go look it up
hooo leee fuck
 
@SterlingArcher where on the East coast?
 
several good games coming out in the coming months
 
5:23 PM
What is the shows Name?
 
just tattoo of us
 
@Vap0r herndon VA, slightly outside DC
 
aaand Grim Dawn is on sale on GOG / Steam. But not sure if I should wait for better discount our not
 
soooo rust is interesting
good choice cap
 
rust the game?
 
5:25 PM
rust the language
 
I don't game
 
rust the oxidation
 
I don't chemistry either
 
Guys I am doing this, for my request to EBay API:
app.get('/ebay', function(req,res) {
    var busqueda = req.query.busqueda
    var limite = req.query.limite

    const options = {
        hostname: 'api.ebay.com',
        port: 80,
        path: '/buy/browse/v1/item_summary/search?q=' + busqueda + '&limit=' + limite,
        method: 'GET',
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'Authorization' : 'Bearer <myToken>
       }
      };

      const request = https.request(options, (res) => {
        res.status(201)
 
user1596138
Oxidation the rust
 
5:26 PM
You don't even
 
Oh my fucking god @rlemon
 
@SterlingArcher ahh... I've gotten offers similar from up that way. Why is VA/DC in need of programmers so desperately?
 
@KamilSolecki right?
what an insane show
 
user1596138
@QuicoLlinaresLlorens Post your api keys
 
user1596138
So we can halp ;P
 
5:26 PM
That is the Best worst tatoo Whoa i couldnt even think of that
 
@Jhoverit really?
 
@SterlingArcher at any rate appreciate the invitation
 
should I post the keys?
 
user1596138
No
 
Fuck no
 
5:27 PM
No
 
only if you want to give those people over at the NSA a hand
 
hahaha
If I post my api keys what can you do with them?
 
user1596138
Lmao many a key have been stolen from careless SO questions
 
user1596138
Hopefully buy things, that's what I wanted to do
 
5:28 PM
rip towc
 
I didn't say I wanted to
 
But I have no bank account
so?
 
what were you trying to say with that?
 
user1596138
lul
 
:|
//back on vacation
 
user1596138
5:28 PM
Saw that coming
 
user1596138
Honestly tho, why say that shit?
 
but the dog can't see him coming
 
I have that to request to EBay API, but every time it returns me this error on console:
events.js:182
throw er; // Unhandled 'error' event
^

Error: connect ECONNREFUSED 66.211.179.180:80
at Object._errnoException (util.js:1019:11)
at _exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1175:14)
[nodemon] app crashed - waiting for file changes before starting...
 
user1596138
I have no sympathy. We're grown men here we're not into this perv shock factor thing.
 
@QuicoLlinaresLlorens You're trying to do a https request on port 80
 
5:29 PM
@rlemon nope nope nope
 
@Jhoverit You just told an unsuspecting quico to post his api keys
 
Which port should I use?
 
We could rate limit him in seconds!
The travesty
 
user1596138
@Cereal It was a joke and I was the first to say don't do it
 
Yes, but he had to ask
 
user1596138
5:30 PM
Lmfao yeah.
 
I said it first in my head tho
 
Don't take advantage of ignorance
 
user1596138
I didn't. I have done no wrong.
 
Good morning ladies, gentlemen and rainbows.
 
5:31 PM
"_(\w{2}_\d{2}_\d{4})(-|.)" is this not the right way to have an OR as a lookbehind capture group?
 
user1596138
Idk what he keeps saying. I'm not a owner. But I'd suggest you stop posting clearly overly offensive messages and deleting them.
 
sometimes the file ends with -decrypt and sometimes it just has .pdf
 
@SterlingArcher an OR in a lookbehind? You should be able to invert that
 
@ssube invert how?
 
5:32 PM
@rlemon can you get rid of the onebox?
 
@SterlingArcher I know you posted an example, but I've lost it
 
you should just install dark theme @Vap0r
don't be lame
 
usually "does not come after X" can be restated as "is not followed by Y"
or something different
 
@Jhoverit not posting offensive stuff really. But I just came back from a ban for "homophobic slurs" and didn't want a light-hearted joke interpreted as sarcasm
 
@SterlingArcher But... there's no lookbehind
 
5:33 PM
@rlemon why though how will that help?
 
dark theme collapses oneboxes
 
but the capture group?
 
you'd know if you were cool
 
> if you were cool
 
those are just normal capture groups
 
5:33 PM
... so I wouldn't
 
I don't run his dark theme.
 
because you're not cool
the evidence is stacking up
 
Neither do I
 
you're Canadian
 
@towc do you run rlemon's dark theme?
 
5:34 PM
3 makes a trend
 
I'm trendy!
 
I am getting an unauthorized with the response
 
a canadian and an italian kid don't really count
 
at being uncool :P
 
I'm confused
 
5:35 PM
@rlemon das racist
 
I have my own little message color coder thing though
 
@SterlingArcher Also \w does not mean "a letter" and . does not mean "a period"
 
@KendallFrey but w/ generally means "with"
 
dark theme is fully configurable.
everyone should use it
 
_(\w{2}_\d{2}_\d{4})- works if the filename is 123456_AU_01_2005-decrypt.pdf
 
5:35 PM
and if it asks for your webcam, ignore that bit
 
can I configure it to be a lighter color?
it's too dark
 
but if the file is 123456_AU_01_2005.pdf it fails
 
This is sounding more and more like yo momma
 
Wow i Just realized They do tatoos to each other, its not Just one person
 
nvm @ssube is quicker
 
5:36 PM
Why every time I get an OAuth application token with EBay it says that expires exactyle when it was created?
 
@KendallFrey I escaped the period (lol) and it's the same
 
@SterlingArcher yeah because the - doesn't match
 
But I thought the | created an or
so match if it has - or .
 
There is no or in that regex
 
there's a second group he didn't post
5 mins ago, by Sterling Archer
"_(\w{2}_\d{2}_\d{4})(-|.)" is this not the right way to have an OR as a lookbehind capture group?
but there's still no look-anything
 
5:37 PM
Well yeah but that's a different regex
 
Ok cool. So is there an or in that one?
| not?
 
@ssube you can disable the dark
 
yes?
 
Just use the js features
 
:+1:
@rlemon what are the JS features? Constant logging of my cookie to a third party service?
 
5:39 PM
Ofc
 
You're the best rlemon
 
@SterlingArcher what's wrong with like \d+_(?Pcountry[A-Z]{2})_(?Pmonth\d{2})_(?Pyear\d{4})(?:-\w+)\.pdf?
 
If I understood most of that, probably nothing
 
2 letters, _, 2 digits, _, 4 digits, _, uncaptured -foo chunk, ext
 
5:41 PM
At this point, are you trying to extract just the 2-digit part with lookaround, or parse the whole name?
 
@ssube for the unaware, what's ?Pcountry ? Is that locale aware Regex?
 
Labels
 
@Vap0r python named capture groups
 
oh now that's just too cool
 
5:42 PM
they should land in JS soonish
 
js is getting them
they're awsm
 
OOC, how does it know the end of the name and the start of the regex?
 
v good
they actually make regex maintainable, sort of
 
I'm used to <> delimiters
 
You guys just made me really happy
 
5:43 PM
$4
 
@KendallFrey I may have just missed those
 
$4!?! Should I get tested?
 
my regex is rusty
 
that's my family discount
you should feel lucky
 
@rlemon I feel like calling the cops
 
5:43 PM
s/c/p/$
 
b/l/t
 
j/q/ree
 
what's s/c/p/$ and should I be wearing protection?
 
mos def
 
5:45 PM
Ye the rapper
 
What about capture collections, is that a thing? I wanted to take and alphabetize my imports by capture group
 
@KamilSolecki Is that the start of some Shakespeare play?
@Vap0r If you mean storing every instance of the capture in a repetition, I know .NET does that
 
@KendallFrey i Shant tell If thou hast guessed right
 
Not only that, you can push and pop to the collection within the regex itself
@KamilSolecki Blast!
 
@KendallFrey yes exactly that. wanted similar feature so I could do a global capture then something like captureGroup.sort()
 
5:47 PM
Eh Ishould get out of bed
End of slacking time
 
s/sl/j
lel
 
p/b/j
 
a/s/l-r/pp
 
s/t/o/p
 
@KamilSolecki what's the p modifier?
oh, and no
 
5:50 PM
1/2/3
 
Meh I was expecting kendall to do slashed hammertime
@KendallFrey you dissapoint me
 
Me too thanks
 
@KendallFrey it's the best regex engine I've used
 
@ssube There's a reason I used it to build REBEL.
@KamilSolecki Your mom thought so too
 
@KendallFrey listen, you talk about peoples mothers in here, but back in '45 we never used to do that.
 
5:52 PM
So harsh
 
user1596138
Having trouble finding docs on the native omit
 
@KendallFrey reading, thanks!
 
@Jhoverit american history sometime in the 1800's
 
@Vap0r Probably not helpful for your case, but hey, it's cool.
 
I'm sure the books cover it
 
5:53 PM
@rlemon ohhhh
 
@rlemon I think they mostly leave that part out
 
user1596138
Ah I'm confused I guess
 
!!sadlemon
 
user1596138
Excuse my brainfart
 
5:54 PM
damn
 
user1596138
How tf does this work
 
user1596138
const omitProp = (obj, prop) => {
  let {[prop]: omit, ...res} = a
  return res
}
 
user1596138
WHat tf is omit
 
res is a new object with everything but omit
I've been using that on and off, not sure how I feel about it
 
user1596138
How am I spreading res when it's not defined
 
5:55 PM
 
user1596138
ANd what is "omit" in this case
 
@Jhoverit it's the LHS of a let
 
@Jhoverit the new var name
 
user1596138
Should also be undefined.
 
?
 
5:55 PM
@rlemon omg
 
user1596138
Ohhhhhhh we're destructuring
 
@rlemon jfc
 
user1596138
This looked more like a normal spread to me
 
user1596138
I understand now. Ty
 
@Jhoverit wth? I thought you were in here like a month ago teaching me how to destructure assignment
 
5:56 PM
at first glance it looks like a computed property name
I'm still kinda confused by it
 
user1596138
@Vap0r At first glance it is confusing. One of the pitfalls of these syntax
 
there is a computed name
 
@Vap0r Alzheimers is a hell of a... wait, who are you?
 
that's how they avoid using prop a bunch of times
 
I'm nick
 
user1596138
5:56 PM
Throw in a dynamic prop and... Yea
 
@ssube ahh i c.
yea I had to read that a few times
@Jhoverit your code is confusing and you should be confused.
 
@Jhoverit that makes sense. Just threw me off, I was just thinking in my head "didn't he just show me this?"
 
user1596138
@rlemon Thats code from online
 
user1596138
I need to delete a property off a mobx observable
 
user1596138
Ofc also need a afresh object to trigger the observing
 
user1596138
5:58 PM
Literally nothing happens with delete lmao I googled and saw this and was like... WHAT
 
user1596138
Not using that lol
 
@Jhoverit smell
 
taste
 
user1596138
sight
 
5:59 PM
touch
 
touch
 
user1596138
Spidey sense
 
proprioception
 
well, Vap0r loses his senses
 
wait what?
 
5:59 PM
first one to repeat loses their senses
 
no please I need most of those
 
all 5
 
timing
 

« first day (2553 days earlier)      last day (2388 days later) »