« first day (2035 days earlier)      last day (3138 days later) » 

14:00
Although I can appreciate the language features, I do prefer a language to be slightly more verbose in syntax, so that other people can read it easier. As an outsider, I have to know that add a b = a + b is a function. It might be immediately obvious to you, but I have to understand the context of it all in order to read it, since I'm not familiar with it
That's probably a stupid argument, though
@ndugger Kind of. You also need to know that (a,b) => a + b is a function
in haskell the syntax for that is \a b -> a + b BTW
Yeah, but the arrow is what makes that obvious to me. You don't have any definitive syntax for that in haskell, from the example you showed me
oh, nevermind
hence, it kinda boils down to personal experience
yeah, lambdas have the arrow. Regular functions are just values.
or basically, what one is use to
14:03
so myHaskellFunc a b -> a + b ?
@ndugger no, named functions use = because they are simply name binding
ah, I see
remember that everything in Haskell is immutable
Is there a de facto default plotting library for JS? Like how matplotlib is the de facto plotting library for Python?
@ndugger you can write myHaskellFunc = \a b -> a + b though
14:05
It would take me a long time to get used to a purely functional language.
It takes quite some time indeed.
I've heard good things about plot.ly, but I can't tell if there's a consensus for a most-used plotting library.
errr, plotly.js I mean
I guess you can think of Haskell functions being like a CLI style?
@rlemon I think I recovered
14:07
command line
not really.
Haskell functions have fixed arity
@SterlingArcher "but hey! got a free water bed out of the deal XD please don't stop talking to me"
well without the comma's, I have no other words
haha -- I feel like my response isn't what you said
14:07
@Shea it's without the commas because there's no "parameter pack" or tuple.
@Shea some languages choose terseness over clarity
f x y equals (f x) y
lmao I just got your snap lemon
but since every function takes one argument you can just drop the parens
I loved it
14:08
did you read the messages before you got the pic?
Haskell is for people like me who hate parens
now sure how order on snap works
No :( It showed me the video first, but I got it!
THEY CALL ME CUBAN PETE!
I guess you can say, explain the language is a hassle?
eh?
eeehhhh?
@ndugger I have run your code and its working fine but two rectangle gets join
@rlemon Back when Jim Carrey was a fantastic actor.
@Learning what do you mean?
CSS people: is it possible to use vmin and vmax as the criteria for media queries?
14:15
@JanDvorak 8:15 at U Zlateho Precliku, OK?
@Trasiva he was all cheese ball back then
@ndugger check this js bin sir
The first role he really shined was the truman show
Cheese?
I have added lots of users
@Learning I don't see the problem, if things are joined, that's because they're connected in the data
@towc corn ball, whatever
@towc That looks fine, deal.
@SterlingArcher best has got to be "HE FOUND CAPTAIN WINKY!"
14:18
Yay :D cya then
I still have no idea what do you look like
@Trasiva I liked him then too, but certainly not in the same way
holy crap why do I do that. I meant to type "got" but wrote "for"
:/
BTW, my teachers think you're a close friend, otherwise I would have had to bring 2 other students with you...
@Trasiva he still is. :P he's just takes some questionable roles over the years
14:19
Wait I lied
Man on the Moon was an outstanding performance. Cable guy otoh...
@rlemon the Cannibal Corpse scene
lol
@rlemon Has he done anything good since 2008?
yes!
14:20
@JanDvorak don't worry
We shared more opinions than my teachers with me
I think The Mask is the only Jim Carrey movie that I've seen him actually act semi-normal
This works, but I want to clean it up...

function updateCost(){
	var sum1 = 0;
	var sum2 = 0;
	$('.cost').each(function(){
		if (this.dataset.number === '6' && this.value !== '') {
			sum1 += parseFloat(this.value.replace(/\$|,/g, ''));
		} else if (this.dataset.number === '7' && this.value !== '') {
			sum2 += parseFloat(this.value.replace(/\$|,/g, ''));
		};
	});
	$('#calc-total td:nth-child(6)').text(accounting.formatMoney(sum1));
	$('#calc-total td:nth-child(7)').text(accounting.formatMoney(sum2));
Mr. Popper's Penguins cracked me up, Kick-Ass 2 was great.
14:21
@Waxi You want to clean it up? Don't use jQuery
he's only done a handful of movies since 2008
and two of them are good
Yes Man wasn't as horrible as I always thougt it would be
@ndugger Yeah yeah I know
I quote enjoyed fun with dick and jane
@Shea Then you need to see the Truman Show and uhhhh The Majestic
14:22
Do we want to talk about Nicholas Cage? He will go for any role
Our god and savior?
@Trasiva actually now that you meantion it, The Truman Show was pretty good
They trust me anyway
I don't think he acts so much as performs
lol he enjoyed dick
14:23
@rlemon Dick and Jane was pre-2008, but yes, that was good too.
Truman Show was really good, yeah
@nduggeri am not talking abouy thr connecting line
I really need to re-watch Wickerman
best.movie.ever
I ma saying that two rectangles got in to each other
@SterlingArcher I bought it on Blu-Ray, I'm going to watch it this weekend while wearing my DP boxers.
14:23
@Neil Con Air being his best.
@Shea eternal sunshine, liar liar, bruce almighty, dick and jane.. etc
he's slightly goofy in most, but a lot of his movies he plays a regular joe
he's really weird at some point in all of his movies though
If you see that js bin you will notice that 2 rectangles are got on to one another
@rlemon Cable Guy being his best.
@rlemon The pen, is reeeeeeeeooooooyal bluuuuuuuuuueeeeeee.
14:24
Cable Guy was arguably his worst movie
imo
and by weird I mean, very erratic
Cable Guy wasn't even in his top five.
It was funny though, no?
I didn't find it funny
@Learning You want to make it so that no rectangles can intertwine? Add collision detection, then. In the update loop, you'll have to loop through all users and check their coordinates against all other users.
14:25
Cable Guy was definitely better than his Edward Nygma in Batman.
it didn't review terrible. mixed, so I wasn't the only one.. but It did make money
so idk. I just didn't like it
But then again, Batman Val Kilmer is not.
@Waxi eh... I liked The Rock too, but probably because of the other actors
him as the Riddler was the best part of the movie
the rest of the movie was terrible
so I don't try to judge him on that role
but Nick Cage's best movie was definitely Lord of War
14:27
Top Gun 2 is announced speaking of Kilmer.
@GNi33 Ah forgot about that one, so good.
@ndugger sir Collidion is fine but I just want that two rectangles dont get on to one another.in js bin two rectangles are moving together like hand in hand
@rlemon I'll definitely agree with you there.
@GNi33 weatherman was pretty good
is it just me or does Nicolas Cage always seem invincible in his movies?
14:27
@Learning That's because I made the movement and placement random. Just change that.
@rlemon never even heard of it
I know collision detection will be time consuming so I will skip right now
Lord of War just threw me off, because his acting was actually good
@GNi33 it's basically "Family Man" but with a better plot
14:28
Anyone write any code to solve the traveling salesman problem? I've been thinking about trying it just to see what I can come up with.
I did enjoy his "Treasure something" series too, but they're nothing really special
@GNi33 it was way too Hollywood for my tastes. Not really his fault though
right. His acting wasn't terrible in it
But I'll never forget the first time I watched the clusterfuck that was Wickerman
I was so confused when that movie ended. Pretty much like a car accident, I wanted to watch something else, but I just couldn't.
hueryyyyyyyyyyyyyyyyyyyyyy!!!
yipeeeeeeeeeeeee!!
@hellodear 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.
14:32
@rlemon hm, thanks, I'll give it a shot
ok thanks for the quick info caprica Seven
ey, I forgot about "Matchstick Men". That was a really good one too
@ndugger sir before moving on to use canvas I wanted to ask you something
@GNi33 I don't recall much about the film except that I felt it was a movie that tried really hard to make a twist and failed miserably
someone is happy
14:33
It tried hard at everything and failed miserably to be honest
We should always be happy
no matter in which u r!
the twist not even being the worst thing
Or maybe it was the matchstick men that I am remembering
@AwalGarg mai bhi singha hu :p :D
singhal
@Neil does "NOT THE BEEES! NOO NOOT THE BEEEES!" ring a bell?
14:33
Actually I am scared for one thing as because I have already spend so much days in doing this task and thr solution I created that too making browser hamg and consuming lots of memory
God dammit
you mean single? well... that.. is good.
I set the path for solr in my class, and it's still saying 404
aree.. Singhal
@ndugger ny boss is already scolding me alot for this
14:34
:D
Amazing how people can figure out I am single over the internet. I must be terrible.
@GNi33 reminds of kickass actually
And I have given time for tomorrow. I havr to do this by tomorrow
@Neil you probably didn't see Wickerman then
@GNi33 maybe :D
14:35
I think they made it this horrible on purpose
aree I was talking about baniya :p :D
how did you guys manage to pick my two least favorite actors to talk about, anyways?
@hellodear English please. This is an English only site.
Drive Angry was a good Nick Cage movie, only cause of the guy from hell
Let's talk about favorite movies
14:37
room --> javascript chat--> once upon a time.. two actors
0
Q: Iterating promise objects using generators

overexchangeFor the below code, var myGen = function*(){ one = yield $.get('profile.json'); two = yield $.get('friend.json'); three = yield $.get('tweets.json'); console.log(one, two, three); console.log('sham'); }; function smartCode(generator) { var gen = generator(); function handleN...

Friday, Gandma's Boy....
Sorry for writing some other language word :)
can I write word "Hindi"?
[rec], Goodfellas, probably Blow
I am torn between Raiders of the Lost Ark and Dogma
14:38
I can't name my favorite movies really
@GNi33 Blow is in my top 5.
why? have you patented your favourite movies? :D
@hellodear anyways, I am not singhal. But you are probably from IIT.
The Scribbler is one of my top 5 movies
Hahha.. Yeah.. I am.. how did u guess that?
I know you are Garg
14:39
@hellodear there are just too many really. I could probably name them genre-wise
Only IITians talk like this.
@GNi33 please name at least 20 of them...
nah
@SterlingArcher what's that about?
But I think my absolutely favorite movie is Goodfellas
14:40
@AwalGarg hehe.. u knoe even IIT people don't know if "hehe" is an english or hindi word?
:'(
Or The Godfather
ok what about games of thrones?
who all are fans of this?
Nothing But Trouble
@Neil tl;dr a "mental" apartment building for psych patients has a string of murders, and a girl with multiple personality disorder starts to think one of her alternate personas is killing people, so she has to try and figure it all out
I think mine is Grandma's Boy
14:41
@hellodear why not try quora instead? Stackoverflow is not good enough for IITians. All of you intellectuals suit better with quora.
Bio-Dome
@SterlingArcher you had me at murders
I like some of Adam Sandler's movies though
Quora people love to talk about IITs and everything related to them.
I'd put Ex Machina in my top 10.
14:42
@Neil I gave it 5/5 on netflix, and I don't rate things normally
Waterboy, Billy Madison, and Happy Gilmore
Hey chill man!! nothing like that... completed my library testing one hour back.. coded for more than 15 hrs continously.. I really enjoyed it...
that's just a nostalgic thing though
I created a library where you can load the javascript content in lesser time...
@SterlingArcher I will look into it then
14:42
@SterlingArcher noted, that sounds good
!!imdb the scribbler
@SterlingArcher Something went on fire; status 403
(beware spoilers)
@hellodear library... what. Can you show us the code? is it opensource?
Cap is broken
14:43
Javascript library..
Happy Gilmore was the best Adam Sandler film imho
Google API is closed
Yeah.. putting in on github
anyone can use it.. :)
going to work on mozilla firefox
> I don't want a piece of you. I want the whole thing!
14:44
it is intesrting to find bugs and do some show-off like I did in google summer of code :D
@Neil Agreed.
@Waxi Ben Stiller's role as the abusive orderly was fantastic
has anyone particpated in google summer code
@Shea They did warn us like 2 years ago about this
14:46
yeah
but it still sucks
@Neil Haha I forgot about that. His mustache makes the character.
> I eat pieces of shit like you for breakfast. Wait, you eat pieces of shit for breakfast! ? I.. NO!
@ssube so I heard that optional static typing might be coming to JS in a couple years (es2018?)!
I don't see a reason I'd use it, but it sounds cool
const foo:int32 = 4;
@SterlingArcher I started playing with TS a month ago
14:48
During high school, I played junior hockey and still hold two league records: most time spent in the penalty box; and I was the only guy to ever take off his skate and try to stab somebody.
The colon syntax would be weird though, not sure if I like that
hard to go back
types are awesome
@Mosho what benefit does it bring to the table?
man, I rewatched La vita è bella a few weeks ago. Horrible movie. Fantastic, but horrible to watch
Does defining a type do some sort of automatic coersion?
14:48
> Just stay out of my way, or you'll pay! Listen to what I say!
@SterlingArcher mostly types over ES6
types do nothing at runtime
@Waxi now I need to watch that movie again
@Neil When he's in the batting cages just getting hit by the balls to toughen up for hockey...hilarious.
So, I'm just guessing here, but if you do like let int num = document.getElementById("foo").textContent; or however you define a type in TS, does it automatically parse the DOM string value?
@SterlingArcher imagine autocomplete, function signatures, and documentation as you type when using any libraries
even before you use it in any of your code
14:50
Doesn't a good IDE do that?
almost never having to go to MDN or github
Webstorm does that for me
@GNi33 example of a great movie that I will never ever want to watch a second time
@Learning Then go do it. If you did it the right way in the first place, in canvas, you wouldn't have an issue. Be smart about the way you approach issues.
@SterlingArcher webstorm is great for that too, but it uses typescript type definitions afaik
14:51
No kidding? I didn't know that
@Neil yeah, I totally forgot how freaking happy that movie starts out and how much of a comedy-style it has. Makes the movie even more hard hitting I think
@SterlingArcher and then you have types in your own code
Keep javascript typeless, you filthy heathens
you import a module you wrote, and you get all that as well
@Mosho Is that the definitelytyped stuff?
14:52
@BenFortune yeah
@ndugger actually sir I havent work so much on jquery.i am c# developer nd work on basic jquery like hide and show div
@SterlingArcher it's documentation. Inline docs, you can run analysis on them.
@Learning Then it's your boss' fault for giving you this task, not yours.
@BenFortune the d.ts files can come from the packages themselves, or installed using typings from auto-generated files or definitely typed
14:53
JS is already thoroughly typed underneath, especially with the whole poly/monomorphism that runtimes use to optimize stuff
@ndugger but as you know boss are always right.they are never wrong
@Mosho So I guess if I used some small library that didn't have any type definitions, I'd have to create my own? Or can I just ignore it?
so if you put that in the code, you can enforce that morphism
@Learning Only if you don't know how to talk to them. You need to learn how to stand up for yourself
@BenFortune either
14:54
@ssube those are typings for the JIT compiler
TS typings are for developers
I've always liked the idea of TS, I've never needed it though
@BenFortune yeah, but I only seen a few that didn't. it's easy to write too, and you can write as much as you want
@ndugger I have already told that I have tried this much but still he wants me to complete whole task
@Mosho why not both?
the real value of types in JS is to enforce JIT typings at the source level
so you can avoid deopts almost entirely
otherwise, they're just docs and basic checks
I don't think the TS compiler emphasizes that
but it could, I guess
14:55
@Learning I'm not your counselor; You need to talk to your boss about how you need more time, or how you don't have the knowledge to complete the task. Complaining to me won't fix anything.
but it's not the point :P
it doesn't emphasize it, no, because it's a pretty complicated concept
but you do get it as a side effect
that's a different discussion, I'm just talking about ease of development
TS enforces a contract early on, so you have more consistent types, which can be optimized better
agreed
14:57
@ndugger I am not complaining to you sir.jus telling you.ok let's not talk about that.
Has anybody used solr before?
I also really like VS code
@SterlingArcher We use it at work; run far away
Not an option :(
extensions aren't quite there, but it feels nice
and you get first class typescript support :D
I gave atom so many chances
14:58
I need to try vscode again. Atom is great, though.
@SterlingArcher Elasticsearch <3
it just won't stop crashing and stalling
@Mosho waaat. I haven't had one single problem yet.
-Djetty.home=/opt/solr/server
-Djetty.port=8983
-Dsolr.install.dir=/opt/solr
-Dsolr.solr.home=/opt/solr/server/solr
also have very few plugins, just language ones
14:59
plenty of issues opened about it
yeah, plugins are what crashes it
also I run it on leeenux
plugins are important
I tried to set my solr path to /opt/solr, but my 404 says /opt/solr/server not found
Hi all, is anyone aware of how to use $error object in Angularjs form in combination with ng-messages to output messages for all the fields as a validation summary? I'm able to loop through $error and render key of the error.
or as our QA department calls those little black windows, "the unix"
14:59
windows support is also important, to me since we use it at work
Is it supposed to append /server to my path string?

« first day (2035 days earlier)      last day (3138 days later) »