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
Michael Bomholt
@bomholtm
@mutantspore thanks =)
CamperBot
@camperbot
bomholt sends brownie points to @mutantspore :sparkles: :thumbsup: :sparkles:
:star2: 1737 | @mutantspore |http://www.freecodecamp.com/mutantspore
jake-thewoz
@jake-thewoz
@bomholt Nice! I had trouble using forecast.io on mine, so I switched to a different one. Great design! You might want to make it so that it changes the weekly forecast to celsius/farenheit when you change it on the current temp.
Michael Bomholt
@bomholtm
@jake-thewoz hahaha totally forgot about that -_- thanks ^^
CamperBot
@camperbot
bomholt sends brownie points to @jake-thewoz :sparkles: :thumbsup: :sparkles:
:cookie: 286 | @jake-thewoz |http://www.freecodecamp.com/jake-thewoz
Michael Bomholt
@bomholtm
need to change and improve some thing still and that is one for sure haha
Randy Goldsmith
@Dueldrawer8
function rot13(str) {
     var newString = "";
  for(var i = 0; i < str.length; i++){
     newString += str.charCodeAt(i);
     if(newString[i] < 65 || newString[i] > 90){
        return String.fromCharCode(newString[i]);
      }
      else if(newString[i] < 78){
        return String.fromCharCode(newString[i] + 13);
      }
      else{
          return String.fromCharCode(newString[i] - 13);
        }

    }
} //function
```
why does my code go into the first if statement when the first letter is S?
rot13("SERR PBQR PNZC");
Greg Duncan
@GregatGit
@Dueldrawer8 do you know how to use the chrome debugger for these?
George Phalen
@gphalen
Could anyone take a look at my TwitchTV project? It works most of the time, but sometimes adds things to the wrong array.
Greg Duncan
@GregatGit
@gphalen can you pen your pen up?
Randy Goldsmith
@Dueldrawer8
@GregatGit yes.. i eventually got help
completed it
@GregatGit how long did it take you to complete intermediate algos
George Phalen
@gphalen
@GregatGit yep, thanks. http://codepen.io/gphalen/pen/akWpgO
CamperBot
@camperbot
gphalen sends brownie points to @gregatgit :sparkles: :thumbsup: :sparkles:
:cookie: 648 | @gregatgit |http://www.freecodecamp.com/gregatgit
Greg Duncan
@GregatGit
@Dueldrawer8 awhile - I kept coming back to them
@Dueldrawer8 do you know how to run a code snippet in the chrome debuger?
Randy Goldsmith
@Dueldrawer8
@GregatGit i don't believe i do
i just copy and paste code into chrome and console.log values most of time and it tells me where errors are
Greg Duncan
@GregatGit
@Dueldrawer8 can really help you figure out where your code is going wrong quickley
@gphalen first thing you need to do is hit the tidy button on the js panel (top right) then delete all the extra lines - it is spacing your code to far apart
@Dueldrawer8 I can show you how to look through your code on the debugger if you want
George Phalen
@gphalen
@GregatGit ok, sorry, I did some maintenance on the tidiness recently but it's still imperfect.
Mert Barış
@mertbaris

Hey guys, I'm dealing with the Weather Project from Freecodecamp. I wrote the code, but having problems with the output, maybe due to my code or due to my browser. I don't know what the problem is, in fact! I need your help :)

'''
$(document).ready(function() {
if(!navigator.geolocation) {
alert("Your browser doesn't support geolocation!");
} else {
navigator.geolocation.getCurrentPosition(success, error);
}

// if browser supports, success function is used. latitude and longitude are taken.
function success(position) {
var lat = position.coords.latitude;
var lng = position.coords.longitude;

var json, rawJson;                

// AJAX Request for Weather API. Data is transformed into JSON Object, then to Javascript object
$.getJSON("http://api.openweathermap.org/data/2.5/weather?lat=" + lat + "&lon=" + lng + "&APPID=bbc1be975abac3c4b7ea1259cae3c5e", function(data) {
  rawJson = JSON.stringify(data);
  json = JSON.parse(rawJson); 

  // city,date, weather to target at with jQuery
  var city = json.name;
  var weather = json.weather[0].description;
  var temperature = json.main.temp;

  // add content into HTML through jQuery
  $("#output").html(city);
  $(".date").html(weather);
  $(".temperature").html(temperature);  
});

}
});
'''

Randy Goldsmith
@Dueldrawer8
@GregatGit i just googled it, ive some experience but just never really use it. I may ask for help along the way if i use for these others algos
CamperBot
@camperbot
:bulb: to format code use backticks! ``` more info
Mert Barış
@mertbaris
oops
Greg Duncan
@GregatGit
@Dueldrawer8 It allows you to step through the code line by line and check the value of your variable so you can see the value of str.charCodeAt(i) at the first, then second iteration
Himad Mouhtar
@hmouhtar
Hi!! I'm having a trouble with a CORS in my json request
(after putting 'new quote')
Greg Duncan
@GregatGit
@gphalen so what it being added that shouldn't
George Phalen
@gphalen
@gregatgit accounts that are currently streaming will end up in stream2, which is intended for accounts that aren't streaming.
@gregatgit it doesn't happen every time, so it's frustrating to troubleshoot
Greg Duncan
@GregatGit
@gphalen what line is stream2
@gphalen i just found it
George Phalen
@gphalen
@gregatgit declared on line 3, added to on line 73
Greg Duncan
@GregatGit
@gphalen You have made this app way to complicated -
George Phalen
@gphalen
@GregatGit any suggestions to simplify?
Greg Duncan
@GregatGit
@gphalen
1 - See if channel is online/offline - https://api.twitch.tv/kraken/streams/
2 - if online you can get all the data from that api call
3 - if offline - https://api.twitch.tv/kraken/channels/
-all info for offline channels can be gotten from this api call
@gphalen make sure your for loops look like this
for (var i = 0; i < members.length; i++)
or
for (var i in members)
Matthew Bailin
@mdbailin
Hey all, I am more or less done with my calculator, but for some odd reason the input form and the clear button don't want to line up with the rest of the buttons.
Any ideas on how to fix this?
George Phalen
@gphalen
@GregatGit you mean, with the variable set to 0 within the loop?