« first day (2872 days earlier)      last day (2299 days later) » 

00:00
I never got c9 to work
But this was like 2 years ago
hmm
i have a good idea
mfw tobiq running around on javascript tag saying strcat is faster than template literals
Eh, just ignore that cretin
Hey Ben, that's not cool brother
00:16
@BenFortune Ben :D
its so good to see you :)
00:39
why does SO put the answer with 1 upvote over the answer with 7 upvotes
Because it's accepted
thats unfortunate lol, the accepted answer is terrible
That's generally the case with SO, you were too slow
i posted first too
It's a dog eat dog world
00:45
does this work? 173.255.201.182:8080 (and give you full unrestricted sudo access to that machine >_>)
this makes me uncomfortable
@david yeah it works
i touched a file just to make sure
interesting
you should use some service to protect this
maybe set up a reverse proxy with http basic auth
c9 has authentication
well, used to
http basic auth? you mean like java auth?
00:48
No, he means basic auth
but java is basic for htm auth
god damn it
2.9
lol
 
3 hours later…
user3956566
04:16
@BenjaminGruenbaum I've banned the user. Disappointing
4
05:02
@ShrekOverflow Hey Shrek, my PO is wanting to spice up his reports with some auth0 data like login frequency and whatever. Do you have any suggestions for plugins that he can look into? I think he uses tableau for his stuff so some way to import it would be cool. I'll look around myself but was just wondering if you had any cool suggestions
@david Funny, I am working on the same thing but for Mixpanel though
@David we don't have a plugin out of the box however, in theory Rules have more than enough information to start with, so in theory you can just send the data from rules -> tableau and have tableau process it, no?
yeah that could work, i've never used tableau though so i'm not sure if it can accept data like that
i guess we could just spin up a box with a db and shove data into it from rules
if tableau would rather query a db
Is there a way to mass export all the historic data? like the list of logins and stuff that's in the UI
05:51
Why are you giving him another chance? He's proven time and time again that he will not change. Why isn't he permabanned? We'll be having this same mess again in 417 days. — Cerbrus 2 mins ago
A 417 day ban is a joke.
I was also under the impression that that specific moderator would stay out of this room's affairs?
@david I am not sure, please feel free to create a support ticket requesting it 😃
06:10
Ohai
user3956566
a heads up. a lot of people in this room really dislike me or my actions. I'm actually tired of it. @Cerbrus you've followed me around meta and it's tiring. You know, we're not paid to mod and believe it or not, I'm a person and have tried to help the site. What lands on MSO is the business of everyone. I chat banned a user and you're carrying on like I'm some pariah who has dared to step into this room Don't. Just don't. I don't like the way you talk about me and to me @Cerbrus.
user3956566
@Cerbrus as for staying out of this room. You've hounded me on meta. A lot of people see it, only you do not. You have some supporters, but even many of those are tiring of it.
user3956566
for the record the flags that come up for chat users are visible to all the mods. If they've been sitting there for hours I will look at them. Which is what I did today. No offence to the room or it's members intended. I actually thought people would be please the user is chat banned
user3956566
06:25
waits for next meta post complaining about me :D
o.o
@YvetteColomb Coming from someone who hasn't been in chat for roughly 3 weeks and has no idea about any of this, and therefore has absolutely no insight on the issue, I, for one, don't think you did anything wrong :P
I don't think you should assume anyone here has anything personal against you, even if there may be the occasional joke
And on behalf of the chat, if you felt you were attacked, I apologize
@YvetteColomb: Yeap, that's de-escalating. Well written.
Jun 17 at 8:15, by Yvette Colomb
BUT I will not come back into this room or handle flags associated with this room. I will leave it to other mods and the community.
You promised to stay out of this room.
hey
can anybody help me with this ?
1
Q: esp8226 with javascript

jamesorcI am trying to make a UI for esp8226 html js, ajax everything works fine but when I try to upload the firmware(uxx.bin) file it doesn't work. Reference : https://github.com/jeelabs/esp-link Note : I am connected to same network using wifi and the html page loads quite good. I am trying to uploa...

What are we, in kindergarten?
06:38
/me is wondering whether it's the good time to be back in the room...
user3956566
@Neil I upset people in here a while ago with my mod actions in the room (kicking regulars) and have not made those types of decision since. In this case there was the meta post. we're in different time zones. So I handled the flags that were sitting there about said user and chat banned them. Thanks for the support. I have no intention of taking over the room. I was trying to ease things by removing the user for a long while.
you were just doing your job
@YvetteColomb Well I for one support your action
@KarelG, she wasn't.
I don't think you should be ashamed for performing your duty
06:40
She can't be bothered to invest the time to properly ban Tobiq
Then let another mod do it.
Especially considering she promised to defer moderator actions
But she apparently can, because she did
A measly 417 days
user3956566
yep. I honestly have been trying to get along with the room. :) I have to go horses to feed \o if you want me to read something, you'll need to ping so I remember when I get back.
And then we'll have this shit again
This was a final chance for Tobiq.
How about you both bury the hatchet and assume the other means well and leave it at that please
06:41
He blew it, big time
And what does he get? "Let's see how you behave when you're another year older"
well the message can be improved.
yet Madara should tell her how he got that years long ban through.
She should've just deferred it.
There was no time pressure behind it.
417 days is a nice enough to give others some time to update the ban
:P
meh, if we're working with the assumption that she shouldn't have made the decision given that she didn't have any context prior to making said decision, then moderators should never do anything in chatrooms other than the ones they frequent often
I generally agree that decisions should be deferred to people who know better, but I don't think she's culpable for having done so
I understand cerbrus though. She promised to not intervene here, but she said that there was a flag, being unhandled for a while.
06:54
Well if not her, it could have easily been another moderator
I think flags are like those little rocks which somehow find their way inside your shoe to a moderator
They can ignore them for only so long I think
you have been away for 3 weeks?
vacation?
Yep, have to see my old lady every now and again
07:11
@Neil: a little background: Tobiq was unsuspended as a "final chance", but was told he wasn't welcome in this room. No no-one's surprise, he messed up big time, so was supposed to have his 3200 year ban re-instated.
07:29
He did.
Just now.
Problem solved then :)
07:42
Yea.
Why did she make no mention of involving other moderators?
Was she supposed to?
@YvetteColomb thanks!
@Cerbrus Assume other moderators are always involved.
Also look in Discord
08:09
hmm jsfiddle does not work in IE. Was verifying a compatibility
it uses string literals ^^
@KarelG it never did IIRC, the embed does though
09:07
Hi everyone, i've built an app with ionic framework, and i'm not so happy with it. When i want to go native but also cross platform and would like to have a framework which has such a small learning curve like ionic, which one would you choose? I'm a web dev and want to develop the app really fast if possible. Flutter, React native, Nativescript or something else?
@olivier React Native probably
Or just native, cross platform isn't a holy grail
 
2 hours later…
10:43
In one of my project, I happened to write a lot of javascript codes as well as css. On clicking the add button the user entered values gets stored inside a array of objects. But whenever there is a slow internet connection on clicking the add button once the the page gets stuck on adds empty values all over the objects
is optimizing js the only solution for it??
@AbhijitBorkakoty Can you provide a fiddle with a snippet of the code that has problems? You're no mentioning any server side code so I don't see how internet speed or "the page getting stuck" can cause problems
@VladNeacsu 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.
@VladNeacsu can't provide a fiddle sorry. It would be time consuming. creating modals and all. I think disabling the button once the user clicks and then after the data gets a added to array we can enable the button back.
I think this might work
11:00
@AbhijitBorkakoty So you're making a server call when clicking the button?
A code snippet would help us understand more, no need to build the whole front-end :) just the javascript and a button
@VladNeacsu Yes. through ajax
@vla
Yeah, your solution is pretty ok, disabling the button until the ajax call gets resolved
@VladNeacsu wait . let me create one fiddle
11:26
What do you think is a nicer API for A/B testing?
<Experiment id="something">
  <Variant value="foo">
    <Foo />
  </Variant>
  <Variant value="bar">
    <Bar />
  </Variant>
</Experiment>
Or
guys any help on this ..

