Re: Uniquely identifying each & every html template

2013-01-23 Thread Dave Angel
On 01/23/2013 07:39 PM, Chris Angelico wrote: On Thu, Jan 24, 2013 at 11:09 AM, Dave Angel wrote: I certainly can't disagree that it's easy to produce a very long hash that isn't at all secure. But I would disagree that longer hashes *automatically* reduce chances of collision. Sure. But by

Re: Uniquely identifying each & every html template

2013-01-23 Thread Chris Angelico
On Thu, Jan 24, 2013 at 11:09 AM, Dave Angel wrote: > I certainly can't disagree that it's easy to produce a very long hash that > isn't at all secure. But I would disagree that longer hashes > *automatically* reduce chances of collision. Sure. But by and large, longer hashes give you a better c

Re: Uniquely identifying each & every html template

2013-01-23 Thread Dave Angel
On 01/23/2013 06:25 PM, Chris Angelico wrote: On Wed, Jan 23, 2013 at 11:38 PM, Dave Angel wrote: You think it's an accident that md5 size is roughly equivalent to 39 decimal digits? Or that the ones that haven't been proven insecure are much larger than that? The sha512 hash is roughly equiv

Re: Uniquely identifying each & every html template

2013-01-23 Thread Chris Angelico
On Wed, Jan 23, 2013 at 11:38 PM, Dave Angel wrote: > You think it's an accident that md5 size is roughly equivalent to 39 decimal > digits? Or that the ones that haven't been proven insecure are much larger > than that? The sha512 hash is roughly equivalent to 154 decimal digits. Proving a has

Re: Uniquely identifying each & every html template

2013-01-23 Thread Dave Angel
On 01/23/2013 05:29 AM, Ferrous Cranus wrote: 1. I'am a troll because i want to generate a solution in a specific way? 2. Am' i not wasting my time trying to reply to everybody? 1) your username is obviously a pseudonym, and identified by multiple websites as a troll. Further, your actio

Re: Uniquely identifying each & every html template

2013-01-23 Thread alex23
On Jan 23, 8:29 pm, Ferrous Cranus wrote: > 1. I'am a troll because i want to generate a solution in a specific way? No, it's because you have the name & behaviour of a known type of troll: As has been pointed out: http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm "Ferrous Cranus i

Re: Uniquely identifying each & every html template

2013-01-23 Thread Ferrous Cranus
Τη Τετάρτη, 23 Ιανουαρίου 2013 2:03:51 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε: > On Wed, Jan 23, 2013 at 5:29 AM, Ferrous Cranus wrote: > > Τη Τετάρτη, 23 Ιανουαρίου 2013 11:37:29 π.μ. UTC+2, ο χρήστης alex23 έγραψε: > > > > On Jan 23, 7:12 pm, Ferrous Cranus wrote: > > > > > > > They

Re: Uniquely identifying each & every html template

2013-01-23 Thread Joel Goldstick
On Wed, Jan 23, 2013 at 5:29 AM, Ferrous Cranus wrote: > Τη Τετάρτη, 23 Ιανουαρίου 2013 11:37:29 π.μ. UTC+2, ο χρήστης alex23 > έγραψε: > > On Jan 23, 7:12 pm, Ferrous Cranus wrote: > > > > > They are getting frustrated because they do not want to follow the > logic i'am imposing. > > > > > > > >

Re: Uniquely identifying each & every html template

2013-01-23 Thread Ferrous Cranus
Τη Τετάρτη, 23 Ιανουαρίου 2013 11:37:29 π.μ. UTC+2, ο χρήστης alex23 έγραψε: > On Jan 23, 7:12 pm, Ferrous Cranus wrote: > > > They are getting frustrated because they do not want to follow the logic > > i'am imposing. > > > > No, it's because you're an obvious troll and you're wasting everyo

Re: Uniquely identifying each & every html template

2013-01-23 Thread Mark Lawrence
On 23/01/2013 09:37, alex23 wrote: On Jan 23, 7:12 pm, Ferrous Cranus wrote: They are getting frustrated because they do not want to follow the logic i'am imposing. No, it's because you're an obvious troll and you're wasting everyone's time. Now be a good lad and sod off. What an appalli

