« first day (1421 days earlier)      last day (3542 days later) » 

> How to setup a google mail which delivers to multiple users ?
 
m59
A rare kind of double irony: how to remove duplicates from arrays [duplicate]
 
m59
I've never seen anything quite like it.
 
m59
8:09 PM
How often does the subject matter of something incidentally end up tagged to the end of it in code form?
 
Good bye twitter (just the web client)
11 ?
 
I'm doing something stupid here: jsfiddle.net/9dr4rb40
what am I missing?
I want to check if y has inherited from x
Oh wait, it's the inheritance pattern
I think?
anyone?
ah, got it
 
8:26 PM
@snapickme
An app to make life better
1 tweets, 1 followers, following 12 users
 
Hello everyone
 
@Tanker 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 the following "problem" in this $("#a,#b,#b").fadeOut(1000, function() {//foo}); ... it works BUT it doesn't wait for the animation to finish... but if I use only one ID $("#a").fadeOut()... it works fine... so ha can I use multiple ID's? ...
 
Can you create a JSFiddle demonstrating your problem?
 
sure.. just a min...
 
8:39 PM
hi
@rlemon I've got a present for you
 
see if this works...
 
@SomeKittensUx2666 is it nude?
 
here is the Update... jsfiddle.net/nCE9u/1957
 
@AbhishekHingnikar Wow, nice song. I'm a softy for violins in songs ^_^
 
:-)
i figured out the kind of music you might like from the ones u sent me that day
 
@rlemon I have a surprise for you too
 
which ones had violin that I sent you?
 
This song is going on my grooveshark list
 
8:43 PM
@Neil none
 
Am I so predictable then?
 
nope... i used to work at a radio, online
 
That sort of thing give you a talent for knowing people's song preferences?
 
kinda sorta
 
This is the sort of song I wouldn't mind listening to while coding
 
8:45 PM
lindsey is awesome btw
 
@Tanker did you read the docs?
> If multiple elements are animated, it is important to note that the callback is executed once per matched element, not once for the animation as a whole.
 
the kind of music i hear while programming is :
warning .. its hardcore dubstep, if u hate dubstep don't even click
 
@some
 
It's not bad, though I'm not sure I'd like to code with it
 
clicks and expects some weird Abhishek style blubstep
 
8:49 PM
@EdwardZuckerberg as in "A sentence. Another sentence" => ["A sentence", "Another sentence"]
 
What you need is a good regular expression, not a library
 
@SomeKittens nop, not in full, so thank you for pointing that out, I should read more... so in other words I have to check if any element is "visible" at the moment then hide it if any and then execute the animation to show any other element...
 
And honestly I doubt there is one that exists that covers every case
 
@EdwardZuckerberg You still don't need a library for that.
correct
 
\.\s
 
8:52 PM
and stop claiming you're related to Mark
 
or \.(?=\s|$)
oh?
 
@AbhishekHingnikar I listen to grooveshark.com/s/Aerodynamic/5arqLU?src=5 when I code
I think I like the fact that it is somewhat repetitive (otherwise it is too distracting I think)
 
@KendallFrey lol you are really too judgemental...
 
@Neil That's how I like my music too
 
@EdwardZuckerberg nltk*
 
8:54 PM
@rlemon thoughts?
 
@AbhishekHingnikar You're just quirky, accept it :3
 
@KendallFrey And I am, whatever you say I am, If I wasn't, then why would I say I am, but even cap says undefined is your daddys name, do you have any idea who came :3
 
@AbhishekHingnikar The amount of sense in in that sentence is pretty similar to that in a dead man's body.
 
@KendallFrey oh comon you got it :->, i am sure you are pervert enough to get that =)
 
8:57 PM
@SomeKittensUx2666 ?
 
I was once listening to Everybody wants to rule the world by tears for fears when I realized that I mainly like songs that they used to play at the end of 80s movies
 
@AbhishekHingnikar Ed here is claiming he's Zuck's half brother. I told him to cut it out.
 
ahahaha
yeah right bro....
@Neil david guetta's music is also good for programming [for me atleast, its incredibly smooth and sits well in bg]
 
@Tanker use setTimeout imo
 
Chrome translated for me
Plus, I know the real Zuck. Not well, but enough to know you're faking.
 
9:03 PM
I don't understand how it asphalt 8 team did it, but their app resume on windows is kickass awesome
 
m59
var_config = require('config'); //config object
var config = Object.create(_config); // {}
theeee heeeccckkk
 
@AbhishekHingnikar Never heard of him
 
You have not heard of david guetta :o
 
