Re: New Year's Resolution - Learn Modern Perl

2014-12-24 Thread 'lesleyb'
> 
> Message: 1
> Date: Tue, 23 Dec 2014 14:42:45 +0100
> From: Mallory van Achterberg 
> Subject: Re: New Year's Resolution - Learn Modern Perl
> To: "London.pm Perl M[ou]ngers" 
> Message-ID: <20141223134245.ga24...@jkva-vps.colo.transip.net>
> Content-Type: text/plain; charset=us-ascii
> 
> On Mon, Dec 22, 2014 at 09:34:45AM +, Andrew Solomon wrote:
> > Please do Mallory. In the spirit of the season, send them the discount
> > coupon too and ask them to let me know that they're acting on your
> > advice. I'll count up the number (X) who actually stay beyond the
> > three day trial and, as an act of gratitude, I'll send you a mug:
> 
> Ha, well unfortunately the Perl area of SitePoint is nearly dead, 
> much more so than the language :) But there was recently someone
> there asking where to get started do it does get eyeballs now
> and then. More likely if anyone signs up, it will be later than
> the coupon deadline. Someone might ask, the regular course will be
> available afterwards? Like, if someone sees the post in February,
> can they enroll? Or is this in real-time?
> 
> _mallory

I haven't logged into SitePoint for a long while now but the last time I posted
something about Perl -in the Perl section- I was suspected of being a spammer.

Strange but true ..

Lesley



Re: New pet keeping rules in the Netherlands (part of Re: london.pm Digest, Vol 92, Issue 13)

2013-06-20 Thread &#x27;lesleyb'
On Wed, Jun 19, 2013 at 10:15:05PM +0100, Dominic wrote:
> 
> Message: 9
> Subject: Re: New pet keeping rules in the Netherlands
> To: "London.pm Perl M[ou]ngers" 
> Message-ID: <1371674233.15265.0.camel@laptop>
> 
> Excellent! Sensible policies for a happier Britain!
> 
Except this is in the Netherlands.

^-^

Lesley


Re: Can I get some advice on best way to start Perl Programming

2012-09-02 Thread &#x27;lesleyb'
On Fri, Aug 31, 2012 at 11:09:47PM +0100, Denny wrote:
> Hi Rick,
> 
> On Fri, 2012-08-31 at 11:16 +, Rick Deller wrote:
> > I have brought  a couple of books on the subject which I'm reading through
> > 
> > I'm very keen to learn more and how to do it
> > 
> > Can anyone suggest more books or another way of doing it ?
> 
> As well as Mark's suggestions, I can personally recommend the Perl
> courses run by Dave Cross from this group.  I did one of his
> intermediate courses a few years back, and he's just recently started
> doing more beginner and cross-training courses if I recall correctly.
> 
> His website is http://mag-sol.com/ - it doesn't look like he's got any
> dates coming up in the immediate future, but there's a mailing list you
> can subscribe to.

"Perl School News


The next Perl School will be on 6th October. Dave Cross will be re-running the 
"Modern Perl for Non-Perl Programmers" course that some of you have 
already been on. Tickets are £30 for a full-day course and you can buy 
them at:

   http://perlschool2.eventbrite.co.uk/

Dave Cross is starting to plan the next Perl School. He thinks it will be on 
8th 
December and will be on the subject of Object Oriented Programming in 
Perl. "

Also see http://perlschool.co.uk/
> 
> Regards,
> Denny
> 
> 


Re: Who made the law?

2012-08-31 Thread &#x27;lesleyb'
On Fri, Aug 31, 2012 at 12:55:44PM +0100, Pedro Figueiredo wrote:
> 
> On 31 Aug 2012, at 11:54, Mark Fowler wrote:
> 
> > Q. Do people really need to be told this?
> > 
> > The vast majority of people don't.  However, the two groups of people that 
> > do are:
> > 
> > a) People who are worried that they might be victims of harassment.  They 
> > need to be reassured - especially when they've only just joined the 
> > community and haven't had time to completely integrate and have full 
> > knowledge of it - that harassment won't be tolerated and they need to know 
> > the procedure to follow if they do have any problem.
> 
> Exactly. As for b) I don't have any sympathy for people who are kicked out 
> and then go "oooh, no one told me about the rules" - there shouldn't be any 
> rules telling you how to be a decent person, jerk. Note I have no idea about 
> what happened yesterday on IRC, and that's not what I'm going on about here.
> 
> >From a non-ex-leader and mostly lurker, I think Mark's proposed Code of 
> >Conduct is excellent.
> 
> See also
> 
> http://geekfeminism.wikia.com/wiki/Conference_anti-harassment
> https://adainitiative.org/2012/08/defcon-why-conference-harassment-matters/
> 

Thanks for posting those links Pedro.
I believe Debian has also implemented a similar code of conduct - particularly
for conferences.  

I support the proposal that london.pm have a reasonable Code of Conduct.  

