« first day (3521 days earlier)      last day (1410 days later) » 

12:46 AM
Is it possible to actually use chrome developer tools on mobile phones?
 
yes
 
I wonder why our website wouldn't allow scrolling "away" from the address bar before scrolling the internals - and I wonder how other websites make that work.
 
 
8 hours later…
8:18 AM
need help building chromium with widevine and proprietary media codecs.
 
@jsDorian Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
can anyone help?
 
 
1 hour later…
mex
9:28 AM
can someone please help?
2
Q: How to set values of angular custom input components (control value accessors) from parent?

mexWe have the ability to set values (in case if needed) for native input elements such as checkboxes, text input etc.. It will be like this : <input type="text" [value]="customValue"> In this way we can bind custom values to the native input elements. How can I achieve similar result with a c...

 
guys, is java the only truly platform independet language in existence? is there any other language that has platform independent bytecode after compiling??
 
10:09 AM
Hello. Guys I need help with node scheduling using npm package Agenda. Can anyone please help out for the same?
 
 
1 hour later…
11:10 AM
@Zombievirus there are many. Python and JS are also equally platform independent. They aren't compiled, though. As of relatively recently, .NET is also cross-OS compatible but Mono was a predecessor of that. Java wasn't even the first to have a universal platform but it did try to impose the model.
 
 
6 hours later…
5:20 PM
Need a quick code review on this small function. hastebin.com/wavinujavi.js
 
6:03 PM
@LuisAverhoff sample input and output ?
 
6:44 PM
@AlexanderSolonik Sure here are some sample outputs.


appendPathToUrl("www.google.com/", "/example/me/") -> "www.google.com/example/me/"

appendPathToUrl("www.google.com/", "example/me/") -> "www.google.com/example/me/"

appendPathToUrl("www.google.com", "example/me/") -> "www.google.com/example/me/"

appendPathToUrl("", "example/me/") -> "/example/me/"

appendPathToUrl("/", "example/me/") -> "/example/me/"
 
7:03 PM
@LuisAverhoff I don't like that there are basically three different ways this works. I'd make a single unified logic - something like this.
 
|| echo @JBis hi
 
@JBis hi
 
hmm
 
Does James take commands from himself? I don't want to try but if I told him to echo "|| echo" could he go into an infinite loop?
 
Nope
|| echo || echo
 
7:09 PM
|| echo
 
OK, good.
|| echo :(){ :|:& };:
 
:(){ :|:& };:
 
7:36 PM
coming soon!
 
hi
with express what is the way to say if a route isn't matched you should default to a doesn't exist response
like a general 404
 
8:20 PM
@VLAZ Nice, thanks for the heads up. I think you meant to say ${normalizedUrl}/${normalizedPath} instead of ${url}/${path} but thankfully my tests caught the error, I made this small change and now my tests are passing again.
 
@LuisAverhoff yeah, I apologise. Point is that instead of having three different paths, you just have a single one.
 
Ya I was iffy on how this function looked and needed a second pair of eyes. Thanks for the help.
 
8:52 PM
@ChristianMatthew app.get('*'
Or more generally app.use((req, res) => last to catch all requests that haven't finished by that point or better app.use((err, req, res, next) => as a catch all
 
no i went with this
   */
  server.use( (req, res) => {
    // Invalid request
        res.json({
          error: {
            'name':'Error',
            'status':404,
            'message':'Invalid Request',
            'statusCode':404,
          },
            message: 'Page Not Found'
        });
    });
i saw something with stack in the error object. what is that
at the end
are you saying to use middleware
 
if to callbacks there is callback hell than to promises there is .then wrapping hell
ahhhh async await
now to that end I see the same with observables
wrapping hell
 
Just avoid Rx like most people and stick to async await
no hell in async await other than the one you make yourself.
 
yes I love async await and they need that for observables too
you can use async await for observables though
so I guess that's where we are right now.
but my question is what do you lose when you dont' subscribe but rather just return the promise
 
Sam
9:24 PM
Any react native devs here familiar with Firebase... I have some issues trying to collect data from a Firebase database and given my lack of experience in React i'm finding it hard to determine a route for debugging
I've confirmed my authentication is working fine, but using the database doesn't seem to do anything. I'm using rnfirebase.io/database/usage
database().ref('users/' + uid)
      .on('value', (snapshot) => {
        alert('user data')
      })
Is the database call I'm using.
 
 // Our Universal express-engine (found @ github.com/angular/universal/tree/master/modules/express-engine)
  server.engine('html', ngExpressEngine({
    bootstrap: AppServerModule,
  }));

  server.set('view engine', 'html');
  server.set('views', distFolder);

  // Example Express Rest API endpoints
  // server.get('/api/**', (req, res) => { });
  // Serve static files from /browser
  server.get('*.*', express.static(distFolder, {
    maxAge: '1y'
  }));

  // All regular routes use the Universal engine
it's not working. either it takes over all the angular routes or it does work.
i am not sure where to place it in here
 
 
1 hour later…
10:53 PM
because I am using angular universal
 
ouch
 
you can't control it from express but rather angular
const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: '/' },
  { path: 'robots933456.txt', component: AppComponent },
  { path: 'not-found/404', component: NotFoundComponent},
  { path: '**', redirectTo: 'not-found/404'}
];
you don't like it?
what's youre opinion about it @KevinB
 
11:16 PM
May 29 at 0:46, by Kevin B
plz don't ping me
 
lol are you serious
i mean don't you kind of control that from your end
i really thought you and I were best friends
if you need a hug let me know because I am giving out free hugs today
 
11:35 PM
I’d rather pings be reserved for things that are important
 
@KevinB right?
 

« first day (3521 days earlier)      last day (1410 days later) »