SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
Cloud
          a ruby word-cloud generator
                  @ninajansen



 http://github.com/ninajansen/cloud/tree/master

http://github.com/ninajansen/cloud_examples/tree/
                      master
Wordle
Wordle

• Pretty wordclouds
• Not open source
• Only runs in browser
• Secret algortihm
Cloud

• My first ruby gem
• Runs in background
• generates PDF-files
• Ruby with inline C
Cloud types

• From text file
• From rss feed
• Frm del.icio.us account name
Example from text
                                               engaged
                                        four battlefield add
                                                          equal freedom
                         power forth     full    field    world might years
               struggled restingplace above
                                               resolve remaining created earth
                   take detract final endure                                   brought
           conceived war long devotion                                         unfinished
                                                                               task nor
              cannot shall us living
     lives never
                                                                                      civil perish
        increased
                                                                                      god consecrated
  ground come


                                 nation
                                                                                         continent

        people                                                        dead
  live                                                                                   died
 now                                                                                     measure
  met                                                                                    birth
                                                                                         work fitting


                             dedicated
                 men                                                    far
fathers portion                                                                   larger note
  advanced
                                                                        dedicate
               hallow cause
             whether nobly
                                new rather gave                         score        sense
                  say proper
                                                                        government
               forget remember vain fought seven
                                                       little liberty consecrate
                     altogether thus    testing brave poor highly proposition
                                   honored ago last
Example from rss feed
                                               svært    rigtig
                     skubbe lige projekt
                                               sagde siden fedt grunden
                   ønsker trangen fest driller
                                                 se sodavand drikke
                                       altid
          holder
          motion sang igår par                   tid
                                                    livet       helt laver træt
                   bortset                                       sammen tugter
                                   godt
       haft gang
                                                    ridde        elsker lettere
igennem super
                  gange                             skrevet      arbejdet pga
  kreativt vildt

                                   lidt                                    snart
                   bare
kærlighed håb
                                                     gospel        tage begge
  spiste maj end

                  bliver
skridt stå sagt
                                                    cola            nogle heste
                                                             ting
                                       dag
      giver
                                                    god
   handler smoothie                                          får mazarinbund
                        sige
     gået føler
                hård
                                                    blev     måde mine
                                       alkohol
            grund ofte sove hjem
                  fremtiden                              længe tårer
                                          alt arbejde
              danmark sangen grine                       undskyld,
                                         han dine fået
                                glad
                          skønt          dét
Example from
                      del.icio.us


                                                                                                                                                 performance
                                                                                                                                                  psychology

                                                                                                                                                                      graphics
                                                                                                                                                                                 shoulda logic
                                                                                                                                                               data
                                                                                                                                   fckeditor
                                                                                                                                                                                                                        migrations
                                                                                                                presenters                                     tdd
                                                                                                                              copyright                                          community                              ecommerce
                                                                                                               colors tests                                                                                                             comic
                                                                                                                              fonts acl google forum css
                                                                                                   maps rating                                                                                                              pdf xml
                                                                                         mongrel                                                                                                                                           wordpress




                                                 programming
                                                                              ruby

                                                                                                                                                                                                                                                                          sharing
                                                                                                                                                                                                                                                                            wiki




                                                                                                                                                                                                                                                                          ajax
                                                                                                                                                                                                                                                                                        del.icio.us
                                                                                                                                                                                                                                                                                        server
                                       culture
                                                                                                                                                                                                                                                                                        capistrano
                                         chart
                                       gitosis
                                                                                                                                                                                                                                                                                         download
                                    football
                                    guitar
                                                                                                                                                                                                                                                                                    blog                   skepticism
                              torrent                                                                                                                                                                                                                                                                      starter
                                                                                                                                                                                                                                                                                                           rest
                       games
                                                                                                                                                                                                                                                                                    rspec                     talks
                                                                                                                                                                                                                                                                                                              algorithms
                              bdd
                        svg
                                                                                                                                                                                                                                                                                                               t-shirts
    socialnetworking

                                                                                                                                                                                                                                                                                    howto
          science                                                                                                                                                                                                                                                                                                           flickr
                                                                                                                                                                                                                                                                                                                            backup




                                                           rails
                                                                                                                                                                                                                                                                                                              mac
