Re: Tip of the day. Don't clobber your files.

2005-10-24 Thread Michael JasonSmith
On Thu, 2005-10-20 at 21:05 +1300, Isaac Devine wrote:
 Did you have a look at darcs? (www.darcs.net) It's fanastic!

Heard of it, have not used it ☺

-- 
Michael JasonSmithhttp://ldots.org/



Re: test / FreeBSD CD mount + .mpg

2005-10-24 Thread Nick Rout
On Mon, 24 Oct 2005 18:03:41 +1300
Rik Tindall [EMAIL PROTECTED] wrote:

 Nick Rout wrote:
 
 On Sat, 22 Oct 2005 17:56:05 +1300
 Richard Tindall [EMAIL PROTECTED] wrote:
 
   
 
 That worked,  i can confirm that the FreeBSD 5.4 Totem with Gstreamer 
 does play video clips as packaged, where the
 Ubuntu 5.04 version did not (until Xine substituted in). Will test 
 Ubuntu 5.10 asap.
 
 
 
 which videoclips did not play with ubuntu and what codecs did they use?
   
 
 there's a short of 'Revolution O/S' on the SFD'04 OpenCD: REV_OS_trailer.mpg
 
 it runs with totem/xine (but not totem/gstreamer, 'out of the box') on 
 Ubu5.04  5.10, tho
 
 FreeBSD 5.4 Totem with Gstreamer plays it fine. This might be a 'non-free' 
 issue.
 
 
 i've not looked at any codec settings.
 
 maybe you can test from your RO/S dvd? Is that a .mpg?

It's not my DVD unfortunately. However the file REV_OS_trailer.mpg (18M) is 
downloadable from here:

http://www.revolution-os.com/musicvideo.html

I assume it is the same one. mplayer plays it fine. totem plays it fine, using 
xine I assume. I haven't ever had much luck with gstreamer, never needed it.

The file is a very basic mpeg-1 stream. If a given media player cannot play it, 
it doesn't deserve that description. I see that gstreamer has many plugins, 
that all seem to be packaged separately. Maybe there is a gst plugin that you 
need? I see one in my packaging system called gst-plugins-ffmpeg and another 
called gst-plugins-mpeg2dec. The latter is described as Libmpeg2 based decoder 
plug-in for gstreamer. 

mplayer tells me that it is using libmpeg2 to decode the file, so gstreamer may 
work if gst-plugins-mpeg2dec is installed.

By the way here are some tests to determine the codec used:

[EMAIL PROTECTED] ~/media $ file REV_OS_trailer.mpg
REV_OS_trailer.mpg: MPEG sequence, v1, system multiplex

(that gives a pretty good indication of being an mpeg-1 stream)

[EMAIL PROTECTED] ~/media $ tcprobe -i REV_OS_trailer.mpg
[tcprobe] MPEG program stream (PS)

(as does that)

[tcprobe] summary for REV_OS_trailer.mpg, (*) = not default, 0 = not detected
import frame size: -g 352x240 [720x576] (*)
 aspect ratio: 4:3 (*)
   frame rate: -f 29.970 [25.000] frc=4 (*)
   PTS=47721.8588, frame_time=33 ms, bitrate=1150 kbps
  audio track: -a 0 [0] -e 44100,16,2 [48000,16,2] -n 0x50 [0x2000] (*)
   bitrate=224 kbps



[EMAIL PROTECTED] ~/media $ ffmpeg -i REV_OS_trailer.mpg
ffmpeg version 0.4.9-pre1, build 4743, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --prefix=/usr --host=i686-pc-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu 
--enable-shared-pp --enable-shared --disable-static --enable-mmx 
--disable-altivec --disable-debug --enable-mp3lame --enable-a52 
--disable-a52bin --enable-audio-oss --enable-v4l --enable-dv1394 
--enable-dc1394 --disable-pthreads --enable-xvid --enable-ogg --enable-vorbis 
--enable-dts --enable-network --enable-zlib --enable-ffplay --enable-faad 
--enable-faac --disable-faadbin --enable-gpl --enable-pp --disable-opts
  built on Sep 30 2005 17:17:47, gcc: 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, 
pie-8.7.8)
Input #0, mpeg, from 'REV_OS_trailer.mpg':
  Duration: 00:01:51.9, start: 0.340078, bitrate: 1412 kb/s
  Stream #0.0: Video: mpeg1video, 352x240, 29.97 fps
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Must supply at least one output file


 
 cheers,
 
 -- 
 Richard Tindall, InfoHelp Services http://www.infohelp.co.nz on:
 Ubuntu GNU/Linux 5.10 free OS, 2.6.12-9-686 kernel, GNOME 2.12.1 desktop
 OpenOffice.org 1.9.129 suite, Mozilla 1.7.12 browser + Firefox 1.0.7
 Thunderbird 1.0.7 email, Gedit 2.12.1 web editor, gFTP 2.0.18 filexfer
 


Re: Qemu - weird problem solved

2005-10-24 Thread Barry



Robert Fisher wrote:
I was a little frustrated that in WinXP on Qemu my numeric keypad did not work 
so a bit of hunting on Google showed I was not the only one.


The fix?

Turn Num-lock off.
 
Found that, its a right pain, when switching between lin and win you 
have to keep pressing the num lock as well (in w98)


Barry



NBR article about Linux in govt.

2005-10-24 Thread Hugo Vincent
http://www.nbr.co.nz/home/column_article.asp? 
id=13257cid=3cname=Technology


Someone should really help the author get his facts straight. He cites  
the Microsoft Get the facts page regarding Linux vs Windows cost of  
ownership..


Hugo



OT: Recommendations for PC Speakers

2005-10-24 Thread david merriman

Hi there,
I'm looking to replace my pc's aging 4.1 speakers with something bright, 
shiny and new, and wondered if anyone could recommend some decent 
speakers for a reasonable price.  I'd read good things about the TDK 
Tremor series when they came out a year or two back, but I haven't kept 
up with the current state of play.


I've got a SoundBlaster Live! Value card with both front and rear 
speaker outputs, but I don't want or need any more than a 2.1 system 
this time around, as I never watch movies or play games, so surround 
sound is a waste of money.  I play the occasional mp3, but I'm more 
concerned about music composition and playback, so decent sound is a must.


Thanks for any ideas :-) .
David

--
The dragon cast his wet, rheumy eyes, heavy-lidded with misery, over his 
kingdom-a malodorous, rot-ridden swamp, with moss cloaking brooding, 
gloomy cypresses, tree trunks like decayed teeth rising from stagnant 
ponds, creatures with mildewed fur and scales whom the meanest roadside 
zoo would have rejected--and hoped the antidepressants would kick in soon.


RE: Recommendations for PC Speakers

2005-10-24 Thread Craig FALCONER
Koss and roland both make spankingly good speakers.

However some of the $50 cheapies with separate sub unit have a spendid sound
too.  All depends on your ears, I guess

-Original Message-
From: david merriman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 25 October 2005 10:45 a.m.
To: CLUG
Subject: OT: Recommendations for PC Speakers


Hi there,
I'm looking to replace my pc's aging 4.1 speakers with something bright, 
shiny and new,



Re: qemu file transfer.

2005-10-24 Thread Barry

This reply has been written serial fashion as I tested various things.

I want to t/f files from windows to linux. I can t/f from linux to
windows by creating temp iso files. Printing would be ok but I could 
print to disk the t/f the file.


Nick Rout wrote:

Barry: please do the following in the windows virtual machine running on
qemu:

Click Start|Run
in the run command box that appears type winipcfg then enter


I went online and started qemu with 'qemu c -hda /home/barry/win98.img'
Selected ethernet adapter

hostnameN9S4R9
DNS server  (blank)
Node Type   Broadcast
Adapter address 52-54-00-12-34-56
IP Address  10.0.2.20
Subnet mask 255.0.0.0
Gefault Gateway 0.0.0.0
All other options are blank

From the command prompt,
Both C:\ftp 10.0.2.2 and C:\ftp 10.0.2.20 gives 'ftp connect :10061'
Next command I gave was ls. The response in each case is 'not connected'

I can ping both IPs from windows

When offline I tried 'qemu -user-net c -hda ~/win98.img'
The response is 'Could not get DNS address'
To start qemu while offline I need the '-dummy-net' option.
I can only ping and ftp to 10.0.2.20, ls again shows 'not connected'

Went online and started with 'qemu -user-net c -hda ~/win98.img'.I can 
now ping both numbers from windows. From linux I get 100% packet loss


ftp 10.0.2.2 now starts and requests linux user/pswd. Help command 
provides a listing. dir  ls both lock up the terminal.




This will tell you what the ip address of the windows machine is. There
is a drop down box - make sure you choose the right adaptor. The address
should be something in the range of 10.0.2.x

10.0.2.20


The address of the linux machine should be 10.0.2.2

If you have your ftp server set up on the linux box try ftp'ing into it
from the windows VM. Start a msdos command line thingy and simply type

ftp 10.0.2.2

Feed back the results.


as above



On Fri, 21 Oct 2005 09:07:00 +1300
Nick Rout wrote:



