My coding environment costs of editing files directly on the server via NFS. It's just easier because everything is then backed up centrally, is on raid, and if my workstation crashes or I decide to reload my OS, the files are on the dev server. In the case of web apps it's also nice to be able to run them directly. Ex: simply hit refresh in the browser after editing code.
Anyway I seem to often run into weird issues where even a plain text file does not load, or load correctly, it seems to be random and depends on the text editor I open it with. I have posted about it before but the more I run into these things the more I think I have something weird going on my network.
Basically I often run into a situation where a certain text file fails to open. I've never even heard of that before, it's just text! But it will fail to load like a corrupted file would fail to load in an office suite. Sometimes another editor will open it, or I can use "cat" etc but in a specific editor it will just error out saying the encoding is wrong or something. But now a new problem, I have some files that open fine in my text editor, but in Vim, there are no returns. Everything is just jumbled up together.
I don't really understand how this whole encoding thing works, but from what I do understand it means the file is the "wrong" encoding when it fails to load. I assume it should be UTF-8, on typical storage devices as bytes are 8 bits and 1 byte = 1 character. Somehow, it seems my files are somehow not always registering in that format and that's where I get weird corruption issues. I have even run into files that open fine in one editor but in another look like chinese.
Could it be some kind of NFS setting that is causing this to happen? Or rsync/ssh? Where would be a good place to look to figure out what is causing files to get "formated" wrong?
Anyway I seem to often run into weird issues where even a plain text file does not load, or load correctly, it seems to be random and depends on the text editor I open it with. I have posted about it before but the more I run into these things the more I think I have something weird going on my network.
Basically I often run into a situation where a certain text file fails to open. I've never even heard of that before, it's just text! But it will fail to load like a corrupted file would fail to load in an office suite. Sometimes another editor will open it, or I can use "cat" etc but in a specific editor it will just error out saying the encoding is wrong or something. But now a new problem, I have some files that open fine in my text editor, but in Vim, there are no returns. Everything is just jumbled up together.
I don't really understand how this whole encoding thing works, but from what I do understand it means the file is the "wrong" encoding when it fails to load. I assume it should be UTF-8, on typical storage devices as bytes are 8 bits and 1 byte = 1 character. Somehow, it seems my files are somehow not always registering in that format and that's where I get weird corruption issues. I have even run into files that open fine in one editor but in another look like chinese.
Could it be some kind of NFS setting that is causing this to happen? Or rsync/ssh? Where would be a good place to look to figure out what is causing files to get "formated" wrong?