Your SlideShare is downloading. ×
0
I DOUBT THAT! An Introduction to Skepticism
JAMESJames Edward Gray II        JEG2
PROGRAMMER
class MarkovChain  def initialize(order = 2)    @order    = order    @word_map = { }    @starters = [ ]  endend
My name is James.My name is not Jesus.
My name is James.My name is not Jesus.
My name is James.My name is not Jesus.
My name is James.     My name is not Jesus.{ “My name” => [“is”],  “name is” => [“James”, “not”],  …}
class MarkovChain  def learn(text)    text.strip        .sub(/s+/, " ")        .sub(/( .){3,}/) { $&.delete(" ") }        ...
class MarkovChain  def contruct_paragraph(sentence_count = rand(10) + 1)    words     = @starters.sample    sentences = wo...
class MarkovChain  def contruct_paragraph(sentence_count = rand(10) + 1)    words     = @starters.sample    sentences = wo...
class MarkovChain  def contruct_paragraph(sentence_count = rand(10) + 1)    words     = @starters.sample    sentences = wo...
require "open-uri"def load_fairy_tales  open("#{URL}/index.html") do |list|    list.read.scan(/href="([^"]+.txt)"/) do |st...
DEBUG      = ARGV.delete("-d")URL        = "http://www.kidsnewsroom.org/elmer/infocentral/stories/grimm"CHAIN_FILE = "mark...
WHY?
NONSENSEJacks life had gone into the depths of the beds.After having counted again and then pretended to beginworking on t...
THOUGHT PROVOKINGBut wealth doesnt always bring happiness.In the meantime, Puss in Boots.He was a lovely girl.The gold pie...
SCARYHope flooded Pinocchios heart as the water rushed into itscavern-like mouth……the second Geppetto carved out the bone Y...
JUST LIKE THE BIBLE
ATHEIST
A FRESH PERSPECTIVEI shed my belief nearly 20 years agoI just joined the community within the last yearI have a lot of new...
Theology
TheologyPhilosophy
TheologyPhilosophy   Skepticism
BOOBS
WHAT      IS SHE      DOING?http://www.pregnancy-and-giving-birth.com/
HOW?
JUST EAT IT?http://eclipsstudios.blogspot.com/2008_10_01_archive.html
http://rev-views.blogspot.com/2008/11/dvds-in-review-41-cabbage.html
IS THIS DANGEROUS?http://www.playinghouseblog.com/2011/01/dubai-farmers-market.html
I GOOGLED IT
I GOOGLED ITI know it sounds weird but you can put cabbage leaves onyour breasts and it will dry your milk out! I did it a...
I GOOGLED ITI know it sounds weird but you can put cabbage leaves onyour breasts and it will dry your milk out! I did it a...
AUTHORITY?
MAGICWORDS  scientific study   double-blind   peer reviewedplacebo controlled
MYTH BUSTED
THE PROCESSQuestionThink criticallySearch for evidence
SKEPTICISM
TRAITS OF A SKEPTICQuestions authorityA questioning attitude of knowledge, facts, or opinions/beliefs stated as factsSuspe...
INTERESTS
LOGICAL FALLACIES
LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.
LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bib...
LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bib...
LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bib...
LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bib...
BRAIN ODDITIES
BRAIN ODDITIESThe ideo-motor response: vividly imagine sucking on alemon and you may salivate
BRAIN ODDITIESThe ideo-motor response: vividly imagine sucking on alemon and you may salivatePareidolia: why you see anima...
BRAIN ODDITIESThe ideo-motor response: vividly imagine sucking on alemon and you may salivatePareidolia: why you see anima...
AS YOU KNOW IThttp://ufoclearinghouse.webs.com/ufochreportingcenter.htm
MEMBER BENEFITSWe never get abducted by aliensWe don’t lose sleep over the Feng Shui in our housesWe save a lot of money b...
DIRTY LITTLE SECRETSWe kill a sacred cow to joinWe’re all mad that second hand smoke doesn’t kill peopleWe can be slow to ...
BIBLE CODE
HIDDEN PROPHECYEquidistant Linguistic Sequences spell out historic eventsEvents occurring after the Bible can be foundHowe...
A GRID OF LETTERS http://en.wikipedia.org/wiki/Bible_code
KNOWING THE FUTUREhttp://www.csicop.org/si/show/hidden_messages_and_the_bible_code/
PROVE IT!
class ELSSearch  def initialize(words, text)    @words      = words.split.map { |word| word.downcase.delete("^a-z") }    @...
{ “this” => { 10 => [[0, 34], …]],              20 => [[0, 64], …]],              … },  “that” => { 3 => [[100, 113], …]],...
class ELSSearch  def find_sequences(word, min_offset)    matched = false    letters = word.split("")    loop do      puts ...
class ELSSearch  def find_sequences(word, min_offset)    matched = false    letters = word.split("")    loop do      puts ...
class ELSSearch  def box_results(result = SearchResult.new, words = @words)    word = words.first    @sequences[word].each...
class ELSSearch  def box_results(result = SearchResult.new, words = @words)    word = words.first    @sequences[word].each...
class ELSSearch  def box_results(result = SearchResult.new, words = @words)    word = words.first    @sequences[word].each...
class ELSSearch  def box_results(result = SearchResult.new, words = @words)    word = words.first    @sequences[word].each...
class ELSSearch  def perform    @words.each do |word|      find_sequences(word, 1)    end    until @result = box_results  ...
class ELSSearch  def perform    @words.each do |word|      find_sequences(word, 1)    end    until @result = box_results  ...
class ELSSearch  def perform    @words.each do |word|      find_sequences(word, 1)    end    until @result = box_results  ...
class ELSSearch  def perform    @words.each do |word|      find_sequences(word, 1)    end    until @result = box_results  ...
class ELSSearch  def show_results(highlight = false)    matched_text = @text[@result.start...@result.stop]    lowest_offse...
class SearchResult  def initialize(start = nil, stop = nil, mapping = { })    @start   = start    @stop    = stop    @mapp...
class SearchResult  def initialize(start = nil, stop = nil, mapping = { })    @start   = start    @stop    = stop    @mapp...
A REPLACEMENT BIBLE
A REPLACEMENT BIBLEhttp://www.templates.com/blog/come-up-smiling-amazing-3d-characters/
DEBUG = ARGV.delete("-d")abort "Usage: #{$PROGRAM_NAME} [-d] WORDS" unless ARGV.firstsearch = ELSSearch.new(ARGV.shift, Fi...
DEBUG = ARGV.delete("-d")abort "Usage: #{$PROGRAM_NAME} [-d] WORDS" unless ARGV.firstsearch = ELSSearch.new(ARGV.shift, Fi...
CkintoapumpkinsheorderedohofcourseyoucantbuyyOuwerentevenallowedtositforaloomsilkgoldthreaDhereexcellencythemerchanthuggEd...
CkintoapumpkinsheorderedohofcourseyoucantbuyyOuwerentevenallowedtositforaloomsilkgoldthreaDhereexcellencythemerchanthuggEd...
Lyisweariwillbeginworkingontheseaandpinocchiosetoutforschoolwithhisnewfriendsalongwithshoalsoffishunluckyenoughtostandupto...
Lyisweariwillbeginworkingontheseaandpinocchiosetoutforschoolwithhisnewfriendsalongwithshoalsoffishunluckyenoughtostandupto...
THE IMPORTANT STUFF
THE IMPORTANT STUFFhttp://www.dan-dare.org/FreeFun/Games/BulletTimeFighting.htm
NvitedhimtOherhousetOoanSweredPussinbooTSgoldIlockscrashedtotHecatimightindeedhegavEittoafitandproperendgRetelbegaNtOeatia...
NvitedhimtOherhousetOoanSweredPussinbooTSgoldIlockscrashedtotHecatimightindeedhegavEittoafitandproperendgRetelbegaNtOeatia...
Atllteachhermayihavealookattheballbutinplaceofthemarquisofcarabashecriedawholeworldwasstirringtolifeandthebasketthenheblew...
Atllteachhermayihavealookattheballbutinplaceofthemarquisofcarabashecriedawholeworldwasstirringtolifeandthebasketthenheblew...
MYTH BUSTED
RESOURCES
http://www.amazon.com/Demon-Haunted-World-Science-Candle-Dark/dp/0345409469/ref=sr_1_1
http://www.theskepticsguide.org/
SCIENCE OR FICTION
SCIENCE OR FICTIONEpisode 80, 1/31/2007:
SCIENCE OR FICTIONEpisode 80, 1/31/2007:  New study shows that men enjoy romantic movies, so-  called chick flicks, almost ...
SCIENCE OR FICTIONEpisode 80, 1/31/2007:  New study shows that men enjoy romantic movies, so-  called chick flicks, almost ...
SCIENCE OR FICTIONEpisode 80, 1/31/2007:  New study shows that men enjoy romantic movies, so-  called chick flicks, almost ...
OTHER RESOURCES
OTHER RESOURCESBlogs  Skepchick  Bad Astronomy
OTHER RESOURCESBlogs  Skepchick  Bad AstronomyPodcasts  Skeptiod  QuackCast
OTHER RESOURCESBlogs             Books by  Skepchick         James Randi  Bad Astronomy     Jon RonsonPodcasts            ...
OTHER RESOURCESBlogs             Books by  Skepchick         James Randi  Bad Astronomy     Jon RonsonPodcasts            ...
(CONTINUED)
(CONTINUED)TV Shows South Park Bullshit! CSI
(CONTINUED)TV Shows  South Park  Bullshit!  CSIiPhone App  Skeptic’s Dictionary
(CONTINUED)TV Shows                 Web Sites  South Park               Snopes.com  Bullshit!                An Index to C...
http://www.amazingmeeting.com/  http://www.skepticon.org/
THANKS
DOUBT ME!!!QUESTIONS?
I Doubt That!
I Doubt That!
I Doubt That!
I Doubt That!
Upcoming SlideShare
Loading in...5
×

I Doubt That!

1,067

Published on

This is an introduction I gave to the Oklahoma Atheists about skeptical thinking and the skeptical movement.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,067
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript of "I Doubt That!"

    1. 1. I DOUBT THAT! An Introduction to Skepticism
    2. 2. JAMESJames Edward Gray II JEG2
    3. 3. PROGRAMMER
    4. 4. class MarkovChain def initialize(order = 2) @order = order @word_map = { } @starters = [ ] endend
    5. 5. My name is James.My name is not Jesus.
    6. 6. My name is James.My name is not Jesus.
    7. 7. My name is James.My name is not Jesus.
    8. 8. My name is James. My name is not Jesus.{ “My name” => [“is”], “name is” => [“James”, “not”], …}
    9. 9. class MarkovChain def learn(text) text.strip .sub(/s+/, " ") .sub(/( .){3,}/) { $&.delete(" ") } .scan(/(?:w[-w]*|,|(?:.{3,} |[.!?] ))/) .each_cons(@order + 1) do |words| if @starters.empty? @starters << words[0..-2] elsif words.first =~ /A[.!?]/ @starters << words[1..-1] end (@word_map[words[0..-2]] ||= [ ]) << words[-1] end endend
    10. 10. class MarkovChain def contruct_paragraph(sentence_count = rand(10) + 1) words = @starters.sample sentences = words.count { |word| word =~ /A[.!?]/ } until sentences >= sentence_count if choices = @word_map[words.last(@order)] words << choices.sample sentences += 1 if words.last =~ /A[.!?]/ else start = @starters.sample words.push(*start) sentences += start.count { |word| word =~ /A[.!?]/ } end end paragraph = words.join( ) .gsub(/ ([,.!?])/, 1) .gsub(/.( .)+/, ".") .gsub(/AW+/, "") "t#{paragraph}n" endend
    11. 11. class MarkovChain def contruct_paragraph(sentence_count = rand(10) + 1) words = @starters.sample sentences = words.count { |word| word =~ /A[.!?]/ } until sentences >= sentence_count if choices = @word_map[words.last(@order)] words << choices.sample sentences += 1 if words.last =~ /A[.!?]/ else start = @starters.sample words.push(*start) sentences += start.count { |word| word =~ /A[.!?]/ } end end paragraph = words.join( ) .gsub(/ ([,.!?])/, 1) .gsub(/.( .)+/, ".") .gsub(/AW+/, "") "t#{paragraph}n" endend
    12. 12. class MarkovChain def contruct_paragraph(sentence_count = rand(10) + 1) words = @starters.sample sentences = words.count { |word| word =~ /A[.!?]/ } until sentences >= sentence_count if choices = @word_map[words.last(@order)] words << choices.sample sentences += 1 if words.last =~ /A[.!?]/ else start = @starters.sample words.push(*start) sentences += start.count { |word| word =~ /A[.!?]/ } end end paragraph = words.join( ) .gsub(/ ([,.!?])/, 1) .gsub(/.( .)+/, ".") .gsub(/AW+/, "") "t#{paragraph}n" endend
    13. 13. require "open-uri"def load_fairy_tales open("#{URL}/index.html") do |list| list.read.scan(/href="([^"]+.txt)"/) do |story_url| open("#{URL}/#{story_url.first}") do |story| text = story.read if text.sub!(/As*(w.+w)/, "0") print "Loading #{$1}... " if DEBUG yield text puts "Done." if DEBUG end end end endend
    14. 14. DEBUG = ARGV.delete("-d")URL = "http://www.kidsnewsroom.org/elmer/infocentral/stories/grimm"CHAIN_FILE = "markov_chain.marshal"def build_chain if File.exist? CHAIN_FILE File.open(CHAIN_FILE) { |file| Marshal.load(file) } else MarkovChain.new.tap { |chain| load_fairy_tales { |tale| chain.learn(tale) } File.open(CHAIN_FILE, "w") { |file| Marshal.dump(chain, file) } } endendchain = build_chainbible_length = File.size("bible.txt")open("generated_tales.txt", "w") do |tales| until tales.size >= bible_length tales.write(chain.contruct_paragraph) endend
    15. 15. WHY?
    16. 16. NONSENSEJacks life had gone into the depths of the beds.After having counted again and then pretended to beginworking on them, the dwarfs advice Im an old hut made oftwigs and dead leaves.A whole world was stirring to life and the Princess fussedaround and ordered new clothes to be coming from insidethe oven door shut.
    17. 17. THOUGHT PROVOKINGBut wealth doesnt always bring happiness.In the meantime, Puss in Boots.He was a lovely girl.The gold pieces were spent to buy a lot more than anymangy donkey or half-ruined mill, the bowl lay empty on alarge spider who promised to help her.You are, your Highness, youll have to work like the others,or youll not get even that.
    18. 18. SCARYHope flooded Pinocchios heart as the water rushed into itscavern-like mouth……the second Geppetto carved out the bone Youre stillmuch too thin she complained.Hansel opened the door. Whos there cried Grandma fromher bed Its me, otherwise it wont taste nice.
    19. 19. JUST LIKE THE BIBLE
    20. 20. ATHEIST
    21. 21. A FRESH PERSPECTIVEI shed my belief nearly 20 years agoI just joined the community within the last yearI have a lot of new words
    22. 22. Theology
    23. 23. TheologyPhilosophy
    24. 24. TheologyPhilosophy Skepticism
    25. 25. BOOBS
    26. 26. WHAT IS SHE DOING?http://www.pregnancy-and-giving-birth.com/
    27. 27. HOW?
    28. 28. JUST EAT IT?http://eclipsstudios.blogspot.com/2008_10_01_archive.html
    29. 29. http://rev-views.blogspot.com/2008/11/dvds-in-review-41-cabbage.html
    30. 30. IS THIS DANGEROUS?http://www.playinghouseblog.com/2011/01/dubai-farmers-market.html
    31. 31. I GOOGLED IT
    32. 32. I GOOGLED ITI know it sounds weird but you can put cabbage leaves onyour breasts and it will dry your milk out! I did it and itworks.
    33. 33. I GOOGLED ITI know it sounds weird but you can put cabbage leaves onyour breasts and it will dry your milk out! I did it and itworks.Cool cabbage compresses will reduce swelling quickly, and ifleft in place for long periods will help diminish milk supply.This method may be used instead of or in addition toremoving small amounts of milk to reduce supply. Use freshgreen leaves, cleaned and chilled, wrapped around thebreasts. Change them about every two hours.
    34. 34. AUTHORITY?
    35. 35. MAGICWORDS scientific study double-blind peer reviewedplacebo controlled
    36. 36. MYTH BUSTED
    37. 37. THE PROCESSQuestionThink criticallySearch for evidence
    38. 38. SKEPTICISM
    39. 39. TRAITS OF A SKEPTICQuestions authorityA questioning attitude of knowledge, facts, or opinions/beliefs stated as factsSuspended judgement and systemic doubtRequires all new information to be well supported byevidence
    40. 40. INTERESTS
    41. 41. LOGICAL FALLACIES
    42. 42. LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.
    43. 43. LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bible says so. The Bible is inspired.Therefore, we know that God exists.
    44. 44. LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bible says so. The Bible is inspired.Therefore, we know that God exists.Either God exists or evolution is true.
    45. 45. LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bible says so. The Bible is inspired.Therefore, we know that God exists.Either God exists or evolution is true.William Lane Craig is a jerk. I can’t listen to his debates.
    46. 46. LOGICAL FALLACIESChristianity has the largest group of followers, because it’sthe best religion.God exists because the Bible says so. The Bible is inspired.Therefore, we know that God exists.Either God exists or evolution is true.William Lane Craig is a jerk. I can’t listen to his debates.God doesn’t reveal Himself to nonbelievers.
    47. 47. BRAIN ODDITIES
    48. 48. BRAIN ODDITIESThe ideo-motor response: vividly imagine sucking on alemon and you may salivate
    49. 49. BRAIN ODDITIESThe ideo-motor response: vividly imagine sucking on alemon and you may salivatePareidolia: why you see animals/faces in the clouds
    50. 50. BRAIN ODDITIESThe ideo-motor response: vividly imagine sucking on alemon and you may salivatePareidolia: why you see animals/faces in the cloudsHypnagogia: ???
    51. 51. AS YOU KNOW IThttp://ufoclearinghouse.webs.com/ufochreportingcenter.htm
    52. 52. MEMBER BENEFITSWe never get abducted by aliensWe don’t lose sleep over the Feng Shui in our housesWe save a lot of money by avoiding alternative medicaltreatments like acupuncture, chiropractors, etc.We get to study tons of interesting subjectsOur children have a higher survival rate since we vaccinate
    53. 53. DIRTY LITTLE SECRETSWe kill a sacred cow to joinWe’re all mad that second hand smoke doesn’t kill peopleWe can be slow to react to things like man-made globalwarmingWe have to be careful not too see logical fallacieseverywhereWe have to remember to be skeptical, not cynical
    54. 54. BIBLE CODE
    55. 55. HIDDEN PROPHECYEquidistant Linguistic Sequences spell out historic eventsEvents occurring after the Bible can be foundHowever, they are usually wrong unless we find them afterthey occurWorks best with the English and Hebrew translations
    56. 56. A GRID OF LETTERS http://en.wikipedia.org/wiki/Bible_code
    57. 57. KNOWING THE FUTUREhttp://www.csicop.org/si/show/hidden_messages_and_the_bible_code/
    58. 58. PROVE IT!
    59. 59. class ELSSearch def initialize(words, text) @words = words.split.map { |word| word.downcase.delete("^a-z") } @text = text.downcase.delete("^a-z") @sequences = Hash.new { |ws, w| ws[w] = Hash.new { |os, o| os[o] = [ ] } } @result = nil endend
    60. 60. { “this” => { 10 => [[0, 34], …]], 20 => [[0, 64], …]], … }, “that” => { 3 => [[100, 113], …]], 5 => [[100, 119], …]], … }, …}
    61. 61. class ELSSearch def find_sequences(word, min_offset) matched = false letters = word.split("") loop do puts "Searching #{min_offset} for #{word}..." if DEBUG @text.scan( / #{letters.join(".{#{min_offset}}")} | #{letters.reverse.join(".{#{min_offset}}")} /x ) do matched = true @sequences[word][min_offset] << $~.offset(0) end break if matched min_offset += 1 end endend
    62. 62. class ELSSearch def find_sequences(word, min_offset) matched = false letters = word.split("") loop do puts "Searching #{min_offset} for #{word}..." if DEBUG @text.scan( / #{letters.join(".{#{min_offset}}")} | #{letters.reverse.join(".{#{min_offset}}")} /x ) do matched = true @sequences[word][min_offset] << $~.offset(0) end break if matched min_offset += 1 end endend
    63. 63. class ELSSearch def box_results(result = SearchResult.new, words = @words) word = words.first @sequences[word].each_value do |bounds| bounds.each do |start, stop| if result.overlaps?(start, stop) expanded_results = result.expand(start, stop, word) if words.size <= 1 return expanded_results else if nested_results = box_results(expanded_results, words[1..-1]) return nested_results end end end end end nil endend
    64. 64. class ELSSearch def box_results(result = SearchResult.new, words = @words) word = words.first @sequences[word].each_value do |bounds| bounds.each do |start, stop| if result.overlaps?(start, stop) expanded_results = result.expand(start, stop, word) if words.size <= 1 return expanded_results else if nested_results = box_results(expanded_results, words[1..-1]) return nested_results end end end end end nil endend
    65. 65. class ELSSearch def box_results(result = SearchResult.new, words = @words) word = words.first @sequences[word].each_value do |bounds| bounds.each do |start, stop| if result.overlaps?(start, stop) expanded_results = result.expand(start, stop, word) if words.size <= 1 return expanded_results else if nested_results = box_results(expanded_results, words[1..-1]) return nested_results end end end end end nil endend
    66. 66. class ELSSearch def box_results(result = SearchResult.new, words = @words) word = words.first @sequences[word].each_value do |bounds| bounds.each do |start, stop| if result.overlaps?(start, stop) expanded_results = result.expand(start, stop, word) if words.size <= 1 return expanded_results else if nested_results = box_results(expanded_results, words[1..-1]) return nested_results end end end end end nil endend
    67. 67. class ELSSearch def perform @words.each do |word| find_sequences(word, 1) end until @result = box_results find_sequences(*lowest_sequence) end end private def lowest_sequence word = @sequences.sort_by { |_, os| [os.keys.max, rand] }.first.first [word, @sequences[word].keys.max + 1] endend
    68. 68. class ELSSearch def perform @words.each do |word| find_sequences(word, 1) end until @result = box_results find_sequences(*lowest_sequence) end end private def lowest_sequence word = @sequences.sort_by { |_, os| [os.keys.max, rand] }.first.first [word, @sequences[word].keys.max + 1] endend
    69. 69. class ELSSearch def perform @words.each do |word| find_sequences(word, 1) end until @result = box_results find_sequences(*lowest_sequence) end end private def lowest_sequence word = @sequences.sort_by { |_, os| [os.keys.max, rand] }.first.first [word, @sequences[word].keys.max + 1] endend
    70. 70. class ELSSearch def perform @words.each do |word| find_sequences(word, 1) end until @result = box_results find_sequences(*lowest_sequence) end end private def lowest_sequence word = @sequences.sort_by { |_, os| [os.keys.max, rand] }.first.first [word, @sequences[word].keys.max + 1] endend
    71. 71. class ELSSearch def show_results(highlight = false) matched_text = @text[@result.start...@result.stop] lowest_offset = @result.mapping.values.map(&:first).min box_size = nil @result.mapping.each do |w, os| i = os.first - lowest_offset o = (os.last - os.first - w.size) / (w.size - 1) box_size = o if box_size.nil? or o > box_size w.size.times do |c| j = i + ((o + 1) * c) matched_text[j, 1] = matched_text[j, 1].upcase end end matched_text.gsub!(/G.{#{[box_size, 80].min}}/, "0n") matched_text.gsub!(/[A-Z]/, "e[1m0e[0m") if highlight matched_text endend
    72. 72. class SearchResult def initialize(start = nil, stop = nil, mapping = { }) @start = start @stop = stop @mapping = mapping end attr_reader :start, :stop, :mapping def overlaps?(start, stop) (@start.nil? and @stop.nil?) or (stop >= @start and start <= @stop) end def expand(start, stop, word) self.class.new( [@start, start].compact.min, [@stop, stop].compact.max, @mapping.merge(word => [start, stop]) ) endend
    73. 73. class SearchResult def initialize(start = nil, stop = nil, mapping = { }) @start = start @stop = stop @mapping = mapping end attr_reader :start, :stop, :mapping def overlaps?(start, stop) (@start.nil? and @stop.nil?) or (stop >= @start and start <= @stop) end def expand(start, stop, word) self.class.new( [@start, start].compact.min, [@stop, stop].compact.max, @mapping.merge(word => [start, stop]) ) endend
    74. 74. A REPLACEMENT BIBLE
    75. 75. A REPLACEMENT BIBLEhttp://www.templates.com/blog/come-up-smiling-amazing-3d-characters/
    76. 76. DEBUG = ARGV.delete("-d")abort "Usage: #{$PROGRAM_NAME} [-d] WORDS" unless ARGV.firstsearch = ELSSearch.new(ARGV.shift, File.read("generated_tales.txt"))search.performputs search.show_results($stdout.tty?)
    77. 77. DEBUG = ARGV.delete("-d")abort "Usage: #{$PROGRAM_NAME} [-d] WORDS" unless ARGV.firstsearch = ELSSearch.new(ARGV.shift, File.read("generated_tales.txt"))search.performputs search.show_results($stdout.tty?)
    78. 78. CkintoapumpkinsheorderedohofcourseyoucantbuyyOuwerentevenallowedtositforaloomsilkgoldthreaDhereexcellencythemerchanthuggEdhisdaughterinEverdiddoubtyourLoveformelayingherbasketonthetaBleandsheneveropensthedoortinywIndowsandacircusmancalledthestaB
    79. 79. CkintoapumpkinsheorderedohofcourseyoucantbuyyOuwerentevenallowedtositforaloomsilkgoldthreaDhereexcellencythemerchanthuggEdhisdaughterinEverdiddoubtyourLoveformelayingherbasketonthetaBleandsheneveropensthedoortinywIndowsandacircusmancalledthestaB
    80. 80. LyisweariwillbeginworkingontheseaandpinocchiosetoutforschoolwithhisnewfriendsalongwithshoalsoffishunluckyenoughtostanduptowindrainandonnoticingthecottageisntthisdelicioussaidgretelthrowingherarmsroundherfathersireallycantsayyesandlittleredridinghoodranbackacrosstheroomandadeepterrifyingvoicegrowLedungratefulmanisweariwillhowkindyouarebutweneedisanarmyofcatsbutallwasintheforesttillitreachedthedoorwhocanthatbethecityfatherswondereduneasilymindfulofthepalaceablackseaofratsswarmedoverthebaremeadowsshedidntpayanyattentiontohimafterdinnerusingoneOfmyFavoUriteflowersishallfinishmyhousefirstopEnupifyouplantonegoldcoininanearbyladderontotheroofaddednewroomsandelegantmarblecolumnsthenoutstrodegiovannitheemperorreceivedtheannouncementthatthekingintherealmnowthatwehavesettledthematteroffactiwillmakeamealreadytowardsduskseventinymenmarchedhomewardssingingbuttheypointedoutthatsheoweditheroWndaughtersandsherememberedtoothatsheoweditherownlifeaswellsurprisethewolfrappedonthewallwhoreallywasdrowningthepuppetsnewownerledhimtomarkthewaywhenitwaspleadingthemarquisofcarabasisdrowningthekingsaidcarloshewalkedalongitforneverinatulipthepuppetworkedlateintotheforesttothekitchenwhattinyplateSandsoforthemagicmirrorwhatswrongheaskedeachotherthenheopenedthedoortoanyonesaidlittleridinghoodtappedonthecloudsjackranforgetfulofallthecrumbshadgonethroughalotofchangessincehehadcaughtintherealmnowthatwehaveplentyoftimetryingtocatchthepigashecouldandthewagonandwasforeverteasingtortoiseforitsslOwnessthentheystayedforseveraldaystoeatsomemoreoftheminetofindoutwhowasnowmadlyinlovewithhersonandwehavesettledthematterofthepathandleadhimastraythistimehesaidmiaowwhichappearedinalowvoicethemoleinvitedthumbelinaandthebirdsoaredintothebedandinaninstantpinocchiohadbeenunabletofindouthewasheisveryR
    81. 81. LyisweariwillbeginworkingontheseaandpinocchiosetoutforschoolwithhisnewfriendsalongwithshoalsoffishunluckyenoughtostanduptowindrainandonnoticingthecottageisntthisdelicioussaidgretelthrowingherarmsroundherfathersireallycantsayyesandlittleredridinghoodranbackacrosstheroomandadeepterrifyingvoicegrowLedungratefulmanisweariwillhowkindyouarebutweneedisanarmyofcatsbutallwasintheforesttillitreachedthedoorwhocanthatbethecityfatherswondereduneasilymindfulofthepalaceablackseaofratsswarmedoverthebaremeadowsshedidntpayanyattentiontohimafterdinnerusingoneOfmyFavoUriteflowersishallfinishmyhousefirstopEnupifyouplantonegoldcoininanearbyladderontotheroofaddednewroomsandelegantmarblecolumnsthenoutstrodegiovannitheemperorreceivedtheannouncementthatthekingintherealmnowthatwehavesettledthematteroffactiwillmakeamealreadytowardsduskseventinymenmarchedhomewardssingingbuttheypointedoutthatsheoweditheroWndaughtersandsherememberedtoothatsheoweditherownlifeaswellsurprisethewolfrappedonthewallwhoreallywasdrowningthepuppetsnewownerledhimtomarkthewaywhenitwaspleadingthemarquisofcarabasisdrowningthekingsaidcarloshewalkedalongitforneverinatulipthepuppetworkedlateintotheforesttothekitchenwhattinyplateSandsoforthemagicmirrorwhatswrongheaskedeachotherthenheopenedthedoortoanyonesaidlittleridinghoodtappedonthecloudsjackranforgetfulofallthecrumbshadgonethroughalotofchangessincehehadcaughtintherealmnowthatwehaveplentyoftimetryingtocatchthepigashecouldandthewagonandwasforeverteasingtortoiseforitsslOwnessthentheystayedforseveraldaystoeatsomemoreoftheminetofindoutwhowasnowmadlyinlovewithhersonandwehavesettledthematterofthepathandleadhimastraythistimehesaidmiaowwhichappearedinalowvoicethemoleinvitedthumbelinaandthebirdsoaredintothebedandinaninstantpinocchiohadbeenunabletofindouthewasheisveryR
    82. 82. THE IMPORTANT STUFF
    83. 83. THE IMPORTANT STUFFhttp://www.dan-dare.org/FreeFun/Games/BulletTimeFighting.htm
    84. 84. NvitedhimtOherhousetOoanSweredPussinbooTSgoldIlockscrashedtotHecatimightindeedhegavEittoafitandproperendgRetelbegaNtOeatiamleavE
    85. 85. NvitedhimtOherhousetOoanSweredPussinbooTSgoldIlockscrashedtotHecatimightindeedhegavEittoafitandproperendgRetelbegaNtOeatiamleavE
    86. 86. AtllteachhermayihavealookattheballbutinplaceofthemarquisofcarabashecriedawholeworldwasstirringtolifeandthebasketthenheblewagainandthentriumphantlyholduptheogrerudelysireiveheardhiscriesandsentjacktosellititkeptmetoowarmpinocchiothrewhisarmsroundherfathersireallycanTsayyesiveheardyoupossessgreatpowersthatwayyouwillfindawifereturnedtohismiddlebehindhimswarmedtheratsitjustcantbeyouillmarryyouthumbelinadidnotmakeagoodsumofmoneywhentheharedecidedhemightaswellaseveryhomecomfortforthehousewhenjackgotdowntowaitforpinocchiotodrownontHeywalkedandwalkedtillhefeltdizywhenitwasquitetruecinderellahesaidtohiswifebutfromtimetotimeuptostrangersgoodbyeperhapswellmeetagainhesaiddonttrypullingmyleggoldilockscrashedtotherooftohaveagreatcastlebutthecatohdearimgoingtopeepinsideitreallyisyouthewickedstepmothErkepthanselandgretelhadbroughtherbrotherachickenboneandbeautyandtheprincessonastoneandsighedacatwhatamishriekedthelittlegirlwenttobedallnightlongthecaTmurmuredmiaowsuddenlysomethingamazinghappenedthatforaswimintherightthingexchanglngthatcowforfivebeanSoutoftheropeInsteadofthesedaintylittleslippersdoasyouaretoldandonatherdistantfamilythenheranintothepUppetsheadandtheyremainedgoodfriendswhilethethirdwhosenamewasbeautyhesaidiwasrightbehindhimflockedtheRatsbegantomultiplyinthebeginningbeautywasledtothewinningpostpoorgeppettohisSecondwifeoftenilltreatedThechildrenbehindthepiedpiperandastimepassedjacknolongerfeltindangerthemagicalsoundofahandsomeyoungladaskedinastonishmentatthecastlethecitizensofhamelinbuttheservantdidnotrelishtheideaofabrassbandbrokeintothedepthsofthebeanstalkpokedthroughThewoodstothetunnelandeverydayasduskwasfallinglittleredridinghoodstartedtorunaboutthegiantshugehandsandhecalledontheleavesintheskyhadgrownovernightthebeansmusthavereallybeenmagicthefairypinocchiowaswakenedbythecurrentbythetimethisistheloveliestinthesharksstomachiwaS
    87. 87. AtllteachhermayihavealookattheballbutinplaceofthemarquisofcarabashecriedawholeworldwasstirringtolifeandthebasketthenheblewagainandthentriumphantlyholduptheogrerudelysireiveheardhiscriesandsentjacktosellititkeptmetoowarmpinocchiothrewhisarmsroundherfathersireallycanTsayyesiveheardyoupossessgreatpowersthatwayyouwillfindawifereturnedtohismiddlebehindhimswarmedtheratsitjustcantbeyouillmarryyouthumbelinadidnotmakeagoodsumofmoneywhentheharedecidedhemightaswellaseveryhomecomfortforthehousewhenjackgotdowntowaitforpinocchiotodrownontHeywalkedandwalkedtillhefeltdizywhenitwasquitetruecinderellahesaidtohiswifebutfromtimetotimeuptostrangersgoodbyeperhapswellmeetagainhesaiddonttrypullingmyleggoldilockscrashedtotherooftohaveagreatcastlebutthecatohdearimgoingtopeepinsideitreallyisyouthewickedstepmothErkepthanselandgretelhadbroughtherbrotherachickenboneandbeautyandtheprincessonastoneandsighedacatwhatamishriekedthelittlegirlwenttobedallnightlongthecaTmurmuredmiaowsuddenlysomethingamazinghappenedthatforaswimintherightthingexchanglngthatcowforfivebeanSoutoftheropeInsteadofthesedaintylittleslippersdoasyouaretoldandonatherdistantfamilythenheranintothepUppetsheadandtheyremainedgoodfriendswhilethethirdwhosenamewasbeautyhesaidiwasrightbehindhimflockedtheRatsbegantomultiplyinthebeginningbeautywasledtothewinningpostpoorgeppettohisSecondwifeoftenilltreatedThechildrenbehindthepiedpiperandastimepassedjacknolongerfeltindangerthemagicalsoundofahandsomeyoungladaskedinastonishmentatthecastlethecitizensofhamelinbuttheservantdidnotrelishtheideaofabrassbandbrokeintothedepthsofthebeanstalkpokedthroughThewoodstothetunnelandeverydayasduskwasfallinglittleredridinghoodstartedtorunaboutthegiantshugehandsandhecalledontheleavesintheskyhadgrownovernightthebeansmusthavereallybeenmagicthefairypinocchiowaswakenedbythecurrentbythetimethisistheloveliestinthesharksstomachiwaS
    88. 88. MYTH BUSTED
    89. 89. RESOURCES
    90. 90. http://www.amazon.com/Demon-Haunted-World-Science-Candle-Dark/dp/0345409469/ref=sr_1_1
    91. 91. http://www.theskepticsguide.org/
    92. 92. SCIENCE OR FICTION
    93. 93. SCIENCE OR FICTIONEpisode 80, 1/31/2007:
    94. 94. SCIENCE OR FICTIONEpisode 80, 1/31/2007: New study shows that men enjoy romantic movies, so- called chick flicks, almost as much as women.
    95. 95. SCIENCE OR FICTIONEpisode 80, 1/31/2007: New study shows that men enjoy romantic movies, so- called chick flicks, almost as much as women. A recent study has found that the most unpleasant sound to humans is the sound of nails scratching across a blackboard.
    96. 96. SCIENCE OR FICTIONEpisode 80, 1/31/2007: New study shows that men enjoy romantic movies, so- called chick flicks, almost as much as women. A recent study has found that the most unpleasant sound to humans is the sound of nails scratching across a blackboard. Researchers have witnessed free-ranging spider monkeys anointing themselves with crushed aromatic plants that they believe is used as a type of perfume.
    97. 97. OTHER RESOURCES
    98. 98. OTHER RESOURCESBlogs Skepchick Bad Astronomy
    99. 99. OTHER RESOURCESBlogs Skepchick Bad AstronomyPodcasts Skeptiod QuackCast
    100. 100. OTHER RESOURCESBlogs Books by Skepchick James Randi Bad Astronomy Jon RonsonPodcasts Richard Wiseman Skeptiod QuackCast
    101. 101. OTHER RESOURCESBlogs Books by Skepchick James Randi Bad Astronomy Jon RonsonPodcasts Richard Wiseman Skeptiod Magazines QuackCast Skeptical Inquirer
    102. 102. (CONTINUED)
    103. 103. (CONTINUED)TV Shows South Park Bullshit! CSI
    104. 104. (CONTINUED)TV Shows South Park Bullshit! CSIiPhone App Skeptic’s Dictionary
    105. 105. (CONTINUED)TV Shows Web Sites South Park Snopes.com Bullshit! An Index to Creationist Claims CSI UncomfortableiPhone App Questions: Was the Death Star Attack an Skeptic’s Dictionary Inside Job?
    106. 106. http://www.amazingmeeting.com/ http://www.skepticon.org/
    107. 107. THANKS
    108. 108. DOUBT ME!!!QUESTIONS?
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×