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

1:49 AM
I know this isnt JS related, but why is my anchor element surrounding the animation have this invisible "text bar" underneath the image that can be clicked?
Ive tried setting line height and such things, I honestly dont know what it is
 
2:18 AM
Nevermind fixed it
Setup a DataURL Retriever, and turned off cursor/pointer events for the anchor, while enabling it to default and auto for the child (The animated cube)
I guess thats a bit hacky
but it works fine so
Only took like 30 minutes to figure that out XD
 
2:35 AM
mister sircode
hi
 
Hello?
typichead.web.app Finished the basic designj
now you can only click on the head. So if you move your mouse over a slanted edge, you cant click.

God I love css translations.

Anyways, I made the outer layer unclickable, is that a good idea?
 
2:56 AM
Ah whatever Ill make it clickable thats weird
Goodnight everybody.
 
 
2 hours later…
5:01 AM
i'm bored codin
just new boot codin
 
 
3 hours later…
7:44 AM
hey, guys, I have a question I was hoping someone with more experience could help me with
 
7:55 AM
anyone here good with angular?
 
8:05 AM
i need angular routing help
my route is only rendering on reload
 
show me the code
 
my routes?
 
@helloworld Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
const routes: Routes = [
  { path: '', component: LoginComponent },
  {
    path: 'app',
    component: HomeComponent,
    runGuardsAndResolvers: 'always', canActivate: [AngularFireAuthGuard],
    children: [
      {
        path: 'orders', component: OrdersComponent,
        children: [
          {
            path: 'order-details/:id', component: OrderDetailsComponent
          }
        ]
      }
    ]
  },
  { path: '**', redirectTo: '', pathMatch: 'full' }
];
 
have you registered the route?
 
8:08 AM
what does that mean
?
 
what you are showing
with the routes
you are registering them
 
terminology confusing me
 
8:24 AM
registering means that the angular app knows they exist and in what capacity i.e. is there authorization or protection for a particular route. If so where are those definitions. where you register them
 
hey guys i was wondering if someone could help me shed some light on my question here stackoverflow.com/questions/62098842/…
 
 
2 hours later…
9:55 AM
guys im trying to make a request to a rest api using js to which will return articles
and then i need to order them by number of comments descending and up to limit number of articles
i dont have much experience with js
canyone point me to a good tutorial for querying rest apis and one for fiddling the responses?
thanks
 
 
8 hours later…
6:19 PM
Man, I can't believe whats going on in Minneapolis, that's insane.
 
 
1 hour later…
7:25 PM
May I have help forming a tree in JavaScript? It's for today's problem in LeetCode:
 
8:06 PM
yesterday, by Jimbo
Hi all - using react-router and components, which is preferred - passing components in from the top level to be rendered via render={(props) => <MainPage footer={<Footer/>}/>}, for example, or just importing the component in the file itself? And why. Gut instinct is to pass in ala dependency injection.
 
 
2 hours later…
9:42 PM
Respected members, greetings. I am using google file picker API. What i am doing is just selecting a file and then trying to retrieve a URL. But i am getting a preview URL. I am trying to achieve download URL of the file. how i may get it?
 var file=e[google.picker.Response.DOCUMENTS];
            console.log(file);
            t(0);
            var url=file[0].url;
            let _token   = $('meta[name="csrf-token"]').attr('content');
            console.log(url);
which is a preview url. i am trying to achieve download url in after selecting a file from google file picker API
 
10:11 PM
hello all o/
 
10:40 PM
hi
i have a question
when using typescript or a class
when you do this
let x = new someOtherClass();
 
10:54 PM
interface SomeInterface {
    interFaceProp1: string|undefined;
    interFaceProp2?: string;
}

class SomeClass {
    public prop1: SomeInterface|undefined;
    prop2: string|undefined;
    prop3: string = 'kelly';
}

class someOtherClass {
    propTest = new SomeClass().prop3;
}
let localProp = new SomeClass();
// this is to mitigate an issue
// localProp.prop1 = {
//     interFaceProp1: undefined
// }
// or instead
let otherLocalProp: SomeInterface;
otherLocalProp = {
    interFaceProp1: 'Tristan'
so anything I bring unto prop3 that will carry through. it's a set value in this case?
 
11:14 PM
@JBis I literally just did a mapping from my data structures to the github.com/estree/estree "spec" - what bit are you struggling with?
 
@phenomnomnominal Yeah, I ended up copying your AST folder and then adding to it (thanks!)
 
Hah sweet!
 
Possibly dumb question
Why not, instead of commiting source code, commit AST's? That way developers can code how they like without worrying about ESLint crap. If they want tabs instead of spaces or adding a new line for if statements or whatever, they can as it will generate the same AST.
You could use a tool (maybe built into IDEs) to transform all the code from AST into the formatting that developer has chosen for editing and then back to an AST before committing.
 
I mean you could. But I guess you'd have to rewrite all the tooling in the world haha
 
hmm yeah, but i guess you could create a git-ast command that executes your git command and auto compiles to js (or another lang). That way the tooling wouldn't see a difference.
But yeah, probably unrealistic, but an interesting idea.
 
11:27 PM
Yeah totally
Plain text is a pretty flexible and efficient communication method haha
Although there was a spec for a binary JS AST somewhere...
 
i want to do something like this as a helper client constructor.
import { MongoClient } from 'mongodb';

export class MongoDBDriver {
    client: MongoClient;
    mongoUrl: string;

    constructor(
        public url: string,
        public dbName: string,
        public urlOptions: string,
        public mongoClientParams: object
        ) {
            this.mongoUrl = `${url}${dbName}${urlOptions}`;
            this.client = new MongoClient(this.mongoUrl, mongoClientParams);
    }


}
in order to set client and use the constructor values for the initiation of "client" can that be done in the constructor or does it have to be in a method?
i want to effectively use MongoDBDrier(...,...).client
 
11:54 PM
import { MongoClient } from 'mongodb';

export class MongoDBDriver {
    // client: MongoClient;
    mongoUrl: string;

    constructor(
        public url: string,
        public dbName: string,
        public urlOptions: string,
        public mongoClientParams: object
    ) {

    }

    clientExecutor(): any {
        this.mongoUrl = `${this.url}${this.dbName}${this.urlOptions}`;

        return new MongoClient(this.mongoUrl, this.mongoClientParams);
    }


}
this doesn't work. what am I thinking wrong here
how can i pass along the initiation of that object?
 

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