« first day (1795 days earlier)      last day (3151 days later) » 

7:00 PM
Oh, so I was right, @Cereal.
 
move to a language that has the concept of null. :)
 
@FlorianMargaine what guy?!
 
@Luggage nil or gtfo
 
@Claies I have custom 404 pages for some of my subfolders
 
ok, on what server stack?
 
7:01 PM
Swift has nil
 
JS has two nulls.
100% better than most languages already.
 
But you need to use Optional notation
 
so your site is what, wordpress?
 
It's been more than 2 months since Apple announced a Linux port for Swift, not a peep since then :S
 
7:02 PM
no Its just my own html etc.
 
Are you using a .htaccess for 404s?
 
crl
!!> null==undefined
 
@crl true
 
I checked that file
 
user406009
@Callum What's the primary argument for Swift on Linux? Code sharing between iOS apps and the backend?
 
7:04 PM
@rlemon I got my battery and mouthpiece/atomizer. Just waiting on my liquid (should come in the mail by Thursday). I was able to switch my order to 6mg instead of 12
 
@Lalaland I'm mostly wanting it so I can learn and play with Swift without forking out eyewatering amounts of money. I suppose there's actual arguments too.
 
I'm getting sick of smoking making my throat dry.
 
@Callum they're probably working on the Swift 2.0 release for when iOS9 comes out
 
@Callum I check that file already
 
so is that a yes, you use an .htaccess file for 404s then?
 
7:04 PM
@Nick start vaping pleb
 
once I get my juice
 
@benlevywebdesign Yeah, but are you setting your 404s within a .htaccess file?
 
drink beer while you smoke, pleb
 
@Nick \O/
 
wait hold on
 
7:05 PM
I went with the exact parts you told me to get, since I know nothing
 
@SterlingArcher Probably, just I'm impatient and a teenager.
 
the istick and whatever
 
they are a common 'starter' setup
and they should actually be satisfying
 
It put together really nice
 
but when you get it, ping me, I'll show you some tricks to get you going
 
7:06 PM
@SterlingArcher I forgot your name.
 
Um
My.. real name?
 
Jor something.
 
some tricks? What? like how to smoke through your eyes?
 
Jor*** ********
 
RUJordan
 
7:06 PM
Problem Solved! I didn't put an .htaccess file in /aaudining/
 
You guys know way too much about me
What's my middle name?
 
J or dan? alex? and her?
 
you keep posting it.
 
Michael
 
Jordan. I don't remember the last name, ut i remember seeing it somewhere
 
7:07 PM
21 secs ago, by rlemon
J or dan? alex? and her?
 
I didn't ask for his name, dickwads.
 
I'm being cryptic
 
Carmichael.
 
Just wanted to let him know that I forgot what it was.
 
@Zirak shut up Tony
 
7:07 PM
Jordan Jquery
Nobody knows my name
 
That's it.
 
@Zirak go to hell old man
 
You're not my real mother!!!!
 
@Nick no, nobody knows my name.
 
Dick Nugger
 
7:08 PM
My name is super secret and shit.
 
Nugget.
 
@Callum Nobody cares about you.
 
@Zirak's name is super secret. Living in Iceland and stuff.
 
