« first day (1193 days earlier)      last day (3755 days later) » 

4:00 PM
how can it recreate it?
 
user1596138
Guys, Cicada3301 is right. Accept it. //lol
 
@nderscore Fair enough
 
you are just repeating BS / saying stuff you have no idea about
 
@BartekBanachewicz that too :-(
 
@AbhishekHingnikar dude... I'm used to that
 
4:00 PM
@Jhawins Done!
 
Don't make me drop javascript man
 
@Cicada3301 You are correct.
 
@Jhawins -_-
 
!!learn endDebate "@Cicada3301 you are correct"
 
@AbhishekHingnikar Command enddebate learned
 
4:00 PM
@AbhishekHingnikar Just ce <- elemById "canvas"
 
!!enddebate
 
@AbhishekHingnikar @Cicada3301 you are correct
 
wow cool.
might come in handy
 
user1596138
He knows all kinds of things and he is right about all of them. He even knows calculus and algebra to the max.
 
4:01 PM
@AbhishekHingnikar "enddebate"
 
:D
the most handy bot command is
!!bewbz
 
I should say 'I quit' at this point, right?
 
@AbhishekHingnikar That didn't make much sense. Maybe you meant: bewbz
@KirstyHarris you're needed!
 
@Cicada3301 it's 1.1[0011]...B-3
 
user1596138
Haha. And @BadgerGirl. The only users who qualify for /bewbz
 
4:02 PM
@BartekBanachewicz never heard of that type of notation...
 
!!I can haz bewbz?
 
@Oleg But of course
 
1.1[3]?
 
@Cicada3301 it's fairly obvious, I guess.
 
@BartekBanachewicz what does [] do?
 
4:04 PM
@Cicada3301 repeat that infinitely
 
!!> 1.1[3]
 
@KendallFrey "undefined"
 
like... periodic?
 
yeah, not JS
 
@Cicada3301 yep.
 
4:07 PM
@BartekBanachewicz k... and then, how do you end up with a sum of an inrecreatable number (0.3) by adding a periodic number to a normal float?
 
@Cicada3301 they are all normal floats
sigh
 
@BartekBanachewicz not in binary
 
@Cicada3301 wrong.
they are fucking binary floats.
 
then I'm confused
 
@Cicada3301 then read the wiki article about floating point binary numbers
 
4:08 PM
!!should i host on github and compute on heroku or aws ftw or azure
 
@AbhishekHingnikar aws ftw
 
!!enddebate
 
@Cicada3301 @Cicada3301 you are correct
 
@BartekBanachewicz see how handy it is ?
 
4:18 PM
@SomeGuy I've been saying that since the beginning
 
@SomeGuy that was awesome... (the vid)
and can someone frigging tell me what does okok mean?
 
@rlemon Probably is
 
user1596138
@AbhishekHingnikar you're the one with the image thing you're writing right?
 
user1596138
Seems a bit like placebeard.it
 
Jan 14 at 23:26, by rlemon
I thought he was okok
 
user1596138
4:20 PM
@rlemon Can we /mute just in case? :P
 
@Jhawins its definitely not that
by fucking far
thats css::columns
i have my own column creation man
i render the grid with multiple sizes ... what you see there is a vertical grid
you hurt my emotions :'( meany
 
@Cicada3301 how do computers store numbers?
 
@Jhawins hehe - it is a very useful tool when it isn't annoying the fuck out of you
 
@Cicada3301 Wait, simpler question, what is 0.1? What does it represent?
 
4:25 PM
@BenjaminGruenbaum very tiny abacus
 
@BenjaminGruenbaum by what means? it rapresents a number...
 
@Cicada3301 protip: install US English dictionary to your browser - then USE SPELLCHECK
 
@Cicada3301 what does adding 0.1 and 0.2 mean? Like, I know that 1 + 2 is 3 but how did you figure 0.1 + 0.2 is actually 0.3?
 
@BenjaminGruenbaum it means 0.30000000000000004 which also means floating point math fucking sucks
 
@rlemon not at all :P
 
4:27 PM
that is your opinion :P
 
user1596138
@AbhishekHingnikar I just meant... Boxes.. Grid... place holder images..
 
it sucks when it sucks, it is useful when it is useful. In my life it has sucked more than it has been useful.
 
@BenjaminGruenbaum becouse I was trained to do that calculation in that way and noone explained me why?
as in any calculation?
 
@rlemon I'd like to see you using fixed point math in graphical calculations
 
inb4 axiomatic construction of the numbers again
 
4:28 PM
@BartekBanachewicz but I only do those for fun :P
 
@Cicada3301 let's agree on some stuff, 1 is a number, so far so good?
 
@BenjaminGruenbaum yes
 
We just accept, as an axiom (something we assume and not prove) that 1 is a number
 
user1596138
@BenjaminGruenbaum Interesting point. But you're just trolling him. The way he's doing it, 0.1 + 0.2 is 0.3.
 
I was being sarcastic - but also pointing out how silly some things can be
 
4:29 PM
Ooh, number theory. Interesting.
 
Now, for every number, we want a successor number. That is the "next" number.
Let's call this function suc and what it does is takes a number and returns its unique successor.
 
!!s/suc/succ/
 
@BartekBanachewicz Let's call this function succ and what it does is takes a number and returns its unique successor. (source)
 
that function names sucks.
 
user1596138
And no, I will now entertain any number theory BS. 0.1 + 0.1 is 0.2, 0.1 + (0.1 * 0.1) is something entirely different and does not apply.
 
4:30 PM
@rlemon we were talking about that before, that's one of the points everyone was angry at me about
 
@Cicada3301 So, our numbers are now 1, suc(1), suc(suc(1)) , suc(suc(suc(1)))
 
user1596138
Nicely done though.
 
@BenjaminGruenbaum yes
 
@Cicada3301 how would we represent 5 in our system with just 1 and suc?
 
@Cicada3301 but understanding how floating point numbers / math works is important. Listen to @BenjaminGruenbaum he has a masters in this shit.
 
4:30 PM
Not a master's, yet :P
 
user1596138
!!> 5 === 5
 
@Jhawins true
 
!!s/has a/working on his/
 
@rlemon @Cicada3301 but understanding how floating point numbers / math works is important. Listen to @BenjaminGruenbaum he working on his masters in this shit. (source)
 
user1596138
Yup, numbers are numbers. Just as I thought.
 
4:31 PM
@BenjaminGruenbaum suc(suc(suc(suc(suc(1)))))
 
@Cicada3301 good, that's how we represent 5. Now, writing suc all the time is boring, so we want to represent the basic operations, let's start with addition.
 
when working with IE I sometimes like to make sure math still works. if( 2+2 !== 4 ) { alert('Math is not working. Please un-plug and plug it back in!'); }
 
@BenjaminGruenbaum I already heard this... where everything is tecnically doing stuff with 1, right?
 
@Cicada3301 write a function that takes two numbers and adds them to each other using only 1 and suc, you may not use loops. This isn't very easy so feel free to ask for hints.
 
can we pattern match? :D
 
4:33 PM
You may also use a prev number that just says "the number whose suc is this number and we have one since suc is unique.
 
Hi everybody just a quick queston, I can't remember how to prevent click queue to build up on a animation... (I animate slide on next click, but if user click twice I don't want it to queued them)
 
