Cloud
          a ruby word-cloud generator
                  @ninajansen



 http://github.com/ninajansen/cloud/tree/mast...
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 batt...
Example from rss feed
                                               svært    rigtig
                     skubbe lige proj...
Example from
                      del.icio.us


                                                                         ...
Bin packing algortihm

• Clouds will take up as little space as
  possible
• Each word is surrounded by box
• Boxes are pl...
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
Upcoming SlideShare
Loading in...5
×

Lightning Talk

1,383

Published on

My lightning talk about "cloud", railsconf 2009

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

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

No notes for slide












  • Lightning Talk

    1. 1. Cloud a ruby word-cloud generator @ninajansen http://github.com/ninajansen/cloud/tree/master http://github.com/ninajansen/cloud_examples/tree/ master
    2. 2. Wordle
    3. 3. Wordle • Pretty wordclouds • Not open source • Only runs in browser • Secret algortihm
    4. 4. Cloud • My first ruby gem • Runs in background • generates PDF-files • Ruby with inline C
    5. 5. Cloud types • From text file • From rss feed • Frm del.icio.us account name
    6. 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. 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. 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. 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. 10. Disadvantages • Slow • Only produces pdf • No words-inside-words effect • Big words surrounded by a lot of space
    11. 11. Potential • Active record extension • Tweak word counting algortihm • Output SVG • Word links • Speed
    12. 12. Help! • Feedback • Please hack away
    1. A particular slide catching your eye?

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

    ×