Re: looking for a way to tell gcc not to remove some code he thinks is unreachable.

2011-03-07 Thread Elazar Leibovich
2011/3/7 Orna Agmon Ben-Yehuda > > > On Mon, Mar 7, 2011 at 12:18 PM, Muli Ben-Yehuda wrote: > >> On Mon, Mar 07, 2011 at 12:11:36PM +0200, Erez D wrote: >> >> > I have a function which is not called in a regular way, so gcc >> > thinks it is dead code. however it is not, and i am looking for a

Re: How to say "reference implementation"?

2011-03-14 Thread Elazar Leibovich
http://bitorama.com/ On Sun, Mar 13, 2011 at 11:37 AM, Dotan Cohen wrote: > How does one say "reference implementation" in Hebrew? Thanks. > > Bunos points: what Hegrw-language slashdot-type websites should I be > reading regularly to be exposed to such terms? > > -- >

Re: How to say "reference implementation"?

2011-03-14 Thread Elazar Leibovich
It sounds to me as, "an implementation for example", which is very different from "*the* reference implementation". 2011/3/14 Orna Agmon Ben-Yehuda > MIMOOSH LEDUGMA? > > On Sun, Mar 13, 2011 at 11:37 AM, Dotan Cohen wrote: > >> How does one say "reference implementation" in Hebrew? Thanks. >> >

Checkpoint Endpoint Security VPN with linux

2011-03-20 Thread Elazar Leibovich
Anyone have experience connecting to Checkpoint VPN using Checkpoint Endpoint security with Linux? The windows client is called "Checkpoint Endpoint Security" and looks like a yellow lock in the taskbar. They seem to have a client, but I'm not sure which one to download, and the one I tried doesn't

Re: Checkpoint Endpoint Security VPN with linux

2011-03-20 Thread Elazar Leibovich
On Sun, Mar 20, 2011 at 9:54 PM, Shachar Shemesh wrote: > > On another side note, what does it do if I'm having a 192.168.4.* internal >> network? >> > Then you are @!#*%!@#$@!)(!@#&%@#! !@(%!@#()#!@$!@%#. Wow, I'm not sure I know any adjective that long in English ;-) VPN is designed to conne

Re: Linux has won!

2011-04-03 Thread Elazar Leibovich
2011/4/3 Steve G. > > So I have it in use 5 minutes every couple of days, and the rest is pure > Linux. > Why don't you use a virtual machine. I think some of them can redirect USB from host to virtual system. > Z. > > ___ Linux-il mailing list Linux

Sharing only internet connectivity with wireless router

