how to keep all files by unduplicating them - sha

This is a bit of an odd request as its not necessarily coding related, but I have been using SHA256 to spot duplicate files. Unfortunately for one reason or another all duplicate files need to be kept and need to be amended slightly for a new SHA256 to be generated.
There are many solutions out there that will delete duplicate files etc, but I need a solution that will look for duplicates and as it finds a duplicate, try to unduplicate it.
As I am using pdf, doc and docx files, I was thinking of a solution that adds a blank page at the end of the document with a character. I have been doing this currently manually but something automated would be of much help.
Has anyone come across this issue or know of a possible solution?
Thank you for your help in advance,
Panos

Related

Excel stopped storing links with relative file path - what to do?

So, in my organization we have a shared drive with a number of Excel workbooks that link to each other. For years, this have worked according to Microsofts description here:
https://support.microsoft.com/en-us/topic/description-of-workbook-link-management-and-storage-in-excel-46628e8d-2cd6-db5f-3474-f8d7144b09d6
About a year ago, without any change from our side, all our links started behaving as absolute references instead of relative. This is a huge problem for us since it means we can't copy a folder with it's subfolders and have the files still link to each other. (For example, we want to take a structure of files and try out how a new scenario would affect them, or we want a copy of the structure but for a new time period.)
Does anyone know what might cause this problem?
Is there anything we can do to have the links stored as relative again?
I can't believe we're the only ones experiencing this, but I haven't been able to find anything on this problem this far.

Does anyone know of a text file of concepts?

Basically i was trying to make a "god generator" as part of another project and needed a txt file of "concepts" for them to be the gods of. Was just wondering if anyone had one or new where i could find one. I tried searching the internet (such as github and a basic google search) but nothing came up.

Is There a way to recover a severely corrupted EXCEL FILE?

I'm currently working on my data using Ms.Excel.
But suddenly the file that I'm working in was broken. when I tried to open it again I get error where it contain "ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" (See Picture).
Screenshoot Corrupted Excel File
The data was not really big, it's only arround 130KB. Besides, Autorecovery Mode was Turned On every 10 minutes. But I don't know How To use it.
I tried to solve the problem many times using below method:
First, I tried to check the "Ignore .... " in Excel Option.
Second, I tried Open and Repair the file, but still can't open it.
Third, I tried to use a third party, Using 2 Software (Stellar Phoenix Excel Repair And Recovery Tools For Excel). but Both not Working.
So I wonder if anyone can help me to get my data back? is there any way to recover the file? or is there a way to get the data within the file?
Thank you for all the suggestion you gave me, From the last comment I tried to get and extract the data using Programmer editor and using VBA, but both not give a good result, basically when you tried to extract the data when the file is corrupted it only get a unique character.
So here is my solution, since i'm using windows, I tried to Reinstall my Ms.Office and recover my Excel file on mac, and boom the magic worked.
Once again, thanks for your help.

Sell Excel file securely

I would like to sell an Excel file online. The main security goal is: one user / download.
I thought of an individual license key per download combined with somehow restricting the user to copy the content of the Excel file but at the same time make it possible to add content.
Any suggestions how to accomplish that or even have a better idea to solve the problem?
I would appreciate any help!
Look at LockXLS. I've used with some success. As others have mentioned, there is no built in way to protect your spreadsheet. Anyone can google how to use a hex editor to unlock Excel sheets and be on their merry way with your hard work in a matter of minutes, even if you are using some sort of vba protection. LockXLS is the best way I found to adequately protect a spreadsheet, but it does come with its own set of quirks. Download the trial and try it out. http://www.lockxls.com/product.asp

Writing updated data to an existing file in Python

The data file I am working with takes the format:
6345 Alfonso Chavez 98745.35
2315 Terry Kulakowski 234.0
4455 Yu Chen 78000.0
What I am trying to do is replace the balance(the last item in the line) with an updated balance which I have generated in my code. I'm not sure how to do this with an existing file without wiping the entire thing first, which is obviously not what I want. I was thinking a for loop to iterate over the line and split it into separate list elements, but that will update every users balance instead of the specific persons. Any help is appreciated.
If this is a text file, there is no great way of doing this. In general it's probably impossible/super hard to save changes in a text file without saving/rewriting the whole text file. Instead, what you should be focusing on is the fact that you need O(n) time to loop through the entire file looking for the specific person.
Having said all that, python module fileinput seems like a good way to do this. See this. You can set inplace=True to make it seem like you are just changing that single line in place.
But this is still O(n). It's just secretly rewriting the whole file for you behind your back.
Also some other solutions discussed here previously.

Resources