« first day (1878 days earlier)      last day (3071 days later) » 

9:01 AM
@emporio yup!
 
morning
 
morning~
 
moment('06.12.wtfbbq', 'DD.MM.YYYY').isValid() // true
well then
 
@AwalGarg @Mosho implemented hot reload that works for Angular here fwiw. I want him to open source it eventually but he'd rather spend days building svg images in code instead of working on it :P
 
@BenjaminGruenbaum lol
With React too
 
crl
9:12 AM
moment.isValid = s=>/.+\..+\..+/.test(s); // can't be bothered to do better for now
 
@MadaraUchiha yes, of course it works with REact...
 
TBF it is quite easy in the browser land. I implemented it when I didn't even knew what hot-reloading is. Just wanted my scripts to refresh without refreshing every thing. What @MadaraUchiha is trying to do is span modules over multiple nodes on multiple networks.
 
@crl JavaScript became morse code lol
 
(not meaning to say @Mosho's work would be silly :P)
 
crl
hehe dots yea
 
9:13 AM
@AwalGarg Yeah, no, the point is something like "I have this big clumsy server application, I want to separate it into services as easily as possible with changing as little as possible"
 
@Sheepy thanks for the link
 
crl
!!> /[A-z]/.test('_')
 
@crl "true"
 
@crl Seems they've added strict parsing in 2.3.0 so I can do moment('06.12.wtfbbq', 'DD.MM.YYYY', true).isValid() and get false
 
@MadaraUchiha "clumsy server application" <-- this is where you went wrong :-P Got your point though :)
 
9:18 AM
how the F did this get upvoted stackoverflow.com/a/34130063/1348195 ?
 
@AwalGarg "clumsy" -> "big and fat"
 
oh, wait, no?
Do you mean "clumsy" means that or that you meant it that way?
 
@AwalGarg That's what I meant
 
ok
 
For example, I have an entire part of my application that handles database interaction
And it's big and tightly coupled, but I don't want it to be very tightly coupled.
 
9:20 AM
Oh wait, I have a mod here.
It's "Not An Answer" - it's just a link to another question.
 
@BenjaminGruenbaum your answer has a trailing _ after "JavaScript" in the last line. Did you forget one _ or add an extra one? :P
 
ty and ty
 
So if I can implement a proxy that doesn't require me to change any of the calling code, I can fairly trivially extract whole modules into services
JavaScript's flexibility actually harms it in this regard, because I can't guarantee a consistent interface.
 
In my experience transparent RPC is always ending in a huge mess
 
9:26 AM
@MadaraUchiha It's obviously going to be a success
(but I guess it's a fake, right?)
 
Success +1 Fake +1
 
@DenysSéguret No idea. Wasn't me who posted it.
Although probably, I can't see GitHub using "doomed" or "rubbish" in their name generators
 
and neither "project"
 
@joshpeek of course not! #webinspector (but I dare you to add the words to the list)
Yeah, phake.
@AwalGarg You know it's going to be a terrible question when they say "i have a small query"
 
his picture is so bad
 
9:30 AM
@MadaraUchiha xD
 
@MadaraUchiha Only for PHP developers
 
My next three projects:
adorable-white-sheep
three-bags-wool
yummy-green-pasture
 
A.J
What are these about?
 
crl
roasted-bbq-steak
 
Cool, as long as it is not peppermint-roasted-lamb >.<
 
9:34 AM
java-script-project
 
Last month I was reading cooking books, one of them explains that lamb brain is tasty and how to pick a fresh brain. With picture. Followed by guidance on how to wash the brain.
 
@Sheepy this is a common delicacy here
(hard to properly cook, though)
 
You evil human! ~>_<~
 
I didn't say whether I personally like that, though
 
@emporio what new ? :)
 
9:39 AM
Hey how you doing? not much, just working on Angular and you?
 
9:51 AM
anyone do browserify here?
 
!!welcome deostroll
 
@deostroll 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.
 
so I guess not...
 
Many users here use browserify
including me
but it doesn't mean we're able or willing to answer any question regarding it
 
9:54 AM
appreciate the welcome though...Just wanted to know if it was written to understand es6...
 
Just ask your question already. If someone can help you, and cares to, they will.
@deostroll Afaik it only parses require statements and nothing else. It doesn't even care about the rest of the file structure
e.g. it can browserify my typescript es6 output with classes and shit just fine
 
