These are chat archives for FreeCodeCamp/Help

20th
Sep 2017
Waterkid123012
@Waterkid123012
Sep 20 2017 02:38 UTC
Can anyone help me with java oop and calculations?
Manish Giri
@Manish-Giri
Sep 20 2017 02:39 UTC
ask away
Waterkid123012
@Waterkid123012
Sep 20 2017 02:39 UTC
i need help with line 17.

double z = 123.456; long x = 7;
int a = 5, b = 2; char var = ‘H’;

System.out.print( 3 + 3 * 3 ); // LINE 1

System.out.print( a * (a % b) ); // LINE 2

System.out.print( b / a ); // LINE 3

System.out.print( ‘A’+ 5 * b); // LINE 4

System.out.print( 1 % 5 ); // LINE 5

System.out.print( a % b ); // LINE 6

System.out.print( b % a ); // LINE 7

System.out.print( ‘A’+ 5 ); // LINE 8

System.out.print( (double)( a / b) ); // LINE 9

System.out.print( (double)a / b ); // LINE 10

System.out.print( var + 5); // LINE 11

System.out.print((char)(var + 5)); // LINE 12

a=var+2;
System.out.println( a ); // LINE 13

z=var+5;
System.out.println( z); // LINE 14

var='A'+4;
System.out.println( var); // LINE 15

a*=2+5;
System.out.println( a ); // LINE 16

var=(char)(z-25);
System.out.println( var ); // LINE 17

a++;
System.out.print( a ); // LINE 18

b--;
System.out.print( b ); // LINE 19

++x;
System.out.print( x ); // LINE 20

System.out.print( --var ); // LINE 21

the answer is 4 but i dont know how you get it
Manish Giri
@Manish-Giri
Sep 20 2017 02:47 UTC
@Waterkid123012 have you tried using a breakpoint?
Waterkid123012
@Waterkid123012
Sep 20 2017 02:47 UTC
@Manish-Giri no
Manish Giri
@Manish-Giri
Sep 20 2017 02:47 UTC
try it out
put it at this line double z = 123.456; long x = 7;
then step through every line
and see which variables get what values
Waterkid123012
@Waterkid123012
Sep 20 2017 02:48 UTC
thanks
Kyle Holm
@thekholm80
Sep 20 2017 02:58 UTC
A programmer had a problem
He decided to use Java to fix it
Now he has lots of problems
@Manish-Giri
Waterkid123012
@Waterkid123012
Sep 20 2017 03:01 UTC
@Manish-Giri ok i dont think the answer is 4. i think its a letter becuse it has a char on it. so it would be a?
mstellaluna
@mstellaluna
Sep 20 2017 03:03 UTC
@thekholm80 :wave:
Kyle Holm
@thekholm80
Sep 20 2017 03:03 UTC
@mstellaluna hiya! long time no see
mstellaluna
@mstellaluna
Sep 20 2017 03:04 UTC
I'm always around
Kyle Holm
@thekholm80
Sep 20 2017 03:04 UTC
oh i know, but usually in that other room
i don't go there
mstellaluna
@mstellaluna
Sep 20 2017 03:06 UTC
yea I know
hehehe
Kyle Holm
@thekholm80
Sep 20 2017 03:06 UTC
:)
mstellaluna
@mstellaluna
Sep 20 2017 03:07 UTC
i just came to say Hi
Kyle Holm
@thekholm80
Sep 20 2017 03:10 UTC
@mstellaluna glad you did, hope you're well
and rocking all that dev ops stuff
mstellaluna
@mstellaluna
Sep 20 2017 03:11 UTC
Yea and Java
Kyle Holm
@thekholm80
Sep 20 2017 03:12 UTC
sigh someday i'll try java again
mstellaluna
@mstellaluna
Sep 20 2017 03:15 UTC
:)
Manish Giri
@Manish-Giri
Sep 20 2017 03:20 UTC
@thekholm80 lol
"lots of problems"
@Waterkid123012 var=(char)(z-25);
if z is an int
you're casting the int value to a char value
Waterkid123012
@Waterkid123012
Sep 20 2017 03:21 UTC
your right
Manish Giri
@Manish-Giri
Sep 20 2017 03:21 UTC
so yes it will be a letter
Waterkid123012
@Waterkid123012
Sep 20 2017 03:21 UTC
i put it in blue jay and it will give me the output of 4
Albert Cardona II
@daddycardona
Sep 20 2017 03:23 UTC
@Manish-Giri we are neighbors :) you're a good person now LOL
Manish Giri
@Manish-Giri
Sep 20 2017 03:24 UTC
lol
Waterkid123012
@Waterkid123012
Sep 20 2017 03:24 UTC
i got this 125
0
75
1
1
2
70
2.0
2.5
77
M
74
77.0
E
518
4
519
1
8
3
Manish Giri
@Manish-Giri
Sep 20 2017 03:24 UTC
i've been to Worcester a few times, when I was looking for a car
@daddycardona
Albert Cardona II
@daddycardona
Sep 20 2017 03:25 UTC
I live in east douglas now and I have driven many times past Natick because I had to go to boston and even went to the Natick mall once. Just to see the Microsoft store was worth it
Manish Giri
@Manish-Giri
Sep 20 2017 03:26 UTC
I mostly went to the Apple store there
lol
don't like MS products much
Albert Cardona II
@daddycardona
Sep 20 2017 03:26 UTC
I love MS products that MS makes I hate apple products
lol
Not saying they are bad I just don't care to relearn them anymore lol
Manish Giri
@Manish-Giri
Sep 20 2017 03:27 UTC
lol
yea
Albert Cardona II
@daddycardona
Sep 20 2017 03:27 UTC
I really hate the iphone though
iphone x the equivelant to an galaxy s5 lol or s6 for the wireless charging lol
working on that regex site and this (\w+ (\d+)) is not the same as
(\w+(\d+)) because it needs that space i rewrote it 8 times and saw the solution and was like but I did this
Ken Haduch
@khaduch
Sep 20 2017 04:00 UTC
Hey @Manish-Giri & @daddycardona - looks like the Massachusetts contingent is here this evening (night)... I'm about to sign off though. How are you all doing this evening??
Maybe you already signed off for the night, too... I hope that you're both doing well and perhaps I'll bump into your here in the chats sometime soon, although it seems that these chat rooms are not buzzing the way that they used to be. Take it easy @Manish-Giri and @daddycardona ... good night!
NAVANEETH
@NAVANEETH1
Sep 20 2017 05:29 UTC
what is the uses of databases, node.js, react.js and d3.js
Steven Zhang
@zcFreak
Sep 20 2017 06:07 UTC
anybady over all the course
Ashutosh Jena
@AshutoshJena
Sep 20 2017 06:31 UTC
I have my web craft hackathon next week and I haven't practiced for almost a year. What do I do?
Darren
@DarrenfJ
Sep 20 2017 06:37 UTC
evening fCC
Darren
@DarrenfJ
Sep 20 2017 06:48 UTC
@zcFreak what do you mean? you mean finished everything?
Darren
@DarrenfJ
Sep 20 2017 08:05 UTC
@AshutoshJena try some hackerrank or codewar challenges?
Nahuel Ovejero
@NahuelOvejero
Sep 20 2017 08:28 UTC
@DarrenfJ sup! evening, but here is 5:28 am :P
Sarmad
@sarmadzaki
Sep 20 2017 11:37 UTC
anyone here related to ionic 3? or 2
zhaostage
@zhaostage
Sep 20 2017 12:08 UTC

<style>
.red-text {
color: red;
}
</style>

<h2 class="red-text">我家的猫咪</h2>

<p class="red-text"{ font-size: 16px; }>在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
<p { font-size: 16px; }>养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>

