« first day (1489 days earlier)      last day (3452 days later) » 

2:01 PM
isn't there something like Flash IDE that you can make animations and add effects to objects etc. and it converts it to JS
 
As far I know, Canvas drawing is faster than d3 svg drawing. And webGl is faster than both. But I can't really decide now after viewing GSAP
 
instead of writing many more things in code?
 
@copy see you in 15
 
Look at the elements in the inspector
GSAP manipulates the DOM elements style attribute
d3 and webGL both use Canvas element
 
@rlemon how can I get that color scheme?
 
2:02 PM
chrome webstore
 
What do you guys think of the new Firefox?
 
@KendallFrey developer edition?
 
@KendallFrey How's it different? I use chrome
 
thanks
 
2:03 PM
np
 
@JanDvorak It supposedly is built for developers
 
@JanDvorak sorry by webGL I mean canvas3D.
 
Sounds like it contains a mini IDE or something
 
@Nafis no, you can call it webGL. but your questions seem to indicate you're confused about what these technologies actually do
one is working with DOM elements, one is working with a whole new medium (in a sense)
 
yes, I am confused
 
2:04 PM
@kindelfree nab
 
@Nafis what do you want to do ?
a scatterplot with 200K points?
 
yes, but as fast as possible
 
choice of tech isn't going to be as important as how you implement it then
 
I was planning to use three.js webGL canvas3D drawing but with 2D plane. Like 3D graphics but will look 2D.
 
highcharts loads a buttload of data here through lazy loading
 
2:07 PM
hello
var $table= $("#tbid")
$table.append("<tr><td>xx</td></tr>")
after appending it is not affected $("#tbid")
but $table having that value
what is the problem
?
 
@rlemon wow it is amazing how much faster FF Dev Edition is
 
makes me think there is just a bug in FF standard edition
report it or check if it is reported already?
 
anyone look this fiddle.
after using replaceWith it is not working as expected
when i comment replaceWith statement eveything works well
what was the problem
 
because you're replacing the table
:P
 
hm
@rlemon I can't seem to find it
 
2:16 PM
your reference no longer exists
 
can you also check too?
just to be sure
 
@ziGi if you cant find it, just raise it
if it exists it'll be closed and referenced
 
good point
shouldn't the engine of both be the same
 
@rlemon anyway again i am appending right
after replaced
 
hello guys
a quick question
 
2:17 PM
That's not a question! It's a code dump.
 
!!tell joseph format
 
after the ajax request
 
@joseph Format your code - hit Ctrl+K before sending and see the faq
 
edit your message and ctrl+k
 
oh come one
its a quick one
 
2:18 PM
...
 
please
 
still a code dump without any formatting
 
hitting Ctrl + K is also quick and it would help people read your code better
 
if you don't edit and format your message will end up in the trash
 
i will
 
2:18 PM
read my comments
 
but how ?
 
!!tell joseph format
 
@joseph Format your code - hit Ctrl+K before sending and see the faq
 
so i paste and hit ctrl + k ?
 
@Joseph Yep
 
2:20 PM
okie
			if(errMsg == ""){
					var ajaxRequest = $.ajax({
			    			url: "production_parc1.php",
			    			type: "POST",
			    			cache: false,
			    			data: {file : pathToFile}
		    			});

		    		ajaxRequest.done(
		    			function(msg){
			    			errMsg = msg;
		    			});
			}
			//alert(" aa "+errMsg);

			if(errMsg != ""){
				alert("i am here? :s");
				$('#errDiv').html(errMsg+"<br>");
				return false;
			}
 
@Joseph btw, your problem is you don't understand how works Asynchrone
 
better ?
 
still ugly
 
ok i will ask ,
 
2:21 PM
also, the indentation is broken. Is your code like that?
 
tabs and spaces problem
 
eugh
stick to spaces
 
@Joseph you need to do your if in the "done" function of your code. the flow "changes" when you do an Ajax request.
 
@rlemon so, you are saying high chart will be lot faster than d3 svg drawing?
 
after the request is done (the ajax call return something for sure) the variable errMsg is empty when i test for == "" but it shouldn't , when i alert something after the done request if detects the value
why so ?
 
2:23 PM
@Nafis no, I'm saying you're focusing on the technology you use (or library) when none of them are inherently slow. how you implement it will make or break the performance.
 
