« first day (1397 days earlier)      last day (3550 days later) » 

12:58 AM
Does anyone have developer evangelist experience (even a good article to read)? I'm being asked for my opinion about DE's and want to have something to bring to the table.
 
1:13 AM
I have no idea what that means
 
@copy Glad you said it
Hey, does anyone here actually have to use IE8 for anything on a day-to-day basis?
 
There's no shame in saying "I don't know what you mean" (though there is shame in saying "I didn't bother to Google that")
 
Then I won't say it :P
 
@SomeKittensUx2666 I did, just wanted to let you know that it might not be a wide-spread term
 
1:17 AM
@copy I assumed you did, no worries
 
1:49 AM
please help
http://stackoverflow.com/q/25276782/3050794
 
> I have tried the setInterval but it didn't work
What did you try?
 
@Meredith
I tried this
jQuery(".nb-tabbed-head li a").setInterval(function(){

e.preventDefault();
var bt = $(this);
var bts = bt.parent().parent();
var where = $(this).parent().parent().parent().next();
var nbs = bt.parent().parent().data('nbs');
var nop = bt.parent().parent().data('number_of_posts');

cat = bt.data('cat_id');
if (cat === '') {
cat = bt.data('parent_cat');
}
where.parent().find('.show-more').find('.nomoreposts').remove();

jQuery.ajax({
type: "post",
url: nbtabs.url,
dataType: 'html',
 
Do you know why that didn't work?
 
No I really know why? I am new to that
 
Well the first reason is that setInterval isn't a method of jQuery
ie jQuery.setInterval doesn't exist. setInterval exists.
 
1:57 AM
I see .. so what is the correct thing to do
 
Call setInterval instead of jQuery.setInterval
 
Can you please clarify that by answering to the posted question?
 
setInterval not jQuery(".nb-tabbed-head li a").setInterval
 
@Meredith
do you mean like this ?
setInterval (function(){

e.preventDefault();
var bt = $(this);
var bts = bt.parent().parent();
var where = $(this).parent().parent().parent().next();
var nbs = bt.parent().parent().data('nbs');
var nop = bt.parent().parent().data('number_of_posts');

cat = bt.data('cat_id');
if (cat === '') {
cat = bt.data('parent_cat');
}
where.parent().find('.show-more').find('.nomoreposts').remove();

jQuery.ajax({
type: "post",
url: nbtabs.url,
dataType: 'html',
data: "action=nbtabs&nonce="+nbtabs.nonce+"&cat="+cat+"&nbs="+nbs+"&number_of_posts="+nop,
 
Yes
 
2:06 AM
Didn't work
 
Of course it didn't work
There's one more issue
At least one more
 
Come on
what is it?
 
You gotta try first
 
try what?
 
Try to figure out what's wrong
 
2:08 AM
That's unexpected solution
but thanks anyway
 
hello
 
@Donnie 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.
 
a tad bit of help please
I need a bit of help in using Disqus. It has a global like comment pool and I'd like to individualize this to a single post.
 
3:08 AM
Build your own comment system instead! Problem solved.
 
3:55 AM
`setInterval (function(){

e.preventDefault(); ` u need to pass 'e' as argument
 
4:07 AM
 
 
2 hours later…
5:54 AM
Why so quiet?
 
6:14 AM
@indieblue You're in India. The rest of the computing world sleeps or is just awakening.
 
I agree. :)
 
6:43 AM
@dystroy "the rest" is too broad... almost all of the asia wakes up at pretty much the same hour..
 
@AwalGarg Is Asia awakening right now ?
 
@dystroy They are already awake, and off to their work! I am extremely lazy, so I woke up late... its 12:15PM here :D
@dystroy also, there are many MNCs here, who make employees work according to the timings of the country they are based in, so schedule is different for different people... there are night jobs too, ya' know.
 
!!s/computing world/chatting computing world/
 
@dystroy @indieblue You're in India. The rest of the chatting computing world sleeps or is just awakening. (source)
 
!!s/in India/on Earth/
 
6:49 AM
@AwalGarg @dystroy @indieblue You're on Earth. The rest of the chatting computing world sleeps or is just awakening. (source) (source)
 
That doesn't make sense
 
Does anyone knows what is $$ in console ( chrome) ?
 
!!s/sense/money/
 
@AwalGarg That doesn't make money (source)
 
@RoyiNamir never seen that... what command did you put in?
 
6:51 AM
 
@RoyiNamir It looks like an alias to document.querySelectorAll
 
it is not document.querySelector nor ...All
 
0
Q: What is the name of the manga which depicts Hitler as a Super Aryan?

Madara UchihaI've come across the following picture, can anyone please tell me what's the manga name?

 
@SecondRikudo oh the silly anime again!
 
@RoyiNamir Why do you say it's not document.querySelectorAll ? All the tests I did points to that
 
6:53 AM
Yes I just checked , via $$=== document.querySelector which returns false
but I guess it is not the same reference
 
It would have to be document.querySelectorAll.bind(document) and bind creates a new function, so you can't test this way
 
@dystroy You're right. jsut tested on IE11 : and look at the result :
function () { return window.document.querySelectorAll.apply(window.document, arguments); }
 
yeah
 
tnx. (I never knew this command $$)
 
@RoyiNamir Neither I
This was a smart move from browser implementors, $ and $$
 
6:56 AM
So $ is jQuery , $$ is ...selectAll , and $[\d] is the inspected element....
great.
let's see what they will come up to with another $ sign :-)
@dystroy hold on , I was wrong
WTF^2 ?
 
$ isn't jQuery
 
^ :-)
 
unless you have jQuery imported in the page
 
yes...that what my pic says ^
ok. learning 2 things at 1 day is great.( and its only 10 am ) :-)
I want to see the man who has balls to use $ or $$ in his code... hahaha
(due to its limitations in psuedo selectors....)
 
@RoyiNamir how your screenshot looks jagged at edges?
 
7:12 AM
@RoyiNamir You can't use those in your code, it's only valid in the dev tools
But yeah, I use $$ and $ server side in miaou
 
you need to link to miaou xD and also say that it is super amazing awesome bla bla :P
 
@SomeKittensUx2666 @ircmaxell is one at google iirc
 
var	$ = $$.load(body)
Am I the only one who just got logged out of SO ?
 
I haven't
 
neither have I..
how do I monitor all new JS questions which are not tagged jquery/anyOtherFramework... only javascript/html/php/css/JSON ... (no node.js, angular and whatever there is)..
 
7:28 AM
@dystroy yes, but it frequently happens to me too
 
7:42 AM
12
Q: Document ready form submission and browser history

SilverlightFoxI have the following code in my page to submit the form on the page automatically when the DOM is ready: $(function () { $('form').submit(); }); However, on the next page if the user clicks back on their browser it goes back to the page before this one rather than the page with this code o...

I've answered with sources for Firefox but I didn't find any information regarding chrome. Any one ?
 
i am proud of my girlfriend :->
for not being as dumb as my colleagues
 
@AbhishekHingnikar Congrats
 
Classmate : "with itunes home sharing a song is never stored on your phone, you can play it live".

Her : "Err, it technically has to come to your phone one way or another to play.. dude its computers not magic"
Classmate : "No nothing comes to the phone the music just plays"
classmate is 4th year student in computer science and has read about live streaming in syllabus :P
 
@AbhishekHingnikar that is why he couldn't!
 
@AwalGarg nah my girl also helps me debug applications, and writes test cases :P (that i usually i don't)
 
7:46 AM
@AbhishekHingnikar waaaat? o_O, has she ever been here?
 
I am pretty sure you won't have even told her about this room...
 
she has watched me chat here sometime.
 
Is there a Bluebird Promise equivalent to $q.defer()?
 
she'd make a great software engineer but shes not interested, she only does it for me
@SecondRikudo hell yes
 
new Promise(function(resolve, reject){


});
 
@AbhishekHingnikar Basically, I'm in Angular and I want to replace Q with BlueBird
 
@SecondRikudo you can.
 
Let me try that.
 
8
Q: How do I use Bluebird with Angular?

Benjamin GruenbaumI tried using Angular with Bluebird promises: HTML: <body ng-app="HelloApp"> <div ng-controller="HomeController">{{name}} {{also}}</div> </body> JS: // javascript var app = angular.module('HelloApp', []); app.controller("HomeController", function ($scope) { var p = Promise.delay(100...

@SecondRikudo ^ Benji wrote an amazing q & a on it.
 
7:50 AM
I know, I've read it :)
 
My promise library in Swift works! Well, kinda
 
Good morning Benjamin.
 
Morning
 
node-webkit === awesome sauce
 
7:57 AM
I think microsoft should just use node-webkit over their crappy winjs runtime and rather add their "apis" to the node-webkit engine :P
 
@AbhishekHingnikar I've this (and also @BenjaminGruenbaum if you have the time)
angular.module('d3', [])
    .factory('d3Service', ['$document', '$rootScope',
        function d3ServiceFactory($document, $rootScope) {
            var d = new Promise(function (resolve, reject) {
                var scriptLoad = function () {
                    // Load client in the browser
                    $rootScope.$apply(function () {
                        resolve(window.d3);
                    });
                };

                // Create a script tag with d3 as the source
                // and call our onScriptLoad callback when it
 
Why the $rootScope.$apply???
 
@SecondRikudo why dont you use the d3 directives?
 
Oh yeah that fixes a bug in IE9 I believe
 
8:00 AM
@DrogoNevets What do you mean?
@BenjaminGruenbaum Oh, I don't care about IE9
So.. just resolve?
 
@SecondRikudo there are some d3 directives for angular out there
 
@SecondRikudo I believe so, yes, it already schedules a digest
 
Let's try that
Okay, that seems to work :D thanks
Now my problem lies elsewhere
Now I'll take @BenjaminGruenbaum up to the challenge and try to inject Bluebird as a service :P
Although, Benji, can I do that without $q? XD
(And without dumping the Bluebird code inside of the factory, obviously :P)
 
in Tavern on the Meta on Meta Stack Exchange Chat, 1 min ago, by Jan Dvorak
tex spam gone, webapps spam still hovering at -4
 
user3117575
Hallo
 
8:14 AM
@Xero 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.
 
@SecondRikudo sure you can inject it as a service
 
yfw you think about a certain entertaining mind activity @Loktar @rlemon
 
Just create a bluebirdProvider, although you really don't need to
 
@JanDvorak Flagged. I have no idea of the existence of that subSE minutes before... And I still don't know what it is
 
Promises are such a universal primitive when using them that DI won't really help a lot
 
8:16 AM
ah
 
@dystroy all about web applications. "I have tried google reader, but it seems to be down" "how do I delete a post in facebook" ...
 
@SecondRikudo so does lunch work for you today?
I'm more mobile than usually and can move a bit around Tel Aviv
 
@BenjaminGruenbaum Yup
 
So you wanna come to me?
 
8:18 AM
Where are you?
 
@Mr_Green it's not looking for debugging advice...
 
@BenjaminGruenbaum Have Hangouts?
 
Sure, at my personal email inglor@gmail.com
 
user image
2
 
8:21 AM
@JanDvorak OP is asking for code right? without showing anything.
 
@Mr_Green the first offered dupe looks close enough, though
 
@rlemon my coworker says your last shot is way over his head
 
@Mr_Green that might be too broad, but the debug-need-code doesn't fit
 
keyframes shut him down :P
 
ohh ok
 
8:24 AM
@JanDvorak ain't calc the answer?
 
@AwalGarg no need for a calc, is there?
 
@JanDvorak the css calc function, I meant...
absolute positioning with left:0 and right:0 would work too... the question is not good. I will downvote..
 
0
Q: Decorating ng-click inside ng-repeat

MiszyI need to decorate the ngClickDirective in order to add a custom listener. This code works fine on ng-clicks which are not nested inside of ng-repeat: $provide.decorator('ngClickDirective', ['$delegate', function ($delegate) { var original = $delegate[0].compile; $delegate[0].compile = f...

:< halp
 
@AwalGarg no need of even positioning. using just display: table-cell is enough
 
@Mr_Green I don't like css tables... and I don't like any table anyways.
 
8:36 AM
How about flexbox?
 
@Miszy nice one... but not supported in old browsers :(
 
what kind of old browsers? Like OLD old?
 
Hey can i use git for local submodules
ie submodules without remote ? could be uber noob question
 
This is actually a good question :D
 
oh thankx :->
git submodule add /path/to/repo
 
8:40 AM
@Miszy like netscape :D
 
@AwalGarg lol
 
xD
 
the best browser ^
node-webkit xD
 
@AbhishekHingnikar hindi lol!!! rofling man XD
 
@AwalGarg locale detection
 
8:42 AM
whatever....
 
ps fucker don't laugh on your own mother tongue
 
O_o
Calm down guysh
 
I am not laughing on my mother tongue, I am laughing on how it is displayed... hinglish!
 
its not hinglish
hinglish ye hoti hai bc [/bakhchodbilli]
 
8:43 AM
@AbhishekHingnikar aisa kuch nahi hai...
 
@AwalGarg badde hindi devanagri me hinglish nai hindi kehlati hai :P
 
Right?
 
!!urban hinglish
 
@AbhishekHingnikar hinglish term for the combination of hindi, punjabi and english language - the language Hinglish.
 
combination not "mixture"
 
8:45 AM
@AbhishekHingnikar logon se judne or "kya" karne me?
 
@AwalGarg thats mixture i won't call it combination not even a mixture
since there is "no word" facebook in hindi facebook is keeping its brand name
 
@AbhishekHingnikar then why is signup not written in "hindi"??
 
As much as i hate reading hindi cause english is my second language and hindi is third. (marathi being first) i still feel proud to see it :P
@AwalGarg create a word for sign up in hindi ? which is as widely accepted as sign-up ?
 
दस्तकत ऊपर
 
its actually facebook avoiding to mix-up two seperate scripts
@AwalGarg yeah my ass anybody will understand it :P
 
8:50 AM
@AwalGarg if it gets flagged, I will validate
 
@AbhishekHingnikar I don't wanna get into a "patriotic war"... but I honestly don't see any point in being proud on a "language"... but lets cut the topic please.
@JanDvorak do as you like :)
 
@JanDvorak if it gets out of hand I'll just mute :D
 
@AwalGarg well, hebrew was the original human language, and that's a positive
 
לחלוטין לא נכון - google translate that :D
 
@AwalGarg no its more of that "we have a god-damned language of our own" propaganda... personally i'd prefer if we all communicated via thoughts in a single language ... no confusions that way.
 
8:52 AM
@BenjaminGruenbaum then there will come complaint rooms, offtopic non-answers, mods telling us to give them a second chance... ;-)
 
I think this is going analogous to the religion thing, which I hate... fucka ya all! I am outta this.
c u later
!!afk
 
@AwalGarg cya
 
The thing is, if I'll mute someone I'll just leave for a few hours too, so unless they intend to call me on the phone :D
cya :)
 
@AwalGarg they are faster than using table html tags
 
@BenjaminGruenbaum how come it's not? At the very least, it's the language spoken by God's formerly favourite nation.
 
8:54 AM
@BenjaminGruenbaum hebrew almost extincted didn't it ?
 
@JanDvorak It's definitely not the first language.
 
@BenjaminGruenbaum what is, then?
 
@AbhishekHingnikar not really, Jews always knew biblical ebrew,
The origin of language in the human species has been the topic of scholarly discussions for several centuries. In spite of this, there is no consensus on the ultimate origin or age of human language. One problem makes the topic difficult to study: the lack of direct evidence. Consequently, scholars wishing to study the origins of language must draw inferences from other kinds of evidence such as the fossil record, archaeological evidence, contemporary language diversity, studies of language acquisition, and comparisons between human language and systems of communication existing among other animals...
 
@BenjaminGruenbaum no amir was telling me once that it kinda grabbed its hold back a few years back.
 
@AbhishekHingnikar it was 'revived' as a modern tongue but it was always spoken in religious contexts.
 
8:56 AM
oh like sanskrit (the original indian language)
i wonder why heiroglyphs are not in unicode
darn it tut-en-khamen would love to send messages in his own script.
oh wait they are !
 
@Mr_Green ^ iirc mesopotamians were kinda grand daddy of the "aryans" right ?
ps a lot of words are shared or morphed
 
@AbhishekHingnikar I don't know about mesopotamians.. so no comment :)
I would really appreaciate if someone find out who morphed whose language.. checking here
 
> one thing i'd love is going to bangalore and being able to speak in either english or hindi
 
I think it can't be proved though
 
9:04 AM
@Mr_Green i think they both morphed a common ancestor
 
sanskrit goes with Devnagri right.. iirc?
 
if you notice indic scripts can be spoken easier with an wide open mouth and a dancing tongue :P, european languages tend to have a less open mouth and straight tongue
@Mr_Green yeap devanagri is the script
 
I better find out.. would be interesting
 
have look at pashto and farasi aswell and hebrew and.. well just ask somebody whose a language engineer
 
and now google's 2 os's collide
chrome tablets :o
 
is there the heredoc string thing in JS too?
 
!!google heredoc
 
@AwalGarg no
 
9:44 AM
@dystroy I already did that but it returns only php things which I already know... and googling for js links to SO which brutally declines the existence of heredocs in js...
 
This syntax is strange...
 
@dystroy it exists in bash too
 
bash likes weird syntaxes
 
@dystroy it is awesome! don't say a word against heredocs before using it...
@FlorianMargaine :(
 
I don't think heredoc is awesome
I prefer go's way
I like the fact that we can have multiline strings however
 
9:46 AM
in go too
 
heredoc is awesome if you use it the way it should be used... it should be used for multiline strings... echoing large strings which require parsing. and you can do a bit of templating in heredocs too. I love it.. :D
 
s := `this
is a multiline string
in go`
 
also, most of the code writers will keep proper syntax highlighting with heredoc but not with normal multiline strings..
 
@dystroy I meant that I like the fact that we can have multiline strings, where js doesn't have them. I also said that I prefer go multiline strings over php's heredoc :P
 
You do have multiline literal strings in JS
 
9:49 AM
@dystroy dat ugly codez, y u like it?
 
@dystroy ?
 
var s = 'some multiline\n\
string';
 
eww, y u no hate it?
 
@dystroy right, I forgot about that
 
@dystroy doesn't work in IE
 
9:52 AM
@JanDvorak it works, I use it in production and half my users have IE (9+)
 
I mean, in IE8
 
where to do heredoc feature request for js?
 
Nothing works in IE8
@AwalGarg nowhere, we don't want it
 
@dystroy I want it. where to do feature requests for JS?
 
@AwalGarg well, write a preprocessor, as you'll the only one to want it
 
9:54 AM
oh wait, I can google...
 
but seriously most often what you really need is to extract your string as a resource (in Go too, long pieces of multiline strings make a mess from the code)
 
I speculate this lack creeps into node.js too, right?
 
what lack ?
 
the lack of heredocs or the likes
 
esdiscuss.org is where you want to discuss this
 
9:57 AM
thanx :)
 
hum...
 
you have to propose this as part of the ecmascript standard
for the future version, probably ES7.
 
kk
 
take the time to search before, you don't want to bother everybody if it has been asked and rejected before... We are many to be spam registered to that list
 
sure
shit! it is sooo old :(
so can I bring it on again?
 
10:01 AM
Did you have at least had a look at the new literal strings (not called strings I think) of ES6 ?
 
Is it a good idea to use `this` in Angular controllers?
 
ain't sure, is it on mdn?
 
In ES6 you can do
var text = `First line
Second line`;
 
10:03 AM
nice... lemme check.
 
versus
final debate over here
 
@AbhishekHingnikar We need a testable version to decide, but the second one is probably better
snapick.me is still dead
 
lemme get one up by eve, but it will be a static repo, our amazon deployment sucks [cause of the custom shit we have]
 
@AbhishekHingnikar this (second) one!
@dystroy it is good... when is this coming out?
 
@AwalGarg for now it seems to be only available in Firefox
 
10:10 AM
kk...
 
(firefox version 34...)
 
cap runs FF right?
!!> var me = "great"; console.log("${me} me");
 
@AwalGarg "undefined" Logged: "${me} me"
 
1) not the right quote
2) probably not the right version of FF too, let's try
 
10:14 AM
@AwalGarg "undefined" Logged: "${me} me"
 
!!> var s = test; console.log(s)
 
@dystroy "SyntaxError: illegal character"
@AwalGarg "undefined" Logged: "${me} me"
 
@CapricaSix kindly upgrade your browser, Ms....
 
@AwalGarg wat?
 
@JanDvorak it no run ES6 template strings code...
 
10:16 AM
@JanDvorak Awal wants caprica to run on FF34 in order to test template strings
 
@AwalGarg nothing runs ES6, you have to specify which feature you want
 
@dystroy yea right..
 
!!> `${me} me`
 
@JanDvorak "SyntaxError: illegal character"
 
10:19 AM
!!> navigator.userAgent
 
@dystroy "5.0 (Windows)"
@dystroy "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
 
why windows??
 
!!> upgrade.from(31).to(34)
 
@dystroy "ReferenceError: upgrade is not defined"
 
lol
oh btw, @dystroy @JanDvorak do u know why document and window are not defined for cap?
!!>document
 
10:20 AM
@AwalGarg "ReferenceError: document is not defined"
 
@AwalGarg yes
 
!!> Object.keys(self)
 
@JanDvorak ["global","whitey","exec","console","setTimeout"]
 
o.O. so I can't steal her cookies? :(
 
10:22 AM
@AwalGarg make your own
 
@JanDvorak I meant her browser cookies... like this:
>document.cookie
 
@AwalGarg "ReferenceError: document is not defined"
 
it runs in a webworker
 
!!> setTimeout( function(){ console.log( typeof(this) ); }, 200 );
 
@AbhishekHingnikar TypeError: cyclic object value
 
10:29 AM
oh okay
 
@AbhishekHingnikar "undefined" Logged: "object"
 
10:45 AM
@AwalGarg , @dystroy 1drv.ms/Vl4SRO
rapid prototyped proudly with powerpoint :P
 
10:59 AM
Are you the "author" of that green background ?
 

« first day (1397 days earlier)      last day (3550 days later) »