Re: [SLUG] Re: [chat] WiFi AP, is WRT54G the way to go ?
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 gargoyle, tomato firmware and (closed source) ddwrt. Sent from my iPhone... don't buy an iPhone. On 12/07/2010, at 22:57, Dean Hamstead d...@fragfest.com.au wrote: Hi Voytek You may want to pick something with open source support that is more modern. For example a Netgear or an Asus. Without knowing your requirements, i cant recommend a more specific model. However the faster cpu, wireless-N and possibly gigabit ports may be worth a few extra dollars to you. Dean On 7/12/2010, Voytek Eymont li...@sbt.net.au wrote: I need to setup a WiFi access to a small LAN, if I recall from past discussions, WRT54G was often mentioned, is that still a good choice ? what version(s) of WRT54G to get/not get ? what third party firmware should I look at ? whilst I don't envisage needing anything beyond what standard device provides, I don't mind trying some new stuff to see -- Voytek -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Adaptec RAID problems
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 I have the same problem. The easiest way to replicate the problem is to run hdparm -t /dev/sda I get about 400kB/s on the problem RAID. The aacraid driver seems to mask single disks. AFAIK This prevents the driver timingout during bootup I've removed all LVMs so I can use modprobe and rmmod to experiment with different module options without restarting. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Adaptec RAID problems
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 size of the array to 4x2Tb RAID10 (4Tb redundant). Perhaps I'll try a smaller size to see if I have the same problem. The easiest way to replicate the problem is to run hdparm -t /dev/sda I get about 400kB/s on the problem RAID. Suggest doing a small raid 5 array (10gb) with 3 drives. Does this work? Could be a faulty drive or the large size has a bug. If it does not work as a small array it won't work as a large one. Ben -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Perl Regular expression help
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 up to but not including the next (which may or may not be there). /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). TIA's Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Perl Regular expression help
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 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 up to but not including the next (which may or may not be there). /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). TIA's Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Perl Regular expression help
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 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 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 up to but not including the next (which may or may not be there). /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). TIA's Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- w: http://holmwood.id.au/~lindsay/ t: @auxesis -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Perl Regular expression help
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 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 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 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 up to but not including the next (which may or may not be there). /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). TIA's Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- w: http://holmwood.id.au/~lindsay/ t: @auxesis -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Perl Regular expression help
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 AM, Jamie Wilkinson j...@spacepants.orgwrote: 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 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 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 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 up to but not including the next (which may or may not be there). /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). TIA's Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- w: http://holmwood.id.au/~lindsay/ t: @auxesis -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
RE: [SLUG] Perl Regular expression help
/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 pointed out the solution is not optimal, if there is more than two parameters it will consume them all. It will also NOT remove a trailing parameter because the second is not there. Ken -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Perl Regular expression help
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 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 pointed out the solution is not optimal, if there is more than two parameters it will consume them all. It will also NOT remove a trailing parameter because the second is not there. Ken -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Perl Regular expression help
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 Lindsay's question about doing the replace. I'm replacing the arg with nothing, I.E I just want to remove the pg= argument from the string. Jamie Wilkinson wrote: Try: /pg=[^]*/ match zero or more of the character class that is not an ampersand. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] today's scary thought
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 applications] and how long they are open for.. Further quizzing revealed that you can set it to record when those files were opened, saved, closed, and when and where any saved and backup copies were stored. I mentioned the security impacts of such an application, or even the fact that such an application was possible, and left it at that. -- Del -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] today's scary thought
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 other applications] and how long they are open for.. Further quizzing revealed that you can set it to record when those files were opened, saved, closed, and when and where any saved and backup copies were stored. I mentioned the security impacts of such an application, or even the fact that such an application was possible, and left it at that. Look around for Zeitgeist. :-) - Jeff -- Ubuntu's Bleeding Edge http://ubuntuedge.wordpress.com/ Acts of random. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html