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 associate

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 nikos.gr...@gmail.com 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 alex23
On Jan 23, 7:12 pm, Ferrous Cranus nikos.gr...@gmail.com 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. --

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 nikos.gr...@gmail.com 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

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 nikos.gr...@gmail.com 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

Re: Uniquely identifying each every html template

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

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 nikos...@gmail.com wrote: Τη Τετάρτη, 23 Ιανουαρίου 2013 11:37:29 π.μ. UTC+2, ο χρήστης alex23 έγραψε: On Jan 23, 7:12 pm, Ferrous Cranus

Re: Uniquely identifying each every html template

2013-01-23 Thread alex23
On Jan 23, 8:29 pm, Ferrous Cranus nikos.gr...@gmail.com 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:

Re: Uniquely identifying each every html template

2013-01-23 Thread Dave Angel
On 01/23/2013 05:29 AM, Ferrous Cranus wrote: snip 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

Re: Uniquely identifying each every html template

2013-01-23 Thread Chris Angelico
On Wed, Jan 23, 2013 at 11:38 PM, Dave Angel d...@davea.name 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.

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 d...@davea.name 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

Re: Uniquely identifying each every html template

2013-01-23 Thread Chris Angelico
On Thu, Jan 24, 2013 at 11:09 AM, Dave Angel d...@davea.name 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

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 d...@davea.name 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.

Re: Uniquely identifying each every html template

2013-01-22 Thread John Gordon
In 5dd4babd-716d-4542-ad36-e6a841b73...@googlegroups.com Ferrous Cranus nikos.gr...@gmail.com 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

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 when

Re: Uniquely identifying each every html template

2013-01-22 Thread alex23
On Jan 22, 10:04 am, Chris Angelico ros...@gmail.com 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

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 nikos.gr...@gmail.com wrote: An .html page must retain its database counter value even if its: (renamed moved contents altered) Then you either

Re: Uniquely identifying each every html template

2013-01-21 Thread Chris Angelico
On Mon, Jan 21, 2013 at 8:19 PM, Ferrous Cranus nikos.gr...@gmail.com 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

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 nikos.gr...@gmail.com wrote: This python script acts upon websites other people use and every html templates has been written by different

Re: Uniquely identifying each every html template

2013-01-21 Thread Oscar Benjamin
On 21 January 2013 12:06, Ferrous Cranus nikos.gr...@gmail.com 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

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 oscar.j.benja...@gmail.comwrote: On 21 January 2013 12:06, Ferrous Cranus nikos.gr...@gmail.com wrote: Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε:

Re: Uniquely identifying each every html template

2013-01-21 Thread alex23
On Jan 21, 10:39 pm, Oscar Benjamin oscar.j.benja...@gmail.com 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 :) --

Re: Uniquely identifying each every html template

2013-01-21 Thread alex23
On Jan 21, 7:19 pm, Ferrous Cranus nikos.gr...@gmail.com 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

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 Ferrous Cranus
Τη Δευτέρα, 21 Ιανουαρίου 2013 2:56:24 μ.μ. UTC+2, ο χρήστης alex23 έγραψε: On Jan 21, 7:19 pm, Ferrous Cranus nikos.gr...@gmail.com wrote: Renames and  moves are performed, either by shell access or either by cPanel access by website owners. These websites owners, are you charging

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 nikos.gr...@gmail.com wrote: An .html page must retain its database counter value even if its: (renamed moved contents altered) Then you either

Re: Uniquely identifying each every html template

2013-01-21 Thread Piet van Oostrum
Ferrous Cranus nikos.gr...@gmail.com 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

Re: Uniquely identifying each every html template

2013-01-21 Thread Dave Angel
On 01/21/2013 07:06 AM, Ferrous Cranus wrote: snip 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

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 nikos.gr...@gmail.com 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

Re: Uniquely identifying each every html template

2013-01-21 Thread alex23
On Jan 22, 1:03 am, Ferrous Cranus nikos.gr...@gmail.com 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

Re: Uniquely identifying each every html template

2013-01-21 Thread alex23
On Jan 22, 1:07 am, Ferrous Cranus nikos.gr...@gmail.com 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. --

Re: Uniquely identifying each every html template

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

Re: Uniquely identifying each every html template

2013-01-21 Thread Chris Angelico
On Tue, Jan 22, 2013 at 10:43 AM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: On 21 January 2013 23:01, Tom P werot...@freent.dd 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

Re: Uniquely identifying each every html template

2013-01-21 Thread rusi
On Jan 21, 5:55 pm, alex23 wuwe...@gmail.com wrote: On Jan 21, 10:39 pm, Oscar Benjamin oscar.j.benja...@gmail.com 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

Re: Uniquely identifying each every html template

2013-01-21 Thread Tim Roberts
Ferrous Cranus nikos.gr...@gmail.com 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

Re: Uniquely identifying each every html template

2013-01-21 Thread Tim Roberts
Ferrous Cranus nikos.gr...@gmail.com 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

Re: Uniquely identifying each every html template

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

Re: Uniquely identifying each every html template

2013-01-21 Thread Chris Angelico
On Tue, Jan 22, 2013 at 2:24 PM, rusi rustompm...@gmail.com 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.

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 nikos.gr...@gmail.com writes: This python script acts upon websites other people use and every html templates has been written by different methods(notepad++, dreamweaver,

Re: Uniquely identifying each every html template

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

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 nikos.gr...@gmail.com declaimed the following in gmane.comp.python.general: We need to find a way so even IF: (filepath gets

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 scan

Re: Uniquely identifying each every html template

2013-01-20 Thread Chris Angelico
On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus nikos.gr...@gmail.com 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

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 added.

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

Uniquely identifying each every html template

2013-01-18 Thread Ferrous Cranus
I use this .htaccess file to rewrite every .html request to counter.py # = RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html)

Re: Uniquely identifying each every html template

2013-01-18 Thread John Gordon
In 8deb6f5d-ff10-4b36-bdd6-36f9eed58...@googlegroups.com Ferrous Cranus nikos.gr...@gmail.com 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 !-- 1 -- somefile.html !-- 2--

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

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