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
Skyelar Habberfield
@habberfields
Hey everyone! Just a random question... any recommended image hosting sites? tried using my flickr but the file for my logo comes through low res
Ankit Agarwal
@ankit-prgmr
@habberfields you can use cloudinary or this https://imgsafe.org/
dilip chavan
@dilipchavan561
how to give link of codepen after completing tribute page??
i guess bo luck here,
no luck
dilip chavan
@dilipchavan561
????
Ritvars
@RitvarsZ
@dilipchavan561 Go in your codepen, and just copy the url, then go on fcc and submit it ✌
Igor Amidzic
@igoramidzic
Can someone help me with a problem?
I have a web app which has a '/', '/account', and '/account/info'.
Everything works in '/' and '/account', but if I go to '/account/', I get this:
Capture.PNG
using node js & express
c0d0er2
@c0d0er2

Can anybody please help me on Use Bracket Notation to Find the First Character in a String in JavaScript? Here is my code:

var firstLetterOfFirstName = "";
var firstName = "Ada";
firstLetterOfFirstName = firstName[0];

// Setup
var firstLetterOfLastName = "";
var lastName = "Lovelace";

// Only change code below this line
var firstLetterOfLastName = "";
var lastName = "Frank";
firstLetteOfFirstName = firstName[0];

Here is my link: https://www.freecodecamp.com/challenges/use-bracket-notation-to-find-the-first-character-in-a-string

Igor Amidzic
@igoramidzic
@c0d0er2 Read the instructions. It says the firstLetterOfFirstName variable should be = 'L'
@c0d0er2 So, you should set firstLetterOfFirstName = lastName[0],
since the last name starts with L.
Your first name starts with A
c0d0er2
@c0d0er2
@igoramidzic Ok, Thanks!
CamperBot
@camperbot
:warning: could not find receiver for igoramidzic
c0d0er2 sends brownie points to @igoramidzic :sparkles: :thumbsup: :sparkles:
Igor Amidzic
@igoramidzic
@c0d0er2 Any time
Tyler Moeller
@TylerMoeller
@igoramidzic Those errors mean that the files don't exist in those locations. If the files are indeed there, we'd have to see all your code to help further.
Igor Amidzic
@igoramidzic
@TylerMoeller Well no, they're not there.
My images folder, for example, is in 'localhost:3000/img',
@TylerMoeller but if I go to 'localhost:3000/account/', it tries to look for img folder in 'localhost:3000/account/img'
Tyler Moeller
@TylerMoeller
@igoramidzic Are you using relative paths instead of absolute paths to those files perhaps?
Igor Amidzic
@igoramidzic
@TylerMoeller yes
how do I set absolute path?
Tyler Moeller
@TylerMoeller
The absolute path would be http://localhost:3000/img/...
instead of ./img/...
Igor Amidzic
@igoramidzic
@TylerMoeller What happens when I want to deploy this for production? Tough luck for me? Gotta change every link again to http://website.com/img/?
Tyler Moeller
@TylerMoeller
Ideally, a variable can be used in place of http://localhost:3000/ so your code can move from one server to another
Igor Amidzic
@igoramidzic
oh I see
so I could do handlebars img src="{{ absolutePath }}/img"
Tyler Moeller
@TylerMoeller
I forget how to do that in node offhand, but it should be able to query something like http_host:server_port
Igor Amidzic
@igoramidzic
Oh, alright
@TylerMoeller Thank you
CamperBot
@camperbot
igoramidzic sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1224 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
Tyler Moeller
@TylerMoeller
hope that helps get you on the right path :+1:
Igor Amidzic
@igoramidzic
lol
Tyler Moeller
@TylerMoeller
no pun intended :)
Igor Amidzic
@igoramidzic
no pun taken :shipit:
Tyler Moeller
@TylerMoeller
lol
Colin
@finkbeca
hi im new
Igor Amidzic
@igoramidzic
@finkbeca type "hello world!"
Luuk Motz
@mumBa1
hello guys, i litterly forgot how to center text in css. could someone help me?
Igor Amidzic
@igoramidzic
@mumBa1 text-align: center
Luuk Motz
@mumBa1
thanks
Igor Amidzic
@igoramidzic
np
Luuk Motz
@mumBa1
i did it with double l :)
Igor Amidzic
@igoramidzic
lmao
Colin
@finkbeca
I have a question, how can I draw a diagnol line from the top center of a div to the bottom right.
Luuk Motz
@mumBa1
i really dont know
Igor Amidzic
@igoramidzic
@finkbeca
---------------------------------------------------|
| \ |
| \ |
| \ |
|____|
oops that didn't work lol