1. I believe it *is* reasonable to expect a level of reasonable behaviour, for 
some
values of reasonable, level and behaviour within the Perl community.  

2. As was said by an earlier poster, a code of conduct is something that says - 
if
you are getting some kind of harassment or discrimination there are people to 
talk
to and let them know. The code of conduct implies any such matters will at
least be heard, and may be acted upon in a prescribed manner.   Plaintiff and
defendant know what to expect. 

3. I haven't seen the logs for the event that sparked this conversation, but
someone coming into channel and encountering the drivel that can exist on IRC,
will go away with a particular view of that channel which, in the case of a
Perl channel, might reflect on the whole Perl community. 

4. The rule of benevolent dictatorship did win out.
A benevolent dictator decided to kick someone for whatever reason, - no
dictator need declare that - and then someone questioned said dictator and
then got kicked themselves.  In a dictatorship, this is a surprise how exactly?

5. I'm not overly fond of dictators, unless they are *spectacularly* benevolent
or they are me.

Kind Regards

Lesley


Re: Which sucks least? Sky, Talktalk to BT broadband?

2012-08-31 Thread lesleyb
On Thu, Aug 30, 2012 at 07:15:21AM +0100, Andrew Beattie wrote:
> i am moving out of the london.pm area, into a broadband wasteland in PA17 
> 5DA, where the nearest exchange is here:
> 
> http://www.samknows.com/broadband/exchange/WSWEM
> 
> What, in the option of London.pm would be my least lame broadband option?
> 
> Andrew
Coming in a bit late, avoid talktalk.
How they got 41% customer satisfaction I have no idea.

We're on BT Infinity which is good, with great speed but then we're fairly
close to the cabinet.

Otherwise I would always prefer Zen - good people, great service, fixed IP
address.

Unfortunately for you it looks like a stark choice between BT and Sky.

Hope you have fun 

Lesley


Re: look what i made!

2011-11-29 Thread &#x27;lesleyb'
On Tue, Nov 29, 2011 at 09:30:21AM +, alex knowles wrote:
> On Tue, Nov 29, 2011 at 1:40 AM, lesleyb  wrote:
> 
> > 
> >
> > Very pretty :) ... and a shameless plug for XP ?
> >
> > ;)
> > Lesley
> >
> 
> ha! vat iz ziz eggs pee?
> 
> I'm probably doing perlmonks wrong to be a proper XP whore (last post in
> march, and then previously may 2007!), However I was slightly surprised
> that it didn't get more votes (ie it's currently has a smidgeon less than
> this one:
> 
> http://perlmonks.org/?node_id=567471
Regretably, that example gives 
$# is no longer supported at ./node.567471.pl line 12.
under 5.14.2

Anyway you're pegging equal now.  

> 
> (ie a slight reply to someone else's code)
> 
> Given that it has a pile of fairly interesting (imo) stuff squeezed into it
> (the second half can be adapted to render any pixmap as an uncompressed png
> - and i'm testing a version with a pure perl implementation of DEFLATE) and
> it took ages! (maybe i'm just getting slow in my old age) Oh and it has a
> heart warming story behind it n all :)
One day I shall study these obsfucations; they may be a good for a perlvar
grokking session.

Regards

Lesley


Re: look what i made!

2011-11-28 Thread &#x27;lesleyb'
On Mon, Nov 28, 2011 at 04:15:23PM +, alex knowles wrote:
> Sorry to spam - I've made another obfuscation.  It's been a long time.  I'm
> quite pleased with it.
> 
> http://www.alixandalex.com/rose.png
> 
> $_='my($w,$h,$x,$y,$z,$b,$v,$q,@s,@u,@a,@d)=(200,350,1,0,1,32000,chr(39),65521,"
> 25825008616615210920823710811215312518118633015403619325825020208007710624914813
> 61821331252301671241681611442411590901261541801971771881641291122261651041421741
> 54198177148164147134247155078128171163208158090162176154194187180214147111233224
> 172120142189","1734941716320421841032002200810617649417400016320422541031202
> 20111032134111760800511051473033102160471602133900601341620672783291621141621443
> 14299186120117125290317150090151162303281168132147127290317294126034097");map{@d
> =map$_-144,/.{3}/g;while(my($a,$b,$c,$d,$e,$f)=splice@d,0,6){for(my$t=0;$t<=1;$t
> +=.005){$u[$b+$t*($f*$t+$d)][$a+$t*($e*$t+$c)]=$z}}$z++}@s;sub{while(my$n=pop){$
> u[$n/$w][$n%$w]&&next;$u[$n/$w][$n%$w]=$z;push@_,$n+1,$n-1,$n-$w,$n<$w*$h?$n+$w:
> $n}$z<5&&$z++}->(10*$_)for(1228,550,4005,2816,6943);$h+=10;for(1..$h){@d=(1,@{$u
> [$_]||[]});push@a,map{$y=($y+($x=($x+($z=($d[$_]||1)-1))%$q))%$q;$z}0..$w}@u=@a;
> $h=pack"N2C5",$w,$h,8,3;$w="x\1";while($z=@d=splice@u,0,$b){$w.=pack"CSSC*",!!($
> b-$z),$z,~$z,@d};$w.=pack"N",$x+($y<<16);for$b(0..255){$b=(($b&1)*0xEDB88320)^($
> b>>1)for 0..7;push@u,$b}open(F,">rose.png");binmode F;print F 
> pack("H*","89504e4
> 70d0a1a0a");print F 
> pack("N",-4+length).$_.pack"N",sub{$w=$h=0x;$w=$u[($
> w^$_)&0xff]^($w>>8)for 
> unpack"C*";$w^$h}->()for"IHDR$h",pack("H38","504c5445
> 3000b26f004"),"tEXtComment\0".join($/,unpack("(a32)*","\$_=$v$_$v;")
> ,"s#\$/##g;eval"),"IDAT$w","IEND"';s#$/##g;eval
> 
> (outputs "rose.png")
> 
> you can see here:
> http://perlmonks.org/?node_id=940286
> 
> for a bit more info.
> 
> alex

Very pretty :) ... and a shameless plug for XP ?

;)
Lesley


