sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    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.
    • bomastudioB Offline
      bomastudio
      last edited by

      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
      • eneroth3E Offline
        eneroth3
        last edited by

        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
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          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
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            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

              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
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement