« first day (958 days earlier)      last day (4215 days later) » 

14:00
Hi Everybody
@StashX 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.
@rlemon is that greater than the pain of writing an amazing answer and getting no rep for it? ;-)
why no meta?
scratching my head for like 20 minutes now
don't mind the fact that the code is horrible :P it's hacked together ofc.
looks quite OK to me. What's the problem?
should be metaballs.
14:08
@Alnitak hey long time no see :)
can a custom knockout binding edit details of another custom binding?
arg I hate jsfiddle
Dude, (hopefully) you're leaking memory like a madman
the find works like shit
@dystroy hey, there's someone older than you here
14:09
16.2mb used in the beginning
@rlemon I can't help it but read meatballs...
@FlorianMargaine And he's still alive ? Who ?
@Zirak me?
Yes, you
But did you take into account the fact I'm trying to install a Rails application, which makes me age very fast ?
14:10
Dev tools, timeline, profile it.
Ohh probably
I re used a lot of old crap code
@dystroy @Alnitak :P
@dystroy ah, didn't.
Oh, I had already looked at his profile.
@rlemon I'm going to write a c# OpenGraph parser so SO won't have an excuse to not include ThinkGeek
14:15
@Zirak <3
	if( data[i+3] < 210 ) {
		data[i+3] /= 6;
		if( data[i+3] > 210 / 4 ) {
			data[i+3] = 0;
		}
	}
