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

18th
Jun 2014
Ivan Storck
@ivanoats
Jun 18 2014 03:53
this job lead came into my LinkedIn tonight:
Responsibilities

Develop web sites and web applications using the latest standards, best practices, and new technologies. 
Build new sites, templates, and components that will live in our Adobe CQ5 CMS environment. 
Identify and fix performance issues that may arise. 
Use software to track tasks, issues, and bugs. 
Be able to work in a fun, open, and collaborative environment with multiple teams. 
Have the ability to adapt and learn as new opportunities arise.


Requirements

Expert at JavaScript. 
Strong in HTML5, CSS, and jQuery. 
2+ years experience building sites with heavy user interaction. 
Have a passion for the web and web technologies. 
Working knowledge of how CMS work. 
Ability to write clean, standards-based code. 
Ability to debug performance and coding issues.


Desired

MVC frameworks. 
RESTful web services. 
AngularJS, Handlebars, Twitter Bootstrap Frameworks. 
QUnit or other client side testing. 
Node.js. 
Sass/Less.js. 
Grunt.

Call me or email at any time!
Send a Copy of your resume and contact number :)

Thanks!

Justinw@rylem.com
206-445-1678
he says 2 years but it’s everything we’ve been studying
Jeff Adelman
@jeffadelman8
Jun 18 2014 03:56
I think Hailey and I both got that message as well :)
Ivan Storck
@ivanoats
Jun 18 2014 03:56
haha
good!
Hailey L. Petway
@hlpetway
Jun 18 2014 03:59
@jeffadelman8 I know this isn't a princess bride reference, but I think it's still good.https://pbs.twimg.com/media/BqXEbu3IUAAfs-u.jpg:large
I'm reading JS The Good Parts, it is delightful.
Dale Corns
@dcorns
Jun 18 2014 04:01
Monty Python-in search of the Holy Grail, "None shall pass"
Hailey L. Petway
@hlpetway
Jun 18 2014 04:02
Tis but a flesh wound
Dale Corns
@dcorns
Jun 18 2014 04:02
Come here, I'll bite your knee cap off
Hailey L. Petway
@hlpetway
Jun 18 2014 04:03
hahaha
Ivan Storck
@ivanoats
Jun 18 2014 04:03

NI

<sub><sup>Icky-Icky-Icky-Icky-Kapang-Zoop-Boing!</sup></sub>
darn
Dale Corns
@dcorns
Jun 18 2014 04:04
Bring us a shrubery
Ivan Storck
@ivanoats
Jun 18 2014 04:05
this henceforth will be called Cleese’s law: at one point or another, a computer programming chatroom will reference Monty Python
Dale Corns
@dcorns
Jun 18 2014 04:06
lol
Hailey L. Petway
@hlpetway
Jun 18 2014 04:06
or Doctor Who, it's only a matter of time
Aggh! No! Never! We have no shrubberies here.
Dale Corns
@dcorns
Jun 18 2014 04:06
Dr. who?
Zach Bryan
@ZBryan
Jun 18 2014 04:06
so ordering cards should be a week one requirement
Dale Corns
@dcorns
Jun 18 2014 04:07
ok, then, back to work
Ivan Storck
@ivanoats
Jun 18 2014 04:07
zomg. my neighbor who was in a famous band in the 70s is killin’ it on the fiddle playing bluegrass right now :musical_note: :fire:
Hailey L. Petway
@hlpetway
Jun 18 2014 04:07
very cool, is he on youtube?
or she
Dale Corns
@dcorns
Jun 18 2014 04:08
Awesome, with roots in WV, I love blue grass.
Ivan Storck
@ivanoats
Jun 18 2014 04:09
no way - I spent a summer near Shepherdstown
i don’t want to give away his identity, sorry
Ivan Storck
@ivanoats
Jun 18 2014 04:55
more up to date way to install mongo
Ivan Storck
@ivanoats
Jun 18 2014 05:23
updated the gitbook ec2 chapter to install more recent versions of things...
Jeff Adelman
@jeffadelman8
Jun 18 2014 05:50
cfbot image me sleep fail
cfbot image me cfbot fail
Elliot Chong
@ElliotChong
Jun 18 2014 07:01
Incase anyone is using Ractive and wants to get rid of those deprecation warnings- set your package.json to "ractive": "git://github.com/ElliotChong/consolidate.js-Ractive.git#master" for a fix + cache improvements
Elliot Chong
@ElliotChong
Jun 18 2014 07:15
Hopefully it'll land in the upstream master, but for now it's an alternative
visionmedia/consolidate.js#161
I've been meaning to submit that since December, better now than never :shipit:
Hailey L. Petway
@hlpetway
Jun 18 2014 14:10
Chelsea Lura
@ChelseaLura
Jun 18 2014 14:31
^LOLOL, pretty much me everyday. "I want to go back to being weird. Weird is all I got; that, and my sweet style."
Tyler Morgan
@toastynerd
Jun 18 2014 15:19
If anyone is ahving difficulty understanding the concepts behind angular dependency injection this episode of the podcast Javascript Jabber with the creator of angular is great: http://javascriptjabber.com/109-jsj-dependency-injection-in-javascript-with-vojta-jina-misko-hevery/
Hailey L. Petway
@hlpetway
Jun 18 2014 15:20
ty @toastynerd
Hailey L. Petway
@hlpetway
Jun 18 2014 18:19
Is anyone else excited about this: http://youtu.be/X-d-V9jXYDE
Ivan Storck
@ivanoats
Jun 18 2014 18:28
@hlpetway O.M.G.
omgomgomg
Kevin Stephens
@kevinmstephens
Jun 18 2014 18:47
that scene is ridiculous
Ivan Storck
@ivanoats
Jun 18 2014 20:31
npm install --save connect-redis
Ivan Storck
@ivanoats
Jun 18 2014 20:37
var session     = require('express-session');
var RedisStore  = require('connect-redis')(session);
Ivan Storck
@ivanoats
Jun 18 2014 20:38
express 3 to 4 changes .png
npm install --save cookie-parser
Ivan Storck
@ivanoats
Jun 18 2014 20:45
npm -g install foreman
var sessionOptions = {
  host: "127.0.0.1" ,
  port: 6379,  //Redis default port
  ttl: 1000 * 60 * 60 * 24 * 7 // a week 
}
var redisSession = session({
  store: new RedisStore(sessionOptions),
  secret: 'keyboard cat and cornholio forever'  // CHANGE THIS
})
app.use(redisSession);
Ivan Storck
@ivanoats
Jun 18 2014 20:52
app.use(cookieParser('changeMEchangeMEchangeME'));
// e.g. cookieParser(process.env.COOKIE_SECRET)
var sessionOptions = {
  host: "127.0.0.1" ,
  port: 6379,  //Redis default port
  ttl: 1000 * 60 * 60 * 24 * 7 // a week
};
var redisSession = session({
  store: new RedisStore(sessionOptions),
  secret: 'keyboard cat and cornholio forever'  // CHANGE THIS
});
app.use(redisSession);
Anna Luisa Patiño West
@aisapatino
Jun 18 2014 21:37
random cool thing i just discovered: if you add .pretty() to your mongo shell queries (i.e. db.users.find().pretty()) it prints out in a much more readable format
Tyler Morgan
@toastynerd
Jun 18 2014 21:37
yeah, I’ve always been disappointed that dev-tools doesn’t have the same thing
Ivan Storck
@ivanoats
Jun 18 2014 22:08
npm install cookie-parser@1.1.0 —save
Tyler Morgan
@toastynerd
Jun 18 2014 22:17
^^ a codefellows alum site
Josh Cunningham
@joshcanhelp
Jun 18 2014 22:24
Jesus .... that's what we're being trained for?!?!?
Chelsea Lura
@ChelseaLura
Jun 18 2014 22:26
what packages did he download first? Did he make a package.json file or just install them in the folder he was in?
Elliot Chong
@ElliotChong
Jun 18 2014 22:27
function doSomething(log, callback) {
    setTimeout(function () {
        console.log(log);
        callback();
    }, 2000);
}

