Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Well, there goes 5 hours!

Well, there goes 5 hours!

Scheduled Pinned Locked Moved The Weird and The Wonderful
sysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kmoorevs
    wrote on last edited by
    #1

    Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray! This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! :(( There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)

    "Go forth into the source" - Neal Morse

    F S 2 Replies Last reply
    0
    • K kmoorevs

      Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray! This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! :(( There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)

      "Go forth into the source" - Neal Morse

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      Use source control, either a local repository on both machines or (ideally) one with a repository both machines can access (if both have the internet you could use GitHub for example). I use SC even for my noddy projects on a local machine just in case stuff like this happens and anyone can mess up and once the code is overwritten it's gone.

      1 Reply Last reply
      0
      • K kmoorevs

        Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray! This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! :(( There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)

        "Go forth into the source" - Neal Morse

        S Offline
        S Offline
        Spoon Of Doom
        wrote on last edited by
        #3

        This is one of the many, many reasons to use some form of source control. With modern editors and IDEs, the overhead is negligible and it saves you so many headachese - this scenario being just one of them.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups