These are chat archives for FreeCodeCamp/Help

8th
Feb 2018
Rachel Riley
@ParadiseArtist
Feb 08 2018 00:09
Hello all, I really like the title of this room I always feel like I’m in the right place here. lol
Kyle Holm
@thekholm80
Feb 08 2018 00:09
lol
Rachel Riley
@ParadiseArtist
Feb 08 2018 00:12
Has anyone else gotten through setting up a MEAN stack virtual machine on their mac?
I have tried a couple of times now and I’m not doing something right. I was able to successfully set up XAMPP and use it on my system so I don’t think I’m completely inept but I’m starting to have my doubts.
Kyle Holm
@thekholm80
Feb 08 2018 00:15
i've only ever set up VMs with operating systems, are you trying to run a VM with just node?
I would think the simple solution would be just to install node on your mac
or a linux VM with node
Rachel Riley
@ParadiseArtist
Feb 08 2018 00:27
I said virtual machine which it is but its a virtual box virtual machine. Yeah its linux I had a starter file that was supposed to have all the correct stuff in it but I’m thinking I might have to add everything one at a time.
Kyle Holm
@thekholm80
Feb 08 2018 00:27
are you running a full linux install or are you doing this headless?
Rachel Riley
@ParadiseArtist
Feb 08 2018 01:34
I’m not sure? I’m installing Ubuntu??? lol
eeflores
@eeflores
Feb 08 2018 01:41
Ubuntu server? I'm not sure, but I think server had installation options for certain configurations. Haven't installed Ubuntu in a while ...
eeflores
@eeflores
Feb 08 2018 01:48
Rachel Riley
@ParadiseArtist
Feb 08 2018 02:03
I’m going to take some screenshots and check out those links. I have been working on it most of today and yesterday so I’m a little brain dead too. lol
@eeflores thanks! I think that first link is looking pretty good so far.
CamperBot
@camperbot
Feb 08 2018 02:04
paradiseartist sends brownie points to @eeflores :sparkles: :thumbsup: :sparkles:
:star2: 1029 | @eeflores |http://www.freecodecamp.org/eeflores
Tyler Stoddard
@TylerStoddard
Feb 08 2018 02:09

hey guys im a bit confused on how i should be using divs to style my page. im trying to replicate this template for some practice.https://www.freewebtemplates.com/download/free-website-template/template-41-312173811/demo/
<!DOCTYPE html>

<html>
<head>
<title>Portfolio Site #1</title>
<link href="main.css" rel="stylesheet" />
</head>
<body>
<div id="background-image">
<div id="background-overlay"></div>
</div>
<div id="title-container">
<h1>
Title
</h1>
<p>Ipsum gravida sed feugiat amet tempus.</p>
<hr>
</div>
<div id="camera-guy-container">
<h3>
MAGNA ETIAM
</h3>
<p>Ipsum dolore consequat sed amet feugiat nisl sed amet tempus dolor adipiscing nulla tempus.</p>
<img src="images/camera-guy.jpg" alt="Man holding a camera.">
<a href="camera-guy.html">MORE</a>
<hr>
</div>
<div id="waterfall-container">
<h3>
SED FEUGIAT
</h3>
<p>Ipsum dolore consequat sed amet feugiat nisl sed amet tempus dolor adipiscing nulla tempus.</p>
<img src="images/waterfall.jpg" alt="picture of a waterfall.">
<a href="waterfall.html">MORE</a>
<hr>
</div>
<div id="farm-girl-container">
<h3>
NISL BLANDIT
</h3>
<p>Ipsum dolore consequat sed amet feugiat nisl sed amet tempus dolor adipiscing nulla tempus.</p>
<img src="images/farm-girl.jpg" alt="Girl walking through a grassy field.">
<a href="farm-girl.html">MORE</a>
<hr>
</div>
<footer>
<div id="social-container">
<ul>
<li><a href="https://www.facebook.com/Tyler-Stoddards-Web-Development-Portfolio-209938489570991/"><img src="images/facebook.png" alt="facebook button"></a></li>
<li><img src="images/twitter.png" alt="twitter button"></li>
<li><img src="images/instagram.png" alt="instagram button"></li>
<li><img src="images/mail.png" alt="email button"></li>
</ul>
<p>© Untitled. All Rights Reserved.</p>
</div>

</footer>

</body>
</html>

_

Claudio Restifo
@Marmiz
Feb 08 2018 02:31
The structure makes sense, the main challenge will be the CSS :)
Oddsoreven
@Oddsoreven
Feb 08 2018 04:08
Hi folks
Oddsoreven
@Oddsoreven
Feb 08 2018 04:17
Looking for a bit of advice on my first solo project. I've just met with a local non-profit about building them a site. They are a small group who help out other non-profits, and it should be a nice achievable project to get my feet wet with, plus it's for a good cause, so I'm excited. I'm also a bit nervous because I don't want to let anyone down. The main decision I'm chewing on at the moment is about whether to us a CMS or just hand-code something myself (I'm middling-fair with the front-end trio of JS, CSS, HTML, but I know pretty much nil about back-end stuff, though I'm happy to learn as much as I can on the fly). It's unlikely that this site would need updating more than once a month, and I'm happy to support that myself if it means I get to build something from the ground up rather than just pick out WP themes or something. On the other hand, they're eventually going to need to update their own content, so it might be prudent to give them that ability from the start. Does anyone have a suggestions for a way to go on this? Let me know if more information would be helpful.
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:48
Hello
VaseJS
@VaseJS
Feb 08 2018 04:49

@Oddsoreven the reason you’re struggling is becauset you are making so many assumptions. From your description, you don’t have enough experience to know how to understand the clients needs properly. Its ok. We all start somewhere. So here’s what I suggest. You need to assess the needs of the client, not what you would like to do or could do. As web devs, the clients needs come first and it sounds like you have not had a proper briefing with them.

Many clients don’t know what they want. This is normal. However, you should be able to guide them. So some questions to ask yourself/them:

  • who will maintain this site? (right now you say you will, but due to your lack of experience, you’re assuming your future…and theirs)
  • will it only be updated once a month? and in what way?
  • If you don’t know back end, why do you think you should learn on their site?
  • What are the skill levels of the people who you are working with when it comes to updating a website? What happens if you’re not around and you hard-coded everything, will you have fucked them? (answer: yes)
  • Are you getting paid?
  • How important is their website to them? Will you not using a CMS help or hurt THEM (not you)?
  • How will the hosting be handled? (Depending on the type of site, any node back end would be very complicated)
  • Are you giving them what they need or what you think they need/what you want to do for a solo project?

You can see a theme forming hopefully. Its about the client at all times. From here, I would start making more assumptions so you’d have to start asking questions beyond this. Hope this helps