@Zirak I know :(
 
@FlorianMargaine Looks that way
 
7:09 PM
no one knows my name tee hee
 
ok, Bob.
 
But we all know what @SomeKittens' name is
 
skittles
 
Do we?
 
Randall
 
7:09 PM
no, his wife calls him skittles
 
Thanks @Callum
 
his name is skittles.
 
!!tell Callum google SomeKittens
 
It's Skittles
 
7:10 PM
!!google rlemon
 
interesting.
 
crl
!!s/K/Sp/
 
@SomeKittens' name is Kevin
 
@crl @Callum * SomeSpittens (Randall Koutnik) · GitHub ; SomeKittens's gists · GitHub ; User SomeKittens - Stack Overflow (source)
 
7:10 PM
Fun fact: You probably won't find me on google.
 
a challenge.
 
crl
damn.. wanted to replace the second match
 
!!google Zirak
 
chatbot
damn
 
7:11 PM
@Zirak fun fact: Benjamin found you on Google inadvertently
 
"Me" as in "Zirak"
 
usually it's vocalized as skittens (pronounced Skit-ins)
 
Can't tell if Justin Lowe or Hassan Zirak
._.
 
that's one good thing about having a really common name
 
crl
ungooglability
 
7:12 PM
I'm a white male, so I'm not terribly worried about my real identity getting out.
recruiters, but meh. They entertain me.
 
I really don't care.
come at me
 
Does d3.js not support multiple events for one function?
 
@SomeKittens Burn in hell, cist misogynist
 
I get occasional feedback from my blog, which is fantastic.
 
for a moment I thought that said I'm a white whale
 
7:13 PM
.on("mouseout mousedown", function () {
    tooltip.transition()
        .duration(500)
        .style("opacity", 0);
});
 
@Claies call him ishmael
 
WHITE WHALE
HOLY GRAIL
 
This doesn't work, but 2 on.("event") will work
 
@rlemon That's not the whale 1@#*$#F(IDCSAY*
 
Speaking of, someone wants to translate it into Russian.
 
7:13 PM
But it seems silly to have two event handlers that yield the same function
 
@Zirak if he's saying "i'm the white whale" then whoever is ishmael
!@#!@#$!@#$!@#$#%^#45634%^#$5635
 
@rlemon Don't talk like that to your mother!!!!
 
I WISH I WAS ADOPTED! :runs crying:
 
@SterlingArcher You could write one function, then delegate it to each?
 
@rlemon Great news!
 
7:15 PM
I'd rather just have a multiple event selector :(
 
@SterlingArcher Override on like a boss
 
future-proof
 
@SterlingArcher #pullrequest github.com/jquery/jquery
 
Brain fart - what's the thing the browser sends that's all 'Mozilla/Gecko 6.0 etc, etc'
 
7:16 PM
User agent?
 
Whoever sent me to bash.org...I hate you
@SomeKittens Useragent
 
AHA
thanks, @Callum
and Zirak, I guess
 
@Zirak clearly that's my only option now.
 
2.9
 
If you'll excuse me I must dedicate an entire new framework to this one issue
 
7:17 PM
jquery++
 
queryJ
 
jQueryNext
 
jQueries
 
Jokes on you nerds, this is d3.js
 
Shun!
 
crl
7:18 PM
gQuery (the Google version)
 
@Zirak lul
 
@SterlingArcher #pullrequest github.com/d3
 
ngQuery
 
Bet you $4 there's iQuery which is an Objective-C port
 
clearly dawkins got owned.
 
7:20 PM
1h22? wot?
 
That's a long rap battle
 
that dude always looks like he's under the influence. I think he has had too many chemicals explode in his face.... I always wondered who picked him as a scientific authority.
 
@Zirak Can't find an iQuery which is an Obj-C port...
 
I think he changed the spelling of his name, it used to be Neil "de grass" Tyson, given to him by his smoking buddies.
 
7:23 PM
@Callum Just keep looking tries to get Xcode
 
Xcode is confusing
 
user1648409
Hi, someone knows a good way in JS to check if array a is part of array b or the other way around? like [4,5,6] is obviously part of [1,2,3,4,5,6,7]. Thanks :)
 
what does it mean if this is undefined?
 
@NathanJones Show your code
 
      return new Promise(function () {
        resolve(saveResp);
      }, function () {
        if (saveResp.indexOf('Authorization') !== -1) {
          throw 'Request failed';
        }
      });
 
7:25 PM
17
Q: check if an array contains any elements in another array in Javascript

AlexI have a target array ["apple","banana","orange"], and I want to check if other arrays contain any of the target array elements. For example: ["apple","grape"] returns true; ["apple","banana","pineapple"] returns true; ["grape", "pineapple"] returns false; How can I do it in Javascript?

please google. and if you did, improve your google-fu :D
 
I have a breakpoint on the second line, which is where this is undefined
 
user1648409
@rlemon i already found that post. And thats not what i mean. I need to find the COMPLETE array a in b and in the EXACT SAME order
 
@Callum see above
 
user1648409
@rlemon so [4,5,6] is part of [1,2,3,4,5,6] but not part of [6,5,4,3,2,1]
 
I'm also getting resolve is not defined there
 
7:26 PM
@Shiuyin so modify the function
also, are you sure
because I'm pretty sure that function checks order
 
user1648409
hm ok, will try it, sec^^
 
and when I say pretty sure, I'm like 99.9% ceild sure
 
user1648409
thanks anyway ;)
 
[4, 5, 6] `isInfixOf` [1, 2, 3, 4, 5, 6]
 
what did I do wrong?
 
7:28 PM
Oh. Fuck me.
 
@Callum "TypeError: [4, 5, 6] is not a function"
 
he's trying to look leet with haskell code
 
that's right :)))
 
key word there was "trying"
:D
 
That's why I didn't recognise it, then.
 
7:29 PM
come on
school starts tomorrow :c
 
starts late there
 
I've been at school for ~4 weeks now.
 
kids have been back to school for weeks here
 
nvm, figured it out
 
School starts.. yesterday or last week around here
 
7:31 PM
every school starts in the 21st of September, but for some reason that is unknown, our school decided to start in the 16th.
 
Double the learn
 
@catgocat here schools start around sept 5th +- 3 days
 
and how long are your summer holidays?
2 months perhaps ?
 
2.5 months?
it's been a while since I was in school
 
yeah I know
olde
 
7:32 PM
We have 6 weeks...
 
I haven't been to school in 2 years now
 
2004 was my last year.
 
Well.. in a classroom. I went down to school a bit to get fucking drunk a few times after I graduated
 
