RE: New radio PIDs, more than 8 characters - "solved"

2017-08-23 Thread Hugh Reynolds
layer-boun...@lists.infradead.org] On Behalf Of Vangelis forthnet Sent: 24 August 2017 02:17 To: get_iplayer@lists.infradead.org Subject: Re: New radio PIDs, more than 8 characters - "solved" On Wed Aug 23 16:44:30 BST 2017, Hugh Reynolds wrote: > Reboot didn't help > Uninstall and Reboot di

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-23 Thread Vangelis forthnet
On Wed Aug 23 16:44:30 BST 2017, Hugh Reynolds wrote: Reboot didn't help Uninstall and Reboot didn't help iobit-unlocker helped. Clean install is now working. Many, many thanks. You're welcome! I'm glad you're back up and running :-) For the sake of completeness/closure, were you even

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-23 Thread Hugh Reynolds
Vangelis, All, Sorry for the Hijack. Reboot didn't help Uninstall and Reboot didn't help iobit-unlocker helped. Clean install is now working. Many, many thanks. Hugh --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-17 Thread Ralph Corderoy
Hi C. E., > for a high-level language, [Perl's] syntax is unnecessarily difficult > and obscure. Perl's syntax is heavy on notation, but then notation is powerful compared to the long-hand alternatives, and that's why it's fine in maths, chemistry, and Perl. For the occasional visitor, Python's

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread SAO
Would you two please take this childish spat to private email and save the rest of us from terminal boredom. On Wed, 16 Aug 2017 17:20:10 +0100, David Cantrell wrote: On Wed, Aug 16, 2017 at 04:57:30PM +0100, C E Macfarlane wrote: But, since you are obviously

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread David Cantrell
On Wed, Aug 16, 2017 at 04:57:30PM +0100, C E Macfarlane wrote: > But, since you are obviously spoiling for a fight, why should anyone listen > to someone who has confessed to being a part of putting all that massive > bloat in BBC web pages [citation needed] > presumably therefore you will

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread C E Macfarlane
> On Wed, Aug 16, 2017 at 04:16:33PM +0100, C E Macfarlane wrote: > > > as for arcane-ness of language and difficulty in reading > > it's about on a par with The Bible! > > That's what everyone thinks about languages that they are too damned > lazy to learn. Laziness doesn't

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread David Cantrell
On Wed, Aug 16, 2017 at 04:16:33PM +0100, C E Macfarlane wrote: > as for arcane-ness of language and difficulty in reading > it's about on a par with The Bible! That's what everyone thinks about languages that they are too damned lazy to learn. -- David Cantrell | Nth greatest programmer in

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread C E Macfarlane
See reply below ... -- www.macfh.co.uk/MacFH.html > The first two google results for "perl regular expression" not good > enough for you :-) I'm sure they would have been, but that wasn't what I searched for. I searched for something more precise. > BTW, it's Perl or perl, not

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread David Cantrell
On Tue, Aug 15, 2017 at 03:06:51PM +0100, C E Macfarlane wrote: > Yes, I was aware of \b support in some languages, but RE support varies > across languages, and, knowing this but not being experienced in PERL, I > checked at least two online sources for PERL REs and could find no evidence > of

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread C E Macfarlane
More on REs ... -- www.macfh.co.uk/MacFH.html > > would we both agree with?: > > \b[bpw][0-9][a-z0-9]{7,13}\b > > I think it's > > \b[bpw]\d[b-df-hj-np-tv-z\d]{6,13}\b > > to cover the existing ones that are eight long, up to the 15-long > w172vg029mkl852 that

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread RS
From: Jim web Sent: Wednesday, August 16, 2017 09:58 I've not encountered any problem thus far, so currently am asking just for clarification. Have a look at World Service programmes from Friday onwards. http://www.bbc.co.uk/programmes/p002w6r2/episodes/downloads

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread Ralph Corderoy
Hi C. E., > So, yielding to your superior knowledge of PERL, for the sake of > clarity for the benefit of those who may have had difficulty in > following the nuances of the argument, or been confused by the > multiple suggestions, would we both agree with?: > \b[bpw][0-9][a-z0-9]{7,13}\b

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread Jim web
The discussion prompts some questions on my part: 1) I always used -pid to specify a programme rather than other methods. Does this *have* to have a validation check by regex? I'd assume it doesn't need to parse an entire url because it could just tack the value I give onto the standard parts.

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread Vangelis forthnet
On Mon Aug 14 13:19:14 BST 2017, M Clark wrote: changing all 7 occurrences (sigh...) of [bp]0[a-z0-9]{6} to (?:[bp]0[a-z0-9]{6}|w[a-z0-9]{7,14}) solves the w3*, w1* problem for Me. Hi Martin; that new code still assumes that both Red Bee & PIPs PIDs will have "0" as the second character in

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread C E Macfarlane
More on REs ... -- www.macfh.co.uk/MacFH.html > > Yes, I was aware of \b support in some languages, but RE support > > varies across languages, and, knowing this but not being experienced > > in PERL, I checked at least two online sources for PERL REs > and could > > find no

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread C E Macfarlane
More about Regular Expressions (REs), which can be safely ignored by those not interested ... -- www.macfh.co.uk/MacFH.html > > it might be necessary to bracket it at the beginning and end with > > non-capturing non-word meta- or pseudo-characters > > Rather than \W, representing a

