« first day (1308 days earlier)      last day (3657 days later) » 

1:01 PM
@Zirak I don't get it. Is there something valuable in this presentation ?
 
Not really, it's just "cute"
Made me smile a few times
 
@rlemon @BenjaminGruenbaum @everybody I think it hadn't been announced here so in case somebody still ignores it, here's a great piece of news regarding Miaou : you can now launch a video chat with !!video @somebody and an audio chat with !!audio @somebody.
7
 
for fucks sake
 
@dystroy We don't deserve you
 
for gods fucking sake forever fuck
 
1:08 PM
@Zirak Be careful next time you remove pants
 
Not likely
 
@dystroy using webrtc.
 
And 100% implemented as a plugin, with no change to the core
 
@dystroy Can there be support for party chats (more than two participants in audio/video)?
 
1:15 PM
@Zirak Not yet.
But of course it's in the minds
Seriously... close that
0
Q: How memory allocating mechanism works in JS?

user3633595If I have a constructor function Message(i, j, o) { this.i = i; this.j = j; this.o = o; } How JavaScript Engine knows how many memory needed to allocate for an object Message?

 
@dystroy why?
 
too broad and lazy
 
@ShayBenMoshe 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.
 
@BartekBanachewicz It's a really, really, really broad question
 
well, an answer general enough would be ok
w/e
 
1:20 PM
v8 does it differently than Chakra which does it differently than Spidermonkey and JSCore and whatever-it's-called-in-IE
Not to mention it's changed through time
@BartekBanachewicz uh, "with bits"?
 
!!work or stuff that looks like work
 
@RyanKinal work
 
As usual, Caprica is probably correct
 
@MikeLin 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.
 
Ok folks, I'm wishing everybody a nice weekend. Listening to that fine tune might be a good start :P
 
1:30 PM
Listen to an even better tune!
ITS FRRRIIDAY
 
brrr I wanted to avoid THAT :p
 
@SomeKittensUx2666's npm module is all the rage
 
@LuudJacobs 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.
 
any linuxy tool ^
to draw stuff like that ?
 
hey guys!
 
user1596138
1:44 PM
@SomeKittens
 
user1596138
@t1wc Sup
 
user1596138
You ruling the world yet?
 
@Jhawins nothing much... quite sick
@Jhawins it's next on my todo list, don't worry
 
user1596138
Good guy hackreactor
 
user1596138
> Hack/Pair Programming - You’ll work together on real-world projects. If you get stuck, you can flag down a passing instructor and they’ll help you get yourself unstuck. You can also take advantage of our advanced help request system. Help involves the explanation of underlying concepts, and other times it's tips on what to Google or which question to ask in which IRC channel.
 
1:48 PM
@AbhishekHingnikar you mean photoshop inside wine?
 
user1596138
Teaching people how to Google. Thank god someone realized this is really necessary.
 
@quicksilver 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.
 
@BartekBanachewicz photoshop or inkscape ?
if somebody with good art skills can draw only the teeths and the tools i'd be really indebted.
 
@AbhishekHingnikar inkscape is for vector graphics. (so the equivalent would be Adobe Illustrator)
 
in linux
that a beginner can use ?
 
1:55 PM
@pedros 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.
 
@AbhishekHingnikar to do what, precisely?
 
Redraw those teeths ?
 
user1596138
@AbhishekHingnikar just copy them?
 
user1596138
Here hold on....
 
user1596138
 
user1596138
1:57 PM
White background :)
 
nope this has to go on a4
 
user1596138
Sharpen it a bit and you've got templates :D
 
at 330ppi
 
user1596138
Fine
 
ps i know what u did ... threshold :P
 
user1596138
1:59 PM
Yup :P 10 seconds haha
 
user1596138
How high res do you need?
 
330 ppi
so that it can go on a4 :P
or 300 will do
 
user1596138
Enlarge and sharpen?
 
user1596138
They'll look nice and crisp
 
user1596138
I can't re-draw jack shit.
 
2:04 PM
wait :D
 
@jAndy Wow
... wow
That is gorgeous
 
@mikedidthis no. Browsers will have multiple connections open so they can download several things at once. Also, if you're using a CDN copy of jQuery, as in my example, chances are it's already cached so wouldn't need to be downloaded again anyway. — Rory McCrossan 1 min ago
Is that true? I can't seem to find another to back up multiple connections.
 
@mikedidthis it's browser dependent
IE does 2-4, FF does 8 Chrome does 4 too iirc
 
@mikedidthis Browsers can (and mostly do) parellelize asset retrieval like images
 
