« first day (1435 days earlier)      last day (3514 days later) » 

2:00 PM
oh, even better
 
> “This seems like it was not a real, big effort, but more of a ‘I have these usernames, I know this security loophole — I’m just gonna run this password app and see if I can get into these people’s cloud-based accounts.’”
So much win in one sentence
 
Anyone up for beer chess? :)
 
ive had a set, the glasses are tiny
that picture is super deceptive
look at the coasters under the board
those are like half a shot glass each
 
@rlemon I still have no idea why your demo doesn't work, it should
 
2:19 PM
Guys
43 mins ago, by Second Rikudo
Can I do promiseToAnArrayOfValues.map(functionThatDoesStuffOnValues).map(functionThatMap‌​sToPromises)?
bluebird ^
 
uhm, did you try?
 
Thought I should ask if anyone knows in a quick yes/no before I construct a full test case
 
@SecondRikudo: how large are those glasses? :P
(Basically, how much beer is in a full set?)
 
1 can
maybe
21 mins ago, by rlemon
look at the coasters under the board
21 mins ago, by rlemon
those are like half a shot glass each
 
Hm, better use something stronger
Wow, how'd I miss that
 
2:27 PM
@SecondRikudo yes.
 
Hello everyone !
 
Also, you could have found that out by reading the docs, or running the code @SecondRikudo
 
@BenjaminGruenbaum: Is it true you have travel plans in Oktober? Specifically in the direction of Europe?
 
maybe :P?
Why?
 
Just checking if you're not being used to convince me
 
2:30 PM
Convince you of what?
 
To meet some people from this room...
 
Nobody wants to meet you. Except badgergirl, but she's special.
 
That's exactly what I was thinking
 
I wanna meat shoe
 
oh look who just left...
 
2:32 PM
Hey !. On my page, One input field with class hasDatePicker works. (Shows a datepicker).
but when i add similar input field, using angular, it isnt showing anything. The angular code is ' <input
ng-model="filter.value.from"
ng-if="checkType(filter.key,'date')"
placeholder="From"
type="text"
class="hasDatepicker"
>'
 
@Cerbrus oh sure, I see you're from the Netherlands, I'm in Amsterdam from the 15th to the 18th and in Belgium a bit sooner if you wanna grab a beer.
 
Any ideas ?
 
@charger73 please format your code before you post it. Also, create a short fiddle if you can't fully describe your issue in here (on plunkr or jsfiddle)
 
@Zirak Did you know Debuggex can generate a Stack Overflow answer from a regex?
TIL
 
@KendallFrey oh yeah it's very popular.
 
2:34 PM
debuggex is very awesome
 
My point kinda is that I really don't like grabbing a beer with someone random. Especially if that invlves me having to drive somewhere for 1,5 hours, or even worse, use public transportation 'cause alcohol and driving don't mix...
 
