Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Sorin Ruse
@sorinr
yep.
dinesh
@1532j0004kg
then what i want to do in cmd ?
to run "mongodb".
Sorin Ruse
@sorinr
yes
dinesh
@1532j0004kg
i heard in videos that i want to create data\db
where
Sorin Ruse
@sorinr
but read this first
aRtoo
@artoodeeto
hello fam why is add on closeClass.classList.add('modalClose'); not working. the error says cannot read property add of undefined
VaseJS
@VaseJS
@artoodeeto need more context. post code
aRtoo
@artoodeeto
@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
@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
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

@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
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

@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
@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

@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
@sorinr yes . :worried:
aRtoo
@artoodeeto
@VaseJS bro still error but thankls
Sorin Ruse
@sorinr
@artoodeeto yes. but just use add not concatenated with .classList
aRtoo
@artoodeeto
@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

@artoodeeto what do you think your code:

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

will do? just try to think

aRtoo
@artoodeeto
@sorinr so i need to remove and add a new one?
Sorin Ruse
@sorinr
@artoodeeto what the var closeClass will hold after this: var closeClass = document.getElementsByClassName('modal'); ?
aRtoo
@artoodeeto
@sorinr an array. ohhh
i need to specifiy it huh!
let me try
@sorinr damn!!!
Sorin Ruse
@sorinr
@artoodeeto or an empty array if none elements have the modal class.
aRtoo
@artoodeeto
@sorinr thanks bro!!
CamperBot
@camperbot
artoodeeto sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1391 | @sorinr |http://www.freecodecamp.org/sorinr
Sorin Ruse
@sorinr
@artoodeeto :+1:
dinesh
@1532j0004kg
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
yes. the server waits for connections on port 27017. so its up and running :)
dinesh
@1532j0004kg
:smile:
Sorin Ruse
@sorinr
@1532j0004kg :+1:
bourget1
@bourget1
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
@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
@relentless-coder sent you a pm
Anthony Drane
@Antiaccess
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
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
@Antiaccess Could you put the code somewhere like Codepen and then post a link? It would be easier to help then.