personnally I use browserify with babel to make browserify modules
 
require and "import" statement (es6)?
 
I don't think it does import statements, not sure though, try it?
 
@deostroll Browserify does not understand import statements.
 
9:56 AM
because I've written some gulp tasks and looking at it convinces me somehow...
 
But you can write import statement-based modules, and have babel transform it into require() calls
Although today, if it's a new project, I'd probably just use webpack since it handles it for you.
 
@MadaraUchiha i don't get this , why you have to run something to translate it to something else, when you can write require(**this**),require(**that**)` , i mean since es6 is not production ready..
 
@GeoPhoenix Who says es6 isn't production ready?
 
Why is ES6 not production ready?
 
9:59 AM
I've been writing ES6 in production for well over a year now.
 
@deostroll And ?
 
Not sure how that code behaves...is the transform hit only when bundle is called...?
 
well then why babeljs.io this exists? >> "These allow you to use new syntax, right now without waiting for browser support. "
 
@GeoPhoenix 1. Babel was written before most ES6 features were supported anywhere
2. Some ES6 features are still not supported, and babel provides with a polyfill
3. Between babel and native, ES6 is definitely production ready.
There are, of course, things that babel can't polyfill, like proxies.
Those are still not supported everywhere are so, aren't production ready.
But the vast majority of ES6 features is supported pretty much everywhere, and babel covers almost everything else, plus older browsers.
Right, lunch time ~
 
Days since last bug caused by jQuery 2.0 $.Deferred().resolve not being async: 0
 
10:15 AM
it's been fixed in last jquery
 
Yup, I know but we haven't been able to upgrade yet
Personally I am campaigning for using bluebird instead
 
@deostroll If you understood how browserify works and what it actually does, you won't have had the need to ask that question :) It only wraps your files inside a function taking some magic arguments, and concatenates everything, exposing a require function.
You can write your own simple browserify in like 5 minutes or so.
 
thats where I came from...and btw I believe you were talking about the transform function, right?
 
