- Christopher Downer: Designing Custom Interfaces, slides missing
- Katrin Apel: Mobile Backends as a Service - Ready for Production?, slides
- Max Seelemann: TextKit For The Rest Of Us, slides
- David Rönnqvist: OpenGL (ES) demystified, slides missing
- Nick Lockwood: Image Performance, slides
- Eric Allam: Beyond the Basics - Building Better Transitions on iOS 7, slides
- Sally Shepard: accessibility & voice over, slides missing
- [Rachel Andrew](https://twitter.com/rachelandrew
// | |
// RxAlamofireObjMapper.swift | |
// RXDemo | |
// | |
// Created by Yaqing Wang on 10/30/15. | |
// Copyright © 2015 billwang1990.github.io. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |
// GSON can parse the data. | |
// | |
// Deserialization: | |
// Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects. | |
// To work around this, use the ExclusionStrategy below or downgrade to 1.7.1 | |
// See more here: https://code.google.com/p/google-gson/issues/detail?id=440 | |
// | |
// Serialization: | |
// <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control | |
// access to the actual data instead of storing them in fields and it is therefore them we need to register a |
@interface PSPDFWindow () | |
@property (nonatomic, strong) UIViewController *realRootViewController; | |
@end | |
@implementation PSPDFWindow | |
- (void)setHidden:(BOOL)hidden { | |
[super setHidden:hidden]; | |
// Workaround for rdar://19592583 |
require 'RMagick' | |
require 'capybara' | |
require 'launchy' | |
module Capybara::Recording | |
def start_recording | |
system "rm -f tmp/*" | |
end | |
def save_recording |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
Changes:
-
this version includes backport of Greg Price's patch for speedup startup http://bugs.ruby-lang.org/issues/7158 .
ruby-core prefers his way to do thing, so that I abandon cached-lp and sorted-lf patches of mine.
-
this version integrates 'array as queue' patch, which improves performance when push/shift pattern is heavily used on Array.
This patch is accepted into trunk for Ruby 2.0 and last possible bug is found by Yui Naruse. It is used in production* for a couple of months without issues even with this bug.
Try out the fast require patch from http://bugs.ruby-lang.org/issues/7158 on Ruby 1.9.3-p327
- rbenv
- ruby-build
RE: teampoltergeist/poltergeist#44
Use Rack::SimpleEndpoint
to prevent Poltergeist/PhantomJS from crashing on TTF fonts.
In config/environments/test.rb
, add
require 'rack/contrib/simple_endpoint'
config.middleware.insert_after Rack::Runtime, Rack::SimpleEndpoint, /\.ttf$/ do |req, res, match|
res.status = '403'
"I will not serve TTF fonts in test mode."
# Given a controller in need of refactoring into multiple controllers, how | |
# can I redirect to new controller actions based upon a feature flag? | |
# | |
# The current code "works" but doesn't exercise the controller action. | |
# | |
# Rails 2.3 or 3.0 methods accepted | |
class BetterController | |
def overview | |
# .. a small amount of auth/permissions code |