Re: Uniquely identifying each & every html template

2013-01-23 Thread alex23
On Jan 23, 7:12 pm, Ferrous Cranus wrote: > They are getting frustrated because they do not want to follow the logic i'am > imposing. No, it's because you're an obvious troll and you're wasting everyone's time. Now be a good lad and sod off. -- http://mail.python.org/mailman/listinfo/python-li

Re: Uniquely identifying each & every html template

2013-01-23 Thread Ferrous Cranus
Τη Τρίτη, 22 Ιανουαρίου 2013 11:08:57 μ.μ. UTC+2, ο χρήστης Dennis Lee Bieber έγραψε: > On Mon, 21 Jan 2013 22:49:31 -0800 (PST), Ferrous Cranus > > declaimed the following in > > gmane.comp.python.general: > > > > > You are right, it cannot be done. > > > > > > So i have 2 options . > >

Re: Uniquely identifying each & every html template

2013-01-23 Thread Ferrous Cranus
Τη Τετάρτη, 23 Ιανουαρίου 2013 1:55:07 π.μ. UTC+2, ο χρήστης Michael Torrie έγραψε: > You refuse to use a database in a way that it was designed to be used. > > If you're unwilling to identify a file based on name, path, and > > contents, then you're only solution is to use a database to associ

Re: Uniquely identifying each & every html template

