Re: entering hebrew?

2007-02-15 Thread Dan Bar Dov

I agree with you that I was not specific enough, and I apologize for that.
Switching from windows desktop to linux desktop is far from intuitive,
therefore my questions
are kind of dumb. Consider them newbee questions.

My next one is about calendar/appointment book. Thundirbird does not
have it AFAIK.
What do I need to look for on FC5/KDE desktop?

Thanks,
Dan


On 2/14/07, Julian Daich [EMAIL PROTECTED] wrote:

El mié, 14-02-2007 a las 18:51 +0200, Dan Bar Dov escribió:
 Thank you all for the very interesting thread.

 FYI I'm using fedora core 5, KDE, everything standard. But that is not 
relevant.
Why do you think is what not relevant? Next time be more specific!
 Dotan I think, almost figured me out,
 I'm using Linux for years,
(!)
 but
 always in console mode, never graphics, never gui. For that I used
 windows.

 All I needed to know is that on the bottom right there's a little icon
 with US on
 it, and by clicking it, I'd switch to hebrew input.

 You could have said - very similar to windows.

Right click over the KDE toolbarselect add an item select from the
items´ menu the keyboard app. In Windows( AFAIK at least until XP) you
don´t have the possibility to add items to your toolbar at a glance.
 Anyway, this how to kill a fly with an atomic bomb was very educational.

Next time try to play a little bit.
 Thanks
 Dan

 On 2/14/07, Julian Daich [EMAIL PROTECTED] wrote:
  El mié, 14-02-2007 a las 09:55 +0200, Dan Bar Dov escribió:
   How do I input hebrew on Linux?
  Your question sound like,¨ How do I use an computer?¨
   More specifically, in firefox (2.0).
  Could you be more specific? Which Linux distribution and desktop
  enviroment are you using?
  Did you set the Hebrew?
  Usually you have to:
  1. Set the Hebrew keyboard.
  2. Have installed the Hebrew packages of* your* distro including aspell
  for Hebrew if you want support for spelling and, if it is available for
  your distro, Firefox-locale-he if you want Firefox in Hebrew. Hebrew
  packages are often called Language-pack-he or Langauge-support-he in
  some distros. Hebrew fonts, as Culmus, and other basics features have to
  be installed by default in most distros.
 
  Julian
  
   Thanks,
   Dan
  
   =
   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]
  
  --
  Julian Daich [EMAIL PROTECTED]
 
 
--
Julian Daich [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: entering hebrew?

2007-02-15 Thread Julian Daich
El jue, 15-02-2007 a las 12:51 +0200, Dan Bar Dov escribió:
 I agree with you that I was not specific enough, and I apologize for that.
 Switching from windows desktop to linux desktop is far from intuitive,
 therefore my questions
 are kind of dumb. Consider them newbee questions.
 
 My next one is about calendar/appointment book. Thundirbird does not
 have it AFAIK.
 What do I need to look for on FC5/KDE desktop?
Kontact
 
 Thanks,
 Dan
 
 
 On 2/14/07, Julian Daich [EMAIL PROTECTED] wrote:
  El mié, 14-02-2007 a las 18:51 +0200, Dan Bar Dov escribió:
   Thank you all for the very interesting thread.
  
   FYI I'm using fedora core 5, KDE, everything standard. But that is not 
   relevant.
  Why do you think is what not relevant? Next time be more specific!
   Dotan I think, almost figured me out,
   I'm using Linux for years,
  (!)
   but
   always in console mode, never graphics, never gui. For that I used
   windows.
  
   All I needed to know is that on the bottom right there's a little icon
   with US on
   it, and by clicking it, I'd switch to hebrew input.
  
   You could have said - very similar to windows.
  
  Right click over the KDE toolbarselect add an item select from the
  items´ menu the keyboard app. In Windows( AFAIK at least until XP) you
  don´t have the possibility to add items to your toolbar at a glance.
   Anyway, this how to kill a fly with an atomic bomb was very educational.
  
  Next time try to play a little bit.
   Thanks
   Dan
  
   On 2/14/07, Julian Daich [EMAIL PROTECTED] wrote:
El mié, 14-02-2007 a las 09:55 +0200, Dan Bar Dov escribió:
 How do I input hebrew on Linux?
Your question sound like,¨ How do I use an computer?¨
 More specifically, in firefox (2.0).
Could you be more specific? Which Linux distribution and desktop
enviroment are you using?
Did you set the Hebrew?
Usually you have to:
1. Set the Hebrew keyboard.
2. Have installed the Hebrew packages of* your* distro including aspell
for Hebrew if you want support for spelling and, if it is available for
your distro, Firefox-locale-he if you want Firefox in Hebrew. Hebrew
packages are often called Language-pack-he or Langauge-support-he in
some distros. Hebrew fonts, as Culmus, and other basics features have to
be installed by default in most distros.
   
Julian

 Thanks,
 Dan

 =
 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]

--
Julian Daich [EMAIL PROTECTED]
   
   
  --
  Julian Daich [EMAIL PROTECTED]
 
 
-- 
Julian Daich [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: entering hebrew?

2007-02-15 Thread Zvi Har'El


Dan Bar Dov wrote, On 15/02/07 12:51:


 My next one is about calendar/appointment book. Thundirbird does not
 have it AFAIK.


It does. Look at the Mozilla Calendar products in the URL below. You
have the choice of a Thunderbird add-on called Lightning, or if you
prefer a standalone calendar, Mozilla Sunbird is your choice. I
recommend both from experience. Personally I prefer the latter.
 
http://www.mozilla.org/projects/calendar/

-- 
Dr. Zvi Har'El  mailto:[EMAIL PROTECTED]Department of Mathematics
tel:+972-54-4227607 icq:179294841Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/Haifa 32000, ISRAEL
If you can't say somethin' nice, don't say nothin' at all. -- Thumper (1942)



Re: entering hebrew?

2007-02-15 Thread Zvi Har'El
PS. If you need a Jewish calendar for Mozilla Sunbird or Lightning, you
can download one from my homepage (see signature), or more specifically,
import http://www.math.technion.ac.il/~rl/luach/5767-i.he.ics. BTW,
you can import it also using Google  Calendar (you might be familiar
with it since I see you are a gmail user).

Zvi Har'El wrote, On 15/02/07 14:12:



 Dan Bar Dov wrote, On 15/02/07 12:51:


 My next one is about calendar/appointment book. Thundirbird does not
 have it AFAIK.


 It does. Look at the Mozilla Calendar products in the URL below. You
 have the choice of a Thunderbird add-on called Lightning, or if you
 prefer a standalone calendar, Mozilla Sunbird is your choice. I
 recommend both from experience. Personally I prefer the latter.
  
 http://www.mozilla.org/projects/calendar/

 -- 
 Dr. Zvi Har'El  mailto:[EMAIL PROTECTED]Department of Mathematics
 tel:+972-54-4227607 icq:179294841Technion - Israel Institute of Technology
 fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/Haifa 32000, ISRAEL
 If you can't say somethin' nice, don't say nothin' at all. -- Thumper (1942)
   

-- 
Dr. Zvi Har'El  mailto:[EMAIL PROTECTED]Department of Mathematics
tel:+972-54-4227607 icq:179294841Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/Haifa 32000, ISRAEL
If you can't say somethin' nice, don't say nothin' at all. -- Thumper (1942)



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

2007-02-15 Thread Gilboa Davara
On Wed, 2007-02-14 at 10:38 +0200, Peter wrote: 
 On Wed, 14 Feb 2007, Geoffrey S. Mendelson wrote:
 
  On Wed, Feb 14, 2007 at 08:18:16AM +0200, Shachar Shemesh wrote:
 
  Just for the record, it is not at all clear that, on modern CPUs, code
  you write in machine code (or even Assembly) will, in fact, run faster.
  The compiler can be quite good at opimizing your code for machine
  language expression, often much better than you would be.
 
  However, a good assembly langunage programer can write code the is leaner
  and meaner than a compiler generates. In practical terms, a good C
  programmer can often write code that is close, and parallel processing
  CPUs where the order of instructions is critical a good compiler
  can outdo an assembly language programmer.
 
 HOW do you write 'lean and mean' assembly for a quad core board with AMD 
 or Pentium stepping (to be chosen at runtime) ?
 
 Peter

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 (-O2/-O3)
generated code. (Depending the size of the tree)
The main reason being the lack of a 3 way comparison in C.
(above/below/equal)

Granted, the size of the asm code was ~10 times the comparable C code,
but in certain cases it is well worth. it.

BTW, certain operations (atomic operations/counters/etc) -require- asm
code.

- Gilboa


=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Shachar Shemesh
Gilboa Davara wrote:
 BTW, certain operations (atomic operations/counters/etc) -require- asm
 code.
   
In an age where GCC, probably the least optimizing compiler among all
popular compilers, is able to unroll loops and submit them, in parallel,
to a vector processor (such as the MMX and its successors), I highly
doubt that the above statement is true.

I will also point out that some atomic operations are, actually, old
legacy from the 8080 and 8086 days, and actually perform *slower* than
their multi-instruction counter parts (the command loop is one example
that comes to mind).
 - Gilboa
Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html


=
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: USB UPS - MGE ups systems?

2007-02-15 Thread Gil Freund

On 2/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

On Wednesday, February 14, 2007 8:11 pm, David Suna wrote:

 The USB UPS is made by Gammatronic.

  Don't know about Gammatronic.


 Alternatively, does anyone have a specific UPS that they recommend
 to use with Linux?


APC. Both SmartUPS 750 and 1500 do a nice job and apcupsd (a GPL
project independent of APC) provides management (Windows and Linux,
Local and remote).




  MGE ups systems?



=
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]