Earlier today for me :(
 
2013 baby!
 
7:33 PM
lol
 
@rlemon Are you 28?
 
@Shiuyin Do you want to elements to be in that first array or any number of elements ?
 
@catgocat 29
 
user1648409
@ZahidSaeed all!
 
Wait.. @rlemon did you go to college?
 
7:38 PM
nope
 
Ok I thought not
 
var array_1 = [1,2,3,4,5,6],
	array_2 = [0, 1,2,3],
	flag = false;
for(i = 0; i < array_2.length; i++){
	if(array_1.indexOf(array_2[i]) > -1){
		flag = true;
	}
	else{
		flag = false;
		break;
	}
}
console.log(flag);
 
user1648409
@ZahidSaeed those elements contain labels of charts and i need to compare if chart a is part of identical to chart b or the other way around in order to be able to parse them into one chart with 2 curves
 
Do people pay to go to college in Canada?
 
But for a second I was like.. did he graduate college in 2004? That would have made him like.. 14 lol
 
7:39 PM
lol
 
@rajuGT 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.
 
@SterlingArcher School /= College
 
@Shiuyin you didn't test that function did you
:(
why do you insist on making me sad?
 
@Shiuyin That would return false cause 0 is not in the first array
 
user1648409
@rlemon i am testing it right now, but i also need to find the exact positions WHERE a is in b or b is in a^^
 
7:40 PM
Thanks for the welcome @CapricaSix
 
user1648409
@ZahidSaeed y, i just need to add positions now ;D
 
map to retain index
 
@Shiuyin then you have to compare 1:1 the arrays
 
Who the fuck are these people https://github.com/Zirak/followers
Most of them aren't from this room, how do they know me
 
seriously.. there is like a bajillion ways to do this
 
7:40 PM
bajillion
 
user1648409
@rlemon y i am on it
 
you would get more help if you gave us your attempt and not just asked for a solution
 
no questions, just hanging out to see watsup with you guys
 
what's up *
 
@Shiuyin What positions ? I didn't get it
What exactly you wanna do ?
 
7:41 PM
*yep :P @catgocat
 
user1648409
@ZahidSaeed if a is a part of b or b is a part of a i need to know where it starts^^
 
@catgocat not this guy
I crack me up
 
@Shiuyin U mean you wanna get the first element matched position right ?
 
@KendallFrey idk, that might be too dark.
 
user1648409
@ZahidSaeed y, but only if the whole small array is in the whole large array
 
7:43 PM
what code do you have so far?
 
from what we know, none.
 
user1648409
brb
 
@Shiuyin I mean you wanna get the index of that whole small array or that element in that small array ?
 
and what practical problem is this trying to solve in the first place?
 
7:44 PM
@Zirak I'm not even on this list
 
I know I'm not French, but this doesn't look like an Arnaud to me.... github.com/kbok
 
@Claies nor this: twitter.com/kbok
 
I'm not sure I even want to know what that is....
 
user1648409
@ZahidSaeed , @rlemon: got it now, thanks :)
 
7:53 PM
How do you guys send a link ? :P
@Shiuyin How ?
 
[link text](url "optional title")
 
@Zirak lmao
 
is there an easy way to 'migrate' issues from one repo to another?
or am I asked too much
 
user1648409
@ZahidSaeed the reason im doing this is: i have x charts (found simplicity lets say 2). i want to merge those charts into one. the arrays to check are their respective labels on the x axis. case 1: they are identical - easy. case 2: they are part of each other so i can partially merge them. thats why i did it ^^
 
@rlemon You were supposed to make a branch
 
7:54 PM
I KNOW
but I did not
because It is a re-write of a fork
 
hmm
 
Still a branch
 
too late now
 
It's never too late
Just make a branch :P
 
no, I'll ask someone else :P
 
7:55 PM
Seriously, you can just make a branch, cp into it, and commit
It'll be jlorious
 
I am not merging this back into the other repo. not gonna happen.
it should have been its own repo from the getgo
 
many of you are having more than 10k points. like @rlemon @Claies @KendallFrey
 
we payed off the mods
 
from how long you guys are contributing to stack overflow?
 
*paid
@rajuGT years
 
7:57 PM
About 6-8 weeks
 
@rlemon that's how you're supposed to get 10k?
 
back when it had good quality content
 
here I was posting
 
awesome (y)
 
it is listed on the profile pages
 
7:57 PM
nice man (y)
 
so many legs
 
I feel like we're in a text page, and that was supposed to be a prompt with only one answer
 
now, if I see any questions which I can answer. there are ppl eagerly waiting to post answer.
 
You go do that
 
its like fb's -> be the first person to like
 
7:58 PM
@Zirak did you ever listen to that song last night?
 
@rlemon I will when you make that branch
 
bite me
 
ok
I will
I will bite you
 
any toppings?
 
I clawed my way to 10k with FGITW posts
 
7:59 PM
You know I love you with extra sausage
 
phrasing?
 

« first day (1795 days earlier)      last day (3151 days later) »