Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Nick
@rhozeta
Hey, can anyone help me out! I am trying to do authentication with JsonWebToken and Passport, but I keep getting this error after applying passport.authenticate to my route:
(node:2624) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): CastError: Cast to ObjectId failed for value "undefined" at path "_id" for model "Post"
(node:2624) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Here is the strategy:
var opts = {}
opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken()
opts.secretOrKey = 'theysaidnmlmlm'
opts.issuer = 'accounts.theysaid.co'
opts.audience = 'theysaid.co'
passport.use(new JwtStrategy(opts, function(jwt_payload, done) {
  User.findOne({id: jwt_payload.sub}, function(err, user) {
    if (err) {
      return done(err, false)
    }
    if (user) {
      return done(null, user)
    } else {
      return done(null, false)
    }
  })
}))
Abraham Andres Luna
@geniusFunk
You could always browse the internet for more resources and tutorials about what you need to build. i like codeproject
@jvondarke try codeproject
@rhozeta I don't see the where you define the 'done' variable
Ryan Williams
@Ryanwfile
Can someone please help me with this div background image moving, the image moves as text appears and I just want the image to stay still, any help is greatly appreciated https://codereese.com/
Abraham Andres Luna
@geniusFunk
@Ryanwfile body {
background-image: url("img_tree.png");
background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed;
}
The fixed position will stop it from scrolling
Ryan Williams
@Ryanwfile
@geniusFunk Thank you so much, tried editing so much CSS in the inspector and couldn't pinpoint it
CamperBot
@camperbot
ryanwfile sends brownie points to @geniusfunk :sparkles: :thumbsup: :sparkles:
:cookie: 13 | @geniusfunk |http://www.freecodecamp.org/geniusfunk
Abraham Andres Luna
@geniusFunk
Thx for da brownies @Ryanwfile
What IDE are you using?
Ryan Williams
@Ryanwfile
@geniusFunk The site is on wordpress
Ryan Williams
@Ryanwfile
@geniusFunk I have tried that css in a few locations in the chrome inspector and can't seem to fix the image moving issue, where specifically should I use this css?
Abraham Andres Luna
@geniusFunk
@Ryanwfile use that css on the div class definition
Let me fire up the laptop and review your code
Ghost
@ghost~5928d90bd73408ce4f629b9e
does anyone know useful links for understanding authentication in express just the basic without using mongoose for modelling.. every tutorial i find uses this piece of #### like the writers just copy paste each other
Ali Bulut
@ali27001
image.png
image.png
how can I do that
circle image hover bla bla
do not care about the picture behind
i want to give hover into circle and add icon into
Fabien SHAN
@X140hu4
@ali27001 You could have a div for the background image, a nested div that shows on :hover.
Ali Bulut
@ali27001
Is there any example I can look at
Fabien SHAN
@X140hu4
The image you posted?
Marianissimus
@Marianissimus
@ali27001 A div over a div over a div / OR pseudo-classes - before & after
Frosty427
@Frosty427
@Frosty427
image.png
why does my hamburger button get pushed to the side on mobile?
is it the padding of the colorful flaT?
https://codepen.io/Frosty27/pen/rdVqJb
nvm
founf it
Edy1988
@Edy1988
hi guys check out my portfolio page! https://codepen.io/EdyB/full/eMNPqO/ . Its not pretty... design is not my strong point yet. x
Marianissimus
@Marianissimus
@Edy1988 Hi, I like the colors - the pink and the light blue:)
Fabien SHAN
@X140hu4
@ali27001 quick and dirty example: https://jsfiddle.net/36e6tcwm/3/
Edy1988
@Edy1988
@Marianissimus hi thanks! I really struggle to choose fonts and colours
CamperBot
@camperbot
edy1988 sends brownie points to @marianissimus :sparkles: :thumbsup: :sparkles:
:cookie: 481 | @marianissimus |http://www.freecodecamp.org/marianissimus
Marianissimus
@Marianissimus
You're welcome. Next time, maybe try to take care of the layout more - margins, centering, etc. Find a site that inspires you and try to copy it.
Edy1988
@Edy1988
@X140hu4 this is cool!
Ghost
@ghost~5a4a80acd73408ce4f859755
@Edy1988 Do you want a colours guide?
Someone sent one to me yesterday... its a palette maker kinda thing
Edy1988
@Edy1988
@Marianissimus yes! good point, otherwise it takes too much time to try and come up with a lay out. Thanks!
CamperBot
@camperbot
edy1988 sends brownie points to @marianissimus :sparkles: :thumbsup: :sparkles:
api offline
Fabien SHAN
@X140hu4
@Edy1988 CSS is pretty powerful haha. If you browse around codepen you can find some amazing stuff
Edy1988
@Edy1988
@MuhammedKarim sure, although choosing the right ones is the problem for me... ha
Ghost
@ghost~5a4a80acd73408ce4f859755
Fabien SHAN
@X140hu4
@MuhammedKarim Pretty cool