>:( no
 
:drops donut:
browserify without the transform and normal es5 code (with require in it) does what you just said...
which is why I don't understand that piece of code I linked to...
^ I hope this isn't something time-bound like VSCode...
 
10:34 AM
VSCode time-bound?
 
its licence...
 
Wow. ChakraCore going opensource. So this is why there is sudden interest in it.
Normal opensource does not expires, otherwise it is hard to be labelled open source. (Well, legally, copyright is supposed to expire...)
However Google did let lots of opensource android core app rot - they are not closed or deleted, just abandoned - and instead push their own closed source alternative.
 
@deostroll MIT. Do-whatever-the-fuck-you-want license
 
Guys, what is Chakra?
 
That answer can be googled...
 
10:48 AM
Oh.. A JavaScript engine.
 
It's the JavaScript engine for edge
 
The JS engine of Microsoft's latest browser. They claim that it is the fastest and most advanced engine, which has some truth in it.
 
Oh
Better than Chrome's?
 
For quite a few cases it's faster than V8, so yes, it's pretty impressive.
 
@JacquesMarais In many ways. Very impressive ES6 support, for one.
 
10:52 AM
It got designed from the ground since es6 got released
 
It's then easier to provide that kind support than updating the current engine
 
This reminds me of how SpiderMonkey and V8 defeated the engines before them.
 
@RoelvanUden Hmm, are there benchmarks? I'd be interested to see a few. Would be great to see more competition.
 
!!google edge browser benchmark
 
So... 3:3:2 for Edge:Chrome:FF. Interesting.
 
Note that Edge wins most JS benchmarks.
 
Wow, a co-worker told me something i didn't knew.
 
hi
 
try to use this in your HTML document. <body bgcolor="chucknorris">
 
11:02 AM
kindly please look this question
 
0
Q: JQuery clone - after click add more button jQuery date picker update for the calculation not working as expected

MahadevanI have an issue on jQuery clone using calendar functionalities currently where I am adding from date : 01-01-2000 and to date 04-01-2005 for experience this was working fine perfectly but when i click add more button and if I modify previous year either from date or to date it was not updating I...

 
It seems to suggest that Chrome does particularly well at window API related stuff. FF does well in general. And Edge does great at the JS VM level.
 
Which makes it interesting to put Chakra into node
 
Yeah, definitely.
I can see why the spidermonkey-node project was benchmarked at a higher score than V8, then.
 
3336
Q: Why does HTML think “chucknorris” is a color?

user456584How come certain random strings produce various colors when entered as background colors in HTML? For example: <body bgcolor="chucknorris"> test </body> ...produces a document with a red background across all browsers and platforms. Interestingly, while chucknorri produces a red back...

 
@deostroll Look on GitHub; that shit is old yo
 
You can also try bgcolor="sheepy". It will be a bright pasture green!
 
0
Q: Hack required to make undefined == true in eval

JoeI have a function that allows strings to be evaluated against an environment function filt(M, filterString, cb){ var res try{ res = eval(filterString) } catch(me){ // If in doubt permit res = true } cb(res) } The problem is that I woul...

*Runs away in terror*
 
You are looking for ES6 Proxies. They are not very cross-browser, and node doesn't support them either. If your environment is Firefox (Spidermonkey) or Edge (Chakra), then it will work. developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…Awal Garg 32 secs ago
 
11:11 AM
they have a weird reason...
 
Ah. Good answer!
 
@Sheepy TIL
 
@deostroll Seems okay enough to me
 
that comment made me grin tho
Originally, it wasn't going to be part of HTML 1.1, but it inserted itself into the specifications after the first time Chuck Norris used a browser. The color is said to be modeled after the color of his beard. Fact: setting your background color to chucknorris will crash IE6, IE7, IE8, IE9, and versions of IE yet to be invented. It will also crash your computer and roundhouse kick you in the face. — slothario Feb 6 '13 at 0:35
 
@Joe Yes. Node implements an old style Proxy that can be enabled with command line flag and shimmed to new standard Proxy.
 
11:14 AM
@Sheepy that shim is not what you think it is...
 
Really? I used it and it seem to work? It's not the Object.xxyy shim for browser.
 
It does not implement the current ES6 spec properly. Run the spec Proxy channel test suite against it. It fails terribly!
 
But getter and setter works, so it should be marginally better than making undefined to be true.
 
>:((
 
@copy hi
 
11:18 AM
Well, I agree with Cerbrus that the PO need to find some other solution (/me take a step back >_<)
 
Morning
 
@AwalGarg 26!? good grief no
 
@KendallFrey It should be much more than that, right? I realized that a while later.
 
...no
 
Elaborate?
 
11:28 AM
/(?=.*a)(?=.*b)...(?=.*z)/
 
crl
@KendallFrey yea that , even without the ?=
so 5*26
 
@crl How do you do it without ?=?
 
crl
!!> /(.*a)(.*b)/.test('axbc')
 
How?
 
!!> /(?=.*a)(?=.*b)(?=.*z)/.test('zabab')
 
11:30 AM
@AwalGarg "true"
@crl "true"
@crl "true"
 
hmm...
 
@crl ...
 
@AwalGarg "true"
 
!!tell crl eval /(.*a)(.*b)/.test('bxa')
 
crl
@KendallFrey it's wrong?
 
11:31 AM
@SomeGuy "SyntaxError: missing ; before statement"
@crl "false"
 
crl
ah order ok
 
@SomeGuy Are maggi noodles back in stores at your place as well?
 
Yeah, for a few weeks now
 
Hmm, I wonder who are they gonna sue to claim for all the losses.
 
maggi noodles :D
but sueing ?
does that product bring problems in india ?
 
11:42 AM
@KarelG You guys have them too? Thought it was an Indian product!
 
It brought TRP to news channels, for one. Not sure about problems.
 
@KarelG Some tests claimed that it had too much lead
 
@SomeGuy It's from Nestlé, which also sells their products here. There are 4 kinds of it pic
 
I'm gonna eat noodles today
at UDON
 
11:47 AM
600gr :P
those pockets are at 180 here :/
 
had to buy 2 for each person
 
I should really learn how to cook noodles. Been procrastinating since forever.
 
it's a 2 minute meal
 
isn't that like really easy
 
11:47 AM
well, actually 5 since you need to boil water first
 
noodles + water + heat = steam + cooked noodles
 
@AwalGarg Hahaha, seriously?
 
Cooking noodles is so easy we did it while camping in the bush
 
yeah, I have only ever boiled water once. That was in my chemistry lab.
 
Hahaha
I've slowly been learning how to cook food so I can be a little less dependent in that regard
It's not so bad
 
11:49 AM
@AwalGarg O_o
 
the universal mobile phone charger is a nice idea. I forgot mine, but could lend one from a co-worker
 
@KendallFrey you need more spices to do that
 
I dabble with cooking, mainly by mixing ingredients that shouldn't be mixed.
 
i'm a hobby cook. I always take at least one hour for my cooking.
 
@Neoares nobody said anything about preparing noodles
 
11:51 AM
@KendallFrey sorry sheldon
 
lol
now I'm reading that in his voice
 
1
Q: JavaScript .toLowerCase/.toUpperCase undefined

Lawtonj94when ever I build my project the .toLowerCase() and .toUpperCase() functions are undefined and so will not run, but I have no idea why they just seemed to stop working here is one of the examples codes[i].toLowerCase() === code.toLowerCase())

ugh
 
@KendallFrey It can be fun sometimes
 
definitely.
 
crl
> when ever
 
11:52 AM
maple syrup on nachos 10/10 would try again
 
@crl Whenever people do that, my brain automatically reads it in a bimbo teenager voice.
> What evaar
 
@MadaraUchiha Haha me too!
 
JQuery clone - after click add more button jQuery date picker update for the calculation not working as expected
 
crl
hehe
 
best question ever
 
11:53 AM
-1
Q: JQuery clone - after click add more button jQuery date picker update for the calculation not working as expected

MahadevanI have an issue on jQuery clone using calendar functionalities currently where I am adding from date : 01-01-2000 and to date 04-01-2005 for experience this was working fine perfectly but when i click add more button and if I modify previous year either from date or to date it was not updating I...

 
I give him a
wait wait...
why have I got -1 rep when I downvoted an answer?
 
@KendallFrey on stove... I meant
 
downvoting comes with a price
 
@Forkmohit 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.
 
what? if I downvote an answer I get -1 rep points
 
11:56 AM
@AwalGarg So you've boiled water elsewhere? Where? In bed?
 
since when? :o
 
Thanks Six
 
@Neoares since ever
 
@KendallFrey electric kettles etc...
 
oh... and what about downvote questions?
maybe it's the first time I downvote an answer...
 
11:57 AM
no price
 
and just realized
ok I see...
we're close to 1M javascript questions
 
most of these could be answered by just googling it
but that's same story for other SO questions
 
pseudo rules would take sometime to read.
 
@KarelG which would take you back to Stack Overflow
 
true :P But would you ask a question if the answer could be found using google ?
 
12:00 PM
good day guys, can i ask for a favor pls?
cause i'm having a hard time debugging it
 
yes if typing is cheaper than searching
 
searching requires typing (for now)
 
okay asking*
 
meh, it's just the new generation of programmers. a lot of them get used with using google to find answers. If they don't, they ask for help, being a vampire.
 
crl
12:03 PM
> pls
 
i have seen some fugly codes from 20 years old developers that i had even to react like him
 
@KarelG Older programmers lived with learning everything by themselves, reading infinite pages of manuals and scraping pieces of information from seniors
 
@Ricardo we cannot answer if you don't ask your question. That's how the Q&A works
 
btw i've already asked this before on stackoverflow, but I didn't get the right answer
 
so put here the SO question
 
12:05 PM
ok wait
 
I donated 1 million to ricardo
 
hahaha
 
@MadaraUchiha There's also a desire for instant gratification that seems to be more common in younger people. Patience is a dieing virute.
 
^---
 
is it ok if i post here the link to my stackoverflow question?
 
12:05 PM
*virtue
 
@MadaraUchiha We still have to rely on that when working with most C libs :P
 
@Ricardo yes, that's not a problem :)
 
@ivarni Yup
 
ok thanks
1
Q: Bootstrap collapse button not working due to jquery script

RicardoSo i'm working on fullcalendar and integrated it with AdminLTE. I've got my desired output but later on I realized that the bootstrap collapse button is not working or reacting and also the other clickable features. I've tried to check the scripts and figured out that it has something to do w...

 
old programmers had time. New have managers.
 
12:08 PM
@Ricardo which version is fullcalendar-2.5.0/lib/jquery.min.js ? You have already imported jQuery already btw ( plugins/jQuery/jQuery-2.1.4.min.js )
 
sorry but I don't know,
 
second pseudo rule says : Do not Help Vampire... meaning?
 
so meaning I have to remove it?
 
@ivarni Don't think that's a fair generalization. What I think is more likely is that earlier, having no patience meant you tried something else. Now you can get away without having as much patience
 
@Forkmohit I don't mind helping newbies
 
12:10 PM
(What I'm saying is that there are just as many impatient people now as before. Now, they just manage to stay in the field somehow)
 
In fact, you'll probably find a lot of in-depth explanation most users take the time to write out and have newbies understand
 
@MadaraUchiha I also don't mind taking free help
 
I start minding when newbies don't care for improving.
 
Once in two lifetimes has anyone bothered to actually read and understand the "rules". Legend has arrived.
 
They don't want to learn, improve, try solving the problems themselves. They expect others to write a perfect, copy/pastable solution for them.
 
12:11 PM
:-P
 
@Forkmohit Vampires suck blood. Help vampires suck help.
 
If the user I'm helping shows that they care about learning and improving, I can sit and explain the same subject for over an hour until they fully understand it.
If not, that's what we call a help vampire.
 
I don't think expecting others to write a perfect, copy/pastable solution is bad?
 
@KarelG I just got it from fullcalendar site and it's not indicated there the version of jquery
 
@Ricardo yeah, you're importing the same library twice. The site itself mentions that you have to import the jQuery yourself
 
12:13 PM
Okay so Vampire is who sucks others code?
 
@SomeGuy I actually think it's a general chance in society, not nessescarily coupled with programming or younger people. Everything flows faster now and we're increasingly getting used to not have to wait for results/feedback
 
@Forkmohit If you pay me to write your code for you, I will write your code for you
 
so, one import is enough (remove that lib/jquery.min.js)
 
I give my time out to people for free, to help them. Not to do their jobs and/or homeworks for them.
 
@MadaraUchiha sure I will pay you. I will put you through hiring process later.
 
12:14 PM
ok thanks, i'll try to remove the other one
 
and what is fullcalendar-2.5.0/lib/jquery-ui.custom.min.js this file ? What does it do ? It's not part of fullCalendar
 
@MadaraUchiha Thanks. For now I will take your help.
 
> I don't mind giving my blood to a vampire if they are willing to improve their health with it. If all they want is to suck out all blood out of me and then move on to someone else when I am dead, then no.
 
@Forkmohit :)
@AwalGarg No, I don't mind donating blood. I mind vampirism.
That's a more accurate analogy ^
 
heh, yeah, just kidding ofcourse :)
 
12:17 PM
or eat something with ail
!! afk lunch
 
3rd : mass ping. How actually it is done? DDOS?
 
@KarelG I've tried to remove the lib/jquery.min.js but the calendar design was gone, btw fullcalendar-2.5.0/lib/jquery-ui.custom.min.js is part of fullcalendar zip
 
crl
someone ever made an upload thing on nodejs and send back things such that the xhr.upload.onprogress can have some intermediate events? @ndugger you did for sure
 
@Forkmohit No, just by mentioning a lot of people
 
@SomeGuy ok.
 
12:39 PM
Why is cap located in the middle of the hudson
 
She's cap of a self-sufficient nuclear sub
 
Hey, @MadaraUchiha, do you know what's a good Hebrew-English dictionary resource? I've been having difficulty finding something decent.
 
Wold domination 101
 
@R.MartinhoFernandes Hmm
@BenjaminGruenbaum do you know of anything? ^
@R.MartinhoFernandes I normally use Google Translate, although it's not always perfect.
 
12:54 PM
in AngularJS, is .then only available when making use of the $http or $q service?
 
When else would you use it?
 
hi all :D :D
 
@emporio .then is available anywhere a promise is returned.
 
@TwitchBronBron 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.
 
@TwitchBronBron is there reading material for angularjs ?
 
12:57 PM
@Cereal she got placed in the bermuda triangle before
 
Have you looked at their api documentation?
 
my terribad code is nearly working perfectly D:
 
@TwitchBronBron maybe nto in the rigth place
 
I create 2 forms, and each has a file input, and then submit button
 
12:58 PM
@emporio more specifically to your question, take a look at the $http documentation. It says that $http returns a promise. docs.angularjs.org/api/ng/service$http#general-usage
 
The submit is overridden inside the success of a previous ajax call, else it doesn't work as the attach class (which is on the form) doesn't exist...
 
@TwitchBronBron thanks!
 
@Ricardo that's weird. But yeah you have a lot external libraries/plugins. I suggest to turn that into a documentation which would be useful for users of your framework.
 
but that means it seemingly only applies once.
 

« first day (1878 days earlier)      last day (3071 days later) »