doSomething("Imma test!");
function doSomething(log, callback) {
    setTimeout(function () {
        console.log(log);
        callback();
    }, 2000);
}

doSomething("Get a User", function () {
    doSomething("Add Elliot as a friend", function () {
        doSomething("Follow CodeFellows", function () {
            doSomething("Save changes to the database", function () {
                console.log("All done!");
            });
        });
    });
});
Elliot Chong
@ElliotChong
Jun 18 2014 22:34
var async = require("async");

function doSomething(log, callback) {
    setTimeout(function () {
        console.log(log);
        callback();
    }, 2000);
}

// async.series [ Array of methods that accept callback ], function () { final callback }

var asyncMethods = [];

asyncMethods.push(function (p_callback) {
    doSomething("Get a User", p_callback);
});

asyncMethods.push(function (p_callback) {
    doSomething("Add Elliot as a friend", p_callback);
});

asyncMethods.push(function (p_callback) {
    doSomething("Follow CodeFellows", p_callback);
});

asyncMethods.push(function (p_callback) {
    doSomething("Save changes to the database", p_callback);
});

async.series(asyncMethods, function() {
    console.log("All done!");
});
Elliot Chong
@ElliotChong
Jun 18 2014 22:56
// Parallel Example

var tweets = ["1", "2", "3", "4", "5"];

asyncMethods = [];

for (var i = 0; i < tweets.length; i++)
{
    var id = tweets[i];

    asyncMethods.push((function (id) {
        return function (callback) {    
            doSomething(id, callback);
        }
    })(id));
}

async.parallel(asyncMethods, function() { console.log("All done!"); });
// Parallel Example

var tweets = ["1", "2", "3", "4", "5"];

asyncMethods = [];

for (var i = 0; i < tweets.length; i++)
{
    (function (i) {
        var id = tweets[i];

        asyncMethods.push(
            function (callback) {    
                doSomething(id, callback);
            }
        );
    })(i);
}

async.parallel(asyncMethods, function() { console.log("All done!"); });
Elliot Chong
@ElliotChong
Jun 18 2014 23:04
// Parallel Example

var tweets = ["1", "2", "3", "4", "5"];

asyncMethods = [];

function getTweet(i) {
    var id = tweets[i];

    asyncMethods.push(
        function (callback) {    
            doSomething(id, callback);
        }
    );
}

for (var i = 0; i < tweets.length; i++)
{
    getTweet(i);
}

async.parallel(asyncMethods, function() { console.log("All done!"); });