« first day (951 days earlier)      last day (4013 days later) » 

1:00 PM
just call it?
 
eh? You mean, funcName()?
 
Yeah
Just call it in a <script> tag?
 
yeah
 
that was dumb of me, sorry!
 
tinker.io/a97b3 I can do better...
 
1:02 PM
@Zirak, that's heaps cute
 
~_~
It's possible to ditch angle->radian conversion and just use radians
 
Actually, in theory you could try to rewrite the JS prototypes to use different rounding. Which is a non-sense of course. — ikaros45 5 mins ago
And more generally, this question has some pretty horrible answers
 
@BenjaminGruenbaum wat
 
@Zirak Exactly.
 
wut.
@BenjaminGruenbaum, you couuuuuld do it
 
1:06 PM
@phenomnomnominal proper fluid simulations are hard
 
@phenomnomnominal nope,
 
but sand simulations are worse
 
@BenjaminGruenbaum, a really big, hard coded map :P
 
sand is neither solid nor fluid and bitches to act like BOTH
 
@Darkyen for sure
 
1:07 PM
:D
 
Sand isn't solid?
 
@phenomnomnominal I think I've found a horrible way, override how DOM prototypes' methods relating to numbers act, but that'd still not work if one uses an attribute
 
@Zirak a pile of sand :P
how will u simulate about 400k sand particles each acting like a saperate solid
but collectively acting as a liquid
 
sand = fluid + stiction
 
sand = fluid + stiction + reduced viscosity
 
1:08 PM
View + Model + Controller = ???
 
@Darkyen, you can do it as a generalised fluid
2
 
Sand has viscosity...?
 
^ thats a pretty good (slighty old) paper on it
 
when u simulate it
i dunno if viscosity is correct word but its behavior is quite viscous
@phenomnomnominal i read it before ^^
 
If it's viscous, that means it has lots of viscosity.
 
1:10 PM
I really need to download and install english inside my brain
 
import english
^ Python wins
 
Your brain is in Python?
 
Yep
 
@Zirak what's yours ?
 
@RyanKinal i feel sorry for you then
 
1:12 PM
@Darkyen If I could execute import english...
 
@dystroy COBOL
 
Well, it's better than Imports System.Lang.Natural.Spoken.English
^ VB loses
 
@Zirak i thought you were going to say "ObjectiveC"
 
@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.
 
