These are chat archives for FreeCodeCamp/Help

6th
May 2018
Ankit Padia
@InsaneSkull
May 06 2018 05:44
I want to get numbers from string id
var test = 'test-0-0-oitem_id';
test.replace(/[^0-9.]/g, "");
result : 00
i want : 0-0
Norvin Burrus
@ndburrus
May 06 2018 06:24
@diomed this may be helpful: :cherries:
anthonygallina1
@anthonygallina1
May 06 2018 06:24
@ndburrus Hi
Norvin Burrus
@ndburrus
May 06 2018 06:24
@anthonygallina1 hello :shaved_ice:
anthonygallina1
@anthonygallina1
May 06 2018 06:25
How are you?
Norvin Burrus
@ndburrus
May 06 2018 06:25
good, and you?
anthonygallina1
@anthonygallina1
May 06 2018 06:25
I was revisiting a old framework and relearning it
Zurb Foundation I think it is open source Except for the training some of that costs
I think
I shot myself in the foot kinda
A teacher wanted some thing built with the bootstrap frame work. I am very familiar with it. So did i do it?
Nooooooo
Foundation LOL
But I was seeing bootstrap throwing lots of warnings etc
Foundation doesnt seem to do that.
Norvin Burrus
@ndburrus
May 06 2018 06:33
@anthonygallina1 so you like foundation better, for the project?
anthonygallina1
@anthonygallina1
May 06 2018 06:35
@ndburrus i am thinking the code maybe cleaner
Not sure But not seeing as many warnings in dev panel
Henry
@GitHub-Henry
May 06 2018 06:37
@InsaneSkull read the info in the pic. \d is any digit.
image.png
anthonygallina1
@anthonygallina1
May 06 2018 06:37
Coding it without the frame work would be better But it was a long course and wanting to make it through
Henry
@GitHub-Henry
May 06 2018 06:37
@InsaneSkull https://regex101.com/ is a good resource to test your regular expressions
Norvin Burrus
@ndburrus
May 06 2018 06:39
ok, so using foundation helped with making it through the course. sounds supportive...
Henry
@GitHub-Henry
May 06 2018 09:14
the spread operator used to copy an object and change property values
image.png
Aditya
@ezioda004
May 06 2018 09:22
Yeah, a lot cleaner than Object.assign()
const p1 = { name: "Fred", age: 15};
const p2 = Object.assign({}, p1, { name: "Greg" });
JS
@24KPureHandSome
May 06 2018 10:09
image.png
how can i make it?
can somebody help me ?
Tomasz
@Tgralak
May 06 2018 11:52
hello, im learning JS and my friend is learning Java. Is there any project we can do together in 2 other languages?
Norvin Burrus
@ndburrus
May 06 2018 12:06
tyark
@tyark
May 06 2018 12:33
How can I max a div expand to max-width: 600px?
it now only takes the space it needs, but i want it be 600px and scale down if viewport becomes smaller.
muhab
@muhab223
May 06 2018 13:40
Hi guys
May Kittens Devour Your Soul
@diomed
May 06 2018 14:31
@ndburrus gimme some links, bot!
chrisblige
@chrisblige
May 06 2018 15:43
Hello everyone. I want to change the image width to 100px with style.
<style>
.smaller-image {
width: 500px;
}
</style>
<img src="/images/relaxing-cat.jpg"style="smaller-image">
it doen't work. Did I type it wrong?
Amit Patel
@AmitP88
May 06 2018 15:44
hey guys, I'm working on making my local weather app responsive (starting from small mobile sizes first). Below is a screenshot at min-width 320px. What do you think of it? Is the design good or do I need to adjust it?
weather-app-mobile.png
chrisblige
@chrisblige
May 06 2018 15:44
Thank you if anyone could help me
Kyle Holm
@thekholm80
May 06 2018 15:44
@chrisblige width: 500px; this is not 100px
chrisblige
@chrisblige
May 06 2018 15:45
sorry. i changed. but it still doesn't work
Kyle Holm
@thekholm80
May 06 2018 15:45
also, you need class= not style=
chrisblige
@chrisblige
May 06 2018 15:45
Thank you so much!
now it works!
:)
Kyle Holm
@thekholm80
May 06 2018 15:46
:+1:
May Kittens Devour Your Soul
@diomed
May 06 2018 15:52
anyone got any idea how to do this so my divs don't fall down, but stay vertically
https://jsfiddle.net/803nvynz/
Aleksandar B.
@aleksandar-b
May 06 2018 16:08
shouldn't it be display: inline-block?
May Kittens Devour Your Soul
@diomed
May 06 2018 16:09
where?
Aleksandar B.
@aleksandar-b
May 06 2018 16:12
I think I found solution!!
.column {
display: flex !important;
align-items: baseline !important;
}
May Kittens Devour Your Soul
@diomed
May 06 2018 16:19
@samosale indeed you did, [ali sabiti su, ne žele mi se razdvojiti ni sa margin] :(
Aleksandar B.
@aleksandar-b
May 06 2018 16:27
oh, uou are using bulma
it ises flex box
if i am not wrong
wrapper of that div's should have a class of columns
and its child articles should have class of column
it is working, i tried now
May Kittens Devour Your Soul
@diomed
May 06 2018 16:40
@samosale got it. thanks
CamperBot
@camperbot
May 06 2018 16:40
diomed sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:cookie: 709 | @samosale |http://www.freecodecamp.org/samosale
Jesse
@ki4jgt
May 06 2018 17:08
Out of boredom and protecting net neutrality, I've built a P2P video player which can be embedded in websites and feeds video information (title, description, etc) to the hosting site via postMessage. I'm wanting to create a P2P version of YouTube but don't know if I can be dedicated enough to the project or if anyone would actually use it.
What should I do with the player if I don't want to finish the project?
Tomasz
@Tgralak
May 06 2018 17:30
@ndburrus thanks
CamperBot
@camperbot
May 06 2018 17:30
tgralak sends brownie points to @ndburrus :sparkles: :thumbsup: :sparkles:
:star2: 2215 | @ndburrus |http://www.freecodecamp.org/ndburrus
Ene Catalin
@EneCatalin
May 06 2018 20:11
@ki4jgt put it on github and look for a better job
Ammar Ali Shah
@AmmarAliShah
May 06 2018 20:14
Hi there! Anyone available to help out with an alignment issuue?
issue*
Ene Catalin
@EneCatalin
May 06 2018 20:17
post it
Ammar Ali Shah
@AmmarAliShah
May 06 2018 20:18
Here ^
I can't get the logo to look nice
Without stretching out the nav too much
Ene Catalin
@EneCatalin
May 06 2018 20:26
looks ok to me ?
Bjorn van de Peut
@bjorno43
May 06 2018 20:52
@AmmarAliShah Please put the relevant code into a Codepen and don't use the original link. It looks a lot like advertisment instead of a request for help
May Kittens Devour Your Soul
@diomed
May 06 2018 21:15
:|
Henry
@GitHub-Henry
May 06 2018 21:35
@AmitP88 instead of a static picture, I'm thinking a link would be a good choice if you are asking folks to provide opinions on the responsive features of your app.
Norvin Burrus
@ndburrus
May 06 2018 22:29
@Tgralak you're welcome :tangerine:
maxroacharchieshepp
@maxroacharchieshepp
May 06 2018 23:05
Anyone here? I need help. I build this website and the video on the home page is not loading 50% of the time. I can't see what's wrong... https://www.lightinbabylon.com/
maxroacharchieshepp
@maxroacharchieshepp
May 06 2018 23:11
I can't even the request in the dev tools when the video do load... What is going on?!?!