• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Overwritten script!!!

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 4 Posters 274 Views 4 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.
  • B Offline
    bomastudio
    last edited by 27 Apr 2014, 17:35

    I accidentally overwritten a file *.rb with a *.html (generated by the script) that is loaded at this time in SU. Is there a way to recover it?

    1 Reply Last reply Reply Quote 0
    • E Offline
      eneroth3
      last edited by 28 Apr 2014, 10:14

      How can something.html overwrite something.rb? The file names differs.

      My website: http://julia-christina-eneroth.se/

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dan Rathbun
        last edited by 28 Apr 2014, 19:06

        It seems like he wrote the HTML file using the ".rb" extension, instead of the ".html" extension.
        This could happen by using __FILE__, instead of:
        File.join( File.dirname(__FILE__), File.basename(__FILE__,".rb"), ".html" )

        ?

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dan Rathbun
          last edited by 28 Apr 2014, 19:09

          It might help (in the future,) to use an editor with an auto-backup feature.

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • D Offline
            driven
            last edited by 29 Apr 2014, 00:03

            did you type it directly into 'Ruby Console' and is the session still open?

            if so, you can use the 'up arrow' to go back to it, otherwise it's a learning experience...

            EDIT: should have read the post in detail first, but I'll leave this up for others...

            if your on linux what editor did you write it in, most have history...

            john

            learn from the mistakes of others, you may not live long enough to make them all yourself...

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

            Advertisement