« first day (1946 days earlier)      last day (2995 days later) » 

12:00 AM
@copy wouldn't have said that you watched anime
 
Me neither, it just happens that there is some very good anime out there
 
if even copy likes it, it must be damn good
 
ben 10
 
user1648409
Hi guys. I am trying to program a datalist that uses ajax to load its content from another site. I got it working but have one little problem: Sometimes the list won't appear even if the ajax call returned. I googled a bit and found this: stackoverflow.com/questions/…. Yes, i know ajax is async, but even if i wait 5min and see, that the call returned, sometimes the list won't show up. Why?
 
@towc Firefly
Anything by Monty Python
 
12:08 AM
@Zirak already seen
 
Again :D
 
@Zirak fair enough
no, Future Diary seems interesting
 
It was a wild ride, that's for sure
 
could only find a damn dubbed version with american voices tho :/ not that american voices are bad, but they are
 
It's called Mirai Nikki. Get a torrent, and in the meantime animetv.in/watch/mirai-nikki-episode-1.html
 
12:10 AM
@Zirak oooh! Wasn't sure if it was the same thing
 
ben 10, reboot, beast wars, married with children, samurai pizza cats, captain planet
 
@rlemon ben 10? I used to watch that when I was 8 and I was still bored
 
you didn't have good taste
too young
 
I mean, it was fun, then they started broadcasting the same episodes over and over again, and that's when I got traumatized (watching tv was the only thing I used to do when I visited my grandparents in Romania)
 
YEAH
 
12:12 AM
by watching the same thing over and over again
 
FUCKING BEASTWARS
 
:)
such realism :D
I was blown away by this as a child
 
Whenever I talk about remembering this show, nobody ever believes me that there was a transformers with animals
 
haha yea I used to love it
shit, 1996
yea that's an old show
 
I was 4 years old
 
12:15 AM
I was 10
 
I was 8
 
I remember it so vividly.
 
dinosaurs. All of you
 
I was 76
 
12:15 AM
Respect your elders
 
ohhh this show
also a classic
 
So, I put a pizza in the oven before I realized I have no pot holders, no pizza cutter, and no fucking clue
 
knife?
 
Yeah
I'll make do
 
wtf is a pot holder
drugs used to be simple
 
12:17 AM
I also discovered that bourbon and apple cider is a terrible fucking combination
 
So I was at a conference yesterday. And one of the speakers was a lady who used to work at MI5, and was a whistleblower. Spent 10 years on the run. She was such a badass.
 
@Mosho you're 14, shut up
 
but I'll finish it anyways
 
@ndugger what do your put lids look like?
 
@phenomnomnominal woa, sure looks like so
 
12:18 AM
???
if so, pizza cutter
 
I don't have my pots here; they're still in my parents' garage
 
:/
 
I'm very disorganized
 
dafuq is a pizza cutter?
 
@FlorianMargaine France wouldn't extradite her, because you people consider whisleblowing a political act, so that's also kind badass.
 
12:18 AM
fold the pizza in half
 
lol
 
it is a pizza sandwich now
 
You have sharp objects and/or your hands
@rlemon NO
 
I will karate chop the pizza
 
Knife the pizza
 
12:19 AM
@phenomnomnominal yay France
 
Stab it for a length of time. Horizontally.
 
roll it up
slice it up as a roll
 
roll it up and put your dingus in it
then slice it
 
@Zirak quick: regex for foo that won't match ffoo?
(don't rely on ^$)
 
More context needed
PCRE? Negative lookbehinds? Any other input?
 
12:21 AM
/\bfoo/
 
^ that's a possibility, depends on tons of shit
When you say foo do you mean afoobar and not affoobar?
Or do you mean a foo bar?
 
I want to replace ~ in a command line without replacing \~
(so that you can escape it)
 
oh, that's easy
 
[^f]*(?=foo)
 
12:22 AM
.?~ check for the first letter of the match
 
uh?
ah
indeed, that's easy
 
If you have negative lookbehinds then you can do (?<!\\)~
But then enter a rabbit's hole: What about \\~?
And then \\\~
 
I like the negative lookbehind
 
It will also incorrectly match \\~
Since regexps don't carry state, you can do (\\*)~ and check for the first group's length
 
hm
yeah I'll just go with .?~
 
12:27 AM
That'll also incorrectly match \\~, I didn't double check myself before posting
 
hm
is cd /foo/~/bar legal?
I could go with \b.?~
 
@FlorianMargaine Sure, you can name a directory ~
 
@Zirak and in this case I don't want to do any expansion, so it's fine to ignore it
@Zirak btw, ever tried elpy on emacs?
I just installed it, doing some fair share on python these days... it looks great
actually...
I can just do \b~
it will ignore the \~
 
I'm a tad confused. You're starting to implement substitution?
If so, ~ is just another variable like $PATH
 
uh?
isn't ~ a glob, like * instead?
 
12:33 AM
@FlorianMargaine Never tried it. Seems like fancy shmancy bundle of packages, right?
 
@Zirak yeah, batteries-included
company, flycheck, whitespace helper
 
@FlorianMargaine On second thought you're right, it's a glob
Always thought about it as a variable for some reason
 
aaand I'm stupid
CRASH> (directory "~/.crashrc")
(#P"/home/ralt/.crashrc")
CRASH>
 
What are we looking at?
 
a common lisp function that already expands the globs
 
12:37 AM
slow clap
 
@FlorianMargaine is there a hole in your shoe?
 
ralt@genera:~/common-lisp/crash/
$ cd ~
[01:40:43]
ralt@genera:~/
yay
 
Huzzah
 
I really like the plugin system... every module is pretty small
oh, and I wrote a big-ass readme github.com/ralt/crash
so, now
it's almost 2am
and I have less than 20% of battery left
I guess it's time to go to bed
 
A big ass-readme
 
12:43 AM
A big ass-readme
 
What's orange and sounds like a parrot?
 
A carrot
 
:(
 
What is E.T short for ?
he has very short legs.
 
12:52 AM
not enough calcium
 
What's brown, and rhymes with Snoop?
 
A magician was driving down a street, and then he turned into a driveway.
 
Yeah, I have a friend that tells that joke all of that time
also
How Long is a Chinese name
but also, I just made a perfect Moscow Muel
I should be a bartender
I don't have a copper mug, though
 
crl
a fucking dropdown vpaste.net/MrXzK with mixed indentation
 
@ndugger two termites walk into a bar and ask "Is the bar tender here?"
 
1:03 AM
Ha! That's a good one
 
@phenomnomnominal Dr. Dre?
 
@KendallFrey yeh
 
smoke weed everyday
 
@ssube that spicy ginger beer makes an amazing moscow muel. Deffinitely my go-to for mixing now. It's only like 3.85 a bottle, not 5
 
@Zirak this made me think of you: i.imgur.com/UaESJFS.jpg
6
 
1:09 AM
@Mosho LMAO
:wipes away tears:
Two cows are grazing in a pasture. One cow turns to the other and says "What do you think about this mad cow disease?" The other cow responds: "Doesn't bother me. I'm a chicken"
@KendallFrey What has 8 legs and one eye?
 
@rlemon I'm embarrassed by how long it took me to get this.
 
crl
[1,2,0,3,1].every(Boolean) it stops after seeing 0 right?
 
@crl jsperf it
 
crl
@rlemon an octopus who lost an eye?
 
@crl two chairs and half a fish.
 
1:18 AM
@crl Yes
 
crl
ok thanks
 
You could've tried with [0, 1, 3].every(console.log.bind(console))
 
@phenomnomnominal what do you call a dear with no eyes?
 
no idea.
 
the correct response is "no eye deer"
but close enough :P
 
1:20 AM
duh :P
 
crl
ah right, dumb me
 
A blind guy walks into a store and starts swinging his seeing eye dog around his head. An employee comes over and nervously asks if he can help. The blind guy replies "No thanks. I'm just looking around."
ahh I love B jokes
@phenomnomnominal What do you call a sleepwalking nun?
A roamin' catholic
 
hahaha
What do you call a cow with no legs?
 
ground beef
 
What do you call a cow with one leg?
 
1:22 AM
what?
 
lean beef
What do you call a cow with two legs?
 
Kendalls mom
 
upstanding cow
 
I was going to just say Kendall, but yes.
 
lol
Why did the elephant paint his toenails red?
 
1:24 AM
he wanted to look fabulous
 
so he could hide in the smarties box.
 
he was colorblind!
 
@phenomnomnominal Guess what I heard?
 
the bird is the word
 
Sheep!
what do you call cheese that is not your cheese?
nacho cheese :D
 
1:26 AM
How do you make a fireman cry?
 
you put your hand up his anus
 
two muffins are baking in an oven, one looks to the other and says, "boy, it is hot in here". The other says, "AHHHHH A TALKING MUFFIN!"
 
2:00 AM
Is Developer Success Engineering a glorified tech support job ?
 
Sounds more like an architecture job
 
@ndugger should I take it ?
 
I dunno. I've had too much alcohol to make an ifnormed decision
 
Okay I will ping you in morning :D
 
crl
2:38 AM
Why are mountains so funny?
because they are hill areas
2
 
lol
 
2:56 AM
i have a question guys
 
@crl how do you make a tissue dance?
you put a little buggy in it
 
3:15 AM
@rlemon around ?
 
maybe
 
@rlemon oh thats funny ?
 
anybody in here like die atwoord?
 
@BadgerCat o/ wow good early morning
 
3:58 AM
 
 
1 hour later…
5:20 AM
Fuck... dealing with a friend and trying to convince her to leave an abusive relationship.
Man, I wanted this weekend to be happy and carefree
 
5:41 AM
is there a way to check if element is contained in fixed div? without using jquery's parents()?
 
 
2 hours later…
7:19 AM
Ello
 
crl
8:15 AM
this.s = e.detail.s;
this.M = e.detail.M;
how can I do this in one instruction? ok I won't use them directly on this
 
8:47 AM
@ndugger aww man
 
25 more rep to 100K :D
 
@BenjaminGruenbaum Grats!
Hey guys what is a Developer Success Engineer ? Is it a good / bad job option ?
It sounds to me like an arch job but I don't want to end up being glorified tech support :P
 
9:07 AM
@Abhishrek sounds like a code reviewer
 
9:19 AM
vOv
 
9:40 AM
!!stat
 
@BenjaminGruenbaum You (http://stackoverflow.com/users/1348195/benjamin-gruenbaum) have 100005 reputation, earned 40 rep today, asked 67 questions, gave 1593 answers, for a q:a ratio of 67:1593.
avg. rep/post: 60.24. Badges: 31g 217s 299b
 
congrats @BenjaminGruenbaum!
SO swag soon coming in!
 
They already owe me two more shirts :D
 
hi
How can I make my JS only do something when the screen is smaller than 740 px?
 
9:51 AM
@DomagojSabolic if (window.innerWidth < 740)
 
k thanks!
 
o.o
 
@FlorianMargaine probably better to use matchMedia
 
I upvoted you Benji!
 
just discovered that nodejs installer has an option to allow modules to set PATH variables
that's not good. bah
 
10:17 AM
 
no balls heh ?
 
@KarelG Why not? Global modules?
 
it clutters the registries and extends the search process when using the PATH env
it's not an issue on UNIX Linux system, but at Windows it does
 
10:41 AM
Hi, how do I count objects inside a nested array for example poll":[{"url":"/5235","votes":2,"choice:"Apple"},{"url":"/1341/choices/5236","votes":2,"choice":"Tuna"}]

I want it to return Votes = 4
 
@kalpetros Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
!!a or b?
 
@Abhishrek b
 
@kalpetros it's an array of objects. You can loop through it, and for each object, look for the key ?
 
!!tell kalpetros mdn reduce
 
10:52 AM
 
!!drop a ?
 
@Abhishrek That didn't make much sense. Use the !!/help command to learn more.
 
hmm
 
11:10 AM
@KarelG Oww
 
11:50 AM
!!dynamo or firebase ?
 
@Abhishrek firebase
 
you are a bad architect @CapricaSix
just kidding :P
 
crl
12:14 PM
or none
 
@crl don't want to host a db
I learnt a lot about Amazon's Dynamo Though, I already know firebase. I shall atleast try!
 
crl
you could mongolab :p (I guess you don't like it tho)
 
@crl fuck mongo xD
I am using lambda to do operations, I am confused if I should just stop using firebase
and switch everything to AWS
 
crl
hehe I know it looks noobish
 
It will remove a lot of complication from my client side.
But firebase being open to public web and super easy to get up and running kinda makes me want to keep using it.
 
crl
12:27 PM
v('div', {className:'foo'}, this.props.children);// why does it work like that, I thought I needed ...this.props.children ? jsfiddle.net/crl/ys4jmk9n/1
var childrenLength = arguments.length - 2;
if (childrenLength === 1) {
  props.children = children;
} else if (childrenLength > 1) {
var childArray = Array(childrenLength);
for (var i = 0; i < childrenLength; i++) {
  childArray[i] = arguments[i + 2];
}
props.children = childArray;
they do it
 
Hey guys, can you give any advice? http://stackoverflow.com/questions/35372891/creating-a-efficient-function-that-create-one-flat-array-from-all-values-of-all, I've already done some effort, but I don't know if it best approach for this. Any hints or advice are appreciate. Thanks
 
crl
recursiven well no, generally it's less efficient
 
@Abhishrek Google launched their own lambda-like service, maybe check that out?
 
@BenFortune Lambda is free for life
 
Lol really?
> The Lambda free tier includes 1M free requests per month and 400,000 GB-seconds of compute time per month.
Is that alot?
 
12:38 PM
keep reading
That Free Tier is always deducted, for basic demos thats way more than I will ever hit :P
 
@crl really? thanks for the tip.
 
@BenFortune psst your server will still do the actual game :P
these guys only do the match making stuff
 
crl
@Vagner function flatten(a){ var b=[]; for (x of a){ if (Array.isArray(x)) b.push(...flatten(x)); else b.push(x);} return b; }
oh well yours was already recursive
but usually nested arrays means the data model is bad
you try not mixing apples with oranges in an array
 
12:55 PM
says the guy who wanted an array/object yesterday
 
crl
:)) I cleaned that lol
 
@BenFortune ouch
 
@crl I need this mixed array, just for send to a filter, then will receive the correct data. This function will get arguments object and catch all values inside it, and sometimes a value can be inside another array or in a object. You function is really fast, but I need going deep in array and objects.
 
crl
how do you flatten objects? 'array-like'objects with keys like '1', '2' ? or you just take the values maybe
 
1:10 PM
I check if length of object is higher than 0 and if is not a string
then the object has keys, so I iterate of them and send to recursion.
 
I have the following list of object taken from a JSON file. https://jsfiddle.net/nj0Lpk6g/1/#&togetherjs=1gtz1LU6S8

What I want to do to list all questions by number of votes. How can I do that?
 
crl
what does the keys looks like?
@kalpetros a loop?
you want to flatten it?
 
If it's possible
 
crl
the votes are on the answers of a question
not on the question
what do you want to do?
 
I want to list all questions based on the number of their votes. Questions with more votes go on top. Something like that.
 
crl
1:17 PM
SO has votes on questions and answers for example
I don't see a vote field in question objects, they are some deeper in the choices array
 
Thats why I can't figure it out
 
crl
do you want to sum the votes in the choices and make it correspond to the 'vote' value of a question?
 
@crl Yes!
 
does anyone know how to make a bootstrap collapse menu not collapse when you have a dropdown option built into it
 
crl
questions.forEach(q=>q.votes=q.choices.reduce((a,v)=>a+v.votes,0));
question.sort((a,b)=>b.votes-a.votes)
 
1:25 PM
@crl Where an working example, just make it work, its not exactly my app jsfiddle.net/2fu64yx7
 
crl
it's for storing dom elements?
NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
just do that on chrome, then you can iterate nodelists (a result of querySelectorAll) with for of, it's nicer
 
Elements its just one kind of objects, there is more kinds that use the same StorageFactory
 
crl
so you store completely different kind of objects together?
 
anyone know why bootstrap dropdown auto closes when in mobile ?
 
crl
why not, nvm if you can manage a way to classify them
 
1:33 PM
@crl Thanks it works!
 
no, I use the Factory just to create a object instance that store just one kind of objects
 
crl
ok, what's the advantage over a simple object? oh well you can extend it with functions
 
Each instance have its own filter function, that collects its own kind
 
crl
ok
 
The Factory is just to reuse code
the function that you commented in the question, breaks on '?...' part. I'm using on browser (safari).
 
crl
1:41 PM
function flatten(a){ var b=[]; for (x of a) Array.isArray(x)?b.push(...flatten(x)):b.push(x); return b;}
damn we can't write it like I tried :(, the ternary here ^ is ugly, better with an if
 
can you stop writing ugly code?
 
crl
that the most beautiful I can
 
then I hope I'm never going to work with you
 
hmm, not getting values from NodeList.
but very fast
 
@crl all code doesn't need to be golfed
 
1:45 PM
no problem with 'ugliness' the main point is efficiency ;)
 
crl
this is a chat, and the thing is simple enough to figure it in 1 line
 
hint: shift + enter creates a new line
 
user3926016
anyone use react? i have this problem i cant stackoverflow.com/questions/35371566/…
 
@Pyro Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
also, Hi @rlemon
 
1:49 PM
@Pyro are you a phlog pyro?
 
user3926016
whats that? :D
 
Holy shit, this chat has easter egg.
Press Alt + F4 to replace this textarea with Codemirror
 
@FlorianMargaine ello
 
O.o
 
@littlepootis ctrl + k in my plugin
 
1:51 PM
@littlepootis doesn't do anything on my computer
 
crl
press and hold power button to refresh the chat with a newer version
 
user3926016
that's a trap don't do it
 
$5 if I shut down my laptop? count me in
 
yay...
Vagner is logged out
:P
 
user3926016
i now see that phlog is something from team fortress
 
user3926016
1:53 PM
hate that game, they stole my name
 
I remember doing that in Guild Wars PvP. There was a Faction vs Faction thing, and when we got in I shouted "To all members of [name of other faction]: GW gives you a cookie if you press Alt+F4".
You'd be surprised how often you'd see a "X has left the game" message after that.
 
@crl Thanks for the help, I'll try improve with your hints, if you want it update that fiddle then I'll check
 
@Pyro yeah, it's not like "Pyro" is a common name with at least one super famous game...
 
crl
@Vagner np
inline-block is good too
 

« first day (1946 days earlier)      last day (2995 days later) »