Re: [SLUG] Re: [chat] WiFi AP, is WRT54G the way to go ?

2010-07-13 Thread Mike
I've had a good experience with an Asus and openwrt. It was only wireless g cos was a while back but I'm sure there's n solutions the same. I just went to wikipedia looked up openwrt and looked up asus routers and got a compatible one, most info was literally on wikipedia. Other options are

Re: [SLUG] Adaptec RAID problems

2010-07-13 Thread Robert Barnett
Hi, Thanks for the pointers. Is it possible that the HBA driver loads the firmware onto the drives? I've tried the harddrive vendor (Hitachi), but they don't release firmware updates. I reduced the size of the array to 4x2Tb RAID10 (4Tb redundant). Perhaps I'll try a smaller size to see if

Re: [SLUG] Adaptec RAID problems

2010-07-13 Thread Ben Donohue
Hi Robert, I don't know about that the HBA driver loads the firmware onto the drives? I've updated HP drives firmware and fixed strange problems. Didn't know they were Hitachi drives. I've tried the harddrive vendor (Hitachi), but they don't release firmware updates. I reduced the

[SLUG] Perl Regular expression help

2010-07-13 Thread Peter Rundle
Hi Sluggers, I'm sure some of you genii have a real quick solution to this. I'm trying to find and replace and argument in a url. The url is of the form pg=somethingarg=somethingelse I want to take out the pg=something but the arg= may or may not be there. How do I say match the pg=something

Re: [SLUG] Perl Regular expression help

2010-07-13 Thread Jamie Wilkinson
Try: /pg=[^]*/ match zero or more of the character class that is not an ampersand. On 13 July 2010 17:21, Peter Rundle pe...@aerodonetix.com.au wrote: Hi Sluggers, I'm sure some of you genii have a real quick solution to this. I'm trying to find and replace and argument in a url. The url

Re: [SLUG] Perl Regular expression help

2010-07-13 Thread Lindsay Holmwood
Now you've got the search, I'm curious how you are going to do the replace. Is the Perlism to just use the substitute operator, or split on the pattern, iterate through the array, and join again? Lindsay On 14 July 2010 10:30, Jamie Wilkinson j...@spacepants.org wrote: Try: /pg=[^]*/ match

Re: [SLUG] Perl Regular expression help

2010-07-13 Thread Jamie Wilkinson
I'd use a global search and replace command, if it were me, and I was using sed: sed -ie 's/pg=[^]//g' lindsay.html On 13 July 2010 18:13, Lindsay Holmwood lind...@holmwood.id.au wrote: Now you've got the search, I'm curious how you are going to do the replace. Is the Perlism to just use the

Re: [SLUG] Perl Regular expression help

2010-07-13 Thread Tony Sceats
how about using a slightly different approach with split @input = split /\/; $input[0] should now be pg=something, $input[1] will be the args=somthingelse so you can trivially match, modify and print this to your output, whether or not it has extra arguments. On Wed, Jul 14, 2010 at 11:24

RE: [SLUG] Perl Regular expression help

2010-07-13 Thread Ken Foskey
/pg=.*/ But also I think is a special char (no?) that means put the matched bit back, though is that only on the replace side? (my question relates strictly to the matching side). Yes the ampersand is special, it represents the complete matched string on the replace. s/pg=.*/\/ As

Re: [SLUG] Perl Regular expression help

2010-07-13 Thread Jamie Wilkinson
I don't see the problem with my approach; the match will terminate when it sees the second ampersand, without consuming it. On 13 July 2010 19:01, Ken Foskey kfos...@tpg.com.au wrote: /pg=.*/ But also I think is a special char (no?) that means put the matched bit back, though is that

Re: [SLUG] Perl Regular expression help

2010-07-13 Thread Peter Rundle
Thanks Jamie (and others), That works a treat. I would have tried /pg=*[^]/ which of course would have matched all ampersands up until the last taking out more than one argument. I don't really understand how the [^] followed by the * works but it does. Thanks Pete P.S I didn't understand

[SLUG] today's scary thought

2010-07-13 Thread Del
Someone asked me today, as they often ask me about things Linux, if I had a Linux replacement for their favourite journal app that they run on their (windows) PC. I asked what that journal app did, and was told: You can set it to track when you open files of various types [in other

Re: [SLUG] today's scary thought

2010-07-13 Thread Jeff Waugh
quote who=Del Someone asked me today, as they often ask me about things Linux, if I had a Linux replacement for their favourite journal app that they run on their (windows) PC. I asked what that journal app did, and was told: You can set it to track when you open files of various types [in