data is missing from text files - restart

I am using notepad to edit my php files on my desktop, and then suddenly, due to power loss, system restarted. After logging in, every file is not having any data. But, file's size is same as before (i.e 22kb). could anyone explain this behavior ?
thanks in advance.

Related

Powershell GUI displaying text file

I have an app I developed and made a GUI for. In one of the directories I have a log.txt file.
I have a strip menu option meant to display the log file to the user. I'm wondering what would be the best method for displaying this log file?
Right now I'm just using
notepad log.txt
Which technically works but doesn't seem to be the most efficient or professional way.
I'm guessing it is probably just opening another form with a large read only text box but on the off chance someone has something that works even better I'll appreciate the suggestion.
Info displayed in log is:
Version
Description
Date

Powershell to find all the saved time & saved by for one single file

We have couple excel files are used by several departments, and we would like to track on user and saved time. excel can read some info, but not accurate if the file got recovered.
For these files, they can be updated, then got recovered to prior version. There is a need to share all info upon time and user that saved the file in the last month.
Is it achievable by using powershell codes ?
Thank you for your time in advance.
May

File uploads from Google Drive using Safari on iPhone result in 0 byte files

We have a form on our website where you can apply for jobs, and it has a file upload field so you can upload your resumé. It allows .doc, .docx and .pdf files.
Sometimes the form submits successfully but the file is 0 bytes on our server.
I was able to figure out that all the form submissions that result in a 0 byte file upload were from iPhones, and by filling out the form myself on my iPhone, discovered that if the resumé is stored on Google Drive, and then I upload it via the form, that's what results in the 0 byte file.
If it's stored on iCloud Drive, then it's fine. It's an appropriately sized file that opens properly in the right application (Acrobat or Word).
Anybody have any suggestions as to how I can remedy the situation, or where to even start? I have Googled it extensively, and can't find any other discussion of this particular weirdness. Apologies if this is the wrong place to post the question, and I would appreciate pointers to the right place if necessary.
I'm afraid this is an iOS bug, still present in version 12.3.1 and dating back to at least 2016, we have the same issue. I think the only options that exist are: prevent the form being used on iOS, detect 0 byte files in server-side validation and ask the user to resubmit (not great but at least you're not losing data), or move to an AJAX-style file upload. See also this related issue.

Anyone have file structure documentation for Windows Live Mail contacts.edb file?

Does anyone have any documentation or info on the file structure of the contacts.edb file as it is used in Windows Live Mail? I can't seem to find any way to import file back into WLM (I'm told it HAS no way, and must be "backed up" via manual exports to CSV files).
Given the apparent lack of means to reimport a backed up EDB file, I figured that perhaps I could just write a program to read all the contacts out into vcards or something, and then import those. (I'm actually looking ultimately to get them into Outlook, and ditch WLM for this user, cuz I don't feel like dealing with these maintenance headaches).
Problem is that I cannot find anywhere any information on the file format/structure for WLM's EDB files.
Thanks in advance, any help GREATLY appreciated!
To anyone finding this in the future, THIS CAN BE DONE, without needing to code anything! Use this program - EseDbViewer - to export the file to a CSV file, and then you can import that where ever you want.
Note that you pretty much need the whole file structure containing the edb, not just the edb file.
Hat-tip to #MicrosoftHelps on twitter.

Prevent Save As Functionality

I need to prevent a document from being saved / saved as (say from ms word). I've looked around and I havn't quite found a satifying answer. I've considered EFS... but I don't think it prevents the user from saving the document as... (though it prevents access to the original source file). Any ideas outthere?
Run it on completely locked-down system with read-only disk, no network and no removable drives. Access to the computer must be phisically restricted as well.
This should prevent Save As from working, but still won't prevent document from being copied (someone may take photo of the screen and OCR it).
It usually isn't worth it to disable Save As, because you need access to the original in order to open it in the first place. There are always ways to copy a file.
I had the same issue come up when someone asked me to disable Save As for a PDF.
There is no way take an arbitrary document and modify it in such a way that it cannot be saved. You could modify a program such as Word not to allow Save or Save As but that would still allow someone to open and save the document with a different program or on a different machine.