« first day (1410 days earlier)      last day (3555 days later) » 

5:01 PM
As you can see here jsfiddle.net/2HxCH/2 the two carousels do not move independently of one another as intended. I've spend all day trying to work out how to "re-use" the function for multiple carousels, so that they will run individually as intended, but nothing seems to work. Any ideas?
 
@nderscore h_pp_ b_rt_d__ !!!
 
@JakeMcApe There's a number of issues here. One is that you'll need to find a way to associate the panners with the things that they pan. One way would be using ids. (E.g. "data-pan-target='id'")
 
@BenjaminGruenbaum Winner!
 
@JakeMcApe Another might be to structure your DOM in such a way that the panner can find the "pannee" by navigating the DOM tree, which would avoid the need for ids.
 
@SomeKittensUx2666 yay! :)
 
@Retsam I've been trying to work a solution on how to associate the panners with target, but since I'm not able to position the panners within the parent, I've come up short.
 
@SecondRikudo aww, you got me all excited
 
@SomeKittensUx2666 you could try to reach out SE to have a partnership with Runnable and run all kinds of code, no?
 
@Retsam Didn't notice your edit. That seems like a reasonable fix. Don't know why I didn't think of that earlier!
 
5:10 PM
@FlorianMargaine Doing that right now
 
@BenjaminGruenbaum lunch tomorrow?
 
@SomeKittensUx2666 Same here
I was just like, "Wow, Skittles must have managed something potentially incredible"
 
@SecondRikudo @BenjaminGruenbaum you guys are eating lunch together every 2 days or so?
the birth of a beautiful lo.. friendship?
 
@FlorianMargaine About weekly
We're pretty far away from each other, so one of us has to take the bus
So we don't eat together that often
 
I think I have plans for tomorrow, Thursday might be good.
I can ask @Mosho if it works for him
 
5:12 PM
That's awesome, though
 
@BenjaminGruenbaum Thursday I'm heading north relatively early
So can't :(
Next week it is then
 
So sometime next week
 
I'd learn so much if I got to eat lunch with some of you guys weekly
 
@SomeGuy Come to Israel
 
@SecondRikudo I don't like spending that much on lunch :P
 
5:13 PM
@SomeGuy :D
 
@SomeGuy they only speak about missiles anyway, you wouldn't learn much
 
@FlorianMargaine Actually Benjamin usually tries to show me how Swift crashes every 20 seconds, but it never crashes while I'm there.
 
^ Spotify : Windows Phone 8
 
@SecondRikudo hahaha
 
5:16 PM
@FlorianMargaine So I told him he should hire me to just stand there and look at him code, and that would ensure no crashes.
 
@Retsam It seems impossible to position the panners within the parent object (that way I could target the active carousel using closest children), even though that would be the most semantic solution. Any ideas?
 
spotify iPhone ^
 
@SecondRikudo hehe
 
^ Why on earth is windows version piece of crap ?
 
> As someone with far too many points in the JavaScript tag, this is **fantastic** news. Newbs will be able to give faster feedback, answers can now be *even clearer* and "Can you make a JSFiddle" is banished to the far corners of the internet.

However, there are many, *many* more languages, all of which could benefit from some Runnable code. I work at [Runnable](http://runnable.com) where we have endeavoured to use Docker to enable coders of all ages to run any code in the browser, not just JavaScript. We'd love to work with you guys to embed Runnable examples of any language into ques
too spammy?
 
5:18 PM
@JakeMcApe @Retsam jsfiddle.net/rlemon/2HxCH/3
 
@SomeKittensUx2666 I'd say it's good enough
 
> This post was sponsored by Runnable
 
@SomeKittensUx2666 I have to say, it did trigger my SPAM SPAM SPAM reflex
 
@SomeGuy Yeah, that's what I'm worried about.
 
(The spam spam spam reflex is the one where I sing the spam spam spam spam spam spam song)
 
5:20 PM
oooooor that
 
@rlemon Goddamn genius! Hats off to you my good sir!
 
@JakeMcApe I just hacked your code into it
it could be cleaned up quite a bit
but it is a starting point
 
Video demos vs demos animated by CSS 3 ? // latter works on iPad but lags
 
@rtlemon Interesting approach! It almost works exactly as I intended. Thanks alot for your feedback :)
 
