These are chat archives for FreeCodeCamp/Help

4th
Jun 2018
aenkirch
@aenkirch
Jun 04 2018 06:49
Hello everybody, I created an unofficial Telegram group for FreeCodeCamp help for the users who rather use Telegram over Gitter, here is the link https://t.me/joinchat/HKpVEhAd-YjE3YP-6XT5-Q
PeterWebDev
@PeterWebDev
Jun 04 2018 11:38
im not update to js yet but isnt it part of the test loop to find the length or the array so it stops looping at the right moment?
upto*
JS
@24KPureHandSome
Jun 04 2018 12:45
image.png
i dont know why my code cant success
is it any issues?
Nazar
@IsaakNazar
Jun 04 2018 12:58
@24KPureHandSome link ?
Ken Haduch
@khaduch
Jun 04 2018 13:17
@24KPureHandSome - it looks like you are missing the tests where there are no missing letters in the range. In that situation, you should be doing return; or return undefined; (which is the value that you return if you just to the return;) You are using the word "undefined" and that is not correct. Instead of doing letter.push('undefined'); you should just do return;
JS
@24KPureHandSome
Jun 04 2018 13:19
image.png
@khaduch yeah,its successful
thx!
Kyle Holm
@thekholm80
Jun 04 2018 14:00
@khaduch :wave:
Ankur Sharma
@AnkurSharma102
Jun 04 2018 14:30

Applied Visual Design - Create Texture by Adding a Subtle Pattern as a Background Image
One way to add texture and interest to a background and have it stand out more is to add a subtle pattern. The key is balance, as you don't want the background to stand out too much, and take away from the foreground. The background property supports the url() function in order to link to an image of the chosen texture or pattern. The link address is wrapped in quotes inside the parentheses.

Using the url of https://i.imgur.com/MJAkxbh.png, set the background of the whole page with the body selector.

its not working
<style>
body {
background : url( https://i.imgur.com/MJAkxbh.png);

}
</style>
meitram
@meitram
Jun 04 2018 14:42
try putting the url between quotes
background: url("...............");
Ankur Sharma
@AnkurSharma102
Jun 04 2018 15:26
aaaah thank you @meitram
Thomas Tylek
@zippkidd
Jun 04 2018 15:28

$current_url = "b";
$array = array(
"a" => "b",
);

function convertUrl($url) {
if (array_key_exists($url, $array)) {
return $array[$url];
}
elseif (in_array($url, $array)) {
return array_search($url, $array);
}
else {
return null;
}
};

$convertedUrl = convertUrl($current_url);
echo $convertedUrl;

I'm getting an error: in_array expects parameter 2 to be array, null given
Anyone know why that is? It seems to me that the array is being clearly defined
Thomas Tylek
@zippkidd
Jun 04 2018 15:37
It seems that I need to use "global $array" inside my convertUrl function to access the array. Would that make my array global though?
as3338
@as3338
Jun 04 2018 15:40
image.png
hi all, i'm facing troubles here
idk what i'm doing wrong
i looked up online as well and it seems my nesting is correct but it's still showing errors
as3338
@as3338
Jun 04 2018 15:57
any suggestions?
Christopher McCormack
@cmccormack
Jun 04 2018 16:02
@as3338 Try copying the code, resetting, pasting and trying again
helps sometimes
Moisés Man
@moigithub
Jun 04 2018 16:03
@as3338 it says to use ur existing a element
soo.. do NOT create new ones
reuse the one u have above
(move up/replace the code u added)
as3338
@as3338
Jun 04 2018 16:13
okay
got it, done (Y) thanks guys, it was a classic case of missing the fine print
Kyle Holm
@thekholm80
Jun 04 2018 17:23
@mstellaluna
image.png
mstellaluna
@mstellaluna
Jun 04 2018 17:23
wassup?
@thekholm80 heheheh
@thekholm80 the joke going around twitter is MS is the only people to pay for something on GitHub
Kyle Holm
@thekholm80
Jun 04 2018 17:25
lol i saw that
mstellaluna
@mstellaluna
Jun 04 2018 17:25
probably true tbh
Kyle Holm
@thekholm80
Jun 04 2018 17:26
i hope they don't change too much
mstellaluna
@mstellaluna
Jun 04 2018 17:26
i read MS's annoucement
Kyle Holm
@thekholm80
Jun 04 2018 17:26
but if they do, there's always gitlab
mstellaluna
@mstellaluna
Jun 04 2018 17:26
they say they are keeping GitHub as it
they will start to push GitHub toward enterprise
well the people who created GitHub are laughing all the way to the bank so.. they don't seem to worried
Kyle Holm
@thekholm80
Jun 04 2018 17:30
must be nice
mstellaluna
@mstellaluna
Jun 04 2018 17:30
sure $7 billion
me too i'd be laughing
May Kittens Devour Your Soul
@diomed
Jun 04 2018 18:40
»»————- ☠ ————-««
sometimes I think FCC is nothing but a test for people's ADD
ahsan waseem
@ahsanwaseem
Jun 04 2018 20:55
Hi guys, is there a w3schools style website for Java
Laura Veee
@Cyclokitty
Jun 04 2018 21:10
@ahsanwaseem https://www.tutorialspoint.com/java/java_documentation.htm is easier to follow than oracle docs for java. I use it and oracle when looking up docs.
Chase Sawyer
@shadowimmage
Jun 04 2018 21:13
@ahsanwaseem also, if you're looking for style guides, I'm not aware of a w3schools one for Java, but Google (and a lot of other large groups) has a style guide for java (https://google.github.io/styleguide/javaguide.html) as well as many other languages.
ahsan waseem
@ahsanwaseem
Jun 04 2018 21:30
@Cyclokitty and @shadowimmage
Thanks