sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Ruby Docs

    Scheduled Pinned Locked Moved Developers' Forum
    16 Posts 6 Posters 1.9k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      @dan rathbun said:

      @honoluludesktop said:

      ... I often need a more baby one. Any suggestions?

      How about a Ruby Cheatsheet?

      Ruby QuickRef
      http://www.zenspider.com/Languages/Ruby/QuickRef.html

      πŸ‘

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        This should be a matter of exporting and sharing our ruby docs bookmarks, but somehow exporting a sub-set is not an option. How can bookmark support be so poor in Firefox?

        Hi

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          @jim said:

          This should be a matter of exporting and sharing our ruby docs bookmarks, ...

          Well in IE, the bookmarks (favorites,) are nothing more than folders with shortcut (.lnk) files in them. They are the same as the StartMenu folders.

          Can you IMPORT the Firefox bookmarks into MSIE favorites (using something built-in to MSIE) ??

          But does the Mac use .lnk files?

          How about a script (in some scripting language,) that can go thru a folder of .lnk files, and write out an HTML page, converting the info in each .lnk file to a standard HTML <A> element??

          Seems we are condemned to jump thru hoops and always take the long way around, to do anything that should be simple. 😒

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            @dan rathbun said:

            How about a script (in some scripting language,) that can go thru a folder of .lnk files, and write out an HTML page, converting the info in each .lnk file to a standard HTML <A> element??

            UPDATE: They are NOT LNK files, they are TXT files with no extension.
            Here's the file contents for the QucikRef link I posted above.

            [DEFAULT]
            BASEURL=http://www.zenspider.com/Languages/Ruby/QuickRef.html
            [InternetShortcut]
            URL=http://www.zenspider.com/Languages/Ruby/QuickRef.html#36
            IDList=
            IconFile=http://www.zenspider.com/favicon.ico
            IconIndex=1
            [{000214A0-0000-0000-C000-000000000046}]
            Prop3=19,2
            
            

            The file name is the "favorite/bookmark title".
            I think the GUID section is the Windows CLSID of the Internet Shortcut Handler.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • M Offline
              MartinRinehart
              last edited by

              @dan rathbun said:

              How about a Ruby Cheatsheet?

              Ruby QuickRef
              http://www.zenspider.com/Languages/Ruby/QuickRef.html

              Excellent!

              I took the liberty of converting the cheatsheet to lowercase tags and attributes, then fiddled with the TOC a bit. I've written the author requesting permission to continue fiddling.


              ruby_quickref.zip

              Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                @martinrinehart said:

                Excellent!

                By the way there is more Ruby stuff if you go up on level to his "Ruby" folder, and more stuff on other languages if up go up to his "Language Freak" level.

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  Found a better version of the 'Pick-Axe' Ruby book online:
                  The layout is much better (tables listing methods are much more clear.)

                  There is a link to download the entire site as a tar

                  Programming Ruby

                  favicon

                  (phrogz.net)

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • Chris FullmerC Offline
                    Chris Fullmer
                    last edited by

                    Oooh I like that Dan! Thanks!

                    Chris

                    Lately you've been tan, suspicious for the winter.
                    All my Plugins I've written

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MartinRinehart
                      last edited by

                      @dan rathbun said:

                      Found a better version of the 'Pick-Axe'

                      Great stuff!

                      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                      1 Reply Last reply Reply Quote 0
                      • Dan RathbunD Offline
                        Dan Rathbun
                        last edited by

                        post moved

                        @wsellers89 said:

                        Is there a good reference or tutorials for learning more about Ruby on SketchUp?

                        Free downloadable PDF version of "Automatic SketchUp" at Google Docs (Look for the download link in the upper-left of toolbar.)
                        EDIT: As of JULY 2010 Google reports "Sorry, the page (or document) you have requested is not available." Try the author's website: Automatic Sketchup

                        You ALSO need to learn some standard Ruby, the old 'Pick-Axe' book "The Pragmatic Programmer's Guide: Programming Ruby"
                        http://phrogz.net/ProgrammingRuby/frameset.html
                        (There is a tar download link at the bottom of the left pane.)

                        @wsellers89 said:

                        I am experienced in Fortran and to a less extent C, but I can follow most of the the code.

                        The weirdest thing about Ruby (and it's kept secret from newbies, I guess to surprise them in the advanced course?,) is that Ruby has no actual variables like BASIC, Pascal, or FORTRAN. Read this post for more info:
                        [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=26437#p230201:2y8qpfiu]By value or by reference?[/url:2y8qpfiu]
                        I personally would ALWAYS tell experienced programmers about this FIRST thing, as it can and has led to much wasted time and frustration.

                        @wsellers89 said:

                        I am not sure what ".to_f" does in the loop to parse out the x,y points and would like to know more.

                        Converts the object (on the left of the dot,) to a Float class.
                        This is one of the standard Ruby instance methods.
                        [url=http://phrogz.net/ProgrammingRuby/builtins.html#builtinclassesandmethods:2y8qpfiu]Built-In Class and Methods[/url:2y8qpfiu]

                        This old 'Pick-Axe' version was written for Ruby 1.6.x, but still helps alot. Sketchup is using the 1.8.x branch, but the book is still say 95% valid. Ver 1.8.x renamed a few Exceptions, added some more methods, etc. (There are updated hardcopy books available for sale for the 1.8.x and 1.9.x branch. Check booksellers or Ebay.)

                        Other Topics here at SketchUcation on Ruby Programming:
                        [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=10142:2y8qpfiu]SketchUp-Ruby Resources[/url:2y8qpfiu]
                        [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=20427:2y8qpfiu]Developer Forum Sticky Links[/url:2y8qpfiu]
                        [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=27606:2y8qpfiu]Ruby Docs[/url:2y8qpfiu] this topic

                        (pssst! You can bookmark topics and access your bookmarks through your User Control Panel. The link is a the top left of each forum just below the list of Moderators. The bookmark button is hidden all the way at the bottom of each topic webpage in the footerbar.)

                        I'm not here much anymore.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement