« first day (1819 days earlier)      last day (3130 days later) » 

3:00 PM
I can show an example of something I did that "works", but it's really ugly
 
user5020521
does it make sense to you?
 
user5020521
xmlhttp.open("POST", url, true);
xmlhttp.send("?idRecord=");
 
Bluebird's Promise.props() ?
 
insertAsset(Games, 'fixtures/games.json')
  .then(function (games) {
    return games.reduce(function (p, game) {
      return p.then(() => insertAsset(Players, 'fixtures/players.json'));
    }, Promise.resolve());
  })
 
do people still say "dude"?
 
3:02 PM
I don't know, give it a try.
 
@RalphWiggum Totes
@corvid That's executing a bunch of promises one after the other
 
I think that's what he wants.
 
user5020521
@Cereal is that correct?
 
Some people still say "sir"
 
Bluebird's Promise.all(someArray, { concurrency: 1}) would do that same, simpler
Sir Dude.
 
3:03 PM
@Riccardo990 I dunno, does it work?
 
@Riccardo990 Google "xhr for dummies"
 
crl
fetch ftw
 
@Zirak I refer to that a lot. I love it
 
user5020521
should I do anything linke this?
 
3:04 PM
$.ajax(0
 
user5020521
xmlhttp.send("idRecord=stringHere")
 
Sort of, I just wish it could insert the game once, then continue the chain, and return back to the first for the next then
 
user5020521
matter of fact I don't know what is the value of idRecord since it is a parameter of a function
 
user5020521
and I need to pass it from ajax to php
 
from ajax?
 
user5020521
3:05 PM
yeh that's right look at this
 
insertAsset(Games, 'fixtures/games.json')
  .then(function (games) {
    return Promise.map(games, function(game) { return insertAsset(Players, 'fixtures/players.json'); }, { concurrency: 1 });
  })
oops
 
user5020521
 
I think Promise.map is bluebird only.
well, not stock
 
@corvid wait wat, you're not using the game parameter
 
I was going to ignore that
 
3:08 PM
@Riccardo990 you should stop using code from w3schools already
 
@Riccardo990 My guess is that you didn't google what I told you to
 
just go ahead and add w3schools to your blacklist. use MDN instead.
 
@rlemon even though my Node.js/framework Q on programmers SE was put onhold (and even got a delete vote), It still gained a hell of a lot of popularity. Such an odd contradiction.
 
user5020521
I thought it was a correct way to learn
 
Wat
 
user5020521
3:09 PM
@JanDvorak where the hell am I doing wrong?
 
user5020521
I'm talking bout the asynchronous request in the fiddle
 
You have visited w3schools recently. You did do that wrong.
 
@Riccardo990 w3schools can be ok, but it can contain out-of-date or wrong info. developer.mozilla.org/en-US/docs/Web is far superior
just add "mdn" to your google searches when looking for references
 
user5020521
thank you however what am I doing wrong?
 
user5020521
I'm talking bout the fiddle
 
3:11 PM
@Luggage when is w3schools ever okay?
 
@Riccardo990 You're ignoring me
That's not nice. My feelings are hurt.
 
user5020521
@Zirak the hell no
 
:(
 
user5020521
I'm reading you matter of fact I can't answer you
 
@JanDvorak I'm being nice as saying "that's a bad site and you should feel bad" never helps. :)
 
3:11 PM
Ah.
 
is it the best source of info? no. but is w3schools inherently evil? no
 
@Zirak Ohai
 
user5020521
@JanDvorak do you have any suggestion on how to pass a parameter from js to php ?
 
@Luggage Or install chrome.google.com/webstore/detail/w3schools-hider/… or its firefox equivalent
 
How's your vacation thing going? (Has it ended already?)
 
3:12 PM
@SomeGuy Ohai Mark
 
@ivarni hah, nice.
 
@SomeGuy Ended on Tuesday :(
 
Did you do anything fun during it?
 
Played tons of Terraria
 
@Riccardo990 other than copying code from w3schools, what have you tried?
 
user5020521
3:14 PM
to print in console whatever I attempt to accomplish
 
user5020521
that way I believe to have everything in check
 
I feel bad for him, but I can't help but laugh
@Zirak Hah, you probably needed the break
Back to work that you can't talk about now, are you?
 
Hey guys:
2 Millions Messages on Miaou! #Miaou #chat http://dystroy.org/miaou/intro
2
 
@SomeGuy lol this was posted in the lounge last night
Not sure why the question keeps getting downvoted though
 
3:16 PM
@DenysSéguret Congrats! :D
 
like -3 is a pretty good indicator of a low quality question, theres really no reason to keep going. right now it's -18
 
@ʞɔᴉNNNmaybe that's why it has ten l two reopen votes?
 
54
Q: Did Data murder Lore?

PraxisIn TNG "Measure of a Man", it is established that Data is a sentient being who enjoys all the rights and freedoms guaranteed by the Federation, and this presumably includes the right to a fair trial. But in "Descent" (Part 2), Data immobilizes Lore and then says: DATA: Lore, I must deactivat...

 
@SomeGuy Yes, it was refreshing to just unplug and phase out. And another yes to going back to doing stuff.
 
To Tribo players, @AwalGarg : I've proposed a calendar and rules for the Tribo World Cup II. Please come and check it's OK to you: dystroy.org/miaou/1050?Tribo_World_Cup_Two#1999710
 
3:17 PM
I watched all of season 2 of Rick and Morty over the past 2 days
 
@ʞɔᴉN are you suggesting we should commit to pity-nonvoting?
 
Worth all the work I've accrued because of it, though :P
 
@Luggage Bah, Meteor doesn't have Promise.map or Promise.each :\
 
@JanDvorak no idea, I don't have enough rep to see those votes (I don't think?)
as for the pity-nonvoting? I wouldn't call it that
 
@ʞɔᴉN there's a userscript for that
 
3:19 PM
I would call it good manners. This question has been posted in at least 3 rooms and while it's been a good laugh, it's also been a good opportunity for us to shit on someone
it's pretty clear OP has learned a bit by asking the question
 
I thought it was a legitimate question?
I'm confused. He probably hasn't seen web dev outside of php, so he's confused
 
But still, are you suggesting we should base our votes based on the current secto score?
 
It is a legitimate question, it just appears stupid at first glance. op's web experience is from a different background altogether
 
on meta you can downvote on the premise of a question. if you disagree with it being asked.
it is meta
votes are like fucks, give as many or as little as you want
 
fair enough, meta doesn't matter
 
3:23 PM
@ʞɔᴉN If there isn't a question on meta about the structure of SO URLs, this would ahve been a good place to do that.
probably is, i suspect
 
TBH I don't have much experience with routing other than php's URL rewrites either (from the dev point of view)
 
I think the old url -> file mapping doesn't really apply much to modern web apps/sites.
 
@Luggage yeah that's what I was trying to explain in the comments
@Luggage I was thinking about this problem yesterday- originally my plan was to host all my static files (including html) with nginx to speed up my node app
 
What is the modern way? URL regex -> controller?
 
but I realize I'd like to do a bit of server-side rendering, basic stuff but at the very least I'd like to use ejs to assemble my views before sending to the client
is nginx not really an option anymore?
 
3:33 PM
Why shouldn't it?
 
@Abhishrek You summoned The Dark Lord Awal Garg aka R.A.S.H. Get ready to present a valid concern or face the humongous power of The Dark Lord.
 
!! Urban rash
 
@JanDvorak rash to tell off, call out, or otherwise put-down/assualt verbally
 
I use nginx for my server. It hosts the static files and spins up different application servers for whatever else
 
@JanDvorak check out Express routing- expressjs.com/guide/routing.html (edit: linked wrong message)
 
3:34 PM
@JanDvorak It's just a play off his name, I don't think it means anything
 
Yes Rash is capable of doing all of this and not questionable by one.
 
you can match certain patterns with regex if you like
 
@AwalGarg If only i was a room owner
 
That is not a valid concern, poor soul. You have called a storm. Meet your fate.
 
@JanDvorak because nginx would only be hosting a static version of that page, so the client would have to fetch data separately to populate values like username, message count, whatever
rather than having the server render the page first by populating the data and assembling the views
 
3:39 PM
what should I get for lunch?
 
@rlemon pita
 
pizza
 
yesterday I had a sub.
so something with less carbs
 
a salad?
 
something with more substance
 
3:40 PM
ahaha
 
@rlemon Pita's a sub with very little bread, and a whole lot of everything else
 
yeah pita sounds good
 
A pita pit just opened up near me. I love it
 
Teams on StackOverflow, the idea you never thought SO will conjure up, nor the one you thought was needed.
 
@contractors-in-uk april 2016, 7.5% tax on dividends
 
3:41 PM
@ʞɔᴉNN I thought nginx could just delegate stuff to the right application server behind the scenes?
 
how do you type @nick ..
 
wat
 
opps, I meant the upside down version, didn't think their was real nick
 
Just press @, click the untypeable name and hope for the best.
 
3:43 PM
ah
 
@JanDvorak yeah I'd have it proxy requests to my node server, but you can also use nginx to host static content like your stylesheets, scripts, html, etc. it's faster and lighter than a node http server
 
relationships?
 
@Zirak sounds lame
 
btw I saw contract in uk asking for aurelia
 
@Zirak nick squad?
 
3:44 PM
for major company
 
Team Butts
who wants to join?
 
count me in
 
I'm in
 
2 days ago, by Awal Garg
https://docs.google.com/forms/d/1xhfLWQMysn-fYX7ucYik7b1jPIpdg90O4CoNECKyZm0/vie‌​wform?c=0&w=1 let us register on behalf of Apple and declare that Apple hates devs.
^ link to register
 
I give it exactly 7 before "Team Rocket" is created in jest
 
3:44 PM
enjoy
 
!!afk looking for food
 
team es6
 
<howbout..no.gif>
 
You live in India, your opinion doesn;t matter
boom
team jcurry
 
I am offended. Apologize or go stand in the corner.
 
3:47 PM
nick never apologizes
 
team nick
 
Team Dick
Team Dick Nugger
 
accurate
 
greg loves me
 
Nugger & Greg
 
3:49 PM
@Cereal you are Canadian right?
 
I am, but I think the rest of canada likes to forget the east exists
 
we need a no-canadians-allowed team
 
So it's up in the air
 
The biggest fault of Canada is Justin Bieber
 
I like canadians
 
3:50 PM
and Drake
 
Nah, I'd take Just Bubster over Nickelbeck
Everyone loves Avril Lavigne, though, right?
 
Depends, is she still hot?
 
Nobody remembers AL
 
Mostly
 
If you create a team canada, after exchange rate or whatever it will turn out to be "half a canadian".
 
3:53 PM
There's gonna be so many members on team jquery, and none of them will know what they're doing. Biggest clusterfuck of the century
 
crl
Anyone using JWT? does it still make sense to use them with http-only
 
team mysqli
 
what's up with proxies in chrome
 
@Mosho They're a little lost
 
behind both FF and edge pfffff
 
es6 proxy :|
 
crl
oh
!!mdn proxy
 
it'll make a lot of things super easy
 
crl
!!urban agile
 
@crl agile (verb) To work on something when you don't understand the problem space, the market, the actual goal of the product or really any engineering at all.
 
@FlorianMargaine here? github.com/ralt/pyxtrlock/commit/… py2dsc --with-python3=.. throws saying said option is not recognized
 
@Nick yes
 
crl
4:37 PM
are jsonwebtoken and signed cookies more or less the same thing? (if we ignore which header they are in)
 
@Cereal Define east. Like Quebec east? Newfie east?
 
@Trasiva New brunswick east
 
@MadaraUchiha old
 
@Trasiva wat
 
4:44 PM
@Cereal To be fair, NB does look like a flaccid penis and balls.
@MadaraUchiha Was meant for Cereal, you popped your message in right as I clicked respond.
 
!!wiki new brunswick canada
 
@Trasiva Still qualifies for wat
 
@Cereal No result found
 
;_;
 
@MadaraUchiha It's a part of Canada. Look it up, you'll understand. @Cereal knows what I'm talking about.
 
4:46 PM
hi guys im using http://xdsoft.net/jqplugins/datetimepicker/

which has an option disabledDates which takes a list of dates, as shown on their page. I have a mysql table containing reserverd_dates, it's a "date" field. is it possible to pass the values from that field to jquery plugin so that the dates on the calendar become disabled?

and is there a similar option for time picker?
 
@Lynob Did you.. try it?
 
no if it wont work, i'll opt for another plugin, as of now, i'm trying to understand if i can pass mysql values to jquery plugin, if not there's no point in trying it
 
@AwalGarg I didn't knew it. Thanks @MadaraUchiha
(ok, I might have been a little too much absent recently)
 
it doesnt have to be this plugin in particular, ive seen many jquery plugins which have a disable dates option, also as a list, and i'm trying to understand if i can give them the list dynamically from mysql
 
5:02 PM
Had to rewrite a chunk of my router because I forgot to support query strings
smrt
 
@AwalGarg check your version
And check py2dsc docs to see where this option should exist
Or the changelog, really
 
@FlorianMargaine can't :( py2dsc -v/--version throws. apt-cache search returns version as "UNKNOWN"
@FlorianMargaine the only docs for those flags are at pypi.python.org/pypi/stdeb/… and they aren't attached to the py2dsc binary, but the python binary itself.
 
so full of fajitas
gonna explode
 
@TheGreatRupert We're working on it :)
namecheap replied to my tweet in under a minute
holy fuck
 
5:15 PM
Good intern
 
:)
 
My old vps provider used to reply in about 30 seconds if it was trivial.
 
Who's a good intern!
 
You're a good internn!
yes you are, oh yes you are
 
5:18 PM
@tereško did you click my link above? or is there another user from Latvia in here?
 
Should this work?
 
Nah.
 
return Promise.each(emptyGroups, function (group) {
  return Promise.each(_.range(50), function (i) {
    // do something
  });
});
 
Also you're getting very vampy corvid :p
 
Yeah, I try to offset it by actually answering questions in the tag .-.
 
5:21 PM
Is each native, or are you using bluebird?
 
return [...a].reduce((p, c) => [...p].concat(...fn(c)), fn(a[0]), 0);
Is something in this not a function in chrome?
The console is being incredibly helpful with saying ` is not a function`
 
... calls Array.from in babel
 
It's implemented in chrome natively, I think
Or it works in my console
Huh. Works in the console.
 
Do you intend to pass fn(a[0]) as the initial accumulator?
And what's the 0
 
function mapcat(a, fn) {
  return [...a].reduce((p, c) => [...p].concat(...fn(c)), fn(a[0]), 0);
}
 
5:28 PM
Looks fishy
 
The 0 specifies the initial value iirc
Something to do with handling null values, I don't really remember.
 
!!> [...0]
 
@copy "TypeError: 0[Symbol.iterator] is not a function"
FYI, i'm running FF 41.0.1
if anyone cares
 
!!> navigator.userAgent
 
@AwalGarg "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"
 
5:30 PM
@rlemon my new favorite subreddit reddit.com/r/babybigcatgifs
 
not even aurora.
 
@Cereal I think you meant to write [...a].reduce((p,c) => p.concat(...fn(c)), []) or so
 
SCHMETTERLING
 
Or clearer: [].concat.apply([], [...a].map(fn))
var mapcat = compose(flatten, map)
 
@copy the 0 sets the initial value of reduce
 
5:35 PM
 
for p = 0 for the first iteration
 
Sweet fucking moses that's cute
 
@Cereal The initial value is the second argument, fn(a[0])
 
2spooky4him
 
5:38 PM
@BenFortune This is where I am a little confused by something. The Promise object has denodeify, nodeify, finally, and a few others that I'm not sure are native.
 
@corvid You're right. Huh
I thought I used this in one of my working scripts..
 
So it's like it's native, but modified by the library
 
This is my Schema
{ _id: 5612c8950e1489f419ae1f0f,
  jebno: '1231checka',
  __v: 0,
  photos:
   [ '1444071573643_11998522_10156249375680727_1708844441_n.jpg',
     '1444071573645_491676259.jpg',
     '1444071573654_Daniel-Craig-in-Casino-Royale-daniel-craig-25723222-1024-424.jpg' ] }
  <tr ng-repeat="photos in photolist">
                <td>{{photos}}</td>

                <td><button class="btn btn-danger" ng-click="remove()">Remove</button></td>

            </tr>
That is how I am showing it on angular
 $scope.photolist = response.picturemodel.photos;
this is controller code
I want to pass name of the photo along with that remove function
 
@rlemon aren't those paws n claws ridiculous?
Those fuckers wanna play, you're losing skin
 
5:41 PM
but I have tried remove(photos) but that doesn't work
 
any clue?
okay
 
@RanganathanSwamy it was the butler in the pantry with the candlestick
 
I never knew
thanks
jokes apart if anyone of you guy please tell me what I'm doing wrong
that will be really helpful
guys*
 
crying for attention again:
that's 301 btw
 
5:43 PM
you whore
@SterlingArcher sit down!
 
301 as in the number of views a popular new video has?
 
my mom put the smackdown on me like that once lol
i sat the fuck down
 
@copy Works on firefox
 
@KendallFrey the point is that it's above 300, but you could say that too :P
 
why does it say you live in the UK?
don't wanna be known as the Italian Stallion ??
 
5:46 PM
@rlemon I moved in Oxford at the beginning of september. I'm disappointed that you don't remember that XD
by the fact that*
moved to or in btw?
 
Why would I remember or care? :p
!!weather Oxford
 
halfway around the world is still halfway around the world even if it's a different half
 
@rlemon [object Event]
 
@rlemon because I'm important in your life, ok :P
 
5:48 PM
@CapricaSix very helpful
 
@Cereal You have nodeify and denodeify on native ES6 promises?
 
@towc you're right.
but I still don't remember you mentioning it
 
@corvid wat
 
maybe I wasn't online or paying attention
 
Or drunk
 
5:49 PM
hey guys it worked now
 
possible
 
I don't know why it was not working then
 
rlemon have you encountered something like this before
function () {
            var length = Math.max(arguments.length - startIndex, 0);
            var rest = Array(length);
            for (var index = 0; index < length; index++) {
                rest[index] = arguments[index + startIndex];
            }
            switch (startIndex) {
                case 0: return func.call(this, rest);
                case 1: return func.call(this, arguments[0], rest);
            }
            // Currently unused but handle cases outside of the switch statement:
 
That panic when you run a script for the first time and it works
 
5:50 PM
@copy also, often when I claim to be drunk I'm only buzzed
 
My code works properly, everything works as expected and in the end I get that message on console
 
tolerance and all
 
@rlemon I'm joking obviously. Even 15yo are able to use the concept of irony ;)
But yeah, I moved to OX on september 2nd
 
I have no idea
No google results as well, I must add.
 
@towc school? or fam moved with?
 
5:51 PM
@rlemon just school. I kind of wanted to run away from my family anyway
 
uni?
15 sounds young for uni
 
at 15? I wish
 
16-17 usually (here)
 
I still have one year of HS after this
 
ahh.
 
5:52 PM
@rlemon oh, it's more like 17-18 here. I mean, you're so old that you probably don't really care about the difference, but I notice it
 
it's 17-18 here too
most people are 18 before they hit uni
rlemon doesn't know what he's talking about
 
17-18 here too
 
@BenFortune I fixed Desktop Duplication screen grabber in Hansha. Go get them updates in github.com/Deathspike/Hansha/commit/…
 
@rlemon babou :O
 
by the way, I'm not sure if I've discussed this before with any of you, but should I even go to uni? Do web-dev employers care more about years of experience or education level?
 
5:55 PM
@towc both
go to uni when you have the maturity and money to do it well
 
@KendallFrey I'm biased. 3 year jr
:/
 
Don't go if you have to take large debts
 
so I ended HS at 16, would have started uni at 16 as well if I had went
 
@copy I mean, my family can get me through uni no problem as far as money is concerned, it's just that I don't really know how useful it would be
 
College is wacky. Most people that still are struggling the debt (unless unfortunate circumstances) went in and came out with a degree that wont get you anywhere
 
5:58 PM
/me raises hand
 
there is a good number of people in this room who are successful without a degree, it can be done, and isn't very hard if you are dedicated
 
@towc It'll be useful and interesting – to some degree
 
/me lowers hand
My last paycheck accidentally got direct deposited into my line of credit (which I cannot withdraw from)
So that's nice
 
ouch
 
My dad is an example of no degree, rose to success
 
5:59 PM
why can't you withdraw from it?
 
@copy no doubt I'll learn nice stuff, it's just that I'm not sure that I will have more chance to get a good job if I had spent the years I'd be spending on studying on actually working
 
@rlemon Student line of credit, it closed in september since I'm not going to school this year.
 
@SterlingArcher I like to think of myself as successful
@Cereal ahh
 

« first day (1819 days earlier)      last day (3130 days later) »