## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### 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
Blake Geraci
@bgeraci714
ultimately the answer for pairwise([1,1,1],2) should be 4
@sigursiguros, be careful for that little pitfall. You might actually want the regular a and i as opposed to +a and +i
sigursiguros
@sigursiguros
the pairwise for ([1,1,1],2) should be 1
as the first 1 (index of 0) pairs with the second 2 (index of 1) and sum of 0 and 1 equals 1
sigursiguros
@sigursiguros
so why is passing a and +a giving different results in my code? I don't get it
Dickson
@dsonnn
Hi guys, html question. How do I center an image? <img src="" align="middle"> doesn't seem to work..
Ethan Rose
@ethanrose
would anyone mind taking a look at my weather API project and critiquing it? :D also.. I'm curious as to what the error in the console means, since everything is working as it should be.. thanks!!
http://codepen.io/aidansven/pen/WxGejy?editors=0010
sigursiguros
@sigursiguros
@dsonnn align="middle" should work
Ethan Rose
@ethanrose
BY THE WAY---- on my codepen... it can't be https:// so you'll have to change it to http:// :/ I'm pretty sure that's how it has to be for chrome users now.. at least that's how I understand it...
otherwise the https:// codepen won't talk properly to the http:// API ................... that's my understanding
Dickson
@dsonnn
@sigursiguros somehow it works now. Thanks!
CamperBot
@camperbot
dsonnn sends brownie points to @sigursiguros :sparkles: :thumbsup: :sparkles:
:cookie: 366 | @sigursiguros |http://www.freecodecamp.com/sigursiguros
Blake Geraci
@bgeraci714
@sigursiguros I'm pretty sure that @jdtdesigns has it right but if you do it with the +, you miss out on matches besides the first.
Bruce Young
@mutantspore
@aidansven your error is becasue of this in your <head> setup in the codepen settings <link href="css/materialdesignicons.min.css" media="all" rel="stylesheet" type="text/css" />
Ethan Rose
@ethanrose
ah thank you @mutantspore and I now realize I wasn't even using materialdesign after all .. :) I removed that line :)
CamperBot
@camperbot
aidansven sends brownie points to @mutantspore :sparkles: :thumbsup: :sparkles:
:star2: 1734 | @mutantspore |http://www.freecodecamp.com/mutantspore
Ethan Rose
@ethanrose
are there any weird UI things that I should fix? or does the UI seem pretty well done?
Vipin kumar
@vipin917
what should i write in my code-pen??
what should i write in my code-pen??
Krishna Sai Gullapalli
@Krish2704
you'll have 3 panels in your codepen
html,css,js
Vipin kumar
@vipin917
okay thank you
d1sr3
@d1sr3
Hello could anyone tell me what am I doing wrong? I'm trying to get json from an api, but can't get it to work. I'm getting "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en. (Reason: CORS header 'Access-Control-Allow-Origin' missing)." error in web console. And this is my code : \$.getJSON("http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en", function(json){
console.log(json.quoteText);
});
Harshil Agrawal
@harshil1712
hey. Can anyone help me with me the weather app challenge. I am not able to change the background, I have tried everything. http://codepen.io/harshil1712/pen/mEmXBY
sahil chahar
@sahil1995
@fhdhsni done
Sophia Brandt
@sophiabrandt
@harshil1712
https://css-tricks.com/almanac/properties/b/background-image/
for example:
body{
background: url(https://upload.wikimedia.org/wikipedia/commons/5/58/Sunset_2007-1.jpg) no-repeat center center fixed;
}
Harshil Agrawal
@harshil1712
@sophiabrandt what I want to do is change the background according to the weather. Like example if it is rain I want a particular background, for clear weather I want another bg and so on.
Sophia Brandt
@sophiabrandt
@harshil1712 oh, sorry, I misunderstood. I don't know how to do it ATM,.
Harshil Agrawal
@harshil1712
@sophiabrandt no problem
d1sr3
@d1sr3
@sophiabrandt I have disabled access control and I'm getting "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host]", "not well-formed" and "TypeError: aWindow is undefined" now
Ray Liu
@mania7539
Hey guys, do you want to play tic tac toe? :) I just finished it and would like to hear from you , let me know your opinions, here it is: http://codepen.io/mania7539/full/QEpjMB
NamanJain2050
@NamanJain2050
hi,
i was making the tribute page, but i am facing problems with overriding bootstrp styles with my own css
i am a newbie to web development
can anyone help me here?
Jack Lyons
@JackEdwardLyons
hey guys i have a question about string replace
why does this not add a dash with every space?
str = "hello m name is jack";
str.replace(" ", "-");
returns ----->  "hello-my name is Jack"
why only the first word?
Norvin Burrus
@ndburrus
@JackEdwardLyons this may be helpful:
Stefan
@Isak7
Hi guys, I am building my first Front End project. I see that all of my things are gonna be in one div (box), how to make it centered relative to the page?
Susan
@tmmggmmdld
Thanks so much
Thanks so much Aaron Taylor.
Norvin Burrus
@ndburrus
@sigursiguros these may be helpful:
Hong
@designBuildShipSoftware
Hi, I am trying to get weather info from openweathermap.org by ZIP code. But I got an error message:{"cod":"404","message":"Error: Not found city"}
Here is my code