« first day (1893 days earlier)      last day (3279 days later) » 

crl
crl
00:03
How do you clone a Node? (is there better than var el2= document.createElement(el);el2.innerHTML=el.innerHTML;) , oh ok developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode
Does the size of your source map matter?
I have a source map close to 10MB
sourcemaps get big
depending on traffic you may want to limit who you serve them to
Is it possible to minify or ugly them to reduce the size at all?
you can zip them
We just serve them on our local network
01:13
ACTIVATION_OBJECT is referring to execution context of this code. Do we have access to that context in code?
(function(foo){
  console.log(ACTIVATION_OBJECT.arguments);
  console.log(ACTIVATION_OBJECT.foo);
})(1);
01:48
Guys, I finally got my perks in the mail from funding that Bill Nye documentary; I got a signed copy of his new book!
I am now the owner of Bill Nye's signature!
It has good pointers to lot of links categorized for frontend development.
Wes
Wes
how do i get all keys of a js object, enumerable, not enumerable, inherited and own ones?
02:08
@Wes getOwnPropertyNames combined with recursive prototype checking, maybe
Wes
Wes
that's what i did, hoped for a one liner solution :B thanks though
@Abhishrek hangouts
 
1 hour later…
03:14
Hey guys, I have a question. Given a function of the type A -> B does it imply A <= B or B <= A?
I wish I knew what that meant
03:39
hey there, anyone familiar with mocha or chai? I am certain that there was a certain comment that you could put above your code line to ignore that particular line or statement but can't find any info about it
does anyone remember what it is? or where it is on the docs
/* istanbul ignore next */
is what I was looking for actually
:)
create npm package to download javascripts for infragistics
thanks!!
how to do that?
user3047181
04:29
why the hell does js shit itself when I use the string "constructor" as a key?
@MeltyButter That is the most elaborate question I've ever read. Kudos to you, sir.
user3047181
04:45
How'd you mean elaborate? All im sayin is dict['constructor'] = value is all like errorish
04:56
!!tell MeltyButter mdn Object.prototype.constructor
user3047181
Jeez so you can never ever use 'constructor' as a key? Surely there's some way round that
user3047181
Believe it or not this is actually highly important to me
@MeltyButter What do you mean by "shit itself", and what are you using as the dictionary?
05:07
Yeah. Anyway, I would advise, at the minimum, use Object.create(null) instead of object literal as the base. Map is water proof, and Proxy can make it works like a plain object.
!!> [ 'constructor' in {}, 'constructor' in Object.create( null ) ]
@Sheepy "true,false"
@MeltyButter While it is possible, it is advised against.
user5503464
0
Q: How to make Schema using mongodb(mongoose schema)?

komalI have Mobile List with models and rates.i want create schema for this i am neww to mongodb and mongoose any one help me out i have added my requirements. Categories : nokia sub Categories :Nokia Lumia 730 -7,000, Nokia 225 -5,000, Nokia Lumia 1020 -6,000, ...

user5503464
help me out guys
05:27
hi
var parent_div = $(this).closest("div.cloned-row1,div.cloned-row2,div.cloned-row3,div.cloned-row4,div.cloned-row5").find("input");
parent_div.each(function() {
  $(this).addClass("required_Field");
});
hi all kindly please guide me whether my above code is correct
Try parent_div.addClass( "required_Field" )
If your "cloned-row" is not a class but is instead id or data attributes, the closest selector can be shorted.
Strictly speaking, putting <input> in parent_div doesn't look right, too.
@Sheepy kindly please check this link
i am trying validation for the cloned row
but it should validate only if the user enter any of the value in the cloned row
No time.
ok thanks
-2
Q: Error validation not working on cloned field using jquery validate plugin

MahadevanCurrently working jquery clone with jquery validation. In the first scenario with my current code where I can able to valdiate original fields. In the top i will get error count. In the second scenario if the user enter in any of the duplicate row field then validation should happen. But curre...

