A
alex23
This is a very old problem (still unsolved I believe):http://en.wikipedia..org/wiki/Ship_of_Theseus
+1 internets for referencing my most favourite thought experiment
ever
This is a very old problem (still unsolved I believe):http://en.wikipedia..org/wiki/Ship_of_Theseus
Renames and moves are performed, either by shell access or either by cPanel access by website owners.
This is trolling Ferrous. you are a troll. Go away
This is trolling Ferrous. you are a troll. Go away
These websites owners, are you charging them for this "service" you
provide?
You seriously need to read up on some fundamentals of how the web +
apache + Python works. As it stands, you're asking us to do your job
for you, and it's getting TEDIOUS with you TELLING us how WRONG we are.
Then you either need to tag them in some external way, or have some
kind of tracking operation - for instance, if you require that all
renames/moves be done through a script, that script can update its
pointer. Otherwise, you need magic, and lots of it.
ChrisA
Then you either need to tag them in some external way, or have some
kind of tracking operation - for instance, if you require that all
renames/moves be done through a script, that script can update its
pointer. Otherwise, you need magic, and lots of it.
ChrisA
Ferrous Cranus said:This python script acts upon websites other people use and every html
templates has been written by different methods(notepad++,
dreamweaver, joomla).
Renames and moves are performed, either by shell access or either by
cPanel access by website owners.
That being said i have no control on HOW and WHEN users alter their html pages.
No, it is difficult but not impossible.
It just cannot be done by tagging the file by:
1. filename
2. filepath
3. hash (math algorithm producing a string based on the file's contents)
We need another way to identify the file WITHOUT using the above attributes.
That wiki article gives a hint to a poosible solution -use a timestampThis is a very old problem (still unsolved I believe):
http://en.wikipedia.org/wiki/Ship_of_Theseus
Oscar
ALL, iam asking for is a way to make this work.
Perhaps we should look into on how's the OS handles the file to get an idea on how its done?
That wiki article gives a hint to a poosible solution -use a timestamp to
determine which key is valid when.
In the Ship of Theseus, it is only argued that it is the same ship
because people were aware of the incremental changes that took place
along the way. The same applies here: if you don't track the
incremental changes and the two files have nothing concrete in common,
what does it mean to say that a file is "the same file" as some older
file?
That being said, I've always been impressed with the way that git can
understand when I think that a file is the same as some older file
(though it does sometimes go wrong):
+1 internets for referencing my most favourite thought experiment
ever
Τη ΔευτÎÏα, 21 ΙανουαÏίου 2013 9:20:15 Ï€.μ.. UTC+2, ο χÏήστης Chris Angelico ÎγÏαψε:
Perhaps we should look into on how's the OS handles the file to get an idea on how its done?
Ive a computer whose OS I wanted to upgrade without disturbing the
existing setup. Decided to fit a new hard disk with a new OS.
Installed the OS on a new hard disk, fitted the new hard disk into the
old computer and rebooted.
The messages that started coming were: New Hardware detected: monitor,
mouse, network card etc etc. but not new disk!
Strange! The only one thing new is not seen as new but all the old
things are seen as new.
Under these circumstances the only way to solve it is to put an
identification *inside* the file and make sure it will not be changed.
It could for example be some invisible piece of HTML, or an attribute to
some tag. If that can't be done the problem cannot be solved and it
makes no sense keeping asking the same question over and over again.
Right, and that makes it impossible to solve this problem.
Think about some scenarios. Let's say I have a web site with two pages:
~/web/page1.html
~/web/page2.html
Now let's say I use some editor to make a copy of page1 called page1a.html.
~/web/page1.html
~/web/page1a.html
~/web/page2.html
Should page1a.html be considered the same page as page1.html? What if I
subsequently delete page1.html? What if I don't? How long will you wait
before deciding they are the same?
--
Tim Roberts, (e-mail address removed)
Providenza & Boekelheide, Inc.
No, i cannot, because it would mess things at a later time on when i for
example:
1. mv name.html othername.html (document's filename altered)
2. mv name.html /subfolder/name.html (document's filepath altered)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.