Barry you seem majorly confused between ftp and smb networking.


 Any t/f method will do but I do not want to have to go online every time


What is it that you are trying to do?




gebtoo emerge h*ll!

2005-10-24 Thread Steve Holdoway
Ok, how do I get out of this one???

Steve

test-gentoo bin # emerge --deep --newuse --nospinner --update world
Calculating world dependencies   ...done!
 emerge (1 of 65) sys-libs/glibc-2.3.5-r1 to /
 Downloading
http://distfiles.gentoo.org/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
--13:34:44-- 
http://distfiles.gentoo.org/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
   = `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
Resolving distfiles.gentoo.org... 64.50.236.52, 216.165.129.135,
156.56.247.195
Connecting to distfiles.gentoo.org[64.50.236.52]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:34:46 ERROR 404: Not Found.

 Downloading
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
--13:34:46-- 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
   = `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
Resolving distro.ibiblio.org... 152.2.210.109
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:34:48 ERROR 404: Not Found.

 Downloading
http://dev.gentoo.org/~eradicator/glibc/glibc-2.3.5-patches-1.11.tar.bz2
--13:34:48-- 
http://dev.gentoo.org/%7Eeradicator/glibc/glibc-2.3.5-patches-1.11.tar.bz2
   = `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
Resolving dev.gentoo.org... 134.68.220.30
Connecting to dev.gentoo.org[134.68.220.30]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:34:55 ERROR 404: Not Found.

!!! Couldn't download glibc-2.3.5-patches-1.11.tar.bz2. Aborting.



-- 
Work like you don't need the money,
Love like your heart has never been broken and
Dance like no one can see you.


Re: gebtoo emerge h*ll!

2005-10-24 Thread Nick Rout
I guess things fall off mirrors from time to time. I have that file (its 24191 
bytes long) and could email it to you if desired.


On Tue, 25 Oct 2005 13:28:14 +1300 (NZDT)
Steve Holdoway wrote:

 Ok, how do I get out of this one???
 
 Steve
 
 test-gentoo bin # emerge --deep --newuse --nospinner --update world
 Calculating world dependencies   ...done!
  emerge (1 of 65) sys-libs/glibc-2.3.5-r1 to /
  Downloading
 http://distfiles.gentoo.org/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
 --13:34:44-- 
 http://distfiles.gentoo.org/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
= `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
 Resolving distfiles.gentoo.org... 64.50.236.52, 216.165.129.135,
 156.56.247.195
 Connecting to distfiles.gentoo.org[64.50.236.52]:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 13:34:46 ERROR 404: Not Found.
 
  Downloading
 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
 --13:34:46-- 
 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
= `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
 Resolving distro.ibiblio.org... 152.2.210.109
 Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 13:34:48 ERROR 404: Not Found.
 
  Downloading
 http://dev.gentoo.org/~eradicator/glibc/glibc-2.3.5-patches-1.11.tar.bz2
 --13:34:48-- 
 http://dev.gentoo.org/%7Eeradicator/glibc/glibc-2.3.5-patches-1.11.tar.bz2
= `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
 Resolving dev.gentoo.org... 134.68.220.30
 Connecting to dev.gentoo.org[134.68.220.30]:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 13:34:55 ERROR 404: Not Found.
 
 !!! Couldn't download glibc-2.3.5-patches-1.11.tar.bz2. Aborting.
 
 
 
 -- 
 Work like you don't need the money,
 Love like your heart has never been broken and
 Dance like no one can see you.

-- 
Nick Rout [EMAIL PROTECTED]



Re: gebtoo emerge h*ll!

2005-10-24 Thread Nick Rout
Or better still sync your portage tree (emerge sync) and then the
updated ebuild will look for glibc-2.3.5-patches-1.13.tar.bz2, which is
on the mirrors.


On Tue, 25 Oct 2005 13:41:19 +1300
Nick Rout wrote:

 I guess things fall off mirrors from time to time. I have that file (its 
 24191 bytes long) and could email it to you if desired.
 
 
 On Tue, 25 Oct 2005 13:28:14 +1300 (NZDT)
 Steve Holdoway wrote:
 
  Ok, how do I get out of this one???
  
  Steve
  

  
  !!! Couldn't download glibc-2.3.5-patches-1.11.tar.bz2. Aborting.
  
  
  
-- 
Nick Rout [EMAIL PROTECTED]



Re: gebtoo emerge h*ll!

