[SLUG] 'butfirst' keyword in Perl.

2005-09-24 Thread Paul Fenwick
G'day Erik,

 One thing thats been bugging me for a while about Perl is the
 lack of a butfirst keyword.

Be careful what you wish for, it might come true.  ;)

http://search.cpan.org/~pjf/Acme-ButFirst-1.00/lib/Acme/ButFirst.pm

Cheerio,

Paul

-- 
Paul Fenwick [EMAIL PROTECTED] | http://perltraining.com.au/
Director of Training   | Ph:  +61 3 9354 6001
Perl Training Australia| Fax: +61 3 9354 2681
-- 
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] 'butfirst' keyword in Perl.

2005-09-24 Thread Erik de Castro Lopo
Paul Fenwick wrote:

 G'day Erik,
 
  One thing thats been bugging me for a while about Perl is the
  lack of a butfirst keyword.
 
 Be careful what you wish for, it might come true.  ;)
 
 http://search.cpan.org/~pjf/Acme-ButFirst-1.00/lib/Acme/ButFirst.pm

Shit, why is it that whenever I open my mouth something always bites
*me* on the ass.

Contrary to the BUGS section which states:

Any use of this module should be considered a bug.

I just know that at some time in the future I will be debugging someone
else's Perl code and find a butfirst. And they'll be doing it just to 
piss me off.

Erik
-- 
+---+
  Erik de Castro Lopo
+---+
Microsoft is finally bringing all of its Windows operating system families
under one roof. It will combine all of the features of CE, stability and
support of ME and the speed of NT.
It will be called Windows CEMENT...
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] ubuntu firefox broken

2005-09-24 Thread Craig Warner
Some how during an apt-get upgrade, (see attached) I broken Firefox and
I don't know how to repair what has happened.

Any suggestions?

Craig 


$sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
  mozilla-firefox mozilla-firefox-gnome-support
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/8856kB of archives.
After unpacking 24.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y

Preconfiguring packages ...
(Reading database ... 80002 files and directories currently installed.)
Preparing to replace mozilla-firefox 1.0.6-1ubuntu1~5.04ubp1
(using .../mozilla-firefox_1.0.7-0ubuntu0.1_i386.deb) ...
Unpacking replacement mozilla-firefox ...
dpkg: error
processing /var/cache/apt/archives/mozilla-firefox_1.0.7-0ubuntu0.1_i386.deb 
(--unpack):
 trying to overwrite `/var/lib/mozilla-firefox/extensions.d/00classic',
which is also in package firefox
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace mozilla-firefox-gnome-support
1.0.6-1ubuntu1~5.04ubp1
(using .../mozilla-firefox-gnome-support_1.0.7-0ubuntu0.1_i386.deb) ...
Unpacking replacement mozilla-firefox-gnome-support ...
dpkg: error
processing 
/var/cache/apt/archives/mozilla-firefox-gnome-support_1.0.7-0ubuntu0.1_i386.deb 
(--unpack):
 trying to overwrite
`/usr/lib/mozilla-firefox/components/libmozgnome.so', which is also in
package firefox-gnome-support
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mozilla-firefox_1.0.7-0ubuntu0.1_i386.deb
 /var/cache/apt/archives/mozilla-firefox-gnome-support_1.0.7-0ubuntu0.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


-- 
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] FW: Script help

2005-09-24 Thread Matthew Hannigan
On Fri, Sep 23, 2005 at 10:07:14PM -0700, Angus Lees wrote:
 Since apparently I've been getting some experience with large datasets
 lately, this version scales better:
 
  sort allusers.txt  sortedusers.txt
  sort /etc/samba/smbpasswd | join -v1 -t: -o1.1 - sortedusers.txt | \
xargs -n 1 smbpasswd -x

Yes, similarly if both files are simple and sorted, 'comm'
is the 'standard' way to deal with this.

Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] .procmailrc + forwarding

2005-09-24 Thread Indelible

Hello,
When forwarding email with procmail, the from-address that procmail uses 
is [EMAIL PROTECTED] Is it possible to force procmail to use something 
different from the login name?
The problem is that the email address that's normally used is an alias 
and what I'm trying to do is to force forwarded mail to use this alias 
as the from address.

Thanks.
--
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] ubuntu firefox broken