@Joseph because you don't check your variables after the Ajax code ended.
 
669
Q: How to return the response from an Ajax call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. f...

 
@die
 
^ rude
:P
 
That was my reaction
 
2:24 PM
@dievardump but i only need to check it after i get out of the ajax if
 
But in French, because he is French
 
@dievardump sorry for the @die
 
lol
 
@Joseph read the linked post
 
@Joseph Read the link from @JanDvorak. Once you do an Ajax call, the "flow" is not anymore "after the code", but in the call response handler
 
2:28 PM
need some help with a "simple" problem pls, dealing with "strings"... jsfiddle.net/nk3r6ysd/5
 
@JanDvorak btw, why is the question and the answer, by the same guy, the same day, the same minute? I hate those things. he got 669 upvotes for the question and 991 for the answer.
 
consider that i do never know the "scale(" value in the "()"...
 
@JanDvorak @dievardump read it :) . Thank you both .
 
@dievardump that's how canonical answers usually work
@dievardump there's nothing wrong with self-answers, and I don't really see a reason for a CW either.
 
Ok I see.
 
2:31 PM
There's even a checkbox to let you post both at once
 
Yeah, one more proof that I don't understand how this damn website works.
 
please, no alerts for debugging
 
@rlemon I did not even read the code... 2 alerts and I closed it
 
@dievardump treat that as any other well-researched clear canonical question + awesome answer pair ;-)
 
@JanDvorak I did not even know what "canonical question" were before you said it 5 minutes ago.
 
2:33 PM
@rlemon lol ok :)
@dievardump @rlemon jsfiddle.net/nk3r6ysd/7 sorry^^
 
@dievardump question that's created because there was a ton of duplicates, but no original.
 
Yeah I looked for it, that's something I kow how to do, looking for answers when I don't know
 
@Julo0sS another tip. you can pass multiple arguments to console.log
console.log( 'foo' + foo ); can be console.log('foo', foo)
it will still display nice
 
@rlemon ok... but it's "readable" this way isnt it? ^^ :P
 
or console.log("foo %o", foo")
 
2:36 PM
@Julo0sS yea, just mentioning it
 
@rlemon :)
 
@Julo0sS + destroys information.
 
there are some differences. but they might not matter to you. just be aware of them
 
@rlemon ok i will :)
 
hello guys
look this fiddle
i removed all the contents of tr.reportsdata row
then appended single td
but it is appending multiple times
 
2:50 PM
empty doesn't remove the tr's
I guess that is causing some strange issue where you append to all existing tr's
ahh I c
$corpCheckBox is a collection of multiple elements
so it's working as expected
 
Hi anyone in here no the basics to kineticJS
 
hi guys...can anyone point me to a good tuturial about creating a hotel scheduler?
 
@Japa there are lots of Jquery tutorials
@Japa just google one :D
 
i´ve been searching and found some...but it´s all already mdade components and the license is very expensive..
do you know a good one?
 
!!nudge 50
 
2:57 PM
@towc Nudge #1 registered.
 
@Japa why dont you use jquery datepicker and then have some js to check a database for availability
 
@StephenWolfe thanks for helping me..but i´m looking for something like this javascript.daypilot.org/scheduler ( but this is very expensive)
 
Hi everybody. Why I can't edit my var after .clone() pastie.org/9716906
 
or something like bryntum components...also expensive...so i though about creating one myself...thus looking for a good tutorial
 
@Japa wow that has a lot of functionality
 
3:05 PM
:) yes..it is...it´s great isn´t it?
 