https://stackoverflow.com/questions/51971871/esp8226-with-javascript
<Experiment id="something" variants={{
  foo: <Foo />,
  bar: <Bar />,
}} />
Or maybe something else entirely?
The first looks better in a collapsible code editor
My slight problem with the first is that it's a bit magical in that the Experiment relies on having certain children with certain props
As opposed to passing props directly to it
And I have no easy way to describe that with TypeScript, so can't get warnings if I have a typo, for example.
I have a quandry with a long and complicated javascript function. Basically I have the choice between duplicating queries on a server or a longer clientside delay
11:38
@Magisch depends.. you can design queries to perform well depending on how you optimize it
in your case, you could probably modify the query to work in either case and still be just as performant
@Neil @MadaraUchiha can you guys help here ?
Bascially I have a proprietary function that I invoke that returns me a packet of user data I need to process later on in the function. It works in the form of a promise -> fulfilled promise flow. The nature of my function means I need a little part of that user data quite early on in the process, so naturally, I'd set await for the packet that early too. But that completly stalls the function for ~2s on average, while I could fetch the little piece of user info seperately and await for the
full package only at the end, after the user input, when it is usually returned anyways.
@jamesorc nope, sorry
@Magisch the way you optimize this is to let the server do that logic
if you're going to follow a query with another based on the results of the first, there's no real point to returning control to the client
@Neil :-( :-( .... Okay
Normally I'd agree. Actually I have no control over the serverside and this is my task do to on the front end.
I'm aware using JS for substantial amounts of business logic is bad practice
11:43
oh, but you said you could duplicate queries
I already need the full user packet for later processing, and a small part of it for earlier processing
well can you cache the results of the first query server-side?
or even client-side if it isn't going to be too big
@Magisch no it's not?
@MadaraUchiha for TipRanks?
@BenjaminGruenbaum Yeah
@MadaraUchiha I'd put it in a function that doesn't have anything to do with components and priviledge it with immutable global state (assuming A/B tests are picked once per session)
Then in React it'd be abManager.A(<SomeComponent>) or something like that
11:47
@BenjaminGruenbaum AB tests are picked by the server and are rendered directly onto the HTML on a global variable on window
@MadaraUchiha ah, then I'd just warp that in a function probably
@BenjaminGruenbaum Then what? abManager knows how to render every variant of every experiment?
I wouldn't make it part of the component tree
@MadaraUchiha no, all it knows is whether or not a component is participating in an experiment
Hmm, let me try an example, let's say you have a newAnalystPage experiment - abManager has a newAnalystPage function that returns noop if the user isn't participating and whatever is passed in otherwise
@BenjaminGruenbaum I can't visualize how the API you're proposing would look like, can you make a slightly more complete example?
This can then be used either as a decorator on components
Sure
11:50
@BenjaminGruenbaum 8/9 of that function is pure logic
import {truth} from '../core/abtests';

// later in render
<div>
   {truth(<span>Dor Loves <span>jQuery!</span>)}
</div>
This only renders if the truth A/B test is active, the thing is that A) not all tests participate everywhere - you don't need to treat all variants everywhere B) some tests just need to change JavaScript stuff and not React.
This also works as a decorator if you're feeling fancy
I'm not sure if that'll work
1. I may have more than 2 variants
truth is a variant, you can import as many variants as you want
2. It's very likely that I wouldn't want my tests to only be "either it appears or not"
The caveat is that it requires the type of tests to be known in compile time - but that should be fine
We have dynamic configuration of tests in peer5 and we never used it since I'm here
11:56
3. What you're proposing isn't different from { abTestManager.id === 'someVariant' && <... /> }
3) it's just sugar over it - sure
But essentially you're asking how to hide an if in some clever way
No, that's not necessarily true.
That's the cleverest way I know - I see nothing wrong with abTestManager.id === 'someVariant' && <... /> other than my dislike for short circuiting for that
I don't necessarily want the parent component to be aware of the experiment going on with its children
It doesn't need to, abTestManager is global
put it on window for all I care, it's not mutable it can be global.
Or inject it if you feel strongly about it - but honestly in the project I have open right now I have an injector and I'd still make it a global because why not
It's a totally global concern of the system
Unless you expect to want to mutate it in runtime or make it different for different parts of the system in which case absolutely do not make it a global
12:27
@BenjaminGruenbaum Do you remember the dupe target for stackoverflow.com/questions/52039067/nodejs-for-loop-promises?
@MadaraUchiha Does he want to waitAll ? or sequential wait ? it's not clear (to me)
@RoyiNamir Sequence
It's the third question of its type I've seen this week
And I can't seem to find the dupe target.
I had this once and i've used this :
const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg));
(shows a delay according to the number) sequenatially
68
Q: How can I execute array of promises in sequential order?

