« first day (2114 days earlier)      last day (2828 days later) » 
00:00 - 18:0018:00 - 00:00

user379888
My manager told me to use a mixture of Node.js and PHP and Firebase.
 
user379888
I am totally confused.
 
Vin Diesel is his own meme
 
Your manager has no idea what he's talking about.
Or he's asking you to implement a microarch shit.
 
@FahadUddin Since he didn't specify use percentages, you can use 0% of one of these
 
user379888
6:05 PM
Haha. Funny.
 
Thank you, I do parties and weddings.
 
user379888
@Zirak: Your link takes to a web app using Firebase. I am making a web app
 
user379888
You are a funny guy.
 
I had a manager who hired a python developer, php developer, and javascript developer to all work on the same project
 
@FahadUddin Once again thank you, though this time I fail to see the funny.
 
6:07 PM
django_onRails.JS
 
It was the first thing when I googled "firebase walkthrough" so I assumed it's relevant
 
@Zirak hahahahahaha
 
user379888
I have had a CEO who hired me and 3 more developers to create a single wordpress theme for a website sharing us pages that we needed to complete. Didn't make sense since the CSS and pages are done by the same person.
 
user379888
Then he fired us when we couldn't collaborate.
 
Sounds like you need to not take shitty jobs
 
user379888
6:10 PM
I needed money. Now I am have achieved financial independence for a year so I thought of moving for a node.js job
 
@taco We've got one of rails, laravel and node (me).
We're all working on the same application.
The laravel guy helps me convert the codebase to node.
The rails guy deals with the database.
 
I just saw some examples about closure so my understanding of closure is
1) I have a outer function with a variable
2) Inside I have a inner function if i want to access the outer function variable I can use closure

kindly please correct my understanding

help me some real time examples
any suggestion
 
@Mahadevan Closure is just scoping, it means that in your inner function you can use the outer function's variable.
 
thanks for the explanation @Zirak is that possible to give some real time examples to understand more
 
"Real time"? As in, real life?
 
6:16 PM
developer.mozilla.org/en-US/docs/Web/JavaScript/Closures has a straightfoward example, actually
 
There's also the thingy on docs which I initially wrote: stackoverflow.com/documentation/javascript/480/scope/1575/…
...and they killed the example output
 
@littlepootis The 3 devs were coding in their own language and wouldn't switch to the other
 
thks people
 
@taco Are they working on loosely coupled components?
 
they were supposed to work on the same project. Didn't happen. Not a dev shop by the way. Sysadmins.
 
6:19 PM
Ah
 
Just gotta do the regex style, and I'm ready to put this up on github
@Luggage I didn't write tests... no h8 pls
 
psh, tests.
 
Um, I've got a few minutes to waste. Want to learn emacs foo. What would you recommend?
 
@littlepootis Start up emacs, C-h t (Control-h, release ctrl, hit t). Built-in tutorial
 
function name() {
  var firstname = "Mahadevan";

  function lastname() {
    console.log(firstname);
  }
  return lastname;
}
name();
kindly pls tell me what is wrong here
 
6:26 PM
@Zirak thanks :)
 
i am not getting the result
 
user6524633
guys
 
@littlepootis spacemacs for a full-blown experience you can take bits away from github.com/syl20bnr/spacemacs
 
@Mahadevan You're returning the function lastname, it's all good.
 
@Zirak @Luggage
 
6:27 PM
@FilipDupanović I tried that, but I want to learn pure emacs.
 
Run those things in the console (hit Ctrl-Shift-J in chrome) so you'll see more
 
user6524633
var extend = function (obj, extension) {
   if (typeof obj === "object" && typeof extension === "object") {
       for (var i in extension) {
           if (extension.hasOwnProperty(i) && !obj.hasOwnProperty(i)) {
               obj[i] = extension[i];
           }
       }
    return obj;
    }
}
 
user6524633
can you spot whats wrong with this snippet of code?
 
@littlepootis helm is a unite.vim equivalent github.com/emacs-helm/helm
 