That question is closed as dup.
05:36
actually the duplcate question has the answer

var parent_div = $(this).closest("div.cloned-row3").find("input");

but in my real scneario i have 4 div div.cloned-row1,div.cloned-row2,div.cloned-row3,div.cloned-row4 can you please tell me how i can find the closest
Please understand that we are not your consultants and you will do well to learn how to read API and debug by yourself, if you want to do programming.
the igniteui javascript library doesn't have an npm package.. how to create an npm package for it?
06:24
hi
06:44
where to put the favicon while using express?
Hey, Anyone can help for implementing PIN lock in android via JavaScript?
@AnandGupta 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.
My app is hybrid app and I want the android version to have PIN lock
How to achieve that?
07:00
Hi coderz
07:52
Good day all
I'm trying to write one of my first jasmine tests for a button function
there is one master button
it can be set to true or false
there are also other button of the same class i.e. x,y,z
when master button is false and x,y,z, are also false
and when master is set to true, x,y,z, also become true
what is the best jasmine test to use?
08:08
Hi everybody
anybody know where is the documentation for Typescript outFile order. When I read the docs, I see 'See output file order documentation for more details.' github.com/Microsoft/TypeScript/wiki/Compiler-Options
Never find this documentation :p
08:32
hi
08:48
anyone good at jasmine/karma testing?
0
Q: Jasmine test to spy on master button and watch changes in child buttons

emporioI'm kind of new to unit testing in Jasmine/Karma. I've got a master button which can have its value set to true or false depeninding on the user's last saved settings. There are also child buttons of the same class for example x, y, and z. Assume the master button is set to false and all the c...

