[OT] ADSL connection outage

2007-02-16 Thread Ori Idan
In the last 4 days, my Internet connection is off for few hours each day due to Bezeq prbolems in my area (Herzelia) Does someone have any idea what causes these problems? Also what is your experience with cables today? I am thinking about changing to cable connection since it seems that ADSL con

Re: Apache ssl as Default

2007-02-16 Thread Maxim Veksler
On 2/16/07, Oded Arbel <[EMAIL PROTECTED]> wrote: On Fri, 2007-02-16 at 00:27 +0200, Chaim Keren Tzion wrote: > What is the recommended way to set up Apache2 so that all sites will default > to ssl (https) even if entered as http? > > I don't want to have to set up a rewrite for each directory or

Re: Entering Hebrew (2nd round) - VNC with twm

2007-02-16 Thread Yair Friedman
On Thu, 15 Feb 2007 00:20:57 +0200, "Ehud Karni" <[EMAIL PROTECTED]> writes: > Most of the time I run only one application - Emacs - which is run as > full screen without border or title. I don't need any Hebrew support > for the Emacs - it is all done from within (by my hebeng.el). > > From time

Re: Apache ssl as Default

2007-02-16 Thread Oded Arbel
On Fri, 2007-02-16 at 00:27 +0200, Chaim Keren Tzion wrote: > What is the recommended way to set up Apache2 so that all sites will default > to ssl (https) even if entered as http? > > I don't want to have to set up a rewrite for each directory or virtual server. I think you can get away with no

script

2007-02-16 Thread Avraham Rosenberg
Hi Peter, Thanks for the quick reaction. Actually my blunder was putting a $ sign before list and fullist (another legacy from a previous attempt, but a harmful one, for a change). As to your remarks: 1-ls formats the output in severeal columns only when the output goes to a terminal, which is not

Re: script problem

2007-02-16 Thread Peter
By the way this can be done much better in Perl. Peter = 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: script problem

2007-02-16 Thread Peter
Beware that ls prints several items per line. Try ls -1. Also numbers that start with 0 are interpreted as octal. They will cause strange things to happen to the output. Peter = To unsubscribe, send mail to [EMAIL PROTECTED] wi

oops

2007-02-16 Thread Avraham Rosenberg
Sorry for the bandwidth. I am an idiot! Cheers, Avraham = 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: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Peter
On Fri, 16 Feb 2007, Tzahi Fadida wrote: Is there an added value in contrast of just using a simple server that accepts on low ports but bounces the packets to a low privileged port? The easy way to do this was discussed before, it's called port forwarding. It's done at the firewall level. S

script problem

2007-02-16 Thread Avraham Rosenberg
Hi I have some 3000 minimaps which I wish to colate into bigger maps using ImageMagic's montage. Trouble is that some of the maps are missing. Until I obtain them, I'll put in their place blank maps of same size and shape. The names of the minimaps are of the form xxx-yyy_625.jpg, xxx representing

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Peter
On Fri, 16 Feb 2007, Baruch Even wrote: You assume that the signal was received in the recv() call, you'll have a race condition where a child might die just before you go into recv() and the child is never reaped. The chance might be small to miniscule but it's still there. That's why you mu

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Peter
On Fri, 16 Feb 2007, Amos Shapira wrote: Digging a bit more in the kernel source I see that since the SOCK_DGRAM sockets are not connected, closing one side won't bother to inform the other side about the shutdown. Switching to SOCK_SEQPACKET solved the problem. This means that privbind will d

Re: Quickest way to list content of directory(s)