2011-04-06 Thread Elazar Leibovich
I want the settings in my wireless router to be, ideally: 1) Anonymous have access only to the internet, any packet will be either routed "outside" of the router or dropped. 2) Authenticated users (by any means) will be able also to access the inner network. Even just achieving 1 for everyone (and

Re: Sharing only internet connectivity with wireless router

2011-04-06 Thread Elazar Leibovich
On Wed, Apr 6, 2011 at 10:26 AM, shimi wrote: > > Changing your MAC is pretty trivial... > Yeah, but guessing which MAC is in my whitelist is less so. So if an attacker want to spoof his MAC address he has to sniff for a MAC address, (which means he can do that only when my computer is on). I'm

Re: Sharing only internet connectivity with wireless router

2011-04-06 Thread Elazar Leibovich
On Wed, Apr 6, 2011 at 11:25 AM, shimi wrote: > > If not going VLAN-way, > Sorry, don't get me wrong - this is an excellent solution, and just what I was looking for. Any experience with routers in Israel which support dd-wrt firmware (or other opensource firmware which allow vlans)? ___

Re: Disk I/O as a bottleneck?

2011-05-07 Thread Elazar Leibovich
On Sat, May 7, 2011 at 4:06 PM, guy keren wrote: > > if you eventually decide that it is indeed disk I/O that slows you down, > and if you have a lot of money to spend - you could consider buying an > enterprise-grade SSD (e.g. from fusion I/O or from OCZ - although for > your use-case, some of t

Re: Disk I/O as a bottleneck?

2011-05-07 Thread Elazar Leibovich
On Sun, May 8, 2011 at 12:20 AM, guy keren wrote: > > are you talking about using a low-end SSD? > I'm actually not a big SSD expert, but I'm talking about relatively cheap SSD you can find in Ivory/Ksp, for instance Intel's http://www.zap.co.il/model.aspx?modelid=751136 > > the problem with t

Re: MS buys Skype - will it support Linux

2011-05-11 Thread Elazar Leibovich
On Wed, May 11, 2011 at 10:10 AM, Nadav Har'El wrote: > > 3. Will Microsoft also drop support for Skype on non-Microsoft smartphone > OSs > (iOS, android, etc.)? > Microsoft is actively developing software for Android and iPhone devices, so I guess the answer is "Yes". _

Re: Tax authorities in Israel

2011-05-27 Thread Elazar Leibovich
On Fri, May 27, 2011 at 11:20 AM, Oleg Goldshmidt wrote: > > There is another little "feature" on gov.il sites that I find > scandalous. Making the web sites portable, and thus widely accessible, > takes too much effort (read: resources, money), but they did find > resources for this: > > http://w

Re: running script after sftp upload

2011-06-13 Thread Elazar Leibovich
2011/6/13 Raz : > set up inotifier on the upload library. How would you know who copied the file to this library? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

[job] C++ development in a Linux environment

2011-06-13 Thread Elazar Leibovich
We're looking for an excellent[1] C++ developer, and an excellent JavaScript front end developer. Requirements: Language agnostic, know-how, self-managed. Located near the Bursa, smart folks, competitive salary, modern hardware and a cake every afternoon. For additional details feel free to emai

Re: Email To SMS

2011-06-17 Thread Elazar Leibovich
2011/6/17 Guy Sheffer > You would have to code it. > That's not enough. You have to maintain it against future carrier changes. I can't recommend this route - this is how previous scripts fail, they always broke - and we lost the arm race. If you determined to do it that way, I suggest to use S

Re: secure data export

2011-06-23 Thread Elazar Leibovich
2011/6/24 Orna Agmon Ben-Yehuda > Hello all security experts, > I'm not a security expert, however you raised my curiosity. > > I would like to export data from a machine on a business's internal network > on a safe media, such that only the files I want exported are on the media. > [snip] Th

Re: secure data export

2011-06-26 Thread Elazar Leibovich
On Sun, Jun 26, 2011 at 10:24 AM, Oleg Goldshmidt wrote: > > It's a tough problem. It is a lot more difficult than AV since you > want to prevent essentially arbitrary data from leaking, not just data > that may damage another machine. I don't think preventing data leak is a problem here, or gen

askubuntu.com-like site in Hebrew

2011-07-01 Thread Elazar Leibovich
It might depends on personal taste, but I really find the forums style of stackoverflow.com/stackexchange.com appealing and helpful. Especially if I have a question once in a while, and thus I don't want to register with the project's mailing list. Is there a "askubuntu.com" style (not necessarily

Re: askubuntu.com-like site in Hebrew

2011-07-02 Thread Elazar Leibovich
t;forum", then you have http://whatsup.org.il as > well as the tapuz forum. > Orna > > 2011/7/1 Elazar Leibovich > >> It might depends on personal taste, but I really find the forums style of >> stackoverflow.com/stackexchange.com appealing and helpful. Especially

Re: askubuntu.com-like site in Hebrew

2011-07-02 Thread Elazar Leibovich
On Sat, Jul 2, 2011 at 10:21 PM, Tomer Cohen wrote: > Please correct me if I wrong, but isn't the application that powers every > site in stackoverflow network is actually an open source project? > It is not, but as I mentioned, there are many open source clones, which are similar enough, eg ask

Linux compatible motherboard

2011-07-27 Thread Elazar Leibovich
Can anyone recommend linux compatible motherboard, with: 1) Hassle free installation (I boot ubuntu, install it, and it's working. I'm not required to patch any kernel, or installing additional software). 2) ACPI working out of the box. Including hibernation. 3) Minimal on board GPU, working out of

Re: OT: Postgraduate studies

2011-07-28 Thread Elazar Leibovich
2011/7/28 Orna Agmon Ben-Yehuda > > In addition, it is usually frowned upon by both employers and academy. > Quoting my conversation with the head of applied math department in TAU: - Is it possible to learn here during full time job? - Most of our students here are studying while working. So

[Job] Linux developer for packaging a distribution

2011-08-10 Thread Elazar Leibovich
A linux developer is needed for developing and maintaining a homebrew CentOS version. Need to be able to build RPMs, interface with Hudson, SELinux etc, Freelance developers may apply. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huj

Re: Newer gcc swallow version control keywords

