These are chat archives for FreeCodeCamp/HelpFrontEnd

16th
Jan 2018
a1c4pon3
@a1c4pon3
Jan 16 2018 00:53
hello guys,
im pretty new to coding and i would like to know how to start builing website, can somebody pls help me figure out where to begin with >><< tnx
Gersho
@Gersho
Jan 16 2018 00:58
your request is pretty vague
you should begin with the html lessons on freeCodeCamp
Mark Pearyer
@marcusp619
Jan 16 2018 00:59
@a1c4pon3 yes go through the freecodecamp lessons then comeback and ask how to deploy a site;
sorry for semi colon been writing too much js lol
@a1c4pon3 want to see a simplier way
@mauriciodeleonc want to see a simplier answer.
a1c4pon3
@a1c4pon3
Jan 16 2018 01:04
yea ive been doing the lessons and i was just hoping maybe i could try and build a practice site along with studying the lessons at the sae time
same **
Gersho
@Gersho
Jan 16 2018 01:05
they'll have you make one when you get to the Tribute Page challenge
of course you're free to start it earlier
but just like in maths you can't learn multiplication if you don't know addition
trying to skip steps won't help you much
ps: for the "newbie" questions consider using that room: https://gitter.im/FreeCodeCamp/Help
a1c4pon3
@a1c4pon3
Jan 16 2018 01:09
i understand :) thanks
Gersho
@Gersho
Jan 16 2018 01:09
no problem :)
Daniel Feldman
@Feldbot
Jan 16 2018 01:11
@a1c4pon3 You might also want to have a look at www.codecademy.com, they have some pretty nice resources for beginners and will walk you through some basic projects. I'd try freecodecamp after that, since it is pretty light on instruction if you are just starting out.
Gersho
@Gersho
Jan 16 2018 01:12
w3schools is okay too
a1c4pon3
@a1c4pon3
Jan 16 2018 01:12
alright ill check that out thanks @Feldbot
CamperBot
@camperbot
Jan 16 2018 01:12
a1c4pon3 sends brownie points to @feldbot :sparkles: :thumbsup: :sparkles:
:cookie: 332 | @feldbot |http://www.freecodecamp.org/feldbot
dinesh
@1532j0004kg
Jan 16 2018 03:10
can anyone help me to install and run mongodb on 32bit os?
Sorin Ruse
@sorinr
Jan 16 2018 03:30
@1532j0004kg download mongo here
@1532j0004kg and choose the community tab
dinesh
@1532j0004kg
Jan 16 2018 03:32
not avail for 32!~
All Version Binaries this one ?
Sorin Ruse
@sorinr
Jan 16 2018 03:41
@1532j0004kg yea. go for that one and pick the one that's appropiate to ur system and environment
Alexander Jarman
@HeinousTugboat
Jan 16 2018 03:43
WTB Mongo for Ubuntu 17.10. :-|
Only reason I've never bothered learning it. I couldn't get it to actually work on my droplet.
dinesh
@1532j0004kg
Jan 16 2018 03:45
WTB?
Alexander Jarman
@HeinousTugboat
Jan 16 2018 03:45
Sorry, "Want To Buy".
Gamer lingo.. there aren't any good packages for Mongo for Ubuntu 17.10. The most recent ones are for the 16.04 LTS.
Sorin Ruse
@sorinr
Jan 16 2018 03:46
i had no problem in installing mongo after reading their docs
dinesh
@1532j0004kg
Jan 16 2018 03:46
ok bro can u pls wait ,mongo is downloading .
Alexander Jarman
@HeinousTugboat
Jan 16 2018 03:47
@sorinr On 17.10 or 16.04? They explicitly don't support 17.10, and there don't actually exist any .deb files for it.
dinesh
@1532j0004kg
Jan 16 2018 03:49
i downloading this one win32/mongodb-win32-x86_64-2008plus-ssl-3.7.1-signed.msi
Sorin Ruse
@sorinr
Jan 16 2018 03:50
@HeinousTugboat 16.04LTS on 64 should also work on an 17.10 on same 64.
dinesh
@1532j0004kg
Jan 16 2018 03:51
@sorinr downloaded successfully
ohh no err .
Sorin Ruse
@sorinr
Jan 16 2018 03:52
good luck on installation
dinesh
@1532j0004kg
Jan 16 2018 03:54
downloaded then?
how to run on machine ?
Sorin Ruse
@sorinr
Jan 16 2018 03:56
@1532j0004kg just double click on the downloaded msi file
dinesh
@1532j0004kg
Jan 16 2018 03:58
how to connect to the database?
@sorinr
Sorin Ruse
@sorinr
Jan 16 2018 03:58
@HeinousTugboat read this mostly the part on PACKAGE UPDATES REQUIRED ON UBUNTU 16.04 FOR IBM POWER SYSTEMS
@1532j0004kg is the mongo server up?
dinesh
@1532j0004kg
Jan 16 2018 04:00
i mean how to connect the project with mongodb
Sorin Ruse
@sorinr
Jan 16 2018 04:01
what lang do you plan to use to connect to the server? if js search for mongoose
dinesh
@1532j0004kg
Jan 16 2018 04:03
js
server up success!
C:\Program Files\MongoDB\Server\3.2\bin
is this right ?
Sorin Ruse
@sorinr
Jan 16 2018 04:05
yep.
dinesh
@1532j0004kg
Jan 16 2018 04:05
then what i want to do in cmd ?
to run "mongodb".
Sorin Ruse
@sorinr
Jan 16 2018 04:06
yes
dinesh
@1532j0004kg
Jan 16 2018 04:06
i heard in videos that i want to create data\db
where
Sorin Ruse
@sorinr
Jan 16 2018 04:07
but read this first
aRtoo
@artoodeeto
Jan 16 2018 04:14
hello fam why is add on closeClass.classList.add('modalClose'); not working. the error says cannot read property add of undefined
VaseJS
@VaseJS
Jan 16 2018 04:16
@artoodeeto need more context. post code
aRtoo
@artoodeeto
Jan 16 2018 04:17
@VaseJS here you go bro.
var buttonStart = document.querySelector('button');

buttonStart.addEventListener('click', function(){
    // document.getElementsByClassName('modal').style.display = 'none';
    var closeClass = document.getElementsByClassName('modal');

});
Sorin Ruse
@sorinr
Jan 16 2018 04:17
@artoodeeto here the mdn explanation: "The Element.classList is a read-only property which returns a live DOMTokenList collection of the class attributes of the element." so its READ ONLY
dinesh
@1532j0004kg
Jan 16 2018 04:18
C:\Program Files\MongoDB\Server\3.2\bin>"C:\Program Files\MongoDB\Server\3.2\bin
\mongod.exe" --dbpath d:\test\mongodb\data
2018-01-15T20:17:37.397-0800 I CONTROL  [main]
2018-01-15T20:17:37.399-0800 W CONTROL  [main] 32-bit servers don't have journal
ing enabled by default. Please use --journal if you want durability.
2018-01-15T20:17:37.400-0800 I CONTROL  [main]
2018-01-15T20:17:37.407-0800 I CONTROL  [main] Hotfix KB2731284 or later update
is not installed, will zero-out data files
2018-01-15T20:17:37.414-0800 I CONTROL  [initandlisten] MongoDB starting : pid=4
908 port=27017 dbpath=d:\test\mongodb\data 32-bit host=dinesh007
2018-01-15T20:17:37.415-0800 I CONTROL  [initandlisten] targetMinOS: Windows Vis
ta/Windows Server 2008
2018-01-15T20:17:37.417-0800 I CONTROL  [initandlisten] db version v3.2.18-4-g75
2daa3
2018-01-15T20:17:37.418-0800 I CONTROL  [initandlisten] git version: 752daa30609
5fb1610bb5db13b7b106ac87ec6cb
2018-01-15T20:17:37.419-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2018-01-15T20:17:37.420-0800 I CONTROL  [initandlisten] modules: none
2018-01-15T20:17:37.421-0800 I CONTROL  [initandlisten] build environment:
2018-01-15T20:17:37.422-0800 I CONTROL  [initandlisten]     distarch: i386
2018-01-15T20:17:37.423-0800 I CONTROL  [initandlisten]     target_arch: i386
2018-01-15T20:17:37.424-0800 I CONTROL  [initandlisten] options: { storage: { db
Path: "d:\test\mongodb\data" } }
2018-01-15T20:17:37.428-0800 I STORAGE  [initandlisten] exception in initAndList
en: 28663 Cannot start server. The default storage engine 'wiredTiger' is not av
ailable with this build of mongod. Please specify a different storage engine exp
licitly, e.g. --storageEngine=mmapv1., terminating
2018-01-15T20:17:37.430-0800 I CONTROL  [initandlisten] dbexit:  rc: 100
it showing error
@sorinr
aRtoo
@artoodeeto
Jan 16 2018 04:18

@VaseJS got the wrong code.

var buttonStart = document.querySelector('button');

buttonStart.addEventListener('click', function(){
    // document.getElementsByClassName('modal').style.display = 'none';
    var closeClass = document.getElementsByClassName('modal');
    closeClass.classList.add('modalClose');     
})

hwere bro

VaseJS
@VaseJS
Jan 16 2018 04:19
var buttonStart = document.querySelector('button');
buttonStart.addEventListener('click', function(){
// document.getElementsByClassName('modal').style.display = 'none';
var closeClass = document.getElementsByClassName('modal');
closeClass.classList.add('modalClose');
})
aRtoo
@artoodeeto
Jan 16 2018 04:22

@sorinr hey bro its says that.

elementClasses is a DOMTokenList representing the class attribute of elementNodeReference. If the class attribute was not set or is empty elementClasses.length returns 0. element.classList itself is read-only, although you can modify it using the add() and remove() methods.

soo i tried to use add to modify but doesnt work.

Sorin Ruse
@sorinr
Jan 16 2018 04:22
@1532j0004kg i have no ideea. but why are you created the data path on d and not on c as the mongo installation tutorial suggest?
aRtoo
@artoodeeto
Jan 16 2018 04:22

@sorinr hey bro its says that.

elementClasses is a DOMTokenList representing the class attribute of elementNodeReference. If the class attribute was not set or is empty elementClasses.length returns 0. element.classList itself is read-only, although you can modify it using the add() and remove() methods.

soo i tried to use add to modify but doesnt work.

dinesh
@1532j0004kg
Jan 16 2018 04:22
@sorinr yes . :worried:
aRtoo
@artoodeeto
Jan 16 2018 04:23
@VaseJS bro still error but thankls
Sorin Ruse
@sorinr
Jan 16 2018 04:24
@artoodeeto yes. but just use add not concatenated with .classList
aRtoo
@artoodeeto
Jan 16 2018 04:25
@sorinr what you mean. but heres the mdn example.
// div is an object reference to a <div> element with class="foo bar"
div.classList.remove("foo");
div.classList.add("anotherclass");
Sorin Ruse
@sorinr
Jan 16 2018 04:27

@artoodeeto what do you think your code:

var closeClass = document.getElementsByClassName('modal');
closeClass.classList.add('modalClose');

will do? just try to think

