Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-17 Thread Adrian Bridgett
tac will do this BTW. (tac = cat spelt backwards. I don't think any Unix wizards will ever win a comedy award, except perhaps Randall Munroe (of xkcd.com fame)). Adrian -- bitcube.co.uk - Expert Linux infrastructure consultancy Puppet, Debian, Red Hat, Ubuntu, CentOS -- Please post to: Hampshi

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-16 Thread Daniel Pope
On 16/07/10 03:05, Vic wrote: I don't need debugging tools. I just avoid writing code with bugs in. Yeah, alright Dan. I'm sure we can all take that seriously. You seemed to take my previous tongue-in-cheek comment about the illegibility of Perl one-liners seriously. But seriously, I have

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-16 Thread Victor Churchill
> Actually, I have no idea what the semantics of <> are. I don't even know what > you call that syntactically - anonymous filehandle constant? Can you point me > to documentation about the semantics of that thing? Its a special case of a . perldoc perlop If a is used in a context that is look

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-16 Thread Chris. Aubrey-Smith
On 16 July 2010 03:05, Vic wrote: > > > I don't need debugging tools. I just avoid writing code with bugs in. > > A clear breach of the first law of programming! > > -- > Please post to: Hampshire@mailman.lug.org.uk > Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire > LUG

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Vic
> I don't need debugging tools. I just avoid writing code with bugs in. Yeah, alright Dan. I'm sure we can all take that seriously. Vic. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Daniel Pope
On 15/07/10 14:08, Vic wrote: perl -e 'print reverse <>' output.csv Yes, but because Python is more legible I stand a better chance of understanding what it does when I come to re-read it. Not like that gibberish. That's just prejudice. Well, postjudice. I have personal experience of trying

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Lisi
On Thursday 15 July 2010 15:20:39 Victor Churchill wrote: > On 15 July 2010 14:42, Jack Knight wrote: > > On 15/07/10 14:08, Vic wrote: > perl -e 'print reverse<>'output.csv > >>> > >>> Yes, but because Python is more legible I stand a better chance of > >>> understanding what it does when I

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Victor Churchill
On 15 July 2010 14:42, Jack Knight wrote: > On 15/07/10 14:08, Vic wrote: >> perl -e 'print reverse<>'output.csv >>> >>> Yes, but because Python is more legible I stand a better chance of >>> understanding what it does when I come to re-read it. Not like that >>> gibberish. >>> > P

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread James Courtier-Dutton
On 15 July 2010 14:03, Pierre Cazenave wrote: > > tac input.csv > output.csv > > tac == cat backwards :) > I like that one. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk ---

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Jack Knight
On 15/07/10 14:08, Vic wrote: perl -e 'print reverse<>'output.csv Yes, but because Python is more legible I stand a better chance of understanding what it does when I come to re-read it. Not like that gibberish. That's just prejudice. Having spent some time this week trying t

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Chris Aitken
> You've got it easy, with A&L not only is it in reverse order, but the > recent > items section sorts things differently within a day to the final statement. > I > have to go through and reorder them for the running balance. Not that I'm > planning to be with them much longer anyway. There's also

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Vic
>> perl -e 'print reverse <>' output.csv > > Yes, but because Python is more legible I stand a better chance of > understanding what it does when I come to re-read it. Not like that > gibberish. That's just prejudice. Having spent some time this week trying to debug some Python, I have come to t

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Pierre Cazenave
On 15/07/2010 12:38, Daniel Pope wrote: On 15/07/10 12:32, Chris. Aubrey-Smith wrote: I was blithely informed that there was no problem, since I could buy a piece of software which would turn the CSV files back the right way up. cat >flip_csv.py

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Daniel Pope
On 15/07/10 12:49, Vic wrote: perl -e 'print reverse <>' output.csv Yes, but because Python is more legible I stand a better chance of understanding what it does when I come to re-read it. Not like that gibberish. Dan -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://m

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Paul Tansom
** Ian Park [2010-07-15 12:43]: > On 15/07/10 12:32, Chris. Aubrey-Smith wrote: > > I thought my recent experiences with Lloyds TSB might be of interest. > > > > Last Tuesday, Lloyds changed their on-line banking system. The most > > noticeable change is that statements now appear upside-down

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Chris. Aubrey-Smith
> > On 15/07/10 12:32, Chris. Aubrey-Smith wrote: > > Hi, all! > > > > I thought my recent experiences with Lloyds TSB might be of interest. > > > > Please post to: Hampshire@mailman.lug.org.uk > Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire > LUG URL: http://www.hantslug

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Jack Knight
On 15/07/10 12:44, Daniel Pope wrote: On 15/07/10 12:41, James Courtier-Dutton wrote: python flip_csv.pyoutput.csv > Yes, but how much does that cost and does it have to have windows... ;-) For that I will charge a mere £125 ex VAT consultancy fee, but I would recommend you pay another £450

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Ian Park
Hmmm, Smile (the Co-op internet bank) are even more confusing: if you grab a "recent items" statement, that comes with the most recent at the top; if you grab a "complete" statement (when Smile thinks a page is full), that comes with the most recent at the bottom. Ian -- Ian Park 17 Pyle Hill New

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Vic
> cat >flip_csv.py < > import sys > lines = sys.stdin.readlines() > lines.reverse() > for l in lines: > sys.stdout.write(l) > > END > python flip_csv.py output.csv perl -e 'print reverse <>' output.csv Vic. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lu

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Daniel Pope
On 15/07/10 12:41, James Courtier-Dutton wrote: python flip_csv.pyoutput.csv > Yes, but how much does that cost and does it have to have windows... ;-) For that I will charge a mere £125 ex VAT consultancy fee, but I would recommend you pay another £450 ex VAT for me to set up a virtual app

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread James Courtier-Dutton
On 15 July 2010 12:38, Daniel Pope wrote: > On 15/07/10 12:32, Chris. Aubrey-Smith wrote: >> >> I was blithely >> informed that there was no problem, since I could buy a piece of >> software which would turn the CSV files back the right way up. > > cat >flip_csv.py < > import sys > lines = sys.std

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread James Courtier-Dutton
On 15 July 2010 12:32, Chris. Aubrey-Smith wrote: > Hi, all! > > I thought my recent experiences with Lloyds TSB might be of interest. > > Last Tuesday, Lloyds changed their on-line banking system. The most > noticeable change is that statements now appear upside-down, with the latest > transa

Re: [Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Daniel Pope
On 15/07/10 12:32, Chris. Aubrey-Smith wrote: I was blithely informed that there was no problem, since I could buy a piece of software which would turn the CSV files back the right way up. cat >flip_csv.py

[Hampshire] On-line Banking (Not entirely O.T.)

2010-07-15 Thread Chris. Aubrey-Smith
Hi, all! I thought my recent experiences with Lloyds TSB might be of interest. Last Tuesday, Lloyds changed their on-line banking system. The most noticeable change is that statements now appear upside-down, with the latest transaction at the top. For those of us who were brought up to perfor