Re: Full screen display in MpegTV

2001-05-30 Thread Ilya Konstantinov

On Wed, May 30, 2001 at 08:50:20PM -0700, Erez Boym wrote:
> Hi,
> 
> I'm using MpegTV 1.1.4 to watch VCD movies on my comp.
> When I change to full screen mode I get a black
> display with small movie area in the middle.
> 
> Is that the normal way MpegTV displays a full screen
> movie ?

I think MpegTV tries to switch to the lowest resolution your X is
configured for. Add lower resolutions (800x600, 640x480 etc.) to
the "Modes" line in your XF86Config file and restart the X server.
 
> How do I set it to display a true full screen display
> ?

If MpegTV doesn't support scaling to full-screen (as opposed to just
switching resolution), you might look into open source players such
as XINE or SMPEG, which can do scaling (hardware-accelerated, if your
card / driver supports it).

-- 
Best regards,
Ilya Konstantinov

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Full screen display in MpegTV

2001-05-30 Thread Erez Boym

Hi,

I'm using MpegTV 1.1.4 to watch VCD movies on my comp.
When I change to full screen mode I get a black
display with small movie area in the middle.

Is that the normal way MpegTV displays a full screen
movie ?

How do I set it to display a true full screen display
?

Thanks

Erez

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: ping

2001-05-30 Thread R.C.S

You want a good tool, you'll have to write one :)
maybe the following code will help you out, thought is sends tcp "pings".
it's real "0day" so you might find bugs, but it works.

// TCP Port pinger
// code by rasta

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

extern int h_errno;
//#include "net.h"

#define PORT 80
#define NUMP 1

resolve(const char *host)
{
 struct hostent *h;
 struct in_addr inp;
 if((inet_aton(host,&inp))==0) {
  if((h=gethostbyname(host))==NULL) {
   herror("gethostbyname");
   exit(1);
  }
  memcpy((void *)&inp.s_addr,(const void *)h->h_addr,h->h_length);
 }
 return (inp.s_addr);
}

