« first day (1590 days earlier)      last day (3358 days later) » 
00:00 - 21:0021:00 - 00:00

12:21 AM
tracer.hs|16 col 9 error| Couldn't match type ‘()’ with ‘GHC.Types.IO ()’Expected
type: ((GHC.Types.Int, GHC.Types.Int) -> GHC.Base.String) -> (GHC.Base.String ->
(GHC.Types.Int, GHC.Types.Int) -> ()) -> (GHC.Types.Int, GHC.Types.Int) ->
GHC.Types.IO () Actual type: ((GHC.Types.Int, GHC.Types.Int) -> GHC.Base.String)
-> (GHC.Base.String -> (GHC.Types.Int, GHC.Types.Int) -> ()) -> (GHC.Types.Int,
GHC.Types.Int) -> ()In a stmt of a 'do' block: _ <- Haste.prompt "test"In the
expression: do { _ <- Haste.prompt "test"; GHC.Base.return () }In the second
Here we go
 
sup guys
 
12:58 AM
I'm so dumb, I don't get the point of that story. Was he just fucking with the interviewer?
 
no, he was not :D
 
Well, the article reminds me of a question I asked on programmers.se... :P
 
I actually solved a similar problem like 2 weeks ago, although it was with a real robot, and in Java -_-
 
I knew a recruiter who would feed candidates info on the technical interview.... why would you want a job you weren't qualified for
 
@BenjaminGruenbaum In an interview, or actual product?
@taco Some people are more greedy than pragmatic
 
1:06 AM
@SomeKittens for fun, not in an interview or an actual product - for a robot that solves mazes.
 
oh right, robots!
 
yeah lol, not the same problem but the same 1 step 2 step iterator solution for finding cycles
 
user4330208
when using insertBefore() the newnode has to already be a child of node, but i just removed all of them so...any ideas? syntax: node.insertBefore(newnode, existingchild)
 
In JS we rarely get to do those neat iterator tricks since everything is async - except with observables but those are hard.
 
We do get some pretty neat-o tools to play with
he says, having never experienced life outside of JS-land
(discounting my forays into PHP)
 
1:10 AM
You should seriously try a functional programming language
Not necessarily Haskell
 
user4330208
Any ideas? Because i removed all the newnodes but can't add them back even though they are in an array. All because they aren't children of node.
 
@copy I dabbled in lisp during the AI class
that and Prolog
 
Improved exception messages: Goodbye "undefined is not a function". Hello "http://foo.bar is not a function" http://t.co/3uykfrTK9O
7
 
FINALLLLLy
 
No more "undefined is not a function"
 
1:13 AM
rejoice!
 
@SomeKittens Prolog is something different (also interesting, but different)
 
@copy Yep, logical vs functional. Of the two, I enjoyed Prolog more
 
I'd suggest Erlang for something dynamically typed and OCaml for statically typed
 
I meant JS-land in terms of professional dev
 
Alright
 
1:18 AM
I haven't really been interested in picking up a new language (other than possibly Go), moreso getting better at JS
 
tracer.hs|18 col 20 error| No instance for (GHC.Base.Monad m1) arising from a
use of ‘GHC.Base.return’The type variable ‘m1’ is ambiguousRelevant bindings
include test :: t -> m1 () (bound at tracer.hs:18:1)Note: there are several
potential instances: instance GHC.Base.Monad Haste.Graphics.Canvas.Picture --
Defined in ‘Haste.Graphics.Canvas’ instance GHC.Base.Monad
Haste.Graphics.Canvas.Shape -- Defined in ‘Haste.Graphics.Canvas’ instance
(GHC.Base.Monad m, Control.Monad.Trans.Error.Error e) => GHC.Base.Monad
Now what is this interesting error all about
 
What's tracer.hs line 18?
 
@SomeKittens Makes sense. I'll try to convert you less often
 
 
@SomeKittens Right-o. Write a KSP clone with canvas.
 
1:25 AM
@BenjaminGruenbaum Fixed it already
 