2011-10-18 Thread Elazar Leibovich
I guess that it doesn't apply to libraries, which must include this global variable. Excuse the idiotic solution, but can't you just add an option to print it out? int main(int argc,char**argv) {if (argc == 2 && strcmp(argv[1],"--ident") puts(ident);...} The only trick the optimizer can play her

Re: Newer gcc swallow version control keywords

2011-10-18 Thread Elazar Leibovich
On Tue, Oct 18, 2011 at 11:50 AM, Nadav Har'El wrote: > On Tue, Oct 18, 2011, Elazar Leibovich wrote about "Re: Newer gcc swallow > version control keywords": > > Excuse the idiotic solution, but can't you just add an option to print it > > out? > >

Re: Newer gcc swallow version control keywords

2011-10-18 Thread Elazar Leibovich
First, please see my last email to Nadav, which discuss a lot of the details. On Tue, Oct 18, 2011 at 12:41 PM, Oleg Goldshmidt wrote: > On Tue, Oct 18, 2011 at 11:16 AM, Elazar Leibovich > wrote: > > I guess that it doesn't apply to libraries, which must include this >

Re: Newer gcc swallow version control keywords

2011-10-18 Thread Elazar Leibovich
On Tue, Oct 18, 2011 at 12:50 PM, Oleg Goldshmidt wrote: > > I understood that, and it's still unstable. Since if some young team > member > > not aware of the $Id: trick, will write: > > log("$Id: %d $Name: %s\n",id,name) > > ident will return garbage. > > Someone may alter keyword expansions

Re: Newer gcc swallow version control keywords

2011-10-21 Thread Elazar Leibovich
On Tue, Oct 18, 2011 at 1:50 PM, Oleg Goldshmidt wrote: > > I didn't understand how, eg, my C++ scheme don't work. I think it should > > work even if you're including the $Id$ strings in the headers files. > > Apart from the fact that you assume that main.cc is mine (what if my > product is a lib

Re: Checkpoint VPN client for Linux - is there any?

2011-10-27 Thread Elazar Leibovich
2011/10/27 Noam Meltzer > If I remember correctly CP has some kind of plugin/extension/some other > kind of lie called "snx". > Or at least "snx" was the utility for linux which was the VPN client. > You need some kind of license per user for that in the firewall. > Didn't work for me with moder

Unix History: Why does hexdump default to word alignment?

2011-11-30 Thread Elazar Leibovich
The default behaviour of hexdump is to align data word-wide. For instance printf '\xFF\xFF\x01' | hexdump 000 0001 003 This makes little sense to me. In C, structs are not necessarily aligned to words, and it doesn't seems useful to view about any data format for which yo

Re: Unix History: Why does hexdump default to word alignment?

2011-12-01 Thread Elazar Leibovich
On Thu, Dec 1, 2011 at 10:10 AM, Nadav Har'El wrote: > > When you say "words" and "word aligned" here, you mean historic 2 byte > words. > Indeed. Is there any other meaning for "word" other than two bytes? > This is indeed *NOT* a very useful default on any modern computers. In some > old comp

Re: Unix History: Why does hexdump default to word alignment?

2011-12-01 Thread Elazar Leibovich
On Thu, Dec 1, 2011 at 11:32 AM, geoffrey mendelson < geoffreymendel...@gmail.com> wrote: > > > Well, let's see, going back to the 1960's, IBM 1401, word size set by a > bit in memory, "a word mark" on a digit. > Thanks for educating me, you need to get a job in CS archaeology. But what did the wo

Re: Unix History: Why does hexdump default to word alignment?

2011-12-01 Thread Elazar Leibovich
On Fri, Dec 2, 2011 at 9:28 AM, guy keren wrote: > you can use a debugger only for the basic code. you cannot use a debugger > when you're dealing with multiple threads that access the same shared data > and could have race conditions. in those cases you need to run a test, find > that the eventu

Refund on preinstall Windows license in Israel [slightly OT]

2011-12-21 Thread Elazar Leibovich
Have anyone tried to get a refund on a Windows license on a preinstall machine he bought? Is it possible in Israel? How much money will they refund? How complicated is it? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mail

Re: Free Software on Android

2011-12-29 Thread Elazar Leibovich
On Wed, Dec 28, 2011 at 1:18 PM, Nadav Har'El wrote: > Regarding point 2, wouldn't it be nice if it were possible to have a > programming language which you can use to program the Android, on the > Android itself, and run applications? Applications written in that > language could be downloaded in

Re: Please review my Java Unicode pitfalls

2012-02-07 Thread Elazar Leibovich
I made a short example of a few pitfalls the Java programmer might fall into when handling with Unicode text, I'll be glad if the smart folks here would have a look at it, and point out mistakes or missing pitfalls. The package have no dependencies except JUnit and Hamercrest testing framework. Le

Unlock dialog does not appear occasionally in Ubuntu

2012-02-12 Thread Elazar Leibovich
This is the second ubuntu installation I'm having this problem with. Occasionaly, after the screen is locked, the Unlock dialog does not appear, and thus it is impossible to log in. I see the cursor and the desktop wallpaper, mouse is fully functional, but I cannot login. I resort to `service lig

Re: Unlock dialog does not appear occasionally in Ubuntu

2012-02-12 Thread Elazar Leibovich
On Sun, Feb 12, 2012 at 12:46 PM, Tzafrir Cohen wrote: > > Workaround: enable the keys that were disabled (by default) in the recent > X11 > security fix: > http://who-t.blogspot.com/2012/01/xkb-breaking-grabs-cve-2012-0064.html > > It's a matter of simple xkb configuration. As for the security >

iconv_open fails when suid bit is on

2012-02-13 Thread Elazar Leibovich
In RHEL 5 system, libc-6, I'm seeing the following strange phenomena $ cat iconv_test.c #include #include #include #include void iconv_test() { static int nr = 0; iconv_t iconv = iconv_open("MSCP949","UTF-8"); //iconv_t iconv = iconv_open("UTF-16","UTF-8"); if (iconv == (iconv_t)-1) {

Re: iconv_open fails when suid bit is on [SOLVED]

2012-02-13 Thread Elazar Leibovich
On Mon, Feb 13, 2012 at 12:22 PM, Yedidyah Bar-David < linux...@didi.bardavid.org> wrote: > > Indeed, and to strace programs that do this, I do something like that: > Thanks! Worked like a charm. Here's the trouble: [pid 31526] open("$ORIGIN/tls/i686/sse2/libKSC.so", O_RDONLY) = -1 ENOENT (No su

Re: Unicode in C

2012-03-12 Thread Elazar Leibovich
On Mon, Mar 12, 2012 at 3:20 PM, Omer Zak wrote: > > If you need to use Far Eastern fonts and/or have random access for your > text, use fixed size wide character encoding (16 bit or 32 bit size). > > Note that UTF-16, doesn't really offer random access, due to surrogate pairs (not all Unicode co

Re: Unicode in C

2012-03-12 Thread Elazar Leibovich
The simplest option is, to accept StringPiece-like structure (pointer to buffer + size), and encoding, then to convert the data internally to your encoding (say, ISO-8859-8, replacing illegal characters with whitespace), and convert the other output back. Do you mind using iconv-like library? On

Re: Unicode in C

2012-03-12 Thread Elazar Leibovich
On Mon, Mar 12, 2012 at 5:39 PM, E L wrote: > What's the advantage of using ucs-4 internally? > Especially if the program needs to save memory (embedded devices are > pretty common these days). > UTF-32 or UCS-4, is the only encoding form that allows random access to each Unicode codepoint, each

Re: Unicode in C

2012-03-12 Thread Elazar Leibovich
On Mon, Mar 12, 2012 at 7:37 PM, Nadav Har'El wrote: > On Mon, Mar 12, 2012, Elazar Leibovich wrote about "Re: Unicode in C": > > The simplest option is, to accept StringPiece-like structure (pointer to > > buffer + size), and encoding, then to convert the data i

Re: Unicode in C

2012-03-13 Thread Elazar Leibovich
2012/3/13 kobi zamir > > >> So I guess that you're also in the UTF-8 camp. >> > > yes, but my opinion about utf-8 is just my opinion. i like python and > python defaults to utf-8. > Python's internal representation is not UTF-8, but UTF-16, or UTF-32, depends on build parameters. Thus python doe

Re: Unicode in C

2012-03-13 Thread Elazar Leibovich
On Tue, Mar 13, 2012 at 1:19 PM, Meir Kriheli wrote: > > Nitpick: It's actually ucs2/ucs4 (which preceded the above but are > compatible). > Double nitpick, UTF-16 and UCS-2 are identical representation, and it's better to always use the name UTF-16 as the FAQ says

Re: Unicode in C

2012-03-13 Thread Elazar Leibovich
On Tue, Mar 13, 2012 at 5:22 PM, Nadav Har'El wrote: > > Qt appears to use internally UTF-16. What major free software C library > actually prefer UTF-8? > Are you talking about the internal representation, or the external interface? The internal representation is in many cases UTF-16. Indeed, e

Re: Unicode in C

2012-03-13 Thread Elazar Leibovich
Something very important, one need to consider is Unicode normalization. That is, how to strip out the Niqud, and to substitute, say KAF WITH DAGESH (U+FB3B) with just a KAF (U+05DB) etc. I guess that you're doing that already to some degree in hspell, so (in case you're translating to ISO-8859-8)

