Re: sed or awk or something else?

2008-08-07 Thread Andrew Errington
On Fri, August 8, 2008 13:23, Jim Cheetham wrote:
> You want to transform an XML document, so you should use XML tools ...

And we wonder why software these days is so bloated...

A



Re: sed or awk or something else?

2008-08-07 Thread Jim Cheetham
You want to transform an XML document, so you should use XML tools ...

xmlstarlet is probably the best command-line based tool for this sort of job.
http://xmlstar.sf.net/

Replace the contents of the  field. This is really the
/gpx/wpt/name field ...
Replace the contents of the  field. This is really the
/gpx/wpt/cmt field ...
(Sidenote -- don't use 2 digit years unless you have broken software
somewhere. Use 4 digit years)

NEWDATE=$(date +%H%M)
NEWCMT=$(date +%Y%m%d%H%M)
xmlstarlet ed -N G="http://www.topografix.com/GPX/1/0"; -u ///G:name -v
WPT"$NEWNAME"  -u ///G:cmt -v "$NEWCMT"


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://www.topografix.com/GPX/1/0"; version="1.0"
creator="GPSBabel - http://www.gpsbabel.org";
xsi:schemaLocation="http://www.topografix.com/GPX/1/0
http://www.topografix.com/GPX/1/0/gpx.xsd";>
  2008-08-06T23:57:56Z
  
  
-2.80
2008-08-06T23:57:50Z
WPT1234
200808081622
WPT001
dgps
9
0.93
1.38
1.66
  


-jim


Re: samba puzzle

2008-08-07 Thread Nick Rout
On Fri, Aug 8, 2008 at 3:36 PM, Roger Searle <[EMAIL PROTECTED]> wrote:
> Nick Rout wrote:
>>
>> On Fri, Aug 8, 2008 at 6:32 AM, Roger Searle <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Hi there, I spent much of yesterday puzzled by a samba setup that just
>>> won't
>>> do what I expect.  This is a new installation of Hardy using the
>>> alternate
>>> installation to set up raid1, though the Home partition is that from a
>>> prior
>>> SuSE 10.1 installation.  This is not the same as the thread I started
>>> earlier in the week however some of the symptoms are similar, and I now
>>> realise that issues I have with my home Hardy installation is also
>>> similar.
>>>  My googling shows plenty of people saying they're having problems, lots
>>> of
>>> responses of "I don't have any problem with mine" or any suggestions to
>>> solve are covered by what I have done already, as follows:
>>>
>>> 1.  Create a few users, add them to a group or 2.
>>> 2.  sudo smbpasswd -a 
>>> 3.  Via konqueror right clicking a folder to share > Properties > Share,
>>> and
>>> follow your nose from there.  This is far from being rocket science.
>>>  (I've
>>> also used webmin to try to configure the share but without success at
>>> home)
>>> 4.  Use of chown and chmod (sometimes with -R) to apply various
>>> permissions
>>> to sub-folders.
>>>
>>>
>>> Connecting from a couple of XP machines it now gets interesting.  From
>>> one,
>>> there is a refusal to authenticate any user created above when trying to
>>> access the share - I get "incorrect password or unknown username for
>>> \\machine\share".  The only XP user that can connect is my own user - the
>>> same username as the first kubuntu user created who gets to use their
>>> password for sudo.
>>>
>>> From another, I can connect to the share despite that user NOT existing
>>> on
>>> the linux box!  Further, I could browse to sub-folders, open files, where
>>> permissions are such that the connecting user is neither the linux/samba
>>> user or in the group that owns the folder and permissions are 0700.
>>> I'd be very interested in any opinions on what might be causing me to go
>>> insane and consider a career change.  Is there anything in that old Home
>>> folder that might create problems - I would have thought that all the
>>> action
>>> is in "/" and that, as I mentioned, is fresh.
>>>
>>> Thanks for any pointers, to which I will try to follow up on today but it
>>> may end up having to be next week.
>>> Roger
>>>
>>>
>>
>> Is the user who wants to share in the sambashare group on the hardy
>> machine?
>>
>
> Thanks - no the user is not in sambashare.

smbpasswd does not add users to the sambashare group. smbpasswd
maintains the encrypted password database for samba.

the sambashare group allows (on *buntu) members to share parts of
their home directory through the gui.

Thinking further about this, if you just want to share the home
directories of each *buntu user, just set up a [homes] share in
smb.conf (and add them to the smbpasswd database).


> So smbpasswd isn't doing what it
> should (or the method has changed now).  I'll sort that out.
> I've also found some weirdness with hostname resolution - I connected via
> krdc (from my own workstation) to what ought to be the the server in
> question and was quite surprised to see a virtual machine running in vmware
> on that server - same whether by name and by IP address.

