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
CamperBot
@camperbot
alexxmart sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
:cookie: 174 | @piteto |http://www.freecodecamp.com/piteto
piteto
@piteto
@AlexxMart Glad that helped :)
Gaurav khanna
@gomzk85
@piteto can you give some idea where to how to tackle such problems or design questions
piteto
@piteto
@gomzk85 "design" is very broad - can you be more specific on the type of technology you would work with?
web design, User Experience, c/c++
UI Development for native windows apps can be very different compared to web apps
@halohah For JSON APIs, they can be really scary at first. In the end though, it's all about working with JSON and accessing data. You use a method like getJSON, ajax, or fetch() and pull up a URL - it then gives you back JSON (data) in return that you can access to show on a page.
$.getJSON(url).then(function(data) {
  // request to URL complete! your JSON is in the data variable
});

$.ajax(url).then(function(data) {
  // request to URL complete! your JSON is in the data variable
});

fetch(url).then(res => res.json()).then(function(data) {
  // request to URL complete! your JSON is in the data variable
});

/***********
  if you get a cross origin error, use JSONP instead
***********/

$.getJSON(url + "?callback=?").then(function(data) {
  // request to URL complete! your JSON is in the data variable
  // if your URL already has a ? in it, use &callback=? instead.
});

$.ajax({
  url: url,
  dataType: 'jsonp'
}).then(function(data) {
  // request to URL complete! your JSON is in the data variable
});
Ghost
@ghost~59cdefc7d73408ce4f77dab0
@parthprakash1
Hi guys! Could anyone help me with this-
function numfunc() {
var cnum=rnum;
var rnum=Math.floor(Math.random()*20);
if (cnum===rnum){
numfunc()
}
console.log(rnum);
}
What I want to do is generate a random num but if its the same a s last one then I want to run it again
it refers to the function
Kris Baillargeon
@krisb1220
hey guys - thoughts on my website's new design?
Long Nguyen
@longnt80
@parthprakash1
var cnum;

function numfunc() {

    var rnum=Math.floor(Math.random() * (3 - 1) + 1);
    if (cnum===rnum){
        numfunc();
    }
    else {
        cnum=rnum;
    }

}
Kris Baillargeon
@krisb1220
u forgot the ;
numfunc() ----- numfunc();
Ghost
@ghost~59cdefc7d73408ce4f77dab0
Yup thanks @krisb1220
CamperBot
@camperbot
parthprakash1 sends brownie points to @krisb1220 :sparkles: :thumbsup: :sparkles:
:cookie: 254 | @krisb1220 |http://www.freecodecamp.com/krisb1220
Kris Baillargeon
@krisb1220
np
Gaurav khanna
@gomzk85
@piteto technology will be javascript experience i have is 8+ years UI development for web apps
Ian Gracia
@iangracia
Can someone help me with the challenge "Everything Be True" ?
I don't understand the challenge
"Check if the predicate (second argument) is truthy on all elements of a collection (first argument)."
Ian Gracia
@iangracia
nvm i solved it
Matej Bošnjak
@mbosnjak01
I found get.JSON working really slow in comparison to standard jquery ajax call ... although I don't know why ... XD
Long Nguyen
@longnt80
@mbosnjak01 it's just a shorthand, I can't see how it can be slower
linkin-park
@linkin-park
hi
what is nvm , why its required ? @iangracia
CamperBot
@camperbot
linkin-park sends brownie points to @iangracia :sparkles: :thumbsup: :sparkles:
:cookie: 343 | @iangracia |http://www.freecodecamp.com/iangracia
dilaniat
@dilaniat
Hey everyone, I need some help. I'm creating a web page for homework. I can only use html and css. I created a form for my contact page and centered the form using width: 0 auto;
but now when i display the page the form is behind the nav bar
Naveen Sharma
@naveencoder13
dilaniat
@dilaniat
@naveencoder13 It looks great. Did you use bootstrap? Can you help me with my problem I stated above?
Naveen Sharma
@naveencoder13
@dilaniat first of all thanks for this appreciation and i am a newbie in this industry and this is my first project, so i can try tell me what you are trying to do?
CamperBot
@camperbot
naveencoder13 sends brownie points to @dilaniat :sparkles: :thumbsup: :sparkles:
:cookie: 119 | @dilaniat |http://www.freecodecamp.com/dilaniat
Moisés Man
@moigithub
...probably u should also post a link to ur webpage, soo we can see what code u did which causes that behavior @dilaniat
else will be hard to guess....
maybe u have a fixed position navbar, since this make the nav "floating" all content hide below .. a solution is add some padding on top to ur component below
dilaniat
@dilaniat
I'm using sublime text and all the files are on my flash drive. I can input the code onto codepen so you can see it but i don't think the images will show up since they live in a folder on my flash drive
I'll try to screenshot?
Marc
@MWBauer
Is copyright a thing we need to worry about when making a portfolio?
dilaniat
@dilaniat
here's my html....
image.png
and css...
image.png
when i created the form it was all the way to the left. i centered it by using margin:0 auto;
as you can see the form is now behind the nav
should I just use margin left to move the form over to the center instead?
Jorge
@flawedLogic506
hows it going fellow campers
i guess chat is quite dead
alpox
@alpox
@OrangeKulture Yea it gets less because the chat is not on the freecodecamp website anymore
Jorge
@flawedLogic506
yeah we should probably start a revolution