function add(x,y){ return x+y; // no using `+`, no loops, just suc, prev and 1 if you need it}
 
@Benjamin I think you need a notion of isOne, no?
 
[lbl] loop:
...// codez
goto loop;
can I use goto?
 
Nope. :D
 
4:34 PM
that's a loop
 
@BartekBanachewicz you can do ===, yes.
 
Whenever I come across people who really hate me and my work it takes every ounce of energy to try and ignore them and move on. So hard.
^^ Yep, some take it too far.
 
@BartekBanachewicz shhhh, it is hiding!
 
@SomeKittensUx2666 retweet his jquery comment to him with "someone once told me" :)
 
I get a lot of flak for making people hungry
 
4:35 PM
@BenjaminGruenbaum which one?
 
user1596138
Are you just trying to get him to say suc a lot? Because just so you know, he's 13.
 
recursion allowed?
 
@Cicada3301 of course :)
 
oh then! this is simple
 
Feb 19 '13 at 16:12, by John Resig
bad uses of JavaScript existed long before jQuery ever came out - jQuery being popular doesn't stop bad devs from existing, the only thing that stops bad devs is good education, which is why I've written two books and am working at Khan Academy
 
4:36 PM
There isn't a new what-if yet! AHAGHAHHARHRHRH
 
@BenjaminGruenbaum On it :p
 
@FlorianMargaine You were looking for my "Don't Be a Dick" gist last week?
 
add(succ(succ(1)),succ(succ(succ(1))))
7
 
@RyanKinal Yeah, I found it for him :p
 
@SomeGuy Ah, cool
 
4:38 PM
as stupid of a project, I still think it is fun
 
sucks because no lazy eval though
 
@jeresig I think you said it best: http://chat.stackoverflow.com/transcript/message/7806531#7806531
 
@SomeKittensUx2666 +1
 
4:39 PM
I wonder if I can get him to support my supaFunctions github.com/rlemon/jQuery-supa-methods
 
I wonder if he'll come back here.
 
@BartekBanachewicz didn't realize you were participating in this little game :P
 
@Jhawins hmm
 
I'm actually playing guitar now
paused for a sec to solve that
 