Re: New radio PIDs, more than 8 characters

2017-08-15 Thread James Scholes
C E Macfarlane wrote: Thinking about this a bit more, I wouldn't wish to claim a spurious hit was more likely with no upper limit, but nevertheless I would still regard it better programming practice to have one - with normal written English, the potential for spurious hits would be low, and

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread Ralph Corderoy
Hi C. E., > it might be necessary to bracket it at the beginning and end with > non-capturing non-word meta- or pseudo-characters Rather than \W, representing a single non-word character, \b would be better, meaning a zero-width boundary between a word, \w, and non-word, \W, character, or the

RE: New radio PIDs, more than 8 characters

2017-08-14 Thread C E Macfarlane
Correction below: -- www.macfh.co.uk/MacFH.html > Yes, but in practice you'd want an upper limit, because the > higher the limit > the more likely you are to get spurious hits. Thinking about this a bit more, I wouldn't wish to claim a spurious hit was more likely with no upper

RE: New radio PIDs, more than 8 characters

2017-08-14 Thread C E Macfarlane
See interleaved reply below ... -- www.macfh.co.uk/MacFH.html > >... > >[bpw][0-9][a-z0-9]{7,13} > >... would probably do the job. > > > The BBC version James Scholes gave seems to be much wider. > Does {8,} mean > at least 8 with no upper limit? Yes, but in practice

Re: New radio PIDs, more than 8 characters

2017-08-14 Thread RS
From: C E Macfarlane Sent: Sunday, August 13, 2017 20:54 ... [bpw][0-9][a-z0-9]{7,13} ... would probably do the job. The BBC version James Scholes gave seems to be much wider. Does {8,} mean at least 8 with no upper limit? ___ get_iplayer

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-14 Thread C E Macfarlane
More about regular expressions and programming follows, which those with no or little interest in either can safely ignore ... -- www.macfh.co.uk/MacFH.html > > I think what Charles was meaning is that if you were using > --url "http://www.bbc.co.uk/programmes/b08xy0gl; rather than >

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-14 Thread Ralph Corderoy
Hi M, > I'm horrified by the code repetition. Doesn't Perl allow 'functions'? Yes, that's those sub foo { ... } you see. It can also hold a regexp in a variable so a `$pid_regexp' could be defined once and used repeatedly. $ perl -e ' > $re =

Re: New radio PIDs, more than 8 characters

2017-08-14 Thread RS
From: Vangelis forthnet Sent: Monday, August 14, 2017 03:45 The Al Gore one is now p05c2b9j (snip) The changes may be temporary. ... Yes and no... If you browse to: http://www.bbc.co.uk/programmes/p016tl04/episodes/player you'll see there exist two distinct entries for "Former US Vice

Re: New radio PIDs, more than 8 characters

2017-08-14 Thread tellyaddict
> > But there is a potential problem with [a-z0-9] > > because it would pick out many normal English words, > > for example, ironically, 'programmes' and 'programming'. > > Again, forgive me for being obtuse, still learning things, > but isn't that scenario assuming one actually inputs > >

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Vangelis forthnet
On Sun Aug 13 18:28:42 BST 2017, RS wrote: The Al Gore one is now p05c2b9j (snip) The changes may be temporary. ... Yes and no... If you browse to: http://www.bbc.co.uk/programmes/p016tl04/episodes/player you'll see there exist two distinct entries for "Former US Vice President Al Gore

RE: Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread C E Macfarlane
See reply ... -- www.macfh.co.uk/MacFH.html > Would I be right in saying that amending Vangelis' suggestion to: > [bpw][a-z0-9]{14} > would pick up 15 character PIDs as well as anything shorter? Firstly it would have to be ... {8,14}, otherwise shorter ones

Re: Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Alan Milewczyk
On 13/08/2017 17:44, M Clark wrote: Thanks for coding help but, the problem is worse (for me...), PID w172vg029mkl852 Business Matters - Former US Vice President Al Gore on Climate Change (w172vg029mkl852) So not even 8 characters. Other World Service Series (?) have similar PIDs now, e.g.

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread RS
From: Ralph Corderoy Sent: Sunday, August 13, 2017 17:54 Thanks for coding help but, the problem is worse (for me...), PID w172vg029mkl852 Business Matters - Former US Vice President Al Gore Climate Change (w172vg029mkl852) The Al Gore one is now p05c2b9j The podcast is p05c2b9b The

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Ralph Corderoy
Hi M, > > ^(?:[bp]0|w3)[a-z0-9]{6}$ > > Thanks for coding help but, the problem is worse (for me...), PID > w172vg029mkl852 Business Matters - Former US Vice President Al Gore on > Climate Change (w172vg029mkl852) More samples would allow the regexp to reject invalid ones, but perhaps

Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread M Clark
Thanks for coding help but, the problem is worse (for me...), PID w172vg029mkl852 Business Matters - Former US Vice President Al Gore on Climate Change (w172vg029mkl852) So not even 8 characters. Other World Service Series (?) have similar PIDs now, e.g. Weekend, World Update. And I thought I