These are chat archives for codefellows/sea-b15-javascript

11th
Jun 2014
Hailey L. Petway
@hlpetway
Jun 11 2014 01:12
Anyone around who's willing to put an eyeball on my resume? :D
Jeff Adelman
@jeffadelman8
Jun 11 2014 02:00
I'm not around but i'll look at it for you if you want to email or link me
Now that we're not in class, do yourself a favor and take a 2:20 study break... and prepare to have your life changed (and keep in mind this was right on the edge of sci-fi when it came out in 1995) http://www.youtube.com/watch?v=46qKHq7REI4
Kyle Warbis
@UWarbs
Jun 11 2014 03:05
:feelsgood: awesome
Ivan Storck
@ivanoats
Jun 11 2014 03:47
videos from class are ready
still working on extracting audo from day before
Robert Talamantez
@Talamantez
Jun 11 2014 03:49
Ivan Storck
@ivanoats
Jun 11 2014 03:58
Y
wrong window
cfbot ping
CFBot is a Hubot
@cfbot-the-hubot
Jun 11 2014 03:59
PONG
Andy Ernst
@AndyCErnst
Jun 11 2014 04:01
cfbot image me javascript
Andy Ernst
@AndyCErnst
Jun 11 2014 04:02
cfbot, you have bad taste in IDEs
Ivan Storck
@ivanoats
Jun 11 2014 04:02
what is that?!
:pizza:
star me :shipit:
pretty please?
Jeff Adelman
@jeffadelman8
Jun 11 2014 05:05
cfbot mustache me hackers
Jeff Adelman
@jeffadelman8
Jun 11 2014 05:06
500??
Hailey L. Petway
@hlpetway
Jun 11 2014 14:17
Ractive is super cool. I'm enjoying this tutorial
Ivan Storck
@ivanoats
Jun 11 2014 15:38
good find!
So… my wife killed the car battery sitting out there on an early morning conference call. I should be in around 9:30 if AAA is on time. Will be on and off until then.
Ivan Storck
@ivanoats
Jun 11 2014 15:46
Just found this article which gives a good background on the reactive programming trend: http://flippinawesome.org/2013/08/19/ractive-js-expressions-and-the-new-wave-of-reactive-programming/
Kevin Stephens
@kevinmstephens
Jun 11 2014 16:31
Ivan and Tyler, great live coding the last two days on Authentication and JWT
Josh Cunningham
@joshcanhelp
Jun 11 2014 16:40
@tylermorgan86
@tylermorgan86
wtf ... @tylermorgan86 ... on the auth homework ... do we have a branch we should start on or is the starting point what we worked on yesterday? In other words, do you have a functional version of yesterday's activity that we can begin with?
Jeff Adelman
@jeffadelman8
Jun 11 2014 17:15
wat
Ivan Storck
@ivanoats
Jun 11 2014 17:18
@joshcanhelp i can check in my code from class
and I belive the start point was the basicAuth branch
coffee break anyone? :coffee:
Josh Cunningham
@joshcanhelp
Jun 11 2014 17:21
@ivanoats
Nicholas Harberg
@harberg
Jun 11 2014 17:21
coffee sounds wonderful
Josh Cunningham
@joshcanhelp
Jun 11 2014 17:21
Ugh ... @ivanoats would it be OK to do this homework on our group project repo? Create a pull request and send?
Andy Ernst
@AndyCErnst
Jun 11 2014 17:21
I'll go for coffee too
Ivan Storck
@ivanoats
Jun 11 2014 17:22
yes - ok to do on group project
Kyle Warbis
@UWarbs
Jun 11 2014 17:22
:clap:
Ivan Storck
@ivanoats
Jun 11 2014 17:23
ready for :coffee:
Chelsea Lura
@ChelseaLura
Jun 11 2014 17:24
i want coffee :)
Tyler Morgan
@toastynerd
Jun 11 2014 17:26
@joshcanhelp: I didn't merge in the branches, so if you want a starting point for the expires/admin homework you'll have to merge both basicAuth and basicAuthJWT into master
I'm going to leave it unmerged so everyone can see the different steps for both of the days.
Jeff Adelman
@jeffadelman8
Jun 11 2014 18:13
@ivanoats - nice npm module btw! (secretkey)
Ivan Storck
@ivanoats
Jun 11 2014 18:21
thanks!! I want to demo how easy it was to create briefly in class.
and get more stars! :smile:
Kevin Stephens
@kevinmstephens
Jun 11 2014 18:42
so ractive is an alternative to something like backbone or can they be used together?
Josh Cunningham
@joshcanhelp
Jun 11 2014 18:45
@kevinmstephens
@kevinmstephens I believe you can use them together. I was reading a comparison of AngularJS and someone mentioned that Ractive and Backbone worked well together. So, if you believe the internet, then yes
Tyler Morgan
@toastynerd
Jun 11 2014 18:46
@kevinmstephens More of an alternative but you can use components of backbone with pretty much any other mv* clientside framework
Ractive doesn’t ship with a meas of accessing a server, so that’s probably a place you could throw backbone in
means*
Kevin Stephens
@kevinmstephens
Jun 11 2014 18:48
ok thanks
Chelsea Lura
@ChelseaLura
Jun 11 2014 20:10
Am I the only person having permissions issues? if I try to go to the github page i get a 404 error and if I try to git clone the directory I get an error that says I don't have permission to..
Anna Luisa Patiño West
@aisapatino
Jun 11 2014 20:11
i had that issue when i tried using hub clone. doing git clone https://github.com/codefellows/ractive-examples.git worked for some reason
Chelsea Lura
@ChelseaLura
Jun 11 2014 20:12
I got a remote: Repository not found error
Ivan Storck
@ivanoats
Jun 11 2014 21:31
38aeddc
Ivan Storck
@ivanoats
Jun 11 2014 21:39
app.get('/', function(req, res, next) {
  res.send("hello world");
});
npm install consolidate —save
Chelsea Lura
@ChelseaLura
Jun 11 2014 21:43
For reference, The mongoDB University Node Series also used consolidate for their examples
Ivan Storck
@ivanoats
Jun 11 2014 21:43
var consolidate = require('consolidate’);
app.engine('ractive', consolidate.ractive);
app.engine('ractive', consolidate.ractive);
app.set('view engine', 'ractive');
app.set('views', __dirname + '/views’);
Ivan Storck
@ivanoats
Jun 11 2014 22:04
app.get('/notes', function(req, res, next) {
  res.render('home', {
    name: "ivan",
    notes: [
             { noteBody: "Code Fellows" },
             { noteBody: "Code Hellos"  },
             { noteBody: "Code Bellows" }
           ]});
  console.log('rendering ractive template');
});
Ivan Storck
@ivanoats
Jun 11 2014 22:10
var noteModel = require('./api/models/Note');
app.get('/notes', function(req, res, next) {
  noteModel.find({}, function(err, results){
    if (err) { return res.send(500, err.message); }

    res.render('home', {
      name: "ivan",
      notes: results
    });
    console.log('rendering ractive template');
  });
});
Ivan Storck
@ivanoats
Jun 11 2014 22:16
mongo                                                                                            master
MongoDB shell version: 2.6.1
connecting to: test
> show dbs
admin              (empty)
in-class-demo      0.078GB
local              0.078GB
notes-development  0.078GB
> use notes-development
switched to db notes-development
> db.notes.insert({'noteBody': 'hello world'});
WriteResult({ "nInserted" : 1 })
> db.notes.find()
{ "_id" : ObjectId("53753c790787b442853c1980"), "noteBody" : "a new note!" }
{ "_id" : ObjectId("53753c7f0787b442853c1981"), "noteBody" : "a different note!" }
{ "_id" : ObjectId("53753c840787b442853c1982"), "noteBody" : "an even different note!" }
{ "_id" : ObjectId("537e6eb37403de0d3fe0786c"), "noteBody" : "a new super awesome note that's really great", "__v" : 0 }
{ "_id" : ObjectId("537e75ee200a66e242beb833"), "noteBody" : "rainbow dash is awesome", "__v" : 0 }
{ "_id" : ObjectId("537e783f200a66e242beb834"), "noteBody" : "rainbow dash is awesome", "__v" : 0 }
{ "_id" : ObjectId("5398d52b5a92307f8c594a9b"), "noteBody" : "hello world" }
>
db.notes.remove({"_id": ObjectId("537e783f200a66e242beb834")})
Kevin Stephens
@kevinmstephens
Jun 11 2014 22:25
mongod --smallfiles -dbpath ./db
Ivan Storck
@ivanoats
Jun 11 2014 22:35
var noteModel = require('./api/models/Note');
app.get('/notes', function(req, res, next) {
  noteModel.find({}, function(err, results) {
    if (err) { return res.send(500, err.message); }

    res.render('layout', {
      partials: {
        home: 'home'
      },
      name: 'ivan',
      notes: results
    });
    console.log('result length is' + results.length);
    console.log('rendering ractive template');
  });
});
<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Ractive Demo</title>
</head>
<body>
  {{>home}}
</body>
</html>
Stephen Boles
@stephenboles
Jun 11 2014 22:39
@toastynerd 30WM ISO whiteboarding practice....must be discreet, nsa....
Must enjoy explaining lateral thinking, and linked lists...
Maybe merge sorts.
<this was my attempt at humor by the way>
Robert Talamantez
@Talamantez
Jun 11 2014 22:40
i almost got a ticket trying to lateral merge on the onramp yesterday
Stephen Boles
@stephenboles
Jun 11 2014 22:41
Dang....
I would have forked my way through....
(hacky I know, but I'm tired)
Robert Talamantez
@Talamantez
Jun 11 2014 22:43
amaze
Kevin Stephens
@kevinmstephens
Jun 11 2014 22:48
cfbot ping
Josh Cunningham
@joshcanhelp
Jun 11 2014 22:48
Chelsea Lura
@ChelseaLura
Jun 11 2014 22:49
^Thats awesome!
Zach Bryan
@ZBryan
Jun 11 2014 22:49
agreed
Ivan Storck
@ivanoats
Jun 11 2014 23:14
did somebody leave their mac power cord up front?
Ivan Storck
@ivanoats
Jun 11 2014 23:20
cfbot ping
cfbot ping
CFBot is a Hubot
@cfbot-the-hubot
Jun 11 2014 23:20
PONG
Ivan Storck
@ivanoats
Jun 11 2014 23:21
cfbot image me it’s alive