Not sure what you are saying here. Name resolution in smb is different
to name resolution of IP addresses.

How are you resolving IP adresses on your network?

What is resolving smb names? (or netbios names as they are sometimes called).

Try running from a linux machine smbtree and see what it sees on the network.

> Both those
> machines have a DHCP fixed lease set in the IPCop box.  Looking at those
> lease settings and the mac addresses, everything is correct so perhaps they
> aren't being picked up correctly, plus, I was seeing some screwy things in
> my arp cache which is now looking better.
>
> So now, though not having the full picture, I at least have a few things to
> come back to and check out on Monday and it's starting to make some sense.
>  It's definitely been one of those weeks!
> Cheers,
> Roger
>


Annotating PDFs with Xournal

2008-08-07 Thread Douglas Royds

Just had quite a success with Xournal:

   
http://www.g-loaded.eu/2008/05/03/how-to-annotate-pdf-files-in-linux-using-xournal/
   http://xournal.sourceforge.net/

   "No one said that annotating PDF files in Linux is an easy task. I
   have tried many open source tools for that job, but xournal seems to
   be the best one at the time of writing."

I believe that his recommended setting:

   startup_ruler=true

is now:

   highlighter_ruler=true

The weird "thickness" values are specified in "points" (1/72"):

   highlighter_thicknesses=2.83;8.50;19.84

These are 1, 3, and 7mm respectively. I've experimented with point-sizes 
of 5.6, 8, and 11. Time will tell whether these are a good idea or not.







===
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
===



Re: samba puzzle

2008-08-07 Thread Roger Searle

Nick Rout wrote:

On Fri, Aug 8, 2008 at 6:32 AM, Roger Searle <[EMAIL PROTECTED]> wrote:
  

Hi there, I spent much of yesterday puzzled by a samba setup that just won't
do what I expect.  This is a new installation of Hardy using the alternate
installation to set up raid1, though the Home partition is that from a prior
SuSE 10.1 installation.  This is not the same as the thread I started
earlier in the week however some of the symptoms are similar, and I now
realise that issues I have with my home Hardy installation is also similar.
 My googling shows plenty of people saying they're having problems, lots of
responses of "I don't have any problem with mine" or any suggestions to
solve are covered by what I have done already, as follows:

1.  Create a few users, add them to a group or 2.
2.  sudo smbpasswd -a 
3.  Via konqueror right clicking a folder to share > Properties > Share, and
follow your nose from there.  This is far from being rocket science.  (I've
also used webmin to try to configure the share but without success at home)
4.  Use of chown and chmod (sometimes with -R) to apply various permissions
to sub-folders.


Connecting from a couple of XP machines it now gets interesting.  From one,
there is a refusal to authenticate any user created above when trying to
access the share - I get "incorrect password or unknown username for
\\machine\share".  The only XP user that can connect is my own user - the
same username as the first kubuntu user created who gets to use their
password for sudo.

From another, I can connect to the share despite that user NOT existing on
the linux box!  Further, I could browse to sub-folders, open files, where
permissions are such that the connecting user is neither the linux/samba
user or in the group that owns the folder and permissions are 0700.
I'd be very interested in any opinions on what might be causing me to go
insane and consider a career change.  Is there anything in that old Home
folder that might create problems - I would have thought that all the action
is in "/" and that, as I mentioned, is fresh.

Thanks for any pointers, to which I will try to follow up on today but it
may end up having to be next week.
Roger




Is the user who wants to share in the sambashare group on the hardy machine?
  
Thanks - no the user is not in sambashare.  So smbpasswd isn't doing 
what it should (or the method has changed now).  I'll sort that out. 

I've also found some weirdness with hostname resolution - I connected 
via krdc (from my own workstation) to what ought to be the the server in 
question and was quite surprised to see a virtual machine running in 
vmware on that server - same whether by name and by IP address.  Both 
those machines have a DHCP fixed lease set in the IPCop box.  Looking at 
those lease settings and the mac addresses, everything is correct so 
perhaps they aren't being picked up correctly, plus, I was seeing some 
screwy things in my arp cache which is now looking better.


So now, though not having the full picture, I at least have a few things 
to come back to and check out on Monday and it's starting to make some 
sense.  It's definitely been one of those weeks!

Cheers,
Roger


Re: sed or awk or something else?

2008-08-07 Thread Andrew Errington
On Fri, August 8, 2008 12:25, Christopher Sawtell wrote:
>> PS The future is now!
>>
>
> OTOH you could write it in Ruby.

Yes, but Ruby sucks, so why would you?

:)

A



Re: sed or awk or something else?