1:13 PM
@RyanKinal my brain works in javascript :-(
 
@Darkyen I hope it's V8...
 
sadly its IE's implementation
 
!!/google prevent scrolling in browser
 
Oof
 
1:13 PM
Ouch
 
(just temporarily, before anyone says "DON'T")
 
When am trying to re-open a jquery dialog popup , I am not able to do it
 
@Zirak Good (you're a little younger than me (Mine is in LISP)).
 
I'm suprised Zirak isn't running on Punchcards, being 92 years old and all
 
Maybe they changed the motherboard ?
 
1:15 PM
@ShalinJirawla Show us the code!
 
I can see the valves glowing from here.
 
(preferably in a gist, or pastie, or fiddle, or something)
 
^ ---- nice catch ryan i hope its not too late
 
Screenshot of notepad!
 
I got an upgrade after they tested germanium semi-conductors
 
1:16 PM
lol
@Darkyen Me too :-(
 
IT WAS!
 
Oh, too late, lol
 
!!/beautify 9606367
 
$('#updatetaskDialog').dialog({
        cache: false,
        autoOpen: false,
        width: 450,
        height: 330,
resizable: true,
        modal: true
});

$('.taskeditlink').on('click', function () {
        tasklnkobj = $(this);
        var dialogDiv = $('#updatetaskDialog');
        var viewUrl = tasklnkobj.attr('href');
        $.ajax({
            cache: false,
            url: viewUrl,
            dataType: 'html',
            success: function (data) {
                dialogDiv.html(data);
 
1:16 PM
@Darkyen Command beautify does not exist.
 
Fixed font or nothing.
 
@ShalinJirawla Better!
 
@ShalinJirawla Thanks :D
 
pleasure
 
@FlorianMargaine see that :D
 
1:17 PM
?
 
It's strange that the same code works for another popup
 
the formatting ^^
 
"I don't know what "$" is in this context" - Should never be said by any JS programmer ever.
 
@KendallFrey Unfortunate fact
 
@KendallFrey it could be prototype or jQuery or zepto
but over here its definitely jQuery
 
1:18 PM
@ShalinJirawla Any errors?
 
FUCK ZEPTO
 
@Xerion 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 have yet to actually use jQuery in my code.
 
Error: TypeError: n.dialog is not a function
 
Font ninja's
WHAT WAS THE FONT IRON MAN JARVIS USED ?
 
1:20 PM
jsfiddle.net/XuMzS/1 why can I not write <span data-bind="text: Total"></span> in the textarea and get that observable to display?
 
@ShalinJirawla Is it actually n.dialog, or is it dialogDiv.dialog?
 
therpf.com/f9/… <---- well this is awesome
 
i want to read thousand files from client side every day.. browser dont have those permissions. how to handle it
 
@RyanKinal : the script is dialogDiv.dialog but the error is n.dialog
 
I need GreaseMonkey help.
 
1:22 PM
Ooh, interesting
 
This is at the top of my script:
try
{
	console.log(GM_xmlhttpRequest({ method: "GET", url: "http://google.ca/", synchronous: true }).readyState);
}
catch (e)
{
	console.log(e);
}
> ReferenceError: GM_xmlhttpRequest is not defined
 
@ShalinJirawla Is there any variable n? Anywhere? At all?
 
I do have // @grant GM_xmlhttpRequest
Why is GM_xmlhttpRequest undefined?
 
@RyanKinal : nop , there is no n in my script
 
(Yes, I am running in GM.)
 
1:24 PM
funny fact is tht it doesnt gets refreshed
If I write the below code , it works fine
    $('#updatetaskDialog').dialog({
            cache: false,
            autoOpen: false,
            width: 450,
            height: 330,
            closeOnEscape: true,
            resizable: true,
            modal: true,
            close: function () {
                location.reload();
    }
        });
 
2
Q: Best resource for developing JavaScript curriculum?

armadadriveAt the risk of being downvoted, I really need the community's input - I am helping put together a post-secondary quality curriculum (vocational school, not university) around open-source languages, specifically JavaScript and maybe some Ruby or PHP. There are some great trade books out there, but...

posted on May 24, 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) {} Really been enjoying Junior Scientist Power Hour comics.

 
@ShalinJirawla Fixed font please
 
@FlorianMargaine so does a lot that is more advanced ;)
@Darkyen well thank you, but I think I'll be here on monday too :D
 
Which dialog plugin are you using? jQuery UI?
 
28th is tuesday :P
but i wont be mate , probably i have exams
 
1:26 PM
yeah, and my bday is on the 27th ;)
 
@RyanKinal yup
 
@GNi33 oh wait yes its on 27th :D lol
definitely i will miss it :D lol
28th i have Mathematics 3 the hardest engineering subject for me
 
oh, good luck on that one then :)
 
I think the jQuery thing is reversed now
 
why did Zirak collect all of our birthday-dates after all? did he use them for something or was it just out of curiosity?
 
1:28 PM
People start upvoting answers just because they're not using jQuery on jquery questions even if they are completely wrong
 
holy, i got an upvote on an old answer
 
@GNi33, it was to see if the birthday paradox worked
 
1
A: how to disable click event for image?

Mota Chuha Below is pure javascript code. Try this : document.getElementById('id12').setAttribute("onclick", null);

 
@GNi33 That's the only way I get rep anymore...
 
anybody know some good knockout sites for learning?
 
1:29 PM
The painful part was the setAttribute :(
 
rep on old answers
 
Hahaha
 
@RyanKinal yeah, doesn't happen too often to me
 
ah yeah thats a good one, been there already :)
 
1:30 PM
o/
 
@ShalinJirawla Well. I'm kinda stumped. Also, I think it's a bit strange that you refresh the page when you close the popup.
 
@RyanKinal well m bowled too , it's really annoying for me as well coz at 1 place it's working & @ the other it doesn't
 
I like that i'm at a place where jquery code looks so goddamn ugly to me
 
answer this and get some points ;) stackoverflow.com/questions/16735147/…
 
1:32 PM
I'd like to know if there is a formatting guide for <time datetime="[timestr]"> tags.
 
@rlemon Looks like jQuery
 
Angry Unicorn-Fox-Pony.
it's my latest note sticky art
 
@rlemon that page crushed my browser.
 
get a better browser :P
IE is known to fail when you try to view standards
 
1:36 PM
@rlemon Thanks.
@rlemon Good reason why IE sucks.
 
I wish I had a more general image for this, but I don't. see through the lines.
 
@FlorianMargaine Mouhahaha. I'm sure she can.
 
@rlemon I'm using chrome 29.
 
thats why
Canary is fun, but why anyone would use it for anything other than experimenting o_O??
 
@rlemon That page is doing all sorts of shit it should have to do in order to display standards info.
 
1:38 PM
it's not stable.
 
@GNi33 he wanted to
hit on somebody
 
@rlemon It's choppy as hell on 26 too. It's the page.
 
of his age.. but found out he is the only 92 year old in here
 
Here, I'll check firefox and safari too.
 
works fine for me
I mean, yea it takes a while to load. but there is like 2.3meg of data being displayed.
 
1:40 PM
Now I just need a way to convert 2013-05-18T14:00+0100 to something a script can work with, shouldn't be too hard.
 
Damn my site runs at ~55fps.
So close.
 
@rlemon it's the loading. There's no reason to front-load that amount of data. And the scripts... why the scripts? It's informational ffs. Every single browser chokes to death until it's done loading. Luckily they offer an "I can't read the whole bible in one shot" alternate view.
 
!!> new Date('2013-05-18T14:00+0100')
@DJDavid98 ^
 
@rlemon "2013-05-18T13:00:00.000Z"
 
@GNi33 there's gonna be a dotJS conf in december
 
1:42 PM
in Paris again?
 
Hey @rlemon, for your lememe, the API key is the client-secret key ?
 
@rlemon Oh, okay. But it seems to parse an UTC string instead of the actual date, like it says 13:00, not 14:00.
 
@dievardump yes. the key is just the imgur api key
 
@AmaanCheval apparantely rapedcss.com is actually free
just read our conversation last night on whats app :-|
 
I do not have any API key. I have client ID and Client-secret-key
 
1:43 PM
Hahaha
 
now i wonder if i should really buy it an use it :D
 
but I guess imgur changed how it gives out api keys, so mine still works but you can't get anon api keys anymore
@DJDavid98 it's timezone specific.
 
oh :(
 
new Date('2013-05-18T14:00+0100')
> Sat May 18 2013 09:00:00 GMT-0400 (Eastern Daylight Time)
@dievardump what are you trying to do? run your own lememe?
 
@rlemon Okay then, thank you very much for the help!
 
1:44 PM
@rlemon nooo. Why would I ?
I made a map editor for a Bomberman like
 
idk. Why are you asking then?
lol
 
so you need to upload shit to imgur correct?
 
for the rest i thought i should by rapedcss.com and make it my blog cause well most of my work is brutalized css anyways.. so shall i buy it ?
 
And I want to upload the maps to imgur
 
1:45 PM
or it sounds too vulgur ?
 
0
Q: Play .mp3 with Craftyjs

iOraelosiI want to play .mp3 sound files in a game I built with Crafty.js. Is this possible without converting the sound file?

 
@dievardump gimmie a minute
 
@Feeds gamedev.se must hate js by now
 
@canon I've actually seen that used before
 
1:53 PM
var dataURL = canvas.toDataURL("image/png").split(',')[1];
$.ajax({
	url: 'https://api.imgur.com/3/upload.json',
	type: 'POST',
	beforeSend: function (request) {
		request.setRequestHeader("Authorization", "Client-ID YOUR_CLIENT_ID");
	},
	data: {
		type: 'base64',
		image: dataURL
	},
	dataType: 'json'
}).done(image_upload_complete).fail(image_upload_failed);
@dievardump
 
are you a genius ?
 
if it works: yes, if not: yes.
2
 
cat sushi?
 
1:56 PM
I'm not sure cats think much of anything
 
If you had a grid of 14*24 pixels, what would you do with it
 
8-bit-style sprite-ish-thing
 
@rlemon EYE FOOHKIN LOF YA
 
@phenomnomnominal Made an erotically suggestive picture of a known authority, used it to blackmail him, used blackmail money to buy a 522*1024 pixel grid, and so forth.
Pretty soon, I will RULE THE WORLD!
 
In the vein of:
2 hours ago, by phenomnomnominal
user image
 

« first day (951 days earlier)      last day (4013 days later) »