Slide 1

Slide 1 text

Free The Enterprise With Ruby & Master Your Own Domain Ken Collins metaskills.net

Slide 2

Slide 2 text

Congratulations! e simple fact that you are sitting here listening to me, means you've made a glorious contribution to Science! Tragic, but informative. $BWF+PIOTPO

Slide 3

Slide 3 text

Our Time Together

Slide 4

Slide 4 text

Our Time Together

Slide 5

Slide 5 text

Our Time Together

Slide 6

Slide 6 text

Our Time Together my projects

Slide 7

Slide 7 text

Our Time Together my projects oss windows

Slide 8

Slide 8 text

Who Am I Again? ?

Slide 9

Slide 9 text

Who Am I Again? @MetaSkills

Slide 10

Slide 10 text

Who Am I Again? @MetaSkills

Slide 11

Slide 11 text

Who Am I Again? @MetaSkills

Slide 12

Slide 12 text

Who Am I Again? @MetaSkills

Slide 13

Slide 13 text

Who Am I Again? @MetaSkills ...

Slide 14

Slide 14 text

Sr. Software Engineer @ Decisiv

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

+BWB4DSJQU

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Blog @ MetaSkills.net

Slide 19

Slide 19 text

Freetime @ HomeMarks.com

Slide 20

Slide 20 text

Advocate @ 757rb.org

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Dan Pink -On The Surprising Science Of Motivation TED Talk http:/ /is.gd/At2iVU RSA Animate http:/ /is.gd/SpuTbN

Slide 24

Slide 24 text

Autonomy 5IF VSHF UP EJSFDU PVS PXO MJWFT

Slide 25

Slide 25 text

Mastery 5IF EFTJSF UP HFU CFUUFS BU TPNFUIJOH UIBU NBUUFST

Slide 26

Slide 26 text

Purpose 5IF ZFBSOJOH UP EP XIBU XF EP JO UIF TFSWJDF PG TPNFUIJOH MBSHFS UIBO PVSTFMWFT

Slide 27

Slide 27 text

Autonomy Mastery Purpose

Slide 28

Slide 28 text

Great! Sign Me Up.

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

The Absolute Basics (Github) You (yes, you!) should contribute to open source http:/ /thechangelog.com/post/5367356233/

Slide 31

Slide 31 text

The Absolute Basics (Github) You (yes, you!) should contribute to open source http:/ /thechangelog.com/post/5367356233/ Forking A Project

Slide 32

Slide 32 text

The Absolute Basics (Github) You (yes, you!) should contribute to open source http:/ /thechangelog.com/post/5367356233/ Forking A Project Track Upstream Changes

Slide 33

Slide 33 text

The Absolute Basics (Github) You (yes, you!) should contribute to open source http:/ /thechangelog.com/post/5367356233/ Forking A Project Track Upstream Changes Never Work On Master!

Slide 34

Slide 34 text

The Absolute Basics (Github) You (yes, you!) should contribute to open source http:/ /thechangelog.com/post/5367356233/ Forking A Project Track Upstream Changes Never Work On Master! Remote Tracking Branches

Slide 35

Slide 35 text

The Absolute Basics (Github) You (yes, you!) should contribute to open source http:/ /thechangelog.com/post/5367356233/ Forking A Project Track Upstream Changes Never Work On Master! Remote Tracking Branches Pull Requests

Slide 36

Slide 36 text

OSS For The Tenderfoot

Slide 37

Slide 37 text

OSS For The Tenderfoot Read The Manual

Slide 38

Slide 38 text

OSS For The Tenderfoot Read The Manual Look For Support Channels

Slide 39

Slide 39 text

OSS For The Tenderfoot Read The Manual Look For Support Channels Do Not Assume Critical Bugs

Slide 40

Slide 40 text

OSS For The Tenderfoot Read The Manual Look For Support Channels Do Not Assume Critical Bugs Include Relevant Information

Slide 41

Slide 41 text

OSS For The Tenderfoot Read The Manual Look For Support Channels Do Not Assume Critical Bugs Include Relevant Information We Like To Mentor!

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

my projects

Slide 44

Slide 44 text

ActionMailer ActionPack ActiveModel ActiveRecord ActiveResource ActiveSupport

Slide 45

Slide 45 text

ActionMailer ActionPack ActiveModel ActiveRecord ActiveResource ActiveSupport

Slide 46

Slide 46 text

Powerful Models class User < ActiveRecord::Base end user = User.find(10) user.username # => 'metaskills' user.email # => '[email protected]'

Slide 47

Slide 47 text

Associations class Client < ActiveRecord::Base has_one :address has_many :orders end class Address < ActiveRecord::Base belongs_to :client end class Order < ActiveRecord::Base belongs_to :client end

Slide 48

Slide 48 text

Validations class Person < ActiveRecord::Base validates_presence_of :name end p = Person.new p.valid? # => false p.errors # => {:name=>["can't be blank"]} p.save # => false p.save! ActiveRecord::RecordInvalid

Slide 49

Slide 49 text

Dirty Attributes person = Person.find_by_name('Uncle Bob') person.changed? # => false person.name = 'Bob' person.changed? # => true person.name_changed? # => true person.name_was # => 'Uncle Bob' person.name_change # => ['Uncle Bob', 'Bob'] person.name = 'Bill' person.name_change # => ['Uncle Bob', 'Bill'] person.save person.changed? # => false person.name_changed? # => false

Slide 50

Slide 50 text

Migrations class AddReceiveNewsToUsers < ActiveRecord::Migration def self.up change_table :users do |t| t.boolean :receive_newsletter, :default => false end User.update_all :receive_newsletter => true end def self.down remove_column :users, :receive_newsletter end end

Slide 51

Slide 51 text

And The List Goes On...

Slide 52

Slide 52 text

And The List Goes On... Identity Map

Slide 53

Slide 53 text

And The List Goes On... Identity Map Prepared Statements

Slide 54

Slide 54 text

And The List Goes On... Identity Map Prepared Statements Etc, etc, etc...

Slide 55

Slide 55 text

ActiveRecord SQL Server Adapter

Slide 56

Slide 56 text

SQL Server Adapter

Slide 57

Slide 57 text

SQL Server Adapter Maintainer For 4 Years

Slide 58

Slide 58 text

SQL Server Adapter Maintainer For 4 Years Will Talk About 3.1.x

Slide 59

Slide 59 text

SQL Server Adapter Maintainer For 4 Years Will Talk About 3.1.x Use Rational Version Policy

Slide 60

Slide 60 text

SQL Server Adapter Maintainer For 4 Years Will Talk About 3.1.x Use Rational Version Policy 2005, 2008, 2011 & Azure

Slide 61

Slide 61 text

SQL Server Adapter Maintainer For 4 Years Will Talk About 3.1.x Use Rational Version Policy 2005, 2008, 2011 & Azure Includes ARel Visitor

Slide 62

Slide 62 text

SQL Server Adapter Maintainer For 4 Years Will Talk About 3.1.x Use Rational Version Policy 2005, 2008, 2011 & Azure Includes ARel Visitor DBLIB, ODBC Connection Mode

Slide 63

Slide 63 text

Key Adapter Features

Slide 64

Slide 64 text

Key Adapter Features Stored Procedures

Slide 65

Slide 65 text

Key Adapter Features Stored Procedures Views (Schema Reflection)

Slide 66

Slide 66 text

Key Adapter Features Stored Procedures Views (Schema Reflection) Different Schemas

Slide 67

Slide 67 text

Key Adapter Features Stored Procedures Views (Schema Reflection) Different Schemas Auto Reconnects

Slide 68

Slide 68 text

Key Adapter Features Stored Procedures Views (Schema Reflection) Different Schemas Auto Reconnects SQL Azure

Slide 69

Slide 69 text

Key Adapter Features Stored Procedures Views (Schema Reflection) Different Schemas Auto Reconnects SQL Azure http:/ /is.gd/UDdVzT

Slide 70

Slide 70 text

Prepared Statements

Slide 71

Slide 71 text

Prepared Statements SELECT TOP(1) * FROM [posts] WHERE [id] = 1 SELECT TOP(1) * FROM [posts] WHERE [id] = 2 SELECT TOP(1) * FROM [posts] WHERE [id] = 3

Slide 72

Slide 72 text

Prepared Statements SELECT TOP(1) * FROM [posts] WHERE [id] = 1 SELECT TOP(1) * FROM [posts] WHERE [id] = 2 SELECT TOP(1) * FROM [posts] WHERE [id] = 3 EXEC sp_executesql N'SELECT TOP(1) * FROM [posts] WHERE [id] = @0', N'@0 int', @0 = 1 EXEC sp_executesql N'SELECT TOP(1) * FROM [posts] WHERE [id] = @0', N'@0 int', @0 = 2 EXEC sp_executesql N'SELECT TOP(1) * FROM [posts] WHERE [id] = @0', N'@0 int', @0 = 3

Slide 73

Slide 73 text

Prepared Statements http:/ /www.engineyard.com/blog/2011/sql-server-10xs-faster-with-rails-3-1/

Slide 74

Slide 74 text

TinyTDS Ruby C Extension

Slide 75

Slide 75 text

TinyTDS

Slide 76

Slide 76 text

TinyTDS Wraps FreeTDS’s

Slide 77

Slide 77 text

TinyTDS Wraps FreeTDS’s Uses DBLIB Interface

Slide 78

Slide 78 text

TinyTDS Wraps FreeTDS’s Uses DBLIB Interface Converts All Data Types To Ruby Primitives

Slide 79

Slide 79 text

TinyTDS Wraps FreeTDS’s Uses DBLIB Interface Converts All Data Types To Ruby Primitives Proper Encoding Support

Slide 80

Slide 80 text

TinyTDS Wraps FreeTDS’s Uses DBLIB Interface Converts All Data Types To Ruby Primitives Proper Encoding Support Highly Tested!

Slide 81

Slide 81 text

TinyTDS Wraps FreeTDS’s Uses DBLIB Interface Converts All Data Types To Ruby Primitives Proper Encoding Support Highly Tested! From 2000 to Azure

Slide 82

Slide 82 text

Modern SQL Server & Rails http:/ /www.engineyard.com/blog/2011/modern-sql-server-rails/

Slide 83

Slide 83 text

oss windows

Slide 84

Slide 84 text

oss windows

Slide 85

Slide 85 text

http:/ /rubyheroes.com/ Luis Lavena @luislavena Wayne E Seguin @wayneeseguin

Slide 86

Slide 86 text

Rails Installer

Slide 87

Slide 87 text

Rails Installer

Slide 88

Slide 88 text

Rails Installer Ruby 1.8.7

Slide 89

Slide 89 text

Rails Installer Ruby 1.8.7 Git 1.7 .3

Slide 90

Slide 90 text

Rails Installer Ruby 1.8.7 Git 1.7 .3 DevKit

Slide 91

Slide 91 text

Rails Installer Ruby 1.8.7 Git 1.7 .3 DevKit Rails 3.0, SQLite3, TinyTDS

Slide 92

Slide 92 text

Rails Installer Ruby 1.8.7 Git 1.7 .3 DevKit Rails 3.0, SQLite3, TinyTDS Beta 2.0 Version

Slide 93

Slide 93 text

Rails Installer Ruby 1.8.7 Git 1.7 .3 DevKit Rails 3.0, SQLite3, TinyTDS Beta 2.0 Version Ruby 1.9 & Rails 3.1

Slide 94

Slide 94 text

(PJOH /BUJWF

Slide 95

Slide 95 text

Going Native Rake Compiler https:/ /github.com/luislavena/rake-compiler

Slide 96

Slide 96 text

Going Native Rake Compiler https:/ /github.com/luislavena/rake-compiler Mimics RubyGems Build Process

Slide 97

Slide 97 text

Going Native Rake Compiler https:/ /github.com/luislavena/rake-compiler Mimics RubyGems Build Process Build Extensions For Different Ruby Implementations.

Slide 98

Slide 98 text

Going Native Rake Compiler https:/ /github.com/luislavena/rake-compiler Mimics RubyGems Build Process Build Extensions For Different Ruby Implementations. Build "FAT" Native Gems For Windows Users (from Linux or OSX)

Slide 99

Slide 99 text

Going Native MiniPortile https:/ /github.com/luislavena/mini_portile

Slide 100

Slide 100 text

Going Native MiniPortile https:/ /github.com/luislavena/mini_portile A Minimalistic, Simplistic And Stupid Implementation Of A Port/Recipe System.

Slide 101

Slide 101 text

Going Native MiniPortile https:/ /github.com/luislavena/mini_portile A Minimalistic, Simplistic And Stupid Implementation Of A Port/Recipe System. For Gem Developers!!!

Slide 102

Slide 102 text

Going Native (TinyTDS)

Slide 103

Slide 103 text

Going Native (TinyTDS) Git Clone The Project.

Slide 104

Slide 104 text

Going Native (TinyTDS) Git Clone The Project. $ bundle install && rake

Slide 105

Slide 105 text

Going Native (TinyTDS) Git Clone The Project. $ bundle install && rake Download libiconv & freetds.

Slide 106

Slide 106 text

Going Native (TinyTDS) Git Clone The Project. $ bundle install && rake Download libiconv & freetds. Compile Each.

Slide 107

Slide 107 text

Going Native (TinyTDS) Git Clone The Project. $ bundle install && rake Download libiconv & freetds. Compile Each. Build Ruby Gem C Extension. Statically Linked To Libs.

Slide 108

Slide 108 text

Going Native (TinyTDS) Git Clone The Project. $ bundle install && rake Download libiconv & freetds. Compile Each. Build Ruby Gem C Extension. Statically Linked To Libs. Run Tests!

Slide 109

Slide 109 text

AdventureWorks.Ruby

Slide 110

Slide 110 text

AdventureWorks.Ruby

Slide 111

Slide 111 text

AdventureWorks.Ruby

Slide 112

Slide 112 text

AdventureWorks.Ruby

Slide 113

Slide 113 text

AdventureWorks.Ruby On github.com/rails-sqlserver

Slide 114

Slide 114 text

AdventureWorks.Ruby On github.com/rails-sqlserver Database Cloning

Slide 115

Slide 115 text

AdventureWorks.Ruby On github.com/rails-sqlserver Database Cloning Rake Override Task

Slide 116

Slide 116 text

AdventureWorks.Ruby On github.com/rails-sqlserver Database Cloning Rake Override Task Usage of smocript/sqlcmd

Slide 117

Slide 117 text

No content