« first day (2170 days earlier)      last day (3003 days later) » 
00:00 - 18:0018:00 - 00:00

18:01
Why would my ajax response not return emails that start with numbers
@Tsea You've been asking that before. We can't know unless we see some actual code.
Noone here is psychic
Im just making a simple ajax request every thing works but not all emails are retured jsfiddle.net/mc1c1sh3
@ivarni
what's your idea about my website qweb.ir
@Zirak forgive me, for I want to write a new fuse fs
If anybody knows deep specs on async await... I could use a good explanation
0
Q: Using await outside of an async function

Sterling ArcherI was attempting to chain two async functions together, because the first had a conditional return parameter that caused the second to either run, or exit the module. However, I've found odd behavior I can't find in the specs. async function isInLobby() { //promise.all([chained methods here]...

18:15
@FlorianMargaine Do you work for the Department of Redundancy Department!?
What's your idea?
@SterlingArcher Do you understand the difference between await and synchronous code?
Sort of. I know async creates a synchronous execution
The await is where it hits asynchronousity
Theoretically, couldn't I just wrap my entire module as an async function and await anywhere I chose?
Seems like a globalization, but yeah.
afaict, await works pretty much the same as it does in C#
so when you await something, it schedules the rest of the async function as a continuation and then returns a promise
It seems like it's just transforming an asynchronous task into a sync
Yeah, that's exactly what it's not doing, which is why you're confused
basically something like this:
async function foo()
{
	const x = await somethingReturningAPromise();
	console.log(x);
}
is the same as:
function foo()
{
	return somethingReturningAPromise().then(x => console.log(x));
}
At least, that's how it works in C#
18:27
But if you have multiple await calls next to each other, why does it wait for the first to be completed?
const games = await keysAsync("*game*");
console.log("joining room", games);
 //await response from mapped smembers method
const players = await Promise.all(games.map(game => smembersAsync(game)));
because it's the first one?
That's what I don't get. Even though it's a promise, wouldn't the next line not wait for it?
It doesn't wait per se. It gets turned into a .then
once somethingReturningAPromise starts executing, and finishes, it moves on regardless of the then
The first time you hit an await, it puts the rest of the async function into a .then and returns the result of the .then
i.e. a promise
18:29
holy fuck
So it's.. nesting promises?
I hope I'm explaining this right because I've never used await in JS
@SterlingArcher idk if nesting is the right word
But if it's tossing the rest of the function into a then, and you have a second or third await, it's recursively throwing into thens. Seems like nesting to me
it converts synchronous-looking code into a promise chain
@SterlingArcher It doesn't have to be a recursive then
Let me try to demonstrate with your code
keysAsync("*game*")
	.then(games =>
	{
		console.log("joining room", games);
		return Promise.all(games.map(game => smembersAsync(game));
	})
	.then(players => { ... });
that's how you would do it without nesting
it's basically the same behaviour
18:34
With bluebird:
oh fuck me I didn't think to just end the chain if false
keysAsync("*game*")
  .peek(games => console.log("joining room", games));
  .map(smembersAsync);
I'm gonna guess that's the version of .then that doesn't use the return value of the callback
I assume that semi-colon is a typo?
18:36
indeed
Promise.prototype.peek = function(fn) {
  return this.then(val => {
    fn(val);
    return val;
  });
}
is there anybody know how can to implement such a website qweb.ir
@SterlingArcher I assume that hypen is a typo.
ducks
Oh I was gonna say I don't see peek in the docs
@Sandro which part exactly are you stuck on?
18:37
@KendallFrey >:(
@MadaraUchiha viola
4
@towc that my first time to see this kind of site
@Sandro so what do you know so far about html/css?
all of thing that should i have to know
i did it
I'm lost
do you know html/css?
18:39
yes
can you show us a sample site of yours?
html5 css3 js
if you have to specify, that probably means you're not too familiar with them
did you complete a course on them?
yes
what course? codecademy? freecodecamp?
academic course?
18:41
why u ask such a question
to understand what level are you at
I am going to be professional
don't worry to give me idea
in the future or now?
i'll do it
18:42
oh
I see
good luck
@towc you made joke at me
@SterlingArcher lol you have a C# answer
no, it wasn't a joke
I didn't understand what you said
now I understand
@KendallFrey I had a feeling, but I don't know enough C# to make that judgement lol
you know i want to see such website to do it
getting idea to implement
@SterlingArcher Literally every word in his code is a different C# thing.
It's called tap in bluebird
Not peek, my bad
Ah
@MadaraUchiha please mod hammer that question. It's getting tons of answers :(
for example i see this site and got idea for the menu jacksonvilleartwalk.com
It's got 4 already and 1 is wrong, 3 are the same
18:47
@SterlingArcher You should totally try Haskell. Once you understand IO and monads, async in languages like JS becomes blindingly simple.
5 answers
@KendallFrey I don't even understand why I buy bear coats, let alone monads
yeah, it's probably best if you stay stupid :P
Clearly the best option!
I mean, you are American
Pft. I'm a 1%er
18:49
@Loktar I think I am doing something similar. My input (updated) is done and I'll be pairing it with something like react-day-picker into a more complete component.
pretty sure the percentage of bear coat owners is lower than that
@SterlingArcher I went with a 65"... it's fucking huge
It takes up my entire entertainment stand; I have no room for my 2 speakers now, lol
@ndugger whoa, not even your mom can take that
Prove it
I already have
18:55
k
@ndugger bruuhhhhh nice!
What did that set you back?
@MadaraUchiha ty
just about $1k
I went over because I got protection
I didn't want to spend that much
but it's an amazing TV
HDR 4K
@ndugger Some people will discount you for protection
Is that actually true?
It makes sense
huehuehue
19:23
@Luggage nice man
yeah can't believe I thought I wrote it haha
Funny thing is though I had to write a lot of code around it
Time to start building... Parts list
Guys I have next code directives: [CORE_DIRECTIVES, Directive, TableSortable],. What is replacement of "directives", because it did not working anymore?
In Angular 2
@Zirak DRD, absolutely
@Loktar you paid all that money and they didn't build it for you?
Dude just return it. Not worth it
haha
@Zirak virtualpath, virtualenv on steroids. You don't only get an isolated python environment, you get an isolated full VM and the binaries are in your $PATH
19:32
I did go a little crazy my wife would probably be happy if I returned it :p
@SterlingArcher You've never built a PC, have you?
@Loktar The solution is simple; return her.
> Back in you go
oh dear
the idea being that I append a fuse-based folder to your PATH, which has the list of binaries in a docker container. Each script just forwards to a docker run command, mounting your cwd et al
19:34
oh my
example: you want to run makepkg on a debian? no need to install all the arch-specific packages that you probably can't install cleanly on debian, just have an arch docker container, activate your virtualpath, and you can just run makepkg
other advantage: you don't need to pollute your machine with project-specific binaries, but you don't need the hassle of managing a VM... it's in your PATH
If I'm starting a new react project, what version of react router should I be using? 3 or 4?
Can just anybody summon cap or only ROs?
19:42
anyone iirc
20:09
Looks like there's a stage 0 expression do for ES7 that basically lets you use a block expression assignment? That's neat
x = do { let t = f(); t * t + 1 };
@SterlingArcher I think that's part of the do...while loop
or not
nvm
Looks like a standalone expression now. But it's stage 0 so it's very early in development
@SterlingArcher It's a tad more, it's sort of an expression which can contain statements
Imagine any expression-context where you wanted to use a statement, like return or inside a template string
So you could essentially do a promise in that context?
What do you mean?
20:22
const x = do {
    Promise.resolve(derp);
}
Sure? But you could also not wrap that in a do
seen it
You should watch it again
You know what they say, why have legs when you can't.
20:36
Guys does someone familiar with Angular 2
?
20:53
@KendallFrey Zirk has a point. You should rewatch it.
21:35
@rlemon "It looks like Republican and Democratic senators alike are keen on safeguarding America’s space programs." I'm literally tearing up.
that's awesome
"as long as part of the rocket is built in my state" -assumed quote
Pat
Pat
22:33
Hello all
@Pat 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.
Pat
Pat
whats up ?
22:47
hello. it's pretty empty in here right now.
22:59
am trying brave
Ewww
i need to create a bootstrap menu which doesn't collapse
I need $50
get a room, you two. :)
thought you wanted to take the camera out @Luggage
[wait for realization...]
lol
23:08
@Sandro shoot the problem out
no pay 50$
lol
the realization wasn't about the 50$
it was about the night
@towc i just see your twitter twitter.com/MateiCopot which one are u
i love cheese too
@Sandro on the background? fourth from the left in the back row
yes, I own that twitter account
@Luggage why i can not open the link
got me.
why indeed
are u sure the link is correct
23:25
got it
thanks
@Luggage i want to make this website menu qweb.ir responsive
in mobile only icon should be shown
and on tablet
it is possible to do it in bootstrap or should have to use jquery
the thing you wan tto look up is "css media queries"
which is what bootstrap uses.
You don't need jquery.
in fact i can not do it in bootstrap
right
well, bootstrap uses jquery, but not for the responsive layout.
23:44
did i get right, should i have to write media query for iphone, nexus , gallaxy tablet
@Luggage
00:00 - 18:0018:00 - 00:00

« first day (2170 days earlier)      last day (3003 days later) »