@m59 unless it's a typo, you declared a global variable called var_config
 
@SomeKittensUx2666 sorry was preparing dinner
 
9:05 PM
ooh, food
 
okay, but gc shouldn't be needed
 
@Mosho BOOM
haha
 
also .filter is pretty slow
I'd just use a pool and mark them alive or dead
 
hmm
Do you have an example I could read?
 
function filterFn(types) {
    return function(el) {
        return types.indexOf(el) !== -1;
    }
}
Why does this not work as expected?
 
9:06 PM
Out of curiosity, how would one do freelance work?
 
var filter = filterFn(['star', 'unstar']);
 
check out the reset fn.
 
m59
@Mosho irrelevant...
var x = { foo : 'foo val' };
var y = Object.create(x);
it must be the require?
I don't understand how, though.
How could require stop Object.create from working!?
 
@EdwardZuckerberg Like I said, I know you're faking.
 
Whoever has heard of david guetta, raise your virtual hand
 
9:08 PM
I'm vaguely aware of him
 
Then I am uncultured
 
@rlemon thanks, I'll read it in a bit
 
at the very least use a registar if you are going to try to fake someone.
 
@SecondRikudo looks like it's working fine to me
 
@EdwardZuckerberg You are not Zuck's "Step" brother. His parents never divorced
 
9:11 PM
I'm sure you can figure it out on your own
 
@Mosho PEBKAC. Ignore me :P
 
"Edward" is the name of his father
 
@EdwardZuckerberg registar (Portugal) to register, to record
 
@EdwardZuckerberg Your real name is Ahmet Ayan, and you're from Istanbul.
 
4 mins ago, by rlemon
at the very least use a registar if you are going to try to fake someone.
 
9:15 PM
The owner of a domain is public information.
 
You collaborate with yourself? How charming.
 
And I wasn't kidding earlier - I was employee #1 at GeneratorLab, a company co-founded by Peter Yewell, an early Facebook employee. Feel free to look all that up.
(For everyone else Pete is not Wheatly)
He's actually a pretty awesome guy - went to his house for the super bowl
Uh, you don't
 
m59
no sense made at all :'(
 
@EdwardZuckerberg Now - please change your name/details to something a little more sensible or I'm going to mute you.
Impersonation is against SO's terms of service.
 
well, I'm not sure about that.
7
Q: Is it ok to impersonate a public figure?

Andrew GrimmAn answer to one of my questions has been commented on by the POTUS ... O RLY? While Jeff can't ask for the birth certificate of all the users, should suspected cases of impersonation be flagged by other users? Is it our place to be the impersonation police?

but it is frowned upon
 
9:22 PM
@m59 it does that with any object
 
@SomeKittensUx2666 no, Wheatly is Stephen Merchant. I thought that was common knowledge?
 
m59
...why!?
 
might be how node.js implements Object.create
 
m59
ahhh
WHY!?
lol
 
@TomW Wheatley, the Portal 2 character, is Stephen Merchant. Wheatly (no second e) is a particularly bad "programmer" I used to work with.
 
9:23 PM
oh, I see
 
@m59 +1 for Runnable
!!mute 4014815 24h
 
@SomeKittensUx2666 Please give mute duration, see /help mute
room mode changed to Gallery: anyone may enter, but only approved users can talk
@SomeKittensUx2666 Muted user 4014815 for 24h
 
@EdwardZuckerberg Bye!
 
@FlorianMargaine Belligerent user who was negatively impacting the room's SNR. Gave warning, no dice.
 
9:27 PM
I remember a trick that was used to have two variables point at the same array, so when I change one the other changes as well. Can anyone remind me how it goes?
 
a = b
 
var data = global.localStorage[key] = [];
data.push(1);
Will that work as I expect it to?
Will global.localStorage[key][0] == 1?
 
I don't think so
 
I think so
 
@SecondRikudo LocalStorage can only do strings
 
9:29 PM
Yeah, I know
'twas an example
 
if it wasn't localStorage, it would work fine
 
Protip: Don't put a debugger; in your animation loop.
 
@SomeKittensUx2666 protip: don't use debugger;
honestly there are rare cases where you need it...
 
What do you use?
 
breakpoints
 
m59
9:31 PM
@Mosho got it. It's doing what I expect, but not LOGGING what I expect.
 
@m59 interesting
 
@FlorianMargaine Breakpoints are nice, but debugger is easier when using browserify.
 
Use source maps ffs
 
m59
@Mosho the properties are on proto, which I can see in the browser, but not in node
 
@FlorianMargaine We do
 
9:33 PM
Then what's wrong with breakpoints?
 