jaaksarvI have an array of promises that need to run in sequential order. var promises = [promise1, promise2, ..., promiseN]; Calling RSVP.all will execute them in parallel: RSVP.all(promises).then(...); But, how can I run them in sequence? I can manually stack them like this RSVP.resolve() ...

@MadaraUchiha this one?
@rlemon Close, but he doesn't have an array per-se
12:36
easy enough to wrap it in one, but okay
54
Q: JavaScript ES6 promise for loop

Ponifor (let i = 0; i < 10; i++) { const promise = new Promise((resolve, reject) => { const timeout = Math.random() * 1000; setTimeout(() => { console.log(i); }, timeout); }); // TODO: Chain this promise to the previous one (maybe without having it run...

?
Will work for promise
I promise not
😁
@KarelG I'll take it
And strangle the idiot who put apostrophe right next to return.
12:42
188
A: Resolve promises one after another (i.e. in sequence)?

Benjamin GruenbaumUpdate 2017: I would use an async function if the environment supports it: async function readFiles(files) { for(const file of files) { await readFile(file); } }; If you'd like, you can defer reading the files until you need them using an async generator (if your environment supports i...

Sorry, took a bit to find
Maybe we need a better canonical - feel free to make one - that's the one I've been using since it has the most views afaik
@BenjaminGruenbaum I think that one can work fine, it just needs a little refreshing, it's still based on Q and mentions the --harmony flag
"Warning devices are required on all mobile equipment. However, alarms and flashing hazard lights have been found to agitate the high energy pellet and have therefore been disabled for your safety."
that was a weird self-answered question: stackoverflow.com/questions/52039010/…
@KarelG I learned to ignore these sort of questions - it's a lot more work to close or delete them than to let them just die on their own
Storage is pretty cheap
12:52
true. I also continue to the next question without doing something.
13:11
Anyone uses foundation emails?
I did like... once?
What do you use for generating emails then ? :D
Write it all by hand ?
I write the email by hand on a piece of paper and then I take a photo of the email with my camera. I go to the film store, develop the film and send it via snail mail to the post office which fax it to fedex which type it in and sends it from gmail.
Goddamnit we dont have fedex here , thanks anyway!
Seriously though, I don't generate that many emails - when I did deal with it we typically used SaaS tools
Like Mailchimp, they all have an editor which is "email CSS" friendly so you don't have to deal with it.
Otherwise, generating normally works - you just have to be very very careful. I would rather build it in a wysiwyg editor and then copy the HTML over and edit it in code than do it myself. Ain't nobody got time for Outlook 2010 quirks.
13:15
Mailchimp looks good ,hows the liscence/pricing?
nvm found it
@Paran0a be sure to check like 4-5 vendors though, I'm not sure if they're still the best or competitive
Will do Ben , I fucking hate emails
We all do :D
Ha, funny you should mention that...
I love emails so much I keep 4700 unread in my inbox
13:28
I am glad mail handling rules is a thing
I get so many automated e-mails
If I add my dist folder to gitignore can/should I make it it's own repository without making it a submodule?
@Alesana The... dist?
You want to add something that's not source code... to source code version control?
I want to use hooks to do git push live and update my live server with the dist folder
@Alesana Push, then rebuilt on the server
What do you actually build if you push dist files?
13:36
I suppose that would make sense
@Alesana It's very very rare that you need to add compiled binaries to version control
That includes dist and node_modules.
I submit my sass cache just in case
@MadaraUchiha I usually have both folders in my .gitignore, I was just thinking of a way to use git to get my dist folder on my live server without rebuilding
@Alesana Why do you need to push your git repo to the production server to begin with?
I'd imagine some sort of npm deploy that does a rebuild, then rsyncs just the dist/ folder to the correct place
I thought it would be useful to be able to just do git push live to update the server, although I did want to add a linter to the deploy process so I guess it would make sense to do that instead.
13:49
@Alesana tbf, it is best to rebuild before you are going to deploy it in production. That provides basic checks that there are no missing functions / classes / ect ...
@KarelG Good call. Mainly I'll be doing static websites though, built with webpack
14:09
hey
@MadaraUchiha can u explain once again why b = a.f; b() returns window? interests me and i didnt really get it
@Jony Sure, because this is dynamically set at the time of the call. If there's something before the . operator, this is set to that. If there's nothing before the ., this is set to the default value.
Outside of strict mode, the default is window.
it it basically goes to something before b() which is nothing, so defaults to window
so*
ok ty
There are a few more edge cases, but that's how it works with normal functions
14:11
and what strict mode defaults to
The much more expected undefined
but if u do
this.this.this.this
it will be window.window <- error?
Ah its porbably illegal to do this on this
just undefined
No, it will try window['this']
Which is most likely undefined
ah
so will act like regular object field
14:14
Yup
this.this gives undefined. doing this.this.this will throw an error
unless
Unless, you do something like window.this = window, then you can do this.this.this.this as many times as you want :D
2
lol
> boolean isSameNode(Node? otherNode); // historical alias of === found in DOM specs: Node Interface
had to look again for a moment./
14:22
@KarelG Ha, wait until you find out about document.all
hello
What is the difference between a function call and a function reference? Like onclick={function()} vs onclick={function} ? Does function reference mean that the function is only invoked if the event occurred? On the other hand I saw both versions being used with onlick
@Strict for simplicity's sake, think of functions in JavaScript as an object with a __CALL method
foo() is "equivalent" to foo._CALL()
(function's don't actually have __CALL, but let's imagine for a moment that they do)
Does anybody here know how to inject only a particular css/js file that's meant for an html file using gulp-inject?
@jstarnate 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.
14:30
Can you visualize the difference between passing the foo object vs passing the foo.__CALL() value?
Yeah
When you pass foo, someone else (who received the foo) can call callback.__CALL() to invoke it
But if you already invoked it at the time of passing, you can't. It's called immediately.
And with someone else you mean, for example an event. Like clicking.
@Strict If you do onclick={function()} inside a loop, it would create a function for every click you do
@jstarnate No it wouldn't, you're confusing things.
@Strict Yes
He's talking about passing a function vs passing the result of a function call
14:38
How do I call onbeforeunload?
Not passing a function reference vs passing an anonymous function.
@Vap0r Slowly and carefully.
@MadaraUchiha Ohh
All docs I see specify that I should use returnValue or return "STRING"
But custom string onbeforeunload has been removed from most browsers
So it seems weird... Do I just specify an empty func?
@Vap0r Compatibility.
`function` - execution
`function()` - returns something
14:40
If I want to build, run a linter, then if passed use rsync to put the dist file in the live server, should I be using something like travis?
Just like e.preventDefault() in conjunction with return false
Older browsers prefer return false
So what should I do?
It just seems weird.
window.onbeforeunload = function() {return ""}
Is what I have right now
user1596138
!!> function()
@LuckyKleinschmidt "SyntaxError: function statement requires a name"
user1596138
@jstarnate Instructions unclear
user1596138
14:41
;P
@LuckyKleinschmidt Oops! Sorry
user1596138
I'm jus kidding. Still working on this coffee
@LuckyKleinschmidt Do you use gulpjs?
user1596138
Nope
Oh. Okay
14:45
@Vap0r window.onbeforeunload = e => e.returnValue = 'foo' should accomplish both requirements.
!!> a = 'foo'
@MadaraUchiha "foo"
Despacito
@MadaraUchiha thanks
user1596138
15:05
My chair is on closeout for $129 massdrop.com/buy/arozzi-verona-gaming-chair
user1596138
9/10 would recommend. Only missing 1 because it smelt like chinese factory oil when it arrived but that went away fast
onbeforeunload doesn't work in every case though
can't open popups/alerts/and do some other types of JS
user1596138
cc @ShrekOverflow but I bet you can't ship it to your country
user1596138
o/
15:07
counting onbeforeonload for anything won't work
Hello everyone, I have been struggling with an issue all day, I don't know if anyone can help me in here...

I have a md-checkbox (angular material) inside a table that I use in my filters and my issue is when I click in clear filters, the value and the check box unselect successfully but then, when user want to activate the checkbox again he need to click twice in it... any ideia what could be happening?

I have posted the code in here https://stackoverflow.com/questions/52040953/md-checkbox-change-dynamically-issue
@JoãoSilva 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.
15:22
posted on August 27, 2018 by CommitStrip

Nothing really obvious jumps out at me, but it's weird seeing domapi/jquery methods being used in an angular solution.
@KevinB yeah, I know... My co workers wantes to use datatables.net instead of raw angular or plugins for angular
@William it will work fine for my purposes, don't really need a lot of customizability
$(inputs[i])[0] couldn't that be inputs[i][0]
and now its a pain to do something with it
15:23
or is inputs[i] a selector
yeah it's not a selector
@KevinB if I dont do $(inputs[i]) it wont work, I get the message Cannot read property 'children' of undefined
also, the value is changing to false and the check box is unchecking, the issue is that I think I'm missing something else
because the next click won't turn it checked again, like if some property is still as a true
15:38
-2
Q: How does JQuery Reads JSON File

PelicerI am reading a JSON file to do a asynchronous update on a page, just for testing pourposes. There are some things that I do understand about how to read the JSON, for example this question: It was about reading these values: {"fname":"rafael","lname":"marques","age":"19"} {"fname":"daniel","lna...

I don't know where to begin with this question
user1596138
...
at least he posted example code kevin
1+ for that
> Cnut
Not sure if legit name in some cultures or profanity
Oh wow, nevermind
Cnut the Great (Old English: Cnut se Micela, Old Norse: Knútr inn ríki c. 995 – 12 November 1035), also known as Canute, whose father was Sweyn Forkbeard (which gave him the patronym Sweynsson, Old Norse: Sveinsson)—was King of Denmark, England and Norway; together often referred to as the North Sea Empire. Yet after the deaths of his heirs within a decade of his own, and the Norman conquest of England in 1066, this legacy was lost. He is popularly invoked in the context of the legend of King Canute and the tide, which usually misrepresents him as a deluded monarch believing he has supernatural...
let's assume you have some major data in a database (comments of users for instance) - any thoughts about the concept of "loading all comments into a memory-cache/redis" and operating from memory versus "asking the database for every request"?
15:55
I don't have a massive amount of data in this project, but I load everything
16:09
@jAndy "massive"
How big is it really?
Sebastian Thrun (born May 14, 1967) is an innovator, entrepreneur educator, and computer scientist from Germany. He is CEO of the Kitty Hawk Corporation, chairman and co-founder of Udacity. Before that, he was a Google VP and Fellow, a Professor of Computer Science at Stanford University, and before that at Carnegie Mellon University. At Google, he founded Google X and Google's self-driving car team. He is currently also an Adjunct Professor at Stanford University and at Georgia Tech.Thrun led development of the robotic vehicle Stanley which won the 2005 DARPA Grand Challenge, and which has since...
user1596138
16:44
i.imgur.com/phETdjg.jpg 1 month and 2 wrong deliveries... They finally came lol cc @rlemon
nice
dood ur gonna get blasted audio now
user1596138
The skulls and statue things are my girl's lol
Anyone have any reasons why I shouldn't use Pug?
Nope, it's one of the better template engines
After EJS
good idea
nice book on adulting
16:47
@LuckyKleinschmidt R24?
@BenjaminGruenbaum I think old english has a bunch of CAH-* prefixes: dictionary.com/browse/canute
Good to hear :D
@copy That's the "sysadmins are gods" guy

« first day (2872 days earlier)      last day (2299 days later) »