2008-08-07 Thread Christopher Sawtell
> PS The future is now!

OTOH you could write it in Ruby.

( Possibly starting a "robust debate", we havn't had one for ages :-)


-- 
Sincerely etc.
Christopher Sawtell


Re: sed or awk or something else?

2008-08-07 Thread Andrew Errington
On Fri, August 8, 2008 12:04, Dave G wrote:
> Andrew
>
>
> you are dead right about python being the way to go I agree entirely
>
> the only reason for doing it this way is a lack of python knowledge but  I
> hope to correct this in the future
>
> currently I have a range of simple bash stuff for various GPS tasks this
> script was just cut out of one of them & was a quick and dirty way of
> solving my current issue

Well Dave, the future starts now!  Right now!  Now again!  Yes, always now!

I think I can honestly say that this project would be an ideal candidate
for a learning Python exercise- it's well defined and self-contained. 
Fortunately you have a working solution, so you are not under pressure to
make a Python version and make it work quickly.

Since Python is a scripting language you may find that the code you write
will look very similar to what you have already written in bash, but
instead of calling system utilities (such as sed) you will call Python
functions or your own subroutines.

Here's a good writeup to get you started:



Instead of printing "Lat:" and "Long:" you can "print" the GPX file
(there's no need to use any XML tools for this, just a bunch of print
statements will work).

And if you are interested in learning Python I recommend the book "Dive
Into Python" by Mark Pilgrim.  There is a copy in Christchurch library, or
you can download the book from the website (it's even legal to print your
own copy!).

http://www.diveintopython.org/

Best wishes,

Andrew

PS The future is now!



Re: sed or awk or something else?

2008-08-07 Thread Nick Rout
xsltproc is meant to be a way of transforming xml data I believe.
However I am not au fait enough with it or your data to say if it
would have been useful here.



On Fri, Aug 8, 2008 at 3:07 PM, Dave G <[EMAIL PROTECTED]> wrote:
> Ok
>
> that makes sense, I misread the man page (more than once!)
>
>  that's what happens with late-night "quick jobs"
>
> thanks both for your help
>
> must go
>
> cheers ...dave
>
> 2008/8/8 Jasper Bryant-Greene <[EMAIL PROTECTED]>
>>
>> On Fri, 2008-08-08 at 14:58 +1200, Dave G wrote:
>> > sed "s/WPT001/$WPTN/" $LOC/loc2test.gpx > $LOC/loc2test_sed.gpx
>> >
>> > gave the right result, however one weird thing is that even with
>> > the ../g" global switch it
>> > changed all the "WPT001"'s rather than just the first instance ?
>>
>> sed works on each line of its input. /g merely means to allow matching
>> multiple times _on one line_
>>
>> you may need to look for a tool that doesn't treat each line
>> independently, although I would highly recommend considering an
>> alternative approach such as that suggested by Andrew.
>>
>> -Jasper
>>
>
>


Re: sed or awk or something else?

2008-08-07 Thread Dave G
Ok

that makes sense, I misread the man page (more than once!)

 that's what happens with late-night "quick jobs"

thanks both for your help

must go

cheers ...dave

2008/8/8 Jasper Bryant-Greene <[EMAIL PROTECTED]>

> On Fri, 2008-08-08 at 14:58 +1200, Dave G wrote:
> > sed "s/WPT001/$WPTN/" $LOC/loc2test.gpx > $LOC/loc2test_sed.gpx
> >
> > gave the right result, however one weird thing is that even with
> > the ../g" global switch it
> > changed all the "WPT001"'s rather than just the first instance ?
>
> sed works on each line of its input. /g merely means to allow matching
> multiple times _on one line_
>
> you may need to look for a tool that doesn't treat each line
> independently, although I would highly recommend considering an
> alternative approach such as that suggested by Andrew.
>
> -Jasper
>
>


Re: sed or awk or something else?

2008-08-07 Thread Dave G
Andrew

you are dead right about python being the way to go I agree entirely

the only reason for doing it this way is a lack of python knowledge
but  I hope to correct this in the future

currently I have a range of simple bash stuff for various GPS tasks
this script was just cut out of one of them &
was a quick and dirty way of solving my current issue

as for the single '&'s I will fix that too ... ta

cheers...dave





2008/8/8 Dave G <[EMAIL PROTECTED]>

> Jasper
>
> sed "s/WPT001/$WPTN/" $LOC/loc2test.gpx > $LOC/loc2test_sed.gpx
>
> gave the right result, however one weird thing is that even with the ../g"
> global switch it
> changed all the "WPT001"'s rather than just the first instance ?
>
> (output):
>
> 
>   -2.80
> 2008-08-06T23:57:50Z
>   WP1450
>   WP1450
>   WP1450
>   dgps
>   9
>
> many thanks
>
> dave
>
>
> 2008/8/8 Dave G <[EMAIL PROTECTED]>
>
> Jasper
>>
>> I've previously tried double quoting  "$WPTN" ... no luck ... somewhere
>> else?
>>
>> 2008/8/8 Jasper Bryant-Greene <[EMAIL PROTECTED]>
>>
>> On Fri, 2008-08-08 at 14:15 +1200, Dave G wrote:
>>> > sed 's/WPT001/$WPTN/' $LOC/$WPTF > $GCF/$WPTY
>>>
>>> Use double quotes here if you want the variable to be expanded.
>>>
>>> -Jasper
>>>
>>>
>>
>


Re: sed or awk or something else?

2008-08-07 Thread Jasper Bryant-Greene
On Fri, 2008-08-08 at 14:58 +1200, Dave G wrote:
> sed "s/WPT001/$WPTN/" $LOC/loc2test.gpx > $LOC/loc2test_sed.gpx
> 
> gave the right result, however one weird thing is that even with
> the ../g" global switch it 
> changed all the "WPT001"'s rather than just the first instance ?

sed works on each line of its input. /g merely means to allow matching
multiple times _on one line_

you may need to look for a tool that doesn't treat each line
independently, although I would highly recommend considering an
alternative approach such as that suggested by Andrew.

-Jasper



Re: sed or awk or something else?

2008-08-07 Thread Dave G
Jasper

sed "s/WPT001/$WPTN/" $LOC/loc2test.gpx > $LOC/loc2test_sed.gpx

gave the right result, however one weird thing is that even with the ../g"
global switch it
changed all the "WPT001"'s rather than just the first instance ?

(output):


  -2.80
2008-08-06T23:57:50Z
  WP1450
  WP1450
  WP1450
  dgps
  9

many thanks

dave


2008/8/8 Dave G <[EMAIL PROTECTED]>

> Jasper
>
> I've previously tried double quoting  "$WPTN" ... no luck ... somewhere
> else?
>
> 2008/8/8 Jasper Bryant-Greene <[EMAIL PROTECTED]>
>
> On Fri, 2008-08-08 at 14:15 +1200, Dave G wrote:
>> > sed 's/WPT001/$WPTN/' $LOC/$WPTF > $GCF/$WPTY
>>
>> Use double quotes here if you want the variable to be expanded.
>>
>> -Jasper
>>
>>
>


Re: sed or awk or something else?

2008-08-07 Thread Andrew Errington
On Fri, August 8, 2008 11:15, Dave G wrote:
> Hi all
>
>
> I have been mucking around with a (very rough) bash script for a couple
> of days which I'm using to download the current real-time location from a
> Holux GPS
> data logger


Seems a bit unnecessarily complicated.

Why not do it in Python?

1) Open a link to the GPS data source (either directly, or from gpsd)
2) Receive $GPRMC and $GPGGA strings.
3) Parse the strings to extract lat/lon (and anything else you need)
4) Write a GPX file, constructed exactly how you like it.