It's easier to stick a debugger in when you're looking at the code, not a few seconds later when you're in the browser, digging through code
There are also cases where breakpoints w/ source maps don't work (Syntax stuff)
 
@m59 right, good one
 
Bugs? Report them :p
 
I'm not saying "never use breakpoints", I'm saying "There are times when debugger is easier"
 
And I'm saying these cases are rare imho
But I guess it's a matter of opinion
What horrifies me is colleagues who put one breakpoint per line in a function...
I mean wtf, that's what step over is for
 
9:38 PM
yeah, that's just dumb
 
so yea, I now own one of these
 
efficient
 
10:00 PM
Is this a memory leak?
  create: function () {
    var newItem = new this.item();
    this.items.push(newItem);
    return newItem;
  },
(because newItem will be referenced outside the function?
 
return this.items[this.items.push(new this.item())-1];
 
@SomeKittensUx2666 no
 
@SomeKittensUx2666 That very much depends
 
you'll have a reference outside of it, of course (and you want it, duh)
but the newItem reference will be GC
 
@FlorianMargaine ah, ok
@Zirak on what?
 
10:04 PM
Memory leaks in languages like js happen when you leave objects inside of obscure data structures (see: the DOM)
The reference to newItem outside will likely fade away, but the reference inside of this.items could be the memory clog.
 
I do manual GC on this.items
this.items = this.items.filter(function (item) {
  return !item.destroyed();
});
...clicking "Fixed font" un formatted it
 
If you clean up after yourself, and as Florian said the GC cleans up as well, then it's fine
 
cool
/17/++
 
@SomeKittensUx2666 i've done gc like that in canvas demos in the past and it was a bottleneck
what was better was to reuse particles.
for( var i = 0; i < this.items.length; i++ ) {
    if( !this.items[i].alive ) {
        continue;
    }
    // do your render/update
}
and the ones that are not currently needed you just pass over in the simple for loop for your render/updates
 
Yep, that's on the todo list
currently trying to get the player to fly around
and a math error causes them to zoom off the edge of the screen almost instantly
 
if (this.dx) {
    this.dx -= 1;
  }
I'm sure you can figure out what went wrong
 
film suggestion?
 
Princess Bride
It's got Sicilians, which are like Italians
 
Léon: The Professional
 
seems good
 
10:16 PM
@towc Modern Times
But "Princess Bride" comes first
 
@Zirak saw that already
 
Bill and Ted's Excellent Adventure
must see ^^
 
Cloudy with a Chance of Meatballs
 
Grounghog Day? Taxi Driver? Blazing Saddles? Le Voyage dans la Lune?
 
Cowboys vs Aliens
Revenge of the Nerds III
 
10:18 PM
Spaceballs!
 
JavaScript: The Movie
 
Gremlins! omg if you haven't seen Gremlins...
 
@rlemon my search engine only looks for italian results, can't tell if the part at the beginning (2 guys speaking in an italian district, probably in america) was said in italian or not originally
 
IN A WORLD
WHERE OBJECTS REIGN
 
10:18 PM
@Zirak seen the first 2
 
ONE PRIMITIVE
 
@Zirak is that a thing?
 
DECIDED HE'S HAD ENOUGH
THE STORY OF null
 
@rlemon plz no
 
I'd watch it
 
10:20 PM
Army of Darkness!
 
Who's up for TS & beers?
 
I've got a bottle of wine
is that good enough?
 
I should be sleeping...but just got back from a concert, and can't unbuzz
 
Hello, 'n srry, any ideas for this?
0
Q: How to switch to raw HTML in contenteditable for in place editing?

user2284570I'm writing a user script to edit the whole html page: one of the features I will include would allow to edit the selected text as raw HTML. This look easy, just insert<xmp>at the beginning of the selection, and </xmp> at the end. // from http://stackoverflow.com/a/8288313/2284570 var insertHtml...

 
10:29 PM
@FlorianMargaine So I can't upload jsh to GAE...because jshell is already taken. So is js-shell and derivatives.
I lost
 
._.
I want mah jsh
 
FRIGGIN' FLOATING POINT MATHS
 
There's a save button and everything. I just need a GAE id.
 
@SomeKittensUx2666 so Octavian stopped hosting ??
 
10:34 PM
any case, use my domain
I have it running on my server
 
Also, lulz, I crashed magit mode
Waitaminute...
 
@Zirak @FlorianMargaine TEEEAAAAMMMSSPPPEEAAAKK
 
and @Zirak you can have a free account on heroku fwiw
 

« first day (1421 days earlier)      last day (3542 days later) »