- In as much detail as you like, explain what happens when I type "google.com" into my browser's address bar and press enter.
- Explain the difference between dynamic vs. static programming languages? What are the advantages/disadvantages of each?
- What's something you love/hate about your favorite programming language?
- What tools do you use for your day to day work? Language, IDEs/editors, version control, build systems, provisioning, etc.?
- What's the difference between an class vs. an object?
- What is inheritance? What are some alternate ways to reuse logic without using it? What are some downsides to it?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# {{ ansible_managed }} | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
{% if ansible_interfaces|length > 2 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure to add this to your Gemfile | |
gem 'faraday' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SQLite version 3.x | |
# gem install sqlite3-ruby (not necessary on OS X Leopard) | |
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 | |
# Warning: The database defined as "test" will be erased and | |
# re-generated from your development database when you run "rake". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N.B. This all assumes that you currently connect to the VPN through a VirtualBox Ubuntu machine. If you don't, no problem, but you're gonna have to make it work with whatever your setup is! | |
IN YOUR VBox VM | |
1. sudo apt-get install openconnect | |
2. Make an executable shell script in your home directory: | |
#!/bin/bash | |
openconnect -u yourusername_us https://myaccess.oraclevpn.com/ | |
3. Try running it with sudo. Make sure it connects. Tweak until it does. | |
4. Shut down your VBox VM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Test Execute Order</title> | |
</head> | |
<body> | |
<script src="//requirejs.org/docs/release/1.0.1/minified/require.js"></script> | |
<script> | |
require.config({ |
This installs a patched ruby 1.9.3-p484 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
The Rails REST implementation dictates the default seven actions for your controllers, but frequently we want to share functionality across multiple actions or even across controllers. Controller filters are the easiest way to do that.
There are three types of filters implemented in Rails:
- a
before_filter
runs before the controller action - an
after_filter
runs after the controller action