aRtoo
@artoodeeto
Jan 16 2018 04:30
@sorinr so i need to remove and add a new one?
Sorin Ruse
@sorinr
Jan 16 2018 04:32
@artoodeeto what the var closeClass will hold after this: var closeClass = document.getElementsByClassName('modal'); ?
aRtoo
@artoodeeto
Jan 16 2018 04:33
@sorinr an array. ohhh
i need to specifiy it huh!
let me try
@sorinr damn!!!
Sorin Ruse
@sorinr
Jan 16 2018 04:34
@artoodeeto or an empty array if none elements have the modal class.
aRtoo
@artoodeeto
Jan 16 2018 04:36
@sorinr thanks bro!!
CamperBot
@camperbot
Jan 16 2018 04:36
artoodeeto sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1391 | @sorinr |http://www.freecodecamp.org/sorinr
Sorin Ruse
@sorinr
Jan 16 2018 04:36
@artoodeeto :+1:
dinesh
@1532j0004kg
Jan 16 2018 04:43
C:\Program Files\MongoDB\Server\3.2\bin>mongod --storageEngine=mmapv1 --dbpath "
C:\data"
2018-01-15T20:42:28.472-0800 I CONTROL  [main]
2018-01-15T20:42:28.474-0800 W CONTROL  [main] 32-bit servers don't have journal
ing enabled by default. Please use --journal if you want durability.
2018-01-15T20:42:28.475-0800 I CONTROL  [main]
2018-01-15T20:42:28.482-0800 I CONTROL  [main] Hotfix KB2731284 or later update
is not installed, will zero-out data files
2018-01-15T20:42:28.489-0800 I CONTROL  [initandlisten] MongoDB starting : pid=6
024 port=27017 dbpath=C:\data 32-bit host=dinesh007
2018-01-15T20:42:28.489-0800 I CONTROL  [initandlisten] targetMinOS: Windows Vis
ta/Windows Server 2008
2018-01-15T20:42:28.489-0800 I CONTROL  [initandlisten] db version v3.2.18-4-g75
2daa3
2018-01-15T20:42:28.491-0800 I CONTROL  [initandlisten] git version: 752daa30609
5fb1610bb5db13b7b106ac87ec6cb
2018-01-15T20:42:28.493-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2018-01-15T20:42:28.494-0800 I CONTROL  [initandlisten] modules: none
2018-01-15T20:42:28.496-0800 I CONTROL  [initandlisten] build environment:
2018-01-15T20:42:28.497-0800 I CONTROL  [initandlisten]     distarch: i386
2018-01-15T20:42:28.499-0800 I CONTROL  [initandlisten]     target_arch: i386
2018-01-15T20:42:28.502-0800 I CONTROL  [initandlisten] options: { storage: { db
Path: "C:\data", engine: "mmapv1" } }
2018-01-15T20:42:28.609-0800 I CONTROL  [initandlisten]
2018-01-15T20:42:28.609-0800 I CONTROL  [initandlisten] ** WARNING: This 32-bit
MongoDB binary is deprecated
2018-01-15T20:42:28.610-0800 I CONTROL  [initandlisten]
2018-01-15T20:42:28.612-0800 I CONTROL  [initandlisten]
2018-01-15T20:42:28.613-0800 I CONTROL  [initandlisten] ** NOTE: This is a 32 bi
t MongoDB binary.
2018-01-15T20:42:28.615-0800 I CONTROL  [initandlisten] **       32 bit builds a
re limited to less than 2GB of data (or less with --journal).
2018-01-15T20:42:28.618-0800 I CONTROL  [initandlisten] **       Note that journ
aling defaults to off for 32 bit and is currently off.
2018-01-15T20:42:28.624-0800 I CONTROL  [initandlisten] **       See http://doch
ub.mongodb.org/core/32bit
2018-01-15T20:42:28.625-0800 I CONTROL  [initandlisten]
2018-01-15T20:42:28.712-0800 I INDEX    [initandlisten] allocating new ns file C
:\data\local.ns, filling with zeroes...
2018-01-15T20:42:29.386-0800 I STORAGE  [FileAllocator] allocating new datafile
C:\data\local.0, filling with zeroes...
2018-01-15T20:42:29.388-0800 I STORAGE  [FileAllocator] creating directory C:\da
ta\_tmp
2018-01-15T20:42:29.802-0800 I STORAGE  [FileAllocator] done allocating datafile
 C:\data\local.0, size: 64MB,  took 0.411 secs
2018-01-15T20:42:30.227-0800 I NETWORK  [HostnameCanonicalizationWorker] Startin
g hostname canonicalization worker
2018-01-15T20:42:32.888-0800 I FTDC     [initandlisten] Initializing full-time d
iagnostic data capture with directory 'C:/data/diagnostic.data'
2018-01-15T20:42:32.892-0800 I NETWORK  [initandlisten] waiting for connections
on port 27017
is this okay ?
Sorin Ruse
@sorinr
Jan 16 2018 04:44
yes. the server waits for connections on port 27017. so its up and running :)
dinesh
@1532j0004kg
Jan 16 2018 04:45
:smile:
Sorin Ruse
@sorinr
Jan 16 2018 04:46
@1532j0004kg :+1:
bourget1
@bourget1
Jan 16 2018 05:03
file:///Users/luc/Desktop/Screen%20Shot%202018-01-15%20at%209.58.35%20PM.png im trying to add a contact form on the right side of the page but can not figure it out, been like 2hrs now of trying different ways and research. i dont know if its something in my code thats preventing me from doing so or im just over looking something simple. anyways if anyone is willing to have a look and let me know that would be great
file:///Users/luc/Desktop/Screen%20Shot%202018-01-15%20at%209.58.35%20PM.png
Ayush Bahuguna
@relentless-coder
Jan 16 2018 05:12
@bourget1 sure, could you describe the problem? Your question is littered with unwanted text
@bourget1 describe your problem, list all the things that you have tried so far.
bourget1
@bourget1
Jan 16 2018 05:43
@relentless-coder sent you a pm
Anthony Drane
@Antiaccess
Jan 16 2018 06:26
Hey guys, I have an image carousel which is loading at 100% width, but cuts off the images near the top because they load after the carousel loads. Then to get the height back I have to resize the browser to which the img width 100% (and related height) responds and changes the div. How do I get the div to default to the height: 100% when related to the responsive width?
Anthony Drane
@Antiaccess
Jan 16 2018 06:34
I hope that makes sense... essentially I have a div that isn't adjusting to 100% of the image height because the image loads after the div
All the images in the carousel are the same size ratio too
Markus Kiili
@Masd925
Jan 16 2018 06:41
@Antiaccess Could you put the code somewhere like Codepen and then post a link? It would be easier to help then.
Anthony Drane
@Antiaccess
Jan 16 2018 06:43
It would be too hard to set up in codepen cause it relies on external JS & images... but here's what I can show you
<div class="row">
          <div class="main-carousel" data-flickity='{ "cellAlign": "left", "contain": true }'  style="margin-bottom:6%">
              <div class="carousel-cell"><img src="images/flow1.png" style="width:100%"></div>
              <div class="carousel-cell"><img src="images/flow2.png" style="width:100%"></div>
              <div class="carousel-cell"><img src="images/flow3.png" style="width:100%"></div>
              <div class="carousel-cell"><img src="images/flow4.png" style="width:100%"></div>
              <div class="carousel-cell"><img src="images/flow5.png" style="width:100%"></div>
          </div>
        </div>