Re: Perl Skills Test

2011-09-29 Thread &#x27;lesleyb'
On Thu, Sep 29, 2011 at 05:40:25PM +1000, Kieren Diment wrote:
> On 29/09/2011, at 5:32 PM, Simon Cozens wrote:
> 
> > On 29/09/2011 01:30, Paul Tweedy wrote:
> >> != true I'm afraid. They just have the temerity to not live in (and
> >> are unable to move to) the south east or near a major city.
> > 
> > If you want to be a fisherman, it helps to live near the sea.
> > 
> > If you want to be a fisherman and not live near the sea and then complain
> > about it, fine, but don't expect many others to be sympathetic.
> > 
> 
> 
> Remote opportunities are quite good once you have a reputation and a network 
> of contacts ...  In this case the sea is the intertubes and the fish are 
> TCP/IP packets I suppose.

 feeding the forty thousand with TCP/IP packets and intertubes ...?
An allegory for our times perhaps 

Regards

L.


Re: Perl Skills Test

2011-09-28 Thread &#x27;lesleyb'
On Wed, Sep 28, 2011 at 05:30:09PM +0100, Paul Tweedy wrote:
> On 28 September 2011 17:05, David Cantrell  wrote:
> > On Wed, Sep 28, 2011 at 04:07:50PM +0100, Paul Tweedy wrote:
> >
> >> I know three people (all good engineers) who lost their jobs this year
> >> and are struggling to find work, so I find it hard to complain about
> >> any sort of adjustment to my salary in the current climate.
> >
> > I think that amongst my circle of good engineer* friends and
> > acquaintances, someone has been out of work and having trouble finding
> > any for *all* of the last ten years, so I am unmoved by their plight.
> 
> I'll be sure to let them know.
As someone who has been out of work for far too long I'm with DC on this one.
You either get work in somehow or re-train.
> 
> > And "not able to find any work" usually means "not able to find any work
> > that I like and that pays lots of money", so I am moved even less.
> 
> != true I'm afraid. They just have the temerity to not live in (and
> are unable to move to) the south east or near a major city.
I've moved around for the sole purposes of staying in work: working out in the
sticks, 'oop North' in a city as well as 'daarn Sarf' in three cities incl. 
London.
The job-for-life died a long time ago.  When the job dies and you're out in the
sticks it is either time to move or, if there is a good reason to stay where
you are - decrepit parents, A-level or GCSE kids - then you have to look for
either remote or different work or create your own.   

Yes I am out there, it is tough, highly competitive and it isn't getting any
easier. 

Kind Regards

Lesley


Re: Should I get my mum a Kindle?

2011-09-21 Thread &#x27;lesleyb'
On Wed, Sep 21, 2011 at 09:04:29AM +0200, Philip Newton wrote:
> On Tue, Sep 20, 2011 at 23:21, Chris Devers  wrote:
> > Man, if only there were a way to get radio programmes, like, directly from
> > the radio. Right?
> 
> Yeah. Especially radio programmes that you missed, so (a) you weren't
> there to hear them live and (b) you didn't think to program your
> stereo deck to record the show to cassette in advance. (Are there
> stereos these days that can record to CDs or internal storage of some
> kind? For that matter, are there stereos that you can make them record
> something on a timer?)


I have a Roberts RD1 with an SD card slot and a record timer.  I can record onto
SDcard but the filing system isn't brilliant - any recording starts from the
'beginning' of the SD card so recording a daily show requires replacement SD
cards.  The advancement of all that teknologie. ;)

Regards
Lesley


Perl in shared hosting environments

2011-09-21 Thread &#x27;lesleyb'
Hi

I came across this script on the MT forums

my  $b__dir = (-d '/home4/myhome/perl'? \
 '/home8/myhome/perl':
 ( getpwuid($>) )[7].'/perl');