2013-01-22 Thread alex23
On Jan 22, 10:04 am, Chris Angelico wrote: > My family in fact has a literal "grandfather's axe" (except that I > don't think either of my grandfathers actually owned it, but it's my > Dad's old axe) that has had many new handles and a couple of new > heads. Ah, that's brilliant, I hadn't heard t

Re: Uniquely identifying each & every html template

2013-01-22 Thread Michael Torrie
On 01/21/2013 08:00 AM, Ferrous Cranus wrote: > Τη Δευτέρα, 21 Ιανουαρίου 2013 2:47:54 μ.μ. UTC+2, ο χρήστης Joel > Goldstick έγραψε: >> This is trolling Ferrous. you are a troll. Go away > > Just because you cannot answer my question that doesn't make me a > troll you know. It becomes trolling

Re: Uniquely identifying each & every html template

2013-01-22 Thread John Gordon
In <5dd4babd-716d-4542-ad36-e6a841b73...@googlegroups.com> Ferrous Cranus writes: > > If that's the case, then I figure you have about 3 choices: > > 1) use the file path as your key, instead of requiring a number > No, i cannot, because it would mess things at a later time on when i for > exam

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Τρίτη, 22 Ιανουαρίου 2013 6:04:09 π.μ. UTC+2, ο χρήστης Tim Roberts έγραψε: > Ferrous Cranus wrote: > > > > > >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

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 10:48:11 μ.μ. UTC+2, ο χρήστης Piet van Oostrum έγραψε: > Ferrous Cranus writes: > > > > > This python script acts upon websites other people use and every html > > > templates has been written by different methods(notepad++, > > > dreamweaver, joomla). > > >

Re: Uniquely identifying each & every html template

2013-01-21 Thread Chris Angelico
On Tue, Jan 22, 2013 at 2:24 PM, rusi wrote: > 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 t

Re: Uniquely identifying each & every html template

2013-01-21 Thread rusi
On Jan 21, 8:07 pm, Ferrous Cranus wrote: > Τη Δευτέρα, 21 Ιανουαρίου 2013 9:20:15 π.μ. UTC+2, ο χρήστης Chris Angelico > έγραψε: > > > > > > > > > > > On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus > > wrote: > > > > An .html page must retain its database counter value even if its: > > > > (r

Re: Uniquely identifying each & every html template

2013-01-21 Thread Tim Roberts
Ferrous Cranus wrote: > >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. Right, and that makes it impossible to solve this problem. Think about some scenari

Re: Uniquely identifying each & every html template

2013-01-21 Thread Tim Roberts
Ferrous Cranus wrote: > >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. Th

Re: Uniquely identifying each & every html template

2013-01-21 Thread rusi
On Jan 21, 5:55 pm, alex23 wrote: > On Jan 21, 10:39 pm, Oscar Benjamin > wrote: > > > 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 :) +2 Oscar for giving me th

Re: Uniquely identifying each & every html template

2013-01-21 Thread Chris Angelico
On Tue, Jan 22, 2013 at 10:43 AM, Oscar Benjamin wrote: > On 21 January 2013 23:01, Tom P wrote: >> On 01/21/2013 01:39 PM, Oscar Benjamin wrote: >>> This is a very old problem (still unsolved I believe): >>> http://en.wikipedia.org/wiki/Ship_of_Theseus >>> >> That wiki article gives a hint to a

Re: Uniquely identifying each & every html template

2013-01-21 Thread Oscar Benjamin
On 21 January 2013 23:01, Tom P wrote: > On 01/21/2013 01:39 PM, Oscar Benjamin wrote: >> >> On 21 January 2013 12:06, Ferrous Cranus wrote: >>> >>> Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris >>> Angelico έγραψε: Seriously, you're asking for something that'

Re: Uniquely identifying each & every html template

2013-01-21 Thread alex23
On Jan 22, 1:07 am, Ferrous Cranus wrote: > Perhaps we should look into on how's the OS handles the file to get an idea > on how its done? Who is this "we" you speak of? You mean "you", right? You do that and get back to us when you believe you've found something that helps. -- http://mail.py

Re: Uniquely identifying each & every html template

2013-01-21 Thread alex23
On Jan 22, 1:03 am, Ferrous Cranus wrote: > ALL, iam asking for is a way to make this work. No, ALL you are asking is for us to take an _impossible_ situation and make it magically work for you, without your having to improve your understanding of the problem or modifying your requirements in any

Re: Uniquely identifying each & every html template

2013-01-21 Thread Tom P
On 01/21/2013 01:39 PM, Oscar Benjamin wrote: On 21 January 2013 12:06, Ferrous Cranus wrote: Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: Seriously, you're asking for something that's beyond the power of humans or computers. You want to identify that

Re: Uniquely identifying each & every html template

2013-01-21 Thread Dave Angel
On 01/21/2013 07:06 AM, Ferrous Cranus wrote: Seriously, you're asking for something that's beyond the power of humans or computers. You want to identify that something's the same file, without tracking the change or having any identifiable tag. That's a fundamentally impossible task.

Re: Uniquely identifying each & every html template

2013-01-21 Thread Piet van Oostrum
Ferrous Cranus writes: > 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

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 9:20:15 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus wrote: > > > An .html page must retain its database counter value even if its: > > > > > > (renamed && moved && contents altered) > > > > Then you either nee

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 2:56:24 μ.μ. UTC+2, ο χρήστης alex23 έγραψε: > On Jan 21, 7:19 pm, Ferrous Cranus wrote: > > > Renames and  moves are performed, either by shell access or either by > > cPanel access by website owners. > > > > These websites owners, are you charging them for thi

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 2:47:54 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε: > This is trolling Ferrous.  you are a troll.  Go away Just because you cannot answer my question that doesn't make me a troll you know. -- http://mail.python.org/mailman/listinfo/python-list

Re: Uniquely identifying each & every html template

2013-01-21 Thread alex23
On Jan 21, 7:19 pm, Ferrous Cranus wrote: > Renames and  moves are performed, either by shell access or either by cPanel > access by website owners. 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 + a

Re: Uniquely identifying each & every html template

2013-01-21 Thread alex23
On Jan 21, 10:39 pm, Oscar Benjamin wrote: > 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 :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Uniquely identifying each & every html template

2013-01-21 Thread Joel Goldstick
This is trolling Ferrous. you are a troll. Go away On Mon, Jan 21, 2013 at 7:39 AM, Oscar Benjamin wrote: > On 21 January 2013 12:06, Ferrous Cranus wrote: > > Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris > Angelico έγραψε: > >> > >> Seriously, you're asking for somethi

Re: Uniquely identifying each & every html template

2013-01-21 Thread Oscar Benjamin
On 21 January 2013 12:06, Ferrous Cranus wrote: > Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris Angelico > έγραψε: >> >> Seriously, you're asking for something that's beyond the power of >> humans or computers. You want to identify that something's the same >> file, without

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Mon, Jan 21, 2013 at 8:19 PM, Ferrous Cranus wrote: > > > This python script acts upon websites other people use and > > > every html templates has been written by different methods(notepad++, > > dreamwe

Re: Uniquely identifying each & every html template

2013-01-21 Thread Chris Angelico
On Mon, Jan 21, 2013 at 8:19 PM, Ferrous Cranus wrote: > 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 > a

Re: Uniquely identifying each & every html template

2013-01-21 Thread Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 9:20:15 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus wrote: > > > An .html page must retain its database counter value even if its: > > > > > > (renamed && moved && contents altered) > > > > Then you either nee

Re: Uniquely identifying each & every html template

2013-01-20 Thread Chris Angelico
On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus wrote: > An .html page must retain its database counter value even if its: > > (renamed && moved && contents altered) Then you either need to tag them in some external way, or have some kind of tracking operation - for instance, if you require that

Re: Uniquely identifying each & every html template

2013-01-20 Thread Ferrous Cranus
Τη Σάββατο, 19 Ιανουαρίου 2013 11:00:15 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε: > On 01/19/2013 03:39 AM, Ferrous Cranus wrote: > > > Τη Σάββατο, 19 Ιανουαρίου 2013 12:09:28 π.μ. UTC+2, ο χρήστης Dave Angel > > έγραψε: > > > > > >> I don't understand the problem. A trivial Python script could

Re: Uniquely identifying each & every html template

2013-01-20 Thread Ferrous Cranus
Τη Σάββατο, 19 Ιανουαρίου 2013 11:32:41 μ.μ. UTC+2, ο χρήστης Dennis Lee Bieber έγραψε: > On Sat, 19 Jan 2013 00:39:44 -0800 (PST), Ferrous Cranus > > declaimed the following in > > gmane.comp.python.general: > > > We need to find a way so even IF: > > > > > > (filepath gets modified && fil

Re: Uniquely identifying each & every html template

2013-01-19 Thread Dave Angel
On 01/19/2013 03:39 AM, Ferrous Cranus wrote: Τη Σάββατο, 19 Ιανουαρίου 2013 12:09:28 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε: I don't understand the problem. A trivial Python script could scan through all the files in the directory, checking which ones are missing the identifier, and rewrit

Re: Uniquely identifying each & every html template

2013-01-19 Thread Ferrous Cranus
Τη Σάββατο, 19 Ιανουαρίου 2013 12:09:28 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε: > I don't understand the problem. A trivial Python script could scan > > through all the files in the directory, checking which ones are missing > > the identifier, and rewriting the file with the identifier adde

Re: Uniquely identifying each & every html template

2013-01-18 Thread Ferrous Cranus
Τη Παρασκευή, 18 Ιανουαρίου 2013 10:59:17 μ.μ. UTC+2, ο χρήστης John Gordon έγραψε: > Instead of inserting unique content in every page, can't you use the > document path itself as the identifier? No, i cannot, becaue it would mess things at later time when i for example: 1. mv name.html other

Re: Uniquely identifying each & every html template

2013-01-18 Thread Dave Angel
On 01/18/2013 03:48 PM, Ferrous Cranus wrote: I use this .htaccess file to rewrite every .html request to counter.py # = RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRul

Re: Uniquely identifying each & every html template

2013-01-18 Thread John Gordon
In <8deb6f5d-ff10-4b36-bdd6-36f9eed58...@googlegroups.com> Ferrous Cranus writes: > Problem is that i have to insert at the very first line of every .html > template of mine, a unique string containing a number like: > index.html > somefile.html > other.html > nikos.html >