I want to do something for the main carousel like style="height: calc(width*0.58)"
but ofcourse that doesn't work
VaseJS
@VaseJS
Jan 16 2018 06:46
@Antiaccess still need more context, namely your css. i see ‘cellAlign’. don’t tell me you’re using tables for layout?! and what is data-flickity? are you using some type of framework/kit?
Anthony Drane
@Antiaccess
Jan 16 2018 06:47
yes framework for this section (which is why i'm having troubles making it compatible)
flickity is the name... I'm using skeleton to make the site responsive
let me get some relevant CSS organised
VaseJS
@VaseJS
Jan 16 2018 06:48
ugh. frameworks. is this a personal project, tutorial, etc? what’s this for
Anthony Drane
@Antiaccess
Jan 16 2018 06:48
yes, apologies for being relatively new. It's my portfolio (dw not for developing)
I've done the front-end course, but that was maybe 6months-a year ago
VaseJS
@VaseJS
Jan 16 2018 06:51
i recommend learning the power of css3 before using any framework. with flex box and css grid, css can do most things easily without the overhead and control of a framework. i recommend mozilla tutorials on css and html. they cover everything. then you won’t have bugs like this that is caused by or likely caused by your framework
also, if you want to step your css game up, look up harry roberts (always search his name with ‘css’ or you’l get the bank robber)
Anthony Drane
@Antiaccess
Jan 16 2018 06:53
haha! In the future for sure. At the moment I just need to have this working so I can apply for jobs. But yeah one day I'll get ramp my skills up
thanks @VaseJS
CamperBot
@camperbot
Jan 16 2018 06:53
antiaccess sends brownie points to @vasejs :sparkles: :thumbsup: :sparkles:
:cookie: 451 | @vasejs |http://www.freecodecamp.org/vasejs
Anthony Drane
@Antiaccess
Jan 16 2018 06:53
cheers @Masd925
VaseJS
@VaseJS
Jan 16 2018 06:53
the next problem (the same reason i recommend vanilla css first) is we’d have to understand the framework to really hunt down the bug in your css. because we have to know what all the classes do to know how they effect each other
Anthony Drane
@Antiaccess
Jan 16 2018 06:54
well tbh if there's a simple way to do an image carousel without the framework I can just get rid of it and start again rather than investigating
VaseJS
@VaseJS
Jan 16 2018 06:54
jobs are easy. and during an interview you are most likely to get asked about more fundemental understanding of css / html.
yes there is
Anthony Drane
@Antiaccess
Jan 16 2018 06:55
well I agree, but I'm not going for developer roles... it's more of a support skill for me
VaseJS
@VaseJS
Jan 16 2018 06:56
but that depends on your skill level. but just search vanilla css carousel and you’ll get a bunch of results. but understand the negative UX side of having a carousel on your site. an image gallery would be a better experience for users. but thats another topic :P
Anthony Drane
@Antiaccess
Jan 16 2018 06:57
bahaha
double blow - UX is the area
:P
I felt it was appropriate here as it's a screen flow that users can move from one set of screens to the next in a sequence
a quick guide without going into super detail on each
Anthony Drane
@Antiaccess
Jan 16 2018 06:59
like [] -> [] -> [] -> / break in carousel / [] -> [] -> [] -> / break in carousel / etc.
VaseJS
@VaseJS
Jan 16 2018 07:00
its late here so i’m headed off to bed. i am interested in how everything turns. post on codepen or something we can see and interact with as its easier to help you.
until next time.
Anthony Drane
@Antiaccess
Jan 16 2018 07:00
cheers mate
Bjorn van de Peut
@bjorno43
Jan 16 2018 07:05

but that depends on your skill level. but just search vanilla css carousel and you’ll get a bunch of results. but understand the negative UX side of having a carousel on your site. an image gallery would be a better experience for users. but thats another topic :P

The amount of but's in there..

Markus Kiili
@Masd925
Jan 16 2018 07:17
@bjorno43 There is no but in an empty statement. A new Chinese proverb.
Bjorn van de Peut
@bjorno43
Jan 16 2018 07:20
lol
Amal Shukla
@amal1994
Jan 16 2018 07:32
Guys, need help
what's the best way to contain common html and render it
for e.g if we are using Tabs
and there is common static content that needs to be shown on both tabs
suggestions needed - how to do it in anguar4+.
I'm not thinking of creating a component for it since it's just static data
Muhammed Hafiz
@zifahm
Jan 16 2018 08:37
how do i do this?
React: Use a Ternary Expression for Conditional Rendering
https://beta.freecodecamp.org/en/challenges/react/use-a-ternary-expression-for-conditional-rendering
ternary expression that implements the following logic: when the page first loads, render the submit button, buttonOne, to the page. Then, when a user enters their age and clicks the button, render a different button based on the age. If a user enters a number less than 18, render buttonThree. If a user enters a number greater than or equal to 18, render buttonTwo.
{        (document.readyState=="loading") ? buttonOne:
          (this.state.userAge>18)?buttonThree:buttonTwo
           }
zipquote
@zipquote
Jan 16 2018 08:41
var button; if (document.readyState=="loading") { button = buttonOne; } else if(this.state.userAge>18) { button = buttonThree; } else { button = buttonTwo; }
Why ternary? It's confusing as hell. Save output in some variable. Then in render {variable}
Markus Kiili
@Masd925
Jan 16 2018 08:43
@zipquote Ternaries tend to make code harder to read and understand. You are correct in that.
Muhammed Hafiz
@zifahm
Jan 16 2018 08:44
@Masd925 @zipquote the challenge is use terenery expression ... i can not use if /else statement
zipquote
@zipquote
Jan 16 2018 08:49
My bad.
Try (document.readyState=="loading") ? buttonOne : ((this.state.userAge>18) ? buttonThree : buttonTwo )
Muhammed Hafiz
@zifahm
Jan 16 2018 08:51
nope doesn't render
zipquote
@zipquote
Jan 16 2018 08:51
What's the error?
Javier Pons
@JavierPons
Jan 16 2018 08:52
I want to check if inside a (array of numbers) there is any number repeated. Some comments to this code.

```
function firstDuplicate(a) {
let repite = [];
for (let i = 1; i<a.lenght; a++) {

if (a[i] === a[i]) {
   return  repite.push(i)   
    }
}

}

Marianissimus
@Marianissimus
Jan 16 2018 08:53
a[i] === a[i] always should return true, as you compare one item to itself :) @JavierPons
Javier Pons
@JavierPons
Jan 16 2018 08:54
:+1:
Muhammed Hafiz
@zifahm
Jan 16 2018 08:54
@zipquote error is in unexpected token near buttonOne
zipquote
@zipquote
Jan 16 2018 08:55
There will be some line number and token also mentioned I think then
Javier Pons
@JavierPons
Jan 16 2018 08:56
@Marianissimus does this expression have sense. a[I] == a[I+1]?
Marianissimus
@Marianissimus
Jan 16 2018 08:56
yup @JavierPons
Javier Pons
@JavierPons
Jan 16 2018 08:56
@Marianissimus :+1:
Marianissimus
@Marianissimus
Jan 16 2018 09:03
however, it's far from perfect... @JavierPons
Javier Pons
@JavierPons
Jan 16 2018 09:04
function firstDuplicate(a) {
let repite = [];
for (let i = 1; i<a.lenght; i++) {

    if (a[i] === a[i+1]) {
        repite.push(i)   
        } else {
            return -1;
        }
    }

    for (let j = 1; j.repite.lenght; j++)
}
I found out some mistakes
Marianissimus
@Marianissimus
Jan 16 2018 09:05
length
push a[i], not i
length again
aaa... so many
Javier Pons
@JavierPons
Jan 16 2018 09:05
:worried:
Marianissimus
@Marianissimus
Jan 16 2018 09:05
:)
it's ok, you're learning
we all are
what's with the second loop? it's not doing anything.
Javier Pons
@JavierPons
Jan 16 2018 09:11
@Marianissimus not yet
@Marianissimus if repite has a new array with duplicates I won't to check it and print the first num
but it was half writen
:smile:
Javier Pons
@JavierPons
Jan 16 2018 09:20

```
let repite = [];
function firstDuplicate(a) {

for (let i = 1; i<a.length; i++) {

if (a[i] === a[i+1]) {
    repite.push(a[i]);   
    } else {
        return -1;
    }
}

};

for (let j = 1; j<repite.length; j++) {

return repite[j][0];

};

any comment? sometimes is given a lot of -1
Marianissimus
@Marianissimus
Jan 16 2018 09:21
ok, what are the requirements for this function? if you need to return the first duplicate, it might not work if the items are not in sequence inside the arrey
Javier Pons
@JavierPons
Jan 16 2018 09:22
@Marianissimus mmm...
Marianissimus
@Marianissimus
Jan 16 2018 09:23
so you either need a double loop (one inside the other), or another js method. try indexOf / lastIndexOf, or map, reduce, filter, something in this category
Javier Pons
@JavierPons
Jan 16 2018 09:23
:+1: :smile:
Marianissimus
@Marianissimus
Jan 16 2018 09:34
@JavierPons here's a present for you; try to use console.log every step you develop a function, to see what it actually does; here's a loop inside a loop visualization
function findloopduplicate(arr){
    for (var i=0; i<arr.length; i++){
        for (var j=0; j<arr.length; j++){
        console.log ("Arr[i] is: " + arr[i] + " Arr[j] is: " + arr[j]);
        }
    }
}
As you see, arr[i] will stay as the first item, while arr[j] will loop through the array;
Javier Pons
@JavierPons
Jan 16 2018 09:38
@Marianissimus thanks!
CamperBot
@camperbot
Jan 16 2018 09:38
javierpons sends brownie points to @marianissimus :sparkles: :thumbsup: :sparkles:
:cookie: 455 | @marianissimus |http://www.freecodecamp.org/marianissimus
Javier Pons
@JavierPons
Jan 16 2018 09:41
@Marianissimus How can I test in the Google console? findloopduplicate ( [2,2,3,4,5,,8,7,5]);?
Marianissimus
@Marianissimus
Jan 16 2018 09:42
ctrl+c the function, open the console (ctrl+shift+j), paste the function (ctrl+v)
Javier Pons
@JavierPons
Jan 16 2018 09:44
@Marianissimus yes I did like that but it gives me undefined
solve
Marianissimus
@Marianissimus
Jan 16 2018 09:50
you have some typos in the array. also, write the argument immediately after the function name
findloopduplicate([2,2,3,4,5,8,7,5]);
Muhammed Hafiz
@zifahm
Jan 16 2018 10:02

https://beta.freecodecamp.org/en/challenges/react/give-sibling-elements-a-unique-key-attribute

const renderFrameworks = frontEndFrameworks.map(function (value,index){
    <li key={index}>{value}</li>
  }

nothing gets rendered?

Frameworks() needs to map the array to an unordered list, much like in the last challenge. Finish writing the map callback to return an li element for each framework in the frontEndFrameworks array. This time, make sure to give each li a key attribute, set to a unique value.
what i have done is not correct?
geoffrymichael
@geoffrymichael
Jan 16 2018 11:09
image.png
whoops, i dont know how this works. Anyway, I was trying to get rid of white space in between my bootstrap navbar and an h1 element placed directly below it.
i named an id to the h1 to hopefully override any bootstrap specificity and then tried to run through anything i could think of to get rid of the top spacing that seems to be the culprit for the h1
image.png
Stephen James
@sjames1958gm
Jan 16 2018 11:13
@zifahm You need to return something inside the callback function
@zifahm
return <li key={index}>{value}</li>
Muhammed Hafiz
@zifahm
Jan 16 2018 11:21
@sjames1958gm thanks, yeah i realised it later lol
CamperBot
@camperbot
Jan 16 2018 11:21
zifahm sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8861 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
Jan 16 2018 11:21
@zifahm great, I make that mistake alot
Muhammed Hafiz
@zifahm
Jan 16 2018 11:23
@sjames1958gm i am stuck here currently
https://beta.freecodecamp.org/en/challenges/react-and-redux/extract-state-logic-to-redux
const ADD = 'ADD';

const addMessage = (data) => {
  return {
    type:"ADD"
    message:data
  }
}


const messageReducer = (state=[],action) => {
  switch(action.type) {
    case 'ADD':
      return Object.assign({},state,{
        message:action.message
      })
      default:
      return state
  }
}

var store = Redux.createStore(messageReducer)
console says unexpected token near message in action creator
Stephen James
@sjames1958gm
Jan 16 2018 11:25
@zifahm Missing comma after "ADD" (also you are supposed to use the variable ADD in place of the string)
Muhammed Hafiz
@zifahm
Jan 16 2018 11:26
@sjames1958gm lol
half an hour on this
ahh now the immutable error !!
Dispatching addMessage against the store should immutably add a new message to the array of messages held in state.
wouldn't my reducer work?
Stephen James
@sjames1958gm
Jan 16 2018 11:38
@zifahm array of messages
Muhammed Hafiz
@zifahm
Jan 16 2018 11:38
got it!
Stephen James
@sjames1958gm
Jan 16 2018 11:38
@zifahm :+1:
Muhammed Hafiz
@zifahm
Jan 16 2018 11:38
return [...state,array.message]
so the thing i did before what did happen there in the state ? @sjames1958gm
Stephen James
@sjames1958gm
Jan 16 2018 11:40
@zifahm well I am thinking you converted state from an array to an object containing an array called state with a extra value called message
{ state: arrayfrombefore, message: newmessage}
Muhammed Hafiz
@zifahm
Jan 16 2018 11:40
ohh yeah object !!
getting confused with this and that
:worried:
Stephen James
@sjames1958gm
Jan 16 2018 11:42
@zifahm Keep working at it the confusion will lessen (it never completely goes away :) )
Muhammed Hafiz
@zifahm
Jan 16 2018 11:42
@sjames1958gm thanks
dinesh
@1532j0004kg
Jan 16 2018 12:01
cool & happie evening friends ! :smile:
Stephen James
@sjames1958gm
Jan 16 2018 12:02
@1532j0004kg Morning
dinesh
@1532j0004kg
Jan 16 2018 12:02
morning there ? :+1:
happie
Stephen James
@sjames1958gm
Jan 16 2018 12:04
@1532j0004kg Yep, and a cold one -6 C
dinesh
@1532j0004kg
Jan 16 2018 12:05
enjoy :smile:
england ?
Stephen James
@sjames1958gm
Jan 16 2018 12:08
Texas
amoraptor91
@amoraptor91
Jan 16 2018 12:09
good morning campers
Amit Patel
@AmitP88
Jan 16 2018 12:11

hey guys, I'm trying to solve the Title Case A Sentence algorithm and I'm having trouble figuring out why my solution isn't working:

function titleCase(str) {

  var wordsArray = str.split(' ');

  var capitalized = wordsArray.map(function(word) {

    var capWord = word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();

    var newString = capWord.join(" ");

    return newString;

  });



  return capitalized;
}

titleCase("HERE IS MY HANDLE HERE IS MY SPOUT");

I know my capWord.join method isn't working, but I'm not sure why. What am I doing wrong?

Aditya
@ezioda004
Jan 16 2018 12:21
@AmitP88 capWord is a string and .join() is an array method.
Amit Patel
@AmitP88
Jan 16 2018 12:21
@ezioda004 but capWord is an array of strings no?
title.png
@ezioda004 the weird thing as well is, when I console.log(capWord), I get an array of null elements in the console
Aditya
@ezioda004
Jan 16 2018 12:24
@AmitP88 Nope, capitalized is an array. word is an element of wordsArray array.
word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); you're concatenating 2 strings
Therefore youre storing a string in var capWord
Amit Patel
@AmitP88
Jan 16 2018 12:27
oh I see. so I would have to make another function to pass in capitalized as a parameter?
another function to do the joining
Markus Kiili
@Masd925
Jan 16 2018 12:27
@AmitP88 The only thing you need to join is capitalized.
Amit Patel
@AmitP88
Jan 16 2018 12:29
@Masd925 hmmm, ok, let me try it real quick
Markus Kiili
@Masd925
Jan 16 2018 12:29
From the callback function you need to return the capitalized word (made from the original stored in parameter word).
@AmitP88
Aditya
@ezioda004
Jan 16 2018 12:30
@AmitP88 You just need to return capWord in the map. If you console.log(capitalized)now you'll see its an array so just join() it and return.
Amit Patel
@AmitP88
Jan 16 2018 12:33
@ezioda004 it worked :)

function titleCase(str) {

  var wordsArray = str.split(' ');

  var capitalized = wordsArray.map(function(word) {

    var capWord = word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();

    return capWord;

  });

  console.log(capitalized);

  return capitalized.join(" ");
}





titleCase("HERE IS MY HANDLE HERE IS MY SPOUT");
damn, I can't believe I got stumped on such a small detail like that lol
Aditya
@ezioda004
Jan 16 2018 12:34
@AmitP88 :thumbsup: It happens, you'll remember that detail now :D
Gersho
@Gersho
Jan 16 2018 12:35
really ? i usually have to do the same mistake 10 times before i remember it :P
Markus Kiili
@Masd925
Jan 16 2018 12:35
@AmitP88 You could try removing some of those variables that you declare there. Might also get more readable that way.
Amit Patel
@AmitP88
Jan 16 2018 12:35
lol thanks @ezioda004 :)
CamperBot
@camperbot
Jan 16 2018 12:35
amitp88 sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 390 | @ezioda004 |http://www.freecodecamp.org/ezioda004
Amit Patel
@AmitP88
Jan 16 2018 12:36
@Masd925 for sure. I did that just so that it helps me see each step in solving the problem, but once I get better at solving on my own, I'll try to minimize the amount of variables I use
Aditya
@ezioda004
Jan 16 2018 12:37