`<input
ng-model="filter.value.from"
ng-if="checkType(filter.key,'date')"
placeholder="From"
type="text"
class="hasDatepicker"
>`
the code isnt working
` thing
 
Now rather than just dumping a regex people googled in SO they can explain it automatically.
!!tell charger73 format
 
@charger73 Format your code - hit Ctrl+K before sending and see the faq
 
When I mentioned something among those lines to Badgergirl, she mentioned copy would come... After another "no thanks", she brought you up, Benjamin...
 
2:35 PM
`multi
line` markdown doesn't work
 
Hence the double-checking
 
@Cerbrus lol, that was an invitation, I don't really care if you come have a beer with me when I'm in Amsterdam :P
 
<input
ng-model="filter.value.from"
ng-if="checkType(filter.key,'date')"
placeholder="From"
type="text"
class="hasDatepicker"
>
better ?
 
Yea, I understand :)
Voted
 
2:36 PM
@Cerbrus Also, @BadgerGirl takes great pleasure in this sort of thing, if you want it to stop all you have to do is 1-up her
 
How the heck do I do that?
 
Or buy her surprise Pizza, that also works
 
^
 
Buy me pizza instead
I'm hungry
 
^^
 
2:37 PM
Spend money on a random girl. That sounds like a great idea
 
People have been doing it for thousands of years
 
you spend time on random strangers all day
 
@SomeGuy winners announced!
 
I don't expect I'm getting anything in return though, @KendallFrey
@rlemon: Sure, but here on SO, that's different
 
@SomeGuy you got 3rd on twitter!
 
2:38 PM
When I want, I can just walk away from my PC.
You can't just walk away from someone you're having a drink with.
Well, you could...
 
@Cerbrus 5$
 
"Block" is free, if it gets annoying
 
Well, if you can't beat them buy them pizza I always say.
 
you sound very introverted
 
I am
Shy as hell in real life
 
2:41 PM
break out, it is a nice change
 
That... has its reasons
 
Oh @rlemon, if only you knew...
 
Internet, decide for me: Get jshell.org just for jsh, or get zirak.me for stuff, and jsh.zirak.me is just for jsh?
 
hello
 
jshell.org and zirak.me
get both
 
@Cerbrus meh, it's a different world today.
 
!!jshell.org or js.zirak.me
 
@Cerbrus jshell.org
 
@Zirak jsh.zirak.me
 
2:42 PM
Already dv'd that, Jan.
 
@rlemon What, do you think I'm made of money?
 
@Cerbrus Programming is not a high income job, everyone uses technology and owns handheld computers. The skills that'd make an average programmer introvert years ago are actually valuable in social settings today.
@Zirak dude, it's like... 20$ for both.
So either get that or get a Pizza
 
But...pizza is my life force
 
@BenjaminGruenbaum $20 for both? more like $5
 
@BenjaminGruenbaum: being introverted has absolutely nothing to do with my job.
 
2:44 PM
@Cerbrus we don't really care if you're fat or ugly either.
 
I'm neither...
So, yea, if you were quick, you saw that.
 
who cares
 
Delete that.
 
@SomeGuy VIER didn't actually look that good of a game
 
2:46 PM
Someone said flags?
 
I wanna flag that now just for the major kek
 
^
 
I believe I have seen that site
 
2:47 PM
that's stupid
well I'm not you, but it's still stupid
 
I know, Florian
 
@Cerbrus the only thing that'd actually offend us is bad code.
 
you should meet @dievardump
 
Oh, and if you hate on Zirak, he's our precious little snow flake.
 
@BenjaminGruenbaum and a w3school link?
 
2:48 PM
@Cerbrus fine, deleted.
@AwalGarg they cleaned up their act recently, so I don't care about those.
 
@JanDvorak Stop being sensitive
 
@FlorianMargaine: exactly
 
why?
 
Thanks
 
It's just dildos
 
It's sad it's still an issue at some places.
 
True that
 
who is zirak?
 
yo mama
 
2:50 PM
@AwalGarg Zirak is love, Zirak is life.
 
Your new user information:

Username: Zirak
Password: ****** (hidden for security purposes)
Thanks, that's useful
 
@BenjaminGruenbaum: Zirak is coming?
 
I really wanted to know if I have a password
 
!!who is Zirak?
 
@AwalGarg I expect so
 
2:51 PM
@Zirak Try hunter2
 
wat
 
Caprica, y u no make sense
 
Hey guys I need urgently help. All is in here -> http://jsfiddle.net/829wkrw8/3/
Btw hi @Zirak
 
@Cerbrus to Amsterdam? Not that I know. He doesn't smoke, or drink, or gamble, or eat fatty foods, he's way too old for that.
 
Except pizza
 
2:52 PM
.... I mean
 
Pizza is my life force
 
"Zalgo is coming"
s/zalgo/zirak/
 
@Zirak pizza is a vegetable in case you weren't aware.
 
@KendallFrey try what? I only see stars
 
(ain't that love / life line you said from that zalgo post?)
 
2:52 PM
@TomášAresakMalčánek you seriously can't google that???? like seriously???
SUPER SERIOUSLY???
 
:D
I don't know what to google ;)
 
@AwalGarg Don't be pompous
 
@TomášAresakMalčánek look for element childs
 
!!google how to get a specific column from a html table
 
2:54 PM
@TomášAresakMalčánek A table has rows property, each row has a columns property. Look into those.
 
@Cerbrus erm... well...
 
Have a look at those results, @TomášAresakMalčánek.
 
@Zirak heey! you are Zirak right? Zirak the great!? Nice to meet you sir :)
 
!!youtube shrek is love shrek is life
@Cerbrus ^
Oh, wait, wrong one
!!undo
@Cerbrus ^ here
 
2:54 PM
let's see
What the fuck o.O
 
@Cerbrus hahahahah
Shrek is love.
Shrek is life.
 
@Cerbrus The correct response
 
I though I'd seen some shit
 
please stop
love is love
life is life
 
2:57 PM
HAMMERTIME!
 
nothin else
 
The voice-over really makes the video though
 
@Cerbrus it's a 4chan post
 
I'm not surprised
 
@BenjaminGruenbaum is there a good shorthand for this?
.map(function(item) {
    item.then(addItemToDatabase);
});
 
2:58 PM
.then?
 
That would never work anyway @SecondRikudo
 
item is a promise
 
Adding animation to prexisting work can be great
 
No it's not
 
ah right, needs return
 
2:58 PM
Oh, makes sense
 
!!youtube assumption song
 
Not that @SecondRikudo
promises unwrap thenables, there is no way the resolved value of a promise is a thenable
 
You'd just do .map(addItemToDatabase) and it's just work @SecondRikudo
No need for the extra step :)
 
2:59 PM
@SomeGuy woohoo! 6 month of 20 private repos on github, congratz
 
Thank you! :D
 
Also, @mikedidthis played a huge role
 
give him 10 private github repos then
 
Its cool man, you put it all together, you have them :D
 
3:03 PM
he won't even use one private repo
he's too cheap to keep paying after the 6 months
 
lol. Well when you put it that way...
 
@BenjaminGruenbaum Will it maintain its asyncness?
As in, I have 10 items.
 
@SecondRikudo what do you mean?
 
@SecondRikudo you mean "will it maintain its sequency"?
i.e. will it run one after one?
 
Each needs to go through a number of steps "find item, search item, verify item, add item to database"
These should run sequentially for each item, but overall, the 10 items I have should run parallelly
 
3:05 PM
find(items).then(search).then(verify).then(add);
@SecondRikudo yeah, use default stuff
 
@FlorianMargaine items is an array
 
alright, use map, it fits your bill
 
@SecondRikudo no it will not. The correct way to do that would be
Promise.map(items, function(item){
    return search(item).then(verify).then(addToDb)
}).then(...
 
@Florian I will have you know that I pay $10/month for Google Music's All Access :p
 
Promise.map waits for everyone at each phase.
 
3:06 PM
@SomeGuy what at badass
 
You can think of map like .all().map(
 
@BenjaminGruenbaum That's not what I want.
 
@SecondRikudo then do what I suggested above, nest one level and parallelize the whole chain.
 
But yeah, I use BitBucket for the private repos. Might start paying for Github because they seem like a company worth supporting
 
I don't want for all of the finds to complete, then all searches to complete then all verifys to complete
 
3:07 PM
@SecondRikudo yes, so use what Benji showed you
 
There are also promise streams and all that but Petka thinks that adding streaming behavior to Bluebird would be onfusing
 
I want them all to run freely (sequence for each item, but parallel overall), and then at the very end, use .all().then(
 
32 secs ago, by Florian Margaine
@SecondRikudo yes, so use what Benji showed you
2 mins ago, by Benjamin Gruenbaum
Promise.map(items, function(item){
    return search(item).then(verify).then(addToDb)
}).then(...
 
and .done() at the end
 
And if verify fails? (In that case I don't want to addToDb), how can I reject in that case?
(Other than just raising an Error, I already know that one)
 
3:09 PM
return search(item).then(verify).then(addToDb).catch(VerifyError, fn).catch(fn2);
 
@SecondRikudo it'll already do that for you..
If verify fails, it won't addToDb that particular item but it'll add the rest.
It'll also fail the chain as a whole.
 
@BenjaminGruenbaum Right, how do I mark it as fail?
Other than throw new Error
 
@SecondRikudo what's wrong with throw new Error?
 
It's not exactly an error, the item just doesn't verify.
Because it isn't really an error
 
How is that not an error?
So return a Promise.reject
 
3:11 PM
Ah, that's an option
 
Better yet, throw a Promise.OperationalError
 
Will look it up
 
Then you can use .error and not `.catch
 
!!mdn promise
 
3:14 PM
posted on September 20, 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) {} OH MAN

 
Hi guys, I want to convert javascript string like "1/2 + 1/3 " to "\frac{1}{2} + \frac{1}{3}". I can do this now with the following code: http://jsfiddle.net/8pstcsrb/

But now I also want to convert (1+2)/(3+2) to \frac{1+2}{3+2}
This is the regex that I use
`var re = new RegExp("([^}]{1})(\/)([^{]{1})", "g");`
Can I do both cases in one regex ? Or should I use just 2 regexs ?
 
back
how to get tourist attractions place from wikipedia . any one have any idea ?
and what is the way to get this
 
3:31 PM
!!welcome Sport
 
@Sport 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.
 
@CapricaSix thanks
i asked my question and i didn't ping to any one
@AwalGarg thanks
 
@Sport First, the question is somewhat unclear. You want to "get" in what sense? You can go to Wikipedia and see it... do you want the data in JSON format? What have you tried?
 
Visitor attractions in Manhattan, New York City, USA....
i want to get data for india
@AwalGarg in JSON
 
@Sport so you need the link to the page for India.
 
3:38 PM
i want to get attraction place for the india,china like any particular country in json format ,
 
then you wanna check if wikipedia allows data extraction from other sites. or does it have an api to do that?
and you can then do a simple xmlhttp request and request data in JSON format.
 