have you seen the prices?...OMG
i´ve seen that link too...you can download ...but it´s trial :(
 
hello guys
 
3:10 PM
<table id="table1">
<tr>
<td>yyy</td>
</tr>
<tr class="second">
<td> </td>
</tr>
<tr><td>zz</td></tr>
<tr><td>uu</td></tr>
<tr class="download">
</tr>
</table>
 
format please
ctrl + k
 
<table id="table1">
    <tr>
        <td>yyy</td>
    </tr>
    <tr class="second">
        <td> </td>
    </tr>
    <tr><td>zz</td></tr>
    <tr><td>uu</td></tr>
    <tr class="download">
    </tr>
</table>
is it possible to get all tr's after tr.second and before tr.download
that means i want to get below tr's
<tr><td>zz</td></tr>
    <tr><td>uu</td></tr>
 
user1596138
@SivaRajini sure
 
user1596138
If you have control over the content you might just add a class to them.
 
user1596138
But if you don't there are still ways of course.
 
3:14 PM
no i can't
 
    var config.content = '#steps_content .content';

var template = $(config.content+'[data-month="0"]').clone();

$.each(user.months, function(index, value) {
	if(index > 0){
		var copy = template.data('content-key', value.content_key).addClass("hidden").data('month', index);
		copy.appendTo($('#steps_content'));
		$(config.content + '[data-content-key="3"]').after(copy);
		$(config.content + '[data-month="'+index+'"] .template:not(.hidden)').addClass('hidden');
	        $(config.content + '[data-month="'+index+'"] .template[data-template="' + user.template +'"]').removeClass('hidden');
 
@StephenWolfe thanks bye!
 
am expecting like before and after jquery concepts
 
Can you please help me?
Changes are not applied on copy
 
@Jhawins please help me on this
 
3:15 PM
var startNode = document.querySelector('.second');
var nodes = [];
while( (startNode = startNode.nextElementSibling).classList.contains('download') === false ) {
  nodes.push( startNode  );
}
untested. probably works
maybe
 
user1596138
^ rlemon has you covered
 
could I have made that more confusing? I don't know :P
 
user1596138
lmao
 
user1596138
The idea makes sense
 
I am so confused about what you are both trying to do :D
 
3:18 PM
he wants all nodes between two classes
 
$("#table1 tr.second").nextAll().not('.download')
that once also returning the same
is it fine ?
 
$("#table1 tr.second").nextAll(':not(.download)')
 
user1596138
You'll get everything after .second
 
maybe?
 
user1596138
That isn't .download
 
3:20 PM
I don't use jQuery that often
 
user1596138
So if .download will always be the last element I guess that works.
 
user1596138
Why did you want everything between two elements anyway tho if that's the case haha
 
I don't think nextAll jumps
so if you pass in the not selector there I think it stops
 
yes but i am not selecting the download class
 
but we can test that very quick
 
3:20 PM
it seems working fine
 
user1596138
Oh I'm just assuming I know what nextAll does btw
 
thank you guys
 
user1596138
@rlemon no need for us both to test but tell me the result ;P
 
user1596138
I broke things overnight and am playing catchup
 
@rlemon while( (startNode = startNode.nextElementSibling) ewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
 
3:22 PM
yea, .nextAll stops when it hits a bad match
 
user1596138
Plus had to flush coolant in my driveway before I came to work lol
 
user1596138
@rlemon Well cool!
 
@rlemon great!!! cool
 
@dievardump you love it :P
 
What does ||A|| mean if A is a vector?
 
3:24 PM
@rlemon I wanted t say "I love everything that comes from you."but that sounds to awkward
 
that right there is some enterprise level code ;)
a.k.a job security
> if no one but me can maintain it, they can never get rid of me right?
 
hi
@CapricaSix
 
^lol
 
hi @Sippy
 
guys, question :)
i have a svg tag, on which i set width and height
i have a zoom function, which applies modifications on it with the "transform" attribute
(transform="scale(x)")
 
3:31 PM
i want to add div in different color
 
there are scrollbars around the svg tag to be able to watch the height and width
BUT
as soon as I zoom
scrollbars do not fit the new "size" of the svg...
any tip to solve this, or i have to manually edit the svg size within the zoom function?
imo, this should NOT have any influence on the svg width or height, since it is only a scale effect...
i'm a bit lost with this...
 
@SterlingArcher o/ BRO
 
ORB \o
 
3:47 PM
@towc nudge
 
posted on November 13, 2014

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) {} I'm contributing to this calendar by the cartoonists of The Nib.

 
@rlemon yesm? :D
 
just saying hi
 
Hi!
 
4:06 PM
Hi!
 
I love the challenge idea, by the way
Some of the challenges look like a lot of fun
 
I did the first day
 
I've added the challenge starting event to the room calendar.
 
Sounds good
 
4:08 PM
What'd you vote for?
 
Most of them
The one that intrigued me the most was the one about double pendulums
 
Obviously the Saturday morning breakfast cereal is updated daily, that makes total sense!
 
Going to try to learn about them
 
@PopeyGilbert uhh, ok?
I hope you realize that's just the name of the comic series ._.
 
[Laughs Forever] “@HanFreakinSolo: looks like women WERE too hard to animate after all http://t.co/VRoth0mo16”
 
4:27 PM
Does anyone know a good polyfill/library for using cross-browser array iterators (forEach, map, filter, etc)?
 
underscore
 
@twiz Straight polyfill, or something like underscore.js?
 
having never used it, how modular is underscore?
can I cherry pick utilities?
 
I meant a polyfill
 
@rlemon it's not packaged for that, but would work fairly well.
 
4:29 PM
I don't like the idea of including a large toolkit for 20% of it's functionality
 
It mostly wraps the standard array methods if they exist, or provides its own if not.
You'd have to fork it and pick the functions you want. It's also a fairly small (surprisingly useful) lib.
 
Underscore is tiny
 
@twiz lodash > underscore
It's got all the same methods as underscore, but with some additions and better optimized
 
Still not a polyfill though
I just want my arrays to not suck... hah
 
They both desperately need to drop templating.
Nobody goes to a collection library and expects templates.
 
4:32 PM
What's wrong with the current prototype functions?
Not supported cross-browser?
 
yea
 
requires a little work on your end
but there is the shims
 
I guess I don't see the need for a polyfill when you can just do _.each(array, func);and it'll work cross-browser, but if you really want one, I'm sure there is one.
 
es5-shim is pretty good
 
@rlemon Thanks.
 
4:34 PM
@Retsam You could make the same argument for anything starting with $(, only difference is underscore hasn't been as abused as jquery yet, so it's still cool to answer with.
It's also much smaller and more practical, but...
 
@Retsam I don't see the need for _.each(array, func); when you could just use a polyfill... haha
 
isn't it just that underscore is a library of shims, jQuery is an abstraction
 
@ssube I mean, except that $ is a massive, massive library that lodash and underscore will never be, for one.
 
@rlemon Underscore isn't strictly shims. For the most part, yes, but it also adds stuff.
 
cool. I'll have to give it the time of day
 
4:36 PM
jQ adds stuff just to add stuff, underscore is more subtle (for now)
 
And lodash/underscore is basically single-purpose (provide useful array and object utilities) while jQuery is a dysfunctional swiss army chainsaw.
 
see what it is about
@ssube the jQuery API is a mess if you ask me
 
eventually, underscore/lodash will end up as jQ has
 
if you go with underscore, better go with lo-dash
 
I don't like a lot of the stuff about it
 
4:36 PM
@ssube No, it really, really won't.
 
I don't think lodash/_ ever wants to be an abstraction does it?
jQuery is, at its core, an abstraction library
 
Can everyone just agree to use es5 shim from a CDN on all websites... haha
hmmm.. If google put that on their homepage, that would basically unbreak the internet...
not really, but...
 
@twiz How would google putting that on their homepage help the internet any?
 
@Retsam Every library, over time, tends toward more methods.
That's just how entropy works.
 
That's how entropy works?
 
4:41 PM
@copy Yes. Don't think about it too much.
 
@copy entropy isn't what it used to be.
 
@ssube There'll be a couple of additions, but the idea that a library that is deliberately trying to be a small utility library is someday going to grow into a behemoth like jQuery is patently ridiculous.
 
user2620028
whats up guys it has been a while!
 
We live in a new world of mobile entropy 2.0, focusing more on user experience and clean, responsive deconstruction.
 
I thought we were focusing on plugins and SPA's ??
ohh and parallax sites that hinder UX
 
4:43 PM
Synergy between plugins and our agile devops strategy will eventually lead to the heat death of the universe.
 
jQuery.divideByZero('#universe')
 
Hey folks, do someone know a littlebit the isotop script ? http://isotope.metafizzy.co/

I'm using it on a website, and depend on time to time, if you refresh the page a couple of time, sometime my list don't receive the right heigh
 
!!afk lunch
 
good bye @rlemon
if someone wan't to see the live version : villenewrichmond.com/tourisme/evenements
 
Nice 5MB website
 
4:47 PM
kinda funny ;) :P
I think I found something to fix the pbl.
the idiot who made this 5MB website, suposed that he dosn't have to give height and width to float element...
got to go lunch too
 

« first day (1489 days earlier)      last day (3452 days later) »