2005-09-24 Thread Alan L Tyree
On Sat, 24 Sep 2005 19:13:15 +1000
Craig Warner [EMAIL PROTECTED] wrote:

 Some how during an apt-get upgrade, (see attached) I broken Firefox
 and I don't know how to repair what has happened.
 
 Any suggestions?
There are a couple of threads on the Ubuntu forum about this. My update
worked w/o any problem.

www.ubuntuforums.org/showthread.php?t=68530

www.ubuntuforums.org/sho...ead.php?p=367285

Cheers,
Alan

 
 Craig 
 
 
 $sudo apt-get upgrade
 Reading package lists... Done
 Building dependency tree... Done
 The following packages will be upgraded:
   mozilla-firefox mozilla-firefox-gnome-support
 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0B/8856kB of archives.
 After unpacking 24.7MB of additional disk space will be used.
 Do you want to continue [Y/n]? y
 
 Preconfiguring packages ...
 (Reading database ... 80002 files and directories currently
 installed.) Preparing to replace mozilla-firefox
 1.0.6-1ubuntu1~5.04ubp1 (using
 .../mozilla-firefox_1.0.7-0ubuntu0.1_i386.deb) ... Unpacking
 replacement mozilla-firefox ... dpkg: error
 processing
 /var/cache/apt/archives/mozilla-firefox_1.0.7-0ubuntu0.1_i386.deb
 (--unpack):
  trying to overwrite
  `/var/lib/mozilla-firefox/extensions.d/00classic',
 which is also in package firefox
 dpkg-deb: subprocess paste killed by signal (Broken pipe)
 Preparing to replace mozilla-firefox-gnome-support
 1.0.6-1ubuntu1~5.04ubp1
 (using .../mozilla-firefox-gnome-support_1.0.7-0ubuntu0.1_i386.deb)
 ... Unpacking replacement mozilla-firefox-gnome-support ...
 dpkg: error
 processing
 /var/cache/apt/archives/mozilla-firefox-gnome-support_1.0.7-0ubuntu0.
 1_i386.deb (--unpack):
  trying to overwrite
 `/usr/lib/mozilla-firefox/components/libmozgnome.so', which is also in
 package firefox-gnome-support
 dpkg-deb: subprocess paste killed by signal (Broken pipe)
 Errors were encountered while processing:
  /var/cache/apt/archives/mozilla-firefox_1.0.7-0ubuntu0.1_i386.deb
  /var/cache/apt/archives/mozilla-firefox-gnome-support_1.0.7-0ubuntu0
  .1_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670Mobile: +61 428 148 071
Fax: +61 2 4782 7092FWD: 615662
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] ISA Serial Card

2005-09-24 Thread prundle
Sluggers,

If one was to put an ISA serial expansion card into a box running a moden (2.6
kernel) Linux version. How would one go about getting the card accessible via a
/dev/ttySn device?

I've a need for more than 2 serial ports and I've added such a card, installed
Ubuntu then FC4 and neither appear to detect the card. With these modern
versions that detect everything outta the box I've forgotten what steps are
required, but so far I've poked around in /proc but still have no idea whether
the card is visible or not. I've attached a modem to the ports but can't see it
on /dev/ttyS2,3,4,5,6 though the other ports work via /dev/ttyS0,1 so I know the
modem is good and the on-board ports are ok.

Google returns a lot about compiling up a new version of the 2.2/4 kernel to
install the drivers but.

I guess I need to modprobe something, the card doesn't give much away, the main
chip has DIGI INTL JAPAN on it and on the back a sticker says PC/2e ISA.

Cluesticks

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] Re: Printer not detected

2005-09-24 Thread Ken Caldwell
On Fri, 2005-09-23 at 07:32 +1000, Ken Caldwell wrote:
 'Morning All,
 I have just acquired an HP PSC 1610 All-In-One printer and am having
 trouble establishing communication between the computer and printer.
 
 The computer is running Ubuntu Breezy. The packages hplip, hplip-base,
 hplip-data and hplip-ppds are all installed.
 
 System  Administration  Printing tells me that the printer HP-PSC-1600
 is ready but if I try to print a test page nothing happens.
 
 From the above tool I find
 
 Ready: Open device failed; will retry in 30 seconds...
 
 Does anyone have any troubleshooting suggestions I can try this evening
 when I can get back to it?
For the record it turned out to be due to a faulty USB cable.
The HPLIP Toolbox still does not think the printer exists but I can
print things just the same!

cheers,
Ken


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html