The cache thing is false though, most cache requests for CDN stuff are cache misses
Wow, user was removed +10 rep
 
2:12 PM
Ahh thanks for the heads up. I always thought scripts in the head were blocking.
 
I think those are
Scripts and stylesheets block, AFAIK
Wait, no
Well, kinda
 
I almost contributed to this conversation, but I realized I don't really know what I'm talking about.
My instinct is to say that script execution blocks, but the files are downloaded in parallel. But I don't really know.
 
Me neither sadly.
 
user1596138
@mikedidthis Wait you're questioning whether or not a browser uses multiple connections?
 
user1596138
Obviously a second connection has to be made if the other resource isn't coming from the same server.
 
2:18 PM
/* wtfffffff */
window.$http = $http;
window.$resource = $resource;
 
I wonder if ES9 will be statically typed
 
@Jhawins I don't know what I am questioning. I was under the impression that you should avoid putting scripts in the head.
 
user1596138
Ah for that reason.
 
You should. But it's because of script execution, not because of downloading.
 
user1596138
Head.js
 
2:20 PM
Also, it gets rid of the need for "document.ready" kinds of events (assuming you put your scripts at the end of the <body>)
 
@BartekBanachewicz I wonder if Haskell2 will save state
 
Yeah, that is what I was thinking.
 
@Zirak I wonder where all those "haskell doesn't/can't save state" misconceptions come from
 
@Jhawins Heh... you said "head"
 
heck, State Monad is like the second monad you learn about
 
2:22 PM
@BartekBanachewicz I wonder where all those "static typing is inherently better than duck typing" misconceptions come from
But it's my fault for humouring you
 
Haskell is one of those "no side effects"/"one in-one-out" languages, isn't it?
 
@Zirak you know that static typechecking and duck typing aren't mutually exclusive right?
 
Yes honey
ES9 will be haskell
And all the rebels will be shot
And there'll be justice for all
 
I once saw somebody attempt to overload a function in JS. It was sad.
 
> presented with facts
> respond with humorous critique
@RyanKinal lol
@RyanKinal well, yes and no.
 
2:24 PM
function doStuff(thing1) {...}
function doStuff(thing1, thing2) {...}
@BartekBanachewicz Elaborate?
 
@RyanKinal it's pure by default, but has quite a collection of libraries (and idioms) that help you write programs dealing with State and I/O
 
So, there are ways to pass a state-like thing around?
 
@RyanKinal mhm
 
Gotcha
 
basically, "state" is just one of the many execution contexts
which in JS amount to "this"
 
2:27 PM
Understood
 
heh, maybe I'm getting better at explaining it :D
 
user1596138
@BartekBanachewicz lol
 
@notchris 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'm attempting to unset an interval. Or really, set a value of "0" to an interval. I have a horizontal slider that animates on mousenter, how do I stop it from moving on mouseleave?
$(leftArrow).on("mouseenter", function(event) {
setInterval(function() {
if (canNavigate == true)
methods.scrollRight();
}, settings.autoPlaySpeed);


});
I could also set "autoPlaySpeed" to "0" on mouseleave, but it kept animating.
 
2:38 PM
@RyanKinal, @mikedidthis So I wrote a simple test. Checked on Chrome, will check in Firefox and report
 
while (a.lenght > 0)
guess how that behaves
 
@Zirak Sweet! You rock.
 
Yeah it's the same in FF, gisting it up
 
@GerardoContijoch 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.
 
@Zirak legend!
 
2:41 PM
In two words: Shit blocks
 
:intrigued:
 
It's not too interesting :P
...the html may be a bit too much, I'll trim it down
 
user1596138
> To familiarize yourself with all the great solutions I’ll address in a moment, you can use the developer tools in your favorite browser. Internet Explorer provides great devtools for this purpose (just press F12!).
 
user1596138
smh microsoft... Give it up
 
user1596138
2:45 PM
Holy shit.
 
The IE11 dev-tools are still horrid
 
