All Files (86.29% covered at 0.97 hits/line)
43 files in total.
321 relevant lines.
277 lines covered and
44 lines missed
- 1
class AddressesController < ApplicationController
- 1
def index
end
- 1
def create
end
- 1
def new
end
- 1
def edit
end
- 1
def show
end
- 1
def update
end
- 1
def destroy
end
end
- 1
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
- 1
include ApplicationHelper
- 1
protect_from_forgery with: :exception
end
- 1
class CategoriesController < ApplicationController
- 1
def index
- 1
current_user
- 1
@categories = Category.all
end
- 1
def create
- 2
@category = Category.new(category_params)
- 2
@category.save
- 2
redirect_to '/categories'
end
- 1
def edit
current_user
@category = Category.find(params[:id])
end
- 1
def show
current_user
@category = Category.find(params[:id])
@products = @category.products
end
- 1
def update
- 1
current_user
- 1
category = Category.find(params[:id])
- 1
category.update(category_params)
- 1
category.save
- 1
redirect_to '/categories'
end
- 1
def destroy
current_user
category = Category.find_by(email: params[:email])
category.destroy if @current_user = category
end
- 1
private
- 1
def category_params
- 3
params.require(:category).permit(:title)
end
end
- 1
class OrdersController < ApplicationController
- 1
def index
end
- 1
def create
end
- 1
def new
end
- 1
def show
end
end
- 1
class ProductsController < ApplicationController
- 1
def index
current_user
@product = Product.all
end
- 1
def create
- 2
@product = Product.new(product_params)
- 2
@product.save
- 2
redirect_to "/categories/#{params[:product][:category_id]}"
end
- 1
def edit
current_user
@product = Product.find(params[:id])
@category = @product.category
end
- 1
def show
current_user
@product = Product.find(params[:id])
end
- 1
def update
current_user
product = Product.find(params[:id])
product.update(product_params)
product.save
redirect_to "/categories/#{params[:product][:category_id]}"
end
- 1
def destroy
current_user
product = Product.find(params[:id])
product.destroy if @current_user = product
end
- 1
private
- 1
def product_params
- 2
params.require(:product).permit(:title, :description, :price, :photo_url, :category_id)
end
end
- 1
class UsersController < ApplicationController
- 1
def index
- 1
current_user
- 1
@users = User.all
end
- 1
def create
- 2
@user = User.new(user_params)
- 2
if @user.save
- 1
session[:user_id] = @user.id
- 1
redirect_to @user
else
- 1
set_message('You did not supply the correct credentials, please try again')
- 1
redirect_to '/users/new'
end
end
- 1
def new
current_user
end
- 1
def edit
current_user
@user = User.find(params[:id])
end
- 1
def show
current_user
end
- 1
def update
current_user
if params[:user].include?(:admin)
if @admin
user = User.find(params[:id])
user.update_attributes(admin: params[:user][:admin])
redirect_to "/users"
end
else
@current_user.update(user_params)
@current_user.save
session[:user_id] = @user.id
redirect_to @user
end
end
- 1
def destroy
current_user
user = User.find_by(email: params[:email])
user.destroy if @current_user = user
end
- 1
private
- 1
def user_params
- 2
params.require(:user).permit(:first_name, :last_name, :email, :username, :password)
end
end
- 1
module AddressesHelper
end
- 1
module ApplicationHelper
- 1
def current_user
- 3
@current_user ||= User.find(session[:user_id]) if session[:user_id]
- 3
@admin = @current_user.admin if @current_user
- 3
display_message
end
- 1
def current_user=(user)
session[:user_id] = user.id
end
- 1
def make_price(price_in_cents)
"$#{price_in_cents/100}"
end
- 1
def set_message(msg_text)
- 1
session[:message] = msg_text
end
- 1
def display_message
- 3
if session[:message]
@message = session[:message]
session[:message] = nil
end
end
end
- 1
module CategoriesHelper
end
- 1
module HomeHelper
end
- 1
module OrdersHelper
end
- 1
module ProductsHelper
end
- 1
module SessionsHelper
end
- 1
module UsersHelper
end
- 1
class Address < ActiveRecord::Base
- 1
belongs_to :user
- 1
has_many :orders
end
- 1
class Category < ActiveRecord::Base
- 1
has_many :products
- 1
validates :title, presence: true
end
- 1
class Order < ActiveRecord::Base
- 1
has_many :shopping_carts
- 1
belongs_to :user
end
- 1
class Product < ActiveRecord::Base
- 1
belongs_to :category
- 1
has_many :shopping_carts
- 1
validates :title, presence: true
- 1
validates :price, presence: true
end
- 1
class User < ActiveRecord::Base
- 1
has_secure_password
- 1
has_many :shopping_carts
- 1
has_many :products, through: :shopping_carts
- 1
has_many :orders
- 1
has_many :addresses
- 1
validates :username, presence: true
- 1
validates :email, presence: true
- 1
validates :password_digest, presence: true
end
- 1
require File.expand_path('../boot', __FILE__)
- 1
require "rails"
# Pick the frameworks you want:
- 1
require "active_model/railtie"
- 1
require "active_job/railtie"
- 1
require "active_record/railtie"
- 1
require "action_controller/railtie"
- 1
require "action_mailer/railtie"
- 1
require "action_view/railtie"
- 1
require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
- 1
Bundler.require(*Rails.groups)
- 1
module Shoppe
- 1
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Do not swallow errors in after_commit/after_rollback callbacks.
- 1
config.active_record.raise_in_transactional_callbacks = true
end
end
- 1
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
- 1
require 'bundler/setup' # Set up gems listed in the Gemfile.
# Load the Rails application.
- 1
require File.expand_path('../application', __FILE__)
# Initialize the Rails application.
- 1
Rails.application.initialize!
- 1
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
- 1
config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
- 1
config.eager_load = false
# Configure static file server for tests with Cache-Control for performance.
- 1
config.serve_static_files = true
- 1
config.static_cache_control = 'public, max-age=3600'
# Show full error reports and disable caching.
- 1
config.consider_all_requests_local = true
- 1
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates.
- 1
config.action_dispatch.show_exceptions = false
# Disable request forgery protection in test environment.
- 1
config.action_controller.allow_forgery_protection = false
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
- 1
config.action_mailer.delivery_method = :test
# Randomize the order test cases are executed.
- 1
config.active_support.test_order = :random
# Print deprecation notices to the stderr.
- 1
config.active_support.deprecation = :stderr
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
end
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
- 1
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
# Rails.backtrace_cleaner.remove_silencers!
# Be sure to restart your server when you modify this file.
- 1
Rails.application.config.action_dispatch.cookies_serializer = :json
# Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.
- 1
Rails.application.config.filter_parameters += [:password]
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end
# These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful'
# end
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Be sure to restart your server when you modify this file.
- 1
Rails.application.config.session_store :cookie_store, key: '_shoppe_session'
# Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
- 1
ActiveSupport.on_load(:action_controller) do
- 1
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
end
# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
# self.include_root_in_json = true
# end
- 1
Rails.application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
- 1
resources :users do
- 1
resources :addresses
- 1
resources :orders
end
- 1
resources :categories do
- 1
resources :products
end
- 1
resources :sessions
- 1
resources :shopping_carts
# You can have the root of your site routed with "root"
- 1
root 'home#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
end
- 1
require 'rails_helper'
- 1
RSpec.describe AddressesController, type: :controller do
end
- 1
require 'rails_helper'
- 1
RSpec.describe CategoriesController, type: :controller do
- 1
describe "GET #index" do
- 1
before(:each) do
- 1
get :index
end
- 1
it "responds with a 200" do
- 1
expect(response.status).to eq(200)
end
end
- 1
describe 'category create' do
- 1
context 'when given valid params' do
- 1
let :category_params do
- 1
{title: 'trev'}
end
- 1
it 'should create the category and redirect to category index' do
- 1
expect{
- 1
post :create, category: category_params
- 2
}.to change{Category.count}.by(1)
end
end
- 1
context 'when given invalid params' do
- 1
let :category_params do
- 1
{title: ''}
end
- 1
it 'should not create the category and throw an error message' do
- 1
expect{
- 1
post :create, category: category_params
- 2
}.to_not change{Category.count}
end
end
- 1
describe 'category edit' do
- 1
context 'when given valid params' do
- 2
let :category do Category.create(title: 'hveavhb')
end
- 2
let! (:title) {"trev"}
- 1
it 'updates category title' do
- 1
put :update, id: category.id, category: { title: title }
- 1
expect(category.reload.title).to eq(category.title)
end
end
end
# it 'should create the category and redirect to category index' do
# expect{
# post :update, category: category_params
# }.to change{@category.title}.from('change').to('trev')
# end
# end
# context 'when given invalid params' do
# let :category_params do
# {title: ''}
# end
# it 'should not create the category and throw an error message' do
# expect{
# post :create, category: category_params
# }.to_not change{Category.count}
# end
# end
end
end
- 1
require 'rails_helper'
- 1
RSpec.describe OrdersController, type: :controller do
end
- 1
require 'rails_helper'
- 1
RSpec.describe ProductsController, type: :controller do
- 1
describe 'product create' do
- 1
context 'when given valid params' do
- 1
let :category do {id: 2, title: 'hveavhb'}
end
- 1
let :product_params do
{title: 'trev',
description: 'a thing',
price: '345',
photo_url: 'eaivulhwreiVBE',
- 1
category_id: 2}
end
- 1
it 'should create the product and redirect to category show page' do
- 1
expect{
- 1
post :create, {category_id: 2, product: product_params}
- 2
}.to change{Product.count}.by(1)
end
end
- 1
context 'when given invalid params' do
- 1
let :category do {id: 2, title: 'hveavhb'}
end
- 1
let :product_params do
{title: 'trev',
description: 'a thing',
photo_url: 'eaivulhwreiVBE',
- 1
category_id: 2}
end
- 1
it 'should not create the product and throw an error message' do
- 1
expect{
- 1
post :create,{category_id: 2, product: product_params}
- 2
}.to_not change{Product.count}
end
end
end
end
- 1
require 'rails_helper'
- 1
describe UsersController do
- 1
describe "GET #index" do
- 1
before(:each) do
- 1
get :index
end
- 1
it "responds with a 200" do
- 1
expect(response.status).to eq(200)
end
end
- 1
describe 'user create' do
- 1
context 'when given valid params' do
- 1
let :user_params do
{username: 'trev',
first_name: 'trev',
last_name: 'trev',
email<EMAIL_ADDRESS>- 1
password: 'trev'}
end
- 1
it 'should create the user and redirect to root page' do
- 1
expect{
- 1
post :create, {user: user_params}
- 2
}.to change{User.count}.by(1)
end
end
- 1
context 'when given invalid params' do
- 1
let :user_params do
{first_name: 'trev',
last_name: 'trev',
email<EMAIL_ADDRESS>- 1
password: 'trev'}
end
- 1
it 'should not create the user and throw an error message' do
- 1
expect{
- 1
post :create, user: user_params
- 2
}.to_not change{User.count}
end
end
end
end
# let(:user) { FactoryGirl.create :user}
# let(:attributes) { FactoryGirl.attributes_for :user}
# let(:user) {User.create!(first_name: 'abe', last_name: 'abe'<EMAIL_ADDRESS>password: 'abe', username: 'abe', admin: false)}
# let(:admin) {User.create!(first_name: 'trev', last_name: 'trev'<EMAIL_ADDRESS>password: 'trev', username: 'trev', admin: true)}
# describe "GET #index" do
# before(:each) do
# get :index
# end
# it "responds with a 200" do
# expect(response.status).to eq(200)
# end
# it "assigns the users instance variable" do
# expect(assigns(:users)).to be_a(ActiveRecord::Relation)
# end
# it "assigns the user instance variable" do
# expect(assigns(:user)).to be_a(User)
# end
# pending "redirects unless you are an Admin"
# end
# describe 'POST #create' do
# it "saves a new article in the database" do
# expect{
# post :create, :article => attributes}.to change{ Article.count}.by(1)
# end
# it "redirects to the root path" do
# post :create, :article => attributes
# expect(response.status).to eq(302)
# end
# end
# describe 'GET #show' do
# before(:each) do
# get :show, id: article.id
# end
# it "assigns the article instance variable" do
# expect(assigns(:article)).to be_a(Article)
# end
# end
# describe 'PUT #update' do
# let!(:title) { "A treatise on Malomars." }
# it 'updates a field on an article' do
# put :update, id: article.id, article: { title: title, body: article.body }
# expect(article.reload.title).to eq(article.title)
# end
# end
# describe 'DELETE #destroy' do
# it 'decrements articles by one' do
# article_id = article.id
# expect {
# delete :destroy, id: article_id
# }.to change{ Article.count }.by(-1)
# end
# it 'redirects to the root path' do
# article_id = article.id
# delete :destroy, id: article_id
# expect(response.status).to eq(302)
# end
# end
# end
- 1
require 'rails_helper'
- 1
RSpec.describe Address, type: :model do
- 1
pending "add some examples to (or delete) #{__FILE__}"
end
- 1
require 'rails_helper'
- 1
RSpec.describe Category, type: :model do
- 2
let(:blank_category) {Category.new()}
- 1
describe 'validations' do
- 1
context 'Should not allow blank fields' do
- 1
it 'for title' do
- 1
blank_category.save
- 1
expect(blank_category.errors[:title]).to include("can't be blank")
end
end
end
end
- 1
require 'rails_helper'
- 1
RSpec.describe Order, type: :model do
- 1
pending "add some examples to (or delete) #{__FILE__}"
end
- 1
require 'rails_helper'
- 1
RSpec.describe Product, type: :model do
- 3
let(:blank_product) {Product.new()}
- 1
describe 'validations' do
- 1
context 'Should not allow blank fields' do
- 1
it 'for title' do
- 1
blank_product.save
- 1
expect(blank_product.errors[:title]).to include("can't be blank")
end
- 1
it 'for price' do
- 1
blank_product.save
- 1
expect(blank_product.errors[:price]).to include("can't be blank")
end
end
end
end
- 1
require 'rails_helper'
- 1
RSpec.describe User, type: :model do
- 4
let(:blank_user) {User.new()}
- 1
describe 'validations' do
- 1
context 'Should not allow blank fields' do
- 1
it 'for username' do
- 1
blank_user.save
- 1
expect(blank_user.errors[:username]).to include("can't be blank")
end
- 1
it 'for email' do
- 1
blank_user.save
- 1
expect(blank_user.errors[:email]).to include("can't be blank")
end
- 1
it 'for password' do
- 1
blank_user.save
- 1
expect(blank_user.errors[:password_digest]).to include("can't be blank")
end
end
end
end
# This file is copied to spec/ when you run 'rails generate rspec:install'
- 1
ENV['RAILS_ENV'] ||= 'test'
- 1
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
- 1
abort("The Rails environment is running in production mode!") if Rails.env.production?
- 1
require 'spec_helper'
- 1
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end
# in _spec.rb will both be required and run as specs, causing the specs to be
# run twice. It is recommended that you do not name files matching this glob to
# end with _spec.rb. You can configure this pattern with the --pattern
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
#
# The following line is provided for convenience purposes. It has the downside
# of increasing the boot-up time by auto-requiring all files in the support
# directory. Alternatively, in the individual `*_spec.rb` files, manually
# require only the support files necessary.
#
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
# Checks for pending migration and applies them before tests are run.
# If you are not using ActiveRecord, you can remove this line.
- 1
ActiveRecord::Migration.maintain_test_schema!
- 1
RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
- 1
config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
- 1
config.use_transactional_fixtures = true
# RSpec Rails can automatically mix in different behaviours to your tests
# based on their file location, for example enabling you to call `get` and
# `post` in specs under `spec/controllers`.
#
# You can disable this behaviour by removing the line below, and instead
# explicitly tag your specs with their type, e.g.:
#
# RSpec.describe UsersController, :type => :controller do
# # ...
# end
#
# The different available types are documented in the features, such as in
# https://relishapp.com/rspec/rspec-rails/docs
- 1
config.infer_spec_type_from_file_location!
# Filter lines from Rails gems in backtraces.
- 1
config.filter_rails_from_backtrace!
# arbitrary gems may also be filtered via:
# config.filter_gems_from_backtrace("gem name")
end