--
Gil Freund, Systems Analyst
---
Sysnet consulting
[EMAIL PROTECTED],  http://www.sysnet.co.il
voice: +972-54-2035888, Fax: +972-8-9356026

=
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]



[OT] List/forum for discussing internet in Israel

2007-02-15 Thread Gadi Cohen
Where's the right place to do this?


* Where can I find updates on which ISPS have how much bandwidth to where?

* Where can I ask if anyone else is having speed problems
internationally lately?

* Where can I find comparitive bandwidth/latency tests from different
ISPS at different times?

etc, etc.


Thanks

Gadi

-- 
Gadi Cohen aka Kinslayer [EMAIL PROTECTED] www.wastelands.net
Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast
KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5



Re: Locating bandwidth bottlenecks

2007-02-15 Thread Baruch Even
* Gadi Cohen [EMAIL PROTECTED] [070215 17:14]:
 Is this possible?

What do you want to find?

There are tools to find that there is a bandwidth bottleneck and what is
it limiting to. So you can know f.ex. that you DSL line is limited to
1.5mbps. Look for packet pair to find tools that do it. I hacked my own
raw tool that uses the ISP DNS to get the raw data which you need to
post-process by eye to gfigure what is the bandwidth limit.

If you want to find where the bandwidth limit is, I'm not aware of tools
or methodology to do that.

Baruch

=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Adam Morrison
On Thu, Feb 15, 2007 at 04:06:42PM +0200, Shachar Shemesh wrote:

  BTW, certain operations (atomic operations/counters/etc) -require- asm
  code.

 In an age where GCC, probably the least optimizing compiler among all
 popular compilers, is able to unroll loops and submit them, in parallel,
 to a vector processor (such as the MMX and its successors), I highly
 doubt that the above statement is true.
 
 I will also point out that some atomic operations are, actually, old
 legacy from the 8080 and 8086 days, and actually perform *slower* than
 their multi-instruction counter parts (the command loop is one example
 that comes to mind).

Um, he was talking about operations like test-and-set or fetch-and-add.
Even on architectures where they can be implemented purely in C, such
implementations come at the cost of both performance and robustness.



=
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: Locating bandwidth bottlenecks

2007-02-15 Thread guy keren


please DON'T hammer down on DNS server to check your bandwidth limits - 
you'll disrupt the service of everyone else by doing so...


the only way i saw for this so far, is by connecting to different ftp 
servers, and see what they give you. this is far from being ideal, 
though, since you don't know who is the limiting factor along the way.


you could go with something similar to what 'flood ping' does (you'll 
have to hack the source, though, and make sure it doesn't overflow your 
connection). if you add this on top of traceroute's usage of the TTL 
field - perhaps you can devise such software. note, however, that it'll 
not be too useful, since this does not take into about QoS parameters 
set for different protocols on the routers along the way - so going via 
one port may yield a different result then going via another port...


you're also not counting for packet loss - which can have a strong 
effect on TCP traffic throuput, due to the way TCP deals with retries.


--guy

Baruch Even wrote:

* Gadi Cohen [EMAIL PROTECTED] [070215 17:14]:

Is this possible?


What do you want to find?

There are tools to find that there is a bandwidth bottleneck and what is
it limiting to. So you can know f.ex. that you DSL line is limited to
1.5mbps. Look for packet pair to find tools that do it. I hacked my own
raw tool that uses the ISP DNS to get the raw data which you need to
post-process by eye to gfigure what is the bandwidth limit.

If you want to find where the bandwidth limit is, I'm not aware of tools
or methodology to do that.

Baruch

=
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]



Re: [OT] List/forum for discussing internet in Israel

2007-02-15 Thread michael




On Thu, 15 Feb 2007, Gadi Cohen wrote:


Where's the right place to do this?


* Where can I find updates on which ISPS have how much bandwidth to where?

* Where can I ask if anyone else is having speed problems
internationally lately?

* Where can I find comparitive bandwidth/latency tests from different
ISPS at different times?

etc, etc.


You want something like www.dslreports.com for Israel. You should check
dslreports and see if they have an international section, or if they reference
similar websites for other countries.

If you don't find any, perhaps tell the maintainers at dslreports. You'd think
such a service would be very popular.

Michael

=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Peter


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 (-O2/-O3)
generated code. (Depending the size of the tree)
The main reason being the lack of a 3 way comparison in C.
(above/below/equal)


And assembly lacks it too. But in C you can get creative with compound 
statements:


int x,y;
register int t;

(t = x - y)  (((t  0)  below()) || above()) || equal();

which wastes 1 register variable. Still, there is no guarantee that this 
generates faster code than an optimizing compiler (and gcc is not known 
among the best optimizing compilers). Rewriting above using binary 
operators and masks may be even faster.


Atomic code execution should not require assembly because segment 
locking can be done using C (even if that C is inline assembly for 
some applications).


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: USB UPS - MGE ups systems?

2007-02-15 Thread Oron Peled
On Thursday, 15 בFebruary 2007 01:25, [EMAIL PROTECTED] wrote:
  Alternatively, does anyone have a specific UPS that they recommend 
  to use with Linux?
 
   MGE ups systems?

I haven't personally used them, but they are the first on
my checklist -- just see who sponsored NUT:
  http://www.networkupstools.org/

[NUT: Network UPS Tools]

I put my money where my mouth is.

-- 
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

3Com only purchased rights to the numbers '3' '5' and '9', Intel
owns '4', '8', '6', and '2'. '0' and '1' are still in the public
domain ;-)
 -Donald Becker

=
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: Locating bandwidth bottlenecks

2007-02-15 Thread Baruch Even
* guy keren [EMAIL PROTECTED] [070215 18:46]:
 
 please DON'T hammer down on DNS server to check your bandwidth limits - 
 you'll disrupt the service of everyone else by 
 doing so...

About two requests a second for a minute or so is hardly hammering it.
Obviously, running such a program indefinitely is not a good idea, but
running it once or occasionally is hardly an issue.

Baruch

=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Amos Shapira

On 16/02/07, Peter [EMAIL PROTECTED] wrote:


Atomic code execution should not require assembly because segment
locking can be done using C (even if that C is inline assembly for
some applications).



And how would you implement the lock on the segment?

(assuming I guess correctly what you mean by segment locking, the closest
I found was related to ELF file segments and POSIX file segment locking).

--Amos


Apache ssl as Default

2007-02-15 Thread Chaim Keren Tzion
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.

TIA,
Chaim
Witty Quote as Signature Here

=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Peter


On Fri, 16 Feb 2007, Amos Shapira wrote:


On 16/02/07, Peter [EMAIL PROTECTED] wrote:


Atomic code execution should not require assembly because segment
locking can be done using C (even if that C is inline assembly for
some applications).


And how would you implement the lock on the segment?

(assuming I guess correctly what you mean by segment locking, the closest
I found was related to ELF file segments and POSIX file segment locking).


By segment I mean the relevant variables of the process. Atomic code 
execution cannot be guaranteed at user level in a premptive multitasking 
system. However the system guarantees thread privacy. The only way to 
make things 'atomic' it to run the process with root privileges and 
switch the sheduler to SCHED_RR and assign it a high priority. Even so 
hw interrupts will interrupt it. So only kernel mode code can be 
'atomic'. That or realtime extensions (which are equivalent to SCHED_RR 
in kernel mode).


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: Locating bandwidth bottlenecks

2007-02-15 Thread guy keren

Baruch Even wrote:

* guy keren [EMAIL PROTECTED] [070215 18:46]:
please DON'T hammer down on DNS server to check your bandwidth limits - you'll disrupt the service of everyone else by 
doing so...


About two requests a second for a minute or so is hardly hammering it.
Obviously, running such a program indefinitely is not a good idea, but
running it once or occasionally is hardly an issue.

Baruch


when you're the only one doing so - there's no problem.

i was refering more to the idea of using the DNS server to measure 
_bandwidth_ - which requires hammering down on the DNS server (now that 
zone transfers are normally blocked).


--guy



=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Gilboa Davara
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 (-O2/-O3)
  generated code. (Depending the size of the tree)
  The main reason being the lack of a 3 way comparison in C.
  (above/below/equal)
 
 And assembly lacks it too. 

!!!?

cmp $eax,$ebx
jb label_below
ja label_above
equal code

 But in C you can get creative with compound 
 statements:
 int x,y;
 register int t;
 
 (t = x - y)  (((t  0)  below()) || above()) || equal();

.. Which will only work if the below/above/equal are made of short
statements which is a very problematic pre-requisite.
In my case I needed to store some additional information in each leaf -
making each step a compound statement by itself. (which in-turn,
rendered your compound less effective)

 which wastes 1 register variable. Still, there is no guarantee that this 
 generates faster code than an optimizing compiler (and gcc is not known 
 among the best optimizing compilers). Rewriting above using binary 
 operators and masks may be even faster.

The same code was also tested under Visual Studio 2K3 and showed the
same results.
The assembly code was considerably faster then the VS generate binary.

 
 Atomic code execution should not require assembly because segment 
 locking can be done using C (even if that C is inline assembly for 
 some applications).

A. I -was- talking about in-line assembly.
B. How can I implement lock btX/inc/dec/sub/add in pure C?
(Let alone using the resulting flags. [setXX])

BTW, another valid excuse to using assembly (at least in
register-barren-world-known-as-i386) is the ability to trash the base
pointer. (every register count.)

- Gilboa



=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Dotan Cohen

On 15/02/07, Shachar Shemesh [EMAIL PROTECTED] wrote:

Gilboa Davara wrote:
 BTW, certain operations (atomic operations/counters/etc) -require- asm
 code.

In an age where GCC, probably the least optimizing compiler among all
popular compilers...



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.

Dotan Cohen

http://lyricslist.com/lyrics/lyrics/49/16/ac-dc/ballbreaker.html
http://what-is-what.com/what_is/skype.html

=
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: Quickest way to list content of directory(s)

2007-02-15 Thread Amos Shapira

On 16/02/07, Dotan Cohen [EMAIL PROTECTED] wrote:


On 15/02/07, Shachar Shemesh [EMAIL PROTECTED] wrote:
 Gilboa Davara wrote:
  BTW, certain operations (atomic operations/counters/etc) -require- asm
  code.
 
 In an age where GCC, probably the least optimizing compiler among all
 popular compilers...


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.



There is a multitude of commercial compilers. Last time I heard, Intel's was
considered the best or close to the best (it's their code that made
Microsoft's compiler so good).

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

--Amos


recvmsg on dgram socketpair blocks on open socket?

2007-02-15 Thread Amos Shapira

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 for messages.

I couldn't find anything which suggests that I'm doing it wrong.

More details (the code is pretty small):

privbind creates an AF_UNIX, SOCK_DGRAM socketpair to communicate between a
parent and a child process. The parent then calls recvmsg(2) and waits for
request from the child.
If the child exits then the parent will keep on waiting on the receiving
socket.

I expected the recvmsg to return an empty message when the child exits but
this doesn't happen. Explicitly closing the socket by the child didn't help
either.

What am I missing?

Thanks,

--Amos