@AwalGarg correct but i am searching any api is availabe which can do this, i don't have any idea
 
!!tell Sport google wikipedia api
 
@AbhishekHingnikar I plan on getting that
 
4:08 PM
@BadgerGirl I think Mrs. Kittens would object
@towc One of the five is the example game.
 
@SomeKittens lol
@SomeKittens which?
 
@SomeGuy Congrats on 3rd place in tweets!
> 3rd place: PlayCanvas Pro account, GitHub 6 month medium account
nice!
 
pretty cool!
When are the overall winners announced?
 
Hi, I logged an Ip on my web page
It says United States California Mountain View Google Inc
Does it mean that a google employee have seen my web page?
 
4:14 PM
@SomeKittens I thought it was just a bad game
 
no, this is a bad multiplayer game: js13kgames.com/entries/click-the-four-element
@user1506145 huh? That's not how IPs look
 
I lookied it up on ip location
 
@Loktar me too game jesus
the fatalities <3
i love that gore i love that blood
 
@user1506145 what was the user agent? (hint hint)
 
Oh, it says it was the google bot :(
 
4:24 PM
yeah looks awesome
 
@SomeKittens Not very clear is it?
 
@Neil because historically, we're far from being the least resistance :)
 
m59
So... he even notes that he's stealing my answer?
0
A: Angular get error "$digest already in progress" when set the restrict attribut to 'E'

DBrowneThe scope property of the directive can only accept @,=and & like @m59 said. You can't set the values there as the scope doesnt exist yet. mainApp.directive('scoreDisplay', function() { return { scope: {}, restrict: 'E', templateUrl:'templates/directive-score-display-...

^ wow
 
4:39 PM
@m59 Won't matter if your answer stays on top
 
m59
sure, just.... ya know... being human and all. The indecency of people amazes me.
 
people do that all the time, though at least they have the decency not to announce it
 
m59
Either way is equally crazy. But yeah.... I mean he clearly knows what he did :)
 
@m59 that's perfectly allowed here if he gives attribution
That's how SE works, you're encouraged to do that sort of thing here
 
m59
amazement
 
4:49 PM
ehhh
 
m59
Imagine this anywhere else.
 
I wouldn't say one is encouraged
 
m59
gives TED talk
next guy gives same talk and says "this is what the previous guy said"
 
No, seriously, if you watch the podcasts from Jeff and Joel from 2008 they said that people are encouraged to take (even multiple) existing answers and create one better one and that people should upvote that
 
m59
@BenjaminGruenbaum did you look at the answer?
He did about 4x worse than mine.
 
4:50 PM
Now his answer sucks, but what he didn't isn't bad here :P
You're not proving your worth you're creating a knowledge base.
@m59 yeah, I didn't upvote his answer, it does suck
 
m59
Sure, I'm all for expanding on other answers!!
It's the paraphrase the same thing and EVEN do worse!? that gets me.
well anyway, thanks guys. I'm about awake enough to get some work done, so peace out for now.
 
work? What's that?
Also, what would you like to see next in Spaceships!
 
m59
me having some skills with it
I'm great at SomeGuy's game, terrible at yours.
first work distraction: successful +1 @SomeKittens
(leaving for real now)
 
WOOOOOOODISTRACTIONSSSSS
 

« first day (1435 days earlier)      last day (3514 days later) »