why did not success?
it confuss me
heroiczero
@heroiczero
Sep 20 2017 12:09 UTC
@zhaostage you cant have { font-size: 16px; } in the html
@zhaostage you can either do
<style>
.red-text {
color: red;
}
p{
font-size:16px;
}
</style>
@zhaostage
or
<p style="font-size:16px;">
@zhaostage There is also a chinese channel https://gitter.im/FreeCodeCamp/chinese?source=suggested-menu
zhaostage
@zhaostage
Sep 20 2017 12:17 UTC
thx!
thx much!
I understood
Aita Kane
@aita-kane
Sep 20 2017 12:18 UTC
Hello Guys i wanted to know
Nahuel Ovejero
@NahuelOvejero
Sep 20 2017 12:31 UTC
wat
Johnny
@JohnnyBizzel
Sep 20 2017 13:25 UTC
@zhaostage <p { font-size: 16px; }> :x: <p style="font-size: 16px" > :+1:
@aita-kane What do you know?
heroiczero
@heroiczero
Sep 20 2017 13:38 UTC
@Manish-Giri @DarrenfJ a Little Cookie for you guys for helping the community :) @thekholm80 @JohnnyBizzel @khaduch TY
CamperBot
@camperbot
Sep 20 2017 13:38 UTC
heroiczero sends brownie points to @manish-giri and @darrenfj and @thekholm80 and @johnnybizzel and @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 1474 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 2036 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 1757 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
:star2: 6556 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 3301 | @khaduch |http://www.freecodecamp.com/khaduch
Johnny
@JohnnyBizzel
Sep 20 2017 13:42 UTC
@heroiczero ta :cookie: nom nom
Kyle Holm
@thekholm80
Sep 20 2017 13:59 UTC
@heroiczero ty!
CamperBot
@camperbot
Sep 20 2017 13:59 UTC
thekholm80 sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1753 | @heroiczero |http://www.freecodecamp.com/heroiczero
Garrus Napp
@GarrusNapp
Sep 20 2017 14:04 UTC
blob
this are 2 divs with display: inline-block;
why they're positioned like that
.container {
  padding: 20px 30px;
  background-color: lightblue;
  border: 2px solid silver;

}
.input, .output {
  padding: 10px;
  display: inline-block;
  margin-right: 10px;
  border: 2px solid black;
}
I assumed that the output div top will be where input div top is
Darren
@DarrenfJ
Sep 20 2017 15:23 UTC
@NahuelOvejero sorry I missed yah brutha.. snuck off to bed around 4 am :D
and thanks @heroiczero for the nod :D
CamperBot
@camperbot
Sep 20 2017 15:23 UTC
darrenfj sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1754 | @heroiczero |http://www.freecodecamp.com/heroiczero
Darren
@DarrenfJ
Sep 20 2017 15:24 UTC
and as usual the crew who always are in here helping out
thanks @Manish-Giri @thekholm80 @JohnnyBizzel @NahuelOvejero @daddycardona @sjames1958gm
CamperBot
@camperbot
Sep 20 2017 15:25 UTC
darrenfj sends brownie points to @manish-giri and @thekholm80 and @johnnybizzel and @nahuelovejero and @daddycardona and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 1475 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 1758 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
:star2: 6557 | @manish-giri |http://www.freecodecamp.com/manish-giri
:cookie: 345 | @daddycardona |http://www.freecodecamp.com/daddycardona
:cookie: 805 | @nahuelovejero |http://www.freecodecamp.com/nahuelovejero
:star2: 8472 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Darren
@DarrenfJ
Sep 20 2017 15:25 UTC
for keeping that chatRoom vibe alive :D
Johnny
@JohnnyBizzel
Sep 20 2017 15:25 UTC
@DarrenfJ :wave:
Kyle Holm
@thekholm80
Sep 20 2017 15:52 UTC
@DarrenfJ thanks for the cookies
CamperBot
@camperbot
Sep 20 2017 15:52 UTC
thekholm80 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2037 | @darrenfj |http://www.freecodecamp.com/darrenfj
Manish Giri
@Manish-Giri
Sep 20 2017 16:37 UTC
@heroiczero @DarrenfJ @thekholm80 @khaduch ty
CamperBot
@camperbot
Sep 20 2017 16:37 UTC
manish-giri sends brownie points to @heroiczero and @darrenfj and @thekholm80 and @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 1476 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 1755 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2038 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 3302 | @khaduch |http://www.freecodecamp.com/khaduch
Kyle Holm
@thekholm80
Sep 20 2017 16:38 UTC
@Manish-Giri ty too
CamperBot
@camperbot
Sep 20 2017 16:38 UTC
thekholm80 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6558 | @manish-giri |http://www.freecodecamp.com/manish-giri
Yaroslav
@YariPL
Sep 20 2017 17:20 UTC
hi. I have maybe very subjective question. But for real, what level of programming (javascript) has a person after finishing front-end part of FCC?
Garrus Napp
@GarrusNapp
Sep 20 2017 17:24 UTC
@YariPL decent enough for being able to continue learning on your own without being frustrated too much
Yaroslav
@YariPL
Sep 20 2017 17:25 UTC
@GarrusNapp thanks for answer
CamperBot
@camperbot
Sep 20 2017 17:25 UTC
yaripl sends brownie points to @garrusnapp :sparkles: :thumbsup: :sparkles:
:cookie: 847 | @garrusnapp |http://www.freecodecamp.com/garrusnapp
Garrus Napp
@GarrusNapp
Sep 20 2017 17:27 UTC
@YariPL I suggest reading "you dont know JS" , a series of books that's available freely online, it explains a lot of stuff
Chris
@bestintown23
Sep 20 2017 17:30 UTC
how can i make my satisfaction logo show on the right side of my "we are famous for" section? https://codepen.io/bestintown23/pen/RLPOog
Yaroslav
@YariPL
Sep 20 2017 17:31 UTC
@GarrusNapp I will try them. thanks)
CamperBot
@camperbot
Sep 20 2017 17:31 UTC
yaripl sends brownie points to @garrusnapp :sparkles: :thumbsup: :sparkles:
api offline
Daniel Ferrazoli
@ferrazoli
Sep 20 2017 17:33 UTC
@bestintown23 before anything else, you aren't closing one of your <h3> tags
Your first <h3> with class .subtext
I think you intended to close it right after the text because you open another one after the <br>
Chris
@bestintown23
Sep 20 2017 17:44 UTC
@ferrazoli thanks i'll take a look at it
CamperBot
@camperbot
Sep 20 2017 17:44 UTC
bestintown23 sends brownie points to @ferrazoli :sparkles: :thumbsup: :sparkles:
:cookie: 299 | @ferrazoli |http://www.freecodecamp.com/ferrazoli
Aita Kane
@aita-kane
Sep 20 2017 17:57 UTC
hello everybody i want some help me please, actually i found a cool tutorial on a slider of pictures but the problem is i'm really new with Js and the slider only work when you choose the effect here is the link of the tutorial : https://tympanus.net/Development/ItemTransitions/index3.html
and i wnat to know how to make it work without having to choose the effect first please help me
Adam Kim
@resv
Sep 20 2017 18:05 UTC
Hi, I got a question about tribute and portfolio on codepen, are are suppose to upload it on the pen section or project section in codepen?
piteto
@piteto
Sep 20 2017 18:09 UTC
@resv seems you only get one project unless you pay, but you get unlimited pens for free. So, if you have a free account, use pens
Adam Kim
@resv
Sep 20 2017 18:10 UTC
@piteto oh really, didn't know that. thanks a bunch.
CamperBot
@camperbot
Sep 20 2017 18:10 UTC
resv sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
:cookie: 130 | @piteto |http://www.freecodecamp.com/piteto
LydaTech
@lydatech
Sep 20 2017 18:24 UTC
@aita-kane its using this function to change the effect.
function changeEffect() {
        component.className = component.className.replace(/\bfx.*?\b/g, '');
        if( effectSel.selectedIndex ) {
            classie.addClass( component, effectSel.options[ effectSel.selectedIndex ].value );
            showNav();
        }
        else {
            hideNav();
        }
    }