unshift @INC,$b__dir.'5/lib/perl5', 
$b__dir.'5/lib/perl5/x86_64-linux-thread-multi', map { $b__dir . $_ } @INC;

from someone using shared hosting.

The end effect is to prepend the directories in @INC with the directory
$b__dir, which may or may not be the user's home directory, pushing two new
ones on the front of @INC and including the original @INC as the last set of
directories to be searched for modules etc.

I'm just left wondering how far one could exploit this?  I'm guessing mod_perl
would still be out of the question. And probably mod_fcgi.

So someone using such a script would still be restricted to CGI but able to
install modules they wish to use?

Regards 

Lesley


Re: Perl e-commerce?

2011-09-19 Thread &#x27;lesleyb'
On Thu, Sep 15, 2011 at 04:18:50PM +0200, Mallory van Achterberg wrote:
> On Thu, Sep 15, 2011 at 03:54:38PM +0200, Richard Foley wrote:
> > I think you've hit the nail on the head, Mallory, "where are the 
> > Wordpresses, 
> > the Drupals, the Joomlas?..." indeed.  It's easy to sneer at "just some web 
> > thingy", but actually it's quite hard to make something both flexible and 
> > robust and performant and maintainable.  From what I've seen of Catalyst 
> > recently, (and I've been kind of thrust into using it), it's heading in 
> > exactly the right kind of direction that's going to promote (post-)modern 
> > Perl 
> > practices into a working business environment.  *IF* we build "what people 
> > want".
> 
> I want to note that those all have tens if not hundreds of developers.
Indeed they do.

> I follow some people working on Drupal Core and unlike a Perl module,
> it can't have one or two maintainers. Benevolent dictator, maybe,
> but a Perly Drupal would need a *lot* of people.
and that doesn't appear to be the CPAN/Perl model, of which I've gained an
impression of a lot of individuals solving problems they encounter at a
generiic level and then offering them to the wider user base.  
Until recently I would never have thought about umping in and bug fixing on
someone else's module.   

I have submitted bug reports in the past, only to have one finally rejected
quite recently because of the lack of a patch.  

The other I did try to drill down on the problem but couldn't understand the
module code and then heard it was being rewritten anyway.  After the
creator of that module stated on the mailing list that the existing code was
like 'an old woman, reeking of piss' and being 'an older woman', I kind of
decided to put that bug down and go on my way.

> So it's not a question of one person saying ok, let's do it.
> But I see it's more than one person worried about marketing, or
> getting new developers into Perl, etc.
> 
> Catalyst is a good start. It really is. Now I want to see Dancer and
> Mojolicious get going as they target different types of developers
> (Catalyst is rather huge. Dancer is pretty small and quick. Mojolicious
> has wiki capability).
> 
Well that's good to know ... but how do any of these install on a shared
hosting setup?  That still hasn't been resolved and I can't blame the shared
hosting providers for not wanting to allow the unknowing in on its apache 
server.

> > You can see the (programming and marketing) success of Perl in more or less 
> > shrink-wrapped applications like RT, where there are books on the topic, 
> > and 
> > managers have heard of it, and want it, and will pay people to customize 
> > it.  
> > Whether you and I like it or not is irrelevant, the point is RT, (for 
> > example), has a footprint.  There used to be a myriad of Perl web apps.  
> > Where 
> > are they now?  Why haven't they stood the test of time?  Can we claw some 
> > of 
> > that market back, now people are finding how there is no silver-bullet in 
> > PHP, 
> > Ruby and Java.  Is this a time to take advantage of a pause, is this that 
> > second moment of opportunity?  If so, what will we do with it?
> 
> Personally, I'd like to see Python and Ruby do the same. From what I read
> on forums and the such, they've had similar issues regarding hosting.
> 
> I may be wrong but I thought Python created PSGI specifically because
> mod_python was so not working well on Apache. So they thought, screw
> catering to one server, we should work well with all of them.
> 
When I look up PSGI I get Perl Web Server Gateway ...  not Python ?
> Great.  M0aR!
> Plack is really valuable to have here. 
So is this a sufficiently safe solution to the 'shared hosting problem'?  If so
how does the Perl community get hosting providers to deploy it?

And where is Perl in the Cloud - apart from providing it of course?
> > -Mallory
Regards 

Lesley


Re: Cool/useful short examples of Perl?

2011-05-30 Thread &#x27;lesleyb'
On Mon, May 30, 2011 at 07:46:08PM -0400, Uri Guttman wrote:
> > "NC" == Nicholas Clark  writes:
> 
> 
>   NC> You've stated that you *don't* expect newbies to know how to read
>   NC> that line.  Leo is currently looking for things that newbies could
>   NC> be expected to read.
> 
> then you will get one liners that don't do much. you can't have it both
> ways. either they are useful or they are so simple that newbies can read
> them. using modules isn't a way around that as they shouldn't use one
> without understanding it. so my way is to show how useful a small amount
> of perl can be. get them intrigued and wanting to learn how to do
> that. i haven't seen anything else posted here that is even close to
> useful and cool and newbie level yet. but everyone can jump on
> mine. wow.

I suspect the important thing here is TMTOWTDI .

To be absolutely honest I couldn't come up with a one-liner like the one
you suggested.  However it was interesting to read it.

I won't pretend I learned how to write good one-liners from it but maybe
by reading and working through more of the same I could improve.

But I am not a Perl newbie.  And I do agree about the maintenance issue.
But a Perl newbie today might have to maintain such code tomorrow.

Perhaps the concept that Leon is working on could be extended to more 
intermediate levels as well?

Kind Regards

Lesley


Re: Cool/useful short examples of Perl?

2011-05-30 Thread &#x27;lesleyb'
On Mon, May 30, 2011 at 04:40:26PM -0500, Avleen Vig wrote:
> On Mon, May 30, 2011 at 1:35 PM, Jason Clifford  wrote:
> > On Mon, 2011-05-30 at 16:27 +0100, Denny wrote:
> >> >     if (! Email::Valid->address($email_address) ) {
> >>
> >> Something wrong with 'unless'?
> >
> > No but lots of people appear to find "if" to be more readable
> >
> > If you're not worried about readability then why bother with either the
> > if or unless. Just do:
> >
> > use Email::Valid;
> > Email::Valid->address($email_address) || print "Not valid";
> 
> When you're trying to teach someone a new language, you have to relate
> it to things they'll understand.
> Almost every other language has if/then/else, and doing that here
> would definitely be the right thing.
> The perl-specific things should be left as an exercise for the reader,
> after they're comfortable with the basics and not frightened away.
> 

I had previous programming experience when I started learning Perl
and I was quickly introduced to the 'unless' construct.  I confess
to finding it both cute and entirely obvious.  It's a shame other
languages don't have it ... shame unless unless perhaps?.

I guess it depends on the intended audience .

Kind Regards

Lesley


Re: Cool/useful short examples of Perl?

2011-05-30 Thread &#x27;lesleyb'
On Mon, May 30, 2011 at 03:36:54PM +0100, David Precious wrote:
> On Monday 30 May 2011 14:27:25 'lesleyb' wrote:
> > I am a little fearful people will substitute variables on the
> > RHS in a CGI script without untainting first and then complain
> > when the problems show up.  
> 
> Whilst I agree helping people learn about taint mode and how to untaint is 
> valuable, I'm not sure it has a place in "look how simple this can be" / "how 
> easy it is to do cool stuff" examples.
> 
> Taint mode can be useful, but a user trying out simple examples is unlikely 
> to 
> have enabled taint mode unless they know about it.
> 
> 
> > [...] Even an example of how to untaint a
> > 'basic' RFC822 email address?
> [...]
> > if ($data =~ /^([-\@\w.]+)$/) {
> >   $data = $1; # $data now untainted
> > } else {
> >   die "Bad data in '$data'";  # log this somewhere
> > }
> 
> I'd really not want to see people being encouraged to attempt to validate 
> email addresses with a regex; that's a wheel that should not be re-invented; 
> using e.g. Email::Valid to both untaint and check for validity properly would 
> be a far better approach IMO.
> 
> In fact, a "how to validate an email address properly" example would probably 
> be worthwhile, for instance:
> 
> use Email::Valid;
> 
> if (! Email::Valid->address($email_address) ) {
> print "Sorry, that email address is not valid!";
> }
> 
Miles better :) 

Kind Regards

Lesley


Re: Cool/useful short examples of Perl?

2011-05-30 Thread &#x27;lesleyb'
On Mon, May 30, 2011 at 11:40:57AM +0100, Leo Lapworth wrote:
> Hi,
> 
> I'm working on http://learn.perl.org/ and I'd like to have a few rotating
> example of what can be done with Perl on the home page.
> 
> The first two I've thought of are below, does anyone have others?
> 
> They don't have to use CPAN modules, one liners are fine as long as it
> is simple to see what they do. I'll have a 'more' link which goes on to
> show full example with line by line explanations.
> 
> Module preference is anything from http://search.cpan.org/dist/Task-Kensho/
> 
> E.g.:
> 
> This is probably max sort of size...
> 
>   # Send an email
>   use Email::Sender::Simple qw(sendmail);
>   use Email::Simple;
>   use Email::Simple::Creator;
> 
>   my $email = Email::Simple->create(
> header => [
>   To  => '"Xavier Q. Ample" ',
>   From=> '"Bob Fishman" ',
>   Subject => "don't forget to *enjoy the sauce*",
> ],
> body => "This message is short, but at least it's cheap.\n",
>   );
> 
>   sendmail($email);
> 
I am a little fearful people will substitute variables on the 
RHS in a CGI script without untainting first and then complain 
when the problems show up.  While that is admittedly using the example 
outside the scope intended, I suggest a note or comment saying 'if you 
need 'To => $recipient' instead of a known string, in some/many 
circumstances you might need to untaint the variable $recipient first'.  

The untaint word could then have a link to an explanation of what 
tainting/untainting is, why it's a good idea to use it and maybe some 
short examples on how to use it?  Even an example of how to untaint a 
'basic' RFC822 email address?  

That way you could keep within your line limit and provide 'safe'
stuff for some values of safe and stuff of course e.g.

*
Taint/Untaint :

See perldoc perlsec for more details on Perl's taint mode.
To activate taint mode explicitly, use the -T flag as in 
#!/usr/bin/perl -T

Untainting data means verifying, usually by regular expression, 
that the data is what you expect it to be.  From perldoc perlsec

"Here's a test to make sure that the data contains nothing but 
"word" characters (alphabetics, numerics, and underscores), 
a hyphen, an at sign, or a dot.  From perldoc perlsec

if ($data =~ /^([-\@\w.]+)$/) {
  $data = $1; # $data now untainted
} else {
  die "Bad data in '$data'";  # log this somewhere
}
*

Which comes out at 17 lines including the title line.

Not my original work and quite possibly totally off the mark  
for the intended audience but hope it helps

Kind Regards

Lesley


[OT] Re: wireless routers

2010-11-09 Thread &#x27;lesleyb'
On Tue, Nov 09, 2010 at 01:34:43PM +, Chris Jack wrote:
> 
> On Mon, Nov 8, 2010 at 2:08 PM, Dirk Koopman  wrote:
> 
> > My netgear WPN802 seems to have died. Any recommendations for a non-ADSL 
> > wireless router that is reliable and might last a bit longer? Don't need 
> > anything fancy, but I would like something that I don't have to reboot 
> > regularly.
> 
> I've always wondered a bit about this rebooting thing - whether the real 
> problem is at my end or that of my service provider. I just have seen so many 
> people buy new routers with the expectation they won't have to reboot - only 
> to find themselves having to reboot the replacement.
>  
> I also wonder if the service provider is doing something to intentionally 
> cripple people who have been generating a lot of traffic for a period of time 
> and whether rebooting is really just effectively resetting the counter at the 
> service provider's end.
>  
> I use Sky - and on a semi-regular basis it stops working Friday night or the 
> weekend (regardless of what I reboot) - and then miraculously springs back 
> into life on Monday morning. My take on this has been that Sky doesn't employ 
> engineers to do weekend call outs to fix things that break their end.
>  
> Not so long ago, my Sky box stopped working even mid-week - lights seemed to 
> sort of come on but no connection and no LAN (which definitely wouldn't be 
> Sky's end). Interestingly Sky's first suggestion was to send us a new power 
> cable which I thought would have little chance of success (as lights were 
> coming on on the router al beit not as enthusiastically as they had when it 
> worked) - but surprisingly it fixed the problem.
>  
I have attached a venerable ZyXel 660HW to a talktalk connection - and it sends 
me logs so I can see what happens.
Things seem to have improved ... ish.  I was getting multiple drop outs per day 
but these events seem to be less frequent with an occasional burst to remind me 
what a pig this cheap connection can be. 

The connection gets dropped - call terminated occurs in the logs .  After a 
short delay an outgoing call is made a packet trigger either sent or received 
and a connection is logged.
The ppp:LCP connection process then starts and the call gets terminated again. 
Here's some logs I prepared earlier ;).

18|04/12/2010 00:49:17  |  |  | ppp:LCP 
Starting
19|04/12/2010 00:49:17  |  |  |CALL 
DETAIL RECORD board 0 line 0 channel 0, call 14, C02 OutCall Connected 512000
20|04/12/2010 00:49:17  |  |  |PACKET 
TRIGGER Packet Trigger: Protocol=1, Data=Packet Trigger: Protocol=1, Dat
21|04/12/2010 00:49:17  |  |  |CALL 
DETAIL RECORD board 0 line 0 channel 0, call 14, C01 Outgoing Call dev=5 ch=0
22|04/12/2010 00:49:17  |  |  |CALL 
DETAIL RECORD board 0 line 0 channel 0, call 13, C02 Call Terminated
23|04/12/2010 00:48:17  |  |  | ppp:LCP 
Starting
24|04/12/2010 00:48:17  |  |  |CALL 
DETAIL RECORD board 0 line 0 channel 0, call 13, C02 OutCall Connected 512000
25|04/12/2010 00:48:17  |  |  |PACKET 
TRIGGER Packet Trigger: Protocol=1, Data=Packet Trigger: Protocol=1, Dat
26|04/12/2010 00:48:17  |  |  |CALL 
DETAIL RECORD board 0 line 0 channel 0, call 13, C01 Outgoing Call dev=5 ch=0
27|04/12/2010 00:48:17  |  |  |CALL 
DETAIL RECORD board 0 line 0 channel 0, call 12, C02 Call Terminated

Eventually the thing progresses to the CHAP and IPCP stages but sometimes it 
gets stuck in a loop, connecting and disconnecting.
I try a soft reboot, a hard reboot and then an 'ard reboot with interim 
complete isolation of the router in both power and ADSL lines.
One of these has always cleared the fault.  
Talk Talk would probably immediately blame my router if I complained and I 
would lose observation of the connection if I installed theirs.

You are probably right to suspect Sky doesn't repair stuff at their end over 
the weekend and I have no idea if you can soft reboot or are restricted to hard 
reboots on your box but Sky should be able to provide you a service over the 
weekend.  

Curious about the power cable though.  If it is a plain old power cable there 
isn't much a power cable can do to fail a piece of equipment besides die 
completely so I would doubt the power cable itself made the difference.  Was it 
a different length or did it have post-transformer ferrite core screening?

Regards
L.


Re: Good Unix pranks for kids?

2010-09-28 Thread &#x27;lesleyb'
On Tue, Sep 28, 2010 at 08:12:38PM +0200, Stefan Scheytt wrote:
> Hello fellow monglers,
> 
> Due to parental responsibility, we occasional use x11vnc to have a look at
> what episode of Hanna Montana our 9-year-old is watching on Youtube today.
> (Obviously, we ssh into her machine and sudo to run that program.)
> 
> Do you guys know any other fun pranks to play on an unwitting X user from
> a privileged command line?
> 
> I found xcowsay, but it doesn't seem to work right. Always bones out on the
> display issue.
> 
sudo apt-cache show beep
Package: beep
Priority: optional
Section: sound
Installed-Size: 60
Maintainer: Gerfried Fuchs 
Architecture: i386
Version: 1.2.2-22
Depends: libc6 (>= 2.7-1), debconf (>= 0.5) | debconf-2.0
Filename: pool/main/b/beep/beep_1.2.2-22_i386.deb
Size: 23578
MD5sum: 1de58749c022cee97260ee36a213873e
SHA1: 912d3764c092bf9bfbfc298cb0da335d8a9f9fbb
SHA256: 3a9037ea6602960e41533c4e9148a6982d6a92bffd91acc690f3a41df5bcc781
Description: advanced pc-speaker beeper
 beep does what you'd expect: it beeps. But unlike printf "\a" beep allows
  you to control pitch, duration, and repetitions. Its job is to live inside
   shell/perl scripts and allow more granularity than one has otherwise. It is
controlled completely through command line options. It's not supposed to be
 complex, and it isn't - but it makes system monitoring (or whatever else it
  gets hacked into) much more informative.
  Homepage: http://johnath.com/beep/
  Tag: implemented-in::c, interface::commandline, role::program, 
scope::utility, works-with::audio

in debian stable - try morse code with that ?

Or http://search.cpan.org/dist/PerlSpeak/

Computer says No!
;)

