Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37259 > unrolled thread
| Started by | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| First post | 2013-01-22 02:07 -0800 |
| Last post | 2013-01-22 17:27 -0800 |
| Articles | 20 on this page of 92 — 15 participants |
Back to article view | Back to comp.lang.python
Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 02:07 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 11:31 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 03:53 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-22 23:26 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:02 -0800
Re: Using filepath method to identify an .html page Lele Gaifax <lele@metapensiero.it> - 2013-01-22 13:22 +0100
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 07:29 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:47 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:50 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-22 23:59 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:50 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 04:47 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 13:04 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 05:57 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 01:33 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 06:55 -0800
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 10:05 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:21 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 02:27 +1100
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:36 -0700
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:40 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:40 +0000
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 17:07 -0700
Re: Using filepath method to identify an .html page MRAB <python@mrabarnett.plus.com> - 2013-01-23 00:40 +0000
Re: Using filepath method to identify an .html page rusi <rustompmody@gmail.com> - 2013-01-22 18:55 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-23 02:50 +0000
Re: Using filepath method to identify an .html page rusi <rustompmody@gmail.com> - 2013-01-22 19:04 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 15:44 +1100
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-22 22:15 -0500
Re: Using filepath method to identify an .html page MRAB <python@mrabarnett.plus.com> - 2013-01-23 03:35 +0000
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 22:10 -0700
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-23 01:13 -0500
RE: Using filepath method to identify an .html page "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-23 16:33 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 08:51 -0800
RE: Using filepath method to identify an .html page "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-23 18:19 +0000
Re: Using filepath method to identify an .html page Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-01-23 18:36 +0000
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-23 17:46 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 08:51 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:34 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:35 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:34 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:36 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:36 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:37 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:39 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:38 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:39 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:37 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:38 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:39 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:36 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:35 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:37 +0000
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-22 16:44 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:21 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 02:07 +1100
Re: Using filepath method to identify an .html page Peter Otten <__peter__@web.de> - 2013-01-22 16:25 +0100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:46 -0800
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 11:11 -0500
RE: Using filepath method to identify an .html page "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-22 16:23 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:13 -0800
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:43 -0700
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:13 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:46 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:59 -0800
Re: Using filepath method to identify an .html page Chris Angelico <rosuav@gmail.com> - 2013-01-23 03:11 +1100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:26 -0800
Re: Using filepath method to identify an .html page MRAB <python@mrabarnett.plus.com> - 2013-01-22 18:49 +0000
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:49 -0700
Re: Using filepath method to identify an .html page Dave Angel <d@davea.name> - 2013-01-22 14:00 -0500
Re: Using filepath method to identify an .html page Peter Otten <__peter__@web.de> - 2013-01-22 20:16 +0100
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 23:25 -0800
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-23 08:25 -0700
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 07:56 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-23 07:56 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 23:25 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:26 -0800
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 07:59 -0800
Re: Using filepath method to identify an .html page John Gordon <gordon@panix.com> - 2013-01-22 16:55 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:07 -0800
Re: Using filepath method to identify an .html page John Gordon <gordon@panix.com> - 2013-01-22 18:37 +0000
Re: Using filepath method to identify an .html page Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-22 17:01 -0500
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 23:23 +0000
Re: Using filepath method to identify an .html page rusi <rustompmody@gmail.com> - 2013-01-22 09:33 -0800
Re: Using filepath method to identify an .html page Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-01-22 17:54 +0000
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 10:23 -0800
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 22:45 +0000
Re: Using filepath method to identify an .html page Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-22 22:44 +0000
Re: Using filepath method to identify an .html page Mitya Sirenef <msirenef@lightbird.net> - 2013-01-22 19:23 -0500
Re: Using filepath method to identify an .html page Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-01-22 06:55 -0800
Re: Using filepath method to identify an .html page Michael Torrie <torriem@gmail.com> - 2013-01-22 11:21 -0700
Re: Using filepath method to identify an .html page alex23 <wuwei23@gmail.com> - 2013-01-22 17:27 -0800
Page 3 of 5 — ← Prev page 1 2 [3] 4 5 Next page →
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:34 +0000 |
| Message-ID | <50ff2208$0$29968$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:36 +0000 |
| Message-ID | <50ff2283$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:36 +0000 |
| Message-ID | <50ff2273$0$29987$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:37 +0000 |
| Message-ID | <50ff22a2$0$29980$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:39 +0000 |
| Message-ID | <50ff232b$0$29967$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:38 +0000 |
| Message-ID | <50ff22ed$0$29981$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:39 +0000 |
| Message-ID | <50ff234a$0$6574$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:37 +0000 |
| Message-ID | <50ff22ce$0$29984$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:38 +0000 |
| Message-ID | <50ff22e0$0$6512$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:39 +0000 |
| Message-ID | <50ff231e$0$29973$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:36 +0000 |
| Message-ID | <50ff2291$0$30001$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:35 +0000 |
| Message-ID | <50ff2227$0$29994$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-22 23:37 +0000 |
| Message-ID | <50ff22b0$0$29983$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #37327 |
On Tue, 22 Jan 2013 11:36:31 -0700, Michael Torrie wrote: > I'm sorry you are getting so frustrated. There's obviously a language > barrier here, I don't think there is. The OP's posts have been written in excellent English. I think we've been well and truly trolled, by somebody who even uses the name of a troll as his user name. http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm Thanks to Alan Spence for linking to the "Flame Warriors" web site. I can't believe that it took so long for anyone to realise that we were being trolled. I hate to admit it, but I kind of have to admire somebody who can play dumb so well for so long for the lulz. Well played Ferrous Cranus, well played. Now please go and play your silly games elsewhere. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-01-22 16:44 -0500 |
| Message-ID | <mailman.839.1358891069.2939.python-list@python.org> |
| In reply to | #37282 |
On Tue, 22 Jan 2013 07:21:28 -0800 (PST), Ferrous Cranus
<nikos.gr33k@gmail.com> declaimed the following in
gmane.comp.python.general:
> I cannot.
> I don't even know yet if hashing needs to be used for what i need.
>
> The only thing i know is that:
>
> a) i only need to get a number out of string(being an absolute path)
> b) That number needs to be unique, because "that" number is an indicator to the actual html file.
So you want to generate a number that is used to look up another
file?
How many files are you referring to here? Do you mean "indicator to
the actual html file" is "indicator to the COUNTER". Otherwise it is
just an indicator to the same path you started with.
How is this "indicator" to be used? Is it PART OF "the actual html
file"? Is it a key in a database used to retrieve "the actual html
file"?
Pseudo-code:
con = DB.connection()
cur = con.cursor()
cur.execute("select ID from PATHLINK where PATH = %s", thePath)
data = cur.fetchone() #there should only be ONE
if not data: #thePath doesn't exist, must be new file
cur.execute("insert into PATHLINK (PATH) values (%s)", thePath)
id = cur.lastrowid
else:
id = data[0]
con.commit()
>
> Would you help me write this in python?
>
> Why the hell
>
> pin = int ( '/home/nikos/public_html/index.html' )
>
> fails? because it has slashes in it?
It fails because it is NOT A DECIMAL INTEGER STRING
>>> int("123")
123
>>> int ("abc")
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ValueError: invalid literal for int() with base 10: 'abc'
>>> int("abc", 16)
2748
>>> int ("abc", 12)
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ValueError: invalid literal for int() with base 12: 'abc'
>>> int ("abc", 13)
1845
>>>
All something you could work out by running a Python interpreter in
a command shell and entering one-liner statements.
E:\UserData\Wulfraed\My Documents>python
ActivePython 2.7.2.5 (ActiveState Software Inc.) based on
Python 2.7.2 (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> int("abc", 14)
2126
>>> int("abc")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: 'abc'
>>>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-01-22 07:21 -0800 |
| Message-ID | <mailman.795.1358868098.2939.python-list@python.org> |
| In reply to | #37278 |
Τη Τρίτη, 22 Ιανουαρίου 2013 5:05:49 μ.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
> On 01/22/2013 09:55 AM, Ferrous Cranus wrote:
>
> > Τη Τρίτη, 22 Ιανουαρίου 2013 4:33:03 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε:
>
> >> On Wed, Jan 23, 2013 at 12:57 AM, Ferrous Cranus <nikos.gr33k@gmail.com> wrote:
>
> >>
>
> >>> Τη Τρίτη, 22 Ιανουαρίου 2013 3:04:41 μ.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε:
>
> >>
>
> >>>
>
> >>
>
> >>>> What do you expect int("my-web-page.html") to return? Should it return 23
>
> >>
>
> >>>> or 794 or 109432985462940911485 or 42?
>
> >>
>
> >>>
>
> >>
>
> >>> I expected a unique number from the given string to be produced so i could have a (number <=> string) relation. What does int( somestring ) is returning really? i don;t have IDLE to test.
>
> >>
>
> >>
>
> >>
>
> >> Just run python without any args, and you'll get interactive mode. You
>
> >>
>
> >> can try things out there.
>
> >>
>
> >>
>
> >>
>
> >>> This counter.py will work on a shared hosting enviroment, so absolutes paths are BIG and expected like this:
>
> >>
>
> >>>
>
> >>
>
> >>> /home/nikos/public_html/varsa.gr/articles/html/files/index.html
>
> >>
>
> >>
>
> >>
>
> >> That's not big. Trust me, modern databases work just fine with unique
>
> >>
>
> >> indexes like that. The most common way to organize the index is with a
>
> >>
>
> >> binary tree, so the database has to look through log(N) entries.
>
> >>
>
> >> That's like figuring out if the two numbers 142857 and 857142 are the
>
> >>
>
> >> same; you don't need to look through 1,000,000 possibilities, you just
>
> >>
>
> >> need to look through the six digits each number has.
>
> >>
>
> >>
>
> >>
>
> >>> 'pin' has to be a number because if i used the column 'page' instead, just imagine the database's capacity withholding detailed information for each and every .html requested by visitors!!!
>
> >>
>
> >>
>
> >>
>
> >> Not that bad actually. I've happily used keys easily that long, and
>
> >>
>
> >> expected the database to ensure uniqueness without costing
>
> >>
>
> >> performance.
>
> >>
>
> >>
>
> >>
>
> >>> So i really - really need to associate a (4-digit integer <=> htmlpage's absolute path)
>
> >>
>
> >>
>
> >>
>
> >> Is there any chance that you'll have more than 10,000 pages? If so, a
>
> >>
>
> >> four-digit number is *guaranteed* to have duplicates. And if you
>
> >>
>
> >> research the Birthday Paradox, you'll find that any sort of hashing
>
> >>
>
> >> algorithm is likely to produce collisions a lot sooner than that.
>
> >>
>
> >>
>
> >>
>
> >>> Maybe it can be done by creating a MySQL association between the two columns, but i dont know how such a thing can be done(if it can).
>
> >>
>
> >>>
>
> >>
>
> >>> So, that why i need to get a "unique" number out of a string. please help.
>
> >>
>
> >>
>
> >>
>
> >> Ultimately, that unique number would end up being a foreign key into a
>
> >>
>
> >> table of URLs and IDs. So just skip that table and use the URLs
>
> >>
>
> >> directly - much easier. In this instance, there's no value in
>
> >>
>
> >> normalizing.
>
> >>
>
> >>
>
> >>
>
> >> ChrisA
>
> >
>
> > I insist, perhaps compeleld, to use a key to associate a number to a filename.
>
> > Would you help please?
>
> >
>
> > I dont know this is supposed to be written. i just know i need this:
>
> >
>
> > number = function_that_returns_a_number_out_of_a_string( absolute_path_of_a_html_file)
>
> >
>
> > Would someone help me write that in python coding? We are talkign 1 line of code here....
>
> >
>
>
>
> I gave you every piece of that code in my last response. So you're not
>
> willing to compose the line from the clues?
I cannot.
I don't even know yet if hashing needs to be used for what i need.
The only thing i know is that:
a) i only need to get a number out of string(being an absolute path)
b) That number needs to be unique, because "that" number is an indicator to the actual html file.
Would you help me write this in python?
Why the hell
pin = int ( '/home/nikos/public_html/index.html' )
fails? because it has slashes in it?
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-01-23 02:07 +1100 |
| Message-ID | <mailman.794.1358867285.2939.python-list@python.org> |
| In reply to | #37277 |
On Wed, Jan 23, 2013 at 1:55 AM, Ferrous Cranus <nikos.gr33k@gmail.com> wrote: > I insist, perhaps compeleld, to use a key to associate a number to a filename. > Would you help please? > > I dont know this is supposed to be written. i just know i need this: > > number = function_that_returns_a_number_out_of_a_string( absolute_path_of_a_html_file) > > Would someone help me write that in python coding? We are talkign 1 line of code here.... def function_that_returns_a_number_out_of_a_string(string, cache=[]): return cache.index(string) if string in cache else (cache.append(string) or len(cache)-1) That will work perfectly, as long as you don't care how long the numbers end up, and as long as you have a single Python script doing the work, and as long as you make sure you save and load that cache any time you shut down the script, and so on. It will also, and rightly, be decried as a bad idea. But hey, you did specify that it be one line of code. For your real job, USE A DATABASE COLUMN. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2013-01-22 16:25 +0100 |
| Message-ID | <mailman.796.1358868351.2939.python-list@python.org> |
| In reply to | #37277 |
Ferrous Cranus wrote:
> I insist, perhaps compeleld, to use a key to associate a number to a
> filename. Would you help please?
>
> I dont know this is supposed to be written. i just know i need this:
>
> number = function_that_returns_a_number_out_of_a_string(
> absolute_path_of_a_html_file)
>
> Would someone help me write that in python coding? We are talkign 1 line
> of code here....
Since you insist:
>>> def function_that_returns_a_number_out_of_a_string(absolute_path_of_a_html_file):
... return int(absolute_path_of_a_html_file.encode("hex"), 16)
...
>>> function_that_returns_a_number_out_of_a_string("/foo/bar/baz")
14669632128886499728813089146L
As a bonus here is how to turn the number back into a path:
>>> x = 14669632128886499728813089146
>>> "{:x}".format(x).decode("hex")
'/foo/bar/baz'
;)
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-01-22 07:46 -0800 |
| Message-ID | <9d89d978-e570-4b2c-a18e-58d86c35dd4c@googlegroups.com> |
| In reply to | #37284 |
Thank you but the number needs to be a 4-digit integer only, if its to be stored in the database table correctly.
pin = int( htmlpage.encode("hex"), 16 )
I just tried whayt you gace me
This produces a number of: 140530319499494727...677522822126923116L
Visit http://superhost.gr to see that displayed error. I think it
Why did you use "hex" for? to encode the string to hexarithmetic? what for?
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2013-01-22 11:11 -0500 |
| Message-ID | <mailman.804.1358871116.2939.python-list@python.org> |
| In reply to | #37289 |
On 01/22/2013 10:46 AM, Ferrous Cranus wrote:
> Thank you but the number needs to be a 4-digit integer only, if its to be stored in the database table correctly.
>
> pin = int( htmlpage.encode("hex"), 16 )
>
> I just tried whayt you gace me
>
> This produces a number of: 140530319499494727...677522822126923116L
>
> Visit http://superhost.gr to see that displayed error. I think it
>
> Why did you use "hex" for? to encode the string to hexarithmetic? what for?
>
There are plenty of people (but not me) giving you database advice, but
you don't want it.
Apparently you do have web access, so why aren't you looking up the
functions that don't behave the way you think they should?
This page has the built-in functions:
http://docs.python.org/2/library/functions.html
To get quickly to a particular function, follow the link from the
function name at the top of that page.
""""""
int(x=0)
int(x, base=10)
Convert a number or string x to an integer, or return 0 if no arguments
are given. If x is a number, it can be a plain integer, a long integer,
or a floating point number. If x is floating point, the conversion
truncates towards zero. If the argument is outside the integer range,
the function returns a long object instead.
If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in radix base.
Optionally, the literal can be preceded by + or - (with no space in
between) and surrounded by whitespace. A base-n literal consists of the
digits 0 to n-1, with a to z (or A to Z) having values 10 to 35. The
default base is 10. The allowed values are 0 and 2-36. Base-2, -8, and
-16 literals can be optionally prefixed with 0b/0B, 0o/0O/0, or 0x/0X,
as with integer literals in code. Base 0 means to interpret the string
exactly as an integer literal, so that the actual base is 2, 8, 10, or 16.
The integer type is described in Numeric Types — int, float, long, complex.
""""""""
Are there words in there which are unclear? A filename is a string, but
it doesn't represent an integer literal in any base, and especially not
in base 10.
--
DaveA
[toc] | [prev] | [next] | [standalone]
| From | "Leonard, Arah" <Arah.Leonard@bruker-axs.com> |
|---|---|
| Date | 2013-01-22 16:23 +0000 |
| Message-ID | <mailman.805.1358871799.2939.python-list@python.org> |
| In reply to | #37289 |
> Thank you but the number needs to be a 4-digit integer only, if its to be stored in the database table correctly. Okay, I think we need to throw the flag on the field at this point. What you're asking for has gone into a realm where you clearly don't even appear to understand what you're asking for. What is the reason for your integer being limited to only 4 digits? Not even databases are limited in such a way. So what are you doing that imposes that kind of a limit, and why?
[toc] | [prev] | [next] | [standalone]
Page 3 of 5 — ← Prev page 1 2 [3] 4 5 Next page →
Back to top | Article view | comp.lang.python
csiph-web