Dylan
@dhcodes
Sep 20 2017 18:46 UTC
ah, thanks @thekholm80 for the regex ref
CamperBot
@camperbot
Sep 20 2017 18:46 UTC
dhcodes sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1477 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Kyle Holm
@thekholm80
Sep 20 2017 18:57 UTC
@dhcodes isn't that the link you gave me?
aRtoo
@artoodeeto
Sep 20 2017 19:30 UTC

hey fam. question. if i have this.

var test;
var rest = 1;

test = rest;

question:
are we duplicating the value of rest by just assigning rest to test?
or are we passing the value rest to test? so if we console at the bottom part rest will be undefined??

Kyle Holm
@thekholm80
Sep 20 2017 19:38 UTC
@artoodeeto i'd suggest trying it for yourself, but assigning a value to a variable like that does not affect the value being assigned. so in your example
var test;
var rest = 1;

test = rest;

console.log(test)  // => 1
console.log(rest)  // => 1
aRtoo
@artoodeeto
Sep 20 2017 19:46 UTC
@thekholm80 thank you but i kinda understand it. its jsut copying the value of rest.
CamperBot
@camperbot
Sep 20 2017 19:46 UTC
artoodeeto sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1478 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Manish Giri
@Manish-Giri
Sep 20 2017 19:49 UTC
@thekholm80 teach me regex
Kyle Holm
@thekholm80
Sep 20 2017 19:50 UTC
@Manish-Giri haha funny guy
Manish Giri
@Manish-Giri
Sep 20 2017 19:50 UTC
Kyle Holm
@thekholm80
Sep 20 2017 19:50 UTC
rofl
Engjell Bislimi
@Engjell00
Sep 20 2017 20:11 UTC
I need some help with basic Javascript I don't understand what it means!
var remainder=11%3;
Manish Giri
@Manish-Giri
Sep 20 2017 20:16 UTC
find the remainder when you divide 11 by 3
CamperBot
@camperbot
Sep 20 2017 20:16 UTC
find the remainder when you divide 11 by 3
nothing found
Manish Giri
@Manish-Giri
Sep 20 2017 20:16 UTC
assign it to remainder
Dylan
@dhcodes
Sep 20 2017 20:19 UTC
@Manish-Giri question for you
Manish Giri
@Manish-Giri
Sep 20 2017 20:19 UTC
@dhcodes hola amigo
Dylan
@dhcodes
Sep 20 2017 20:19 UTC
will you think me a jerk if I make more suggestions for #15833
hola
como estas?
Manish Giri
@Manish-Giri
Sep 20 2017 20:20 UTC
esta bien
lol
nah it's all good
Dylan
@dhcodes
Sep 20 2017 20:23 UTC
okay, because I'm not in love with how the "Build Javascript Objects" reads
I'm sure it's not you, it's me
Manish Giri
@Manish-Giri
Sep 20 2017 20:23 UTC
okay
Dylan
@dhcodes
Sep 20 2017 20:24 UTC
Will make suggestions momentarily
Kyle Holm
@thekholm80
Sep 20 2017 20:25 UTC
ah, the ol' "It's not you, it's me"
I never thought I'd see you two break up
Stephen
@TeddyHugs
Sep 20 2017 20:27 UTC
:O How's the singles market now @Manish-Giri Since @dhcodes broke up with you? xD
Dylan
@dhcodes
Sep 20 2017 20:27 UTC
we're still together
Kyle Holm
@thekholm80
Sep 20 2017 20:27 UTC
</3
Dylan
@dhcodes
Sep 20 2017 20:27 UTC
I just have commit issues
get it?
*dad joke
Kyle Holm
@thekholm80
Sep 20 2017 20:27 UTC
:joy:
Semak
@drdextar
Sep 20 2017 20:31 UTC
3 hours and i am still struck at the basic algorith challenge " Everything Be True" :(
Manish Giri
@Manish-Giri
Sep 20 2017 20:31 UTC
@TeddyHugs :wave:
Stephen
@TeddyHugs
Sep 20 2017 20:31 UTC
@Manish-Giri :wave:
Semak
@drdextar
Sep 20 2017 20:34 UTC
function truthCheck(collection, pre) {
  // Is everyone being true?

 var myvar = Boolean();
var propertycheck = collection.every(function(array){
    return array.hasOwnProperty(pre);
 });
for(i = 0; i<collection.length;i++){
 if (propertycheck == true && collection[i][pre] !== myvar){
 return true;
 } 
else if (propertycheck == true && collection[i][pre] == myvar)
return false;
}
return propertycheck; 

}

truthCheck([{"user": "Tinky-Winky", "sex": "male", "age": 0}, {"user": "Dipsy", "sex": "male", "age": 3}, {"user": "Laa-Laa", "sex": "female", "age": 5}, {"user": "Po", "sex": "female", "age": 4}], "age");
its only returning true values
Dylan
@dhcodes
Sep 20 2017 20:36 UTC
okay, I know it's crappy formatting but I did another review. Thanks for being understanding @Manish-Giri
CamperBot
@camperbot
Sep 20 2017 20:36 UTC
dhcodes sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6559 | @manish-giri |http://www.freecodecamp.com/manish-giri
Johnny
@JohnnyBizzel
Sep 20 2017 22:29 UTC
@drdextar Are you testing the whole collection in that for loop? I don't think you are.
Once you return true; the code exits.
Eric Miller
@ericmiller777
Sep 20 2017 22:41 UTC
hey guys
@DarrenfJ thanks
CamperBot
@camperbot
Sep 20 2017 22:42 UTC
ericmiller777 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2039 | @darrenfj |http://www.freecodecamp.com/darrenfj