really ? i usually have to do the same mistake 10 times before i remember it :P

like the old saying, 10th times the charm

Gersho
@Gersho
Jan 16 2018 12:38
@AmitP88 try having 2 windows side to side with your code, keep one like that, and on the other one remove variables one by one like @Masd925 suggests until you cannot anymore
Amit Patel
@AmitP88
Jan 16 2018 12:40
@Gersho that's a good idea. I'll start doing that from now on :) thank you
CamperBot
@camperbot
Jan 16 2018 12:40
amitp88 sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 584 | @gersho |http://www.freecodecamp.org/gersho
i am not able to retrieve the json data
please help me
Markus Kiili
@Masd925
Jan 16 2018 12:47
@1rjun Check the string literals and plus's on line 26.
I think that there is a syntax error there.
Gersho
@Gersho
Jan 16 2018 12:49
i see one too
btw that's a really complex structure you have for the geoloc
1rjun
@1rjun
Jan 16 2018 12:51
there is no error @Masd925
Gersho
@Gersho
Jan 16 2018 12:51
if you say so, must be goblins messin with your code then
Markus Kiili
@Masd925
Jan 16 2018 12:52
@1rjun You are missing one + around latitude variable.
Gersho
@Gersho
Jan 16 2018 12:52
it's not missing it's inside the quotation
so misplaced;)
1rjun
@1rjun
Jan 16 2018 12:53
nothing is missing @Masd925 it is already there,you can see in the console too
there is nothing wrong in url
Aditya
@ezioda004
Jan 16 2018 12:53
You obviously just corrected it, it was there before
1rjun
@1rjun
Jan 16 2018 12:53
and i also copy paste that url in another tab of firefox and json data is retrieving
Markus Kiili
@Masd925
Jan 16 2018 12:55
@ezioda004 A goblin did that!
1rjun
@1rjun
Jan 16 2018 12:57
i think i should need a key there
which i was missing
because i didnt created the openweathermap
account
Muhammed Hafiz
@zifahm
Jan 16 2018 13:10
Use Provider to Connect Redux to React
https://beta.freecodecamp.org/en/challenges/react-and-redux/use-provider-to-connect-redux-to-react
<Provider store={store}>
    <DisplayMessages/>
    </Provider>
