« first day (1595 days earlier)      last day (3346 days later) » 

12:01 AM
Ok, nevermind
 
12:13 AM
@SecondRikudo you here?
 
@BenjaminGruenbaum Yeah
 
@SecondRikudo I just sort of spoke for you (not really, but still) - let me know if that's ok
@copy most things are uninteresting for a large audience :P
 
@BenjaminGruenbaum TL;DR, can you summarize? (It is 2:20AM...)
 
@SecondRikudo io.js and node might merge at which point iojs-he moves to node-he but with the same contribution model
 
@BenjaminGruenbaum I may have misread the doc, but how would the merge support new V8?
I didn't see anything in there
 
12:20 AM
@SomeKittens basically it'd mean force pushing io.js on top of node :D
io.js is just 2-3 months ahead in commits by now
 
Ah, so Node will finally catch up.
 
Hopefully
 
@BenjaminGruenbaum LGTM
Have you seen Hitler getting mad about io.js? :D
!!youtube hitler iojs
 
@SecondRikudo He posted it a few days ago
 
12:28 AM
I always forget who posts stuff
Forgive me :P
Alright, 2:30 is pretty much my limit
Night all.
 
night
 
1:00 AM
Can someone help with this? stackoverflow.com/questions/28731874/…
how to filter rows based on value
 
guys, how can i see website JS errors on my mobile device? phone/tablet
 
if you're using the chrome browser I think there is a way to hook it up so that the chrome console appears on your pc
 
1:23 AM
Brilliant
I'll take two
 
I'll take two boobs
and two tacos
 
can anyone help me to limit the movement of this cube
 
can i limit it to up and down left and right only
?
no diagonal angle
 
@rlemon I tried pasting some of our PM's messages into there
turns out our pms don't spew that much bullshit :S
 
1:42 AM
@rlemon Beautiful.
 
1:52 AM
the agile unicorn funded an uber immersive beta below the fold.
lol cool
 
beautiful
@FlorianMargaine i.imgur.com/qr6sQdI.jpg hehe
 
I want to translate the move of the cube neither left or right when someone touches or move it diagonally
you can check the working file: jsfiddle.net/7Lg87gzu/4
 
!!afk gnight
 
0
Q: Limit the movement of the cube

winresh24How to limit the movement of this cube to just up and down, left and right? I want to remove the diagonal movement. When someone touches or move it diagonally I want it to move neither left or right defends where do they touch. you can check the working file: http://jsfiddle.net/7Lg87gzu/4/ Her...

 
2:35 AM
Does anyone know why the console is logging undefined?
 
Because Float64Array can only contain floats, not Float64Array
 
derp
you're right
 