m59
John Resig in js room! Nice!
 
4:39 PM
@SomeKittensUx2666 I'm thinking "no". But maybe.
 
i got that
 
@BartekBanachewicz you go write the same thing, only for real numbers :)
 
but i also use webrtc and canvas and let them snap photos like instagram :P
 
Ana Tudor would make an Excellent addition to the JS room
 
@BenjaminGruenbaum real numbers?
 
4:40 PM
@BartekBanachewicz given an epsilon accuracy, calculate the sum of two real numbers. A real number is represented as a sequence of rational ones that converges to its value fwiw.
 
@RyanKinal yeah, there was already a bazillion people fawning over him.
 
@rlemon and "visionmedia"
 
so would Hakim El Hattab
 
@SomeKittensUx2666 Pretty much
 
TJ Holowaychuck? He favorited one of my tweets once.
 
4:41 PM
yea TJ does some pretty cool shit
 
Hes cool .
@rlemon last but not the least
we can have brandon eich :D :D
 
.@tjholowaychuk looks a lot different than I thought. http://t.co/e89ORw4C7h
 
that'd be kick friken ass :D
 
nahh
 
what is wrong @BenjaminGruenbaum

function suc(n){n++};
var c=0;
function add(a, b){
	if(c!==b){
		suc(c);
		suc(a);
		add(a, b)
	}
	return a
}
add(2, 3)
 
4:42 PM
he'd be all like "why the fuck do you guys use this language? you know I wrote this POS in two weeks right?"
 
@SomeKittensUx2666 lol, that's awesome
 
I want to get the RocketU people to have a field trip to Mozilla.
 
@rlemon xD
oh then @Linus would be fun too
 
@Cicada3301 suc returns a value, it doesn't change anything. JavaScript is pass by value for primitive (value) types. You can't change a number like that in a function.
 
but sadly they are too high
 
4:43 PM
@rlemon Yeah, he would
 
@BenjaminGruenbaum facepalm
 
we might be able to get @simurai though
 
Hakim actually came down to India recently
 
Hakim has been in the room a handful of times
 
I was this close to having a chance at meeting him :p
 
4:43 PM
@AbhishekHingnikar I talk to him all the time on esdiscuss, he is actually very reachable. Seriously, if you have anything smart to say yo him just send him an email he'll reply.
 
@BenjaminGruenbaum Isn't JS pass-by-value for everything?
 
even then:
function suc(n){return n++};
var c=0;
function add(a, b){
	if(c!==b){
		suc(c);
		suc(a);
		add(a, b)
	}
	return a
}
add(2, 3)
 
user1596138
Hahahahaha
 
!!>function suc(n){return n++};
var c=0;
function add(a, b){
if(c!==b){
suc(c);
suc(a);
add(a, b)
}
return a
}
add(2, 3)
 
@Cicada3301 "undefined"
 
user1596138
4:44 PM
He doesn't get it XD
 
@Cicada3301 n++ still changes the variable and returns the last result. you need to return n+1 for example.
 
@BenjaminGruenbaum wow
 
@Jhawins cocky, are we?
 
Hey guys what if Richard Stallman comes to this chat.
 
doublefacepalm
 
user1596138
4:44 PM
He's not even modifying values. Just returning them to nothing ha.
 
Jeff Bridges would excite me more
 
He would keep ranting about how this chat has backdoors to nsa xD
 
as you said return I already thought what the rest of your message would be
 
> The star list really ties the room together.. man.
3
 
@AbhishekHingnikar I like him. He is somewhat an extremist but he is an actual idealist.
@AbhishekHingnikar most smart people are also passionate about what they do.
 
4:45 PM
!!>function suc(n){return n+1};
var c=0;
function add(a, b){
if(c!==b){
suc(c);
suc(a);
add(a, b)
}
return a
}
add(2, 3)
 
@Cicada3301 "undefined"
 
user1596138
!!> function add1(arg) { arg + 1; return arg; } add1(5)
 
@Jhawins 5
 
function suc(n){return n+1};
var c=0;
function add(a, b){
	if(c!==b){
		suc(c);
		suc(a);
		add(a, b)
	}
	return a
}
add(2, 3)
 
user1596138
Understand now?
 
4:46 PM
@Cicada3301 what the hell is c
 
@Cicada3301 don't spam the room, consider trying first until it works. When you return something you don't change it, you need to assign the return value to something - consider reading on how returning values works.
 
user1596138
0 for some reason.
 
@BenjaminGruenbaum very true
they love there work like i love p***. maybe i should do a p*** site !
 
@BenjaminGruenbaum really really tired... sorry
 
or make a new room called "The suc-y room"
 
user1596138
4:46 PM
Good excuse :)
 
that grid engine + porn = :D awesome ! lol
 
