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
Muhammad Sirajuddeen
@sirajtechy
Come back let's try
Dariusz Biskupski
@Visiona
Hi all, I wonder if anyone can help me understand why a bunch of divs position: relative is overlapping my top navbar positioned as fixed
Muhammad Sirajuddeen
@sirajtechy
Try this
<div id="nav"><!-- here u put your options --></div><script>
position : relative;
top :0%;
height :100px;</script>
Hi Dariusz ,try this and lemme know.
Mark
@cityproject
and I'm back.
Dariusz Biskupski
@Visiona
I haven't added script to html yet, I have <header class="navbar">...</header> ... I put this script underneath but didn't help:(
Norvin Burrus
@ndburrus
@Visiona are you using nested divs?
Muhammad Sirajuddeen
@sirajtechy
Send me ur navbar properties
Vishal Bansal
@Vishal0024
hi all...i need help with Random quote machine...
anybody can help?
d1sr3
@d1sr3
hello does anybody know about some recent changes in openweahtermap api, I just realised my project has stoped working, ajax call is suddenly returning an error
Dylan
@dhcodes
@d1sr3 i'm assuming you're on chrome
in which case, chrome stopped allowing html5 location to be transmitted over http (requires https)
you could get location via ip and it would still work in chrome but not be quite as accurate @d1sr3
d1sr3
@d1sr3
@dhcodes firefox
Andrew Perrin
@Pezz18
Hi all, a few months back i completed the weather API challenge, last night I was browsing through my code pen account and noticed this particular pen appears to be no longer working as expected,, can anyone help me work out whats gone wrong??? http://codepen.io/pezz18/pen/EKYpNO
Stephen James
@sjames1958gm
@Pezz18 If you are running chrome then navigator.geolocation.getCurrentPosition this no longer works from http urls
Andrew Perrin
@Pezz18
@sjames1958gm ah, ok, so is there an alternative?
ajayadav09
@ajayadav09
can some one help me understand what is async and sunc in javascript?
Andrew Perrin
@Pezz18
let me test it in firefox too..
Ademola Adegbuyi
@ooade
@Pezz18 use http://ipinfo.io as an alternative
d1sr3
@d1sr3
@Pezz18 i have got the same problem as u and I'm using firefox
Stephen James
@sjames1958gm
@Pezz18 Also ip-api.com/json
Andrew Perrin
@Pezz18
ok, @sjames1958gm are these pretty easy to implement then?
Stephen James
@sjames1958gm
@Pezz18 Yeah, just have to use getJSON to get the data rather than getCurrentPosition.
@Pezz18 I had to make the same change.
Ademola Adegbuyi
@ooade
same ere
Andrew Perrin
@Pezz18
ok, i will have a look,,, how do ip address locations work? as i am based in Leicestershire UK, yet i notice the positions always pull my ip address as being located in Reading UK!
Stephen James
@sjames1958gm
@Pezz18 Yeah, not real accurate, but I guess good enough for this kind of challenge. A real application would run under https:// and not have this problem
d1sr3
@d1sr3
@sjames1958gm is it surely the problem? When I tried to console.log my position I got it withour problems
Stephen James
@sjames1958gm
@d1sr3 getCurrentPosition() and watchPosition() are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details. this is from the console when I run his pen from chrome. At least a newish chrome
Chrome/51.0.2704.103
d1sr3
@d1sr3
@sjames1958gm I set up my coordinates manually and got the same error
Ademola Adegbuyi
@ooade
@d1sr3 are you using openweather??
d1sr3
@d1sr3
Ademola Adegbuyi
@ooade
@d1sr3 openweather don't allow unsecured calls again
@d1sr3 make use of https://
d1sr3
@d1sr3
@marhyorh It didn't help
Ademola Adegbuyi
@ooade
@d1sr3 how did you make the call?
@d1sr3 they still allow http:// tho
d1sr3
@d1sr3
@marhyorh $.ajax({ url: 'http://api.openweathermap.org/data/2.5/find?lat=10&lon=10&cnt=1&appid=14c16869c29c68a5909a55fb623e1397', success: function(response) { console.log(response); } });
Thomas Burgess
@ThomasBurgess2000
Hey, for the JavaScript basic algorithm challenge "Return Largest Number in Array" this is the code I was trying, and it seemed to output the exact results it was looking for, but for some reason it's not accepting it as the solution.
var largestNumbers=[];
function largestOfFour(arr) {
  for (i=0; i<4; i++){
    var highest=0;
    for (a=0;a<4;a++){
      if (arr[i][a]>highest){
        highest=arr[i][a];        
      }
    }
    largestNumbers.push(highest);
  }
  return largestNumbers;
}
largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
Stephen James
@sjames1958gm
@ThomasBurgess2000 Cannot use globals as FCC will run your code multiple times and the global is not reset
Ademola Adegbuyi
@ooade
@d1sr3 it works here!
Joel Abees
@JoelAbees
Hey guys, I need help.
Ademola Adegbuyi
@ooade
@d1sr3 use $.getJSON() if your ajax call don't work but its working ere.. Share your pen
Thomas Burgess
@ThomasBurgess2000
Thank you so much, that fixed it @sjames1958gm
CamperBot
@camperbot
thomasburgess2000 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles: