Second article about BiDi programming, and last announcement to this list

2009-07-15 Thread Shachar Shemesh

Hi all,

The second article about BiDi programming, dubbed common pitfalls, has 
come up on the Lingnu web site[1]. Enjoy. As usual, comments welcome by 
email or at my blog (or here, if you think it is relevant, of course).


After having spoken against spamming the list with announcements, I am 
going to live by what I preach. While the series is far from finished, I 
will not announce any further article in this series on this list. 
People who want to track when new articles are published are invited to 
do so by following my blog[2] (directly or through the planet[3]), or 
directly subscribe to the articles section via RSS[4] or Atom[5].


Enjoy,
Shachar

1- 
http://www.lingnu.com/en/programming/60-bidi-aware-programming-2-pitfalls.html

2 - http://blog.shemesh.biz
3 - http://planet.hamakor.org.il
4 - http://www.lingnu.com/programming.feed?type=rss
5 - http://www.lingnu.com/programming.feed?type=atom

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Second article about BiDi programming, and last announcement to this list

2009-07-15 Thread Dotan Cohen
2009/7/15 Shachar Shemesh shac...@shemesh.biz:
 Hi all,

 The second article about BiDi programming, dubbed common pitfalls, has
 come up on the Lingnu web site[1]. Enjoy. As usual, comments welcome by
 email or at my blog (or here, if you think it is relevant, of course).

 After having spoken against spamming the list with announcements, I am going
 to live by what I preach. While the series is far from finished, I will not
 announce any further article in this series on this list. People who want to
 track when new articles are published are invited to do so by following my
 blog[2] (directly or through the planet[3]), or directly subscribe to the
 articles section via RSS[4] or Atom[5].

 Enjoy,
 Shachar

 1-
 http://www.lingnu.com/en/programming/60-bidi-aware-programming-2-pitfalls.html
 2 - http://blog.shemesh.biz
 3 - http://planet.hamakor.org.il
 4 - http://www.lingnu.com/programming.feed?type=rss
 5 - http://www.lingnu.com/programming.feed?type=atom


Thank you Shachar. As you are one of the dominant list members (in a
good way) and since you exercise discretion in the announcements that
you make, I for one welcome you as our local spam overlord and
encourage you to post the announcements that you deem relevant to the
list.


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


inet_ntoa and segmentation fault

2009-07-15 Thread Shachar Shemesh
Today was the second time that I ran across this problem. Each time I 
run across it, I search Google, come back empty handed, and then have a 
second look, find the solution, and altogether waste too much time on a 
problem I have solved before. As a measure to prevent this, I am posting 
both problem and solution to this mailing list, that has a high Google 
juice, so that the next time, I will find my own solution.


In other words, I am shamelessly using the list to archive my problems 
and solutions.


The problem:
The following code segfaults:
   printf(%s\n, inet_ntoa(addr) );

The cause: Failing to include the relevant header file.

The solution: Add:
#include arpa/inet.h

Sorry for the noise.
Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Refactoring a mailing list policy to eliminate a special case (was: Re: Second article about BiDi programming, and last announcement to this list)

2009-07-15 Thread Omer Zak
On Wed, 2009-07-15 at 16:05 +0300, Dotan Cohen wrote:
 Thank you Shachar. As you are one of the dominant list members (in a
 good way) and since you exercise discretion in the announcements that
 you make, I for one welcome you as our local spam overlord and
 encourage you to post the announcements that you deem relevant to the
 list.

Instead of making a special exception in behalf of Shachar Shemesh (and
later also Gilad Ben-Yossef, Ram-On Agmon, Dov Grobgeld, Shlomi Fish,
Lior Kaplan, . . .), I suggest that Shachar add a RSS feed which
publishes links to the BiDi programming articles.  This is why RSS was
conceived in the first place.

Then Shachar is to link to the RSS feed in his .signature and Linux-IL
will be spam-free to the strictest definition of span.

Last time I checked the articles, I found no link to a RSS feed
specializing in those articles.
  --- Omer


-- 
Linux Mint is insecure by design as it won't accept contributions (bug
reports) from Israelis who choose to defend themselves against suicide
bombers: http://eclelef.blogspot.com/2009/05/palestine_03.html
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Second article about BiDi programming, and last announcement to this list

2009-07-15 Thread Shachar Shemesh

Dotan Cohen wrote:


Thank you Shachar. As you are one of the dominant list members (in a
good way) and since you exercise discretion in the announcements that
you make, I for one welcome you as our local spam overlord and
encourage you to post the announcements that you deem relevant to the
list.


  

Hi Dotan,

Thank you for your kind words, but I really think it would be better not 
to create first class and second class list citizens. I totally agree 
with Omer in that regard. As I'm planning on releasing an article every 
week (let's see what real life thinks of this one :-0), I think this 
really would be spamming. Anyone interested can subscribe to the RSS. 
Anyone not will not be bothered.


Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Refactoring a mailing list policy to eliminate a special case (was: Re: Second article about BiDi programming, and last announcement to this list)

2009-07-15 Thread Shachar Shemesh

Omer Zak wrote:


 I suggest that Shachar add a RSS feed which
publishes links to the BiDi programming articles.  This is why RSS was
conceived in the first place.

  
Already did at the email that started this thread. If you missed it, 
it's http://www.lingnu.com/programming.feed?type=rss for RSS and 
http://www.lingnu.com/programming.feed?type=atom for atom (would anyone 
care to explain the difference between the two?). They are also 
published on the main articles page 
(http://www.lingnu.com/en/programming.html) in the standard way. At 
least on Firefox, all you have to do in order to get them is click the 
RSS logo at the address bar.



Then Shachar is to link to the RSS feed in his .signature and Linux-IL
will be spam-free to the strictest definition of span.
  
It can be spam free by mere me not sending any more announcements (at 
least on this series). The signature idea is interesting, and I'll think 
of it, but, frankly, I'm in the process of moving all sorts of goodies 
into the Lingnu site (some new, some already published elsewhere), so I 
generally recommend checking it out once in a while anyways, and that 
already has a link in my signature :-)

Last time I checked the articles, I found no link to a RSS feed
specializing in those articles.
  
It's published in the HTML meta tags, as per the standard. If your 
browser does not display them, then it's your browser's fault. Like I 
said, Firefox displays the RSS icon in the right corner of the address 
bar. Clicking it gives the actual URL, so you can subscribe Firefox to 
it, or copy it into your standard RSS reader.

  --- Omer

  

Shachar


--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Linux Mint

2009-07-15 Thread geoffrey mendelson
Following up to Omer's sig, does Linux Mint boycott or advocate a  
boycott of Israel?
I read the postings he linked to and I can see that the founder asked  
for one, but is that still active?


If so, it is illegal to donate money from the US and the sponsors  
should be reported to the appropriate authorities.


Geoff.
--
geoffrey mendelson N3OWJ/4X1GM
Jerusalem Israel geoffreymendel...@gmail.com






___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Second article about BiDi programming, and last announcement to this list

2009-07-15 Thread Dotan Cohen
 Thank you for your kind words, but I really think it would be better not to
 create first class and second class list citizens.

I didn't really think of it that way, rather that some users (you,
Shlomi, etc) are trustworthy enough to post announcements when you see
fit. But I understand the point about not segregating the list into
classes, and I agree with that.

Thanks.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Linux / Computer Books in Israel

2009-07-15 Thread Shlomo Dubrowin
I live and work in the Jerusalem area.  Generally, when I want Linux and/or
other types of computer books (right now I'm learning Perl), I wait till we
have family coming from the US and force them to bring the books to me here.

I keep saying there must be a better way to get good books here in Israel.
Is there a bookstore somewhere that already imports these kinds of books, or
that can order them for me and deliver them to me via IL Post or where I can
pick them up somewhere local in this part of the country?

I have ordered books through a previous employer from Amazon.co.uk, but I
remember it being much more expensive than getting them in the US.  What are
your experiences.  Thank you.

  Shlomo

-
Shlomo Dubrowin

The Solution to the water crisis in Israel:

# According to WikiPedia, the Kinneret can hold
# 4 km^3, so FULL here is in cubit meters
FULL=4000
while [ $LEVEL -lt $FULL ]; do
 cat /sea/med /sea/red |\
 grep -vi salt |\
 tee /sea/dead /lake/kinneret
 LEVEL=`du -c /sea/dead /lake/kinneret | grep total | awk '{print $1}'`
done
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux / Computer Books in Israel

2009-07-15 Thread Orna Agmon Ben-Yehuda
Have you tried Combooks? I used to invite them to August Penguin to have a
discounted sale of FOSS software (organizers - you might wish to do this
again).

http://www.combooks.co.il/Combooks_Il2/

Orna.

2009/7/15 Shlomo Dubrowin dubrowin.l...@gmail.com

 I live and work in the Jerusalem area.  Generally, when I want Linux and/or
 other types of computer books (right now I'm learning Perl), I wait till we
 have family coming from the US and force them to bring the books to me here.

 I keep saying there must be a better way to get good books here in Israel.
 Is there a bookstore somewhere that already imports these kinds of books, or
 that can order them for me and deliver them to me via IL Post or where I can
 pick them up somewhere local in this part of the country?

 I have ordered books through a previous employer from Amazon.co.uk, but I
 remember it being much more expensive than getting them in the US.  What are
 your experiences.  Thank you.

   Shlomo

 -
 Shlomo Dubrowin

 The Solution to the water crisis in Israel:

 # According to WikiPedia, the Kinneret can hold
 # 4 km^3, so FULL here is in cubit meters
 FULL=4000
 while [ $LEVEL -lt $FULL ]; do
  cat /sea/med /sea/red |\
  grep -vi salt |\
  tee /sea/dead /lake/kinneret
  LEVEL=`du -c /sea/dead /lake/kinneret | grep total | awk '{print $1}'`
 done


 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux / Computer Books in Israel

2009-07-15 Thread Aviv Ben-Yosef
Actually, I considered recommending them too, but made a quick check before.
Ordering The Pragmatic Programmer and Pragmatic Thinking and Learning
from Amazon (+shipping) totals at $77, as opposed to $86 on Combooks. Always
compare :)

Aviv

2009/7/15 Orna Agmon Ben-Yehuda ladyp...@gmail.com

 Have you tried Combooks? I used to invite them to August Penguin to have a
 discounted sale of FOSS software (organizers - you might wish to do this
 again).

 http://www.combooks.co.il/Combooks_Il2/

 Orna.

 2009/7/15 Shlomo Dubrowin dubrowin.l...@gmail.com

 I live and work in the Jerusalem area.  Generally, when I want Linux
 and/or other types of computer books (right now I'm learning Perl), I wait
 till we have family coming from the US and force them to bring the books to
 me here.

 I keep saying there must be a better way to get good books here in
 Israel.  Is there a bookstore somewhere that already imports these kinds of
 books, or that can order them for me and deliver them to me via IL Post or
 where I can pick them up somewhere local in this part of the country?

 I have ordered books through a previous employer from Amazon.co.uk, but I
 remember it being much more expensive than getting them in the US.  What are
 your experiences.  Thank you.

   Shlomo

 -
 Shlomo Dubrowin

 The Solution to the water crisis in Israel:

 # According to WikiPedia, the Kinneret can hold
 # 4 km^3, so FULL here is in cubit meters
 FULL=4000
 while [ $LEVEL -lt $FULL ]; do
  cat /sea/med /sea/red |\
  grep -vi salt |\
  tee /sea/dead /lake/kinneret
  LEVEL=`du -c /sea/dead /lake/kinneret | grep total | awk '{print $1}'`
 done


 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il




-- 
Aviv Ben-Yosef
Miracle Max: You rush a miracle man, you get rotten miracles.
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


RE: Linux / Computer Books in Israel

2009-07-15 Thread Andrew Kaplan
I saw the same batch for $73.25 on Ebay

http://cgi.ebay.com/Pragmatic-Thinking-and-Learning-Refactor-Your-Wetware_W0QQitemZ370225451300QQcmdZViewItemQQptZUS_Nonfiction_Book?hash=item5633281124_trksid=p3286.c0.m14_trkparms=65%3A15%7C66%3A2%7C39%3A1%7C293%3A1%7C294%3A50

http://cgi.ebay.com/The-Pragmatic-Programmer-Hunt-Andrew-New-Book_W0QQitemZ270420258473QQcmdZViewItemQQptZUK_Books_NonFictionBooks_NonFictionBooks_SM?hash=item3ef64daea9_trksid=p3286.m63.l1177_trkparms=%7C293%3A1%7C294%3A50


From: linux-il-boun...@cs.huji.ac.il [mailto:linux-il-boun...@cs.huji.ac.il] On 
Behalf Of Aviv Ben-Yosef
Sent: Wednesday, July 15, 2009 10:21 PM
To: Orna Agmon Ben-Yehuda
Cc: linux-il@cs.huji.ac.il
Subject: Re: Linux / Computer Books in Israel

Actually, I considered recommending them too, but made a quick check before. 
Ordering The Pragmatic Programmer and Pragmatic Thinking and Learning from 
Amazon (+shipping) totals at $77, as opposed to $86 on Combooks. Always compare 
:)

Aviv
2009/7/15 Orna Agmon Ben-Yehuda ladyp...@gmail.commailto:ladyp...@gmail.com
Have you tried Combooks? I used to invite them to August Penguin to have a 
discounted sale of FOSS software (organizers - you might wish to do this again).

http://www.combooks.co.il/Combooks_Il2/

Orna.
2009/7/15 Shlomo Dubrowin 
dubrowin.l...@gmail.commailto:dubrowin.l...@gmail.com
I live and work in the Jerusalem area.  Generally, when I want Linux and/or 
other types of computer books (right now I'm learning Perl), I wait till we 
have family coming from the US and force them to bring the books to me here.

I keep saying there must be a better way to get good books here in Israel.  Is 
there a bookstore somewhere that already imports these kinds of books, or that 
can order them for me and deliver them to me via IL Post or where I can pick 
them up somewhere local in this part of the country?

I have ordered books through a previous employer from 
Amazon.co.ukhttp://Amazon.co.uk, but I remember it being much more expensive 
than getting them in the US.  What are your experiences.  Thank you.

  Shlomo

-
Shlomo Dubrowin

The Solution to the water crisis in Israel:

# According to WikiPedia, the Kinneret can hold
# 4 km^3, so FULL here is in cubit meters
FULL=4000
while [ $LEVEL -lt $FULL ]; do
 cat /sea/med /sea/red |\
 grep -vi salt |\
 tee /sea/dead /lake/kinneret
 LEVEL=`du -c /sea/dead /lake/kinneret | grep total | awk '{print $1}'`
done

___
Linux-il mailing list
Linux-il@cs.huji.ac.ilmailto:Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


___
Linux-il mailing list
Linux-il@cs.huji.ac.ilmailto:Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



--
Aviv Ben-Yosef
Miracle Max: You rush a miracle man, you get rotten miracles.
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: inet_ntoa and segmentation fault

2009-07-15 Thread Shachar Shemesh

Oron Peled wrote:

On 15.07.2009 Shachar Shemesh wrote:
  

The problem:
The following code segfaults:
printf(%s\n, inet_ntoa(addr) );

The cause: Failing to include the relevant header file.

The solution: Add:
#include arpa/inet.h



Easier to catch during compile time: CFLAGS='-Wall -Werror'
This would fail the build because of missing prototypes.

  
You are, of course, right. The thing is, I usually use this function 
(not thread safe etc.) only in tiny test programs, where I don't care as 
much about warnings.


Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux / Computer Books in Israel

2009-07-15 Thread Steve Litt
On Wednesday 15 July 2009 03:00:09 pm Shlomo Dubrowin wrote:
 I live and work in the Jerusalem area.  Generally, when I want Linux and/or
 other types of computer books (right now I'm learning Perl), I wait till we
 have family coming from the US and force them to bring the books to me
 here.

 I keep saying there must be a better way to get good books here in Israel.
 Is there a bookstore somewhere that already imports these kinds of books,
 or that can order them for me and deliver them to me via IL Post or where I
 can pick them up somewhere local in this part of the country?

Hi Shlomo,

If you order your books as eBooks, they'll probably be the same price as in 
the US because there's no shipping. I sell Troubleshooting books rather than 
Linux books, but when someone orders an eBook from me, they get it just as 
fast as a US person and there's obviously no shipping charge -- I email it to 
them. Personally, I don't sell within countries that don't respect copyright 
laws (China et al) so all non US orders are accomplished by my sending the 
customer a Paypal request for payment, but I'd imagine most booksellers just 
treat everyone the same.

I've ordered technical eBooks from these guys and was quite pleased:

http://www.pragprog.com/

HTH

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: inet_ntoa and segmentation fault

2009-07-15 Thread Oron Peled
On 15.07.2009 Shachar Shemesh wrote:
 The problem:
 The following code segfaults:
 printf(%s\n, inet_ntoa(addr) );
 
 The cause: Failing to include the relevant header file.
 
 The solution: Add:
 #include arpa/inet.h

Easier to catch during compile time: CFLAGS='-Wall -Werror'
This would fail the build because of missing prototypes.

-- 
Oron Peled Voice: +972-4-8228492
o...@actcom.co.il  http://users.actcom.co.il/~oron
Linux lasts longer!
-- Kim J. Brand k...@kimbrand.com


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux / Computer Books in Israel

2009-07-15 Thread Jason Friedman
 I keep saying there must be a better way to get good books here in Israel.
 Is there a bookstore somewhere that already imports these kinds of books, or
 that can order them for me and deliver them to me via IL Post or where I can
 pick them up somewhere local in this part of the country?

Hi Shlomo,

I have found the site www.bookdepository.co.uk very reasonable for
buying computer books.
They have free worldwide shipping on all books. The two books you were
looking for come to a total of $65.77.

The benefit of buying from them (based in the UK) rather than the USA
is that the shipping from England is much quicker (I would
often receive books in under a week).

Jason

-- 
Jason Friedman
Postdoctoral scholar
Macquarie Centre for Cognitive Science
Macquarie University, NSW 2109 Australia
email: write.to.ja...@gmail.com
web: http://curiousjason.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il