Regards

L.


Re: London.pm leader election

2010-09-27 Thread &#x27;lesleyb'
On Mon, Sep 27, 2010 at 05:28:12PM +0100, Léon Brocard wrote:
> On 24 September 2010 10:43, Léon Brocard  wrote:
> 
> > 4th October: Send nominations to a...@astray.com and d...@dave.org.uk
> > before this date
> 
> Could I gently remind people to get their nominations in? You may, of
> course, nominate yourself.
> 
I feel I don't know anyone well enough to be able to either nominate or
vote this time round.  Godd luck to whoever gets the job :)

Regards

L.



Re: Looking for work...

2010-09-09 Thread &#x27;lesleyb '
On Thu, Sep 09, 2010 at 11:21:27PM +0530, abhishek jain wrote:
> Beside the obvious jobs.perl.org - you might have a look at LinkedIn
> 
> > Perl Jobs group:
> > http://www.linkedin.com/groups?mostPopular=&gid=1332857 - there seem
> > to be some UK openings quite regularly.
> >
> 
> this linked in group looks dead , applied for its membership and still
> awaiting approval still after 3 days!!!
> 
Not dead - just sleeping 

Regards

Lesley


Re: Van Gogh at the RA

2010-02-14 Thread &#x27;LesleyB '
On Sat, Feb 13, 2010 at 11:35:48AM +, David Cantrell wrote:
> Dermot wrote:
> > On 12 February 2010 21:31, David Cantrell  wrote:
> >> There's a Van Gogh exhibition on at the Royal Academy...
> >> Finishes on the 18th of April.
> > And it's practically sold out (on-line at least).
Says on the site tickets available daily.  
> 
> Bet you'll have no problems at all if you just turn up mid-week.
Probably worth ringing up beforehand.
> 
> I'll probably be going again, and can take someone along for free.  If I
> remember, I'll post here again before I go.
> 
Thanks for the tip.  Saw Van Gogh artwork in the VG Museum Amsterdam.
Miles better in real life.  Prints just don't capture the work, imo.
Worried a guard by looking very closely at the pointillism.