@JakeMcApe it doesn't HAVE to be in a 'plugin', you could just $('#container1, #container2').each(function() {
 // and do it all in here
});
I was mostly having fun with naming the plugin sexyScroller
 
5:26 PM
0
A: Feedback requested: Runnable code snippets in questions and answers

SomeKittens Ux2666As someone with far too many points in the JavaScript tag, this is fantastic news. Newbs will be able to give faster feedback, answers can now be even clearer and "Can you make a JSFiddle" is banished to the far corners of the internet. However, there are many, many more languages, all of which...

 
Hey guys, I have an array of elements and I want to set them to be children of another element. What's the best way to do it?
 
@rlemon I actually prefer the plugin structure (and love the name!!), since it makes adding new carousels a piece of cake. Also this way the call can be placed in the footer, while keeping the "plugin" itself hidden in a .js file.
 
@FaridNouriNeshat do they have to be stored in an array?
could you use a documentFragment?
you can't directly append an array of elements to the DOM, you have to append them one by one
 
@FaridNouriNeshat if you're using jQuery, just append them at once.
 
but if they are stored in a documentFragment you can append the documentFragment all at once
 
5:29 PM
so, I have to learn python for my raspberry pi apparently
 
I was hoping, to avoid appending one by one...
 
Woah stack snippets sounds awesome!
 
@FaridNouriNeshat again, why are they in the array?
just to collect them all for appending?
 
and took me 1 full minute to realize why in that language 10/100 is 0
 
5:30 PM
@rlemon I'm keeping the name :D
 
var df = document.createDocumentFragment();
for( ... ) {
  var elm = document.createElement('div');
  elm.textContent = 'foo';
  df.appendChild(elm);
}
element.appendChild(df); // appends them all at once
@FaridNouriNeshat ^^
 
I was hoping there's a way to push them all to the DOM in one operation
because there's many of them
about 500...
 
read the code above.
 
jQuery uses documentFragments behind the scenes
 
I'm telling you how.
 
5:32 PM
Yeah, thanks
 
there is the docs on documentFragments
 
trippy @Shmiddty
 
You have exhausted the plan GB quota of 15 GB as on 26-Aug on your airtel DSL ID xxxxxxxxxxxxxxxx
Speed has now been revised to 512 Kbps for the remaining 21 days of your bill cycle uptil 17-Sep. Your speed will be back to 2 Mbps on 17-Sep.
dear lord i download insane amount of data .x_x.
translate fr: hakuna matata
 
user1596138
@AbhishekHingnikar lol terrible speed has been dropped to a joke
 
user1596138
5:39 PM
Is that on your phone or desktop?
 
for my whole house.
 
user1596138
Oh lol. Dude you barely use anything at all
 
user1596138
I could do 15gb in a day easy
 
0
A: Stack Snippets Sandbox - Try It Out Here!

rlemonWebcam??? var canvas = document.createElement('canvas'), context = canvas.getContext('2d'), video = document.createElement('video'), output = document.getElementById('ascii-output'), invert = document.getElementById('invert'), frag = document.createDocumentFragment(), height, width, idat...

boo webcam doesn't work
 
@Jhawins 15 gb of data is huge
 
5:41 PM
@rlemon Nope
 
i want to find where all this usage is coming from x-x
 
hey so remember we were talking about custom jQuery builds?
maybe it was @SterlingArcher and I
anyway looks like its been supported since 2.0+
 
CPG Grey is awesome
 
@rlemon I'm seeing a script error.
 
It's lovely how codecademy spends the first 2 hours of it's python course teaching you how to set variables to strings 0.o
 
5:47 PM
exact same code
maybe i'm just including it wrong?
 
1
Q: How to flatten this Promise chain? Angularjs $q

user2857125I have the following code: someService.fnReturnsPromise() .then(function () { return someService.fnReturnsAnotherPromise(someArg); }) .then(function (resultsOfSecondFn) { // do stuff with results }); However, resultsOfSecondFn isn't actually the results, it's th...

 
@Bergi congratz for the 100k!
 

« first day (1410 days earlier)      last day (3555 days later) »