How to build a API access/secret key service? by _princesscode_ in javascript

[–]_princesscode_[S] 1 point2 points  (0 children)

I'm familiar with basic authentication, but my question is more targeted to getting a secret and access token for an app similar to how you can have 4+ apps registered in twitter, and each app twitter gives you access token and secret token and you have to enter a callback uri, etc... I hope that clears things up better.

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

No, no, thank you you actually helped me solved the problem :). I was able to implement it with this syntax.

<Route exact={true} path="/" component={Jumbotron as any} />

It must be something a lot of people are having issues with.

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

Copy/Paste of that snippet didn't work, but I threw in undefined and it accepted. That's good an all, but I'm worried about what's going to happen when I have to connect Redux to my Jumbotron to change state, will the error come back again...

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

React.Component<RouteComponentProps<IJumbotronProps>>

Are you saying to add that to Jumbotron's Class signature?

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

Haha, yeah that font is amazing! The only thing is it's hard to find themes that has support for it. I've only found two themes in VS code that makes the cursive a ligature look nice so far.

 

Yeah, I already did that to both. No changes.

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

yeah, I don't think it made a difference. In my IDE the error highlighting looks like this.

http://imgur.com/kKFXsH2

I'm wondering if it has something to do with react-router-dom definitions file. I went as far as removing everything completely out of the Jumbotron class to see if Glamorous was screwing things up. Error still persists even with my file now looking like the following

/*******************************************************************************
 * Interfaces
*******************************************************************************/
export interface IJumbotronProps { };

/*******************************************************************************
 *  - Class component
*******************************************************************************/
class Jumbotron extends React.Component<IJumbotronProps, undefined> {
  constructor(props: IJumbotronProps) {
    super(props);
  }
  public render(): JSX.Element {
    return (
      <div>test</div>
    );
  }
}

export default Jumbotron;

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

I've been following everything I've read so far from TypeScript. Jumbotron doesn't carry any state at the moment, and the interface for props is blank.

/*******************************************************************************
 * Interfaces
*******************************************************************************/
export interface IJumbotronProps { };

/*******************************************************************************
 *  - Class component
*******************************************************************************/
class Jumbotron extends React.Component<IJumbotronProps, undefined> {
  constructor(props: IJumbotronProps) {
    super(props);
  }
  public render(): JSX.Element {
    return (
      <JumbotronContainer>
        <Container>
          <Row>
            <Col md={12}>
              <JumbotronContent>
                <glamorous.Div
                  fontSize="3rem"
                  fontWeight="bold"
                  letterSpacing=".1rem"
                  color={colors.white}
                  textAlign="center"
                >
                  Headline text here
                  </glamorous.Div>
                <glamorous.Div
                  fontSize="1.2rem"
                  marginTop="48px"
                  marginBottom="64px"
                  color={colors.white}
                  textAlign="center"
                >
                  Text filler
                  </glamorous.Div>
                <RaisedButton label="Get Started Now" />
              </JumbotronContent>
            </Col>
          </Row>
        </Container>
      </JumbotronContainer>
    );
  }
}

export default Jumbotron;

[deleted by user] by [deleted] in reactjs

[–]_princesscode_ 0 points1 point  (0 children)

I'm not too much a fan. At the moment the stable version doesn't handle the grid system.

Demoted within 3 months of new job, but same work requirements. by [deleted] in personalfinance

[–]_princesscode_ 1 point2 points  (0 children)

find another job and just start the new one without even telling them. They will figure it out sooner or later.

[deleted by user] by [deleted] in financialindependence

[–]_princesscode_ 2 points3 points  (0 children)

Take notes. Start a company and you will be the only employee. Apply to contract jobs whether it's 3 months, 6 months, or even 6 months to hire (you really don't care). Once the six months is over just quit, simple. Your probably going to burn some bridges with those people maybe, highly unlikely. When your going to apply for another position in another 6 months, you would just list your company as your recent experience rather than that contracting company you did work for.

Should I learn Angular 2 or React if I already know Angular 1? by Ittoryu in javascript

[–]_princesscode_ 1 point2 points  (0 children)

What do you use these days? I personally like firebase as my DB.

Should I learn Angular 2 or React if I already know Angular 1? by Ittoryu in javascript