Actually...doesn't Amazon use OG? no they don't
arg formatting is so jacked
@FlorianMargaine sorry - was AFK - yeah, been around on and off
you assigned it to p, and the actual val was never being updated
14:16
@Loktar :(
I tried to make my life easier and shot myself in the foot
data[i+3] < 210 ? data[i+3] /=6, data[i+3] > 210 / 4 ? data[i+3] = 0 : data[i+3] : data[i+3];
@rlemon c'est la vie
Why are you using a one-sided ternary and not a && ?
@FlorianMargaine were you talking my age?
m59
m59
Does anyone know how to do this in js? (the numbers after x are exponents)
y = -9E-06x4 + 0.0022x3 - 0.2073x2 + 8.9144x - 70.634
14:18
@Alnitak I was. dystroy is 2 years younger than you.
ninja'd afterwards
@m59 Math.pow()
!!/tell m59 mdn math.pow
m59
m59
not the exponents, only lol.
14:18
What's "this"?
m59
m59
The whole thing. There's an E in there?
!!/tell Zirak mdn this
Describe it in more than one word
@m59 the e is legal in JS numeric syntax
14:19
y = Math.pow(-9e-06, 4) + ....
Yeah, nEm means n*Math.pow(10, m)
y = -9e-6 * Math.pow(x, 4) + 0.0022 * Math.pow(x, 3) ...
Note that when the exponent is 2 or 3, it's faster to use * than pow
@m59 Thanks Descriptio. What's the difficulty? Writing the exponent?
@rlemon it's a quartic equation - I think the left hand side of the Math.pow is another variable x, not the multiplying constant
14:20
@Alnitak I think x indicates ^
hmm, maybe
or maybe they're not, and the OP doesn't know how to write a superscript
no, @Alnitak is probably right, look at the end : + 8.9144x
yea
didn't read it all
How about asking OP to actually tell us the problem?
@m59 hint hint
@Zirak that's cheating
m59
m59
14:22
lol I REALLY don't know.
@Zirak actually I think it's clear enough
assume all of the things!
0
Q: JavaScript playing different audio files based on video keyframe

Kristian Vitozevthe general idea of function below is to load a different sound file depending on current time position of the video. I have the following information about audio files: var samples: [ ['00:00:05', 'audio/1.mp3'], ['00:01:00', 'audio/2.mp3'] ] The first element contains the end time for speci...

@m59 Then how do you expect to solve it?
I already wrote the answer up there somewhere
m59
m59
14:22
I'm just trying to figure out right now if little e and big E are the same.
@Loktar ok, so now why is the metaballs so fucked up looking :P haha
That's the question? Yes, they are the same
@m59 yes, they are
lol idk, I was wondering that too
!!> 6e3 == 6E3
m59
m59
14:23
Ah well that explain why google didn't help :)
@dystroy true
m59
m59
The big question is how to get an odd series of numbers to match
!!> 'e' == 'E'
m59
m59
someone said plot it in Excel
@JanDvorak false
14:23
...what does that mean?
m59
m59
which didn't work very precisely.
@Loktar grrrr :P
what series?
your code makes it look so simple!
m59
m59
12.5 | 32.25 | 50 | 68.75 | 87.5
12.5 | 64.5 | 78 | 84 | 87.5

@Zirak @JanDvorak
14:25
@rlemon who are you talking to?
WHAT'S YOUR FUCKING QUESTION
m59
m59
Given a row 1 number, how to get row 2
@Alnitak me :?
@m59 dictionary
m59
m59
?
14:27
"Given a row 1 number, how to get row 2" use a dictionary
{50: 78, 12.5: 12.5, 32.25: 64.5, 68.75: 84, 87.5: 87.5}
ok, well re-write the entire thing again and see if I can't spot my mistake
:? this is frustrating
@Zirak gotta put the keys in strings
@m59 {"12.5":12.5, ...}[input]
m59
m59
@Zirak that's not the point at all.... what if row 1 were 14?
14:28
"gotta put the keys in string" nehnehneh
lol dude idk.. your balls are crazy looking
Then your question is stupid
I cant figure out why they are being weird though
m59
m59
why?
!!> ({50:50}[50])
14:28
..
Because you've given us nothing
@JanDvorak "SyntaxError: invalid label"
m59
m59
Well...I'm trying..
@JanDvorak 50
14:29
Your question was "given an array of A, map them to an array of B".
m59
m59
No, given these input/result sets, how can I calculate others.
It's got something to do with curve fitting / interpolation
...and what do these result set mean? Where do they come from? Is there a rule?
m59
m59
I need the rule, yes.
:/
so you want us to figure out the pattern, then produce a formula to continue the set?
What is this from/for?
m59
m59
14:31
It's complicated.
I'm sure
m59
m59
I could actually manually figure out every single number and result
if I wanted to spend the next few months doing it.
whatevs, I got balls to play with :?
m59
m59
and then store it all in an object, lol.
any fans of $.deferred() here?
14:32
@Alnitak kinda
I like it, but I've never used it
see if you can get your head around this, then:
3
A: Return an object from a function that has nested ajax calls

AlnitakYes, you should use deferred objects. The simplest approach here is to create an array into which you can store the jqXHR result of your inner $.getJSON() calls. var def = []; for (var i = 0; ...) { def[i] = $.getJSON(...).done(function(videoDetails) { ... // extract and store in yo...

m59
m59
I tried to follow the answer
It doesn't seem like any of those trend lines will line up just right to my data...so that crazy equation is probably slightly wrong.
Then comment on the answer
And yeah, your data does not fit on a nice curve
@m59 have you tried a quadratic curve?
m59
m59
@JanDvorak not sure how to do that
14:35
composing deferred methods is very funky. I've used it a little before, but this is the longest demo I've put together
m59
m59
the closest one was polynomial with order set to 4 (no idea what any of that means)
@m59 that means the highest power of "x" is 4
That means that polynomial is probably not a good solution
an order-4 polynomial can fit any five points
Given a set of N points with distinct x-coordinates, there is always a polynomial of order N-1 that will fit the data.
m59
m59
What I know for sure about these numbers is that the closer you are to 87.5 the result increases at an exponentially smaller rate.
14:37
@KendallFrey That's...not true
@Zirak Where did I screw up?
oh, also, I gave a talk at jQuery UK back in April that you folks might like:
How about the points (1, 2) ; (1, 3) ?
try x + a*b^(x-87.5) for some a,b
14:38
@Zirak better?
ok, how about the points where if the x is odd, y = -1, and if x is even, y = 1?
@Zirak which x-coordinates?
once you freeze any four x-coordinates, there is always a biquadratic that fits
@Zirak Sure, that works.
x is in N
How would you write that polynomial?
@SomnathKharat 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.
14:40
Which one?
The one to plot what I just described
Given a set of N points
You gave a set of Infinity points
@Zirak if you have infinitely many points, you need to allow an infinite-degree polynomial
I'm not buying it, but I don't have the time or will power to argue
hence, an arbitrary analytic function
(I'm sure I didn't get the word right, but it's a nice result by itself)
14:42
I hate fancybox.
@FlorianMargaine as a user, or as a coder
both.
nah
just as a coder.
it doesn't do what I want to do
yet the other, doing it exactly the same way, works as intended.
is there an event for when a <select> is clicked but no <option> is selected yet?
... err I guess that would be 'clicked' right?
@TheSnooker try click
yeah gonna try
14:49
Does anyone know a way to allow scripts to call window.open without user interaction? My Selenium test is stuck because Firefox silently fails to open a popup on a scripted click.
Wouldn't that destroy the point of disallowing popups?
These should work once you user-approve-all the popups from that site
@RobW Hurray for failed popups! You're doing the Lord's work. Don't change a thing.
I don't even get a warning about a blocked popup
I want to automate the login to Spotify for my Selenium test (nothing shady, I want automated integration tests for my extension to save time)
@ShalinJirawla 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.
14:50
And Spotify uses Facebook login
I have a web application which has a file dialog to upload Image . Now when I run the app on Ipad Safari , the file dialog is disabled
Does any one know how to enable the file dialog for IOS , or how to open gallery of IOS
?
HUZZAH!
I used jquery to trigger the file dialog , but still no luck in IOS
@Loktar horrible memory leak / performance issues now jsfiddle.net/rlemon/3mwKq/5
but it's coming along
14:54
nice!
LOL
Nov 7 '12 at 14:58, by Zirak
Also, the fuck I was banned for saying "vagina"?
@Zirak You were banned for saying "vagina" ?
Yeah. Because of rlemon, IIRC.
@Loktar now to figure out why it choaks and dies after like 5 seconds
@Zirak wait what?
Sounds like something @rlemon would do ^_^
I wasn't even around when you said that
14:55
lol
I yelled out "MY MOTHER'S VAGINA", it got starred, and someone later said "Barrack Obama won", which got starred
someone starred it and it got flags from the star wall
So the chat transcript went:
Barrack Obama won!
MY MOTHER'S VAGINA
It got screencapped, and posted in the c# room
14:56
ohh, I may have yelled he won
I was pretty excited to not have Romney there
And got flagged from people there
Message got removed. The bastards.
The flagging system is a joke
I'm yet to deal with a useful flag
Nov 7 '12 at 4:24, by rlemon
Obama Wins!
found the pic
Nov 7 '12 at 13:39, by rlemon
no one noticed it so I have to point it out
@rlemon Given all the hype in this past election, I was a little disappointed to see Romney gracefully admit defeat
I sort of imagined him to pull out a bazooka behind his speech stand and declare civil war against Obama
@rlemon Gimme a ThinkGeek page
Product page, that is
eh, got one. Slowpoke.
15:03
lol
HtmlAgilityPack has such horrid documentation. The non-existant kind.
@zirak There's worse than no documentation : the pretentiously over confident one : phusionpassenger.com/download/#open_source
Step 4 : contemplate the many errors
Step 5 : spend 3 hours with apt-get and makefiles to install rails dependencies and apache modules
Step 6 : trash Apache and use nginx instead
hrm, why isn't this working:
this.emitters.push(Object.extend(emitter, {scene: this}));

// later trying to access scene from the emitter
cannot access tmp of undefined
15:24
@dystroy I would take pretentiously over-confident documentation any day of the week
hi ppl! good morning
@RommelCastro 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 did this months ago!:
CPU Core Estimation with JavaScript: http://blog.wg.oftn.org/post/51125082905/core-estimator
@Neil Did you look at it ? When you see the animation and you're looking at pages of errors you want to slap them...
You try figuring out how to query for data from couchdb knowing full and well that one of the parameters for said method is an obligatory javascript function which is supposed to do something related to filtering data and you have no idea how it works
15:26
i have a problem with a module, this is my code
oojs = (function(oojs) {
// methods and properties
return oojs;
})(oojs || {});
but chrome returns an error Uncaught ReferenceError: oojs is not defined
@dystroy Well, I would argue that that falls under lack of documentation
i suppose that on (oojs || {}), when the oojs return false will return a new object
@Loktar yea, i'm going to have to ditch the complicated scene object
it's raping the performance, and idk why
weird, I wonder why
Incidentally, if you haven't guessed already, I had that wonderful problem today
15:27
well everything is attached to everything.
so the objects get rather large, and have to be passed around a shit load
I can understand providing parameters which are hard to understand and optional. I cannot tolerate hard to understand parameters which are also obligatory for the proper usage of said method especially if I could easily think of a default value that would easily work just as well
the more and more I think about it the more I am beginning to understand how my initial approach to writing js games was flawed.
I realize the cost of searching up the scope chain is minute, however I cannot think of anything else that would cause this
Obligatory: better than being pissed on
thanks everybody! hahaha
15:32
@phenomnomnominal eh, I don't see how a resolution of +- 2 cores is accurate enough when we're dealing with systems ranging from 1-16 cores.
@phenomnomnominal Tweet them back
"You lazy shitbags, I did this months ago"
I can tweet them if you want
Nah I just did haha
My god! readability.com is just fucking awesome!
@phenomnomnominal what is your twitter
I have you on mine no?
@phenomnominal, Wellington, New Zealand
Wha?
294 tweets, 28 followers, following 141 users
15:34
@OctavianDamiean See, I knew you would like it!
@rlemon your not @rlemon :(
@rlemon +-2 is about as good as you can get, cause it completely depends on what the rest of your computer is doing
@phenomnomnominal his says I have 6 core, yours says 3, I have 4.
so +1 you
@mikedidthis was taken.
i'm thegreatrupert
@mikedidthis add add add!
@Dagon 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.
15:36
@rlemon done!
4/5 tests yours shows 4 cores correctly.
Yeah I just got 8, 8, 7, 8, 8 on mine
and 4, 4, 4, 4, 4, on theirs
how many you got?
8
well it's interesting
I have a quad core, but that means I can run 8 webworkers
So I wonder what they're actually testing for
Maybe they're testing for optimal number of concurrent webworkers for the given point in time
I got 8 cores on theirs
15:42
yeah thats what I do, because it's what you actually want
quick, review their code and make sure they didn't just rip you off :P
haha it's pretty different
And I don't think I put a license on mine anyway
looks like they are just doing an estimate based on time and past results.
Doesn't really work on my dual-core iPhone with both Safari and Chrome - actually the estimation got stuck running.
Haha they're going to have the same problem I did
Each time they run their tests, they double the amount of cores
But if you only have a 1 core phone, and you try doing 2 tests and then 4 tests, it goes soooooo slow its unusable
yea I ran two of theirs at the same time, both returning 3 consistently.
yours gives me 3/4
15:47
And you have a dual-core?
Ill need to test at home
I've got an 8core
:( all my pc's are 4 cores
wonder if your nexus 7 will utilize all 16 cores?
15:48
nexus 7 only has 4 iirc
doesn't it hand off a lot to the gpu
Yours is giving me ~5/6, which makes sense, I'm running quite a shitload
12 core gpu
^ this is all based on what they were talking about in Google I/O '12
ah yeah, would be interesting to check
too bad I cant bring any devices to work :?
yea that sucks.
15:50
posted on May 31, 2013

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) {} Almost time to launch the new gamebook. WOOP!

show up with a sundial watch?
lol no watch
oh yeah, top secret government job.
psh its the whole building though
its retarded
15:50
oh nice man!
Im going to get that for my sons BDay
He was saying he want a sundial the other day
I've got 2 quadcores
I was looking at a sundial watch as well, can't find it now
But damn that is some tight security
Its lame
15:52
@Loktar or get him this
imo its because they are just too incompetent to really take care of proper security
depending on his interest for having it
hmm Ill have to consider them. Ill ask Cat when I get home.
man I've never seen this stuff on there
and I check TG often
I just bought the lego mug the other day
she'll say the pendant, you should get the watch to match him
you can go for 'nature hikes' together.
bond and shit
lol
15:54
When you say "nature hikes", you make it sound very very ominous
Could you pass me some leaves, this bonding experience is great!
"I will teach him how to make a fire and raid villages"
lol
haha wow
goooooood evening, today i feel the right spirit
yeah that watch is HUGE man
way too big for Jacob
15:55
thinkgeek.com/product/e6be @Zirak This seems to me to be something you would like
"We will pillage their treasury, murder their men and rape their wives! ...no offense, honey"
hahaha
Thats how we roll. I have them training by playing minecraft, team fortress 2, and Animal Crossing
!!/google animal crossing
@JanDvorak pretty addictive game, on the Gamecube, and 3DS
m59
m59
15:57
MC is getting horses soon.
@Loktar did I ever show you this: thinkgeek.com/product/ef56/?srp=30
a new vs is coming out late rin June for the 3DS
I wish I had kids, so I wouldn't look like a tool playing with these toys
yeah @rlemon lol I saw that in a ping. Ive seen that before and considered getting that
haha dude I buy so many toys now
"for them"
The small 12 year old Jason inside of me is like Wow you are so goddamned cool!
gf and I are going to a retro toy store opening ~2 hours from home
15:58
sweet!
she wanted to go to look for hug-a-bunches (dolls she has collected since a child)
haha I remember those
I've been buying way too much lego.
What happened to legos?
15:59
@phenomnomnominal same here..
you see my garage sale haul?
was like 2 weeks ago
they used to be simple. Now you have all of these complicated sets and small parts.
They got awesome
Nah I didn't?
Star Wars legos and Harry Potter legos
I know you know what i'm talking about
@rlemon, yeah which is awesome!

« first day (958 days earlier)      last day (4215 days later) »