int main(int argc, char **argv)
{
 int i, s, port, num, t, *tp;
 struct sockaddr_in sock;
 struct hostent *hostname;

 port=PORT;
 num=NUMP;
 t=1; tp=&t;

 if(argc<2) { 
  printf("usage: %s  [num pings] [port]\n",argv[0]); 
  exit(1); }

 if(argc>2) port=atoi(argv[2]);
 if(argc>3) num=atoi(argv[3]);


 sock.sin_family=AF_INET;
 sock.sin_port=htons(port);
 sock.sin_addr.s_addr=resolve(argv[1]);
 bzero((void *)(struct sockaddr *)&sock.sin_zero,8);


 for(i=0;i wrote:
> patching the original script sounds much more like what i need if i 
> don't find something else.
> on the first look  it might seem like  ping -s on solaris is much better 
> than the default ping but thats not always the case.
> lets assume that you need to get statistics on the status of the 
> network. statistics like, the host is up or down, just that no more than 
> that. what ping in solaris does is sending packets to a host until it 
> responds or until (i'm not sure) a certain time has been exceeded or X 
> packets didn't return. if one packet returns it's enough. in such cases 
> the solaris' ping is much more usefull and comfortable to use.
> 
> 
> guy keren wrote:
> 
> > On Thu, 31 May 2001, Noam Meltzer wrote:
> > 
> >> Well guys thank you all... but that what i really didn't want... sctipts
> >> i can write my self.
> >> What i really wanted is to find out if you can get what the ping binary
> >> in solaris does not a scripts to emulate it.
> >> Is there such a tool for linux?
> > 
> > 
> > a script _is_ a tool. what is the problem iwth writing this script and
> > installing it somewhere on the system? if yo want, you can turn this into
> > a one-line perl script given to perl on the command line.
> > 
> > there is no difference between that and a binary program. btw, the way
> > 'ping' behaves on linux by edfault is more useful then the way it does on
> > solaris (i.e. 'host is alive'? that's much less useful then what 'ping -s'
> > gives you on solaris).
> > 
> > btw, why do _you_ think the output on solaris is better then on linux? for
> > customer support via the phone? then tel the user to type 'ping -c 1' and
> > read the output to you.
> > 
> > --
> > guy
> > 
> > "For world domination - press 1,
> >  or dial 0, and please hold, for the creator." -- nob o. dy
> > 
> > 
> > =
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> > 
> > 
> > 
> 

-- 
http://www.rshell.org
Join #shellcode on EFnet.
[EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: ping

2001-05-30 Thread Noam Meltzer
patching the original script sounds much more like what i need if i don't find something else.
on the first look  it might seem like  ping -s on solaris is much better than the default ping but thats not always the case.
lets assume that you need to get statistics on the status of the network.
statistics like, the host is up or down, just that no more than that. what
ping in solaris does is sending packets to a host until it responds or until
(i'm not sure) a certain time has been exceeded or X packets didn't return.
if one packet returns it's enough. in such cases the solaris' ping is much
more usefull and comfortable to use.


guy keren wrote:
[EMAIL PROTECTED]">On Thu, 31 May 2001, Noam Meltzer wrote:
  Well guys thank you all... but that what i really didn't want... sctiptsi can write my self.What i really wanted is to find out if you can get what the ping binaryin solaris does not a scripts to emulate it.Is there such a tool for linux?
a script _is_ a tool. what is the problem iwth writing this script andinstalling it somewhere on the system? if yo want, you can turn this intoa one-line perl script given to perl on the command line.there is no difference between that and a binary program. btw, the way'ping' behaves on linux by edfault is more useful then the way it does onsolaris (i.e. 'host is alive'? that's much less useful then what 'ping -s'gives you on solaris).btw, why do _you_ think the output on solaris is better then on linux? forcustomer support via the phone? then tel the user to type 'ping -c 1' andread the output to you.--guy"For world domination - press 1, or dial 0, and please hold, for the creator." -- nob o. dy=To unsubscribe, send mail to [EMAIL PROTECTED] withthe word "unsubscribe" in the message body, e.g., run the commandecho unsubscribe | mail [EMAIL PROTECTED]




Re: ping

2001-05-30 Thread guy keren


On Thu, 31 May 2001, Noam Meltzer wrote:

> Well guys thank you all... but that what i really didn't want... sctipts
> i can write my self.
> What i really wanted is to find out if you can get what the ping binary
> in solaris does not a scripts to emulate it.
> Is there such a tool for linux?

a script _is_ a tool. what is the problem iwth writing this script and
installing it somewhere on the system? if yo want, you can turn this into
a one-line perl script given to perl on the command line.

there is no difference between that and a binary program. btw, the way
'ping' behaves on linux by edfault is more useful then the way it does on
solaris (i.e. 'host is alive'? that's much less useful then what 'ping -s'
gives you on solaris).

btw, why do _you_ think the output on solaris is better then on linux? for
customer support via the phone? then tel the user to type 'ping -c 1' and
read the output to you.

--
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: ping

2001-05-30 Thread Noam Meltzer

Well guys thank you all... but that what i really didn't want... sctipts
i can write my self.
What i really wanted is to find out if you can get what the ping binary
in solaris does not a scripts to emulate it.
Is there such a tool for linux?

Noam

rcs wrote:

 > Ooops!
 > and
 > if [ $# != 2 ]...
 > should be
 > if [ $# != 1 ]
 >
 > Sorry, it's been a long long day. here's the new code:
 >
 > #!/bin/sh
 > if [ $# != 1 ]; then echo "usage: $0 "; exit; fi
 > ping -c 1 $1 >/dev/null 2>&1
 > if [ $? == 0 ]
 > then
 >  echo $1 is alive
 > else
 >  echo $1 is not answering (to ICMP echo-request)
 > fi
 >
 > Oleg Goldshmidt <[EMAIL PROTECTED]> wrote:
 >
 >> rcs <[EMAIL PROTECTED]> writes:
 >>
 >>> #!/bin/sh
 >>> if [ $# != 2 ]; then echo "usage: $0 "; exit; fi
 >>> ping -c 1 $1
 >>> if [ $? == 0 ]
 >>> then
 >>>  echo $0 is alive.
 >>> else
 >>>  echo $0 is not answering (to ICMP echo-request).
 >>> fi
 >>
 >> $0 should be $1, shouldn't it?
 >>
 >> --
 >> Oleg Goldshmidt | [EMAIL PROTECTED]
 >> If it aint't broken it hasn't got enough features yet.
 >



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: search/replace with regexp

2001-05-30 Thread Yotam Medini

On Wed, May 30, 2001 at 10:13:29AM +0300, Ben-Nes Michael wrote:
> Any one know about good search/replace (text) that accept regexp as pattern?

Python has an 're' package and you can get is source - 
it is probably here:

 -rw-r--r-- jhylton/jhylton   15155 Python-2.0/Modules/regexmodule.c
 -rw-r--r-- jhylton/jhylton   46859 Python-2.0/Modules/regexpr.c
 -rw-r--r-- jhylton/jhylton2332 Python-2.0/Modules/sre.h
 -rw-r--r-- jhylton/jhylton5598 Python-2.0/Modules/regexpr.h

Tcl's tcl.h has:
..
EXTERN Tcl_RegExp   Tcl_RegExpCompile _ANSI_ARGS_((Tcl_Interp *interp,
char *string));
EXTERN int  Tcl_RegExpExec _ANSI_ARGS_((Tcl_Interp *interp,
Tcl_RegExp regexp, char *string, char *start));
EXTERN int  Tcl_RegExpMatch _ANSI_ARGS_((Tcl_Interp *interp,
char *string, char *pattern));
EXTERN void Tcl_RegExpRange _ANSI_ARGS_((Tcl_RegExp regexp,
int index, char **startPtr, char **endPtr));
..

But then you need to initialize Tcl and its interpreter.
You may try to dig inside the Tcl code.

-- yotam



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: ISP

2001-05-30 Thread Miki Shapiro


This bears some resemblance to copyrighted software that is free for the
home user, yet costs money for the corporate one, even though the
user can just-as-well download the home-user SW and run it for corporation
uses.

Too expensive to actually check, so in most cases you just don't bother,
only quoting your official line to your existing or potential customers
and generally trusting the honesty of your customers to pay you when
appropriate (And Israel is definitely a wonderful, albeit unprofitable,
place to go about with that idea).

The difference is that ISP's are by far less profitable businesses than
software developers. For them, such "NAT piracy" could easily prove a
financial death blow. espicially if every such pirate is one juicy
business less to milk for money on one side, and one more
round-the-clock broadband hog throughout the day. For all those with
software-piracy ethics this may be a point to consider.

:-)

---= Miki Shapiro =--
 ---= Cell: (+972)-56-322433 =
  ---= ICQ: 3EE853 =---
   ---= Windows Programmer in Rehab =---
-

"If at first you don't succeed...
.. Skydiving is probbably not for you."

On Fri, 25 May 2001, Boris Kreitchman wrote:

> 
> On Fri, 25 May 2001, Oded Arbel wrote:
> 
> > There was an ISP in Singapure or something that prevented its home users
> > from doing NAT, but this really isn't the thing here in Israel -
> > Like so many has said - the ISP has no way to check - nor do they care -
> > if you use 1 computer at home, or 3 through NAT. what the ISPs are trying
> > to prevent is small buisnesses connecting through ADSL on NAT.
> 
> I believe there is a way to check that some user has number of computers
> behind NAT. Although all outgoing packets will have same source IP address
> some applications (for example Gnutella) may send inside of packet
> internal IP address of computer they are running on. And packets from same
> real IP containing inside different internal IPs most likely passed NAT.
> I doubt that any ISP will ever bother to investigate your packets to check
> that you're using NAT, but saying that it's completely undetectable isn't true.
> 
> Bye,
> Boris
> 
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




yudit Hebrew keymap

2001-05-30 Thread Tzafrir Cohen

Hi

A while ago (after yudit 2.0 was declared) I posted to this list a
corrected hebrew keymap for yudit.

Has anybody submitted it to the yudit developers?

Anyway, I was playing with QEmacs
(http://www-stud.enst.fr/~bellard/qemacs/ ) yesterday, and I noticed that
it didn't interpert some of the characters (/';,.). I'm not sure if the
original format was correct or not, but anyway I corrected the map to work
with it.

You can find the modified map in:
http://www.technion.ac.il/~tzafrir/Hebrew.kmap

(A temporary location. In the future it will probably be in
pub/Hebrew/Keymaps/Yudit in the IGLU server, but I haven't created it due
to some technical problems with the server).

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Samba book

2001-05-30 Thread Daniel Feiglin

Tzafrir Cohen wrote:

> On Sun, 27 May 2001, Shaul Karl wrote:
> 
> [ debian has docs under /usr/share/doc and not under /usr/doc ]
> 
> 
>> Do other distros have their docs under /usr/share ?
> 
> 
> Mandrake, as of version 7.2
> Redhat, as of version 7.0
> 
> (This includes, of course, not only doc/, but also man/ and info/) .
> 
> This probably applies to other distros, as it is one of the more noticable
> parts of FSH-compliance which is not considered a Good Thing.

SuSE 7.1 has most of its stuff under /usr/share/doc, but there seem to be bits 
and pieces left in /usr/doc from previous versions, and never moved.

Dan Feiglin


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Samba book

2001-05-30 Thread Tzafrir Cohen

On Sun, 27 May 2001, Shaul Karl wrote:

[ debian has docs under /usr/share/doc and not under /usr/doc ]

> Do other distros have their docs under /usr/share ?

Mandrake, as of version 7.2
Redhat, as of version 7.0

(This includes, of course, not only doc/, but also man/ and info/) .

This probably applies to other distros, as it is one of the more noticable
parts of FSH-compliance which is not considered a Good Thing.

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: search/replace with regexp

2001-05-30 Thread rcs

You can use sed at the command line.
cat file|sed -e '[[/address/,]/toaddress/]s/this/that/'
address can either be a number like: cat /etc/passwd|sed -e '1s/root/toor/'
or a regex it self like: cat /etc/passwd|sed -e '/^.oot/,/bin/s/tcsh/bash/'
you can add g after the last / for global substitutions, i.e
same word multiple times on one line.

Ben-Nes Michael <[EMAIL PROTECTED]> wrote:
> Hi All
> 
> Any one know about good search/replace (text) that accept regexp as pattern
> ?
> 
> the one that im using is rpl (great) but it does not support regexp :(
> 
> --
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --
> 
> 
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

-- 
http://www.rshell.org
Join #shellcode on EFnet.
[EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: search/replace with regexp

2001-05-30 Thread Ben-Nes Michael

Tzafrir had a great idea which is very easy

perl -p -i -e 's/[0-9]{10}/2001053001/g' ./*

in this sample change the date in the dns enteries to the current in one
click :)

- Original Message -
From: "Oleg Goldshmidt" <[EMAIL PROTECTED]>
To: "Ben-Nes Michael" <[EMAIL PROTECTED]>
Cc: "linux ILUG" <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 10:50 AM
Subject: Re: search/replace with regexp


> "Ben-Nes Michael" <[EMAIL PROTECTED]> writes:
>
> > Any one know about good search/replace (text) that accept regexp as
pattern
> > ?
>
> Off-line. i.e. script-based? I will be happy to learn a new
> tool. FWIW, up to now, I used a simple wrapper for ed:
>
> #!/bin/bash
>
> tmp_script=/tmp/subst.ed.$$
>
> PROGNAME=$(basename $0)
>
> usage () {
> echo "
>
> Usage:  $PROGNAME [ -h ] regexp substitute files
>
> Does a global search of the (ed-style) regexp and
> performs the substitution in place (overwrites!)
> for every file listed.
>
> Options:
>-hprints this usage message.
>
> " 1>&2
> }
>
> while getopts h OPTION
> do
> case $OPTION in
> h) usage
>exit 1
>;;
> \?) echo '$PROGNAME: unknown option $OPTARG'
> usage
> exit 2
> ;;
> esac
> done
> shift $(expr $OPTIND - 1)
>
> if [ $# -lt 3 ]; then
>echo "$PROGNAME: Wrong number of arguments"
>exit 3
> fi
>
> regexp=$1
> substitute=$2
> shift 2
>
> echo "g/$regexp/s//$substitute/g
> w
> q
> " > $tmp_script
>
> for file in "$@"
> do
>if [ -f $file ]
>   then echo -n "Making substitution in file $file ... "
>orig_version=/tmp/subst.$(basename $file).$$
>cp -f $file $orig_version
>ed -s $file < $tmp_script
>if [ $? -eq 0 ]
>   then rm -f $orig_version
>echo "done"
>   else mv -f $orig_version $file
>echo "error in ed ... aborted"
>fi
>   else echo "File $file does not exist"
>fi
> done
>
> rm -f $tmp_script
>
> ##
>
> For an important warranty note, see the copyright section of man
> chat(8) :).
>
> --
> Oleg Goldshmidt | [EMAIL PROTECTED]
> If it ain't broken, it hasn't got enough features yet.
>

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: search/replace with regexp

2001-05-30 Thread Oleg Goldshmidt

"Ben-Nes Michael" <[EMAIL PROTECTED]> writes:

> Any one know about good search/replace (text) that accept regexp as pattern
> ?

Off-line. i.e. script-based? I will be happy to learn a new
tool. FWIW, up to now, I used a simple wrapper for ed:

#!/bin/bash

tmp_script=/tmp/subst.ed.$$

PROGNAME=$(basename $0)

usage () {
echo "

Usage:  $PROGNAME [ -h ] regexp substitute files

Does a global search of the (ed-style) regexp and
performs the substitution in place (overwrites!)
for every file listed.

Options:
   -hprints this usage message.

" 1>&2
}

while getopts h OPTION
do
case $OPTION in
h) usage
   exit 1
   ;;
\?) echo '$PROGNAME: unknown option $OPTARG'
usage
exit 2
;;
esac
done
shift $(expr $OPTIND - 1)

if [ $# -lt 3 ]; then
   echo "$PROGNAME: Wrong number of arguments"
   exit 3
fi

regexp=$1
substitute=$2
shift 2

echo "g/$regexp/s//$substitute/g
w
q
" > $tmp_script

for file in "$@"
do
   if [ -f $file ]
  then echo -n "Making substitution in file $file ... " 
   orig_version=/tmp/subst.$(basename $file).$$
   cp -f $file $orig_version
   ed -s $file < $tmp_script 
   if [ $? -eq 0 ]
  then rm -f $orig_version
   echo "done"
  else mv -f $orig_version $file
   echo "error in ed ... aborted"
   fi
  else echo "File $file does not exist"
   fi
done

rm -f $tmp_script

##

For an important warranty note, see the copyright section of man
chat(8) :).

-- 
Oleg Goldshmidt | [EMAIL PROTECTED] 
If it ain't broken, it hasn't got enough features yet.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




search/replace with regexp

2001-05-30 Thread Ben-Nes Michael

Hi All

Any one know about good search/replace (text) that accept regexp as pattern
?

the one that im using is rpl (great) but it does not support regexp :(

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]