Also, you can leave gpsd running all the time, and the $GPRMC string is
sufficient just to get lat/lon.

Each of these steps is very simple, and whilst I appreciate that using
pre-built stuff like GPSBabel is attractive, I think it's not appropriate
for this problem.

Just my opinion of course.

Andrew



Re: sed or awk or something else?

2008-08-07 Thread Jasper Bryant-Greene
On Fri, 2008-08-08 at 14:31 +1200, Dave G wrote:
> I've previously tried double quoting  "$WPTN" ... no luck ...
> somewhere else?

The other thing that struck me as odd was the way you background
virtually everything in your script (end the line with a single '&')

Is there a reason for that? It might introduce some race conditions if
you're not careful.

-Jasper



Re: sed or awk or something else?

2008-08-07 Thread Dave G
Jasper

I've previously tried double quoting  "$WPTN" ... no luck ... somewhere
else?

2008/8/8 Jasper Bryant-Greene <[EMAIL PROTECTED]>

> On Fri, 2008-08-08 at 14:15 +1200, Dave G wrote:
> > sed 's/WPT001/$WPTN/' $LOC/$WPTF > $GCF/$WPTY
>
> Use double quotes here if you want the variable to be expanded.
>
> -Jasper
>
>


Re: sed or awk or something else?

2008-08-07 Thread Jasper Bryant-Greene
On Fri, 2008-08-08 at 14:15 +1200, Dave G wrote:
> sed 's/WPT001/$WPTN/' $LOC/$WPTF > $GCF/$WPTY

Use double quotes here if you want the variable to be expanded.

-Jasper



sed or awk or something else?

2008-08-07 Thread Dave G
Hi all

I have been mucking around with a (very rough) bash script for a couple of
days
which I'm using to download the current real-time location from a Holux GPS
data logger

I'm using GPSBabel to capture and filter NMEA data via gpsd over bluetooth
and it's working fine

It is reducing the waypoint data to a generic "WPT001"

What I want to do now is rename the name field to a time stamped 6 character
waypoint name
eg. "WP1245" (<<1345Hrs) & I thought sed was just the command for the job

& created file name like: "WP1345.gpx" (has to be .gpx to re-import into my
mapping software running on wine)

The output gpx file looks like this:


http://www.gpsbabel.org";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://www.topografix.com/GPX/1/0";
xsi:schemaLocation="http://www.topografix.com/GPX/1/0
http://www.topografix.com/GPX/1/0/gpx.xsd";>
2008-08-06T23:57:56Z


  -2.80
2008-08-06T23:57:50Z
  WPT001
  WPT001
  WPT001
  dgps
  9
  0.93
  1.38
  1.66



My intention is to rename the  field and copy the time stamp data
(converted to local time from UTC)
to the  field if poss

My (draft) script:

#!/bin/sh
# 
#
# rough script to start gpsd & and download/convert current location to
# a single waypoint named: "WP" (eg. WP1345)

WPTF=WP`date +%y%m%d-%H%M`.gpx
WPTN=WP`date +%H%M`
LOC=~/tmp/test
GCF=~/tmp/test/GPS
WPTD=gpsd.dump
WPTX=gpsd.gpx
WPTY=YouAreHere.gpx


#  filter the .gpx data and remove duplicates by location, shortname
#  remove duplicates if within 10m, and delete source file
OPTS="-x transform,wpt=trk,del -x duplicate,location,shortname -x
position,distance=10m,del"

echo ""
gpsd -b /dev/rfcomm4 & echo "1. Starting gpsd over bluetooth" & sleep 2
echo "... please wait" & sleep 2
echo ""

echo rw | nc localhost 2947 > $LOC/$WPTD & echo "2. Downloading current
location from Holux" & sleep 3
echo "... please wait" & sleep 3
echo "" &

##   run gpsbable to filter data & reduce it to one waypoint:
gpsbabel -i nmea -f $LOC/$WPTD $OPTS -o gpx -F $LOC/$WPTF &
echo "3. Current location saved to file $LOC/$WPTF" &&
echo "" &

rm $GCF/$WPTY &&

## then use sed to replace the generic WP name: (STILL NOT WORKING)
sed 's/WPT001/$WPTN/' $LOC/$WPTF > $GCF/$WPTY

killall -q gpsd >/dev/null &

rm $LOC/$WPTD &

exit 0

When I run my script however I get sed syntax errors, I have done alot of
googling annd read the sed/awk man
pages but I can't get my head around the problem

It appears to work fine with manually entered values but errors with the
"$WPTN" (or $DATE) values in the second field
I have tried several values and switches without much luck

cheers .dave


Re: RMS on National Radio

2008-08-07 Thread Jasper Bryant-Greene
On Fri, 2008-08-08 at 12:18 +1200, Nick Rout wrote:
> On Fri, Aug 8, 2008 at 12:06 PM, Jasper Bryant-Greene
> >
> > If you're on a TelstraClear or Telecom circuit, you'll get relatively poor 
> > quality.
> > Those of us on peering ISPs (basically the rest of them) get the good 
> > quality one :)
> >
> > If this bothers you, please call your ISP and ask them to peer :)
> >
> 
> The quality of the DVB-S stream is OK. Pity there is no guide data to speak 
> of.

Yes, the DVB-S and DVB-T streams are good. Perhaps a scraper of the RNZ
website could be written - or maybe RNZ could be convinced to provide a
feed themselves - they already provide highlights in RSS format.

-Jasper



Re: RMS on National Radio

2008-08-07 Thread Nick Rout
On Fri, Aug 8, 2008 at 12:06 PM, Jasper Bryant-Greene
<[EMAIL PROTECTED]> wrote:
> On Fri, 2008-08-08 at 11:52 +1200, Douglas Royds wrote:
>> Christopher Sawtell wrote:
>> > On Fri, Aug 8, 2008 at 8:57 AM, Nick Rout <[EMAIL PROTECTED]> wrote:
>> >
>> >> Just be aware timing is often out on RNZ. If you are setting up to
>> >> record, I'd record all the way thorough from 8-9.
>> >>
>> >> In fact I think I'll just set mythtv to record the whole show from 8-12.
>> >>
>> >> Also available as a podcast of course.
>> >>
>> > http://www.radionz.co.nz/podcasts/saturday.rss#
>> >
>> >
>> >> The downloadable streams are often poor quality though.
>> >>
>> >
>> > There are Microsoft media and mp3 streams.
>> > A high quality one available to those who are able to access the NZ
>> > Internet peering exchanges, a middle quality one from a server in
>> > California, and a very low quality - 1950s telephone - 'backup' one
>> > served out of Wellington.
>> >
>> > kaffeine plays the streams, and Amarok the podcasts, both perfectly on
>> > the Hardy Heron.
>> >
>> > There are doubtless GNOME equivalents, but I know not what they are.
>> >
>>
>> totem-mozilla allows the mp3s to be played directly within Firefox.
>> Failing that, Totem or Mplayer will play the mp3s from a URL.
>>
>> The mp3 that I checked is mono, 48kbps.
>
> If you're on a TelstraClear or Telecom circuit, you'll get relatively poor 
> quality.
> Those of us on peering ISPs (basically the rest of them) get the good quality 
> one :)
>
> If this bothers you, please call your ISP and ask them to peer :)
>

The quality of the DVB-S stream is OK. Pity there is no guide data to speak of.


Re: RMS on National Radio

2008-08-07 Thread Jasper Bryant-Greene
On Fri, 2008-08-08 at 11:52 +1200, Douglas Royds wrote:
> Christopher Sawtell wrote:
> > On Fri, Aug 8, 2008 at 8:57 AM, Nick Rout <[EMAIL PROTECTED]> wrote:
> >   
> >> Just be aware timing is often out on RNZ. If you are setting up to
> >> record, I'd record all the way thorough from 8-9.
> >>
> >> In fact I think I'll just set mythtv to record the whole show from 8-12.
> >>
> >> Also available as a podcast of course.
> >> 
> > http://www.radionz.co.nz/podcasts/saturday.rss#
> >
> >   
> >> The downloadable streams are often poor quality though.
> >> 
> >
> > There are Microsoft media and mp3 streams.
> > A high quality one available to those who are able to access the NZ
> > Internet peering exchanges, a middle quality one from a server in
> > California, and a very low quality - 1950s telephone - 'backup' one
> > served out of Wellington.
> >
> > kaffeine plays the streams, and Amarok the podcasts, both perfectly on
> > the Hardy Heron.
> >
> > There are doubtless GNOME equivalents, but I know not what they are.
> >   
> 
> totem-mozilla allows the mp3s to be played directly within Firefox. 
> Failing that, Totem or Mplayer will play the mp3s from a URL.
> 
> The mp3 that I checked is mono, 48kbps.

If you're on a TelstraClear or Telecom circuit, you'll get relatively poor 
quality.
Those of us on peering ISPs (basically the rest of them) get the good quality 
one :)

If this bothers you, please call your ISP and ask them to peer :)

-Jasper



Re: RMS on National Radio

2008-08-07 Thread Douglas Royds

Christopher Sawtell wrote:

On Fri, Aug 8, 2008 at 8:57 AM, Nick Rout <[EMAIL PROTECTED]> wrote:
  

Just be aware timing is often out on RNZ. If you are setting up to
record, I'd record all the way thorough from 8-9.

In fact I think I'll just set mythtv to record the whole show from 8-12.

Also available as a podcast of course.


http://www.radionz.co.nz/podcasts/saturday.rss#

  

The downloadable streams are often poor quality though.



There are Microsoft media and mp3 streams.
A high quality one available to those who are able to access the NZ
Internet peering exchanges, a middle quality one from a server in
California, and a very low quality - 1950s telephone - 'backup' one
served out of Wellington.

kaffeine plays the streams, and Amarok the podcasts, both perfectly on
the Hardy Heron.

There are doubtless GNOME equivalents, but I know not what they are.
  


totem-mozilla allows the mp3s to be played directly within Firefox. 
Failing that, Totem or Mplayer will play the mp3s from a URL.


The mp3 that I checked is mono, 48kbps.







===
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
===



Re: RMS on National Radio

2008-08-07 Thread Christopher Sawtell
On Fri, Aug 8, 2008 at 8:57 AM, Nick Rout <[EMAIL PROTECTED]> wrote:
> Just be aware timing is often out on RNZ. If you are setting up to
> record, I'd record all the way thorough from 8-9.
>
> In fact I think I'll just set mythtv to record the whole show from 8-12.
>
> Also available as a podcast of course.
http://www.radionz.co.nz/podcasts/saturday.rss#

> The downloadable streams are often poor quality though.

There are Microsoft media and mp3 streams.
A high quality one available to those who are able to access the NZ
Internet peering exchanges, a middle quality one from a server in
California, and a very low quality - 1950s telephone - 'backup' one
served out of Wellington.

kaffeine plays the streams, and Amarok the podcasts, both perfectly on
the Hardy Heron.

There are doubtless GNOME equivalents, but I know not what they are.


-- 
Sincerely etc.
Christopher Sawtell


Re: RMS on National Radio

2008-08-07 Thread Nick Rout
Just be aware timing is often out on RNZ. If you are setting up to
record, I'd record all the way thorough from 8-9.

In fact I think I'll just set mythtv to record the whole show from 8-12.

Also available as a podcast of course. The downloadable streams are
often poor quality though.

On Fri, Aug 8, 2008 at 8:43 AM, John Carter <[EMAIL PROTECTED]> wrote:
> On Fri, 8 Aug 2008, Roger Searle wrote:
>
>> Rik said on the 4th:
>>
>> NB news: Saturday Morning with Kim Hill (radioNZ 8:15am this Saturday!)
>
> Doh!! So he did.
>
> And I can't even blame the traffic.
>
>
>
> John Carter Phone : (64)(3) 358 6639
> Tait ElectronicsFax   : (64)(3) 359 4632
> PO Box 1645 ChristchurchEmail : [EMAIL PROTECTED]
> New Zealand
>
>


Re: RMS on National Radio

2008-08-07 Thread John Carter

On Fri, 8 Aug 2008, Roger Searle wrote:


Rik said on the 4th:

NB news: Saturday Morning with Kim Hill (radioNZ 8:15am this Saturday!)


Doh!! So he did.

And I can't even blame the traffic.



John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : [EMAIL PROTECTED]
New Zealand



Re: RMS on National Radio

2008-08-07 Thread Roger Searle

Rik said on the 4th:

NB news: Saturday Morning with Kim Hill (radioNZ 8:15am this Saturday!)



John Carter wrote:

On the drive to work I thought I heard them say they will be chatting
to Richard Stallman on National Radio tomorrow morning.

I may have the time wrong I was paying more attention to the
traffic...



John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : [EMAIL PROTECTED]
New Zealand




RMS on National Radio

2008-08-07 Thread John Carter

On the drive to work I thought I heard them say they will be chatting
to Richard Stallman on National Radio tomorrow morning.

I may have the time wrong I was paying more attention to the
traffic...



John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : [EMAIL PROTECTED]
New Zealand



Re: samba puzzle

2008-08-07 Thread Nick Rout
On Fri, Aug 8, 2008 at 6:32 AM, Roger Searle <[EMAIL PROTECTED]> wrote:
> Hi there, I spent much of yesterday puzzled by a samba setup that just won't
> do what I expect.  This is a new installation of Hardy using the alternate
> installation to set up raid1, though the Home partition is that from a prior
> SuSE 10.1 installation.  This is not the same as the thread I started
> earlier in the week however some of the symptoms are similar, and I now
> realise that issues I have with my home Hardy installation is also similar.
>  My googling shows plenty of people saying they're having problems, lots of
> responses of "I don't have any problem with mine" or any suggestions to
> solve are covered by what I have done already, as follows:
>
> 1.  Create a few users, add them to a group or 2.
> 2.  sudo smbpasswd -a 
> 3.  Via konqueror right clicking a folder to share > Properties > Share, and
> follow your nose from there.  This is far from being rocket science.  (I've
> also used webmin to try to configure the share but without success at home)
> 4.  Use of chown and chmod (sometimes with -R) to apply various permissions
> to sub-folders.
>
>
> Connecting from a couple of XP machines it now gets interesting.  From one,
> there is a refusal to authenticate any user created above when trying to
> access the share - I get "incorrect password or unknown username for
> \\machine\share".  The only XP user that can connect is my own user - the
> same username as the first kubuntu user created who gets to use their
> password for sudo.
>
> From another, I can connect to the share despite that user NOT existing on
> the linux box!  Further, I could browse to sub-folders, open files, where
> permissions are such that the connecting user is neither the linux/samba
> user or in the group that owns the folder and permissions are 0700.
> I'd be very interested in any opinions on what might be causing me to go
> insane and consider a career change.  Is there anything in that old Home
> folder that might create problems - I would have thought that all the action
> is in "/" and that, as I mentioned, is fresh.
>
> Thanks for any pointers, to which I will try to follow up on today but it
> may end up having to be next week.
> Roger
>

Is the user who wants to share in the sambashare group on the hardy machine?


samba puzzle

2008-08-07 Thread Roger Searle
Hi there, I spent much of yesterday puzzled by a samba setup that just 
won't do what I expect.  This is a new installation of Hardy using the 
alternate installation to set up raid1, though the Home partition is 
that from a prior SuSE 10.1 installation.  This is not the same as the 
thread I started earlier in the week however some of the symptoms are 
similar, and I now realise that issues I have with my home Hardy 
installation is also similar.  My googling shows plenty of people saying 
they're having problems, lots of responses of "I don't have any problem 
with mine" or any suggestions to solve are covered by what I have done 
already, as follows:


1.  Create a few users, add them to a group or 2.
2.  sudo smbpasswd -a 
3.  Via konqueror right clicking a folder to share > Properties > Share, 
and follow your nose from there.  This is far from being rocket 
science.  (I've also used webmin to try to configure the share but 
without success at home)
4.  Use of chown and chmod (sometimes with -R) to apply various 
permissions to sub-folders.



Connecting from a couple of XP machines it now gets interesting.  From 
one, there is a refusal to authenticate any user created above when 
trying to access the share - I get "incorrect password or unknown 
username for \\machine\share".  The only XP user that can connect is my 
own user - the same username as the first kubuntu user created who gets 
to use their password for sudo.


From another, I can connect to the share despite that user NOT existing 
on the linux box!  Further, I could browse to sub-folders, open files, 
where permissions are such that the connecting user is neither the 
linux/samba user or in the group that owns the folder and permissions 
are 0700. 

I'd be very interested in any opinions on what might be causing me to go 
insane and consider a career change.  Is there anything in that old Home 
folder that might create problems - I would have thought that all the 
action is in "/" and that, as I mentioned, is fresh.


Thanks for any pointers, to which I will try to follow up on today but 
it may end up having to be next week.

Roger


Re: OT: NSS, Outer Space and such Geek Extreme Sports

2008-08-07 Thread Wesley Parish
NSS is the National Space Society, and it was merged from the L5 Society and 
another one.  I'll let you know when the stuff arrives from the States.

Wesley Parish

On Wednesday 06 August 2008 22:59, Daniel Hill wrote:
> NSS as is the national space society?
> I read some stuff about the now defunct L5 Society
> http://en.wikipedia.org/wiki/L5_Society
> actually they were merged
>
> so, I'm interested
>
> > Hi.
> >
> > I've just sent off a request to the NSS in the States to become a member
> > and set up a Chapter in Christchurch.  It's a geek extreme sport, or so
> > it would appear from reading all the stuff on Slashdot, to pontificate
> > about the exploration of Outer Space, the big bad governments messing it
> > all up, etc., and I decided I'd join up and do something in concert with
> > others.
> >
> > Is there anyone else who would be interested in joining with me and
> > setting up this proposed NSS chapter?  (FWIW, I'm going to join as a
> > student, because that is what I am at the present. ;)  At the very least,
> > we could have pleasant evenings at restaurants and prolonged discussions
> > over beer ...
> >
> > Wesley Parish

-- 
Clinersterton beademung, with all of love - RIP James Blish
-
Gaul is quartered into three halves.  Things which are 
impossible are equal to each other.  Guerrilla 
warfare means up to their monkey tricks. 
Extracts from "Schoolboy Howlers" - the collective wisdom 
of the foolish.
-
Mau e ki, he aha te mea nui?
You ask, what is the most important thing?
Maku e ki, he tangata, he tangata, he tangata.
I reply, it is people, it is people, it is people.


Re: Richard Stallman to rouse opposition on Kiwi tour

2008-08-07 Thread Rik Tindall

Robert Fisher wrote:

On Mon, 04 Aug 2008 5:18:20 pm Rik Tindall wrote:
  

Robert Fisher wrote:


http://computerworld.co.nz/news.nsf/news/0064FE274A08BA2CCC25749A00383CB3
?opendocument&utm_source=topnews&utm_medium=email&utm_campaign=topnews and
http://homepages.ihug.co.nz/~corwin/rms08.htm
  

Yep. COSC are kindly agreeing to host the Chch speech, Sat 16 Aug 2-5pm;
pls mark diaries.


Maybe
http://homepages.ihug.co.nz/~corwin/rms08.html
should be updated.
  


Rob,


That's done now, including your computerworld link - thanks.


Another note for CLUG members' diaries, for those that would like to 
express support for RMS's contribution to *nix, there is an evening meal 
planned for Friday 15 August, perhaps 7pm.


If you'd like to join GNU/Linux Users in marking this once-per-decade 
visit, socially, then please reply, off-list, so we know what size 
table(s) to book.


The new buffet in Riccarton ( http://www.feedme.co.nz/eatery.php?eid=179 
?) has been suggested, but it's still open as to where we'll go - feel 
free to recommend a restaurant with sufficient space.


Cheers, Rik