but in jsfiddle i am trying and i was trying to see in chrome inspect iam not getting log
:(
 
user6524633
6:28 PM
I gave it as answer in an online test but they said it was wrong
 
That's because you're getting the function lastname, that's what you return from name
 
I just set up a SLIME, QuickLisp environment. If a keyboard shortcut from the PCL book differs from the spacemacs config, I'll probably cry. Does spacemacs mess with them, @Filip?
 
@Martinloc typeof null === 'object' is one thing
 
@AwalGarg I'm not on freenode all the time, mail me if you want to reach me. florian at margaine dot com
 
user6524633
@Zirak what you mean?
 
6:29 PM
@littlepootis did you mean SLIME?
 
@FlorianMargaine Yes!
 
@Martinloc extend({}, null)
 
@littlepootis I only ran Spacemacs in a isolated container, but I bet it's so packed it won't play nicely with anything else
 
@Zirak sorry I am not getting that last point which u told
 
I've only seen Spacemacs recommended for a near-zero-config experience
 
user6524633
6:31 PM
@Zirak you mean that if I pass null as parameter it still run the function, even though null wouldnt be a valid parameter
 
user6524633
@Zirak cause null === 'object'
 
user6524633
is that correct?
 
ok so as per my understand i need to assign this function in one more variable and i have to call that function is tht correct @Zirak
 
@littlepootis <3
 
Sorry, anybody knows of an application to display multiple images on a screen, each of which are sent to the screen by bluetooth? (sorry for off-topic)
 
6:49 PM
Chrome
 
@Luggage I opted to put the repo on the JS Room's Org on github instead of owning it myself: github.com/JavaScriptRoom/react-jsdump/tree/master
 
user379888
How can I create an instant messaging system using Firebase?
 
rgr
 
It seems my editor was mixing tabs and spaces in some files... Atom is getting on my nerves with that shit.
I'm done working on it for the day unless you find some major bugs. I want to get syntax highlighting in for the function blocks eventually, and do the collapse/expand that you mentioned
 
7:15 PM
That's odd. Atom honors my 4-space config for tabs
 
I have issues with it not knowing what to use all of the time
 
that's dumb :/
Anybody here ever been to Telum, Mexico?
 
vin
Hi, does garbage collection affect values returned by performance.now()? For a function I am checking this, I get big fluctuations between 2.xx and 0.2xx after subtracting the second from the first.
 
user1596138
7:42 PM
@ssube I got another 6 speed lol i.imgur.com/gIedSKh.jpg
 
Wow, fastest I've ever gone is 5 speed
 
8:43 PM
Vaporeon got nerfed today
Well, water gun got nerfed
To be accurate
Clefable should be really good now
 
Actually, probably not. Doesn't have a good charge move
Kabutops is one of the best now too
 
Hi all. When i close tab in browser fired onbeforeunload event, which show confrim popup with message - confrim navigation.. your most recent changes have not been saved...How block that popup?
 
@UserName Welcome to the JavaScript chat! Please review the room 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.
 
@Meredith lame.
 
8:52 PM
Machamp is probably up there too
Nah water gun absolutely needed to be nerfed
 
boo
 
All quick moves were nerfed in general
So you should actually use charge moves now lol
 
no idea what any of this means but ok
 
Do you play pokemon?
 
yeah, im just not any good at pokemon go battling. still lvl 9
 
8:55 PM
Quick moves are the spam click attacks
Charge moves you use by holding down
 
I have noticed some pokemon types arent that effective against others, but when I have battled it was just me touching the screen randomly other than to dodge after flash
@Meredith oh ok i had no idea
@Meredith you're a PHP person right
 
No I do node
You can ask me questions if you want though
 
Well, I had a Module made as a proof-of-concept and it worked
It was a Chef REST API module
Now that the POC is out of the way, I have 3 servers with X numbers of organizations, and I would now have to query all of these organizations. So like probably 30 API calls.... geez.
I think I may just make a Location module and make the 3 locations subclasses of that
 
That doesn't sound right
 
That's chef for you
 
9:01 PM
Never used it
 
can anyone help with regex? the issue im having is there are two identical links but im just trying to get one using preg_match_all live example of my code can be found at phpliveregex.com/p/gAE
 
I doubt it'll prevent you from writing your own queries
 
It was our 2nd architected environment. We're on 4+ now
so say you need to find server foo.com, i have to query the 3 Locations for each of its organizations.... to find one server. lol.
We do it already in this tool, but it's some nasty shell exec
 
Why?
 
to find server inventory
 
9:04 PM
Hah. Was looking at my rep history and saw a -1 and went "What? I almost never downvote stuff. Why do I have a -1 there?" then saw what it was. stackoverflow.com/questions/38583880/…
 
Chef is for config management. But all I care about is the inventory lookup. I monitor shit
 
Why are you using chef?
 
We're not using Chef anymore. We quit in 2012. This is legacy. It'll be phased out eventually
 
I see
Legacy stuff is awful
 
I read somewhere "you shouldn't use !importantin your CSS codes at all" .. but I now I really need to use it. can I use it?
 
9:11 PM
No
 
Legacy, gross. The place I'm at now is rather awful regarding legacy crap. Sometimes 2+ layers deep.
@stack Where do you think you need it?
What's your selector and DOM tree for that element look like?
 
all code is legacy
@taco sounds like you want an inventory, why don't you have just that? each server has a specific id, right?
 
9:32 PM
@FlorianMargaine why don't I have just what? I search by hostname if that's what you mean
 
I guess @stack wasn't interested in help.
 
@taco why do you need 30 API calls to search by hostname?
don't you have a global inventory system that holds all the hostnames?
if you're famliar with it, that's what things like LDAP can do
 
like I said above, this is a legacy environment
And it's chef, so no
Chef lets you create organizations, so whoever created this decided it would be a good idea to use that feature
 
!!> var a = {a:1,a:2}; a.a
 
@towc 2
 
9:41 PM
that is stupid and should give an error
 
Can anyone help me with this?? stackoverflow.com/questions/38678531/…
If you don't know the answer please at least upvote it so that it will be seen better
It only had 2 views
:(
 
I'm sure there's some stupid jQuery reason for that, but I haven't used jQuery since it came out so who knows.
Upvotes the question since it seems sensible.
 
Thanks
 
Oh you should probably put jquery as one of the tags, eh.
 
Im confused about this express code Im reading in the code for an app im looking at
 
9:54 PM
1 message moved to Trash can
@DanielKobe Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Wouldn't this log unmatched route for any route hit?
  app.use(function (req, res) {
    $log.warn({ req: req }, 'unmatched route');
    res.status(404);
    res.json({ status: 404, error: 'Not Found' });
  });
 
IIRC express has a next thing you can call to continue through the router list, so if something earlier down the chain of handlers doesn't call next and it has a next argument, it's assumed that it handled it. If none of them do call next then it'll finally land on that 404 handler right?
 
Yep your right I just realized that, something I overlooked in docs
 
So a basic chain would be Redirects > Pre-processor pages > Static pages/Media > 404 or something like that.
 
Any route handling that comes before the use will be handled appropriately
 
9:58 PM
I'm not sure exactly how express orders it's middleware though.
Something to look into eh.
 
@ndugger meh, you also can't configure the default line ending... the EditorConfig plugin works flawlessly at least github.com/sindresorhus/atom-editorconfig
@Nimphious mmm, in the order that they were assigned (special case, ofc, being the router middleware)
 
So FIFO?
 
I know everyone is using Express, but TJ recommends we switch to Koa koajs.com
yup! in case of errors, then it's fast-forward to first middleware with an arity of 4
 
Furry muff.
 
sooo... requests get drained through middleware in order they were assigned, up until the first one that returns a response or throws an error, in which case it's FF to error middleware, until one returns a response or there's a default error response at the very end
mess something up (haven't returned a response, haven't called next(), haven't thrown a synchronous error in the middleware/router) and you have connections piling up and memory leaking
 
America is all kinds of fucked up bud. There's no turning back now.
 
Trump is gonna win, not like there's any choice :(
 
In a reasonable country there would be a better choice. But it's not a reasonable country.
Don't get me wrong, loads of the citizens are great people. But the country is fucked.
 
@Nimphious you make it sound like we voted for national socialists in Europe
 
10:17 PM
historical accounts say that people just woke up one day and asked themselves how the fuck did that bigot get to position, that's how political marketing works
 
<- Australian
My country is Super Bonus Extra Fucked.
The last few elections were goddamn jokes.
 
I like the rep curve for Hillary and Trump; she actually gets bashed and downrepped, he can say whatever he wants and climbs up
saw the polls on NY times the other day that she's in the lead with a 68% chance... yeah, right
 
America is already seen as stupid and bigoted by other countries, they try not to seem untrustworthy. Their loud noisy skewed sense of pride is pretty much all they have. Hilary is a scheming liar, trump is a loud bigot. Hilary is a net loss, Trump is a neutral force for the US.
 
honestly, what's keeping her up there? just the sensational fact that she's a woman... that's not going to make the cut for her petty lies
 
She's by far a better presidential candidate, but she brings too many negatives to the table, and the only thing that's keeping her up there is the same thing that gives Trump a chance at all. Change.
 
10:21 PM
yeah, change for the deplored masses, half the US is a slum
 
People had change with their last president, being the first black president, and now we either want a female president, or someone so far out from a common candidate that they'll shake the system up, and that's Trump.
I think in the long run, Trump would likely be healthier than Hilary for the US, but it's going to be a wild ride.
That being said, he's not a good person and not a good president, just a good lesson for future USA to learn from, and the wake of bullshit he'll leave afterwards will be a good platform for growth in objectively better directions.
It'll just be a few years of crap in the meantime.
I don't pay too much attention to all the shit that goes on in politics though, because it's so goddamn boring and petty. So don't take my word for it.
 
well, he's going to helm the most powerful country in the world, so better put on some clean undies and assume the receiving position
well, you sort of better, it's not like Australia is a sovereign country
you get automatically drawn into any shit that they do
 
I'm pretty sure we fly far enough under the radar to not have any fucks given about us.
Plus our shitty government would probably back whatever fuckery he decided to pull anyway.
 
yeap, international treaties, it's not like you can play your foreign policies independently
 
Quickly followed by England going "the fuck are you doing" and pimp-slapping one of their wayward commonwealth countries into submission, unless the UK (or what's left of it) also decides to follow the US, in which case fuck.
On that note, holy shit what is going on with the world recently.
Seems like just about everybody is fucked. Bunch of the big powers are doing stupid shit. The next Olympic games are to be held in a shithole.
Time to build a bunker.
 
10:29 PM
hey, backtrack Europe in 1900th century, esp post WW1
everyone thought the national socialists in Germany were a joke, see how that turned out
it's not like Adolf was some sort of evil genius, he was just a bigot backed by US/UK investment... what Goebbels would give to be alive today with access to FB, Twitter
I like how history is repeating itself
!!wiki Evain Conference
 
The Évian Conference was convened 6–15 July 1938, at Évian-les-Bains, France, to discuss the Jewish refugee problem and the plight of the increasing numbers of Jewish refugees fleeing persecution by Nazi Germany. It was convened at the initiative of United States President Franklin D. Roosevelt who perhaps hoped to obtain commitments from some of the invited nations to accept more refugees, although he took pains to avoid stating that objective expressly. It was true that Roosevelt desired to deflect attention and criticism from American policy that severely limited the quota of Jewish refugees...
 
If only I could say that happening again was an impossibility.
I mean the chances are incredibly low, but not zero. And that's kind of shitty.
 
what do you mean? you should come to Europe... everyone thinks they're getting zerged by foreign culture, what we're really doing is rotting away and caving in on ourselves
isn't animosity towards foreigners on the rise in Australia as well?
 
@Zirak daaaamn that was fucked up
 
(WRT media coverage)
 
10:44 PM
at any minute the film cathegory changed
 
I dont understand why Im still having a closure proplem with the variable flintApp :(
 
enjoyed every second of suspense, which was the whole movie
 
  var loadFuncs = [];
  for (var flintApp in flintApps) {
    var loadFunc = (function (app) {
      return function (cb) {
        // TODO: use let for flintApp once this file is compatible with use-strict
        var flintPath = flintApps[app];
        console.log('loading flintApp', flintPath); // TODO: remove
        var flintComponent = require(flintPath);

        flintComponent.load('*', {}, function (err, router) {
          if (err) {
            $log.error({ err: err }, 'Error loading app: ' + flintApp);
the log prints the same thing for every flintApp in flintApps
 
user1648409
Hi, having a problem with github.com/1000hz/bootstrap-validator. I just want to match two <input type="password"/> fields. Even if i input the same data in both inputs, the js plugin throws me "does not match" errors, as described here: github.com/1000hz/bootstrap-validator/issues/340. Someone has any ideas? :)
 
@DanielKobe let's simplify things... I think you might do without the IIFE in the loop to get a function assigned to loadFunc
 
10:51 PM
@FilipDupanović I thought thats how you deal with the closure problem though?
 
no, the IIFE is usually used to control passed in arguments and for the "module pattern", to avoid accidental leaks into the global scope
but your app is just an indirection for flintApp, which is already accessible from the closure
 
ok I see
I've removed the IIFE
@FilipDupanović
 
var loadFuncs = [];

for (var flintApp in flintApps) {
  var loadFunc = function (cb) {
    // TODO: use let for flintApp once this file is compatible with use-strict
    var flintPath = flintApps[flintApp];
    console.log('loading flintApp', flintPath); // TODO: remove
    var flintComponent = require(flintPath);

    flintComponent.load('*', {}, function (err, router) {
      if (err) {
        $log.error({ err: err }, 'Error loading app: ' + flintApp);
        cb(err);
      } else {
        router.start(flintApp);
^ so you end up now with something like this
ok, so what's flintApps, is it an array?
 
No its an object that why Im using the for in.
var flintApps = {
    self_service: './routers/SelfServiceRouter',
    self_service_steps: './routers/SelfServiceRouter'
  };
 
ok, you might want to check out later on if it'd make more sense to use a Map instead of an object if you don't care about ordering
sooo, you're getting the same flintPath logged in the console?
@DanielKobe wait a sec, looks like both properties have the same value assigned
try logging flintApp, see if you're getting different logs
 
11:06 PM
ok
@fil
@FilipDupanović Ya i am getting different logs
 
cool, looks like your stuff works then, right?
 
No this is so weird
  for (var flintApp in flintApps) {
    console.log('loading app', flintApp); // TODO: remove
    var loadFunc = function (cb) {
        var flintPath = flintApps[flintApp];
        console.log('loading flintPath', flintPath);
        var flintComponent = require(flintPath);

        flintComponent.load('*', {}, function (err, router) {
            if (err) {
              $log.error({ err: err }, 'Error loading app: ' + flintApp);
              cb(err);
            } else {
              router.start(app);
this logs
| loading app self_service | loading app self_service_steps | loading flintPath ./routers/SelfServiceRouter | loading flintPath ./routers/SelfServiceRouter
 
@DanielKobe do a console.trace(flintApps), I think the values assigned are not the ones you'd expect
 
@FilipDupanović this is weird it doesn't show my whole object it prints loading flintApps trace { self_service: './routers/SelfServiceRouter',
 
11:15 PM
which one do you guys prefer: koa vs hapi vs express
 
@FilipDupanović omg im retarted both flinApps properties are the same value haha
fuck me
6
 
it's ok bro, 80% of your time will be spent on brainfarts, wrestling dependencies or getting tools to work properly
the rest of the time, you'll be mostly working yourself out of your own job! cheers to that, let the bots take over, growing tomatoes is more fun
now, back to that for...in... I don't want to discourage you from using it when you obviously know what you're doing, but most shops have this rule set in place eslint.org/docs/rules/guard-for-in
it's to discourage using objects as maps, favoring Map in such instances
@taco haven't tried hapi, but TJ said we should migrate to Koa in favor of Express
 
11:33 PM
@ndugger mind if I rename these the *.jsx to atom will handle them?
 
Yeah, go for it. I always forget to name jsx files properly
 
@FilipDupanović ok yeah I've been hearing good things about Koa and it seems similar to Express, plus supports ES6 (which I need to learn)
 
yeah, I think it hasn't been picking up because we were sheepish to run with the harmony flag or use io.js, but there's really no reason not to use Koa right now
 
00:00 - 18:0018:00 - 00:00

« first day (2114 days earlier)      last day (2828 days later) »