Shoes

1,371 views
1,238 views

Published on

LV Ruby Group Meetup from 8/24/11 Presentation on Ruby Shoes.

1 Comment
1 Like
Statistics
Notes
  • We can supply : Desiccant packets , TOP ONE Anti-mold chip/sticker for shoes .

    Function : Absorb moisture keep dry ; Resist mildew effectively ,keep shoes healthy !

    Any further requirement , please refer Facebook: Dingxingdesiccant
    Or talk to me on Skype: Keenest696
    E-mail: scottzhong@dg-dx.com
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
1,371
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
17
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Shoes

  1. 1. SHOES!!!<br />policeman (3.0)<br />sweet desktop apps in ruby<br />Jeremy Woertink<br />
  2. 2. Making sweet sweet love to desktop apps<br />
  3. 3. <ul><li>Cross OS Compatible</li></ul>Win 7, Vista, XP; OSX Tiger, Leopard, Snow (Lion coming soon); Ubuntu<br /><ul><li>Uses Ruby (1.9.1. no need for a pre-install)
  4. 4. Easy to learn API
  5. 5. Built with Cairo (http://cairographics.org/)</li></li></ul><li>The "Tiny Toolkit"<br /><ul><li>Sketchy video support
  6. 6. No tabbed controls
  7. 7. No toolbars
  8. 8. No Web controls</li></li></ul><li>LUCKILY......<br />...everything can be simulated in some way.<br />
  9. 9. Dirty Shoes<br />
  10. 10. How does it work?<br /><ul><li>No effing clue.....</li></ul>Chipmunk, bloopsaphone, sqlite, C stuff, built-in ruby, NodeBox, Processing.....<br />
  11. 11. Poor Shoes<br />
  12. 12. What are some downsides?<br /><ul><li>C-extension gems(special compilation needed)
  13. 13. Different Linux distros(some don't work)
  14. 14. Strict Ruby version(1.9.1 with related issues)
  15. 15. No UI Helpers(no drag and drop UI like Visual Studio)
  16. 16. Windows memory management *
  17. 17. Weak "graphic" support(color, gradient, resizing issues)</li></ul>Don't fret! It's still in active development :)<br />
  18. 18. Clown Shoes?<br />
  19. 19. What the hell is it for?<br /><ul><li>Learning Programming
  20. 20. Learning Ruby
  21. 21. Passing time
  22. 22. Building small "widget" apps
  23. 23. Mini games (tetris clone, etc)
  24. 24. http://the-shoebox.org/</li></li></ul><li>Running Shoes!<br />
  25. 25. Getting started<br /><ul><li>Download (http://shoesrb.com/downloads)
  26. 26. Install
  27. 27. Create *.rb file with code
  28. 28. Read some tutorials
  29. 29. http://cloud.github.com/downloads/shoes/shoes/nks.pdf
  30. 30. http://shoesrb.com/manual/Hello.html
  31. 31. https://github.com/ashbb/shoes_tutorial_walkthrough
  32. 32. Run!</li></li></ul><li>Simple shoes<br />
  33. 33. Lets see some code!<br /> Shoes.app do<br /> para "Hello World"<br /> end<br />
  34. 34. That's it! Questions?<br />
  35. 35. JUST KIDDING!<br />
  36. 36. Ok, here's more examples<br /> Shoes.app:title=>'Sample'do<br />button"Click"do<br />alert"WHOA!"<br />end<br />end<br />
  37. 37. and more....<br /> Shoes.app:width=>640,:height=>480do<br />background"#f90"<br />@self=self<br />button"Change Color"do<br />bgcolor=ask_color("Pick a new background color") <br /> @self.appdo<br />background bgcolor<br />end<br /> end <br /> end<br />
  38. 38. and more....<br />Shoes.appdo<br />@self =self<br /> left, top =nil, nil<br /> line_sizes = {large:10, medium:5, small:1}<br /> line_color, line_width = red, line_sizes[:medium]<br /> stroke line_color<br /> strokewidth line_width <br /> animate 24do<br /> b, x, y = @self.mouse <br /> line(left, top, x, y) if b ==1<br /> left, top = x, y <br />end<br /> button("clear") { background "#fff" }<br /> button("New Color") { @self.stroke ask_color("Pick a new background color") } <br /> list_box items: ["Large", "Medium", "Small"], choose:'Medium'do |selected|<br /> @self.strokewidth line_sizes[selected.text.downcase.to_sym]<br />end<br />end<br /># BAM! Paint program in 18 lines of ruby :)<br />
  39. 39. What else is there?<br />
  40. 40. Just a few things....<br /><ul><li>images (background, image, drawing)
  41. 41. file diaglog (save, open)
  42. 42. download (like XMLHttpRequest)
  43. 43. text fields
  44. 44. text areas
  45. 45. radio buttons
  46. 46. check boxes
  47. 47. progress bar
  48. 48. video support
  49. 49. links
  50. 50. timers for events
  51. 51. paragraphs and headers
  52. 52. multiple windows</li></ul>Check the manual for more:<br /> http://shoesrb.com/manual/Shoes.html<br />
  53. 53. Your turn.<br />

×