crl
crl
09:13
Array needs a .mapConcat
[obj, obj2] -> [...obj1.foo(), ...obj2.foo()]
09:29
@crl ..?
Oh, you mean flatMap
Array.prototype.flatMap = function(cb) {
  return this.map(cb).reduce((result, current) => result.concat(current), []);
}
crl
crl
oh yes
This should really be in the language, TBH :/
Did I see a custom extension on the Array prototype?
@Sheepy I knew someone would say that :D
You bet ;)
crl
crl
09:46
ha!
morning
anyone know of a css shim for :last-child ie8?
selectivizr?
crl
crl
:nth-last-child(1) nah jk of course
@Mr_Green too old
+ needs other libs
css pie?
or modernizr
or just add a class to the last element :/
@SuperUberDuper btw, IE8 is also old
09:58
I get paid good for ie8
It's just 6 years old
10:19
Anyone here?
crl
crl
nope
crl
crl
@SuperUberDuper painful jobs are well paid :)
(not always tho)
if not, then you change job
10:23
true
@SuperUberDuper per day?
That's exactly how much my father makes per month
thats good @pootis
thats how much some earn in a year
in asia/w europe
what would be difference mocking request with sinon vs mocking request with nock(github.com/pgte/nock)
10:28
@SuperUberDuper In some countries, with that salary, you'd be considered a rich person.
for sure
I'm in top 10% in uk
maybe 1%
You're a frontend dev?
It's pretty standard pay in the valley for someone with 5 years of experience.
10:31
I mean, @pootis sounds surprised as if you're being overpaid. I'm saying that that's just how salaries look like in some countries and that making that much is entirely reasonable.
@BenjaminGruenbaum lol, I'm not surprised. That's how much some undergrads get paid here too. I was just asking.
@pootis try and come to uk
600pd undergrad in India?
@SuperUberDuper Some of them, yes.
@BenjaminGruenbaum I guess "pounds"
so yeah, gbp
@FlorianMargaine apparently $, but I assumed pounds before too.
The problem with really high paying jobs is that they tend to be consulting or teaching and not actually developing.
or doing ie8
which isnt deving
its patching
crl
crl
sometimes I feel it would be cheaper to make an upgrade of all client OS (hmm no, it they have old ass softwares not compatible)
hi
if ($(".cloned_field").val().length > 0) {
    alert("check");
    var parent_div = $(this).closest('div.cloned-row1').find("input");
    parent_div.each(function() {
        $(this).addClass("required_Field");
    });
} else {
    $(this).removeClass("required_Field");
}
kindly please help me the above one is correct
crl
crl
10:46
^
if it is correct, why ask for help
@crl story of my life
the value was not coming inside the if condition
?
pastebin is for me :( pastebin was blocked in my office
kindly put the code in paste.of.code :(
Sorry, I'm a terrible person.
1
Q: How to make a full page JS and CSS menu

RishikeshTo be more specific, how do we create a JavaScript menu with CSS styling that occupies the whole page, but the menu bar will be shown. There will be an icon on the top-left. Upon clicking that icon or symbol, the menu should appear and that image should glow. And after cliking it again, the menu ...

^ This was me 3 years ago.
pathetic
/cc @AwalGarg
crl
crl
!!> var a=[0], a[1]=1; a
@crl "SyntaxError: missing ; before statement"
crl
crl
stupid me
11:14
my new hat
11:39
it fits your avatar perfectly
@Mahadevan sit, would you kindly
stand, would you kindly
11:55
@BenjaminGruenbaum bioshock reference
crl
crl
!!urban kindly
References work better when you don't call them out :)
@crl No definition found for kindly
!!urban would you kindly
@Neoares [would you kindly](http://would-you-kindly.urbanup.com/2601010) mind control word from [\[teh\]](http://urbandictionary.com/define.php?term=teh) popular game [\[Bioshock\]](http://urbandictionary.com/define.php?term=Bioshock).
if you havent played bioshock, its basically a phrase
"Atlas" or fontaine says that makes the main player
do what he asks, disguised as a way of saying please.

would you kindly 1up this?
11:58
This is why we can't have nice things.
12:18
Hi all
how can i read custom http header values in java script onreadystatechange.my code is stackoverflow.com/questions/34415691/…
12:40
RIP punctuation marks
13:00
that moment when you have to add a title in your commit
I spend like 5 minutes thinking about the title + description
@Neoares really?
really
because I want the text to be clear and as much short as possible
what?
hehe I can see your point there
I should try to do it faster
60 times faster, at the least
13:09
My commit titles suck
^ Like that
i am new to node js , i want to choose a framework for node js , any suggestions
node protip #1: Use small libraries, not frameworks.
13:26
but the doubt is when a language becomes bigger and bigger people never use much native language i guess. Because many of the programmers adopting to use frameworks for fast development. I am new to programming. If my statement is a wrong leave it
You can't use a library without knowing the language
@Cereal from my experiance, story of many Angular developers today
@cereal thanks for that,
@Srle Well I mean you could argue 90% of the people asking stupid jquery questions on main are technically using the library
vOv
hmpf.
I didn't optin to winterbash
13:32
@Cereal problem is not knowing even basic things in javascript i guess
looks like I still got a hat nevertheless.
but , do i have to completely understand node.js before learning a framework, because syntex will vanish as i started to use libraries. So will there be disadvantage on my point
You should know javascript
Since that's the language
@sivashanmu but how would be wise to start with node with not knowing javascript
like learning to run before learning to walk :D
I could skate before I could walk
13:35
i knew a bit of javascript, i created modules for my project and i knew how it works, The thing is i am new to node js i am keen to learn a framwork
@sivashanmugamkannan expressjs is a good framework to learn, go with that
@flo
thank you
13:46
my framework is cooler than express
except that my framework is still in alpha... because, it's the alpha dog; woof
express is good for REST APIs.
My framework is very different from express; mine is very opinionated; some people like it, some people hate it.
i am getting an error Uncaught TypeError: Cannot read property 'val' of undefined
I use too many semicolons; look, there's another one
@Mahadevan your variable is undefined then
13:52
@Mahadevan it's because your variable has no value
from your jQuery selector, I guess?
function cloneValidation() {
  var duprow = $(".cloned-row1").length;
  console.log("hi", duprow);
  $(duprow).each(function() {
    if ($(this).val().trim().length == 0) {
      alert("yes");
      var parent_div = $(this).closest('.cloned-row1').find("input");
      parent_div.each(function() {
        $(this).removeClass("required_Field");
      });
    } else {
      $(this).addClass("required_Field");
    }
    bind_validation();
  })
}
line number 5
KDE plasma is cool
don't use this
well I mean
use this instead of $(this)
I'm not using it. I'm just saying it's cool. pls
13:53
using this in jquery is one of the bigger reasons why so many jquery develoeprs don't understand what this is in javascript
no need to put $(this)@Neoares
@pootis KDE5? Looks good yeah, haven't tried it yet tho.
$(5).each() is going to work?
also, that ^
13:54
ok let me try that
@Neoares only that
he has to use $(this) for the rest
does it work?
I'm not used to jQuery
i have use the particular class name instead of this
ah, yeah, Florian caught it; he's trying to use each on an integer
13:55
I think I used a callback with each
if ($(".cloned_field").val().trim().length == 0){
I guess $(".cloned-row1").each(function... is what you want
because duprow is , as @FlorianMargaine said, an integer
the concept is i have a row inside row i have text field
i need to check if the user enter any one of the field
lol you have almost more reps than me xD
a question about MAMP tagged with Node.js lol
-1
Q: What does MAMP do?

AndroiderI have experience developing a server by NodeJS And now I have to develop api and maintain 'MAGENTO'... I'm new to this so my senior told me to 'test' our service locally after checking out the all source code. So I'm searching how to do this... What I found is the combination of magento and ma...

13:59
!!afk crying
crl
crl
yet another stack?
@crl it's LAMP on mac
crl
crl
oh, thanks
> My guess is that mamp has a role like 'createServer' on NodeJS right?
^^
if ($(".cloned_field").val().trim().length > 0) {
    alert("yes");
    var parent_div = $(this).closest('.cloned-row1').find("input");
    parent_div.each(function() {
        $(this).removeClass("required_Field");
    });
}
but with this code i am getting another error Uncaught TypeError: Cannot read property 'trim' of undefined
i am seriously confused :(
14:02
@DenysSĂ©guret I submitted an edit that removes all references to Node
still needs 2 approvals
@Mahadevan Stop using jQuery if you can't even debug it. You clearly have a lack of basic understanding of how Javascript works.
That's the big problem with edits on SO: once a peasant like you submits an edit, real users like me can't make an edit until yours is approved
And then my edit shows up as rejected, which is just a retarded flaw in the system
@DenysSĂ©guret You can "approve and improve" or whatever it's called?
IIRC clicking the hyperlink for the pending edit takes you to the edit review
14:06
@Mahadevan put $(".cloned_field") on your console
and see what do you get
I don't think you can do a .val() of multiple elements
crl
crl
probably jquery .val takes just the first, bad idea to call it with a class anyway
I dunno
well, he's trying to trim the value of an element that may not exist. His problem is that he's trying to mash together as much jquery as he can without even understanding basic javascript
how to check for all the field :(
14:08
I'm done helping; he's a vamp at this point
!!afk lunch
14:20
In Japan, Star Wars was beat out by some weird anime movie... typical japan
Western movie does worse than japanese movie in japan?
Shocker
Do you know what he japanese movie was?
I only read the article headline; let me find it again
sup folks
Yo-Kai Watch, btw
anyone has worked with degrees in maps online, is there a maximum/minimum value .. where i can find it... (+/-) 180 ??
14:23
an anime movie about Pokemon that are actually ghosts that you catch with a wristwatch
...basically
"yokai" is a Japanese term that roughly translates to spirit, demon, or poltergeist
sounds just as stupid as everything else that comes out of japan
good for them, though
pretty much, but it's being marketed as the new Pokemon
new pokemon as in: The yearly japanese anime to be marketed in the west as a children's show
yeah
Disney XD is carrying it
Just like digimon, that weird ball one I saw my cousin watching, that other mon one
beyblade
14:25
I enjoyed digimon, as a kid. Shit was cash, mang
mhm
it's rather popular though
a lot more than Beyblade ever was
I feel so dirty for saying "shit was cash"
@ndugger The PS1 games were amazing
I mean, history shows it's a popular theme
that's something Jordan would say
14:26
Hey now, I liked beyblade
lol @ndugger
There's a new digimon game for ps vita
Apparently it's good, only in japan though
as long as it sells, they'll keep making it
As long as they keep pokemons out of the star wars universe I'm indifferent :)
the real mark of success is if something stateside picks it up
since then it has "global appeal"
14:27
Aww man I missed the Falcon landing
but nothing's beat the original Pokemon craze yet
I choose you, Vader-kun! Use stabby-swoosh attack! It was very effective!
:Luke-kun has fainted:
"ELOA FIRST EXPANSION PART 1 NOW LIVE. DER ELOA PLAYER, ON.."
The fuck is eloa and why am I on their newsletter list
BECAUSE IT'S EXCITING AND ALLCAPS
kun
A Japanese suffix added to a name (preferably to a male's name). It is used for friends, and possibly the men that you fancy.
I didn't think you were using that right, so I looked it up
I'm still not sure
Unless you're friends with vader, I dunno man
I want more rockstar :(
I don't know anything about it, I just recall people saying "kun" after people's names... not sure where I head it, since I don't watch anime
Drink sugar-free monster with me instead
sugar-free is the way to be
because sugar is a fucking poison
#truth
!!should I buy Rock Band 4?
@BenFortune Indeed
I've had a lot of caffeine
14:31
Yay!
I really like Rock Band 4; you won't regret it
yeah but sugar free energy drinks are shit
you're shit
fite me
crl
crl
14:34
@GeoPhoenix longitude? latitude?
@ndugger I looked at the new guitar hero and the controller looks wank
@crl nvm i found something
@BenFortune The controller is really fun, but the game is really terrible and filled with microtransactions; I regret buying it
14:50
Y'know, I never minded microtransactions
There've been a couple of exceptions
But for the most part, they don't seem unreasonable
I usually don't either, since you can usually just ignore them, but with this game, the provided gameplay is really, really short, and you have to pay for tokens to play songs once you beat the short main gameplay.
It's the most sleezy thing that I've seen in a game
That's weird.
Yeah, terrible game, sadly
It was on my christmas list, now you're scaring me
I had high hopes
Just return it for Rock Band 4, no hurt feelings
14:54
That's the problem with micro-transactions.. publishers get greedy with them
I'm fine with a $1 mobile game having a lot of them, not so much for a AAA
I'm usually fine with them, even in big games, as long as I can ignore them and still have a full experience; with GH Live, you need to pay indefinitely for the game to have any value
With Rock Band 4, I did buy a lot of extra songs, but you get to keep the songs and play them over and over. With GH Live, you buy tokens to play songs, and you have to pay again if you want to play that song again; you can't just buy a song.
If you can viably progress without them then fine, if the game is balanced around them, not fine
What you describe sounds like a horrible example of microtransactions gone wrong
also, the song selection in GH Live is shit compared to Rock Band 4
Yeah I looked at both
RB's song list shit's on gh
and supposedly you get the previous game's songs if you had them
Aye, but I never owned a rock band before
14:58
> If you are having friends over or want unfettered access to GHTV’s robust catalog, you can buy a Party Pass, which unlocks the entire library for 24 hours for $6.
oh my god
I've heard GH is harder
@Cereal welcome to gaming hell
I'm assuming this is "unlimited access to all dlc songs"
because otherwise, that's some bullshit
I'd pay 6 bucks for rock band's entire library
that's like a thousand songs
Well yeah, but it's not DLC; you can't buy a song, you have to use tokens every time you play a song
But is it dlc?
Like is there a setlist that comes with the game, then additional songs for money

« first day (1893 days earlier)      last day (3279 days later) »