please help :(
 
How can I make a multidimensional typed array?
That was a really silly oversight on my part :P
 
Use a single flat array that contains all rows
 
2:41 AM
Ah
ok
 
3:03 AM
any way to see the javascript errors (console) on a mobile android?
 
if:
666 = 22
697 = 35.5
672 = 25
what would I need the left hand side to be for the right hand side to be 18
note: those values are rough.
+- 3 for the left hand
670 = 24.4
newest value
tl;dr I have a 355 thermocouple and a cheap chinese temp sensor taped together
I'm measuring this on my arduino
and i'm drunk
math !== good times
 
booze!
 
lol
sorry I may have a problem
 
get a booze vaper
 
3:16 AM
but i'm convinced it is not that I drink too much, but that you all drink too little
@SomeKittens hehe
I wish
if X1 = 700 and Y1 = 35.5 and X2 = 665 and Y2 = 23.5 then if Y3 = 18 what would X3 be?
that is my real question
 
Use Newton's method
 
5 mins ago, by rlemon
and i'm drunk
 
No wait, what was it called
 
i'm trying to do engineering while drunk
need halp
 
!!youtube drunk science
 
user4330208
You chaps taught me everything I know.
 
In statistics, polynomial regression is a form of linear regression in which the relationship between the independent variable x and the dependent variable y is modelled as an nth degree polynomial. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted E(y | x), and has been used to describe nonlinear phenomena such as the growth rate of tissues, the distribution of carbon isotopes in lake sediments, and the progression of disease epidemics. Although polynomial regression fits a nonlinear model to the data, as a statistical...
 
user4330208
I now devote myself to SO now and forever. Knight me please. Knight me now.
 
3 mins ago, by rlemon
5 mins ago, by rlemon
and i'm drunk
I'm trying !!!
:P
i'm not a mod
 
@carb0nshel1 Spam more and you'll be kicked
 
3:24 AM
Turns out I'm sober!
 
i'm a room owner. copy has as much power as I have
 
user4330208
...dam
 
so does kittens
 
help me :(
 
@copy you play with Arduinos yes?
 
3:25 AM
gif from SomeKittens was moved
 
@rlemon Nope
 
damn
 
2 messages moved to Trash
 
user4330208
!!google troll
 
user4330208
"A troll is a supernatural being in Norse mythology and Scandinavian folklore."
 
!!google God
 
It's common sense that a troll is somebody who lives under a bridge... or is it?
 
@NewbieLearner 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.
 
3:43 AM
 
user4330208
But. But what set off the big bang!
 
4:05 AM
Smart people of room 17, help!!
How the heck do you use these API calls? simperium.com/docs/reference/http
 
 
1 hour later…
5:10 AM
this bugged me for a while: should I put a semicolon after a return statement?
In many code editors it doesn't correct you if you do it or if you don't do it
 
I do
 
and you're not going to be able to run anything after a return from the same block, so I can't test if it would brake the code
 
I think JSHint will bug you
 
@SomeKittens let me check
it does
but is there a reason to put it or not to put it?
> to put it or not to put it, that's the problem
 
your intent is clearer
 
5:14 AM
> "Use of "addOnloadHook" is deprecated. Use jQuery instead."
wait what?
 
@CSᵠ uhh....
just punch the sentence to death?
 
0
Q: HTTP API call refuses to accept a data field

DemCodeLinesI am trying to build a Simplenote client for Windows using JavaScript (WinJS) and using the HTTP Simperium API to connect. However, I am encountering a simple problem connecting. From what I've found over the internet and with my prior understanding, I think I am not passing the data in the corre...

 
5:27 AM
I may have accidentally just made something beautiful
10
also, just got an email saying that jack rugile is following me on codepen. It made my day before it even started (6:30 am)
 
user4330208
5:45 AM
Justin Bieber used to follow me on Instagram.
 
lol @carb0nshel1
ossm @towc <3 +++
 
Who is considered a software writer? If I use javascript, am I a software writer? Or is "software" more towards assembly language, C, lower level
 
@pearlescentcrescent 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.
 
 
user4330208
@pearlescentcrescent technically javascript is software but in every day language software refers to non-browser based technologies.
 
5:55 AM
javascript is no longer only web
 
user4330208
windows 8
 
what about php?
 
technically it's mature enough to be able to output decent software
php, same terms there
 
user4330208
I think software really depends on the scope of the app.
 
what about the term "engineer", does that mean you received the degree in whatever engineering field or is it the application of engineering
 
5:56 AM
@carb0nshel1 huh?
 
user4330208
@CSᵠ FFS Man I am trying to sound smart for the first time and you screwed it all up. Thanks alot buddy. Thanks alot.
 
you're most welcome
aaaand I'm not your buddy, pal!
 
user4330208
I'm not your pal, Amigo!
 
i'm not your amigo, friend!
 
is the general chat pretty much dead all the time? I'd like to talk to liked minded people but not directly about coding like specifically about employment
 
5:58 AM
@CSᵠ <6?
 
@pearlescentcrescent yup, sometimes, most of the time, umm, yeah
 
XD
 
@towc 6?
 
user4330208
And I'm not your friend, Mate
 
3+++
nvm
 
5:59 AM
anyway, awesome pen dude
 
thanks!
 
user4330208
@towc those few lines of code really do all of that?
 
user4330208
no plugins or anything?
 
@carb0nshel1 and a bit of thought maths and design, yes. This is vanilla
 
user4330208
dude, you should fix Halo MCC then
 
6:01 AM
2011 latest :(
 
user4330208
@towc seriously though I bookmarked that codepen man. I'm going to tear it apart to learn more cause I seriously have no clue where you even began
 
user4330208
I look at your code with the same face as that of a man staring down the barrel of a gun
 
@carb0nshel1 start here: natureofcode.com/book/chapter-8-fractals //cc @towc
 
user4330208
I'm bookmarking that page too
 
user4330208
I'm a bookmarnster
 
6:07 AM
you even use your bookmarks?
 
user4330208
not really.
 
@CSᵠ could be interesting
@CSᵠ awww
 
well.. i tried
 
@carb0nshel1 start from the Particle constructor. It really is simple
 
@towc i used to follow those since like the '90s
always liked how much heat they packed in so little code
 
6:09 AM
@CSᵠ actually the only thing I drew were lines... and why is that "cc" there?
didn't write any of that
 
means, carbon copy, like... i meant to notify you also about that
@towc you like making nice things, maybe a fractal could inspire you :)
 
user4330208
Oh. So you not as smart as I once thought?
 
user4330208
LEt Down
 
oh! I thought it was the creative commons thing, and I was really confused
@carb0nshel1 I'm probably the dumbest regular in this room: go look at what other guys here have made if you want to see awesomeness
http://codepen.io/rlemon/ <- rlemon
http://codepen.io/loktar00/ <- loktar
they all make awesome stuff
or check out my other pens
http://codepen.io/MateiGCopot/
@carb0nshel1 the 3 guys above write very well polished code. I usually just go where my hands take me, so start looking at their pens first and try to understand them. They shouldn't be too hard to break down
 
@towc still beautiful, regardless of code simplicity
 
6:24 AM
@CSᵠ how haven't I heard of those before?? This is porn for programmers!
 
ohh well.. have you have a computer science source? high-school / university?
 
@CSᵠ no...
 
^ got your answer
between the junk they sometimes teach some interesting concepts
 
but I should have read about it on reddit or someone should have mentioned it here...
 
< - avatar :)
^^^ someone pin that compat table pls
 
6:27 AM
well, need to go to where-they-dont-know-how-to-use-pcs-so-they-wont-teach-me-computer-science...
 
@towc what does that mean?
 
@adeneo
That was my bad.
I have updated it now.
 
@RahulDesai - no problem, that's why I posted the comment, so you could change it ;)
 
Thanks man.
@adeneo But I thought that logically it should return a boolean since the function names is .has(), as per software engineering and proper naming conventions.
What it returns is not intuitive enough.
 
You'd think so, but it doesn't, it's so it can be chained
$('div').has('p').css('color', 'red');
makes all divs that contain a p have a red color
however jQuery.fn.is() does return a boolean
 
6:43 AM
Ah, that makes sense now.
 
And it's in sync with
$('div:has(p)').css(...
 
I see.
 
How do I attach multiple functions to one event? .on({'click':functionA,'click':functionB}) doesn't work.
 
@Charly How about calling one function after the other?
 
the first function calls the other?
 
6:49 AM
I mean, write another function that calls these 2 functions in that order.
 
yeah maybe that'll work
 
It will.
 
thank you!
 
NP.
@adeneo I have updated my answer. Can you please remove the downvote, if it was you?
 
Not my downvote, I actually upvoted after you edited it
 
7:02 AM
Ah, thanks man.
 
7:29 AM
Uglify makes my system go out of memory
 
@darkyen00 downloadmoreram.com you need this bro
 
@CSᵠ its a server
 
@rlemon hahaha
 
 
1 hour later…
8:41 AM
jsfiddle.net/revzephyr/94yyyLhz   Hi can someone kindly tell me how would I define the "keyword" and "element"?
 
Can I show off?
 
sure
 
cool
 
btw, github provided that template.. I just created that plugin :P
 
8:44 AM
@Mr_Green nice :)
 
ohh nice
thanks florian :)
 