Lesley


Re: Pig and pub! (Emergency social called for)

2010-01-18 Thread &#x27;LesleyB '
On Mon, Jan 18, 2010 at 01:33:50PM +0100, Philippe Bruhat (BooK) wrote:
> On Thu, Jan 14, 2010 at 05:48:22PM +, Edmund von der Burg wrote:
> > 
> > PS - note that there are four heads going. If you ever wanted to do a
> > very British variant of the horse's head in The Godfather this would
> > be an opportune moment. Didn't get that Christmas bonus? Let the boss
> > know how you feel!
> > 
> 
> Don't you guys eat those? 
> 
> « Dans le cochon, tout est bon. »
The average house may well not have an oven/hob large enough and I don't have 
any 
recipes.  Does anyone else? 

(Besides, what would we feed the sheep, dogs and cows?)

Regards

Lesley


Re: The bar receipt for Saturday night...

2009-12-07 Thread &#x27;LesleyB '
On Mon, Dec 07, 2009 at 02:16:26PM +, Martin A. Brooks wrote:
> Pictured here, this was just the sponsored part.
>
> http://twitpic.com/sizue
>
>
> If there's interest, I'm happy to munge this into an electronic format  
> suitable for analysis.  We can find out what percentage of LPW enjoys  
> wonderful drinks and what percentage enjoy sieved dishwasher effluent  
> doped with gravy browning.
>
>
Wish I could have been there but currently don't have a leg to stand on 
... so being half legless to start with 
... yes come on ... let's hear all the leggy jokes :)