is this wrong?
ahmed-issa-mohd
@ahmed-issa-mohd
Jan 16 2018 14:14
can you tell me what is http header ?
Stephen James
@sjames1958gm
Jan 16 2018 14:28
@zifahm Is that code inside a render function and return statement?
Muhammed Hafiz
@zifahm
Jan 16 2018 14:29
ohhhhhhh
@sjames1958gm thanks again
CamperBot
@camperbot
Jan 16 2018 14:29
zifahm sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8863 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
Jan 16 2018 14:30
:+1:
Brandon Blackwell
@Radlerz1
Jan 16 2018 14:34
hello, I am using react with redux its my first time using redux. I am calling an api in my react component then sending that data from my component to the redux store so I can access it throughout all components. My question is would it be better to call a function in redux from my react component that executes the api call in the reducer and stores the data in the redux store that way. which way is better ? if there is advantages and disadvantages to both
Joy
@Yorokobi05
Jan 16 2018 14:34
Good day! I would just like to ask regarding .indexOf property in JS. I cannot have it returned "false".
Brandon Blackwell
@Radlerz1
Jan 16 2018 14:34
indexOf doesn't not return false if there is not match it returns -1 @Yorokobi05
Joy
@Yorokobi05
Jan 16 2018 14:35

function mutation(arr) {
for (var i = 0; i < arr[1].length; i++){
var z = (arr[1].toLowerCase()).split("");
var a = (arr[0].toLowerCase()).indexOf(z[i]);
if (a != -1) {
return true;
} else return false;
}

}

mutation(["hello", "hey"]);

I already have this one, however, it returns " true".
Brandon Blackwell
@Radlerz1
Jan 16 2018 14:36
what is the question your on?
Joy
@Yorokobi05
Jan 16 2018 14:37
Mutation under the Basic Algorithm
Marianissimus
@Marianissimus
Jan 16 2018 14:37
@Yorokobi05 else should be // else {return false;}
Stephen James
@sjames1958gm
Jan 16 2018 14:38
@Yorokobi05 you shouldn't return true until all the letter have been checked
Marianissimus
@Marianissimus
Jan 16 2018 14:38
and why do you use brackets for var a and z?
Aditya
@ezioda004
Jan 16 2018 14:38
@Yorokobi05 This one returns true because that index exists. (arr[0].toLowerCase()).indexOf(z[i]) returns a number
Joy
@Yorokobi05
Jan 16 2018 14:40
@Marianissimus it's the same. (regarding the else statement) and I think it's fine even if I didn't put it under the for loop.
Stephen James
@sjames1958gm
Jan 16 2018 14:41
@Yorokobi05 You should only return for the false case inside the loop - then if the loop finishes without returning false then return true
Joy
@Yorokobi05
Jan 16 2018 14:41
Ok. I'll recheck first. Thanks!
Stephen James
@sjames1958gm
Jan 16 2018 14:42
@Yorokobi05 A suggestion to take after you get it working:
var z = (arr[1].toLowerCase()).split("");
this code doesn't depend on the loop variables and should be done before the loop as optimization
Joy
@Yorokobi05
Jan 16 2018 14:53
@sjames1958gm still don't get it. haha

function mutation(arr) {
var z = (arr[1].toLowerCase()).split("");
for (var i = 0; i < arr[1].length; i++){
var a = (arr[0].toLowerCase()).indexOf(z[i]);
if (a != -1) {
return false;
}
} return true;

}

mutation(["hello", "hey"]);