Re: Unicode in C

2012-03-13 Thread Elazar Leibovich
On Tue, Mar 13, 2012 at 10:16 PM, Nadav Har'El wrote: > On Tue, Mar 13, 2012, Elazar Leibovich wrote about "Re: Unicode in C": > > Something very important, one need to consider is Unicode normalization. > > That is, how to strip out the Niqud, and to substitute, say

Re: remote install linux?

2012-06-18 Thread Elazar Leibovich
Here's how I did an unattended install with no screen or keyboard: http://askubuntu.com/questions/122505/how-do-i-create-completely-unattended-install-for-ubuntu/122506 On S

What's the practical use of the error close() returns?

2012-07-26 Thread Elazar Leibovich
I was always intrigued by this unix tidbit, closing a file can return an error. In practice, it is rarely checked (as far as I've seen) What does it mean? If I understand it correctly, recent write can lie about its success. But when do you really need it? If you have a piece of information you w

Re: What's the practical use of the error close() returns?

2012-07-26 Thread Elazar Leibovich
On Fri, Jul 27, 2012 at 12:12 AM, Nadav Har'El wrote: > > So it seems to me that checking the close() only *sometimes* lets you > know of write errors which you'll otherwise miss. But since you'll > anyway miss other write errors (those coming after the close()), it's > not clear what exactly you'

Re: What's the practical use of the error close() returns?

2012-07-27 Thread Elazar Leibovich
file twice, another never. It also failed > with "no space left on device", when it was trying to flush the rest of the > data that was on the way to the file. > > Orna > > > On Thu, Jul 26, 2012 at 11:49 PM, Elazar Leibovich wrote: > >> I was always intrigued

Re: Looking for directions about compiling and tracing OpenJDK

2012-10-09 Thread Elazar Leibovich
Why do you need the Java source for that? Can't you use gdb, find out the the address of the mmap'ed area, and add a watchpoint there (scripted to log access and continue). On Tue, Oct 9, 2012 at 1:06 PM, Amos Shapira wrote: > Thanks to both of you. > > To give more details of what I'm after - I

Best practice for using CAS/atomic semantics in C/C++

2012-10-20 Thread Elazar Leibovich
What's the best way to get atomic/CAS instructions in C/C++, while keeping your code as portable as possible? Unfortunately, the best looking solution so far looks like depending on GCC's intrinsics, (since it's so widespread), but it doesn't sound right. There's also a project from HP, http://www

Re: where to host web server

2012-10-21 Thread Elazar Leibovich
On Sun, Oct 21, 2012 at 1:49 PM, Oleg Goldshmidt wrote: > Out of curiosity, what is the security limitation? Even if hosted > externally, I'd expect the machines to "logically belong" to the Technion > (e.g., in the "technion.ac.il" sense as well as in every legal sense) > If students host illeg

Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Elazar Leibovich
I'm considering to disallow concurrent ssh sessions on a single-purpose production machine (say, DB server). I thought of replacing the default shell with a shell that keeps its pid file in a central place. If such a file already exist, it'll kill the other running shell before logging in. Someth

Re: Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Elazar Leibovich
On Mon, Nov 12, 2012 at 10:27 AM, Oleg Goldshmidt wrote: > On Mon, Nov 12, 2012 at 10:05 AM, Elazar Leibovich > wrote: > > > > I'm considering to disallow concurrent ssh sessions on a single-purpose > > production machine (say, DB server). > > > > I thou

Re: Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Elazar Leibovich
On Mon, Nov 12, 2012 at 10:54 AM, Oleg Goldshmidt wrote: > On Mon, Nov 12, 2012 at 10:40 AM, Elazar Leibovich > wrote: > > > No problem with my scheme, if sshd won't kill old sessions, new sessions > > will... (or maybe I misunderstand you). > > No, I misunde

Re: Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Elazar Leibovich
On Mon, Nov 12, 2012 at 12:30 PM, Tzafrir Cohen wrote: > On Mon, Nov 12, 2012 at 10:05:02AM +0200, Elazar Leibovich wrote: > > I'm considering to disallow concurrent ssh sessions on a single-purpose > > production machine (say, DB server). > > Sessions != shells. >

Re: Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Elazar Leibovich
On Mon, Nov 12, 2012 at 8:33 PM, Dotan Shavit wrote: > > On 11/12/2012 10:05 AM, Elazar Leibovich wrote: > > I'm considering to disallow concurrent ssh sessions on a single-purpose > production machine (say, DB server). > > You shouldn't... > I'd ju

[job] Web application security researcher

2012-11-28 Thread Elazar Leibovich
For a security team, Web Application security researcher is required. While the job is not a Linux Job per se. Most relevant servers are linux servers, and Linux knowledge is required. For further details feel free to contact me in private. ___ Linux-il

Re: SSD drives

2013-01-03 Thread Elazar Leibovich
Instead of assuming, you should've used Google ;-) To my (limited, I'm far from a crypto expert) understanding, Intel of course also seeds the PRNG with a true random number generator, and it complies NIST standard for randomness. http://software.intel.com/en-us/blogs/2012/11/17/the-difference-be

Re: RNG (was: Re: SSD drives)

2013-01-03 Thread Elazar Leibovich
If you're a gateway that does SSL (and thus need to do many kex)? Like F5 On Thu, Jan 3, 2013 at 1:50 PM, Nadav Har'El wrote: > On Thu, Jan 03, 2013, Yedidyah Bar-David wrote about "RNG (was: Re: SSD > drives)": > > RDRAND is also a PRNG, reseeded at most once every 1022 calls, way > > faster th

Re: SSD drives

2013-01-03 Thread Elazar Leibovich
On Thu, Jan 3, 2013 at 3:13 PM, Oleg Goldshmidt wrote: > > I'd say that it is up to Intel to prove that their TRNG design is > truly non-deterministic. Um, but in Intel's case, they at least *tried* to prove that their TRNG is good enough. I don't think WD tries to make its seek times very rand

Re: SSD drives

2013-01-03 Thread Elazar Leibovich
$ cat /dev/urandom >/dev/null kernel panic: radiation higher than the maximal safe amount On Thu, Jan 3, 2013 at 5:21 PM, Nadav Har'El wrote: > On Thu, Jan 03, 2013, Michael Shiloh wrote about "Re: SSD drives": > > perhaps they use radioactive decay? Scroll down to "Geiger Counter" at: > > There

Re: [YBA] diff'ing kernel source trees

2013-02-03 Thread Elazar Leibovich
Can't you copy one tree into the other and then use git diff? (Assuming at least one of them has a git repo it came from). On Sun, Feb 3, 2013 at 6:36 PM, Jonathan Ben Avraham wrote: > Hi Linux-IL colleagues, > To diff two kernel trees based on the same version from the mainline, one > of which

Output to block device in linux kernel

2013-04-24 Thread Elazar Leibovich
I'm trying to understand in more depth the handling of physical harddrive io in the linux kernel (from pdflush to the actual filesystem driver). When reading about the matter, I found out I'm missing some information at a more basic level. How a regular hard drive behaves? How is it implemented i

filesystem capable of deduping tar.gz's content

2013-05-08 Thread Elazar Leibovich
Hi, I have a software product being built a few times a day (continuous integration style). The end product is an installable tar.gz with many java jars. Since the content of the tar.gz's is mostly the same, I want to use a filesystem that would dedupe the duplicated content. As I see it, it's s

Re: filesystem capable of deduping tar.gz's content

2013-05-08 Thread Elazar Leibovich
On Wed, May 8, 2013 at 10:47 PM, Oleg Goldshmidt wrote: > > Disclaimer: I am definitely not an expert on the subject matter and I > hardly know what I am talking about (in this case?). Creativity is no > substitute for knowing what you are doing. > > Now let me try and get creative. > > What is y

Re: filesystem capable of deduping tar.gz's content

2013-05-08 Thread Elazar Leibovich
On Wed, May 8, 2013 at 11:11 PM, Tzafrir Cohen wrote: > > Git stores files. It should do handle such deduping by design. But this > is in Git's storage, and not in the actual filesystem: > git packs them in a pack file. Use git gc to make it aware of changes, or just look at my reply to Oleg. __

Re: filesystem capable of deduping tar.gz's content

2013-05-28 Thread Elazar Leibovich
You came late to the party, but you're the only one who brought cheque! Thanks, it's exactly what I was looking for. On May 28, 2013 4:22 PM, "Ori Berger" wrote: > On 05/08/2013 09:22 PM, Elazar Leibovich wrote: > >> Hi, >> >> I have a software produ

Is it OK to poll() a device file descriptor

2013-06-18 Thread Elazar Leibovich
Try to open /dev/null, and then to poll the file descriptor. Neither in the man page nor in the standard I see anything preventing you to poll on /dev/null, yet, it does not work on Mac OS X. You get a POLLNVAL. Run the following: https://gist.github.com/elazarl/5805848 #include #include #inc

Re: Is it OK to poll() a device file descriptor

2013-06-18 Thread Elazar Leibovich
Damn I missed that. To my defense, this bug should be also mentioned in the POLLNVAL section. As it stands now, it looks like the only reason for POLLNVAL is a closed file descriptor. Sorry and thanks. On Tue, Jun 18, 2013 at 6:09 PM, Oleg Goldshmidt wrote: > Elazar Leibovich wri

Re: Is it OK to poll() a device file descriptor

2013-06-18 Thread Elazar Leibovich
r write to (and since its buffer is empty it'll never block), but somehow I found /dev/zero to be more elegant. On Tue, Jun 18, 2013 at 8:42 PM, Shachar Shemesh wrote: > On 18/06/13 17:43, Elazar Leibovich wrote: > > Try to open /dev/null, and then to poll the file descriptor. Neit

Re: Is it OK to poll() a device file descriptor

2013-06-18 Thread Elazar Leibovich
} But I have to use a file descriptor! Otherwise poll will have no reason to call my callback. On Jun 19, 2013 7:47 AM, "Shachar Shemesh" wrote: > On 18/06/13 22:16, Elazar Leibovich wrote: > > I'm using it as a fake "always non-blocking" file descriptor. > &

Help recreating bug report in proxy library

2013-08-02 Thread Elazar Leibovich
Hi, I'm maintaining a small HTTP proxy library that allows you to eavesdrop HTTP requests. Someone reported a bug which I cannot recreate, so I'm trying my luck here. [repost from golang-nuts, where I didn't get an answer]. It seems to work on my machine, but a user still complain. https://github

Re: Help recreating bug report in proxy library

2013-08-02 Thread Elazar Leibovich
installed root CAs are given the authority to override pins. We don't believe that there will be any incompatibility issues. On Fri, Aug 2, 2013 at 3:17 PM, Elazar Leibovich wrote: > Hi, > > I'm maintaining a small HTTP proxy library that allows you to eavesdrop > HTTP requests.

Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Elazar Leibovich
It seems that while top lists kernel provided statistics per process which is somewhat interesting but not all that useful, perf is really sampling the system, and gives a real picture of who's hogging your system, which is usually why you've started top in the first place. Let me give a trivial e

Re: Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Elazar Leibovich
While the point of perf not being available to non-root out of the box are valid (though, it's just apt-get install linux-tools + echo 0|sudo tee /proc/sys/kernel/perf_event_paranoid away, and it's the best bargain you'll ever make), IMHO this is indeed apple vs apple comparison. The goal of top's

Re: sending to same dest via different interfaces

2014-03-04 Thread Elazar Leibovich
use the SO_BINDTODEVICE setsockopt. On Tue, Mar 4, 2014 at 10:02 AM, Erez D wrote: > Hello > > > I have 2 external interfaces via two eth cards, both connected to the > internet > > I want to send a udp packet to same host:port, but choose dynamically > which interface to use. > > can this be d

Re: sending to same dest via different interfaces

2014-03-04 Thread Elazar Leibovich
with capabilities, or use the old method of start as root, bind socket and drop privileges, or use a small server creating such sockets running as root. On Tue, Mar 4, 2014 at 11:16 AM, Erez D wrote: > > > > On Tue, Mar 4, 2014 at 11:05 AM, Elazar Leibovich wrote: > >> use the

Re: sending to same dest via different interfaces

2014-03-05 Thread Elazar Leibovich
Another idea from colleague, is to bind the source address of the socket to the address of the desired netwrokr interface. While it doesn't guarantee anything, he said that in practice the kernel routed the packets through the desired network interface. On Tue, Mar 4, 2014 at 10:02 AM, Erez D w

Who's counting jiffies when all CPUs idle in NO_HZ mode?

2014-03-25 Thread Elazar Leibovich
(I'm talking now about MONOTONIC_CLOCK_RAW, not taking NTP adjustment into account) To my understanding, the basic time counting mechanism at the Linux kernel, is the jiffies counter. The way it counts time, is by leveraging a CPU interrupt happening at a certain known frequency. Every time this i

Re: Who's counting jiffies when all CPUs idle in NO_HZ mode?

2014-03-25 Thread Elazar Leibovich
t; tickless, not to the > idle tickless. Please disregard that answer, except the use of the hardware > clocks. I believe it is still valid, but I'll need to look at the source > code. > > Shachar > > > On 26/03/14 06:38, Shachar Shemesh wrote: > > So I answer this

Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-18 Thread Elazar Leibovich
I'd urge you to consider using virtualenv to manage python dependencies. The only OS dependency you'd have, is python. You shouldn't care about dependencies beyond that. This is even more correct when deploying your application. On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen wrote: > Hi peopl

Beautifying latex documents

2006-08-04 Thread Elazar Leibovich
I want to produce a latex document template that looks similar to professional books' templates. That is, with notes bounded by a box of different color and having a picture on the top of the box. There's a book series with ants teaching you java and C++ with many examples for such a template. ther

Recommendation for a WiFi card

2006-08-12 Thread Elazar Leibovich
Can anyone recommend me a WiFi card that supports linux, and is very stable (should not disconnect easily etc.). Preferably a USB card, but I'll listen to any other suggestion.

Indexing and search engine for website

2006-10-14 Thread Elazar Leibovich
Can anyone recommend an opensource website-search engine one can index his website and add a search capability to it with it? The most important thing for me is ease of use, minimum software requirements (that's why java-lucene doesn't really shines) the quality and speed of the search are less rel

ftp CHMOD permission denied

2006-10-18 Thread Elazar Leibovich
I'm having a site with ftp access, I accidently changed a directory mode to user write only. Now I cannot delete it or chmod it again. Anyone have an idea how to chmod it or get rid of it? Unfortunately the site is on godaddy.com which don't allow SSH access.

Re: ftp CHMOD permission denied

2006-10-19 Thread Elazar Leibovich
Of course, chmod 777 dir, says:550 Could not change perms on phpMy_Admin: Permission deniedI'm not that bad...On 10/19/06, Jacob Broido <[EMAIL PROTECTED]> wrote: How about:ftp> chmod On 10/19/06, Elazar Leibovich < [EMAIL PROTECTED]> wrote: I'm having a site with

Bank Hadoar in linux

2006-11-02 Thread Elazar Leibovich
Does anyone have experience with Bank Hadoar internet access via linux/FF/Konqueror?http://bank.postil.com

Backing up database schema

2006-12-05 Thread Elazar Leibovich
I'm having one mysql database FOO, whose schema needs to be changed from time to time. I'm having another database BAR with different data in it but with the same schema. I want to copy schema changes from FOO to BAR. ie, when I add column height to table 'users' and column 'ruby' to table langua

Time tracking software

2006-12-07 Thread Elazar Leibovich
Does anyone know a program, which, behaves like the old watches which kept track of worker's work time? IE, you tell it your name and "STARTED WORKING", or your name and "STOPPED WORKING" and it keeps track on how many hours did you work? ==

Hebrew morphological search

2007-01-21 Thread Elazar Leibovich
Does anyone know a working free/opensource implementation of full text morphological search in hebrew. Searching google results in a few results non of them seems maintained.

Re: Hebrew morphological search

2007-01-21 Thread Elazar Leibovich
I was looking for a more complete solution which already searches for morphological hebrew occurrences in database, or that incorporates in indexing solutions such as Apache's lucence or mysql's FULLTEXT search. On 1/21/07, Nadav Har'El <[EMAIL PROTECTED]> wrote: On Sun,

Random moves of the mouse

2007-03-04 Thread Elazar Leibovich
I'm having an ubuntu Edge Eft (2.6.17-11-generic) system with a ps2 mouse. After a period of times it moves randomly clicking spots on the screen. For reference, the system is affected by the bug mentioned here[1] on USB HID wireless mice from HP. Anyone know a cure for that? PS this is a reason f

Re: Random moves of the mouse

2007-03-05 Thread Elazar Leibovich
I'm taking my words back. I thought that windows has QA'd the basic input/output kernel related modules very well but apparently this[1] is not the case. Bugs are software independent. [1] http://www.tipsdr.com/?p=271 On 3/5/07, Peter <[EMAIL PROTECTED]> wrote: > PS this is a reason for the cla

Re: Random moves of the mouse

2007-03-05 Thread Elazar Leibovich
This[1] is an evident the erratic mouse issue is relating to acpi. [1] http://www.linuxquestions.org/questions/showthread.php?threadid=339117 On 3/5/07, Elazar Leibovich <[EMAIL PROTECTED]> wrote: I'm having an ubuntu Edge Eft (2.6.17-11-generic) system with a ps2 mouse. After a peri

<    1   2   3   >