@Nythiennzo hello
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:49
I have a problem on a FreeCodeCamp exercise
I think I made and infinite loop
the page is frozen each time I load it
VaseJS
@VaseJS
Feb 08 2018 04:50
you likely did. problem solved :D
kill the loop
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:50
how?
VaseJS
@VaseJS
Feb 08 2018 04:50
post your code.
its almost impossible to help without seeing code
please use codepen or format it correctly using backticks
CamperBot
@camperbot
Feb 08 2018 04:51
:bulb: to format code use backticks! ``` more info
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:51
No
VaseJS
@VaseJS
Feb 08 2018 04:52
^^ list to camperbot and click more info if you don’t know what i mean
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:52
I know where the error is
but the page it frozen
VaseJS
@VaseJS
Feb 08 2018 04:52
restart
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:52
So I cannot change the code
I reloaded the page multiple times
VaseJS
@VaseJS
Feb 08 2018 04:52
stop running the script until you change the code. you did say you created the loop so you can change it
kill the browser
or close the window
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:54
it's working now
I had to log into another browser
Actually the code run automatically when the page is loaded
VaseJS
@VaseJS
Feb 08 2018 04:55
cool :+1:
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:55
Thanks
VaseJS
@VaseJS
Feb 08 2018 04:55
thats what i thought based on how you described it. i’ve done that before too
Nytiennzo Madooray
@Nythiennzo
Feb 08 2018 04:58
Yup
I deleted my cache and cookies
It's back to normal
Claudio Restifo
@Marmiz
Feb 08 2018 05:03
@Nythiennzo for future reference all you have to do is add a run=disabled parameter in the url before the ?solution= part:
broken: www.freecodecamp.com/../../...?solution=...

stopexecution: www.freecodecamp.com/../../...?run=disabled&?solution=...
Darren
@DarrenfJ
Feb 08 2018 05:42
evening fCC
Eric Miller
@ericmiller777
Feb 08 2018 06:52
hey
var MediaQuery = require('react-responsive');

var A = React.createClass({
  render: function(){
    return (
      <div>
        <div>Device Test!</div>
        <MediaQuery query='(min-device-width: 1224px)'>
          <div>You are a desktop or laptop</div>
          <MediaQuery query='(min-device-width: 1824px)'>
            <div>You also have a huge screen</div>
          </MediaQuery>
          <MediaQuery query='(max-width: 1224px)'>
            <div>You are sized like a tablet or mobile phone though</div>
          </MediaQuery>
        </MediaQuery>
        <MediaQuery query='(max-device-width: 1224px)'>
          <div>You are a tablet or mobile phone</div>
        </MediaQuery>
        <MediaQuery query='(orientation: portrait)'>
          <div>You are portrait</div>
        </MediaQuery>
        <MediaQuery query='(orientation: landscape)'>
          <div>You are landscape</div>
        </MediaQuery>
        <MediaQuery query='(min-resolution: 2dppx)'>
          <div>You are retina</div>
        </MediaQuery>
      </div>
    );
  }
});
this really the best way to keep react responsive Seems like it will add so many more lines of code then somthing like
bootstrap
hensn5250
@hensn5250
Feb 08 2018 07:08
@ericmiller777 @DarrenfJ @Nythiennzo anyone?
Eric Miller
@ericmiller777
Feb 08 2018 07:51
@hensn5250 not really here right now, better to just ask your question.
hensn5250
@hensn5250
Feb 08 2018 07:56
ok. I'm am trying to obtain a certain effect using css grid were as the screen gets smaller the amount of items on a row within the grid reduces in number and vice versa. This can be done using media queries. I want to do it without using media queries.
wangzhizheng
@asuka-wzz
Feb 08 2018 08:01
img元素是什么
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 10:08
@ericmiller777 You could generate it though
var MediaQuery = require('react-responsive');

var A = React.createClass({
  queries = [
    {
      query:'(min-device-width: 1224px)',
      content:'You are a desktop or laptop'
      subQuery:[
        {query: '(min-device-width: 1824px)', content: 'You also have a huge screen'},
        {query: '(max-width: 1224px)', content: 'You are sized like a tablet or mobile phone though'}
      ]
    },
    {query: '(max-device-width: 1224px)', content: 'You are a tablet or mobile phone'},
    {query: '(orientation: portrait)', content: 'You are portrait'},
    {query: '(orientation: landscape)', content: 'You are landscape'},
    {query: '(min-resolution: 2dppx)', content: 'You are retina'}
  ],
  render: function() {
    return (
      <div>
        <div>Device Test!</div>
        {
          this.queries.map((q, i) => {
            return (
              <MediaQuery query={q.query}>
                <div>{q.content}</div>
                {
                q.subQuery.length > 0 &&
                <q.subQuery.map((sq, ind) => {
                  return (
                  <MediaQuery query={sq.query} key={i+'_'+ind}>
                     <div>{sq.content}</div>
                   </MediaQuery>
                  );
                })
              </MediaQuery>
            )
          })
        }
      </div>
    );
  },
});
Eric Miller
@ericmiller777
Feb 08 2018 10:19
@SweetCodingInc thanks
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 10:20
@ericmiller777 I made a small mistake.

This part

q.subQuery.length > 0 &&

should be

q.subQuery && q.subQuery.length > 0 &&
Eric Miller
@ericmiller777
Feb 08 2018 10:21
@SweetCodingInc thank you
CamperBot
@camperbot
Feb 08 2018 10:21
ericmiller777 sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 255 | @sweetcodinginc |http://www.freecodecamp.org/sweetcodinginc
Amazing boy
@Amazingb
Feb 08 2018 11:38
</div>
</div>
<img src="/images/running-cat.jpg" class="img-responsive">
<div class="row">
<div class="col-xs-6">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-6">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-6">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
将你所有的单选按钮放置于包含 class 属性 row 的 div 元素中。
你的每一个单选按钮都分别嵌套于自己的 div 元素中,div 包含 class 属性 col-xs-6。
确保你的每个 div 元素都有一个闭合标签。这个是问题,谁能帮我解答一下这个代码有什么错误?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 11:40
@Amazingb while you're in this room, please use English as majority of us here do not understand Chinese
If you don't understand English well enough you can use this room https://gitter.im/FreeCodeCamp/chinese
Amazing boy
@Amazingb
Feb 08 2018 11:42
Oh thank you very much @SweetCodingInc
CamperBot
@camperbot
Feb 08 2018 11:42
amazingb sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 257 | @sweetcodinginc |http://www.freecodecamp.org/sweetcodinginc
Tyler Stoddard
@TylerStoddard
Feb 08 2018 14:47
@SweetCodingInc how do you share your code like that?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 14:48

@TylerStoddard if you type

```js
console.log('Test');
```

You'll get

console.log('Test');
ofcourse, replace js with html or css depending on what type of code you want to post
Tyler Stoddard
@TylerStoddard
Feb 08 2018 14:54
<!DOCTYPE html>
<html>
    <head>
        <title>Portfolio Site #1</title>
        <link href="main.css" rel="stylesheet" />
    </head>
        <body>  
            <div id="background-image">
            <div id="background-overlay"></div>
            </div>
            <div id="title-container">
                <h1>
                    Title
                </h1>              
                    <p>Ipsum gravida sed feugiat amet tempus.</p>
                <hr>       
            </div>
            <div id="camera-guy-container">
ahh ok thanks
unable to display name value
Stephen James
@sjames1958gm
Feb 08 2018 16:01
@akkio-97 Use this API for the project - it proxies to that same API, but is over https so it can be used in codepen
https://fcc-weather-api.glitch.me/
akkio-97
@akkio-97
Feb 08 2018 16:04
is this the way of getting the current location name: var api= "https://fcc-weather-api.glitch.me/api/current?lat='+lat+'&lon='+lon+'";
lat and lon are vairables taken from navigator.geolocation
akkio-97
@akkio-97
Feb 08 2018 16:10
please help , just tell me how to make a call to the api
Stephen James
@sjames1958gm
Feb 08 2018 16:27
@akkio-97 No + at the end - I prefer template strings, less error prone
`https://fcc-weather-api.glitch.me/api/current?lat=${lat}&lon=${lon}`
Darren
@DarrenfJ
Feb 08 2018 16:38
morning fCC
@hensn5250 yah sorry stepped out of the room also last night
did you get it handled?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:50
@DarrenfJ Ser Darren :wave:
Kyle Holm
@thekholm80
Feb 08 2018 16:53
@DarrenfJ @SweetCodingInc :wave:
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:53
@thekholm80 Ser Kyle :wave:
Kyle Holm
@thekholm80
Feb 08 2018 16:55
@SweetCodingInc how's your interview process going?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:55
@thekholm80 I submitted the code. Now fingers crossed.
Kyle Holm
@thekholm80
Feb 08 2018 16:55
I've got my fingers crossed for you, too
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:55
The company is in Germany and they take around a week to come back
@thekholm80 haha
Kyle Holm
@thekholm80
Feb 08 2018 16:56
so would you have to code in german?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:56
Hopefully not! :laughing:
Kyle Holm
@thekholm80
Feb 08 2018 16:56
would you work remotely? or relocate?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:57
But I know German...
I'll be moving to Germany
Kyle Holm
@thekholm80
Feb 08 2018 16:57
very cool
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:57
Got bored with Silicon Valley
Kyle Holm
@thekholm80
Feb 08 2018 16:57
they're trying to make my area the "Silicon Slopes"
which for me just means higher cost of living and overcrowding
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:58
Haha
wait.. If I'm not mistaken, Silicon Slopes is Utah version of Silicon Valley, right?
Kyle Holm
@thekholm80
Feb 08 2018 16:58
yep
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:59
I see
what part of world are you in?
Kyle Holm
@thekholm80
Feb 08 2018 16:59
I'm in Utah
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:59
Well.. You already have Silicon Slopes then
Kyle Holm
@thekholm80
Feb 08 2018 16:59
it's mostly just Adobe slopes right now
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 16:59
I see
Kyle Holm
@thekholm80
Feb 08 2018 17:00
but they're trying to grow it lol
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:00
Not much familiar with the US apart from Cali
Kyle Holm
@thekholm80
Feb 08 2018 17:00
for some reason I thought you lived in India. I have no idea where I got that idea though
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:01
You're right.. I'm from India but been living in CA since last 4 5 years
Kyle Holm
@thekholm80
Feb 08 2018 17:01
very cool
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:01
May be it's my English that gave it away :laughing:
Kyle Holm
@thekholm80
Feb 08 2018 17:02
lol maybe. I'm not super perceptive so who knows?
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:02
:laughing:
Kyle Holm
@thekholm80
Feb 08 2018 17:03
before you leave cali you should go north and check out the redwood forest, it's pretty amazing
and Yosemite
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:04
@thekholm80 : Yo! I've been there a couple of times...
I've been all over the US but can't say I know anything as well as I know Cali
Just for fun - This repo must get the "Best repo award"
Kyle Holm
@thekholm80
Feb 08 2018 17:07
lol kelseyhightower/nocode#798
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:07
:laughing:

GitHub has plenty of fun things...

This one, for example - https://github.com/samshadwell/TrumpScript#features

Kyle Holm
@thekholm80
Feb 08 2018 17:09
rofl
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:11
@thekholm80 The Trump script source is simple. It does have a lot of educational value. It has very clean implementation of tokenizer
Kyle Holm
@thekholm80
Feb 08 2018 17:12
it looks pretty cool
Kaz Baig
@kbaig
Feb 08 2018 17:39
Alright feeling bored at work and don't have that much to do, so I'm going to take some time to refactor this abomination to React/Redux https://codepen.io/kbaig/pen/zNrqwz?editors=1010
Stephen James
@sjames1958gm
Feb 08 2018 17:43
@kbaig :+1:
@kbaig Although redux is bit overkill
Kaz Baig
@kbaig
Feb 08 2018 17:44
@sjames1958gm it Is. Just doing it for practice :)
Stephen James
@sjames1958gm
Feb 08 2018 17:44
@kbaig :fireworks:
Kyle Holm
@thekholm80
Feb 08 2018 17:46
@kbaig redux all the things!
Stephen James
@sjames1958gm
Feb 08 2018 17:48
React Redux Recycle
Sweet Coding :)
@SweetCodingInc
Feb 08 2018 17:48
Redux Observables <3
@sjames1958gm lmao
Kaz Baig
@kbaig
Feb 08 2018 18:01
gottem
Alex Haluska
@halus007
Feb 08 2018 18:14
cool
Leonard Tye
@shizukesa92
Feb 08 2018 18:34
Hi, am looking for some help. Returning FCCer, I can't find the new React curriculum specified here: https://github.com/bonham000/fcc-react-tests-module. It still shows coming soon for me, what gives?
guys, can you take a look at my server file from the voting-app project if you see anything really sketchy or done completly incorrectly? It's not complete but the things I have so far
https://github.com/artbohr/voting-app/blob/master/server/index.js
very confused with the serialization, sessions and etc, was wondering if I have something that does nothing in there
sattwa
@sattwa
Feb 08 2018 18:48
Hello everyone, I'm having some issues with lightbox; the gallery shows same images multiple times and even the picture count is wrong; it says' image ~ of 17 when there's only 12 images in general. Any help would be greatly appreciated, cheers!
VaseJS
@VaseJS
Feb 08 2018 20:04
@sattwa without code, there’s not much we can help you with
show your code
Kaz Baig
@kbaig
Feb 08 2018 20:17
redux-thunk not as intimidating as I thought
Kyle Holm
@thekholm80
Feb 08 2018 20:18
have you tried saga?
Kaz Baig
@kbaig
Feb 08 2018 20:19
My first time doing async with redux
so no
Kyle Holm
@thekholm80
Feb 08 2018 20:22
i've only used redux-promise (I think that's what it's called) as middleware, haven't tried thunk yet
Olapri
@Olapri
Feb 08 2018 20:53
Hallo. Could you pls explain me - what I am doing wrongly ? In my challenge "sum all primes" I am getting result - " 2, 6, 6, 8, 10" (I am trying to figure out NOT-Primes .... Here is the code: function sumPrimes(num) {
var notPrime = [];
for(var i = 2; i <= num; i++) {
for(var j = 2; j <= i; j++) {
if(i%j === 0 && i != j) {
notPrime.push(i); }
else {break;}
}
}
return notPrime;
}
sumPrimes(10);
Why I have "6" twice :worried: ?
And why I don`t have "9" here ? I am confused((
cjlynch12
@cjlynch12
Feb 08 2018 21:08
@Olapri why are you returning non-prime numbers? There is a simpler way to check if a number is prime.
Olapri
@Olapri
Feb 08 2018 21:10
My idea was to return non-prime and to exclude them . And after trying I discovered that my loop-knowledge is not ok. And now I am upset with this discovery(( What would you suggest?
cjlynch12
@cjlynch12
Feb 08 2018 21:11
instead of returning non-prime then excluding, just push the numbers that ARE prime into an array.
Olapri
@Olapri
Feb 08 2018 21:17
I am struggling.. I dont know how. Here at least I have already some kind of result - 2, 6, 8, 10 - are primes. 9 is missing..
cjlynch12
@cjlynch12
Feb 08 2018 21:19
6,8, and 10 are not primes. 2, 5, and 7 are (up to and including 10)
Olapri
@Olapri
Feb 08 2018 21:21
ah,, yes. you are right.. it is exactly what I have tried - to exclude the not-primes.. I have some sort of result that is not complete. 9 is also not prime.Right? 9 can be divided with 3
cjlynch12
@cjlynch12
Feb 08 2018 21:21
correct, 9 is a non-prime number
Olapri
@Olapri
Feb 08 2018 21:22
but why than it is missing after running my code? it is so strange...
cjlynch12
@cjlynch12
Feb 08 2018 21:25
It's a problem with your nested for loop. Try writing a separate function to check if a number is prime.
Olapri
@Olapri
Feb 08 2018 21:29
why is it a problem? here for example - https://www.youtube.com/watch?v=9RHDJNkS3Ro&t=445s - the guy has also the same nested loop, but is code is working...
his code is working
cjlynch12
@cjlynch12
Feb 08 2018 21:30
You can do it with a nested loop - it may just be easier to see how it works by separating the steps
Olapri
@Olapri
Feb 08 2018 21:39
thanks. I will try again...
cjlynch12
@cjlynch12
Feb 08 2018 21:41
it is a tricky one - but keep at it!
Kaz Baig
@kbaig
Feb 08 2018 21:52
Any recommendations on how to animate React mounting
Olapri
@Olapri
Feb 08 2018 22:01
does anyone know what means "<<" in for-Loop? Original code same: " for (j = i << 1; j <= max; j += i) {
sieve[j] = true;" Where could I find this syntax tricky stuff? Any online library?
Kyle Holm
@thekholm80
Feb 08 2018 22:10
@Olapri I think it's a bitwise operator, i've never used them though
Stephen James
@sjames1958gm
Feb 08 2018 22:25
@Olapri It is right shift (which when applied with 1 is the same as times 2
It might also convert to integer so the same as Math.floor(i) * 2
Alexander Jarman
@HeinousTugboat
Feb 08 2018 23:16
@Olapri Code golfing might be fun if you want to find tricky syntax.
Another question for all you React/Redux lovin' folks.
Any way to store action creators in a JSON file? :-D
Kenneth "Leeoku" Lee
@Leeoku
Feb 08 2018 23:44
hello all. trying to learn stuff before a hackathon , found this from the learn github link
Stephen James
@sjames1958gm
Feb 08 2018 23:51
@Leeoku :wave:
Kenneth "Leeoku" Lee
@Leeoku
Feb 08 2018 23:52
yup trying to learn github, a basic yet useful skill i guess