Stephen James
@sjames1958gm
Jan 16 2018 14:54
@Yorokobi05 false is a == -1 not a != -1
Joy
@Yorokobi05
Jan 16 2018 14:55
oh, I forgot to replace it.
It's working! Thanks a bunch @sjames1958gm !
CamperBot
@camperbot
Jan 16 2018 14:55
yorokobi05 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8864 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
Jan 16 2018 14:56
:+1:
@Yorokobi05 BTW functions are called left to right so the () around the toLowerCase() call are not needed
var z = arr[1].toLowerCase().split("");
Joy
@Yorokobi05
Jan 16 2018 15:02
I see. Thanks @sjames1958gm ! I'll take note of that! :smile:
zipquote
@zipquote
Jan 16 2018 18:39
This message was deleted
Javier Pons
@JavierPons
Jan 16 2018 19:00
hi folks!
I have typed this code
function centuryFromYear(year) {
    if (year <= 100) {
        return '1';
    }else if (year > 101 && year <= 200) {
        return '2';
    }else if (year > 201 && year <= 300) {
        return '3';
    }else if (year > 301 && year <= 400) {
        return '4';
    }else if (year > 401 && year <= 500) {
        return '5';
    }else if ( year > 501 && year <= 600) {
        return '6';
    }else if ( year > 601 && year <= 700) {
        return '7';
..... and carry on.....
sure that its possible to type it in shorter way. Any advise?
Kaz Baig
@kbaig
Jan 16 2018 19:07
@JavierPons
function centuryFromYear(year) {
  return Math.ceil(year / 100);
}
assuming you actually wanted year >= 101 to be 2 rather than year > 101
Though shouldn't it be < 100 returning 1, <= 200 && >= 100 returning 2 etc
In which case, it would be
function centuryFromYear(year) {
  return Math.floor(year / 100) + 1;
}
Javier Pons
@JavierPons
Jan 16 2018 19:12
@kbaig Given a year, return the century it is in. That is the purpose
Kaz Baig
@kbaig
Jan 16 2018 19:12
Right, but < year 100 is the first century
Year 100 is in the second century, no?
Javier Pons
@JavierPons
Jan 16 2018 19:13
in this case we count 100 inside 1 century
Kaz Baig
@kbaig
Jan 16 2018 19:13
Oh I'm mistaken, 100 is part of the 1st century
kk Math.ceil(year / 100) it is then
Javier Pons
@JavierPons
Jan 16 2018 19:15
@kbaig no, it doesn't work
Kaz Baig
@kbaig
Jan 16 2018 19:15
What case is it not satisfying?
Javier Pons
@JavierPons
Jan 16 2018 19:16
anyone
:worried:
aRtoo
@artoodeeto
Jan 16 2018 19:16
hello fam. i have a question? how can i make my modal center in my tictactoe game while it changes screen size? the game is done but i want to style it more. thanks. heres the pen. https://codepen.io/artoo/pen/Zvomxr?editors=0100
Am I misunderstanding
Javier Pons
@JavierPons
Jan 16 2018 19:17
@kbaig I dont know
if it year 45?
or 2003
Gersho
@Gersho
Jan 16 2018 19:18
year/100 rounded up ?
aRtoo
@artoodeeto
Jan 16 2018 19:19
@kbaig thanks bro mwah
CamperBot
@camperbot
Jan 16 2018 19:19
artoodeeto sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 529 | @kbaig |http://www.freecodecamp.org/kbaig
Kaz Baig
@kbaig
Jan 16 2018 19:19
@JavierPons https://gyazo.com/d3d7b38777b9a7ba0fbbffa313098493 works fine for those cases
Javier Pons
@JavierPons
Jan 16 2018 19:20
function centuryFromYear(year) {
    Math.ceil(year / 100);
}
Gersho
@Gersho
Jan 16 2018 19:20
return ?
Kaz Baig
@kbaig
Jan 16 2018 19:21
you're not returning anything
Javier Pons
@JavierPons
Jan 16 2018 19:21
yes
I find it out
sorry
:smile:
Gersho
@Gersho
Jan 16 2018 19:21
not returning, is like asking someone to do some maths then throw away the paper
Javier Pons
@JavierPons
Jan 16 2018 19:21
now it works
sorry my head
Gersho
@Gersho
Jan 16 2018 19:22
it's ok we're all learning
Javier Pons
@JavierPons
Jan 16 2018 19:22
@kbaig @Gersho thanks
CamperBot
@camperbot
Jan 16 2018 19:22
javierpons sends brownie points to @kbaig and @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 587 | @gersho |http://www.freecodecamp.org/gersho
:cookie: 530 | @kbaig |http://www.freecodecamp.org/kbaig
Javier Pons
@JavierPons
Jan 16 2018 19:32
@Gersho @kbaig I think this is the way to learn. Do you agree with me, or you have an other interesting opinion?
Gersho
@Gersho
Jan 16 2018 19:32
what are you refering to ?
Kaz Baig
@kbaig
Jan 16 2018 19:33
Not sure what you mean
Javier Pons
@JavierPons
Jan 16 2018 19:34
to make kata and ask here when you are stuck. I dont know other way to learn. I can't know every method at the moment and how to resolve the problems. For now I have quite limited way to resolve them
Gersho
@Gersho
Jan 16 2018 19:35
kata ? oh you're from codewars then ? did you takes the lessons given here ?
Javier Pons
@JavierPons
Jan 16 2018 19:35
yes
Kaz Baig
@kbaig
Jan 16 2018 19:35
I think doing the freecodecamp algorithms are a good place since they give you some suggested methods to use
Javier Pons
@JavierPons
Jan 16 2018 19:35
and in other places
mmm...
Gersho
@Gersho
Jan 16 2018 19:36
i followed fCC until the end of Front-End then i went kinda all over the place
Kaz Baig
@kbaig
Jan 16 2018 19:36
Same
Gersho
@Gersho
Jan 16 2018 19:36
kata is okay, but don't make it your main focus, it's a bit like maths exercice, yes you learn stuff, but it lacks in terms of practical use
Kaz Baig
@kbaig
Jan 16 2018 19:36
I'm still making my way through the rest of the projects, but I'm learning from more resources now
Javier Pons
@JavierPons
Jan 16 2018 19:37
good
:smile:
Gersho
@Gersho
Jan 16 2018 19:38
depends what you're trying to achieve too
(your personal goals i mean)
Javier Pons
@JavierPons
Jan 16 2018 19:38
I trying to get hire as a developer....
take course of es6 and React
Gersho
@Gersho
Jan 16 2018 19:39
hehe me too, but developer is very vague
Javier Pons
@JavierPons
Jan 16 2018 19:40
Already I forgot, I think, many basic staff like how to loop via arrays and thing like that. But Im not very sure if at the end in real life Im going to use ever
lets carry on!! :)
:smile:
Gersho
@Gersho
Jan 16 2018 19:41
for that i suggest using https://zealdocs.org , it allows quick search on documentation
for exemple you can type array and you'll see every methods available on arrays
Javier Pons
@JavierPons
Jan 16 2018 19:42
mmmm...
great
Gersho
@Gersho
Jan 16 2018 19:42
Screenshot from 2018-01-16 15-42-24.png
Javier Pons
@JavierPons
Jan 16 2018 19:42
I will not get bored
What do you want to do? @Gersho
(I mean work on)
Gersho
@Gersho
Jan 16 2018 19:44
code mostly, i don't want to design, CSS annoys me to no end
js and py <3
Javier Pons
@JavierPons
Jan 16 2018 19:45
good
I take some php
Gersho
@Gersho
Jan 16 2018 19:45
i might add that at some point, but well, only 24hours a day xD
Javier Pons
@JavierPons
Jan 16 2018 19:46
css, bootstrap have some fun
heheh
but I can add I would like day would be 32h
not 24
Jure VIdrih
@JureVidrih
Jan 16 2018 21:21
Hello, first time here :)
Kaz Baig
@kbaig
Jan 16 2018 21:22
@JureVidrih :wave:
Jure VIdrih
@JureVidrih
Jan 16 2018 21:22
can someone help me? I'm trying to deploy a browser game I've made on Github Pages, but the only javascript file that is loading is the game.js, which is in the same directory as the index.html
the ones that were supposed to also load are in the /dist/js/ folder
and
this is the repository
the master branch
I'm new to github pages :)
Jure VIdrih
@JureVidrih
Jan 16 2018 21:32
I'm sorry, it should work better now
but the three main .js files are still not being loaded.
Dan Lafferty
@DanLaff
Jan 16 2018 21:52
@JureVidrih Github pages won't work with file names beginning with an underscore (by default): https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/
Jure VIdrih
@JureVidrih
Jan 16 2018 21:53
really? Thank you!
:)
Dan Lafferty
@DanLaff
Jan 16 2018 21:53
:)
Kaz Baig
@kbaig
Jan 16 2018 21:55
why tho
Might be a Jekyll thing...
Dan Lafferty
@DanLaff
Jan 16 2018 21:57
@kbaig Yeah, it's a Jekyll thing (as explained in the link!)
Jure VIdrih
@JureVidrih
Jan 16 2018 21:59
now it works.. :)
Kaz Baig
@kbaig
Jan 16 2018 21:59
I just kinda remembered from watching Travis Neilson (aka DevTips on YouTube) make his personal site @JureVidrih
Jure VIdrih
@JureVidrih
Jan 16 2018 21:59
cool
Kaz Baig
@kbaig
Jan 16 2018 22:00
The only time I've seen someone use Jekyll outside of GH Pages
Dan Lafferty
@DanLaff
Jan 16 2018 22:02
Here's a pretty big list of Jekyll sites if you want to see more than the standard gh-pages templates in use: https://github.com/jekyll/jekyll/wiki/Sites
Kaz Baig
@kbaig
Jan 16 2018 22:03
@DanLaff I see. Thanks for sharing
CamperBot
@camperbot
Jan 16 2018 22:03
kbaig sends brownie points to @danlaff :sparkles: :thumbsup: :sparkles:
api offline