Not that one, sorry.
Just checked.
 
hehe np
 
Mr. Green do you happened to be able to help me?
 
@Maki I will try
what is the issue?
 
8:52 AM
jsfiddle.net/revzephyr/94yyyLhz how would I define the "keyword" and "element"?
thank mr.green
 
@Maki Sorry I didn't get you
 
hmm
how can i get the highlight_words function to work with the input#search-criteria
 
@Maki it needs more logic. which will consume my office time
go with some plugin
like chosen?
 
9:12 AM
oh... not allowed to use plugins (tears)
thanks. I will asked someone else and test it myself too
 
 
1 hour later…
10:40 AM
@room ping me with api services you expect / want from a payment gate-way
pin that for me dear room owner sir.
 
SY.
I'm iterating (jquery each) through a set of dom objects, where each object has data attributes. Some of the data attributes were updated or added through .attr, some of them were changed or added by .data, others still were written in the html, they may have also been changed in other ways if that is possible. My question is: how do I get a complete and up-to-date list of data attributes attached to the objects.
 
@SY. 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.
 
Should I use document.createElement always or use it once then later clone the variable?
which will be best if I consider performance?
 
11:06 AM
HI all
 
@Mano 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.
 
$(document).ready(function(){

$(".uname").change(function(){
var mail = $(this).val();



if(mail.length >= 3){
$(".status").html("<img src='img/loading.gif'><font color=gray> Checking availability...</font>");
$.ajax({
type: "POST",
url: "usercheck",
data: "uname="+ mail,
success: function(msg){

$(".status").ajaxComplete(function(event, request, settings){

$(".status").html(msg);

});
}
});
}
else{

$(".status").html("<font color=red>Username should be <b>3</b> character long.</font>");
}

});
 
hi
 
@rekhas 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.
 
I need a help in MagicSuggest plugin for multiselect textbox
hi
 
11:14 AM
any idea pls
 
Is there any advantage using Date.now() over new Date().getTime() other than the nice syntax?
@Mano You didn't even ask a question.
1 message moved to Trash can
@Mano Re-posting an unformatted code snippet is not equivalent to asking a question.
 
@RoelvanUden if you are doing tons of operations per second
it won't initialize
new Date() every time.
 
@darkyen00 Wow, really? Date.now() is worse under heavy amount of ops?
 
should't be though
it should simply just return the EPOCH that too as an int ! but then we all know js is the most confusing language ever
 
Indeed. Hm, I'll go with the new Date().getTime() then. Thanks @darkyen00 :-)
 
11:20 AM
@RoelvanUden What i said means new Date().getTime() will be theoritically slower.
 
i dont know the question format @RoelvanUden
 
@darkyen00 Performance doesn't matter either way, I'll just go with whatever. :P
 
@RoelvanUden my soul feels bad
creating and killing an object
instantaneously
if its happening 60fps you are doing a mutiny bro !
 
what's the best way of finding if a string has only digits?
 
Hi All
 
11:24 AM
@Mano Well.. if I paste a random snippet of code and ping you with it, you won't know what I am intending to do with it or know what I am stuck on or have a problem with, right? Or are you an esper? Perhaps you should just ask about the problem before pasting code? ;-)
 
1
Q: how to use modal pop up in angularjs-ui bootstrap

INDIAWALEI'm using angularjs. What i want to do is when user click button , angularjs will checking item id in database. If item id exist in database, #modal will be showed instead of alert like this question. Is it possible to do this with angularjs? If possible how.. HTML <div id="container" ng-a...

 
@CSᵠ /^[0-9]+$/.test(str)
 
anyone aware of Google Map Autocomplete location?
 
how about Number(str)==str ?
 
Location in autocomplete textbox?
 
11:26 AM
@CSᵠ Number('1e2') is valid which does have smth that is not a digit.
 
@CSᵠ if you want to know if a string has only digits use /^[0-9]+$/.test(str) as @RoelvanUden said. But maybe that's not really what you want to know
 
i get id's so it's an option
also 1*str==str
 
@dystroy what about doing parseInt(str) === str ?
 
i mean integers
=== wil fail
 
uh, scratch that, I'm an idiot
 
11:28 AM
Anyone in here using Babel?
 
Those strings don't have just digits : "Infinity", "3 ", "-4", "3.01"
 
@dystroy for integers only i'd go with math/bitwise
 
@Sebastian On experiments, yesh.
 
Looking to get some feedback on github.com/babel/babel-eslint
7
 
!!>'3667'|0
 
11:29 AM
@CSᵠ 3667
 
Allow you to lint your Babel ES6/ES7/JSX/Flow/Playground code in eslint
 
@Sebastian Oh, that is extremely cool! @BenjaminGruenbaum check that out :-D
 
Awesome :)
 
I'll play with this for sure :-)
 
Yeah @Sebastian literally everyone in this room is using Babel
 
11:30 AM
@dystroy in my specific case i'm sure i get integers up to 1000
 
@Sebastian I pinned it
 
@BenjaminGruenbaum Most of the regulars at least :P
 
@dystroy I have no idea what that means
@BenjaminGruenbaum Rad!
 
Damn, I'm not in "literally everyone"...
 
es6 compat is.. umm ->>>>>
 
11:31 AM
@Sebastian It means it'll stay on the right here for a time (I'm assuming you'll stay long enough or come back, because people don't do tasks when asked to)
 
@RoelvanUden using JQery i am checking the user existence in Database .The Jquery perfectly returns the output but i want to stop submitting the form in jsp when "user already exists" in the database . This piece of code that writes the status of the user existence in the jsp is below
 
@dystroy Ah cool, thanks!
 
<span class="status"></span>
 
Currently working on : Fat Finger fix for mobile browsers
 
Hello.
Is it ok to use a for loop in a describe() statement with Jasmine?
 
11:38 AM
 
For example check numbers 1 to 10 whether they are prime numbers
 
any suggestions are welcome
 
I don't get why uglify.js changes a;if(b) to if(a,b) there :
1
A: Is Uglifier breaking my js?

dystroya, b in this context, is an expression whose value is the value of b (see the comma operator). That's why the uglified test if(null!=h&&h.close(),$(t.target).hasClass("crud_create")) is the same as null!=h && h.close(); if ($(t.target).hasClass("crud_create")) which is equivalent, due t...

It's the same number of characters, so what's the point ?
 
11:58 AM
Hey guys, which book would you recommend for writing unit tests in Jasmine?
How about general unit testing?
not connected with some language
 
I just realized how dumb .gifv is
People make gifs of entire youtube videos, upload them to imgur, which converts them to webm to save bandwidth. And reddit loves it.
 
yeah
 
So we go full video -> gif (huge file size, low color depth, low framerate, no sound) -> back to the same video format, hosted elsewhere.
 

« first day (1595 days earlier)      last day (3346 days later) »