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
Stephen James
@sjames1958gm
@chris0715 I believe it is just db.collection
@chris0715 db.collection("parrots")
Ashish Acharya
@anarchyrucks
@sjames1958gm Now I need to double click to re-render but everything seems fine now
Cristopher Encarnacion
@chris0715
@sjames1958gm I did that already same error
Stephen James
@sjames1958gm
@anarchyrucks hmm, ok
Cristopher Encarnacion
@chris0715
Somehow its not recognizing the method as existance... and I dont know why
I checked multiple times the mongodb documentation
Stephen James
@sjames1958gm
Can you post more?
more of your code that is
IsaiahGz
@IsaiahGz
http://codepen.io/IsaiahGz/pen/yayvrQ
Can someone tell me why this works in Internet Explorer but not Google Chrome? (Pay no attention to looks lol)
Ananay
@ananaymital
@IsaiahGz comment out $("#messageDisplay").empty();
Cristopher Encarnacion
@chris0715

@sjames1958gm var express = require("express")
var mongo = require("mongodb").MongoClient
var app = express()
var connectionUrl = 'mongodb://localhost:27017/proyectoDb'

app.get('/', function(req,res){

res.sendFile(__dirname+'/index.html')

mongo.connect(connectionUrl, function(err, db){

    if(err)
    console.log(err)

    db.getCollection('mata').insertOne({'matador': 'roberto'})


})

})

app.listen(8080)

and I also with only the Insert method
Stephen James
@sjames1958gm
@chris0715 Are you getting the console.log(err) ? I am pretty sure it is .collection() not getCollection()
IsaiahGz
@IsaiahGz
@Deadpool37 Okay, the same quote still appears
http://codepen.io/IsaiahGz/pen/yayvrQ
Cristopher Encarnacion
@chris0715
@sjames1958gm this is the methond I am using from the documentation db.getCollection(name)
Stephen James
@sjames1958gm
@chris0715 Ok. my bad - are you seeing an error logged from the if (err) ?
Cameron Burkholder
@Cameron-Burkholder
Anyone finished with Pomodoro?
Ananay
@ananaymital
@IsaiahGz in the url make callback=json
@IsaiahGz still working on the random thing

@IsaiahGz

$(document).ready(function() {
  $("#getMessage").click(function() {
    //$("#messageDisplay").empty();
    $.getJSON("http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=json", function(a) {
      $("#messageDisplay").html(a[0].content + "<p>- " + a[0].title + "</p>");
    });
  });
});

control is stuck in html function

no idea why
IsaiahGz
@IsaiahGz
@Deadpool37 I just don't understand why this works in Internet Explorer...
Ananay
@ananaymital
it's working on chrome
IsaiahGz
@IsaiahGz
Not the random part
The random part works on IE
Cameron Burkholder
@Cameron-Burkholder
I have my pomodoro almost working, but something is getting hung up when I click on the start pomodoro.
JD Tadlock
@jdtdesigns
@Cameron-Burkholder doesn't get hung up for me. Just starts counting in negatives
c0d0er
@c0d0er
does anybody know why i type in letters in input field and hit enter, then all the search results disappear? i already used <form id="form-container" onsubmit="loadData()"> why still disappear? this is my code http://codepen.io/c0d0er/pen/WGkQvk?editors=1010
JD Tadlock
@jdtdesigns
This message was deleted
megancoyle1
@megancoyle1
hey guys! how would I make the buttons in the bottom link to something without screwing up its formatting?
Exclusiveyash
@Exclusiveyash
@megancoyle1 Something? Please be more specific
megancoyle1
@megancoyle1
link to fb, linked in, etc
when i made it<a> around the button the formatting got all screwed up and href wont work in button properties
i dont know how to get the button to link to a webpage
Exclusiveyash
@Exclusiveyash
You need to add similarly to your html
<a href="http://linkedin.com">LinkedIn</a></button>
and your CSS has a property which is overriding your button style
so you need to make changes accordingly
and your CSS has "a" property which is overriding your "button" style *
megancoyle1
@megancoyle1
oh i forgot about that!
thanks!
Exclusiveyash
@Exclusiveyash
make a "a" more specific as "li a" so that it will not effect the footer @megancoyle1
Rimi.
@Codevotee
@megancoyle1 dont forget <button> in front :sparkles:
vínαч puppαl
@vinaypuppal
@megancoyle1 try this
<div class="btn-group" role="group">
    <a href='#' class="btn btn-default bg">Github</a>
  </div>
.btn-group{
  margin-top: 71px;
}
.btn-group a{
  display: block;
}
@megancoyle1 try above only if you want btn-group styles from bootstrap otherwise create your own a tags as @Exclusiveyash suggested inside
ul -> li -> a tags and style with your own CSS
megancoyle1
@megancoyle1
Thanks!
Islam Ibakaev
@dagman
hey guys what does npm ERR! code 1 means?