Re: He'brew

2009-09-30 Thread lesleyb
On Wed, Sep 30, 2009 at 01:31:32AM -0700, Ovid wrote:
> Since we're on topic, discussing beer, does anyone know where in London I can 
> acquire He'brew, the Chosen Beer?  I bought some back in the states, only to 
> discover that I really, really like this stuff.  It's a darker beer with 
> hints of chocolate and nutty goodness.  
> 
>   http://www.shmaltz.com/HEBREW/
> 

I don't know this beer but I think you should get along to a proper (UK) Beer 
Festival and try the porters.

Regards

L.


Re: Anyone hiring at the moment?

2009-09-25 Thread lesleyb
On Fri, Sep 25, 2009 at 11:28:12AM +0100, Peter Corlett wrote:
> On 25 Sep 2009, at 01:27, Dave Hodgkinson wrote:
> [...]
>> Oh god, don't. I shall be touring with a band in early November and
>> whilst the first two dates are civilised: London and Oxford, but from
>> then on we're in arse-ends like Sheffield,
>
> Excellent drinking: I recommend the Devonshire Cat, Fat Cat, Dove and  
> Rainbow, and possibly the Red Deer. The Winter Garden is worth an amble 
> through.
>
+1 on the Fat Cat  - most excellent beers and the Purple Haze was gorgeous
last time it was on.
>> Nottingham,
>
> The Trip to Jerusalem pub is an interesting historic building, although 
> the beer is merely adequate and you'd be better off going to the 
> Saluation Inn round the corner. Nottingham Castle is nice to wander 
> around.
>
The Pit and Pendulum - I never drank the beer there but did try one or two
of their seven deadly sins.