@AbhishekHingnikar can you still edit that I love porn message?
 
@rlemon Who's Jeff Bridges?
 
:O
THE DUDE MAN!
 
The actor? :p
 
4:47 PM
 
@AbhishekHingnikar why did you censor it lol, uncensor it we're not 12
 
@BenjaminGruenbaum you wanted me to edit it.
 
user1596138
4:48 PM
@BenjaminGruenbaum Some people are 13 tho
 
No, I just wanted to do this :P
!!learn AbhishekPornFreak "<> chat.stackoverflow.com/transcript/message/…;
 
@BenjaminGruenbaum Command abhishekpornfreak learned
 
@AbhishekHingnikar When someone says p***, everyone thinks penis. You just made it worse
 
user1596138
Hahahahaha ^
 
!!AbhishekPornFreak
 
The Big Lebowski is one of my all time favorite movies
 
I strive to be as laid-back as The Dude.
 
Oh shit !
 
Also, it's 'their' not 'there' :D
 
Hahahaha
 
4:49 PM
ah.
 
user1596138
!!s/'***'/enis/
 
@Jhawins Could not process input. Error: invalid quantifier on line 4
 
@Jhawins REGEXP
fuck :-/
 
@Jhawins *s have meaning in regex. need to escape them.
 
4:49 PM
They mean "zero or more"
 
user1596138
Oh yeah
 
@AbhishekHingnikar so, why would you want to start a porn site anyway?
 
@BenjaminGruenbaum I was just kidding bro.
 
\*{3}\
 
user1596138
I thought the s function was made to escape everything automagically... Which doesn't make any sense :D
 
4:50 PM
though that would teach me how to scale well
 
!!tell Jhawins google sed
 
cause you know a decent one gets loads of hits ;-) // still kidding
 
*Main> let five = Succ(Succ(Succ(Succ(One))))
*Main> let three = Succ(Succ(One))
*Main> add five three
Succ (Succ (Succ (Succ (Succ (Succ (Succ One))))))
 
ps my app is DONE :D
we will we will launch snapick.me from my college on 24 @ Microsoft Event :D
 
4:51 PM
s is for substitution.
 
user1596138
@BenjaminGruenbaum Please stop either drinking, or being a cocky face.
 
@BartekBanachewicz i am reading it as suck suck suck suck one
 
@Jhawins sorry for pointing you in the right direction :P
 
@BenjaminGruenbaum
function suc(n){return n+1};
var c=0;
function add(a, b){
	if(c!==b){
		c=suc(c);
		a=suc(a);
		add(a, b)
	}
	console.log(a)
}
add(2, 3)
 
user1596138
You know I know that. The first day I came to this room you (@Benjamin) did that to me. :P
 
user1596138
4:52 PM
Which was helpful.
 
@Cicada3301 console.log(add(2, 3)) doesn't reutrn 5
Doesn't return 5 either.
 
user1596138
@Cicada3301 Hey you learned one of the most basic things about JS!
 
I'm using nodeJs to send a script to be execute :

response.setHeader('Content-Type', 'application/javascript');
response.end("alert('')");

But it says Resource interpreted as Document but transferred with MIME type application/javascript: "http://127.0.2.1:1337/?type=script".

What am I missing?
 
user1596138
I'm sorry. It's just he's been giving us lip for days and it turns out he doesn't even know how to assign a value?
 
@BenjaminGruenbaum it does... it returns also some other crap... no idea why
 
user1596138
4:53 PM
Be mad at me for being rude, but that's pretty fuckin funny.
 
@Cicada3301 your console.log
@Jhawins he never said he was an expert :P
 
9 mins ago, by Bartek Banachewicz
@Cicada3301 what the hell is c
 
user1596138
He did say he wrote certain scripts that would not be possible to write without knowing how to assign a value.
 
user1596138
I don't think very much is possible without knowing that. Aside from BSing anyway.
 
-2
Q: variable outside of function is undefined

luketheterriblehttp://jsfiddle.net/luketheterrible/BMedV/ I am writing a quiz where the user has to select from two options by clicking on the div on the left or the div on the right. $('#answers').on('click', 'div', function(event) { event.preventDefault(); var input = ""; function userAnswer...

 
4:56 PM
!!welcome Zirak
 
@Zirak 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.
 
:P
 
function suc(n){return n+1};
var c=0;var d=0;
function add(a, b){
	if(c!==b){
		c=suc(c);
		d=suc(a);
		add(d, b)
	}
	return d
}
console.log(add(2, 3))
 
Also, I'm late. Bye.
 
it now works just fine
 
4:58 PM
Oh hai @Zirak
 
He's gone :/
 
in qtip is there a way to make it so you can mouse over the box it creates?
 

« first day (1193 days earlier)      last day (3755 days later) »