« first day (2320 days earlier)      last day (2623 days later) » 

4:04 PM
@Shmiddty Have you ever watched Fullmetal Alchemist?
 
@MadaraUchiha Shmiddty is afk: reading
 
@CapricaSix Thanks dear.
 
i have an array of promises, i need to know when they're all resolved (regardless if they were successful or failed), i looked into .all, but it appears to execute on the first failure, is there a clean way of handling this? I've gotten some bad suggestions with like, polling and stuff
 
netflix added more eps of seven deadly sins. got my excited, turns out there is only a handful of them. disappoint son
 
@SteveG promise.all, but wrap them all in .catch() if you want to treat a failure as a success.
 
4:08 PM
@SteveG You can wrap them like this:
 
Promise.all([
    promise1.then(null, (err) => undefined), //swallow error
    promise2.then(null, (err) => undefined)
]).then(...);
 
okay let me look into some of the suggestions, thanks all
 
Promise.all(promises.map(swallowErrors))
 
const reflect = promise => promise
  .then(value => ({success: true, value}))
  .catch(err => ({success: false, err}));

Promise.all(arrayOfPromises.map(reflect))
  .then(arrayOfReflectionObjects => { ... });
@SteveG ^
 
4:12 PM
so if i swallow the errors, will the individual promises .fail() still be called? Like .fail() takes all errors from an individual promise and adds them to an array, then i need to know when all the apicalls are done so that I can show the aggregated errors
 
@SteveG See my solution
It allows you to retain the error status, while still resolving the promise.
 
okay
 
.fail() is not a thing. sounds like the "deferred" object that came before promises.
 
could be :/
whatever Backbone.ajax returns it has a .fail
but let me play with madara's suggestion
 
@SteveG Wrap whatever Backbone returns with a Promise to normalize it.
 
4:14 PM
yea.. probably a jquery 'deffered'. Just use the .then() and maybe .catch() if it has it to treat it like a normal promise.
 
If you need to, that is.
 
if it's from jQuery (my guess), it already has a compliant .then()
or compliant enough.
 
@Luggage jQuery's promises are now A+
But it depends on the version he's using.
 
Could someone have a look at my question please? stackoverflow.com/questions/42371622/…
 
@Ashkru 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.
 
4:16 PM
right, but who knows how old his dependencies are.
 
@Ashkru You're messing with the CSS and then asking why it interferes with an operation that uses CSS.,
Look at what CSS properties your draggable plugin/code/whatever touches, and don't mess with those.
 
@CapricaSix I didn't?
@MadaraUchiha I have.
 
@Ashkru @CapricaSix is a bot
 
Try to delete transform: translate(-50% -50%)Siphalor 32 mins ago
 
I tried that, without that I just get 50% to the left and 50% from the top.
Which technically, isn't in the center because its 50% from the left + the width and 50% from top + the height
 
4:22 PM
webpack gurus?
Trying to get webpack to run my tests after compile, can't seem to find any info on doing this
thought it would be a fairly obvious feature
 
webpack makes bundles. you still execute the code (e.g. run tests) however you like.
 
I'm running webpack --watch so I want my tests to run every time webpack compiles
 
webpack doesn't do that. At least not out of the box.
 
That's very surprising :/
 
Not really. Webpack is about making bundles.
there is nothing to stop you from firing up the resulting bundle in the testing framework of your choice.
possibly even automatically after a webpack build
but that's your choice to configure that. It's not a bundler's job.
e.g. github.com/webpack/docs/wiki/testing shows some samples
 
4:28 PM
Sure, but I would've thought there would at least be a sort of post-compile hook/command to run
 
there is.
 
That's what I need. Can you point me to it?
 
I already did.
 
I have read that article several times already.. I don't see anything about a way to configure webpack to run a command post-compile?
 
well, it suggests using a plugin like mocha-loader, because running things is not normally webpack's job
You want a "task runner" not a compiler.
 
4:31 PM
I think that just uses a loader to compile your bundle with your tests
 
You bought a hammer and are determined to turn screws with it.
 
Then you just run that bundle
I don't think I'm even testing compiled code (still new to testing react/redux - using jest), I think jest uses babel to compile on the fly. I just want it tied in with webpack so I don't have top run multiple processes
 
Well, I don't know of any other way to say "stop using a cimpiler to run tests, use a task runner or anything else"
My car doesn't make pizza's but I don't complain about it.
 
if webpack-dev-server isn't a good example of webpack being a 9000-in-1 multi tool then I don't know what is :p
Although I guess that's on top of webpack
 
yea.. and you can use webpack-dev-server to execute browser tests..
 
4:33 PM
I'm not asking a lot - I would've thought a post-compile hook would be a pretty simple and well-received feature
Except I'm not using webpack-dev-server :p or browser tests
I'm using jest - these tests run in node on my source files (afaik)
 
well, webpack-dev-server runs a webpack build, then loads the result in a browser.
that's a close as there is. Note, that you can use webpack-dev-middleware to then do whatever you want instead of load in a browser.
 
Yeah, I did use webpack dev server for a small app
 
but note that these are both "use webpack to build (it's job), then do something else" tools.
since webpack is still just a bundler.
You have lots of options, man.
 
Sure
 
but one of them isn't using the one core compiler tool as something else.
 
4:36 PM
I don't want webpack to actually run my tests
I just need it to start them
literally just run "npm run tests"
 
ok. use webpack-dev-middleware or gulp, or a batch file
 
batch file?
 
when you want to run one command, then a second command you script it, not complain that the first command doesn't do everything.
 
Anyone feel like answering this? stackoverflow.com/questions/42371622/…
 
or shell script if you aren't windows.
I jsut said batch file since many people are on windows.
 
4:38 PM
Ah, right. I know what a batch file is
But I think you're still slightly misunderstanding my problem
 
If you'd like to ask something about using webpack-dev-middleware, i'll try to help, but I won't keep repeating any more that webpack doesn't run commands, it's a compiler.
 
I am running webpack --watch; this command runs indefinitely so I can't simply run another command after that. I want webpack to continue running, and just run another command every time there's a compile
 
yea,, that's webpack-dev-middleware
Make me repeat it one more time.
 
Give me a chance mate
I was looking at it
You know, I'm not stupid. There's no reason to treat me with disrespect.
I have heard what you are saying, I'm not disputing it.
 
You were disputing it or I wouldn't be so grumpy
 
4:41 PM
Please show me where I disputed anything you said
I questioned it, sure, this is to help me understand
Or to clarify we are on the same page
 
No. I said I'd help with dev-middleware or server if you have some more specific questions. I wasn't interested in repeatedly telling you that webpack itself doesn't do that and I am even less interested in now re-hashing the conversation to you.
 
@Luggage but what about if I asked for some cliffnotes.
 
webpack does that. cliffnotes-loader.
 
gotcha
 
4:45 PM
Right, so accuse me of disputing you but then can't provide a single reference. Nice.
 
I owe you no reference. What have we been talking about this whole time?
My reference is the entire conversation.
 
As I said, you told me that webpack didn't do that, and I didn't dispute it. So you had no need to repeat yourself to me.
 
@rlemon They've really made advances in thrust levels
 
Yes, we have been talking about it. Does that mean I was saying you were wrong?
 
use A
"no, you misunderstand, I'm doing it this way" <- dispute
yea use A
so please, stop the drama
 
4:46 PM
Why the hell would I come and ask for advice and then tell you you're wrong when you answer me?!
 
you got your answer
 
That's just an inaccurate representation of the discussion we had
 
Fine, you're right I came off a bit strong. But move on.
 
@KendallFrey lol, according to the guy it is because access times on the camera slow down once the card gets full. so the timelapse pictures are not exactly the times they should have been
I don't think any of it is inaccurate other than my paraphrasing ofc. but continue to argue. that's fine.
 
4:49 PM
@KendallFrey did you watch the launch live?
 
@Meredith that's beautiful
 
I missed it, but I'm super happy the cameras and tracking is getting so good. watching the replay of the landing was outstanding
 
There should be a website that has a schedule for all known rocket launches around the world
 
The space x launch?
 
4:51 PM
drone footage of the landing
 
someone invited me to go to that
 
the onboard camera from the first stage was pretty cool
seeing it break the clouds
ohh @KendallFrey in march they're reusing their first first stage
SES-10, targeted for late March, will fly on a reused stage.
 
has anyone here used yarn to install from github?
 
No
Does it not work?
 
@Meredith i haven't figured it out yet
 
4:59 PM
It works
 
@NathanJones Eh, works for me. It's more strict than NPM though so you need --ignore-engines if you're on a newer node version
 
What are you doing?
 
Does anyone know if you need a ES6 polyfill in order to use template strings (``) in IE11?
 
!!caniuse template strings
 
5:01 PM
kangax.github.io/compat-table/es6/#test-template_strings so looks like you'll need to add support for that
 
@BenFortune could you give an example of the command you're using? I've tried yarn add "git+ssh://git@github.com/<org>/<repo>.git"
and i get "error Couldn't find manifest in "git+ssh://git@github.com/<org>/<repo>.git".
 
@NathanJones yarn add git@github.com:mailjet/mailjet-apiv3-nodejs.git --ignore-engines
 
@NathanJones that's a pip URL
 
@rlemon hah I havent looked at that in forever
so crazy to see my whole list but 1 green
 
5:04 PM
@FlorianMargaine you're right. i was going off of this, but I don't know why they were doing it that way
@BenFortune thanks!
 
5:15 PM
// @Bill a gulp file that'll webpack --watch and give you an event each time an asset if re-built:
const webpack = require('webpack');
const webpackStream = require('webpack-stream');
const gulpFn = require('gulp-fn');

gulp.task('build-client', () => {
    // webpack config + watch: true
    let webpackConfig = Object.assign({}, require('./webpack.config.js'), { watch: true });
    return webpackStream(webpackConfig, webpack)
        .pipe(gulp.dest(paths.clientDest))
        .pipe(gulpFn(file => {
 
hi
 
@BenFortune i can authenticate with github (verified by ssh -T git@github.com), but yarn add git@github.com:timpler/jquery.initialize/.git still gives me the Permission denied (publickey) error.
 
I've a grommet.github.io/docs/search input but can't delete the first letter in the input. Lets me delete all subsequent chars but if their is only one it won't let me clear it.
Any ideas?
 
works on that site. Is it wired up like a controlled input?
@NathanJones I'd use https urls with npm/yarn.
 
there is an event hooked to the onChange like this
 
5:21 PM
unless it's a private project that needs auth
 
@Luggage so yarn add https://git@github.com:timpler/jquery.initialize/.git?
 
that url looks wrong.
 
https://github.com/timpler/jquery.initialize.git
 
@Luggage oh i tried that one first, and got error Couldn't find manifest in "https://github.com/timpler/jquery.initialize.git".
 
5:24 PM
/.git was wrong, also, no username in https url, also not :{repo}, it's /{repo}
yea, there is no package.json
try forking it and putting a minimal package.json with a main: "jquery.initialize.js"
I bet you $1 that'll work
@BrianJ is there supposed to be something there? or jsut code?
@NathanJones note the "TODO" section. :)
I assume state.currentFilter is passed into the input's value property?
becasue it look like you only set it when: if (e.target.value != '') {
 
@Luggage just the code for the searchInput change event
 
which would explain your error
 
@Luggage ah, thanks. i should've been more attentive.
 
@Luggage yeah good point (e.target.value != '') does set the inputs value
 
yea, so set the state.currentFilter always, and it'll let you delete all characters
 
5:33 PM
you mean also in the else condition of the _searchInputOnchange method? @Luggage What I understand from that is that it needs to reset it also when the input is empty
 
Yea. I am assuming you have value={this.state.currentFilter} ?
So currentFilter MUST be updated to blank, if you want the user to clear the box.
right now you stop updating it once they try to delete the last character
 
hmm so then I would clear it in the else..jsbin.com/gitavabevi/edit?html,js,output
 
yea.
or outside of the if
see, exact same problem recreated: jsfiddle.net/luggage66/q9rn3y27/1
 
IE11 really doesn't want people to use flexbox :\
 
It's worked for me, but IE11 does want you to set all the values.
Show me some css.
I always use: flex 1 0 auto; //specify all 3 always
 
5:40 PM
I have a fever :(
 
get better, you son of a bitch
 
I've been down that road recently. :(
 
@Luggage i can git clone with my ssh github repo, but yarn add git@github.com:jonesnc/jquery.initiialize.git (my fork w/package.json) still gives me `Permission denied (publickey).
fatal: Could not read from remote repository.`
 
yea, like.. get cooler.
@NathanJones no idea, I don't use yarn..
 
@Luggage ...nice
 
5:41 PM
@Luggage yeah that was it
saved my evening :)
 
@Luggage usually it's when you nest flexboxes, I think
 
yea.. I only use a little flex here and there, so I might not have ran into it.
 
Everybody is getting sick
 
It wouldn't surprise me if IE11 had some issue.. but I'd make sure all your flex css is pristine before giving up.
 
I'm facked too
 
5:44 PM
I was last week. Flu. Bad.
I tried to get Jordan to come out and get sick from me, but he wouldn't
 
Although, what I am trying to do is flex: 1 1 270px; max-width: 512px; with a container that has display: flex; flex-wrap: wrap;
 
is everyone sick
im just getting over a cold
 
colds are nothing.
I went to the hospital due to vomiting blood.
 
oh boy... how often do you decline a direct job offer from Facebook...
 
5:47 PM
do you have ulcers or something
 
no idea. they said i might have just popped a blood vessel
 
maybe your stomach was menstruating
 
That sounds legit.
 
@Meredith at least it's not pregnant
glares at Loktar
 
lol
 
5:53 PM
@jAndy you went through the interviews?
 
Mr. Curtis from Facebook London sent me a mail, basically referring on StackOverflow and wanted to discuss "opportunities at Facebook".
 
ah, yeah
everybody gets these
 
damn :P
 
sorry :)
 
it seemed pretty personal tho, looks like their hiring/seeking some devs in London
 
5:59 PM
src/client/boot.js or src/client/index.js ?
I don't get those. I guess my 200 points doesn't impress.
 
@Luggage 600!
 
close enough
 
6:23 PM
I like the Youtube 500 error
seems like a lot of trouble over there
 
6:38 PM
@FlyingGambit mccormickml.com/2016/04/19/… this guide will help you understand
 
if I have an object that has various children.. how can I iterate over those children and add a property and value to each?
 
anyone here work in a situation where you have contractors augmenting an in house team?
And if so, how do you handle pre screening the contractors?
like I mean a contract company providing their own workers as contractors on a per project basis
I was considering just having them go through our standard code interview, however it's weird.. since we have a few of them working on a different project
but there is no guarantee the people we get for this other project will be good
 
how about a site that suggests projects in order to learn certain concepts/languages?
including certain implementations by other people that can be rated and all
kinda like codewars, but not under the idea of a challenge, but rather about learning
any concept of revenue has to come from ads though
which are not ideal :/
 
yeah not ideal because you need mass volume
I mean for the ad money
when I was doing well enough to live off of ad money I was getting 20k people a day
now at a few k per day I barely scrape past hosting costs
actually less than a few k people
like 1.5k-ish
also diff per type of site, I had decent ctr because it was a flash game site
and I had good placement
anyway not shitting on your idea at all ofc just randomly throwing out numbers since they are hard af to find
 
6:56 PM
well, it may just be good enough to at least get my name out there for something
not sure how much would it actually cost to keep running
 
eh probably pretty cheap
like $30 a month max to start out I bet
if that even
 
if it is successful and there's no competition, then almost anyone who is going to want to learn something, will end up going through the site, which will definitely spark interest for companies
 
there are prob some great <$10 vps's out there
 
targeted job ads
well, main issue is the sheer amount of data that will need to be held, if I allow people to post their codez for the project
it's tempting to not allow them to do so other than for small comments, but then it risks to be very broken if the links are broken
 
wouldn't you just leverage GH for that, have them store it there not on your site
 

« first day (2320 days earlier)      last day (2623 days later) »