@copy Ironic, treating a JS'er statically
@KendallFrey ...that would be pretty cool
Unfortunately my buffer of side projects is pretty full.
 
user4330208
0
Q: insertBefore() requires new node to be child. Workaround?

carb0nshel1I have code that first removes multiple elements from the page using remove(). I simply am trying to add all of these elements back in their proper places. All of these elements are in an array called dayChildren. Here is my code: var dayChildren = document.querySelectorAll( '#tableContent .day...

 
user4330208
easy rep
 
{-# LANGUAGE ForeignFunctionInterface #-}

import Haste

foreign import ccall requestAnimationFrame :: JSFun (IO ()) -> IO ()

main = do
    requestAnimationFrame $ mkCallback $ writeLog "raf"
@KendallFrey Minimal example of using rAF
 
@KendallFrey should a station have a reaction wheel?
 
1:37 AM
it should have torque
for something like a station, RCS is really inconvenient
 
I tried declaring requestAnimationFrame as JSFun () -> IO (), but a function that returns () isn't very useful in Haskell
 
 
2 hours later…
user4330208
4:07 AM
anyone want to inspire a developing js guru by answering one of his groundbreaking questions?
 
Absolutely not
 
user4330208
0
Q: Attribute of element is incorrect value when adding a class with JavaScript

carb0nshel1I've made a button that makes elements invisible that contain the day class. By invisible I mean I am giving them a class called noDisplay that has display set to none. The problem is that when I click the button my table rows are no longer shaded according to my tr:nth-child( even ){ background:...

 
user4330208
don't downvote
 
4:21 AM
I know your questions are groundbreaking, I can feel it already.
 
user4330208
serious man, its more complex than it sounds.
 
5:41 AM
can somebody write css for me XD
gawd, its so tempting to use bootstrap and foundation.
nvm
 
 
2 hours later…
7:49 AM
@Zirak How am I doing that?!
Oh, Goodreads?
@towc Happy birthday!
 
@towc happy birthday
something is adding jQuery1.7 to my project
so i did this
$(console.log.bind(console, "I will find you and then I will remove you"));
 
 
1 hour later…
9:00 AM
@argentum47 wassup
 
@AwalGarg just for you young friend
i am commiting in steps
so this git can be read as a nice lil, tutorial :D
lorempizza.com/i/1 priceless lemon
npm install dominos !!!
 
9:48 AM
@darkyen00 lol
 
 
2 hours later…
11:43 AM
@SecondRikudo pastebin.com/gXKqJxQk I was just asked to review that
eyes my eyes ... my fucking eyes are on fire
@BartekBanachewicz ^ I told the person ( who is the A++ student the best in thier class) that they need to find a different task, programming aint their cup of tea.
 
was that right ? or should i just shoot them ?
 
If it were me, it would fail the CR the moment I opened the file.
 
I did
urgh
quiz1::ques1 like seriously ??
i worry if they have to make 10 quizes what the program would look like
factorial 10 quiz classes one for each case of choice of quizzes for the max score
 
@darkyen00 You're teaching? If so, shouldn't you be guiding them to the proper way, rather than putting them down? Isn't that what teaching is all about in the first place? Or are you just randomly putting down a student that is still learning for no reason at all?
 
11:49 AM
@RoelvanUden I am not teaching
I was asked to re-view
 
Then, wouldn't it be better to give constructive criticism rather than "You suck, go do something else with your life"-kind of response? :-/
 
I tried that :-( [the times they have done before.... the code quality has only worsened]
didn't work.
 
Well, don't expect miracles over night. It takes time and effort.
 
over 3 years ? That too studying computer science day and night ?
 
I'd say your effort wasn't quite up to the task :P
 
11:51 AM
hello. i have a question. please, can someone have a look at the following question (stackoverflow.com/questions/26832590/…) and my question in the comment section of the correct answer? i don't get how i should call the popstate-event in order to retrieve the cached page
 
idk @RoelvanUden I am not their full time teacher, if it was me i'd atleast teach them to indent... first, they just ignore my suggestions
it seems. ps old story Raynos asked me to change my obby when i first posted code here
it worked really well for me.
 
@Zirak how awesome is that
AEON> (cl-ppcre:parse-string (cat "^\\s*([a-zA-Z0-9-]+)\\s*:\\s*(.+)" newline "$"))
(:SEQUENCE :START-ANCHOR (:GREEDY-REPETITION 0 NIL :WHITESPACE-CHAR-CLASS)
 (:REGISTER
  (:GREEDY-REPETITION 1 NIL
   (:CHAR-CLASS (:RANGE #\a #\z) (:RANGE #\A #\Z) (:RANGE #\0 #\9) #\-)))
 (:GREEDY-REPETITION 0 NIL :WHITESPACE-CHAR-CLASS) #\:
 (:GREEDY-REPETITION 0 NIL :WHITESPACE-CHAR-CLASS)
 (:REGISTER (:GREEDY-REPETITION 1 NIL :EVERYTHING)) #\Return :END-ANCHOR)
AEON>
 
@darkyen00 Easy.
"If you don't indent your code I'm cutting your score for that question in half."
 
When was the last time any of you wrote unindented code ?
 
@darkyen00 No?
 
12:03 PM
IIRC i did it like a few years ago like... 7-8 [notProperlyIndented !== unindented]
 
The first language I've ever written in was mIRC scripting
And the built-in editor indented for you
 
for me it was C and then immediately scratch.mit.edu < - which served really well
 
So when I moved to PHP I couldn't stand to read unindented code.
 
in the latter you dont even need to indent.
 
@darkyen00 Hisssssss
 
I'm kidding. I wasn't a fan of Scratch back when I looked at it
 
@SecondRikudo Scratch is only good for kids.
 
@darkyen00 I was a kid...
 
how old are you now ?
 
12:07 PM
You probably was amonst the first few scratchers, did you even make an account ?
[if so who were you ?]
 
@darkyen00 Nope.
 
okay.
 
12:56 PM
Hi all
Can anyone suggest me what went wrong in my answer...
0
Q: How can I write the following Javascript code snippet better?

wailerI am dealing with lots of variable that needs to get set. I am only using 5 variables to illustrate my issues. Here is the js snippet : //Make sure everything is empty var BCode = '', CID = '', Journey = '', CentreID = '', YearOfBirth = ''; //Get the data getVar is just a glo...

 
1:14 PM
Woah that got 15 upvotes over time stackoverflow.com/a/19491527/1348195
3200 views
lol
Apr 22 '12 at 21:22, by Raynos
@tereško your just coming with bullshit generic excuses for why you suck
 
Hi benjamin
 
Can you help, where i did mistake in my answer...
 
Hi
 
@AnilTalla it's a bad question for starters.
OP's question is unclear
 
1:27 PM
have some of you already used the google chrome cors plugin ?
 
it's a plugin for cross-origin resource sharing
to consume a web service with javascript
 
@BenjaminGruenbaum Why history though?
 
Raynos went on a huge rant about teresko and Zirak pwned him, it was funny.
Darkyen linked to it
 
1:31 PM
@BenjaminGruenbaum Why link to the history and not the actual message?
 
@BenjaminGruenbaum you are telling me to ask Zirak ?, sorry I'm new to this chat, so I don't know all its functionnalities
 
Apr 22 '12 at 21:31, by Zirak
It's interesting how little you say in many words
 
hi
 
Becasue I'm satupiid :D
@NewCoder no, we did not use that plugin, I find it kind of pointless tbh
It's incredibly risky and somewhat pointless
 
@BenjaminGruenbaum , why give negative mark to my answer. I just suggested the way to get.
given*
 
1:33 PM
@AnilTalla I didn't downvote it, but it's a bad and useless answer.
I can totally see myself downvoting it had I seen it out of context.
It's unclear what OP is asking and you just posted an answer to get rep.
No teaching of the future generations is being done.
No one got smarter.
No one learned anything from reading it.
It's just an attempt to score reputation on the site. That said - the only one who likely cares enough to dv it is likely the guy who posted the other answer.
That question should be closed and deleted anyway.
 
@BenjaminGruenbaum , thank you for valuable reply.
 
Hello, is anyone able to help with this question? please... stackoverflow.com/questions/28657578/…
 
o/ Benji !
 
I am still not able to understand this :-(
var data = 10;
function getdata()
{
var dt = 20;
$('form').on('submit', function(e){
dt = 45;
alert(dt); // prints 45
});
return dt;
}

data = getdata();
console.log(data); // prints 20 not 45
 
1:47 PM
@CatherineTyler: you might want to take a look at stackoverflow.com/questions/23667086/…
 
Stop that.
Did you just flag me?
1 message moved to JS trash
 
But, seriously, stop that
(What was he doing?)
 
This is the like the 100th time you've done that @UlisesContreras it's annoying and we don't appreciate it.
@BoltClock vamping, but worse he posts things, then deletes them, then posts them again. Always bad questions, usually ones he has asked before with minor modifications.
 
@BenjaminGruenbaum So that's what got him banned from Q&A
Before we know it we'll be instituting a similar self-silencing feature for chat
Gotta love slippery slopes
 
Talking about tiny avatars again?
 
2:10 PM
@BoltClock testing shadowbans? :-)
 
@BoltClock heh, figures.
@BoltClock shadowbans would be awesome.
 
mr5
2:28 PM
Hello o/
 
mr5
I'm making this JavaScript app to be used in mobile phones. I was wondering, if it's best to break things up like: A separate file for a certain object vs. 1 JavaScript file for all?
 
In development, I like to split things up
 
though a tiny question, not a single answer for 45 mins.
 
But merge it all together in production
 
2:33 PM
@just wait longer
45 minutes is not long
 
mr5
@Meredith would it really be useful in the long run when this certain object have a very few custom attributes on it?
 
Example?
 
mr5
@Meredith like a an object that I would instantiate for once or twice only?
 
If it's a module, it should be in a separate file
What is the object's purpose?
 
mr5
2:53 PM
Well in my case, that object will be the core part of the main process and let's say it's the main character
Or the other objects that will remain in the entire loop but will be instantiated only at once or twice
 
Yeah, so it's a module
 
mr5
@Meredith one more thing, if the object is meant to instantiate once, should I use:
var object = {}
or
function object() {}
?
 
There are a lot of ways to do it and they all have their benefits
 
@mr5 First is an object, second is a function...
 
I like to do something like
function(){
     return {
     };
}
 
2:58 PM
hello. can someone help me please? (stackoverflow.com/questions/26832590/…). i don't understand where i should call (and how) the popstate-event like in the correct answer of "kindasimple"
 
mr5
@SecondRikudo Ahm, I thought it could be an object because I could do this:
var newObj = new object();
or am I wrong?
 
It is an object, he was just being a jerk
 
mr5
@Meredith what that code is supposed to do?
 
What code?
The code in the link?
 
mr5
3:03 PM
:21698775
 
It's a function that returns an object
 
mr5
o.O
 
Read the link I gave you
 
mr5
Ahaa! It is called "object literal" how could I forget that.
 
You should read that whole book, btw. It'll make you an expert on what you came in here to ask
 
mr5
3:31 PM
looks like a line from LotR "You have my Sword, ...and my Bow, ...and my Axe"
I'm going to be a Wizard after I came back..muahaha
 
hello. can someone help me please? (stackoverflow.com/questions/…). i don't understand where i should call (and how) the popstate-event like in the correct answer of "kindasimple"
 
3:53 PM
what?
 
@BenjaminGruenbaum Gotta love copy-pasters
 
With all my heart
 
4:18 PM
@GabrielTomitsuka Uhhhh, that's because I haven't tried to take them on yet >:)
 
posted on February 22, 2015

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} KERPOW!

 
@Feeds document.write(unescape( Oh GAWD
 
4:35 PM
@Feeds Hahahaha that's my favourite red button so far
@Zirak @rlemon You guys have to see this one
 
 
1 hour later…
5:47 PM
@BartekBanachewicz @AaditMShah what do you think about arrows?
 
user1596138
I read through the meeting room. Not much excitement this week lol. Afa me being owner I don't care. Every time I see something that needs binned I just ask and one of you guys takes care of it ASAP. The only thing it changes for me is eventually having to "run" a meeting ;P. The prestige left a long time ago, I'm here for the content and help some of the guys give me.
 
user1596138
Probably 3 people will read that ^ hahaha
 
That's one at least.
 
That's two, but I was hoping I'd get someone to tell me what they think about arrows :P
 
user1596138
What kind of arrows?
 
5:53 PM
Arrow? It's a pretty boring TV series. Arrows? They are cool; especially in games. Requires a bow though.
 
user1596138
Yeah the TV show is kind of lame
 
user1596138
Well. I don't have an opinion on those
 
haha
What's up btw?
 
user1596138
But this room is awesome again (IMHO) like when I first got here. Jus sayin.
 
user1596138
5:56 PM
Pondering how no one has given me credit for pissing off Shog and the moderators and initiating the room's overhaul ;P
 
Glad to hear that :)
 
@BenjaminGruenbaum too lazy to read the Haskell link, are these the same arrows as clojure?
 
user1596138
No jk lmao.
 
@FlorianMargaine clojure arrows are just sugar for non-lispy notation iirc.
Haskell arrows are an abstraction over monads that allows a statement to continue with more than one statement and then resume, it's more like a fork-join than a clojure arrow.
 
@BenjaminGruenbaum He spoilered syntax highlighting
And about damn time!
 
6:01 PM
@Zirak safari has that for ages. It's about time.
Since they cloned the code base they might as well pull updates :P
 
@SomeGuy hehehe
 
I may have broken google again: try googling this expression and look at the graph
(sqrt(x^2)/x)^x
could anyone explain me why is that?
that evaluates to |x|^x
and should be defined for negative x, right?
and the y axis is all screwed up
woops, not |x|^x, sign(x)^x
 
6:28 PM
@towc Yes, in complex numbers
 
@copy ?
-1^2 = 1, -1^3 = -1...
 
-1^2.5 = -1^2 * -1^.5 = 1 * i... woops
just out of curiosity: how do you calculate n^sqrt(2)?
is it like n^(2^1/2)? Then what?
 
crl
with logarithmComplex(n) = log(p) + iΠtheta (where n = pe^(i theta))
and n ^ x = exp(x log(n))
oups, log(p) + i theta
so sign(x)^x = exp(x * log(sign(x)) = exp(x*(|sign(x)|+[0 or 1]*iPi)) = exp(x)exp(x*[0 or iPi]) imo
 
6:44 PM
Hello enveryone, hás Antire here worried before with kendo ui?, i m workbench with the kendo shceduler and i'm having a hard time discorrerias how to had a x butins to close the shceduler, does antonio knows a food explanation?
On my God!, my Keyboard corrector, sorry.
I just want to know where can i find a good explanation on how to add a x button to kendo ui scheduller.
Anyone here knows?
 
@Japa Sorry I can't help you, but just wanted to let you know that (autocorrected) sentence made me smile
 
Heheh :)
 
crl
sorry sign(x)^x = exp(x * log(sign(x)) = exp(0+x*[0 or iPi]) = 1 if sign(x)==1 or exp(i Pi x) if sign(x)==-1
Wolfram just says for x>0
 
@Zirak read your pings, and do the same in js
 
7:00 PM
@FlorianMargaine blink blink
whaaat?
 
7:26 PM
@Zirak the regex thing
@Zirak write something to translate a regex in a js object (keys being "register" etc) and vice versa
 
If my constructor has no arguments, it seems that I can create an instance in Chromium via either new Foo or new Foo(). Are both ways OK according to the standard? Is one of them preferred?
 
@WayneConrad Pick one and stick with it.
Since you'll have to use brackets if you do have arguments, always use brackets regardless.
 
Always with () is the Javascript way?
 
@WayneConrad Do whatever the project already does
Or decide for yourself if it's new.
I highly recommend that you develop with JSHint, to keep your style correct, and your code stupid-mistake free.
 
7:46 PM
@BenjaminGruenbaum Do you mean arrows in Haskell (haskell.org/arrows) or arrows in JavaScript (developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…)?
 
@BenjaminGruenbaum They're pointy.
 
I have a weird browserify isssue
for some reason its importing a different module in the same directory
 
@Zirak you get the power of regexes (entirely, it's not some dsl abstracting away.. it literally uses the regexes constructs, only in plain text), with the readability of js(on) objects
 
var CartStore = _interopRequire(require("./../stores/CartStore.js"));

var DataStore = _interopRequire(require("./../stores/DataStore.js"));

    if (CartStore === DataStore) {
      debugger;
    }
that shouldn't ever happen right ?
 
@FlorianMargaine oh, I once did something like that, basically as a stepping stone to implement a regexp engine.
 
7:54 PM
oi folks
halp here
 
> does antonio knows a food explanation?
@darkyen00 if you fucked up _interopRequire then it might happen.
_interopRequire = function () { return 1; };
 
nah i realized later
the generator i was using -_-
They did module.export = Object.assign(EventEmitter.prototype, {});
So obviously that will return the same god-damned object raging
 
Ha lol.
 
8:15 PM
@SecondRikudo I will check out JSHint. I need all the help I can get. Thanks for the recommendation!
 
ESLint is the new JSHint
 
8:33 PM
@AaditMShah haskell
 
@phenomnomnominal Don't see the benefit
 
user1596138
@KendallFrey I keep wanting to turn the diff lock on in the deep snow. I played spintires too much last night lol
 
@SecondRikudo Being able to write your own rules
 
8:42 PM
@phenomnomnominal I find that idiotic in 99% of the cases.
The whole idea of JSHint is to have an external, tested tool to enforce well known patterns to prevent mistakes
 
@SecondRikudo How big is the team you work in?
 
Adding the ability to add your own rules to it is silly.
@phenomnomnominal I fail to see how this is relevant.
 
@SecondRikudo it really is.
If your tream is 10 people you might want to enforce conventions.
 
I generally operate on a relatively small team, or solo, that's true.
 
@SecondRikudo well, if you have a hundred people working on something and you want to enforce something, being able to make something not build because it broke linting is infinitely useful
 
8:43 PM
But even on a larger team, I don't see how JSHint is not sufficient.
@BenjaminGruenbaum JSHint does that...
 
@SecondRikudo your own conventions.
 
@SecondRikudo still a lot of choices to make JSHint doesn't make for you.
 
maybe I want every single function name to start with _poo_
 
2 mins ago, by Second Rikudo
@phenomnomnominal I find that idiotic in 99% of the cases.
But I can see the potential.
Still would rather use JSHint for my personal stuff
No point in using a tool that's 3 times slower just for the features I'm likely never to use.
 
@SecondRikudo say you want to disallow for loops
 
8:46 PM
@phenomnomnominal Again, idiotic. Some things for loops do best...
But like I said, I get your point.
 
And I see yours
 
Now kiss
 
wonderful, revenge downvoting
 
sup guys
 
@SomeKittens reverted
 
8:48 PM
Thanks.
I haven't even been particularly nasty lately.
 
I hate assholes.
Meh, I get revenge downvotes from time to time.
 
They're gonna take .001 of your SO karma, oh noes
:p
and here I am with like 500 :/
you earned half that yesterday!
 
On that note, anything I can improve here: stackoverflow.com/q/28654751/1216976 ?
 
jshint doesn't enforce whitespace placements iirc
which is why I prefer jslint on teams
 
@FlorianMargaine have you tried ESLint?
 
8:53 PM
nope. jslint provides enough restrictions imho
 
00:00 - 21:0021:00 - 00:00

« first day (1590 days earlier)      last day (3358 days later) »