MongoDB Exercise in mongo shell
Connect to a running mongo instance, use a database named mongo_practice
.
Document all your queries in a javascript file to use as a reference.
Before starting run the commands brew doctor
and then brew update
Unix Users please install using the docs
$ brew install mongodb
Once brew is done installing, take note of the Caveats section that is printed to your console. Just like what we did previously for postgres it might be best to create a symlink then two aliases to start and stop the mongo progress.
Basic authentication is one of the simplest authentication strategies because it doesn't require cookies, sessions, or even a login form! Instead, it uses HTTP headers which means credentials are transmitted on each request.
You will need to install passport
and passport-http
. The passport-http
module is what allows you set up the Basic Authentication Scheme, in addition to a couple other authentication strategies.
$ npm install express passport passport-http --save
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
Hello Awesome Programmer Person, My name is Ray and I need a tool built that will help other students visualize how CSS Selectors work. This tool can be added to any HTML document you have. This tool should:
#header
or sometimes .messages
I dont know, you know CSS right?###Email Hell
We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.
Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.
Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!
###The Fix
###Console History Sim Stack Trace Challenge
Using a linked list, we are going to demonstrate a use case for a linked list and simulate a stack like you see in a stack trace that replays the history of what we typed.
###Good Morning - June 1, 2015
Your challenge this morning is to create a function that implements an algorithm using the concepts we covered last week.
###Challenge
Ex.
'use strict'; | |
var dogs = { | |
smallest : 'chihuahua', | |
small : 'dachshund' | |
}; | |
var bird = true; | |
var cats = { | |
big_cat: 'tiger', |