2007-02-16 Thread Peter
On Fri, 16 Feb 2007, Gilboa Davara wrote: On Thu, 2007-02-15 at 19:23 +0200, Peter wrote: On Thu, 15 Feb 2007, Gilboa Davara wrote: Small example. About two years ago I go bored, and decided to implement binary trees in (x86) Assembly. The end result was between 2-10 times faster then GCC (-

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Tzahi Fadida
Is there an added value in contrast of just using a simple server that accepts on low ports but bounces the packets to a low privileged port? Also, again of curiosity :), is there a way to wrap the daemon without forking and replacing the bind call with a customized bind with a more detailed securi

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Baruch Even
* Shachar Shemesh <[EMAIL PROTECTED]> [070216 12:10]: > Baruch Even wrote: > > If it is a process parent/child pair then you could listen on the signal > > SIGCHLD and when the child exits your process will be notified by the > > kernel. > Well, no. > > The most obvious programs that will be run t

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Shachar Shemesh
Tzahi Fadida wrote: > On Friday 16 February 2007 03:07, you wrote: > >> Hi, >> >> I'm trying to help complete Shachar Shemesh' privbind project ( >> http://sourceforge.net/projects/privbind) and it mostly works except that >> > > Just from curiosity, what does it mean privileged socket? why

Re: Quickest way to list content of directory(s)

2007-02-16 Thread Shachar Shemesh
Dotan Cohen wrote: > If gcc is so bad, can one use a different compiler on, say, an FC6 > box? I'm not computer expert, but I'd like the programs that I do > compile to at least run as best they could. Let me start by asking you something. How many programs do you know that are genuinely slowed dow

Re: Quickest way to list content of directory(s)

2007-02-16 Thread Oron Peled
On Friday, 16 בFebruary 2007 02:35, Amos Shapira wrote: > thefreecountry.com lists a few free C/C++ compilers, including a free > version of the Intel compiler for Linux (for non-commercial use), in > http://www.thefreecountry.com/compilers/cpp.shtml s/free/free of charge/g There are enough compa

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Tzahi Fadida
On Friday 16 February 2007 03:07, you wrote: > Hi, > > I'm trying to help complete Shachar Shemesh' privbind project ( > http://sourceforge.net/projects/privbind) and it mostly works except that Just from curiosity, what does it mean privileged socket? why are they privileged for internal use. I

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Shachar Shemesh
Baruch Even wrote: > If it is a process parent/child pair then you could listen on the signal > SIGCHLD and when the child exits your process will be notified by the > kernel. Well, no. The most obvious programs that will be run through privbind are daemons. Those tend (I say "tend", but it's in t

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Amos Shapira
On 16/02/07, Shamir Udi <[EMAIL PROTECTED]> wrote: off course they are not, they are UDP. Where is UDP involved, except maybe in spirit? These are not network sockets, they are anonymous unix-domain sockets which means that the connection is reliable and that the kernel can tell when there i

Re: Apache ssl as Default

2007-02-16 Thread Yehoshua (Shay) O'Hayon Suchar
For defaulting Apache2 just configure it to listen on 443 on ports.conf (you might also like to delete "Listen 80" if you don't want non-encrypted HTTP connections, and turn SSLEngine On, on your host's configuration (or VirtualHost). (make sure that you have mod_ssl installed) If you want htt

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Amos Shapira
On 16/02/07, Baruch Even <[EMAIL PROTECTED]> wrote: If it is a process parent/child pair then you could listen on the signal SIGCHLD and when the child exits your process will be notified by the kernel. You'll need to wait() on the child process in the signal handler to reap the zombie child pro

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Shamir Udi
off course they are not, they are UDP. On 2/16/07, Amos Shapira <[EMAIL PROTECTED]> wrote: On 16/02/07, Amos Shapira <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to help complete Shachar Shemesh' privbind project (http://sourceforge.net/projects/privbind > ) and it mostly works except th

Re: recvmsg on dgram socketpair blocks on open socket?

2007-02-16 Thread Baruch Even
* Amos Shapira <[EMAIL PROTECTED]> [070216 03:17]: > Hi, > > I'm trying to help complete Shachar Shemesh' privbind project ( > http://sourceforge.net/projects/privbind) and it mostly works except that > when the writing side of the socketpair exits, the side which calls > "recvfrom" keeps waiting