« first day (1924 days earlier)      last day (3249 days later) » 

00:02
is there a way to keep the mdn pages in english ?
it checks for your locale ...
the best solution is to prefer english in your accept-language header
(the only drawback is that you'll also get english for sites where $yourlanguage would be the site's native language)
!!> var a = [1, 2, 3, 4]; console.log(a.slice(NaN)); // This behaviour surprised me.
@phenomnomnominal "undefined" Logged: 1,2,3,4
!!> var a = [1, 2, 3, 4]; console.log(a.slice());
@KarelG "undefined" Logged: 1,2,3,4
00:14
there is your answer
!!> var a = [1, 2, 3, 4]; console.log(a.slice("apples"));
@rlemon "undefined" Logged: 1,2,3,4
@FlorianMargaine That didn't happen for me, strange
if you want to see more context, see the specs of Array.prototype.slice
it casts the begin / end argument to int
( if i recall it right -> if the cast leads to NaN, 0 gets returned )
@phenomnomnominal that'd you expect?
00:19
!!> console.log([1,2,3,4].slice( '2' ));
@KarelG "undefined" Logged: 3,4
bout time I sat down with it
> About 1100 patches were landed in this release.
i was o.O
it's easy to get started with but I ahve no idea what I'd use it for
I do. there is a bunch of crap I wanna replace at work
00:23
I can't think of anything I'm really missing with c#/node.js at work.
And I wish I had the time to introduce something new, but not at the moment.
node is a nice addition for us, but most of the core product is written in c or c++ from the 80's and 90's
Yea, so that's a better direction for you.
So I would like to start a discussion / project with the room. We all have certain sets of skills and I really wanted the google+ group to work for allowing us to teach eachother things.. the problem is only Zirak stepped up and I am to blame (I also didn't make any videos)
I think it would work better as a 1 on 1
How does everyone feel about setting up a 'posting board' system where we can post things we'd like to learn about and others can choose to take us up on those offers
personal disclaimer: this is stemmed from my admittance of no formal knowledge of design patterns. I would love to learn some, so my code is more manageable in large projects.
I don't mind hosting the service, and I'm sure @Neal wouldn't be opposed to pointing a subdomain at my ip.
00:30
@BenjaminGruenbaum I don't know what I expected, just not that
what's the service? the 'posting board'?
basically yea
login with stack oauth or something. github.
post a 'card' or some shit about what you wanna learn, let someone (anyone) take you up on it. remove the card when you feel good enough?
for just room people or are your trying for a larger set of users?
00:31
just room people for now?
or rather, SO people (or whatever auth system we decide on)
I think it'll quickly fall into dis-use like most out-of-room system unless you can expand it some.
well the 'teaching' can be facilitated via the chats I suppose
put the link in the desc. it would only be a star board basically but for personal "help me learn this" ads
and not like, debug my code shit.
there is so much I could probably learn from a 1:1 with any number of you.
Yea, I follow. I think it should be worked into one room site. Like where the rules are, maybe.
yea whatever works. I'm open to feedback, it is just an initial idea.
I wonder if there are any google services you can use instead of making something custom.
00:36
I think the aversion to those things is 'creating an account'
not everyone has gmail
you can let it be open to anyone with the url, but.. that has problems.
Anywho. I'll try to think of something to put up. I think it's success hinges on people putting items up there to increase the chance of a 'match'.
now, what would be awesome is if this happened.. and we actually had good teaching sessions via the chats in private rooms (I realize) and those were frozen and index'd for future readers...
cc @MadaraUchiha
you might be interested in this idea
@rlemon sure, if people pick it up. Although I remember having in-room teachings that went pretty well
@Luggage slack?
never used it, actually.
i thought it was jsut a chat.
Looks nice, but we still need a service to post the 'needs' unless I missed something.
It has tons of plugins and integrations.
It's chat on steroids, mostly.
Owners - please leave your details here so you can be added to the GH org github.com/JavaScriptRoom/culture/issues/11
00:48
what details besides GH account?
@BenjaminGruenbaum yea the chat experience is good. and if multiple people get in on it you could have a couple teachers and a couple 'students' in one room
idk. seems like it might be a good idea
I'm only worried about moving it elsewhere - why can't the SO chat be used?
that is what I'm saying
use 'private' (i.e new rooms) for the lessons
freeze them and archive them when they are done
link them somewhere
just use another site/service to setup the chats here
Sometimes it can be hard to have a conversation without people jumping in with "why don't you just...", but I still think it should START in here and only leave when needed.
because stars are cleared too quickly and I don't wanna pollute them with that
00:50
@rlemon oh, that sounds fine.
ohh, not this channel
Yeah, stars wouldn't work
so I wanna setup a service we can use to post "I want to learn X" and people can bite on those posts
but that is just a beginning thought, I'm open to ideas
Post it in your SO profile.
because um.. people read those?
@rlemon Barely
01:02
sup
Same shit, different day
Got my brother's bucks party tonight
nice.
we're in complete different time zones so I never see you
or you're not online much
Whaa? I'm around!
Been busy
01:42
user image
2
Formerly Barnes and Nobles.
My parents own a used bookstore
My dad's reaction to amazon opening a bookstore was something along the lines of "oh come on"
The sentimental value must be through the roof!
Apparently all of the books face outwards too
So they have this huge huge floorspace
and like 1/10th of the amount of books they could have
01:54
That makes no sense.
The whole thing.
They're not supposed to be a warehouse though. The point is showcasing their selection of featured products
Their value is having everything, not being a place you have to drive to. Especially if they have less books than a 'normal' store.
I'm 'meh' on amazon, anyway. I use them, but I don't love them.
Let's just see what the market decides
02:24
I bought some books from amazon, at very high international shipping, simply because our bookstores don't have them and will never have them...
If you google "culture desert" you will see it is almost an alias for our city.
FO4 is too damn buggy
 
2 hours later…
user5503464
04:31
0
Q: How can i make schema Given output using mongoose(nodejs,mongodb)?

komalI have given my output for this how can i make schema.if i create one document enough for this output or i should create multiple document for store that data any one help me out m new to mongoose.any one give example for this i have added my schema also var AddressSchema = new Schema({ Add...

@Loktar I am reading reflux right now, no promises :P
05:18
@Abhishrek I'm going to be using reflux for my project oo
reflux or redux?
Reflux not redux
I found reflux to be easier on the brain in my case
screw these all technologies
I thought you did typo but there is technology with that name :/
Lol
Indeed
05:35
I want to make "refulx" now
@Loktar tiny hiccup due to the weather, I am definitely calling though :p
@ivarni I'll follow up with redlux
I'm stealing rolex
Oh wait
It doesn't seem like role.cx is taken
gogogo
06:07
@Neal due to some incredible circumstances, I will be there at Times Square tomorrow :P
Lets meet :D
I love NY
I thought the East Coast was going full Day After Tomorrow this weekend?
it doesn't mean I don't love India though
@ivarni it is
Delta Airline pushed me a day earlier
I have to take a flight in 5 hours and then sit in an interview in 12 :P lol
and pack my bags like right now :P
GL with both the interview and Delta actually being on time :)
06:49
@ivarni don't scare me :-/
@ivarni is delta terrible ?
@Abhishrek I've no idea, was just trying to be funny :)
You made me poop in my pants now I have to do laundry too !
United Airlines has left me stranded in Denver before though, cancelled my flight without telling me and I couldn't get to my connecting flight
But most of the time I've been flying in the US it's been no problems
So I'm sure you'll be fine, apart from the #pantsgate thing
 
1 hour later…
user3119231
08:21
Good morning, ladies and gentleman!
user3119231
wrong chat :D
@rlemon This could be done
But what's wrong with Gallery rooms with strict speaking access?
I.e. only speaker has access to speaking, he speaks about the subject for some time, then enables global write access for questions
user3119231
More sauce, please.
Then sets gallery again to continute teaching
user3119231
08:24
Ah, like moderation control.
8 hours ago, by rlemon
now, what would be awesome is if this happened.. and we actually had good teaching sessions via the chats in private rooms (I realize) and those were frozen and index'd for future readers...
user3119231
Would be awesome. There is still much to learn. Too much bad tutorials this days.
Someone should make a tutorial for writing good tutorials
user3119231
Some should make a tutorial for "How to be member of room 17".
How define {any digit} in this: if ( variable[n] == {any digit} ) {}
08:29
@stack What?
@stack You mean you want to check if it is 0,1,2,3,4,5,6,7,8 or 9?
@BenFortune variable[n] is containing a character .. Now I want to check it if it is a number, then that condition is true
@ivarni yes
if(/\d{1}/.test(variable)) ?
ok thanks, lemme check it
@ivarni emm, where is n ?
08:34
On second thought you want /^\d{1}$/
!!>1..length
@BenFortune "undefined"
Well it's a regexp that matches one single digit, you'd substitue variable for what you want to test
user3119231
So I accessed review queries. Checked them and so on. I feel like superman in a batman custome.
@ivarni Or just /^\d$/
08:36
@Sheepy Very true :)
Isn't a regex a bit heavy for that?
Depends on how often it's going to be run
Can't you just check if it's >= 0 and <= 9?
08:38
@stack Use /^\d$/ like Sheepy suggested instead though, or you'll get false positives
I see
@Sheepy tnx
@BenFortune What about empty strings?
We don't even know the proper requirement. Is it number? Is it text? What if we get true, do we count it as 1?
@Frondor whats funny about his glasses , my glasses look a little different than his but could say it looks the same as his. :|
If it is character, true, variable[n] >= '0' and variable[n] <= '9' should be much faster.
The different may reach a millisecond when you run it a few thousand times.
08:43
I suggested regexp since it covers pretty much all cases but there's going to be better solutions if more is known about expected input
concur.
And yeah, it's pretty much a premature optimization to hunt for the ultimate fastest way
chances are that that if isn't going to be the bottleneck
@Loktar @rlemon @KendallFrey never forget
!! friday
08:48
I am get used to not click on the links which florian shares
08:59
@GeoPhoenix They are not really straight xD
@Frondor , yes :P
Hi
var check = document.getElementById("ansType").value;
This statement gets the value of the option selected in the select dropdown box
how to check if the value if a particular value using javascript if-else
is it like this
if(check=="MC") {}else if(check=="T"){}else if(check=="D"){}else{}
09:22
Gulp noob here. Could someone check my answer isn't wrong ?
0
A: Gulp sass (libsass) extremely slow when using return

Denys SéguretGulp uses orchestrator to execute the tasks. Your task returns a promise or a stream, which is used for sequencing. When you return nothing, the caller can't know that your task isn't finished, which has at least 2 impacts: you may think it's finished (from the log) before it really is followi...

09:36
@rlemon Neat, that's the uC I've got!
user3119231
@Kitler .replace("K", "H");
:O Never noticed that before
Mind blown
totally
user3119231
<3
09:42
@Maurice Whoa, dude, that's offensive
triggered
user3119231
@SomeGuy Raise your flag, dude.
Check your privilege, dude.
You're not each other's dudes, friends.
We're not friends, guy
server is returning a stream, how can I make JS download the file ?
If I make service call using URL in browser then it simply downloads the file
09:45
You can't make JS download a file.
but when I use $.getJSON... it fails
maybe I need to make a post request ?
What's the returned data's mime type?
Just redirect to the page?
@SomeGuy isn't there any better way
09:47
You could use file blobs and stuff
Tell us more about your use case?
@Cerbrus application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
@SomeGuy Making a call to server, returns a excel report, want it to download it straight away
You could use the File API, I guess. Haven't used it, so I don't know the specifics
crl
crl
!!> var o = {x: 1, v: {a:this.x} }; o.v.a
@crl "TypeError: o is undefined"
@crl "TypeError: this is undefined"
crl
crl
ofc
09:51
maybe need this
20
Q: Download text/csv content as files from server in Angular

MichaelI am trying to stream a csv file from a node.js server. The server portion is very simple : server.get('/orders' function(req, res) { res.setHeader('content-type', 'text/csv'); res.setHeader('content-disposition', 'attachment; filename='orders.csv'); return orders.pipe(res); // assuming or...

but not in angular
oh that's right, I can't :P
typically zirak. As a maid desiring for master's seed for a baby
Is this possible?
var x;

I need the value of x (12) in here

x = 12;
@stack huh ?
09:56
why can't you assign var x = 12 at the start?
^--
or you can use functions. But that's the same rout as just initialize 12 to x.
In reality the structure of my codes is how I cannot assign x = 12 before that line "I need the .."
@KarelG maybe function is fine, I will check it, tnx
who has determined that ?
me
you deserve a kick. Sorry
10:00
:-)
is there a reason to initialize it after using it ?
you don't know about the structure of my code ..
in languages like C leads this to a vulnerability
maybe you are right
@stack I really want to see the structure of your code :-), anyone else ?
10:02
:-)
same here i want to see the "structure"
ok .. maybe I'm wrong ..
maybe everything is wrong, maybe everything is right, seriously ?
@Mathematics maybe
$("#myAnchor").on("click", function () {
        this.href = "www.google.com";
        return false;
    });
why am I being not redirected to the page
10:11
Hi Guys. My friend has been trying to solve this problem for so long and I have been trying to help him for long - but I can't see the solution to it - Please help him - Thanks a lot
That question isn't even an hour old yet.
0
Q: The display is not changing according to selected option

Kevin RajThese are extracts of code related to the problem mentioned in the Title. Please help. Thank you.(At the beginning div id="1" is being displayed, and it is still displayed as the selected options are being changed. <!DOCTYPE html> <html> <head> <title>CourseID-<?php echo $_POST['kp']."-...

The question has been modified
It is a new question nearly
@AdminRelative you need to wait at least few hours or a day
ok
Thank you
I will wait
user3119231
10:26
Oh, hello admin!
crl
crl
!!> var a=[1,2],b=[3,4]; 1?(...a):(...b)
@crl "SyntaxError: expected rest argument name, got '.'"
@crl "SyntaxError: expected closing parenthesis, got ':'"
@crl "SyntaxError: expected '=>' after argument list, got ':'"
crl
crl
fuck
!!tell crl sandbox
@crl Please go and play in the Sandbox
10:39
crl knows about the sandbox. But i assume that he feels himself old to play there
10:57
Hey everyone!
@SterlingArcher : this is awesome. A lot hidden "treasures" :D
OP certainly deserved an upvote
user3119231
Hey GNi33!
@KarelG it's also a re-re-re-re-re-re-re-re-re-re-post
:-(
I'm really confused ..! Why this works and this doesn't works?
11:11
the use of \n
what?
\n isn't a newline in a textarea
also, try to use console.log instead of alert for debugging (remark: console.log displays the output in the console. You can access it by F12 )
user3119231
also, it is working for me (firefox)
@Cerbrus oh ... tnx
@KarelG tnx too
user5503464
11:19
0
Q: How to make checkbox with input text box using angularjs?

komaldemo Here i have added my code.i have two mobile brands and models with submodels $scope.phones = [{ id: "986745", brandname: "Nokia", modelname: "Lumia", "Submodel": [{ "name": "Lumia 735 TS" }, { "name": "Lumia 510" }, { "name": "L...

what you guys think about tester becoming your manager
Good for him.
i don't understand that sentence
@Mathematics i'm a tester also, so it's all cool
11:32
How can I remove more than one \n in this regex ?
@CSᵠ so do you chase dev teams for dates ?
@Mathematics no need to chase, they're down the hall, pass by my door every time
need pointers?
If your tester is trying to date you then take it up with HR
11:57
user3119231
If I let a http request change a value of a php value, is there a way to save this variable value instead of letting the next http request getting the default value?
@RajaSekar Welcome to the JavaScript chat! Please review the room pseudo-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.
@Maurice store the state somewhere
each request starts an initial state. If you want to have non-default values, you have to store it somewhere. Either in session if it's temporal or in db.
user3119231
I did in $_SESSION and it works like charm
user3119231
12:09
Just trying to script a "notification-system"
12:34
How can I use a variable instead of 1 in this: .match(/\[1]/g)
and a somehow fitting SO question as addition: stackoverflow.com/questions/494035/…
Got it .. thanks guys
@Abhishrek email me at naftalilubin at googles email service what times you'll be in town
@rlemon can you or someone else email me what subdominant you want and where I should point it or if you want some space on my server for something
I can set up the domain when I get into work
12:53
@Maurice still, worth to mention: store values in sessions only if the value isn't "sensible" and is temporal. It's to prevent session attacks.
i once got a client which stored the user's state as json string in the session. That client was a small banking company.
user3119231
@KarelG I will store them in database let the pulse check if something changed and let him give signal
user3119231
then the user can use the callback to do something on signal
do you auto-commit changes, or only when the user commits himself ?
(when the user commits itself = clicked on "save" or "ok" when asked to save it )
user3119231
It is rather a solution for messaging. If e.g. mr. hase got an message -> insert into a table named for e.g. messages he gets an notification
does anyone have a React + node/Express demo I can look at?
gonna dive into React today
but I have a small project in mind that I'll wanna use express for
cc @Loktar
because I know how much you love react.

« first day (1924 days earlier)      last day (3249 days later) »