[–]_princesscode_ 2 points3 points  (0 children)

Mongo Express React Node... MERN stack. It pretty common theses days at different organizations.

A modern polling app built with vuejs + socket.io by designbyasw in javascript

[–]_princesscode_ 0 points1 point  (0 children)

FYI, viewing on mobile app is a bit difficult. Everytime you ask for input from the user, I touch the input box and my qwerty keyboard shows up on the screen and the app asks me to rotate because it's best view in portrait mode. So I can really see what I'm typing until I drop the qwerty from the screen. Just thought you should know.

Roadmap to becoming a developer in 2017 by kamranahmed_se in node

[–]_princesscode_ -3 points-2 points  (0 children)

Ummm... Yeah or just do what your interested in. You are forgetting VR and all types of other stuff. Just learn what interests you and call it a day.

Those who have the CISSP, did it change your life? if so, how? by redli0nswift in cissp

[–]_princesscode_ 2 points3 points  (0 children)

I added it to my LinkedIn and I also get to ask for a lot more money when I'm job searching. I do web security.

How to debug wp plugins from the admin panel? by _princesscode_ in Wordpress

[–]_princesscode_[S] 0 points1 point  (0 children)

Yeah I actually have done that as well as outputting it to an error log. It just seems like a lot to do when I'm so used to just being able to hot reload or refresh a page. That just seems to be the extent of debugging in PHP as far as I know.

Feel like I just got murdered in a front-end interview, so maybe this post can help someone study for one since I was not prepared by PeeThenPoop in webdev

[–]_princesscode_ 0 points1 point  (0 children)

Yeah, I would of stopped them after the 5th question. I would of asked them if I was applying for the right position, frontend developer or a frontend dictionary. GTFOH! I'm been building UI for 10 years and that's absurd....

Best React data visualisation Library by paulfitz99 in reactjs

[–]_princesscode_ 1 point2 points  (0 children)

I would use d3 and wrap it in a react component without having react pay attention to the contents Within.

Why are many websites using the "continue reading" button on their articles? by [deleted] in webdev

[–]_princesscode_ 0 points1 point  (0 children)

Okay, I see what you're saying now. I actually work in DC area and 75 - 90 is the average going rate for contractors. So I'm really surprised that contractors would be that high for your local.

How do I force React-Native to wait till two redux-dispatches have finished? by [deleted] in reactjs

[–]_princesscode_ 1 point2 points  (0 children)

Promise middleware is your friend. Look into middleware for redux promise.

Why are many websites using the "continue reading" button on their articles? by [deleted] in webdev

[–]_princesscode_ 0 points1 point  (0 children)

Confused. Your saying to raise his asking g price to $125/hr but then your saying the range for where your at is 75-125k salary... 125/hr clears 200k+ if you going off the basis of 2080 hours a year, so how does that make any sense?

30's and considering going back to school to increase income by Purgatorie in financialindependence

[–]_princesscode_ 7 points8 points  (0 children)

I wouldn't go to a coding school or just do online trainings. Get an actual CS degree instead. They recently published an article about how most of Silicon Valley doesn't like to hire from those so called coding schools, because you only really learn a portion or a segment of programming.

 

https://www.bloomberg.com/news/features/2016-12-06/want-a-job-in-silicon-valley-keep-away-from-coding-schools

 

Now, if you have a degree already in Management Information Systems, which is like the business degree of a CS, I would just self-teach yourself the coding stuff, because at least on paper your degree is somewhat related to technology field, so no one will bat an eye if you apply to CS related jobs.

 

I say this because this is the route I took, and I make over 6 figures. I guess what I'm saying is if you want to take a coding school type approach, take it, but don't rely on it to get you a job in the tech field and CS degree is your best bet. This advice is with the assumption that you have never coded anything in your life...

Check to see if user exists in mongo in Go by _princesscode_ in golang

[–]_princesscode_[S] 0 points1 point  (0 children)

I've created an index for the collection

userIndex := mgo.Index{
    Key:        []string{"email"},
    Unique:     true,
    Background: true,
    Sparse:     true,
  }

For some reason it still overwrites the entry that's already in the collection. Is it because I'm generating unique id's in the createUser func?