2005-10-24 Thread Christopher Sawtell
On Tuesday 25 October 2005 13:28, Steve Holdoway wrote:
 Ok, how do I get out of this one???

 Steve

 test-gentoo bin # emerge --deep --newuse --nospinner --update world
 Calculating world dependencies   ...done!

  emerge (1 of 65) sys-libs/glibc-2.3.5-r1 to /
  Downloading

 http://distfiles.gentoo.org/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
 --13:34:44--
 http://distfiles.gentoo.org/distfiles/glibc-2.3.5-patches-1.11.tar.bz2
= `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
 Resolving distfiles.gentoo.org... 64.50.236.52, 216.165.129.135,
 156.56.247.195
 Connecting to distfiles.gentoo.org[64.50.236.52]:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 13:34:46 ERROR 404: Not Found.

  Downloading

 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/glibc-2.
3.5-patches-1.11.tar.bz2 --13:34:46--
 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/glibc-2.
3.5-patches-1.11.tar.bz2 =
 `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2' Resolving
 distro.ibiblio.org... 152.2.210.109
 Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 13:34:48 ERROR 404: Not Found.

  Downloading

 http://dev.gentoo.org/~eradicator/glibc/glibc-2.3.5-patches-1.11.tar.bz2
 --13:34:48--
 http://dev.gentoo.org/%7Eeradicator/glibc/glibc-2.3.5-patches-1.11.tar.bz2
= `/usr/portage/distfiles/glibc-2.3.5-patches-1.11.tar.bz2'
 Resolving dev.gentoo.org... 134.68.220.30
 Connecting to dev.gentoo.org[134.68.220.30]:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 13:34:55 ERROR 404: Not Found.

 !!! Couldn't download glibc-2.3.5-patches-1.11.tar.bz2. Aborting.

The current patches file on the mirrors is
-rw-r--r--1 406  429 24793 Oct 19 17:02 
glibc-2.3.5-patches-1.13.tar.bz2

Suggest you emerge --sync
and try again.


-- 
CS


Re: NBR article about Linux in govt.

2005-10-24 Thread Jason Greenwood

The article is pure FUD, simple as that.

Hugo Vincent wrote:
http://www.nbr.co.nz/home/column_article.asp? 
id=13257cid=3cname=Technology


Someone should really help the author get his facts straight. He cites  
the Microsoft Get the facts page regarding Linux vs Windows cost of  
ownership..


Hugo






Re: NBR article about Linux in govt.

2005-10-24 Thread Christopher Sawtell
On Tuesday 25 October 2005 15:00, Jason Greenwood wrote:
 The article is pure FUD, simple as that.
True, but the author is chucking sh*t at the Greens more than anything.

 Hugo Vincent wrote:
  http://www.nbr.co.nz/home/column_article.asp?
  id=13257cid=3cname=Technology
 
  Someone should really help the author get his facts straight. He cites
  the Microsoft Get the facts page regarding Linux vs Windows cost of
  ownership..


-- 
CS


Help with sed

2005-10-24 Thread Tom Munro Glass
I've got several large files that require some repetitive multiline search and 
replace operations, and I feel sure that sed can do this, but I can't figure 
out how to do it.

The pattern I'm searching for in the input file is Type=0x21 followed by 
Label=abcde on the next line, where abcde is a 5 character number with 
leading spaces. If abcde is a multiple of 100, (d=0, e=0) I want to replace 
the first line with Type=0x22, and add a third line EndLevel=1

For example:

BEFORE: AFTER:
Type=0x21   Type=0x21   # No change required because
Label=  120 Label=  120 # Label not multiple of 100
blah, blah  blah, blah

Type=0x21   Type=0x22   # Change Type value
Label=  100 Label=  100
blah, blah  EndLevel=1  # Insert extra line
blah, blah

Type=0x21   Type=0x22   # Same as previous except
Label= 2200 Label= 2200 # different value for Label
blah, blah  EndLevel=1
blah, blah

The bit that's got me stumped is how to handle the Label line. Can someone 
please give me hint how to do this?

Tom


Re: Help with sed

2005-10-24 Thread Volker Kuhlmann
 Type=0x21 Type=0x22   # Same as previous except
 Label= 2200   Label= 2200 # different value for Label
 blah, blahEndLevel=1
   blah, blah
 
 The bit that's got me stumped is how to handle the Label line. Can someone 
 please give me hint how to do this?

The problem I have with sed is that it's line oriented, not record
oriented, and your job is record oriented. (Personally I'd use gawk.) It
can be a pain to match across lines in sed, but it's possible in GNU
sed.

The match condition I'd try for the label line is whether the number
ends in 2 zeros. You'd have to match all from the type= to the label= in
one expression, and if matched, perform one or more search/replaces, and
write out the result with any additional stuff you want appended after
label= . You can ignore any text following label= in the same record.

Does that help?

Volker

-- 
Volker Kuhlmann is possibly list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.