This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
- NBC
| 15:55 ~ $ npm install -g generator-backbone-amd | |
| npm http GET https://registry.npmjs.org/generator-backbone-amd | |
| npm http 304 https://registry.npmjs.org/generator-backbone-amd | |
| npm http GET https://registry.npmjs.org/generator-backbone-amd/-/generator-backbone-amd-0.0.2.tgz | |
| npm http 200 https://registry.npmjs.org/generator-backbone-amd/-/generator-backbone-amd-0.0.2.tgz | |
| npm ERR! tar pack Error reading /var/folders/qy/kkl925690s50nmkmc6xls8040000gn/T/npm-5823/1364993719396-0.3919644276611507/package | |
| npm ERR! TypeError: Cannot call method 'filter' of undefined | |
| npm ERR! at Packer.IgnoreReader.addIgnoreRules (/Users/niko/.nvm/v0.8.22/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13) | |
| npm ERR! at Packer.IgnoreReader.addIgnoreFile (/Users/niko/.nvm/v0.8.22/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:133:10) | |
| npm ERR! at fs.readFile (fs.js:176:14) |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
| Status Code Status Message Symbol | |
| 1xx Informational | |
| 100 Continue :continue | |
| 101 Switching Protocols :switching_protocols | |
| 102 Processing :processing | |
| 2xx Success |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| # First configure your models to use Amazon s3 as storage option and setup the associated S3 config. | |
| # Then add the classes your want to migrate in the klasses array below. | |
| # Then run rake paperclip_migration:migrate_to_s3 | |
| # Should work but this is untested and may need some tweaking - but it did the job for me. | |
| namespace :paperclip_migration do | |
| desc "migrate files from filesystem to s3" | |
| task :migrate_to_s3 => :environment do | |
| klasses = [:model_1, :model_2] # Replace with your real model names. If anyone wants to this could be picked up from args or from configuration. | |
| klasses.each do |klass_key| |
| # app/uploaders/avatar_uploader.rb | |
| process :fix_exif_rotation | |
| process :strip | |
| process :resize_to_fill => [1024, 768] | |
| process :quality => 90 # Percentage from 0 - 100 |
| Paperclip.interpolates(:s3_eu_url) { |attachment, style| | |
| "#{attachment.s3_protocol}://s3-eu-west-1.amazonaws.com/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/}, "")}" | |
| } | |
| require 'aws/s3' | |
| AWS::S3::DEFAULT_HOST = "s3-eu-west-1.amazonaws.com" |
| doctype html | |
| /[if lt IE 7] | |
| | <html class="no-js ie6 oldie" lang="en"> | |
| /[if IE 7] | |
| | <html class="no-js ie7 oldie" lang="en"> | |
| /[if IE 8] | |
| | <html class="no-js ie8 oldie" lang="en"> | |
| /[if gte IE 8] | |
| | <html class="no-js" lang="en"> | |
| head |
| group :assets do | |
| gem 'sass-rails', '~> 3.1.0' | |
| gem 'coffee-rails', '~> 3.1.0' | |
| gem 'uglifier' | |
| gem 'compass', '~> 0.12.alpha' | |
| end |
These are some of my (Ryan Bates) favorite gems to use for various tasks: