« first day (1318 days earlier)      last day (3635 days later) » 

12:11 AM
@HelloWorld 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.
 
12:50 AM
is event.path inside a MouseEvent a standard thing?
 
1:47 AM
@user2657794 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.
@bobo2000 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.
 
1:59 AM
@adamp 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.
 
Tim
I was deluded here by Benjamin's profile
 
2:32 AM
dat jquery badge tho
 
Tim
I admit I don't know about JS. It seems to me it is just like for web, and I haven't known much about web
 
Greetings All
 
Tim
I see you everwhere
greetings, michael
 
"The people should not be afraid of the government, it should be the other way around"
 
3:25 AM
@Tim deluded?
 
!!tell SomeKittens define deluded
 
@SomeKittens [deluded](http://en.wiktionary.org/wiki?curid=457633) Being affected by delusions.
He was deluded to think that she cared in the slightest.
 
@monners yeah, it doesn't make sense in that context
 
!!tell SomeKittens define context
 
@SomeKittens [context](http://en.wiktionary.org/wiki?curid=19482) The surroundings, circumstances, environment, background or settings that determine, specify, or clarify the meaning of an event or other occurrence.
In what context did your attack on him happen? - We had a pretty tense relationship at the time, and when he insulted me I snapped.
2012 September 7, Phil McNulty, “Moldova 0-5 England”, BBC Sport:
The display and result must be placed in the context that was it was against a side that looked every bit their Fifa world ranking of 141 - but England completed the job with efficien
 
3:26 AM
!!tell monners echo Shut the fuck up!
 
@monners Command shut does not exist. (note that /tell works on commands, it's not an echo.)
@monners Shut the fuck up!
 
Yes Ma'am
 
Tim
@SomeKittensUx2666 Did I misuse "delude"? If you see the profile of Benjamin, "click here to edit" his profile
 
3:49 AM
@Tim I'd say deceived is a better word
 
Tim
why do you think so?
 
@DanielS 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.
 
hello
 
4:04 AM
@AlexandreReisRibeiro 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.
 
quick unrelated question: which unit do Americans use to measure atmospheric pressure?
 
@zneak may I guess PSI?
 
that's more for tires I think
wikipedia says that the "inch of mercury" is still in use
 
why I'm not surprised?
 
I know right
units that make sense? what's that for?
 
4:07 AM
for science, I guess
because everyday use requires units that have their natural lower limit at -273.15
 
lol yeah
°C doesn't make a whole lot of scientific sense
 
it's tied to the boiling and melting points of water
 
yeah, but that's more "common" sense than scientific sense
scientific sense would have it based at the absolute zero
 
still better than "boiling point of CO_2" and "whatever body temperature mr. Fahrenheit had when he was establishing the scale"
 
pretty sure it's the boiling point of ammoniac
the boiling point of CO_2 is pretty low :P
it's actually inexistant, now that I think about it, since CO2 doesn't have a liquid phase
 
4:12 AM
well, I'm not even sure what boils at 0 degrees Fahrenheit :-)
 
could have been the freezing point of ammoniac then
whatever
 
> the zero point is determined by placing the thermometer in brine: he used a mixture of ice, water, and ammonium chloride, a salt, at a 1÷1÷1 ratio.
 
is anyone here familiar with web workers?
 
@PatrickRoberts I love spiders
 
haha, but seriously I'm having a difficulty finding any sources on a particular problem
 
4:14 AM
MDN documents them pretty well
 
How do you transfer an instance of an object with a specific prototype? Or even an Array of them?
 
I don't think you can.
it would allow race conditions
 
I've read about transferrable objects. You can, I just don't understand how.
 
You can only pass around strings. Say, JSON.
!!google transferrable objects web workers mdn
 
4:17 AM
so only ArrayBuffers?
 
seems so
 
okay, is there a decent way to reconstruct an object fairly efficiently?
JSON.parse is not something I want to deal with for this.
 
according to MDN, you can send objects cloneable with "the structured clone algorithm"
 
let me update my lib and I'll show you what I'm talking about
 
plain objects should work fine (I guess), but if you try that with classy objects, I guess the class itself will get cloned.
> The prototype chain does not get walked and duplicated.
so, stick to plain objects
 
4:22 AM
you could just pass an object with a constructor property?
also, why do you not want to use JSON.parse?
 
I'm using web workers to increase efficiency from setImmediate shim
wait what is the command?
$ git push ____ master
what is that usually?
 
origin?
 
thank you!
github.com/patrickroberts/Javascript-Complex-Math-Library I want to transfer instances of these
fractal-gen.herokuapp.com here's the current program for context of efficiency it has now
guys?
 
Hey how many people use Firebug with Firefox?
 
4:35 AM
I use chrome so not me
 
For some reason, the internal Firefox Console works (but firebug, doesn't pick up console.log ... is anyone else experiencing this?)
 
Chrome here
 
okay so I can transfer instances of Complex and the just set the _proto_ on the other side?
 
@PatrickRoberts __proto__ is non-standard
 
Oh so what would be better than that then?
 
4:39 AM
use plain objects
 
... but how do I convert them back?
 
keep them so
 
I don't think you're understanding what I'm trying to do.
web worker makes instances of Complex --> transfers plain objects to main thread --> main thread needs to convert objects back to instances of Complex
Well, I'm gonna go ahead and make this a question.
 
5:02 AM
@laidbackengineer 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.
 
@PatrickRoberts pass json with a property set that says what the object is an instanceof
then in the Worker convert that json back into whatever that property says it should be
just add some sort of utility constructor
 
stackoverflow.com/questions/23863048/… answer it here and I'll give you points. Suggested syntax would be very heplful.
 
5:26 AM
@Sun 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.
 
5:39 AM
link to miaou again?
 
6:01 AM
After spending over an hour trying to configure a local instance of apache I'm giving up and downloading MAMP
 
6:12 AM
this my code
how i get "selectedtv" class index... i got index with h1 tag also. i need inly div index only
 
vs7
6:31 AM
I want to perform some event on Select change using JavaScript ... For click event I used :

fixthisprivacy.addEventListener("click", privacy_policy_fixit1, false);

so can we use this ?

fixthisprivacy.addEventListener("change", privacy_policy_fixit1, false);
 
@FlorianMargaine oh, right, thx
 
@t1wc @FlorianMargaine
 
@kathir yes?
 
pastie.org/9216093
here how i get index only for div tag
div. dtset
 
7:10 AM
magic sauce.
 
magic sauce with ponies.
 
@t1wc The best is to come directly to the JS room : dystroy.org/miaou/8?Javascript
And hello to everybody, I'm trying to get used to not being in vacation again...
 
@dystroy Welcome back :)
 
@dystroy like you're not in vacation when you're "working" :P
 
@FlorianMargaine Well... not exactly... I don't brag too much about that but when I work I spend half my time shared between java and writing shiny specs...
 
7:13 AM
@dystroy in latex?
I write my specs in latex.
my company provides a latex template with pretty colors et al
 
@JeffKang 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.
 
@FlorianMargaine I'm more leather personnally
(and markdown because I'm lazy, and also xmind)
 
@KevinPaulKalis 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.
 
@dystroy oh, you write your specs in markdown?
 
@FlorianMargaine often, yes. Because I like plain text
 
7:22 AM
nice
what kind of format do you generate? using which tools?
@dystroy ^
 
hi @all
 
7:45 AM
@dystroy
 
7:56 AM
someone just talked to me about forms generated from xml
 
@FlorianMargaine Yeah, you'd love Java then.
 
@SecondRikudo totally.
I started a java project last time, to try it out
I gave up after writing 500 lines of boilerplate code
 
0
Q: How to call Q promise notify within the promise chain

Mond WanI need helps on notify() within the promise chain. I have 3 promise base functions connect(), send(cmd), disconnect(). Now I would like to write another function to wrap those call in following manner with progress notification. function bombard() { return connect() .then(function () { v...

 
@t1wc I see a red rectangle.
 
8:07 AM
@bjb568 press arrow keys
there is a glitch that doesn't make any blocks render until you move
 
Oh, things!
 
@bjb568 it's something...
 
@t1wc What's the point?
 
And too slow, freezes.
 
@bjb568 I'm concerned about that
 
8:08 AM
Or is there one at all?
 
and it's more than anything rendering
it takes 45 ms to render and 3 to do the logics
 
@t1wc Seems to work better in Chrome, but still laggy.
 
@SecondRikudo what do you mean?
@bjb568 yeah, it has the best canvas support
 
@t1wc Does the game has a point? Or is it still too early in development for it to have any?
 
@SecondRikudo read the thing at the beginning
version 0.0.1
 
8:10 AM
Yeah, I figured :)
 
remember how minecraft at the really early beginnings didn't have a point atall?
well, not that now it has one..
but I guess that's the stage I'm at: when there was only cobblestone and grass blocks
at least mine is somewhat interactive
the only solution I can think of for the rendering issue is not using canvas's 2d context
but maybe webGL, which writes directly on the GPU, which usually just sits there doing nothing
 
@t1wc Why implement this in canvas though?
Sounds a bit inefficient (not that I'm a big expert on graphical js...
 
but I gave up after trying to create a triangle in webGL
 
lol
Aren't there libraries that abstract the webGL from you?
 
Vanilla webGL is better.
 
8:14 AM
@SecondRikudo it's supposed to be the fastest and most efficient way of doing graphics in js
 
And it is.
 
@SecondRikudo you probably mean THREEjs
which takes a shitload of time for the user to load
 
@t1wc I don't know, I'm a PHP guy. I only use JavaScript for DOM and XHR mostly.
I know my fair share of OOP, but I very rarely do graphics.
 
@SecondRikudo pfh... PHPers... ;)
 
@t1wc I will smash you with a meteor. You know I would.
 
8:17 AM
I'm a JS guy. I mainly use JS for maths, physics and geometry homework :P
 
@t1wc Geometry homework? Phew, I thot I was the crazy for using a node command line instead of a calculator…
 
@bjb568 analitic geometry only...
 
Yeah.
 
@t1wc Still, how does that work?
Have an example?
 
8:20 AM
@SecondRikudo like you have to do calculations, and you calculate them
 
Like:
$ node
> 1+1
2
 
@t1wc I do those in my head, or a calculator. How does JavaScript help you with that?
 
It's easier.
Order of operations.
 
@bjb568 yeah, that I can understand
But how does it help with analytic geometry specifically?
 
@SecondRikudo I'm much faster to type than to use the calculator
and has a set of prebuilt functions like for loops and functions themselves
so, if I have to repeat the same process for multiple things I just use some functions and I'm done
and good luck calculating the fifth root of something on a calculator
 
8:23 AM
Meh, I'd rather not to rely on computers too much because you won't have any in the exam
 
also working with integers with more than 8 digits
 
@t1wc Easy, x^1/5
 
You can use jsfiddle for visualizing statistics like making divs 1px longer every coin flip.
 
@t1wc If you have more than 8 digits it's usually a sign you're doing something wrong, or not using the correct units.
 
@SecondRikudo most calculators (at least where I live) have only x^2 and x^3
 
8:24 AM
@t1wc And also a general x^y
 
@SecondRikudo not at all, not where I live
@SecondRikudo not where I live :P
 
This is the one I'm using ^
If you are using anything less than that, you are using the wrong calculator.
 
^ Try doing that with a calculator.
 
8:26 AM
Besides, even my phone calculator can do x^y...
 
@SecondRikudo in italy's shops I've only found them with the gray part, with sqrt (2 and 3) and n^(2 and 3)
cos and sin
 
I remember my old t3
Each button had like a secondary that you could use only after hitting another button and a third that you could use only after hitting yet another button
 
Challenge: Only with JavaScript, given a function like this: f = function(x) { return 2 * Math.pow(x, 2) + 3*x + 4 } plot the function's graph
Feasible? :P
 
@SecondRikudo Sure, why not?
Use canvas and draw a bunch of lines
 
@Neil Not really a bunch of lines, a single curved line
And sometimes it isn't a single curved line
f = function(x) { return 1/x; }
 
8:32 AM
@SecondRikudo function f(x) is more used
and looks more like maths
 
@SecondRikudo Well you didn't say acccurately
 
@FlorianMargaine really depends, I'm a little random on that. Sometimes I simply use an online converter to html, sometimes I use a node module to make a pdf.
 
@t1wc Agreed
 
To plot a function accurately is impossible
There are too many ways to write a function.. it'd be like confronting the halting problem
However, you could probably manage a good many cases
 
@Neil Every polynomial has exactly one way of writing it./
 
8:36 AM
@SecondRikudo You're not limited to write polynomials
You can infer what the graph will do purely from the function results, you'd have to also analyze the code
 
@dystroy you might like pandoc
 
@FlorianMargaine I've seen it. I might test it more.
 
 
it's written in haskell, can only be good
 
8:37 AM
@bjb568 That's actually not bad :D
 
@Second Bah! Humbug! My HP28C still works.
 
9:00 AM
@user3563994 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.
 
Hi, i have a problem, I don't know how to use xhr , it returns undefined
 
vs7
hey, I'm using a JS compress tool (http://jscompress.com/) but the problem i face is it changes the function name so it create an issue with my script ...

So please me something else compressor
 
var req = new XMLHttpRequest();
req.open('GET','somewheresvill.com/file.ext',true);
req.send();
req.onreadystatechange = function() {
    if (this.readyState === 4) {
         alert(this.responseText)
    }
}
 
can you explain me what responseText returns?
 
@phoenixinobi 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.
 
9:04 AM
@user3563994 The text responded from the server.
 
ok thx
 
@vs7 Are you using Visual Studio?
 
vs7
no
NetBeans
@phoenixinobi
 
@vs7 Have you tried a LESS plug-in for netbeans? Usually LESS plug-ins have tools to minify JS files.
 
function(xhr, status, msg){
alert(xhr.responseText);
}
xhr is empty
 
9:18 AM
@user3563994 The onreadystatechange function doesn't accept arguments.
!!tell user3563994 mdn onreadystatechange
 
vs7
@phoenixinobi Yes I used it for JS Minify
but it also renaming function name
 
vs7
@phoenixinobi because in some statment i have used "<span onclick=ppnextclickfn1(1)>Next</span>" but unfortunately in this element it remain same but actual "ppnextclickfn1" function is renamed to t() sooo that creates problem for me
 
@Alpesh 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.
 
9:33 AM
I should have definitely improved my rendering system - said the mad programmer
well, now it is really working well, let me fix a few bugs and you'll be able to see how smooth is became on the web (testing it on local machine)
apparently I was always drawing images on non integer pixels
and that was a big deal apparently
 
Anyone know how I can diff the current buffer to the original file in vim ?
using diffthis
and without copy pasting stuff
 
@FlorianMargaine Thanks Florian, but I want the diff to be displayed by vimdiff, not the bash diff stuff
Hence my remark on diffthis
it's a vim command to diff the current buffer to an other file using vimdiff, but i can't make it work for the current file
Which is, really the only use case I can see for :diffthis, for every other case I would probably just use the vimdiff command, so I'm sure i'm missing something here
 
@WillemD'haeseleer sorry, can't you help, vim is closed nowadays :/
 
9:48 AM
@AbhishekHingnikar Hi. How are you ?
 
@AbhishekHingnikar hi!
 
vs7
hi

<span data_post=1>Next</span>

How i can get data_post value using javascript

I have used this

ppnextclicnkfnevent= document.querySelector("#ppnext span");
pp_link_pos = ppnextclicnkfnevent.data_post;

but it return "undefined"
 
how does this make sense?
!!> (3, 2, 1)
 
@t1wc 1
 
@dystroy am cool, how about u ?
 
9:50 AM
@AbhishekHingnikar I feel a little shitty as somebody explained me he could rewrite the whole of miaou client side including video, games, markdown, authentication, private rooms, search, histogram, notification, floating window, wikification, image upload, answering, loading of old messages, internal links, external profile, votes, and message edition in 200 lines of vanilla JS. But other than that I'm fine.
 
add this to your vimrc
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
	 	\ | wincmd p | diffthis
then you can use :DiffOrig
 
@dystroy How long would those lines be, though?
 
@dystroy you shouldn't feel shitty :)
 
vs7
@dystroy thanks its working
 
@Kippie I'm unsure. Today Miaou.min.js is 4 lines
 
9:55 AM
Anyone here...?
 
unsure of that too...
 
I am getting "an ActiveX control on this page might be unsafe to interact with other parts of the page" error when I load my page. can anyone pls help me
 
@dystroy sounds like bullshit
 
@phenomnomnominal You think so ? He seems pretty convinced...
 
bullshit, my keyword to awake
 
9:58 AM
@dystroy less then 200 lines... my they must be a genius.
i have been programming loads of ML and AI :D
and writing exams :-[
 

« first day (1318 days earlier)      last day (3635 days later) »