user1596138
function fireTrigger(trigger) {
   switch (trigger) {
      case 0:
         $('#lyrics1 p').addClass('vilify').html(lyrics[0]).fadeIn(1500);
         break;
      case 1:
         $('#lyrics2 p').html(lyrics[1]).fadeIn(1000).delay(5000).fadeOut(1000);
         $('#lyrics1 p').delay(6000).fadeOut(1000);
         break;
      case 2:
         $('#lyrics1 p').fadeIn(1000);
         break;
      case 3:
         $('#lyrics2 p').fadeIn(1000).delay(4000).fadeOut(1000);
         $('#lyrics1 p').delay(5000).fadeOut(1000);
 
user1596138
This is there example of audio visualizations.
 
OMG...
People learn from that ?
var lyrics = newArray();
lyrics[0] = 'Exile';
lyrics[1] = 'It takes your mind... again';
lyrics[2] = "You've got sucker's luck";
lyrics[3] ='Have you given up?';
(and no, I didn't change the formatting)
 
user1596138
Yeah this is pathetic
 
2:48 PM
They should replace all that with a link to w3schools
 
user1596138
Does anyone have a decent resource for HTML5 audio? The last 3 places I was reading were written by fucking morons
 
user1596138
@rlemon @loktar (sorry for the double)
 
the html5rocks article is nice
 
user1596138
Yes that's what I was looking for. You linked me it before
 
@JamesPatrick 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.
 
3:03 PM
hi, can anyone tell me how to POST using javascript to a php page, like its done through a form.
 
user1596138
@KumarAbinash xhr
 
user1596138
ajax
 
@jha
@Jhawins, well that doesn't redirect me to the page, it just posts the data.
 
user1596138
@KumarAbinash So you want to actually submit a form with js? Or you want to send the request, then redirect?
 
user1596138
If you already have a form you can just do form.submit()
 
user1596138
3:06 PM
form = document.getElementById('formID')
 
I do not have a form. I have an array of data to pass to that page. Store the data in session and then redirect to that page. how do i do it?
 
user1596138
Use a form or use xhr/ajax
 
xhr/ajax doesn't redirect me to that page after sending the request, does it?
 
user1596138
It's a whole 1 more line to redirect...
 
like using window.location?
 
user1596138
3:10 PM
Anyway what's up with this loop from on a reputable site for (var x = nrom; x; x--) {
 
after making the ajax request?
 
user1596138
Yeah sure. You can just redirect however you want to
 
user1596138
Are you using jQuery...
 
well, yeah.
 
@Mosho Thanks
@monners It was meh
 
3:15 PM
posted on May 16, 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) {}

 
$scope.getmarginTop = function (element) {
    return "margin-top:24px;";
};
:'''''(
:cries uncontrollably:
 
@user874805 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.
 
@RyanKinal Are you good with Angular? I'm new with it and trying to wrap my head around some stuff
 
I'm still getting used to it. But I know a bit.
 
Have you used $resource ?
And/or $httpBackend
I'm trying to mimic an API that's still being developed by another dev here and I don't know if I should bother writing up a $resource for it atm
 
3:29 PM
 
Do they have vagina.expensive ?
 
@Zirak this is awesome
 
@MarkisT 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.
 
wassup
 
3:43 PM
@Elton 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.
 
Hey anyone here
 
Yup
 
@Elton ...seriously? Did you even read what you were just pinged with?
> Please don't ask if you can ask or if anyone's around
 
Omg im sorry
 
@Elton No.
 
3:45 PM
I thought it was just one of those welcome bla bla
The answers suppose to solve it, but I couldn't get them to work.
 
.closest() doesn't do what you want
Use .next() or .siblings('volume-control-container') I think
 
A more detailed example of my code
<div class="cam-contents" id="feeds">
<div id="studentid" class="cam-content2">
<div class="proctor-page-instance-dashboard">
<button class="btn exam-join proctor-page-btn"><a class="no-link-styling" href="javascript:void(null);" onclick="setAudioLevel('tal@procwise.com');">Submit</a></button>
<button class="btn exam-join proctor-page-btn" id="enter-room"><a href="javascript:void(null);" onclick="enterRoom('tal@procwise.com');" style="display: block;" id="tal_procwise_com_enter_room" class="no-link-styling">Enter Room</a></button>
 
@Martin I've seen resource
And I've played around with $httpBackend
 
@RyanKinal I find the documentation so confusing... Maybe I'm having an off week but damn I have a hard time following
 
I like $httpBackend a lot, actually. It's so useful for mock API calls.
 
3:49 PM
For sure
I'm just wondering if I should bother putting together $resource or not
 
I don't think I like $resource, though. I prefer just using $http
 
@dystroy dystroy.org/penis Your server should serve 404s
 
Heh... penis
 
It's mostly dead though
 
@Elton have you tried the solutions posted?
 
3:52 PM
@Martin I couldnt get the .siblings to work either
 
Post the event listener you're trying to use
 
What is an event listener?
 
Something like $('yourElement').on('click') or $('yourElement').click()
 
$('.volume-btn').siblings('.volume-control-container').toggle();
 
:16513756 :suspicious:
 
3:55 PM
@Elton that's the logic that goes in the listener
 
@RyanKinal You can view deleted messages, y'know
 
$(".volume-btn").click(function() {
$('.volume-btn').siblings('.volume-control-container').toggle();
});
 
This code:

function volumeControl(){
$(this)
.closest( ".volume-control-container" )
.toggle();
}
 
Aah ok
 
!!tell Elton format
 
3:55 PM
Ok change

$(".volume-btn").click(function() {
$('.volume-btn').siblings('.volume-control-container').toggle();
});

to


$(".volume-btn").click(function() {
$(this).siblings('.volume-control-container').toggle();
});
 
@Elton Format your code - hit Ctrl+K before sending and see the faq
 
YOU CAN DO THAT?
 
Formatting bitches
 
Nice!
 
Sorry guys didnt know.
 
3:56 PM
Hit up-arrow to edit messages
 
user1596138
@rlemon I suck
 
$(".volume-btn").click(function() {
    $('.volume-btn').siblings('.volume-control-container').toggle();
    });
 
user1596138
I'm loading audio over xhr but now I want to put up a codepen
 
function volumeControl(){
   $('.volume-btn').siblings('.volume-control-container').toggle()
}
 
user1596138
I can do an audio tag
 
user1596138
3:57 PM
So how can I use an audio tag's mythical workings as a buffer?
 
user1596138
Google is throwing shit in my face
 
Elton I added a new room for us
So that we don't have to spam everyone else
 
user1596138
Also for everyone else: Never, ever open an mp3 in chrome's sources on accident.
 
hi all.
is the term 'ajax' current? or has the term been replaced?
 
It's been replaced with "auto-erotic asphyxiation"
 
4:08 PM
:D
 
This is pretty cool actually, I didn't know we had that built in
Pretty cute
 
@zirak thanks you. I'm searching academic papers, just wanted to check it was still current terminology.
 
AJAX is an ugly term anyway, it's just an XHR (XMLHttpRequest), which is an ugly term anyway, it's just an HttpRequest
 
thank you as always.
 
@Kiee 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.
 
4:12 PM
I was wondering why papers titled 'ajax' up after circa 2008
 
@Ryan-NealMes 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.
 
@RyanKinal What's up with $resouce too much overhead?
 
@PaulWhelan hello fellow dub
 
@TonyCronin academic papers?
 
Hey Tony
 
4:16 PM
It's just an HTTP request, Zirak is right there, that's the only name that feels ok
 
@BenjaminGruenbaum, thats right.
 
@PaulWhelan if that's really you, that's an awesome photo
 
.
.
..
...
....
.....
 
whoa
periods.
 
@PaulWhelan Hi Kevin Spacey
 
4:17 PM
0
A: Getting a previous release from Git

malcolmmcswainYou can use git checkout to get the release. The git checkout command lets you navigate between the branches created by git branch. Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells Git to record all new commits on that bran...

 
@PaulWhelan I suspect thats just a handsome avatar ;)
 
@Sawarnik Are you having a seizure?
 
@Zirak I was getting terribly bored :D
 
Welcome to the javascript room where everybody talks about everything but javascript.
 
@BenjaminGruenbaum thanks man, currently tracking down a thesis topic. I think this is the hard part.
 
4:18 PM
@BenjaminGruenbaum @TonyCronin hehe
 
Does this room have a different kind of sound alert for pings?
 
@TonyCronin for an MSc?
 
Yes, it's the sound of shrieking harpies
 
@BenjaminGruenbaum, thats right. final push now. torn between 'User-Centered Design, and Activity-Centered Design: A Review of two Methods for Designing Web Applications'...
 
@TonyCronin I'm not sure what you mean there?
 
4:23 PM
@BenjaminGruenbaum …or "An Investigation of Usability Issues in AJAX based Web Sites"
 
Worst Sherlock book title
 
AJAX based web sites is incorrect terminology, AJAX does not base the website. Single Page Application might be closer to what you're looking for.
 
@BenjaminGruenbaum not sure I know what I mean there either :D LOL
 
"The Case of the Disappearing Usability"
Probably uppercase
 
@TonyCronin do you know what an http request is?
 
4:24 PM
@Zirak Hound of the Orm
 
It took me 3 hours to get to work...
Jesus that was rididculous
 
@TonyCronin have you actually done any web development?
 
@FlorianMargaine, I thought I did. but I'm not sure any more!
 
just trying to know your level so that we know how to speak to you
hm, ok
 
thanks guys.
mostly front end, customizing wordpress, static brochures, for work.
 
4:27 PM
@TonyCronin sorry if I came off as a douche, but you might want to research more on the subject before you expect to publish, you seem to be a beginner which is great, but it means you still have a lot to learn (then again, so do I)
 
do you know why logging in with just javascript is useless?
 
yeah, security risk?
 
(I don't think it's useless unless you have a backend with secrets)
 
@BenjaminGruenbaum I meant without server trips
@TonyCronin why?
@TonyCronin "security risk" is not some words to throw without backing them up :-)
 
!!afk beer
 
4:29 PM
@FlorianMargaine I'm missing something, because logging in with js isn't so different than logging in with a regular form.
 
@Zirak without server trips
 
still missing something
 
@Luka 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.
 
where do you store your password?
 
ooohhh
 
4:30 PM
do you trust the client to login on his own?
 
hello, can anyone help me please: superuser.com/questions/755165/…
 
I thought "logging in" as "submitting a login form"
 
ah, my bad
 
@Luka Ouch
 
@BenjaminGruenbaum. thats right man. still have a lot to learn. 2700hours on the masters so far. thesis will be a chance to build something substantial.
 
4:31 PM
@TonyCronin BenjaminGruenbaum is afk: beer
 
@Luka makes me want to backup.
maybe my rpi will turn into a home mail server...
 
@Florian Margaine: I know :/
 
which means I'll need at least 2 hdd...
 
@FlorianMargaine. I don't think I'm explaining myself well.
 
@TonyCronin no it's ok, I think I see your level
these were "hard" questions in the way that you need to technically know what's going on to answer properly
but to understand ajax/xhr, you need to understand http
maybe at the network level to understand correctly
 
4:34 PM
the idea for MSc thesis, is to build on someones theory or test a couple of theories against each other,
 
I think it's the easiest
but that's probably because I have a networking background :/
 
http, request based communication between client server. ajax is http request without page refresh?
 
XMLHttpRequest (xhr) is a javascript object that allows you to send http requests
that's the most technically correct definition of the technique called "ajax"
 
@FlorianMargaine thank you.
 
if you just wants definitions for your paper: you can call it "the ajax technique"
 
4:38 PM
thesis is around "interaction design"(an engineering methodology for designing interactive software products)
 
user1596138
@RUJordan Why?
 
I'm just kicking a few ideas around at the moment.
 
then yeah, "the ajax technique allows you to send http requests without refreshing the page".
which means you can get new information of your database on your page without refreshing it
 
@Jhawins a bus blocked the highway entry ramp so a very busy road was detoured through neighborhoods. So slow
 
user1596138
lol
 
4:40 PM
@FlorianMargaine thats a big plus for usability (an interaction design goal)
 
user1596138
I've never actually been stuck in traffic/slowed down more than maybe... 30 minutes once.
 
At a couple points I could have gotten out of my car and smoked a cigarette on the hood and not worry about moving. It was bad man
 
@FlorianMargaine @Zirak. correct me please. But ajax is one of the key strengths of js mvc frameworks, I'm thinking angulars $http method?
 
@TonyCronin yes
 
my idea is to test js mvc against server side mvc. I just need an academic angle, thats why I'm searching scholar.google :D
 
4:46 PM
they're both used together
one doesn't mean the other isn't necessary or something
 
@FlorianMargaine, of course. but from an academic setting it would produce some interesting figures. I know its a bit 'arch' but it's that old thick vs thin client again?
 
What exactly would you be comparing
 
@TonyCronin server side mvc is always there, js mvc is the difference between thick vs thin client again, indeed
 
@FlorianMargaine thank you again.
 
@FlorianMargaine Server side MVC is always there...? Can you not have a backend that is built on a different pattern (or none at all shudder)
 
4:51 PM
interesting: http://thenextweb.com/microsoft/2014/05/15/microsoft-research-launches-code-hunt-educational-web-game-teaching-programming/
Microsoft dips into gamefication/learn to code
 
@Martin yes, but that's not the point of this discussion :)
 
@Martin interaction design goals - I think usability would be easiet to measure.
 
@FlorianMargaine Bope. I shouldn't try to bud into a conversation halfway through
 
@TonyCronin also, do you care about SEO?
 
in this limited case, no.
@FlorianMargaine but please go on.
js fucks seo?
 
4:53 PM
well, js mvc frameworks don't play well with SEO
 
you can fix that to an extent programatically? I'm things cowboys jQuery BBQ?
 
@TonyCronin with a lot of work, yes
 
!!> "a a a".split(" ", 2) // javascript is useless :d
 
@copy ["a","a"]
 
gooooood morning
 

« first day (1308 days earlier)      last day (3657 days later) »