RoboPaint Remote Example Control Client
For interfacing with a computer running RoboPaint in Remote Print Mode.
Location of remote print server:
Hostname
Port
Select an SVG file:
Plot Selected File
Force Ready State
CANCEL
Current Status


Will_Deutsch_Jewish_Art_Wedding_Judaism_Jews.jpg http://store.notesfromthetribe.com/product/jewish-art-8-5-x11-napkin-dance-print
After years of watching, leading and participating in horahs I have come up with the following formula to calculate the potential risks of such an endeavor:
(Flailing Of Person On Chair Due To Nervousness+Chiropractic Issues of People Holding The Chair+Inebriation Of Guests)÷(Height Of Ceiling+Structural Integrity of Chair+Upper Body Strength And Endurance)=Probability of Injury due to falling off chair and/or hitting ones head.
All things considered, its amazing that most simchas don’t end with a trip to the E.R.


| DOSE: T+ 0:00 |
|
oral |
Vitamin C |
(pill / tablet) |
| T+ 0:00 |
50 mg |
oral |
5-MeO-DiPT |
(capsule) |
| T+ 10:00 |
10 mg |
insufflated |
5-MeO-DiPT |
(powder / crystals) |
| T+ 15:00 |
25 mg |
oral |
Ephedrine |
(pill / tablet) |
| T+ 15:00 |
|
oral |
Coffee |
(liquid) |
Well howdy, folks. Good ol' Croc here, feeling mighty fatigued because I haven't slept in 28 hours and I'm about to go into work.
What we have here is the Last Dance with the Fox- I've got some plans which are going to take up my time for the next few months, so this most recent trip was the last of my supply of 5-meo-DiPT for a while.
I had awoken bright and early yesterday to get to work at 1pm, and stayed there until 8pm. On the way back I grabbed some cold, refreshing beverages at the store and headed back to my apartment.
I arrived and took an extra Vitamin C tablet and a regular dose of loperamide HCl (which is store brand Immodium to y'all) to quell the stomach cramps which I usually get with Foxy. I had two gelcaps, one with precisely 50mg of Foxy which I had measured several weeks earlier, and the other one with an extremely small amount which I didn't measure, but would guess to be at most 10mg.
I've become very comfortable with Foxy at 50mg. This didn't happen overnight, it was a gradual tolerance process, and I was very deliberate when I massed out precisely 50mg.
I dosed the 50mg of Foxy just before 9pm and hit the lava lamp to indicate my progress. I usually have to wait about an hour for a substance to set in, and that happens to match up nicely with the time it takes for the ol' lava lamp to warm.
Yet by the time the lava lamp was blazing away, around 11:30, I was getting only minimal effects. Or so I thought.
I turned on Letterman and from there the pattern of events get hazy. At these higher doses Foxy tends to have a very unique dissociative effect, different from what DXM delivers. I tend to forget who I am and what the hell I'm doing in place of the task or pre-occupation immediately before me, and the hallucinatory effects become secondary. Most of my cognitive thought was to avoid doing something really crazy that would get me noticed by my room mate, who keeps to himself and doesn't share in this 'hobby' of mine. Of course also bear in mind that I dosed this stuff a few hours before I usually hit the hay, and I was expecting for it to wear off and me to be able to sleep by about 2am. Hah.
By midnight the trip was in full effect, I was getting a wide variety of colors and distortions. Most noticeable in terms of the trip (remember I was also highly dissociated) were sound distortions, what I wrote in my 'trip notes' was 'Telescoping sounds.' Imagine one of those slide whistles which would produce a normal sound, say the audio on a TV talk show, and then imagine someone jamming on the slide whistle for all it was worth; the pitch and volume of the noises I heard kept varying erratically.
Occasionally I'd stare at myself in the mirror, at lower doses I didn't usually see pupil dilation but they were pretty well dilated now.
At some point I broke open the first can of my cold, refreshing beverages and began to drink it slowly. I was still feeling a bit of nausea, although the dissociation helped me avoid that. I found that having a good drink near the end of a Foxy trip helps reign it in and gives me more control, although I usually end up just a wee bit more 'tripsy' after I finish my beverages. Carbonated beverages can be substituted for non-carbonated ones.
Around 1am my room mate finally went to sleep after playing 8-bit Nintendo in the living room for what I estimated was 5-6 hours straight... he'd be doing it since before I dosed. I took that opportunity to drink my other beverage and waited a little longer... no diminishing in the quality of the trip. I was in it for the long haul, it seemed. I took a kava kava pill and a 1/4 piece of a melatonin pill about an hour after that. Still, around 4 and 5am, I was tossing and turning but sleep just wasn't going to happen. I turned on the TV again and fooled around with the laser pointer I had gotten as a trip toy. Nice trails provided by that. I found that by moving the laser point around the light on the ceiling very rapidly, I could sort of localize my hallucinations at the point I was circling, even though the trip was now finally starting to wear off.
At around 7am I got hungry, as I hadn't eaten since noon the previous day. I put some water to the boil for Ramen but then also whipped out the last remaining gelcap with the trace amount of powder. Up one nostril it went (the powder, not the gelcap) because the other one was too congested. Stupidly my Ramen was about ready when the taste hit the back of my throat, I didn't finish the bowl as a result. Also I don't think I'd ever snorted that much Foxy, the burning became very unpleasant so I ended up blowing it out after about ten minutes.
[Erowid Note: Driving while intoxicated or tripping is dangerous and irresponsible because it endangers other people. Don't do it!]
Later I made some coffee and took a shower. I got myself ready and hit the town, enjoying the bright, crisp winter day. The cirrus clouds are magnificent, they'd yet to be burned away by the sun and they took on all sorts of intricate swirls and nice regular patterns. Oh, driving was a sonofabitch though. I just kept it nice and slow and obeyed the speed limit, no problems.
So here I am about 15 hours after the initial dosage. I'm quite tired. I've taken a 25mg ephedrine tablet and some more coffee, although I don't feel any more alert. I just hope I can stay awake through my work shift, but I don't foresee any problems. Not like I'm operating a crane or anything (I'm not).
I went into the trip expecting a whimper, but the Fox gave me one last bang for my buck. I got my money's worth out of that 5-MeO-DiPT, and I will certainly return to it one day, but not in the foreseeable future.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Abstract
This paper describes a probabilistic approach to detecting if a sequence is a palindrome. The approach is simple yet efficient, having O(N) performance and O(1) memory overhead, suitable for real-time applications. The chance of a false negative is zero, while the chance of a false positive is less than $1$ in $10^{19}$. Below we describe the algorithm, its motivation, and prove the correctness of the results.
Introduction
A palindrome is string that reads the same forwards as backwards. More formally, given a finite alphabet $\Omega$ and a sequence $S={s_1, s_2,…s_n}$ where $s_i \in \Omega$ for all $i \leq n$ we call $S^\prime={s_n,s_{n-1}…, s_1}$ the inverse of $S$.
Existing exact algorithms determine if a sequence is a palindrome by doing a item by item comparison of the sequence and its reverse. This in turn requires either keeping the sequence in memory or the ability to traverse the sequence in both directions simultaneously. When extra memory is prohibitive because of the size of the sequence and if the option to traverse the sequence in two directions does not exist (e.g. with a feed), other approaches are necessary.
Theory
This paper describes a probabilistic approach implemented by calculating two hash values for the sequence as it is being traversed. These hash values have the special property that their product can be used to determine with certainty that the generating sequence is not a palindrome. The same product can also determine with very high probability if the sequence is a palindrome. Algorithms with a bounded probability of error are called probabilistic algorithms.
Our hash values must be members of a non-commutative group, for reasons that will soon be clear. We chose to use ${\mathbb Z}^{2\times2}$, the group of $2\times 2$ integer matrices. Members of our alphabet must map to distinct members of this group. We assume $\Omega$ is ordered and that each member has a distinct ordinal value denoted $a =\mathrm{ord}(s)$ where $a\in\mathbb{Z}^+$.
We define an injection $f:\Omega\mapsto{\mathbb Z}^{2\times2}$ as follows:
$$f(s) = \left[\begin{matrix} 1 & \mathrm{ord}(s)\cr p & 1 \end{matrix}\right] = \left[\begin{matrix} 1 & a\cr p & 1 \end{matrix}\right]$$
where $p$ represents a large fixed prime. The determinant of $f(s)$ is $1-ap$, which is never zero over $\mathbb{Z}$, so every such matrix has an inverse. From now on, without loss of generality, we will assume that the alphabet $\Omega=\mathbb{Z}^+$.
If $A_i = f(s_i)$ then the two hash values for string $S$ will be denoted $h(S)$ and $h^\prime(S)$ and will be defined as follows:
$$ h(S) = \prod_{i=1}^n A_i \qquad h^\prime(S) = \prod_{i=1}^n A_i^{-1} $$
The implementation computes these product matrices as the sequence ${s_i}$ is consumed. We will show that if the product $h(S)\cdot h^\prime(S)$ is the identity matrix $\bf1$ then $S$ is a palindrome or a very rare condition occurred. If the multiplication operation were commutative the product of $h(S)$ and $h^\prime(S)$ would always be the identity and a different approach would have been needed.
Theorem 1. If $S$ is a palindrome, then $h(S)\cdot h^\prime(S)=\bf1$.
Proof. We will expand the multiplication and take advantage of the associativity of matrix multiplication to reduce the product. We also use the fact that since $S$ is a palindrome, $A_i=A_{n-i+1}$.
$$
\begin{aligned}
h(S)\cdot h^\prime(S)
&= \prod_{i=1}^n Ai \cdot \prod{i=1}^n A_i^{-1}
&= \left(A_1 A2\cdots A{n-1}A_n \right)\cdot \left(A_1^{-1} A_2^{-1}\cdots A_n^{-1}\right)
&= \left(A_1 A_2\cdots A_2 A_1 \right)\cdot \left(A_1^{-1} A_2^{-1}\cdots A_2^{-1}A_1^{-1}\right)
&= \left(A_1 A_2\cdots A_2 \right)\left(A_1 \cdot A_1^{-1}\right)\left( A_2^{-1}\cdots A_2^{-1}A_1^{-1}\right)
&= \left(A_1 A_2\cdots A_2 \right)\cdot{\bf1}\cdot \left(A_2^{-1}\cdots A_2^{-1}A_1^{-1}\right)
&= \left(A_1 A_2\cdots A_2 \right)\cdot\left(A_2^{-1}\cdots A_2^{-1}A_1^{-1}\right)
&= \cdots = {\bf1}
\end{aligned}
$$
This completes the proof. $\Box$
The proof holds in the domain $\mathbb{Z}$ because an inverse exists for all $A_i$. In practice the computations will take place with 64 bit integers. We would like to extend the proof to the quotient ring of integers modulo m denoted $\mathbb{Z}/m\mathbb{Z}$ where $m=2^{64}$. In this ring not every $A_i$ has an inverse. The determinant of $A_i$ is zero when $pa_i=1 (mod m)$. By the extended Euclidean algorithm the inverse of p exists modulo m if and only if $\gcd(p,m)=1$. Since $m=2^{64}$ and p is prime p has a unique inverse, denoted by $p^{-1}$.
Theorem 2. If $S$ is a palindrome, then $h(S)\cdot h^\prime(S)=\bf1$ when matrix multiplication is done modulo m, so long as $a_i \neq p^{-1}$ for any $i$.
Proof. Matrix multiplication, even under modulo arithmetic, is still associative. The proof is elementary and uses the congruence sum rule and congruence product rule to show that $(AB)C=A(BC) \pmod m$ for all $A,B,C\in{\mathbb Z}^{n\times n}$. We note that the inner multiplication of expression above still holds using modulo arithmetic:
$$\begin{aligned}
A_1 \cdot A_1^{-1}
&= \left[\begin{matrix}1 & a_1 \cr p & 1 \end{matrix}\right]
\left[\begin{matrix}1 & -a_1\cr -p & 1 \end{matrix}\right]
\cdot{1\over 1-pa_i}
&= \left[\begin{matrix}(1-pa_i) \pmod m & 0 \cr 0 & (1-pa_i) \pmod m\end{matrix}
\right]\cdot{1\over (1-pa_i) \pmod m}
&= {\bf1}
\end{aligned}
$$
since $pa_i\neq1$. Working from the inside of the expression out, all pairs again result in the identity. So the proof above still holds under modulo arithmetic. $\Box$
Theorem 3. If $h(S)\cdot h^\prime(S)=\bf1$ then $S$ is a palindrome.
Proof. Let $H(S) = h(S)h^\prime(S)$. $|H(S)|=1$ since $|AB|=|A|\cdot|B|$ and $|A^{-1}|=1/|A|$. The values of $H(S)$ range over ${\mathbb Q}^{2\times2}$ with three degrees of freedom. Only one of these values is the identity matrix. The likelihood of a random sequence $S$ producing $|H(S)|=1$ is intuitively zero.
I am stuck here. I can argue statistically since the function $H(S)$ has some properties of a hash function. I can demonstrate this empirically with tests - but those would be done using modulo arithmetic.
Theorem 4. If $h(S)\cdot h^\prime(S)=\bf1$ when matrix multiplication is done modulo m, then $S$ is a palindrome with a statistically small chance of error.
Proof.
I am stuck here too. This should follow from Theorem 3, however, because the range collapses to a finite range under modulo multiplication there is a greater chance that distinct non-palindromic inputs will collide with the identity.
Implementation
The implementation of the algorithm closely follows the description above using 64 bit signed integers. Signed integers using two’s complement representation are unsigned 64 bit integers with the upper half of the range shifted to represent the negatives making the arguments from modulo arithmetic valid. The code syntax in this section uses the language “go”.
The hash matrix values are computed iteratively on a stream of entries of the
sequence $S$. The structure hash
consists of three values:
type hash struct {
p Matrix // running product of the A_i matrices
q Matrix // running product of the A_i inverses (scaled by det)
det int64 // running product of the A_i determinant values
}
Matrix
is a basic implementation of ${\mathbb Z}^{2\times2}$ supporting the
operations Times
, Inverse
, and Det
. Multiplying the inverse of $A_i$ by the
determinant allows us to avoid floating point arithmetic and is the reason why
the determinant must be stored separately. The initial value of this structure
uses 1 for the determinant and the identity for the two matrix values:
one := Matrix{1, 0, 0, 1}
func NewHash() *hash {
return &hash{one, one, 1}
}
The mapping $f(a)$ makes use of a hash prime. In our implementation we use
P=1099511628211. The inverse of P is -3560570117845248645, making this an
illegal value for an element of $S$. Since $S$ only contains positive ordinal
values, this restriction is not checked when a new int64
is added to the
hash.
Adding an item from the sequence to hash h
requires mapping the item to a
matrix and multiplying this matrix and its scaled inverse into the appropriate
fields of the hash.
P :=<PHONE_NUMBER>211
func (h *hash) Add(r int64) {
m := Matrix{1, r, P, 1}
mInv := Matrix{1, -r, -P, 1}
h.p = h.p.Times(m)
h.q = h.q.Times(mInv)
h.det = h.det * m.Det()
}
The methods Times
and Det
have the usual definitions for matrix
multiplication and determinant, and are not shown here. The test for a
palindrome is also straightforward:
func (h *hash) IsPalindrome() bool {
temp := h.p.Times(h.q)
return temp == one.Scale(h.det)
}
If the product of the two matrix values p
and q
is equal to the identity
matrix scaled by the determinant, then the sequence is likely a palindrome.
Limitations
The starting point of the palindrome detection is fixed. As a consequence this approach cannot be used to find the longest palindrome embedded in a stream. It can be used to detect the moment at which a stream becomes palindromic (running detection). For example, the following stream of letters becomes palindromic at points marked with a ^.
ABBABCCBABBAABBABCCBABBABC...
---^-------^-----------^--...
Conclusion
The author believes the algorithm presented here is a novel approach. It might have some applications in fields where detecting symmetry is important but the data set is very large, such as genetics.
References
- Z. Galil, “Real-time algorithms for string-matching and palindrome recognition,” 8th Ann. ACM Symp. Theory Comput., Hershey, Pensylvania, May, 1976, pp. 161–173.
- Z. Galil, “Two fast simulations which imply some fast string matching and palindrome-recognition algorithms,” Information Processing Letters, Volume 4, Issue 4, Pages 85-87 http://www.sciencedirect.com/science/article/pii/0020019076900508
- Slisenko, A.O., “A simplified proof of the real-time recognizability of palindromes on turing machines,” J Math Sci (1981) 15: 68. https://doi.org/10.1007/BF01404109
- Manacher, Glenn (1975), “A new linear-time “on-line” algorithm for finding the smallest initial palindrome of a string”, Journal of the ACM, 22 (3): 346–351, doi:10.1145⁄321892.321896.
- Wikipedia, https://en.wikipedia.org/wiki/Palindromic_sequence (Genetics)
- 1968: Ian D. Macdonald: The Theory of Groups
- https://golang.org/ref/spec


Deductive Logic
by George William Joseph Stock, M.A.
Part 3: Chapter 22
Additional Information
- Year Published: 1888
- Language: English
- Country of Origin: England
- Source: Stock, G. W. J. (1888). Deductive Logic. Oxford, England; Pembroke College.
-
Readability:
- Flesch–Kincaid Level: 11.0
- Word Count: 606
- Genre: Informational
- Keywords: math, math history
- ✎ Cite This
Downloads
PART III.—OF INFERENCES
CHAPTER XXII.
_Of the Partly Conjunctive Syllogism regarded as an Immediate Inference_.
753. It is the assertion of fact in the minor premiss, where we have the application of an abstract principle to a concrete instance, which alone entitles the partly conjunctive syllogism to be regarded as a syllogism at all. Apart from this the forms of semi-conjunctive reasoning run at once into the moulds of immediate inference.
754. The constructive mood will then be read in this way—
If A is B, C is D,
.’. A being B, C is D.
reducing itself to an instance of immediate inference by subaltern opposition—
Every case of A being B, is a case of C being D.
.’. Some particular case of A being B is a case of C being D.
755. Again, the destructive conjunctive will read as follows—
If A is B, C is D,
.’. C not being D, A is not B.
which is equivalent to
All cases of A being B are cases of C being D.
.’. Whatever is not a case of C being D is not a case of A being B.
.’. Some particular case of C not being D is not a case of A being B.
But what is this but an immediate inference by contraposition, coming under the formula
All A is B,
.’. All not-B is not-A,
and followed by Subalternation?
756. The fallacy of affirming the consequent becomes by this mode of treatment an instance of the vice of immediate inference known as the simple conversion of an A proposition. ‘If A is B, C is D’ is not convertible with ‘If C is D, A is B’ any more than ‘All A is B’ is convertible with ‘All B is A.’
757. We may however argue in this way
If A is B, C is D, C is D,
.’. A may be B,
which is equivalent to saying,
When A is B, C is always D,
.’. When C is D, A is sometimes B,
and falls under the legitimate form of conversion of A per accidens—
All cases of A being B are cases of C being D.
.’. Some cases of C being D are cases of A being B.
758. The fallacy of denying the antecedent assumes the following form—
If A is B, C is D,
.’. If A is not B, C is not D,
equivalent to—
All cases of A being B are cases of C being D.
.’. Whatever is not a case of A being B is not a case of C being D.
This is the same as to argue—
All A is B,
.’. All not-A is not-B,
an erroneous form of immediate inference for which there is no special name, but which involves the vice of simple conversion of A, since ‘All not-A is not-B’ is the contrapositive, not of ‘All A is B,’ but of its simple converse ‘All B is A.’
759. The above-mentioned form of immediate inference, however (namely, the employment of contraposition without conversion), is valid in the case of the U proposition; and so also is simple conversion. Accordingly we are able, as we have seen, in dealing with a proposition of that form, both to deny the antecedent and to assert the consequent with impunity—
If A is B, then only C is D,
.’. A not being B, C is not D;
and again, C being D, A must be B.


| Path: | lib/features/localized_models_by_lang_file.rb |
| Last Update: | Wed Sep 12 14:46:23 +0200 2007 |
This feature provides a way to localize ActiveRecord models based on translated model and attribute names in the language file. Where the localized_models feature depends on translated names written in the source code of the models this feature reads all necessary strings from the loaded language file.
This feature is the right choice if your application should support multiple languages. If your application is strictly developed for just one language localized_models is the better choice.
To localize a model with this feature just add the necessary section to the languge file. How to do this is descriped in the next chapter.
The localized model and attribute names for this feature are located in the models section of the language file. The following example localizes the Computer model and it‘s attributes name, description, ip_address and user.
models: computer: name: Der Computer attributes: name: Der Name description: Die Beschreibung ip_address: Die IP-Adresse user: Der Besitzer
This feature will convert the name of the model class (Compuer) using String#underscore (results in computer) and will look in the corresponding subsection of the models section. Each model section in turn contains the name of the model ("Der Computer") and a map translating the model attributes.


CocoaPad Help
If you're stuck on something, this is a place where you can find many answers to many questions. If you don't find what you want here, email me at<EMAIL_ADDRESS>Contents
CocoaPad version 1.1
© Copyright 2004, 2005, 2007, Henry Weiss.


DASH-IF publishes Low-Latency DASH extensions and 2nd Community Review for DASH-IF Ad Insertion
Low-Latency DASH Modes
Based on a report developed jointly between DVB and DASH-IF in 2017 on Low-Latency DASH, DASH-IF developed over the last 2 years detailed requirements and recommendations for service offerings and client implementation to support consistent latency in DASH for linear TV services. The change request builds on joint work in MPEG, DASH-IF and DVB. In particular, the use of CMAF chunks, HTTP chunked transfer, consistent MPD signaling as well as requirements and implementation guidelines for DASH clients enables low-latency services.
The agreed Change Request can be accessed through our public website under the guidelines section.
This document is technically frozen. However, certain circumstances still may lead to updates of the document. Three main aspects are identified:
- Some references, in particular the MPEG-DASH Amd.1 of the 4th edition is not yet approved and may still be subject to change. Alignment with MPEG-DASH may still be necessary.
- Conformance and Reference tools are currently under development and may identify bugs or other deficiencies
- Initial deployments are starting but may reveal inconsistencies or will require updates.
DASH-IF has also coordinated and commissioned the development of conformance and reference tools for low-latency DASH, most notably:
- Extensions for FFMPEG to support DASH-IF Low-Latency Modes allow setup of low-latency DASH presentations.
- The DASH-IF conformance validator checks DASH Media Presentations for Low-Latency conformance.
- The DASH-IF reference client dash.js enables playback of Low-Latency DASH-IF Media Presentations and measure the observed latency.
The specification was developed by the DASH IF Interoperability WG in the Live TF lead by Thomas Stockhammer (Qualcomm), Nicolas Weil (AWS Elemental) and Will Law (Akamai).
The specification was made possible by the generous contributions and support of member companies: Akamai, AWS Elemental, castLabs, Comcast, Elemental Technologies, Ericsson, Frontier Communications Harmonic, Hulu, Qualcomm Incorporated, Sony, TNO, Unified Streaming, Arris (CommScope).
2nd Community Review for DASH-IF Ad Insertion
DASH-IF issued a second community review for the DASH-IF Ad Insertion in order to collect public feedback until May 15, 2020. Ad Insertion is considered as one of the most important aspects in online video distribution. Also with the development of CMAF, some additional aspects are relevant, such as consistent development of Ad content, content insertion into CMAF live content, etc. This document addresses latest development in the context of Ad Insertion and maps this to DASH, among others:
- Description of most relevant use cases
- Ad Insertion architecture
- Definition of main content requirements and recommendations
- Definition of ad content requirements and recommendations
- Definition of combined main and ad content
- Ad specific metadata
- Ad tracking
The draft Change Request can be accessed through our public website under the guidelines section. The site also includes instructions on how to provide feedback.
The draft Change Request was developed by the DASH IF Interoperability WG in the Ad Insertion TF lead by Zachary Cava (Hulu) and Thomas Stockhammer (Qualcomm).
The specification was made possible by the generous contributions and support of member companies: Hulu, Qualcomm, Tencent, Unified Streaming, Akamai, AWS Elemental, Comcast, Lufthansa Systems, Turner, Arris (CommScope).


Manifest Introduction
Running the Manifest Utility Test
Manifest Utility Overview
Operational Instructions
Added Functionality
Operational Notes


|
| Value |
Description |
Notes |
|
| 01 |
Publication date |
Nominal date of publication |
| 02 |
Embargo date |
If there is an embargo on retail sales in this market before a certain date, the date from which the embargo is lifted and
retail sales are permitted
|
| 09 |
Public announcement date |
Date when a new product may be announced to the general public |
| 10 |
Trade announcement date |
Date when a new product may be announced for trade only |
| 11 |
Date of first publication |
Date when the work incorporated in a product was first published |
| 12 |
Last reprint date |
Date when a product was last reprinted |
| 13 |
Out-of-print / deletion date |
Date when a product was (or will be) declared out-of-print or deleted |
| 16 |
Last reissue date |
Date when a product was last reissued |
| 19 |
Publication date of print counterpart |
Date of publication of a printed book which is the print counterpart to a digital edition |
| 20 |
Date of first publication in original language |
Year when the original language version of work incorporated in a product was first published (note, use only when different
from code 11)
|
| 21 |
Forthcoming reissue date |
Date when a product will be reissued |
| 22 |
Expected availability date after temporary withdrawal |
Date when a product that has been temporary withdrawn from sale or recalled for any reason is expected to become available
again, eg after correction of quality or technical issues
|
| 23 |
Review embargo date |
Date from which reviews of a product may be published eg in newspapers and magazines or online. Provided to the book trade
for information only: newspapers and magazines are not expected to be recipients of ONIX metadata
|
| 25 |
Publisher’s reservation order deadline |
Latest date on which an order may be placed with the publisher for guaranteed delivery prior to the publication date. May
or may not be linked to a special reservation or pre-publication price
|
| 26 |
Forthcoming reprint date |
Date when a product will be reprinted |
| 27 |
Preorder embargo date |
Earliest date a retail ‘preorder’ can be placed (where this is distinct from the public announcement date). In the absence
of a preorder embargo, advance orders can be placed as soon as metadata is available to the consumer (this would be the public
announcement date, or in the absence of a public announcement date, the earliest date metadata is available to the retailer)
|
| 28 |
Transfer date |
Date of acquisition of product by new publisher (use with publishing roles 09 and 13) |
| 29 |
Date of production |
For an audiovisual work (eg on DVD) |
|


{% csrf_token %} {% load static %}
Welcome to Safe Business Finder!
Any Type
Restaurant
Recreation
Goods
Any Range
Within 5 Miles
Within 10 Miles
Within 15 Miles
Search
Name
Address
Hours
Description
Ratings
Safe Practices
Distance
{% include "find_business/businesses_list.html" %}


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.AppConfig @import models.request.AuthenticatedRequest @import controllers.routes @import views.forms.components.RadioOption @import views.html.forms.components.input_radiogroup @import models.LiabilityOrder @import views.html.components.confirm_or_cancel_buttons @import views.html.forms.components.input_text @import models.LiabilityStatus @import views.html.partials.error_summary @import models.viewmodels.NoTabSelected @import views.html.includes.main @this( main: main ) @(form: Form[LiabilityOrder])(implicit request: AuthenticatedRequest[_], messages: Messages, appConfig: AppConfig) @main( pageTitle = messages("page.title.create_liability.h1"), customPrimaryNavTab = NoTabSelected ) { @error_summary(form.errors, keySwaps = Map("liability-status" -> "create_liability-liability_status-LIVE"))


Skiing Trapps
The Time Lapse Adventure
Traveling to Vermont over New Years we celebrated the transition form 2015-2016 with two separate trips up Round Top at the Trapp Family Lodge. Below is a compilation of all the time lapses I took during both days of adventure.
Day 1: The First Ascent
Molly and I went with Dad, Neil, and Maddi on a mission to reach the Cabin before it closed at 3:30. It was an ambitious goal seeing as Dad and Maddi had only XC-skied a couple times before and it was Neil’s first time. Molly decided to take the opportunity to practice her skate skiing, which meant that everyone else got to watch her produce her best impression of a labrador retriever: flying to the far reaches of our lines of site and then returning briefly enough for a quick hello before flying off again. We’re fairly certain she completed the climb 2-3 times in total distance using this method.
Dad, Neil, and Maddi took quite naturally to the skiing and caught on quickly to the skiing on the easier beginner loop. The warning sign for Expert Terrain at the bottom of picnic knoll did not faze them and we semi-rapidly ascended towards the cabin. With everyone’s best herring bone technique we managed to get to the cabin by 2:45. We enjoyed some soup, sandwiches, and cookies. It was great fortification for the descent. As expected, it was challenging, but we were all able to make it down with some creative techniques.
Day 2: Lilly Joins the Skiing
For the second adventure, Lilly decided to join Molly and I for another trip up to the cabin. This time it was a two pronged journey, with Molly, Lilly, and I skiing up, while Mom and Dad snowshoed. After a couple laps in the beginner loop, skate skis did not treat my shins well, we blew right past the the expert terrain sign and decided to take the Owl’s Howl. Lilly took naturally to the ascent and we were able to make it to the cabin shortly after Mom and Dad to enjoy a much needed lunch. Lilly descended with impressive skill and managed to ski, without creative techniques, all the way down.


Simple Video Player lets you play your local video files via the browser. You can also add subtitle files to your video as you watch. Your videos will not be uploaded anywhere.


B.Verkin Institute for Low Temperature Physics and Engineering
of the National Academy of Sciences of Ukraine
47 Nauky
Ave., Kharkiv, 61103, Ukraine
+38-067-1100-369
+38-057-340-57-02
Graduated from Kharkov State University in 1995.
PhD Phys & Math, ILTPE, 2000.
Topological semimetals: Dirac, Weyl, Nodal (Line-Node) semimetals: Electronic properties; Electronic spectra; Magnetic Susceptibility and Magnetiazation;
Electron Topological Transitions of 3 1/2 kind in Metals;
Field dependence of magnetic susceptibility and transport coefficents of crystals under conditions of degeneracy of electron energy bands: Graphite; Graphene; Bismuth (Bi); Zink (Zn); Beryllium (Be);
Spontaneous Symmetry Breaking of Magnetostriction in Metals;
Berry Phase effects on Electronic Spectra of Metals; Geometric quantization; Spin-Orbit effects; Landau levels; g factor; Oscillations of Magnetization;
(See also: Mikitik)


Corporate UI & Front End Apps
Using Corporate UI with Angular, React or an equivalent framework
Using the Corporate UI library with standard HTML pages is a very straight forward procedure. Although, when using it in a JS intense application based on any of the modern JS frameworks, you'll need to consider a few things.
What's happening in corporate-ui.js?
When calling the corporate-ui.js file a lot of things happens. The latest versions of the Scania fonts, logotype, favicons and the basic CSS and HTML framework (Scania Bootstrap) is loaded as well as the Polymer library. We also load the basic Web Components used by almost all applications; the Corporate Header, the Main Navigation, the Main Content element and the Corporate Footer. This doesn't work very well when an application is about to be initiated further on.
Wait for the application!
All you have to do to make the Corporate UI work in your application is to avoid loading the basic components right away and instead include them after your application is completely initiated. You simply load the Corporate UI with the ?preload=false parameter as you would load it in any HTML page header.
Then, after your app has started, you can easily include the basic components by using the window.CorporateUi.baseComponents(); method. This will then load the components listed above and you're now ready to use those custom elements from wherever you need to apply them. In Angular, you could do it this way:
So, that is basically that you'll need to know. There might of course be additional questions that you'll have and they will be swiftly answered in the corporate-ui.slack.com channel, or perhaps not as quick, using standard e-mail.
Next step: Developing your application
Now you're good to go and you'll have pretty much everything you'll need at your disposal. Developing your app using additional Web Component from the library or design your user interface with the Scania standard CSS classes from Scania Bootstrap.


Pop-ups on hover with format
Configure pop-up windows on hover with format.
The attribute format accepts a string as D3 format (see https://github.com/d3/d3-format) or a function as custom format.
Configure pop-up windows on hover with format.
The attribute format accepts a string as D3 format (see https://github.com/d3/d3-format) or a function as custom format.


Just 25 minutes from Barcelona and 35 minutes from the El Prat airport, the Campus La Mola is set in the heart of the Sant Llorenç del Munt nature reserve. The site has 185 bedrooms and 22 fully equipped meeting rooms all bathed in daylight with a calming view over the surrounding park. For your celebrations and exclusive events, the Mas Bonvilar, a traditional 17th Century manor house, has been turned into a 450 sq.m. reception hall that can accommodate up to 700 guests.
Camí dels Plans de Can Bonvilar, S/N, 08227 Terrassa, Barcelona, Spain
Phone: +34 936 28 96 20
More infoAccommodation is available in single rooms only.
| PRICE per night incl. VAT And breakfast | Price per 4 nights | |
|---|---|---|
| Accommodation in single room | 132 EUR | 528 EUR |
Please, confirm in Eventbrite registration. Single room is the only option. We strongly recommend all participants to stay at the venue.
The accommodation has to be paid to the venue before 2nd November 2020.
Free cancellation is available up to 1 month prior to the event (by 9 October), by contacting us at<EMAIL_ADDRESS>After this deadline, the payment can not be refunded.
In case of no show or after the free cancellation period the invoice will be transferred to you and you will be responsible for payment.
The venue does not provide childcare services. In case you want to bring your child with an accompanying person, please let us know<EMAIL_ADDRESS>Camí dels Plans de Can Bonvilar, 8227 Terrassa, Barcelona
32 min from Barcelona
35 min from Barcelona-Sants Station.
35 min from Barcelona-El Prat Airport


Is it the right by fifa to take Messi out of the Top 3 players 2018?
Messi skuld be among them
Mbappe skuld be amoung them too
Haha that must be a joke, Messi is the best
I think is time to give someone else chance to win beside messi and ronaldo :)


Dressed all in rubber."
It stretches. It molds to the body. It's shiny. It's slick. It's cold. It's warm. It makes funny noises. It smells... well, rubbery. Rubber, and its man-made polymer cousins, latex and PVC, can be very interesting to the senses, and many people find that sexy.
And sometimes, people go a little overboard with it. This trope is when someone's attire is mostly rubber, latex or PVC. It can be a fashion statement (especially in Hollywood circles), it can be a power uniform, and it can subliminally say something different altogether. It is usually black in most cases, though white (especially among "naughty nurses") and red (among "Horny Devils") are also common. This is mostly a bondage/fetish/fashion trope.
One thing that is often overlooked in fiction is that it is very prone to wardrobe malfunctions as any tear or hole can cause the entire garment to split completely as it is usually worn under tension against the body.
See also Latex Space Suit and some Spy Catsuits. Not to be confused with People in Rubber Suits. Compare its sister trope, Hell-Bent for Leather.
Examples:
- In Medabots, the Rubber Robo gang was named for their rubber suits. Played more for comedy than anything else.
- Team Rocket has donned rubber suits on occasion to protect themselves from Pikachu's electrical attacks.
- Katsuya Shirogane in Speed Grapher used a fullbody rubber suit when he was killing people. Well, it's more like his body became a rubber gimp suit. Euphoric powers are weird (and not very scientific).
- Cardcaptor Sakura: Tomoyo made Sakura a rubber catsuit — ahem, a maid -uniform-like dress with a cat theme, made of rubber for electricity resistance, when facing The Thunder. It's become quite popular.
- While Spider-Man typically doesn't dress like this, he does have a padded, all-rubber variant of his costume that he often uses when dealing with Electro and other villains with electrical powers.
- The Harkkonen clan from David Lynch's Dune. Famously, Sting turns up in a rubber g-string in one scene for no explainable reason.note
- Latex bodysuits were implemented by the killer in Se7en for Lust.
- Batman's suits in the Tim Burton and Christopher Nolan incarnations is made of a black polymer.
- In Batman Forever, Dr. Chase Meridian mentioned her attraction to black rubber while trying to grope Batman. Batman's response? "Try a fireman. Less to take off."
- In Batman Returns, Catwoman's costume, as far as the story, is PVC, when in reality, it's latex.
- Trinity in The Matrix also wears a PVC outfit. Her outfit in The Matrix Reloaded goes one step further by adding a coat of the same material.
- The slasher films Blackout, Zipperface and Sandy Hook Lingerie Party Massacre all featured homicidal maniacs in gimp suits.
- Looney Tunes: Back in Action: Dusty Tails wears one when she dresses in spy gear.
Daffy: How many galoshes died to make that little number?
- A common fashion in the Alternate Timeline England of the Slave World novels.
- Layla the Latex Lady, from Johannes Cabal the Necromancer, takes this a lot farther. She's a literal incarnation of illicit sexuality, and she definitely hasn't got anything else on beneath the latex catsuit. Including skin, or flesh.
- Exotic Detective Sam Jones in the book The Black Rubber Dress is all in rubber at a business function full of investment bankers. Part of the reason for the function is to unveil her new sculpture in the bank foyer.
- A not uncommon outfit among women of the Raith family in the Dresden Files series. Justine in particular is known to favor one since she can't actually touch her lover Thomas without burning him.
- Razor Ramon HG, aka Hard Gay, a Japanese TV personality and wrestling star, dresses in a Camp Gay black PVC biker cap, vest and hotpants and black leather boots.
- He hilariously went over the line into squicksville the time he pulled a PVC facemask out of the front of his PVC hotpants for someone else to wear...
- Astronema in Power Rangers in Space wore PVC/Rubber for the first half of the series.
- CSI has a serial killer that dressed in a full body gimp suit (purchased from a local BDSM shop) to avoid leaving traces. That was probably the least strange thing about him.
- In the Doctor Who serial The Krotons, Zoe's costume consists of a very short PVC skirt and matching jacket.
- The Voord in "The Keys of Marinus" are an Uncanny Valley example of this. They wear suits to swim in Marinus's powerful acid oceans, which appear to have fused with their actual bodies. Barbara comes across a Voord suit on the beach with a small tear in it and only small remains of the creature inside, which has been totally dissolved.
- The aptly named Rubber Man from American Horror Story: Murder House wears a full body black latex BDSM suit with concealing mask to commit his most heinous acts.
- In real life, skin-tight rubber fetish suits are quite fragile and cling to the wearer's body, impeding movement. Garments less suited to running around and committing acts of violence would be hard to invent.
- The Trope Namer, Doctor Steel, dressed in a PVC labcoat and gloves (and sang about it!), and also had a black PVC steampunk attire◊. "His nurses" also often dressed in PVC uniforms.
- The video for "Just a Little" by Liberty X has the girls in PVC catsuits.
- Britney Spears wore a red PVC catsuit for the video of "Oops I Did It Again"
- Madonna and her models wear a LOT of it in the video for "Human Nature." Then-35-year-old Madonna even rocks a PVC bikini.
- Grausame Töchter basically live this trope. Their stage show contains plently of latex. Their album arts have plently of latex. They even have songs just about Latex.
- Nachtmahr are another band that makes use of Latex. Moments include the Nachtmahr girls dressing up in Latex for their stage shows.
- Miley Cyrus paid tribute to the Britney Spears example listed above in her "Mother's Daughter" music video.
- Gummi by Lindemann is about rubber fetishes
- The Legend of Zelda: Breath of the Wild lets Link wear a fish-themed Rubber Armor set. It's designed to give him resistance to electric damage.
- Female Black Ops agents in Half-Life are dressed in full-body rubber catsuits, which help their agility and speed in evading Gordon Freeman.
- Rubber suits are Mistress Sixx's most prominent kink in Collar 6.
- Johnathan and Caley are wearing full rubber suits at the start of Chapter 13 of Demon Candy: Parallel.
- Common in Sunstone due to the BDSM theme of the comic. Ally in particular has an entire wardrobe composed mostly of outfits like this, made by her friend Alan.
- There are, of course, actual latex/rubber/PVC fetishes.
- Gimps (male BDSM rubber/leather slaves) wear suits and masks of rubber or latex.
- Also used in BDSM as part of the sensory deprivation fetish. Less common than blindfolds but more common than noise-canceling headphones.
- "Latex paint" is available through fetish outlets that can be applied directly to the skin and peeled away easily, similar to the makeup used in movies. While useful for filling in gaps in an outfit, there are areas of the body where application is not recommended.
- Latex is also a popular garment choice among dominatrices, professional and otherwise.
- Latex is particularly popular among goths, with one goth sterotype even existing for those who love Latex, maybe a little too much.
- Latex dresses seem to be becoming rather "hip" among the Hollywood elite lately. Comedian Margaret Cho, who has claimed to be in the BDSM subculture, has been known to wear latex dresses to public occasions.


F-Twelve requires no configuration, just include the JS file and CSS file. Press and hold
F
+1
+2
in that order to display the collapsed tab below. All console
output including regular console.log
calls will be displayed there.
Optionally control the tool using JS via the API. The API is available on the global fTwelve
object.
Attach F-Twelve to the DOM and display a collapsed tab at the bottom of the screen.
fTwelve.show();
Remove F-Twelve from the DOM.
fTwelve.hide();
Completely detach and disable the tool including the keyboard shortcut and show method.
fTwelve.disable();
Enable the tool, this will also display it unless show is false.
fTwelve.enable({show: true});
Set a callback when showing the tool. Useful, for example, to use F-Twelve’s "debug hotkey" to enable additional "debug mode" features in the consuming application.
fTwelve.onShow(() => {
alert("Showing F-Twelve");
});
Set a callback when removing from the DOM. Similarly as onShow, this can be used to disable the consuming application’s "debug mode" via keyboard shortcut.
fTwelve.onHide(() => {
alert("Hiding F-Twelve");
});


My name is Nicole Gatmaitan. I recently graduated Southern Methodist University with a degree in Computer Science. Something that fascinates me is how much our lives revolve around technology. However, I know that not everyone is tech-savvy and one of the worst parts about technology is when it breaks or doesn't do what it's supposed to do. I am very interested in UI/UX design and I want to improve the ways that people interact with technology, even by just a little bit. Because of my background, I know all about object-oriented and modular programming using different languages including C++, Java, Python amongst others. I would like to be more proficient in the backend side of development so that I can become a full-stack developer. I enjoy doing whatever most people in their early twenties do and spend the little free time that I have either watching Netflix or being on tumblr. I like making things look asthetically pleasing. I never really understood the whole "being too focused on what you're doing that you just forget to eat" thing until I started designing. I try to surround myself with people that make me happy because I think one of the best moments in life is when after I hang out with my friends and think back about what we did, I realize how much I appreciate everyone in my life.
“Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto numquam, totam iusto officia earum perferendis, culpa ad atque eveniet praesentium nobis expedita similique beatae tenetur. Distinctio vel tenetur, id cum.”
“Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto numquam, totam iusto officia earum perferendis, culpa ad atque eveniet praesentium nobis expedita similique beatae tenetur. Distinctio vel tenetur, id cum.”
“Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto numquam, totam iusto officia earum perferendis, culpa ad atque eveniet praesentium nobis expedita similique beatae tenetur. Distinctio vel tenetur, id cum.”
“Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto numquam, totam iusto officia earum perferendis, culpa ad atque eveniet praesentium nobis expedita similique beatae tenetur. Distinctio vel tenetur, id cum.”


--- layout: default --- {% include hexagons.html %} {% include hero.html %}
This year we are happy to announce we will be providing free round trip buses to the event from both New York and Boston. Bus tickets will require a deposit of $10 that will be reimbursed once you board the bus. More details on the timing and logistics are on the sign up page once you RSVP for the event on our dashboard. Tickets are limited so secure yours today!
{{ item.answer | markdownify }}
Have a question that wasn't answered here? Email us at hackher413@gmail.com!


Welcome To Gamefy
Where video games matter
Gamefy is covering monthly highlights for upcoming games. Interesting titles will be highlighted and ready for you to review them. Aside of highlights, Gamefy is doing reviews & previews on video games and much more!
Montly Highlights
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut quam arcu. Proin nunc.
Only The Best
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut quam arcu. Proin nunc.
News
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut quam arcu. Proin nunc.


I have extensive knowledge in different programming languages: Php, Asp.Net, Javascript, e.t.c.
I am a proficient programmer who is able to write in languages like JavaScript, Java, Php, Asp.Net, C#.Net e.t.c.
I can build WordPress cms sites as well as build custom cms using raw Php or .Net depending on the client needs
Download CvStudied free courses on advanced web development techniques
Disciplined in Computer Science
ASP.Net & Visual Basic
Software Developer
Served My Country as a Computer Instructor
Web Developer & Database Admin
Photography
Photography
Photography
Photography
Photography
Photography


IPython Directive¶
(copied from the matplotlib demo)
The IPython directive is a stateful IPython shell for embedding in
Sphinx documents. It knows about standard IPython prompts, and
extracts the input and output lines. These prompts will be renumbered
starting at 1
. The inputs will be fed to an embedded IPython
interpreter and the outputs from that interpreter will be inserted as
well. For example, code blocks like the following:
.. ipython::
In [136]: x = 2
In [137]: x**3
Out[137]: 8
will be rendered as
Note
This tutorial should be read side-by-side with the Sphinx source for this document (see Sphinx source for this tutorial) because otherwise you will see only the rendered output and not the code that generated it. Excepting the example above, we will not in general be showing the literal reST in this document that generates the rendered output.
The state from previous sessions is stored, and standard error is trapped. At doc build time, IPython’s output and std err will be inserted, and prompts will be renumbered. So the prompt below should be renumbered in the rendered docs, and pick up where the block above left off.
The embedded interpreter supports some limited markup. For example, you can put comments in your IPython sessions, which are reported verbatim. There are some handy “pseudo-decorators” that let you doctest the output. The inputs are fed to an embedded IPython session and the outputs from the IPython session are inserted into your doc. If the output in your doc and in the IPython session don’t match on a doctest assertion, an error will be raised
Multi-line input is supported.
You can do doctesting on multi-line output as well. Just be careful when using non-deterministic inputs like random numbers in the IPython directive, because your inputs are run through a live interpreter, so if you are doctesting random output you will get an error. Here we “seed” the random number generator for deterministic output, and we suppress the seed line so it doesn’t show up in the rendered output
Another demonstration of multi-line input and output
Most of the “pseudo-decorators” can be used as options to IPython
mode. For example, to setup matplotlib
but suppress the output,
you can do. This will not show up in the rendered docs, but the commands
will be executed in the embedded interpreter and subsequent line numbers
will be incremented to reflect the inputs:
.. ipython::
:suppress:
In [1]: import matplotlib.pyplot as plt
In [2]: plt.ion()
Likewise, you can set the :doctest:
or :verbatim:
Sphinx options to
apply these settings to the entire block. For example,
You can create one or more plots and insert them with the
@savefig
decorator.
In a subsequent session, we can update the current figure with some text, and then resave
Pseudo-Decorators¶
Here are the supported decorators, and any optional arguments they
take. Some of the decorators can be used as options to the entire
block (eg verbatim
and suppress
), and some only apply to the
line just below them (eg savefig
).
@suppress
execute the IPython input block, but suppress the input and output block from the rendered output. Also, can be applied to the entire..ipython
block as a directive option with:suppress:
.
@verbatim
insert the input and output block in verbatim, but auto-increment the line numbers. Internally, the interpreter will be fed an empty string, so it is a no-op that keeps line numbering consistent. Also, can be applied to the entire..ipython
block as a directive option with:verbatim:
.
@savefig OUTFILE [IMAGE_OPTIONS]
save the figure to the static directory and insert it into the document, possibly binding it into a minipage and/or putting code/figure label/references to associate the code and the figure. Takes args to pass to the image directive (scale, width, etc can be kwargs); see image options for details.
@doctest
Compare the pasted in output in the IPython block with the output generated at doc build time, and raise errors if they don’t match. Also, can be applied to the entire..ipython
block as a directive option with:doctest:
.
Enabling IPython Directive¶
To enable the IPython directive(s) in your Sphinx documentation,
you’ll need to have IPython
installed and include the following
in your Sphinx configuration (conf.py
):
extensions = [
'IPython.sphinxext.ipython_directive',
'IPython.sphinxext.ipython_console_highlighting',
...
]
Sphinx source for this tutorial¶
.. _ipython_directive:
=================
IPython Directive
=================
(copied from the `matplotlib demo <https://github.com/matplotlib/sampledoc>`_)
The IPython directive is a stateful IPython shell for embedding in
Sphinx documents. It knows about standard IPython prompts, and
extracts the input and output lines. These prompts will be renumbered
starting at ``1``. The inputs will be fed to an embedded IPython
interpreter and the outputs from that interpreter will be inserted as
well. For example, code blocks like the following::
.. ipython::
In [136]: x = 2
In [137]: x**3
Out[137]: 8
will be rendered as
.. ipython::
In [136]: x = 2
In [137]: x**3
Out[137]: 8
.. note::
This tutorial should be read side-by-side with the Sphinx source
for this document (see :ref:`ipython_literal`) because otherwise
you will see only the rendered output and not the code that
generated it. Excepting the example above, we will not in general
be showing the literal reST in this document that generates the
rendered output.
The state from previous sessions is stored, and standard error is
trapped. At doc build time, IPython's output and std err will be
inserted, and prompts will be renumbered. So the prompt below should
be renumbered in the rendered docs, and pick up where the block above
left off.
.. ipython::
In [1]: z = x * 3 # x is recalled from previous block
In [2]: z
In [3]: print(z)
In [4]: q = z[) # this is a syntax error -- we trap exceptions
The embedded interpreter supports some limited markup. For example,
you can put comments in your IPython sessions, which are reported
verbatim. There are some handy "pseudo-decorators" that let you
doctest the output. The inputs are fed to an embedded IPython
session and the outputs from the IPython session are inserted into
your doc. If the output in your doc and in the IPython session don't
match on a doctest assertion, an error will be raised
.. ipython::
In [1]: x = 'hello world'
# this will raise an error if the IPython output is different
@doctest
In [2]: x.upper()
Out[2]: 'HELLO WORLD'
# some readline features cannot be supported, so we allow
# "verbatim" blocks, which are dumped in verbatim except prompts
# are continuously numbered
@verbatim
In [3]: x.st<TAB>
x.startswith x.strip
Multi-line input is supported.
.. ipython::
In [1]: url = ('https://example.com?s=CROX&d=9&e=22&f=2009&'
...: 'g=d&a=1&br=8&c=2006&ignore=.csv')
...:
In [2]: print(url.split('&'))
In [3]: import urllib
You can do doctesting on multi-line output as well. Just be careful
when using non-deterministic inputs like random numbers in the IPython
directive, because your inputs are run through a live interpreter, so
if you are doctesting random output you will get an error. Here we
"seed" the random number generator for deterministic output, and we
suppress the seed line so it doesn't show up in the rendered output
.. ipython::
In [1]: import numpy.random
@suppress
In [2]: numpy.random.seed(2358)
@doctest
In [3]: numpy.random.rand(10, 2)
Out[3]:
array([[0.64524308, 0.59943846],
[0.47102322, 0.8715456 ],
[0.29370834, 0.74776844],
[0.99539577, 0.1313423 ],
[0.16250302, 0.21103583],
[0.81626524, 0.1312433 ],
[0.67338089, 0.72302393],
[0.7566368 , 0.07033696],
[0.22591016, 0.77731835],
[0.0072729 , 0.34273127]])
Another demonstration of multi-line input and output
.. ipython::
In [1]: print(x)
In [2]: for i in range(10):
...: print(i)
...:
Most of the "pseudo-decorators" can be used as options to IPython
mode. For example, to setup ``matplotlib`` but suppress the output,
you can do. This will not show up in the rendered docs, but the commands
will be executed in the embedded interpreter and subsequent line numbers
will be incremented to reflect the inputs::
.. ipython::
:suppress:
In [1]: import matplotlib.pyplot as plt
In [2]: plt.ion()
.. ipython::
:suppress:
In [1]: import matplotlib.pyplot as plt
In [2]: plt.ion()
Likewise, you can set the ``:doctest:`` or ``:verbatim:`` Sphinx options to
apply these settings to the entire block. For example,
.. ipython::
:verbatim:
In [1]: cd mpl/examples/
/home/jdhunter/mpl/examples
In [2]: pwd
Out[2]: '/home/jdhunter/mpl/examples'
In [3]: cd mpl/examples/<TAB>
mpl/examples/animation/ mpl/examples/misc/
mpl/examples/api/ mpl/examples/mplot3d/
mpl/examples/axes_grid/ mpl/examples/pylab_examples/
mpl/examples/event_handling/ mpl/examples/widgets
In [4]: cd mpl/examples/widgets/
/home/jdhunter/mpl/examples/widgets
In [5]: !wc *
2 12 77 README.txt
40 97 884 buttons.py
26 90 712 check_buttons.py
19 52 416 cursor.py
180 404 4882 menu.py
16 45 337 multicursor.py
36 106 916 radio_buttons.py
48 226 2082 rectangle_selector.py
43 118 1063 slider_demo.py
40 124 1088 span_selector.py
450 1274 12457 total
You can create one or more plots and insert them with the
``@savefig`` decorator.
.. ipython::
@savefig plot_simple.png width=4in
In [1]: plt.plot([1,2,3]);
# use a semicolon to suppress the output
@savefig hist_simple.png width=4in
In [2]: plt.hist(np.random.randn(10000), 100);
In a subsequent session, we can update the current figure with some
text, and then resave
.. ipython::
In [1]: plt.ylabel('number')
In [2]: plt.title('normal distribution')
@savefig hist_with_text.png width=4in align=center
In [3]: plt.grid(True)
Pseudo-Decorators
=================
Here are the supported decorators, and any optional arguments they
take. Some of the decorators can be used as options to the entire
block (eg ``verbatim`` and ``suppress``), and some only apply to the
line just below them (eg ``savefig``).
``@suppress``
execute the IPython input block, but suppress the input and output
block from the rendered output. Also, can be applied to the entire
``..ipython`` block as a directive option with ``:suppress:``.
``@verbatim``
insert the input and output block in verbatim, but auto-increment
the line numbers. Internally, the interpreter will be fed an empty
string, so it is a no-op that keeps line numbering consistent.
Also, can be applied to the entire ``..ipython`` block as a
directive option with ``:verbatim:``.
``@savefig OUTFILE [IMAGE_OPTIONS]``
save the figure to the static directory and insert it into the
document, possibly binding it into a minipage and/or putting
code/figure label/references to associate the code and the
figure. Takes args to pass to the image directive (*scale*,
*width*, etc can be kwargs); see `image options
<http://docutils.sourceforge.net/docs/ref/rst/directives.html#image>`_
for details.
``@doctest``
Compare the pasted in output in the IPython block with the output
generated at doc build time, and raise errors if they don’t
match. Also, can be applied to the entire ``..ipython`` block as a
directive option with ``:doctest:``.
Enabling IPython Directive
==========================
To enable the IPython directive(s) in your Sphinx documentation,
you'll need to have ``IPython`` installed and include the following
in your Sphinx configuration (``conf.py``):
.. code-block:: python
extensions = [
'IPython.sphinxext.ipython_directive',
'IPython.sphinxext.ipython_console_highlighting',
...
]
.. _ipython_literal:
Sphinx source for this tutorial
===============================
.. literalinclude:: ipython_directive.rst


NAME
ROLE
Duties
blah blah blah
| Team: | |
| Team Lead: | body |
| Manager: | body |
| Phone No: | body |
| Extension: | body |
| Location: | body |
| Regions: | body |
| Office Hours: | body |
{% extends "bootstrap/base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block styles %} {{super()}} {% endblock %} {% block navbar %} {{nav.top.render()}} {% endblock %} {% block content %}
blah blah blah
| Team: | |
| Team Lead: | body |
| Manager: | body |
| Phone No: | body |
| Extension: | body |
| Location: | body |
| Regions: | body |
| Office Hours: | body |


--- layout: post date: 2009-07-21 time: "10:00:00" authors: ["Greg Wilson"] title: Elsevier's Future, Version 0.1 tags: ["Noticed", "Opinion"] ---
Elsevier (a big scientific publisher) have unveiled their guess of what the future of scientific publishing looks like. Tabs? Got 'em. Audio? Yup. RSS feeds for updates, corrections, and comments? The raw data, complete with provenance information so other researchers can try to reproduce the results? Still waiting...