Did... I... Just... Lose... EVERYTHING!?

I literally just got all of the images posted for my website’s navigation bar, and was putting them into my CSS file. Then all of the sudden my computer crashed? I’m not sure if it was a crash or what, all I know it it shutoff then when I load it back up everything seems normal… I load my website back up, and all files are working perfectly except my CSS FILE! The most important one to my website, that’s where I put in all of my coding… I load it and it just says “NULL” over, and over! Programming in the past taught me that that is a bad, bad sign… is there anyway I can recover this?

Since you have the file open and it looks pooched… I would say nope. Sorry, it sucks.

On the upside, thing how much faster it will be to build second time! :wink:

Almost looks to me like an FTP issue… may have xferred in binary mode and hosed it up instead of ascii / text mode. It’s also possible I suppose that the encoding type is wrong on the file. It’s hard telling though… all those “nulls” you see are actually basically null bytes written into your file (0x00 or char code 00).

For future projects, you should use scm like git

Source control?

I never touched the encoding myself, and do you think it can be recovered or should I just restart…

SCM what is that?

Check your browser cache. Maybe check all your browsers (if you happened to be testing multiple browsers or platforms). If you sent the links to any friends/family to look at, you may find it there.

Is this a local server then? If so, which? Maybe there is some subsystem logging that stuffed it somewhere.

You can also check here if , its a long shot:
https://archive.org/web/
Maybe they snapped it (unlikely but worth a shot).

Grasping at air here but you get the picture, it may be hiding somewhere. Those CSS files are tiny flat files, easy to cache.

Time to go mad, just re-created my CSS File. :expressionless:

EDIT Sorry about being off topic from Unity guys, I honestly thought it would be a quick one comment knock out, but sadly it went south.

Google for “Version Control” and do some reading.

Then pick one* and start using it.To make this easier I suggest checking out 3rd party hosting providers.

Then enjoy an easier, safer, more care free life. :slight_smile:

  • I personally recommend either Git or Mercurial, but there are plenty of options.

Why is it nobody backs up? What’s wrong with people? We have a total of 6 automatic backups that are done through the day. Some are incremental, some version control, and backups to another hard drive at the end of the day. We don’t touch anything - its part of the workflow and automated.

Every developer needs to do this. It doesn’t take a whole lot of research to figure out a good automatic backup process that works for you. Why risk it?

4 Likes

As it appears you are Windows 8, you should look into its File Versioning:

http://blogs.msdn.com/b/b8/archive/2012/07/10/protecting-user-files-with-file-history.aspx

Can you check your browser cache, if an old copy of the CSS exists? :frowning:

All of you guys are telling me to look in my browser cache, I am building this from the most advanced software ever… Notepad. Haha, though it may be Notepad ++, I rarely use the web browser unless I am doing a quick check to make sure I like the design I’ve input. Anyways, thank you guys for all of your help.

zombiegorilla - I was thinking ages, but shoot I’m almost done already. Messed something up, and found out it was actually a better way of taking care of things. :smile:

But you have to look at it in your browser to see if it’s working. Hence, the browser may have cached it. It has nothing to do with what you’re using to edit the text.

Also, more people are telling you to look into version control of some kind (5 of us) or another than are telling you to look at your browser cache (2 of us). :wink:

1 Like

Doesn’t matter - if the website has been viewed in your browser at least once there should (might) be a temp copy of all the files in the cache.

This is why I store my current work in dropbox directories - you can view recent file history (assuming you save frequently).

not so sure even a SCM would have helped in this case as his computer crashed while making a change… unless their had been automated commits happening (?)

these are the times when you need something really simple like Windows 8 file history in action for your project folder, easy setup, easy to use for very very simple local cache history, and longer term version retention (to like an external device or server)

totally automated, with snapshots from 10 minutes to 12 hours… it’s helpful, not 100% perfect.

1 Like

Very regular backups to separate machine, and preferrably to an off-site machine as well. It may sound dumb, but weekly I mail an SD card to my folks with a complete backup on it. Only needed it once, but was I ever glad of it.

No method of backing up can ever be 100%, but really helps for those doh!, oops!, or arggghhh! moments.

This doesn’t really have anything to do with Unity.