authentication
                 pirat                                                                                                                                                                                                                                                                                        television
                                                                                                                                                                                                                                                                                                                                 seinfeld
        git
   navigation




                                                                                                                                                                                                                                                                                                                        ubuntu
                                                                                                                                                                                                                                                                                                                                 geek
         book




                                                                                                                                                                                                                                                                                                            iværksætter
     blogging                                                                                                                                                                                                                                                                                                                    tips
   creativity
       job                                                                                                                                                                                                                                                                                                                       deployment
       sport
                                                                                                                                                                                                                                                                                                                          software
     plugins

    twitter                                                                                                                                                                                                                                                                                                               books
                                                                                                                                                                                                                                                                                                                          subversion
    search                                                                                                                                                                                                                                                                                                                railsconf
     tutorials

      p2p                                                                                                                                                                                                                                                                                                                 ebooks
        ebook
          kort
                                                                                                                                                                                                                                                                                                                          images
   astronomy
     database

 jobdatabase                                                                                                                                                                                                                                                                                                            cloudcomputing
                            ted




                                                                                                                                                                                                                                                                                                              fun
                                                                                                                                                                                                                                                                                                                               calendar
                                                                                                                                                                                                                                                                                                                               deprec
    realitytv                                                                                                                                                                                                                                                                                                                  versioncontrol


                                                                                                                                                                                                                                                                                                              visualization
          migration funny

documentation                 nfl




                                    code humor                                                                                                                                                                  tutorial
                                                                                                                                                                                                                                                                                                                            berlin



                                                                                                                                                                                                                                                                       plugin
        technology                                                                                                                                                                                                                                                                                                          cambridge
                                                                                                                                           tools
            iphone
                  security              cucumber cache atheism series




                                                                                                                                                                                                                reference cakephp
                        business
                     conference osx testing                                                                                                                                                                                                                                           amazon i18n


                                                                                                                                                                                                                tv bittorrent
                                                                                                                                                                                                                                                                                          development


                                   torrents
                            linux
                               cakephp1.2
                                                                                                                                                                                                                                                                                                opensource
                               virksomhed
                                                                                                                                                                                                                                                                                               framework


                                                 startup                                                                                                                                                                             test aws cake webcomic robots           apple explorer
                                                                                                                                                                                                                                                                                     api
                                                                                                                                                                                                                                                                 php
                                                                                                                                                                                                               javascript
                                                                                                                                                                                                                                                                            piracy



                                                           entertainment
                                                                                                                                                                                                                                                                                     travel
                                            jobdatabaser

                                                                                                                                                                                                                                                              rss story

                                                                                                          music web denmark                                                                                                                            svn  events
                                                                              web2.0
                                                                    iplayer
                                                                                                                                               charts




                                                                                                                                                                                  ent_fu webrat friendfeed




                                                               walkthrough
                                                                                                                                                                                                                                                       copenhagen
                                                                              globalize bil freelance
                                                                                                                    danish comics                                                                                                                      line6
                                                                                  flash rjs s3
                                                                                                        blogs shopping
                                                                                                                                                                   elenium




                                                                                                                                                                                                                                                       skeptic
                                                                                                                                                                         fritid




                                                                                         Civ4 perl
                                                                                                                                                                                                             jobsøgning entrepreneurship
                                                                                                        html
                                                                                                               oreilly




                                                                                                                         localization religion                                                                                   shop
                                                                                                                                                           tures




                                                                                                                                                                                                             puppet news media
                                                                                                                            VC browser         tagcloud
                                                                                                                                         scm




                                                                                                                                                                                                             editor
Bin packing algortihm

• Clouds will take up as little space as
  possible
• Each word is surrounded by box
• Boxes are placed according to distance
  function
Disadvantages

• Slow
• Only produces pdf
• No words-inside-words effect
• Big words surrounded by a lot of space
Potential

• Active record extension
• Tweak word counting algortihm
• Output SVG
• Word links
• Speed
Help!


• Feedback
• Please hack away

Más contenido relacionado

Último

PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServicePicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServiceRenan Moreira de Oliveira
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
RAG Patterns and Vector Search in Generative AI
RAG Patterns and Vector Search in Generative AIRAG Patterns and Vector Search in Generative AI
RAG Patterns and Vector Search in Generative AIUdaiappa Ramachandran
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaborationbruanjhuli
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureEric D. Schabell
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 
Introduction to Quantum Computing
Introduction to Quantum ComputingIntroduction to Quantum Computing
Introduction to Quantum ComputingGDSC PJATK
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.francesco barbera
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopBachir Benyammi
 

Último (20)

PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServicePicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
RAG Patterns and Vector Search in Generative AI
RAG Patterns and Vector Search in Generative AIRAG Patterns and Vector Search in Generative AI
RAG Patterns and Vector Search in Generative AI
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability Adventure
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 
Introduction to Quantum Computing
Introduction to Quantum ComputingIntroduction to Quantum Computing
Introduction to Quantum Computing
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 Workshop
 

Lightning Talk

  • 1. Cloud a ruby word-cloud generator @ninajansen http://github.com/ninajansen/cloud/tree/master http://github.com/ninajansen/cloud_examples/tree/ master
  • 3. Wordle • Pretty wordclouds • Not open source • Only runs in browser • Secret algortihm
  • 4. Cloud • My first ruby gem • Runs in background • generates PDF-files • Ruby with inline C
  • 5. Cloud types • From text file • From rss feed • Frm del.icio.us account name
  • 6. Example from text engaged four battlefield add equal freedom power forth full field world might years struggled restingplace above resolve remaining created earth take detract final endure brought conceived war long devotion unfinished task nor cannot shall us living lives never civil perish increased god consecrated ground come nation continent people dead live died now measure met birth work fitting dedicated men far fathers portion larger note advanced dedicate hallow cause whether nobly new rather gave score sense say proper government forget remember vain fought seven little liberty consecrate altogether thus testing brave poor highly proposition honored ago last
  • 7. Example from rss feed svært rigtig skubbe lige projekt sagde siden fedt grunden ønsker trangen fest driller se sodavand drikke altid holder motion sang igår par tid livet helt laver træt bortset sammen tugter godt haft gang ridde elsker lettere igennem super gange skrevet arbejdet pga kreativt vildt lidt snart bare kærlighed håb gospel tage begge spiste maj end bliver skridt stå sagt cola nogle heste ting dag giver god handler smoothie får mazarinbund sige gået føler hård blev måde mine alkohol grund ofte sove hjem fremtiden længe tårer alt arbejde danmark sangen grine undskyld, han dine fået glad skønt dét
  • 8. Example from del.icio.us performance psychology graphics shoulda logic data fckeditor migrations presenters tdd copyright community ecommerce colors tests comic fonts acl google forum css maps rating pdf xml mongrel wordpress programming ruby sharing wiki ajax del.icio.us server culture capistrano chart gitosis download football guitar blog skepticism torrent starter rest games rspec talks algorithms bdd svg t-shirts socialnetworking howto science flickr backup rails mac authentication pirat television seinfeld git navigation ubuntu geek book iværksætter blogging tips creativity job deployment sport software plugins twitter books subversion search railsconf tutorials p2p ebooks ebook kort images astronomy database jobdatabase cloudcomputing ted fun calendar deprec realitytv versioncontrol visualization migration funny documentation nfl code humor tutorial berlin plugin technology cambridge tools iphone security cucumber cache atheism series reference cakephp business conference osx testing amazon i18n tv bittorrent development torrents linux cakephp1.2 opensource virksomhed framework startup test aws cake webcomic robots apple explorer api php javascript piracy entertainment travel jobdatabaser rss story music web denmark svn events web2.0 iplayer charts ent_fu webrat friendfeed walkthrough copenhagen globalize bil freelance danish comics line6 flash rjs s3 blogs shopping elenium skeptic fritid Civ4 perl jobsøgning entrepreneurship html oreilly localization religion shop tures puppet news media VC browser tagcloud scm editor
  • 9. Bin packing algortihm • Clouds will take up as little space as possible • Each word is surrounded by box • Boxes are placed according to distance function
  • 10. Disadvantages • Slow • Only produces pdf • No words-inside-words effect • Big words surrounded by a lot of space
  • 11. Potential • Active record extension • Tweak word counting algortihm • Output SVG • Word links • Speed

Notas del editor