Re: Anyone hiring at the moment?

2009-09-24 Thread lesleyb
On Thu, Sep 24, 2009 at 12:54:17PM +0100, James Laver wrote:
> On 24 Sep 2009, at 12:37, Ovid wrote:
>
>> He has an accent so thick (I'm told it's even thicker than other  
>> scunts)
>
> Contrary to popular belief, there is no scunthorpe accent. I'm *loving* 
> the word 'scunts' though. Head a few miles away to Goole and there are 
> accents galore. Goole is possibly the only small town to have it's own 
> set of regional accents. North Goole is nothing like East Goole.
>
> Sad, but when I was somewhat younger, we used to look forward to going  
> to scunthorpe. It was actually considered a day out. Of course since I  
> came from somewhere that had nothing more exciting than 6 charity  
> shops...
>
oh Sheffield lad, then ?


Re: More camels

2009-08-18 Thread lesleyb
On Tue, Aug 18, 2009 at 11:42:26PM +0100, Bob Walker wrote:
> On Tue, 18 Aug 2009, Peter Corlett wrote:
>
>> On 18 Aug 2009, at 21:21, Nicholas Clark wrote:
>>> On Tue, Aug 18, 2009 at 05:56:16PM +0100, Léon Brocard wrote:
 him). Peter brought a huge camel to the emergency social on Friday.
>>> Is there a picture of this it, in all its magnificence?
>>
>> It's one of these:
>>
>> http://www.hamleys.com/Camel_14_Inch_+_Hamleys_Toys/507749,default,pd.html
>>
>>
>
> Surely everyone needs a Moose these days.
> http://www.hamleys.com/Mugsy_Moose_9_Inch_+_Hamleys_Toys/930313,default,pd.html
  
  Pink dragons rock!
  
http://www.amazon.co.uk/WEBKINZ-EMPEROR-DRAGON-BRAND-RELEASE/dp/B001OR8JI8/ref=pd_sim_k_h_b_cs_1

  Regards

  L.