Re: Serial connection?
shimi wrote: 2010/4/22 Hetz Ben Hamo het...@gmail.com mailto:het...@gmail.com Hi, I wonder if someone could recommend a cheap and simple device to connect 8-10 servers through serial port so I can connect them from outside using telnet or ssh. A device name and price / link to purchase would help. Thanks, Hetz I think most of those units cost like $1K for 8 ports or so. Digi are well known, sold by Ankor. 300 sheqels for a 4 port RS232 to one USB connector. 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: WAN connection through a Linux machine
Etzion Bar-Noy wrote: Oops - and now with reply-all... Hi. You should run both these commands (I will not disclose how you make it apply after-reboot for now) 1. echo 1 /proc/sys/net/ipv4/ip_forward 2. iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE Don't forget to set correct DNS on your host B Ez Also, RTFM MSS Squashing 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: WAN connection through a Linux machine
Dan Shimshoni wrote: shachar, I googled for MSS Squashing. Got 0 results! What is this MSS Squashing? and how is it related to this issue? rgs, DS The term used in the iptables man page is clamp-mss-to-pmtu The ethernet maximal transfer unit (MTU) is 1500 bytes (more or less, but in practice, this is the default). Since pppoe has some overhead, the effective MTU on ppp0 is lower (about 1470 bytes). Packets sent out by your machine B broadcast the desired packet length on the return path through a TCP option called MSS (maximal segment size). Theoretically, TCP will figure out on its own that the path MTU (PMTU) is lower than the end MTU as advertised by the MSS. This has two disadvantages: 1. It has worse performance than advertising the correct number in the MSS to begin with 2. Some firewalls block the ICMP message used to report this case (code 3 type 4 - fragmentation needed but don't fragment set). As a result, you get black hole syndrom. The solution is to have iptables alter the MSS field of the TCP option to the value it knows is correct. 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: WAN connection through a Linux machine
Dan Shimshoni wrote: ok, now this is more clear. But is this problem specific to this scenario? I mean, when I use a single machine to connect directly to the internet via bezeq ADSL , without running any iptables rules at all, using PPPOE , I should have the same problem, don't I ? No. The packets go out through the ppp0 interface, which already has a lower MTU (1492 by your report). As such, they already carry the right MSS. 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: About Multi-cores and Multi-tasking
Shlomi Fish wrote: Hi all! I once read that in order to truly take advantage of having multiple cores on the same CPU, then one needs to use several threads. On the other hand some people assume or implied that if your application splits the work among several processes, then it can also take advantage of multiple cores. So my question is: can several distinct processes each execute in their own cores? From my experience with benchmarking http://fc-solve.berlios.de/ , I've noticed that multi-processing was a bit faster than multi-threading on my P4-2.4GHz machine (hyperthreading) while multi-threading was faster than multi-processing on my Intel x86-64-based laptop with two cores running in x86-64 mode. It's possible that the multi-tasking in both cases is sub- optimal, but I've ran the same programs on both computers. I'd appreciate if anyone can shed any light on it. Regards, Shlomi Fish Let's define a few terms. Multi-processor - several CPUs on the same machine. These are two distinct CPUs. Multi-core - several CPUs inside the same chip. The CPUs are distinct, but they do share some caching data. Hyperthreading - Now there's a misunderstood concept. Ever since the first Pentium, even a single core has the ability for some parallel processing. The original Pentium had two pipelines, in which it could (sometimes) execute two consecutive machine instructions at the same time. With hyperthreading, the parallelilsm extend beyond executive instructions. Essentially, you have one CPU with two sets of registers and, say, six pipelines. Two are dedicated to the first set of registers, two to the second, and two can be assigned to either one, as the need arises. The rest of this mail is pure conjecture. The more shared the data is between the execution threads, the closer you want them to run. This way, cache does not need to be invalidated whenever a piece of data changes. This is why, when you run two processes, multi-CPU is faster (each process has its own data and instruction cache, which results in larger cache), but when it is a multi threaded app, multi core is faster (shared L2 cache). When you run the threads mode on multi-cpu, each change done to the shared address space needs to invalidate the cache the other CPU has for that same area, which is why you suffer the slowdowns. As for hyperthreading - in theory, that should have been fastest, as they share L1 cache as well as L2. There are several implementation problems with this, however. The most obvious one is that it is difficult to know when one CPU is truly idle. Think about a thread spinning on a spin lock while waiting for the other one to complete a task. It does not appear idle, so it gets both assignable pipelines, while the other semi-core has only two pipes to complete the task that is blocking the lock to begin with. Another problem with hyperthreading is that it is stretching the L1 cache thin when executing unrelated tasks. My guess is that this is why Intel wound out removing it. If, as Shimi is saying, they are re-introducing them, maybe they think that they found reasonable solutions to the above problems. 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: Nexus One vs Samsung Galaxy S
Gadi Cohen wrote: (I should note that the HTC Evo 4G includes HTC's Sense UI, which looks fantastic, plenty videos of this around. You can find it ported to the Nexus One but then of course you're limited to updates to that ROM... some Nexus One features might not work). I must admit that I found Sense to be underwhelming. On my phone, I'm running the plain Launcher (now rather old - no time to mess with Android right now :-( ). Sense will probably be great for people who use facebook and twitter a lot, as it has very tight integration with these services. As I don't, I don't find the appeal. HTC's decision to make Sense plugins distinct from Android Launcher plugins is, in my view, a lame attempt to prevent people from taking the Sense plugins, and holds no technological merit. The interface is, indeed, nice, but it is implemented as a wrapper around Android, rather than go into Android and change it. As a result, the second you run ANY non-Sense application (which is, let's face it, most of them), the interface reverts to POA (Plain Old Android). I can't escape the feeling that Sense was developed for WinMo, to override Window's horrible non-touch oriented interface, and was ported to Android for the sake of uniformity. That might also explain the different plugins interface. Inside Android, at least, it feels like a shallow casing around the core system, and I prefer the uniformity of having a standard interface throughout the system. 1) Super AMOLED screen. Looks amazing, brighter, better contrast, uses less power. See video. Is it reflective? Usually, the brighter colors are due to a reflective surface, which makes it more difficult to work with. 2) Possibly the fastest processor on the market, but it's debatable. It's also 1Gz like the N1 but can draw triangles 3 times a fast. http://androidandme.com/2010/03/news/samsung-galaxy-s-hummingbird-chip-to-have-3x-gpu-power-of-snapdragon/ So I have to ask about battery time and weight. 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: Nexus One
Gadi Cohen wrote: However, for someone who isn't interested in all these things, there are probably better options: The Samsung Galaxy ... These have UI improvements from the manufacturers with great features... I have only looked at the Galaxy when it first came out. At that time, I did not spot ANY differences between it and the vanilla Android. What improvements does it contain? 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: faster rsync of huge directories
guy keren wrote: as well as sys admins/kernel developers - the initrd file on (some?) linux distributions is a gziped cpio file (at least on RHEL 5.X) Initrd can come in one of two formats. These are either some (any) file system (you usually use some read only file system, most common of which is cramfs). If that is the case, the image is called initrd, and is available since 2.4 kernels. The other option is to put the files inside a cpio archive. If that is the case, the image is called initramfs, and is the new method (i.e. - 2.6). Initramfs is the preferred method of creating initrd images, and so you can say that cpio is making a comeback... :-) 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: Hebrew calendar software creators: can you notify this list when updating the calendar?
Dotan Cohen wrote: It looks like it would need to be hand edited Watch your language! 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: Grub4DOS
Noam Rathaus wrote: Hi, Anyone pressed ESC a few times before Windows 7 starts? It has GRUB4DOS showing up as a menu selector :) Nice ha? Thanks, Noam. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Are you sure this is not something to do with your specific installation? 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: faster rsync of huge directories
Tom Rosenfeld wrote: Hi, I am a great fan of rsync for copying filesystems. However I now have a filesystem which is several hundred gigabytes and apparently has a lot of small files. I have been running rsync all night and it still did not start copying as it is still building the file list. Is there any way to get it to start copying as it goes. Or do any of you have a better tool? Yes, there is a better tool. Upgrade both ends to rsync version 3 or later. That version starts the transfer even before the file list is completely built. 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: faster rsync of huge directories
Nadav Har'El wrote: On Mon, Apr 12, 2010, Shachar Shemesh wrote about Re: faster rsync of huge directories: Upgrade both ends to rsync version 3 or later. That version starts the transfer even before the file list is completely built. Maybe I'm missing something, but how does this help? It may find the first file to copy a little quicker, but finishing the rsync will take exactly the same time, won't it? Not at all. If the two are done linearly, then only after the entire directory tree is scanned will the first transfer *begin*. The total transfer time will be tree scan time + transfer time for older rsyncs, but the two overlap for newer transfers. How much time exactly that would save really depends on how much the second time is (i.e. - how much data you need to actually transfer). Also, if nothing has changed, it will take it exactly the same time to figure this out, won't it? Yes. You might still save some time, but this, definitely, is the minimal advantage that newer rsyncs have over older ones. I'm not sure what his problem is, though. Is it the fact that the remote rsync takes a very long time to walk the huge directory tree, or the fact that sending the whole list over the network is slow? From my experience, it's mostly the former. If it's the first problem, then maybe switching to a different filesystem, At the time, we tested ext3, jfs and xfs, and found no significant differences between them. It was not, however, a scientific test. or reorganizing your directory structure (e.g., not to have more than a few hundred files per directory) will help. That is likely to actually help (plugand is why rsyncrypto has the --ne-nesting option when encrypting file names/plug), but is not always a viable option. If it's the second problem, then maybe rsync improvements are due - i.e., to use rsync's delta protocol not only on the individual files, but also on the file list. It's not the second, typically. 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: faster rsync of huge directories
Tom Rosenfeld wrote: On Mon, Apr 12, 2010 at 9:41 AM, Tom Rosenfeld tro...@bezeqint.net mailto:tro...@bezeqint.net wrote: Hi, I am a great fan of rsync for copying filesystems. However I now have a filesystem which is several hundred gigabytes and apparently has a lot of small files. I have been running rsync all night and it still did not start copying as it is still building the file list. Is there any way to get it to start copying as it goes. Or do any of you have a better tool? Thanks, -tom Thanks for all the suggestions! I realized that in my case I did not really need rsync since it is a local disk to disk copy. Please note that rsync from local to local is just a glorified cp. It does not do file comparisons at all. It was also pointed out that ver 3 of rsync now does start to copy before it indexes all the files. Unfortunately, it is not available on CentOS 5. wget http://samba.anu.edu.au/ftp/rsync/src/rsync-3.0.7.tar.gz tar xvzf rsync-3.0.7.tar.gz cd rsync-3.0.7.tar.gz ./configure make su make install 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
Standards vs. Innovation (was: Sending receiving SMS in linux)
Herouth Maoz wrote: For example, if you standardise on a document format for spreadsheets, e.g. ods, you basically hurt software that represent data in an innovative way (for example, I used to use a spreadsheet program in which the data was in small grids, and these grids were connected by formulas - rather than the giant grid that contains formulas and data which we are used to). But I suppose this is a political discussion so I'd better not pursue it. Why political? The program you are describing is not a spread sheet. It might be more effective, and sure sound like it aims for a similar end market, but it is something different. Innovation is, sometimes, hindered by standards, but, then again, the opposite can also be said - lack of standards also hurts innovation. Take any monopolistic Microsoft product as an example of that. All in all, as long as the market is relatively competitive, things tend to sort themselves out. Eventually. 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: kernel optimization for long distance download??
Hetz Ben Hamo wrote: Hi people, I'm having an argument with a hosting company abroad. Their mirror server gives me full speed download (600k on my 5Mbit ADSL) while my server there gives me half. They say that they don't use any QoS tricks. I have talked to their support and I heard a weird claim: their mirror server's kernel is optimized for long distance download. I never heard of such a thing in my life with the Linux kernel of such a thing.. Short answer - run a sniffer on both downloads. Longer answer - there are some tricks you can do, some of them legal, others violating the TCP/IP standard, in order to handle high latency links better. They might be referring to those. Conclusion - run a sniffer :-) 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: kernel optimization for long distance download??
Ohad Levy wrote: You would need to know what to sniff, e.g. if tcp dynamic window scaling is enabled. I'll be interested in what you consider dirty tricks? AFAIK increasing the tcp window size (read: send more data for every ack) is not considered dirty trick at all, and is very efficient with good connections (low packet drop) and high latency. Ohad The legal tricks are, mainly, two. One is SACK, or selective ACK, which allows marking TCP packets as received after a lost packet, thus preventing retransmission of the entire window after the lost packet. Another one is window scale, which allows a window of more than 64KB. This one is a problematic one, as the scale needs to be negotiated during the three way handshake, at which point the machine, typically, does not yet know it is on a high latency connection. The WS option is determined according to the buffers allocated to the TCP socket. I don't remember whether you control these using ioctl, fcntl or setsockopt, but these are controllable by user space. Either way, I doubt these are relevant here, as the buffers need to be set by the side that is receiving the data, which is, in the case of a standard server, the client. The main illegal trick is called predictive ACKing. It involves a proxy server that sends ACKs to packets it has not, yet, seen. Many people swear by that trick, but I, personally, doubt its effectiveness. What's worse, if a packet sent due to predictive ACK does get lost, the entire connection might get irrecoverably hung. Another potential illegal trick is to recompile the server's TCP/IP stack to perform some function over the received window size, effectively forcing the effect of window scaling on the client. The main problem with this one is that, if not done right, it can totally screw with TCP's congestion control. 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: XMoveWindow()
Erez D wrote: On Thu, Mar 4, 2010 at 12:20 PM, Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz wrote: Erez D wrote: On Wed, Mar 3, 2010 at 5:05 PM, Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz wrote: Erez D wrote: when i write a program, i expect to get the same behaviour which doesn't depend on the WM. however: Traditional window managers reparent the window, and add the titlebar to the parent. compize on the other hand doesn't reparent the window, so the behaviour is different. Yes, but that's avoiding Nadav's question, which was - why is this something for the program to do? i have two displays i want one to be a copy of the other, so when i move a window on one display, i want it to move to the same position in the other. Then it seems to me that you are trying to move the wrong window. Why not run XMoveWindow not on the window you opened, but walk up the parents until you reach the window whose parent is root, and move that one? if i put the parent at x,y - it will place it at x,y. but that not what i want. if i put my original toplevel at x,y - i would expect it to be placed at x,y. but no, it places it's parent at x,y, which means it is placed in an offset. the bottom line: it doesn't matter if i put my window at x,y or it's parent (that belongs to the WM) at x,y - i get the same result. which is not the result i want. That depends on what is the x,y you start with. If you start with the x,y of the top window, and set it for the other top window, then you do get exactly what you want. btw. if i use compiz - it doesn't have a parent. anyway, an app doesn't need to play it differently if it have or doesn't have a WM, or to be dependant on which WM it has. I think the algorithm I gave should work regardless of which WM, but I haven't checked it. And please, if you think differently, say why. because it tested it (with my code). with reparented windows? 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: Request for help with mail spoofing
Nadav Har'El wrote: On Wed, Feb 17, 2010, Geoff Shang wrote about Request for help with mail spoofing: Given that I have this script which I am willing to send on, my questions are: 1. What exactly is being done? You didn't attach the script, but basically forging mail on the Internet is trivial. Here it is. Open your mail agent (say, thunderbird), go to the account configuration, change the my name and my email settings, send the mail. No scripting necessary. The key point to understand is that SMTP, the simple mail transfer protocol, has absolutely no authentication mechanism for the From address. If I send mail from n...@math.technion.ac.il, my host simply writes the line MAIL FROM: n...@math.technion.ac.il as part of the SMTP session with the receiving mail server. It could have just as easily wrote presid...@whitehouse.gov. Just to make things worse, what you just specified is the envelop sender - what the mail servers will use in order to bounce the message. Most servers will discard this information the moment the mail gets successfully delivered. The sender's address and name, as appears in mail user agents, is actually taken from the message's BODY - even easier to spoof than that. 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: toolchain's output depends on toolchain used to build the compiler?
Oleg Goldshmidt wrote: 2010/2/9 Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz The newlib libraries built are compared, and are identical down to the last assembly instruction. The client libraries are compared. Some are identical, some are not. Just to dot all the i's and cross all the t's: are the cross-binutils identical? As listed in the table that started the thread, they are compiled as part of the compiler bring up. In other words, yes. 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: OT: should I move my domain to GoDaddy?
Michael Shiloh wrote: While not technical, I left them for the following two reasons: 1. I found GoDaddy's usage of an attractive woman in their advertising, calling her the GoDaddy Girl, offensive. 2. GoDaddy very aggressively encouraged me to purchase more services. With every purchase I made, I had to wade through 5 or 6 additional service offers before I could finish the purchase of the one service I needed. 3. They dibbled their hands in expired domains hijacking. Technically, I must confess, I didn't have any complaints Same here. I'm still with them, but any alternatives would be appreciated. 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: SEMI OT: Where to get SIP phones?
Aaron Komisar wrote: Actually, if you look hard enough, you can find a list of open source applications installed on the Smartbox in Orange's web site (Asterisk is not listed there): http://www.orange.net.il/isp/opensource/ Libcap and tcpdump? Might I ask why? Sounds suspicious 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: Runtime security/memory checks for gcc/gdb
Elazar Leibovich wrote: IIRC the problem was using a different library, and tracing which problems are yours and which are of the library. See for instance this rant http://www.mega-nerd.com/erikd/Blog/CodeHacking/house_of_cards.html I haven't really got into this, so maybe the suprresion files does allow you to quickly fix it. The way I see it, a problem in a library you use is still a problem in your product. This is not really a false positive. It's more complex than that. The code currently work on the embedded device. This is a mission critical device, so we cannot make changes to the runtime code without testing it throughly first. I try therefor to fix the problem in the emulation level without touching the actual code. (for instance, overriding a certain problematic function which used an uninitialized variable, and got away with it in the embedded device, but not in the desktop, or, replace the macro which stores a specific memory address (hex number) which is used by a the code, and is obviously relevant only for the embedded device) I'll repeat it again, and then stop, as I don't want it to become a war. The fact it is mission critical is another reason to fix all warnings, not a reason to ignore them. 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: Runtime security/memory checks for gcc/gdb
Elazar Leibovich wrote: I tried using valgrind in a different project. The main problems I've had with valgrind are speed Yes, that is known. and false positives. That one is new to me. Can you elaborate? Getting gdb to report that during runtime has its advantages. Anyhow, I was hoping to hear about products/valgrind add-ons etc I do not know. The main practical problem with it, is convincing management that getting a linux box or VM and build the code on it is worth our while... Personally, I think that you should start with gcc. Just because it spews out thousands of warnings does not mean they are not all relevant. Compiler warnings are the easiest to fix, easiest to find, and are often written off for no justifiable reason. I'm not sure at which version this started, but gcc 4.4.2 with -Wextra catches your second example (array bounds problem). 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
Job offer: Linux programmer (can be a contractor)
Hi all, This is actually two job offers disguised as one. One if working for Lingnu itself, for which we are looking for a full time employee. The other is for a client of ours, for a temporary position (about four months, give or take). This can be either full time or contractors. The Lingnu job is mostly done in Kfar Sava, the other one in Herzelia Pituach. The qualifications for both jobs are similar. Mostly user space (but some kernel is not out of the question), ability for independent working, and embedded oriented. Applicants are welcome to contact me off list. Thank you, 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: Job offer: Linux programmer (can be a contractor)
Hetz Ben Hamo wrote: Shachar, You might want to add some details such as: * Language of programming required Second job - mostly C. First job (for Lingnu) - whatever lifes brings on. C, C++ and Java (Android) are a definite candidates. Anything else may go as well. * Years of experience At this point in time, I am not limiting the search. Pay would, of course, vary accordingly. * Remote work (from home for example) In principle, the job is on site. For the first job there may be specific cases where remote work will be possible. For the second one it's on site only. 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: Zombie processes
sammy ominsky wrote: Hi all, I have one server that is constantly getting overrun by zombies! Nagios alerts me that ** NAGIOS ALERT ** PROBLEM with Zombie Processes on Hardware *** (***.***.***.***). Service is CRITICAL as of Sun Jan 3 15:17:10 UTC 2010. The additional information available is: PROCS CRITICAL: 23 processes with STATE = Z ps shows me it's mostly one process this time, other times it's others 19279 ?Z 0:00 [playrecording.p] defunct Use pstree and check who the zombies parent is. If it is the same process for almost all of them, this is likely a software bug in playrecording.p (or whatever the parent is). If it is process ID 1, then you have some other problem (probably in the kernel). 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: Kudos to Osem
Oron Peled wrote: The special thanks for Osem should be for not being clueless -- E.g: let's use ActiveX, or even better, SilverPlight ;-) I'll gladly thank them IF I find out it was a conscious decision - i.e. - that it was not the random choice of contractor that made them choose those particular technologies. On second thought, maybe praising them even if the choice was random is still a good idea. Not sure. 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: Recall: Voip (SIP) switch
Andrew Kaplan wrote: Actually I use both. Connecting an Asterisk 1.6 box to an Exchange 2010 (beta) server unified communications server was a project I got involved in once. See http://blog.itcons.net/2008/09/create-truly-unified-messaging-system.html I'm not a fanboy :-D You are using Windows enough to be naive enough to think you can ask our mail clients to forget they received an email from you. Recalling an email to this list is, at best, futile. 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: Kudos to Osem
Amichai Rotman wrote: (an executable file on the root directory of the CD) using WINE without any special settings. ... I wanted to share with fellow Linuxers, and give kudos when kudos are due. Just a clarification - shouldn't kudos where due go to Wine and Ubuntu? 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
XFCE keyboard leds indicator panel plugin
Hi all, I'm looking for a plugin to the XFCE panel to show the state of the keyboard leds. I have mythbuntu on my living room computer with wireless keyboard (and no leds, as most wireless keyboards are). I have not found any plugin for XFCE for showing the state, however. Anyone know of anything? 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
disabling loop unrolling in GCC
Hi all, I'm trying, without success, to disable loop unrolling when compiling a program with -O3 with gcc (4.4, but I see the same problem with 4.3). The program is the following one: volatile int v; void func() { int i; for( i=0; i8; ++i ) { v=0; } } I compile it with the following command line: gcc -c -O3 test.c An objdump -S test.o gives: test.o: file format elf64-x86-64 Disassembly of section .text: func: 0: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# a func+0xa 7: 00 00 00 a: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 14 func+0x14 11: 00 00 00 14: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 1e func+0x1e 1b: 00 00 00 1e: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 28 func+0x28 25: 00 00 00 28: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 32 func+0x32 2f: 00 00 00 32: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 3c func+0x3c 39: 00 00 00 3c: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 46 func+0x46 43: 00 00 00 46: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 50 func+0x50 4d: 00 00 00 50: c3 retq If I compile with -O2, the results are: test.o: file format elf64-x86-64 Disassembly of section .text: func: 0: 31 c0 xor%eax,%eax 2: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 8: 83 c0 01add$0x1,%eax b: c7 05 00 00 00 00 00movl $0x0,0x0(%rip)# 15 func+0x15 12: 00 00 00 15: 83 f8 08cmp$0x8,%eax 18: 75 ee jne8 func+0x8 1a: f3 c3 repz retq Where it gets worrying is when I try to cancel loop unrolling. I tried -fno-unroll-loops and -fno-peel-loops, to no effect. I even tried messing with the --param option (max-unrolled-insns, max-unroll-times, max-peel-times) to no noticeable effect. Even more worryingly, the documentation seems totally wrong. It claims (http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html#index-O3-632) that -O3 is equal to -O2 plus -finline-functions, -funswitch-loops, -fpredictive-commoning, -fgcse-after-reload and -ftree-vectorize. Trying to compile with -O2 and the additional optimization options does not, however, unroll the loop, which suggests that -O3 differs from -O2 in another way as well. Help? 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: disabling loop unrolling in GCC
Aviv Greenberg wrote: Just out of curiousity: why do you care about the resulting assembly? It's a strong indication that you are doing something wrong :) First, we have found several bugs in GCC as a result of caring about the assembly. Lets agree that it's an indication that someone is doing something wrong. The reason I'm trying to disable this optimization is because it causes the code to be too big to fit onto the available ROM on which the code needs to be flashed. The X86 version I gave here shows the problem, but is no the platform on which the problem was diagnosed. 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: disabling loop unrolling in GCC
Dotan Shavit wrote: On Monday 21 December 2009 14:00:39 Shachar Shemesh wrote: Where it gets worrying is when I try to cancel loop unrolling. I tried -fno-unroll-loops and -fno-peel-loops, to no effect. I even tried messing with the --param option (max-unrolled-insns, max-unroll-times, max-peel-times) to no noticeable effect max-completely-peeled-insns is your friend This param's value is also the difference between -O3 and -O2 you were missing Out of curiosity, how do you know that? Did you grep the gcc sources? 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: firefox and Bank Leumi web site
Amos Shapira wrote: Following Shlomi's (?) preaching about taking your business away from banks which don't support standards, I'd like to recommend (again) on First International Bank (aka FIBI), with which I do business through Firefox on Linux for maybe ten years now, and I think also Hamizrachi bank supports Firefox well. -Amos While on that thread, Discount bank has what appears to be pretty good support for Firefox. I neither buy nor sell stocks, so I don't know how well that works, but they officially support it. I should point out that, technically, my browser is iceweasel, and they block me. In order for the site to work, I have to spoof my user agent, for the sake of the login screen only, to say that I am running Firefox on Linux. After that, everything works with my default user agent as well. 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: atomic operations under linux
Gilboa Davara wrote: Why? - Write code that can run more-or-less the same as kernel module and as a user-space library. (And under multiple different OS') - Implement fast spinlocks and/or RW locks in user mode. (Again, that behave the same under kernel mode and user mode.) - Atomic counters. - Anything else that can use the lock prefix. - Gilboa I'll just point out that all of the above only make sense if you are guaranteed low contention. If not, using the OS supplied locking mechanisms will bring much better performance, due to the fact that locked tasks do not take CPU time (are scheduled out). If you can guarantee extremely low contention, yes, there is *SOME* sense. If not, I think this is premature optimization. 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: Does anyone know those spammers? [Fwd: בואו להיות מהנדסי לינוקס (
Omer Zak wrote: פנייה באימייל: train...@penguin-it.co.il mailto:train...@penguin-it.co.il?subject=%d7%90%d7%a0%d7%99%20%d7%9e%d7%a2%d7%95%d7%a0%d7%99%d7%99%d7%9f%20%d7%9c%d7%a7%d7%91%d7%9c%20%d7%99%d7%95%d7%aa%d7%a8%20%d7%9e%d7%99%d7%93%d7%a2%20%d7%90%d7%95%d7%93%d7%95%d7%aa%20%d7%94%d7%9e%d7%a1%d7%9c%d7%95%d7%9cbody=Name%3A%0AEmail%3A%0APhone%20number%3A Well, sort of. Penguin-IT is a company originally founded by Doron Ofek. About two years ago, through a set of actions I never managed to get to the bottom of, his partners kicked him out. Apparently, their ethics is consistent. Their main line of business is, unsurprisingly, training. 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: atomic operations under linux
Gilboa Davara wrote: On Wed, 2009-12-09 at 20:04 +0200, Raz wrote: Do not use inline kernel atomic_t operation, you will violate GPL. Use gcc builtins. If you want information please refer to: http://sos-linux.svn.sourceforge.net/viewvc/sos-linux/offsched/Linux-Debug/ and download linux-debug.pdf . You will few words on atomicity in user space in linux. Please execuse for bad editing, the paper is not complete. raz Thanks. While I was aware of the derived problem - I neglected to point it out. Thanks. At least in my case (and partially due to the derived work problem), I simply wrote my own set of assembly functions that worked the same under both Linux/BSD and Windows (under both user mode and kernel mode). - Gilboa I might be missing something really basic, but may I ask why? What would you want to achieve that would require you to use the get and set (or test and set, or whatever) in user space? 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: YES with TV card
shlomo solomon wrote: I'm moving from HOT to YES television. Since several of the TVs in my home are actually PCs with internal analogue TV cards (2 Linux boxes and 1 Windows), I asked YES tech support if they would work. I was told that all I have to do is to use whatever software runs the card to scan for the channel needed to connect to the MEMIR. I will, of course, not be able to choose what program to watch via the software (XawTV, in my case), but will have to change programs via the YES remote. Can anyone confirm that this information is correct? TIA I actually had to get up and look at my receiver in order to answer that. I do not see an RF output on the standard Yes receiver, so their description of scan for the right program seems, to me, to be false. Having said that, I am very doubtful that your TV card does not have a video in port, if not an actual s-video port. Any of those will work, and will actually give you better quality than the RF option mentioned above. Personally, I use an s-video port for the receiver, and will be getting the blaster working as soon as I get around to it (which will allow myth-tv to switch channels automatically, I hope). There were also instructions on the web on connecting (for Windows) a satellite receiver directly to the wall, and use the receiver's key card to decrypt the broadcasts directly. Like I said, it did require a special software (as well as a key card reader, of course, but that one was serial), so I don't know how easy it is going to be to run on Linux. If it would work, however, it would allow lossless reception + channel changing + lossless recording. 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: Getting a kernel's .config without running it
Ilya A. Volynets-Evenbakh wrote: │ │ image file with the script scripts/extract-ikconfig and used In my defense, the question was posted after a sleepless night. I found it myself after I scolded myself for asking a public forum without checking myself. Consider myself duly scolded :-) 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
Getting a kernel's .config without running it
Hi all, I have a kernel image that was compiled by someone else for a platform I don't own. The kernel was (probably) compiled to export its configuration parameters via /proc/config.gz. I want to get that file. The problem is, of course, that I cannot run the kernel. Does anyone know how I can extract the kernel's config without running it? Thanks, 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: UltraEdit for Linux: who wants a license discount?
Dotan Cohen wrote: Cross-posted to several lists. I'm surprised the list even allowed it through. Putting the forums in BCC is a good start, but what would work even better is if you actually posted it separately. The way you posted it makes it extremely difficult for people to answer you publicly. I suspect the only reason this was posted at all was because one of the other admins manually approved it (which I wouldn't, by the way, for the reason stated above). Enough technicalities I'm not going to buy it as I don't need it, in fact I didn't even test the betas due to university time constraints! If anyone wants my discount, just ask. But that's just the point, isn't it? Even on Windows, you rarely have to go with commercial solutions. There are free (which are free) solutions that do an excellent job. On Linux the market is even more saturated. As a point of proof - even the beta testers don't need the program. In any case, now is a good time to show the commercial viability of Linux and support UltraEdit. That sentence would have been appropriate had the people of the list decided to use UE without paying. I'm sure you don't think we would, for the sake of showing economic viability, buy products we don't intend to use, do you? This is not a cynical question. Can you provide us with anything UE does that is not available in any number of free automatically installed editors, most of which are the default text handlers anyway? I'm asking because the question of economic viability stems from demand and supply, not from spending money on ideologically buying something you don't need. In other words, it's UE that need to supply the viability, not the community. The community just needs to be willing to spend the money where the product justifies it. 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
[Job offer] Lingnu Open Source Consulting is looking for a full time Linux programmer
Lingnu Open Source Consulting is a consulting (duh!) company based in Kfar Sava. Most of our activities are doing projects for clients. Working for us means being exposed to new challenges every few months, as the tasks change. Not all of them are equally interesting, but we do our best to make all of them open opportunities for personal growth. Most of the projects are relatively short, which means that there's always the next one... Over the past year, we were involved in creating a Linux distribution for a wireless modem, adapting a build environment for unmanned airplanes, and adding Hebrew support to the HTC Magic - an Android phone. At least at the moment, the future does not seem any less diverse than our past. In addition to that, we pride ourselves in providing an almost nonsense free work environment. Our employees are there to work, not fill in forms, attend meetings, give micro-reports to the boss (me) or any of the other stuff that makes technical work less fun. We can not keep this out altogether, but we certainly do our best to keep it to a minimum. This list has at least one former employee, and a few people I've worked with, and I'm hoping they can attest to this :-) We are looking for a full time employee. Consultants and contractors need not apply at this point in time. We are looking for the following skills: * Programming experience with Linux at the Posix API level (fork, execve, dup, select etc.) * Linux kernel programming experience. * Working with the standard toolchains - gcc make are a must. automake and autoconf a definite advantage. * At least one of QT, GTK or wxWidgets. Experience in any of the following will be an advantage: * C++ and Object Oriented programming * Android development (or, failing that, Java) * Active participation in an open source project, preferably either one you didn't start or one that has over 20 users and/or over one contributer, is a definite advantage The job is customer facing. We are looking for someone with good human relations skills. The projects will, often, mean being away from the office with no direct management involvement. We are looking for autonomous person with the ability to spot what needs to be done and come up with suggestions for what to work on, and with the self discipline to carry it through. Resumes should be sent to jobs2...@lingnu.com. Thanks, 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: Hebrew support on Android
cyril scetbon wrote: Could you paste it here in English ? Will it work with a Samsung Galaxy as it said it works with htc dream and G1 ? I have had a Galaxy from Cellcom for a little while (for comparative analysis - http://blog.shemesh.biz/?p=726), and did not manage to root it (though I did not try too hard). In any case, the methods for rooting the G1 (and G2) are different than the ones used for rooting the Galaxy, so look at the appropriate forums. And let me know if you succeed Then again, if you are trying to add Hebrew, then it is likely that you are not using a Cellcom Galaxy, in which case the standard Galaxy rooting techniques may still work. Shachar P.s. Didn't like the Galaxy much. I thought its human interface (physical buttons) were poorly thought out, and the unlocking was nothing short of abysmal. It did have an excellent screen, with more vibrant colors than the G2's (HTC Magic). -- 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
Perl question: array member of referenced hash
Hi all, $ref is a reference to a hash. Hash contains a component called a which is an array. I would like to iterate all elements of said array. I would like to do something along the lines of: foreach my $elem @%$ref{a} { print $elem\n; } Which, I think it clear, does not work. I also tried: foreach my $elem @(%$ref){a} { print $elem\n; } which complains about: Bareword a not allowed while strict subs in use and: foreach my $elem @(%$ref){'a'} { print $elem\n; } which complains about: Global symbol $elem requires explicit package name at line 3 (i.e. - inside the for). Any help would be appreciated. Thanks, Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com -- 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: Perl question: array member of referenced hash
Dov Grobgeld wrote: Noam beat me to it, but here's perl solution without additional variables: #!/usr/bin/perl %hash = (a=['moo','goo','woo'], foo=3, baz=5); $ref = \%hash; foreach my $elem (@{$ref-{a}}) Hi Dov, Yes, it works. Now can you, please, explain to me why? What is the role of each bracket you used (and its location)? 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: Perl question: array member of referenced hash
Noam Rathaus wrote: Shachar, { } in Perl are casting when they surround a value And the second set of { } around the 'a' mean variable of Hash Grumble grumble grumble Okay, I'm sorry for being difficult. I really couldn't find the answer in the Perl documentation. I understand the second set of curly braces. I also, somewhat, understand that the - replaces the % (i.e. - reference dereferencing). What I'm not so clear is what the first set of curly braces do (what do you mean by casting - casting to what? How is that decided?). I'm also not clear on why the surrounding round brackets are needed. I understand they are so this will be a list context, but I don't understand why it's needed once I put a @ to dereference the array. Thanks, Shachar foreach my $elem (@{$ref-{a}}) -- 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: Perl question: array member of referenced hash
Gabor Szabo wrote: err, I don't think that casting is the right word to use here. What {} does here is disambiguates the expression. Let me try to summarize what I understood from your excellent explanation: Putting a modifier in front of a reference dereference it to the right type ($ for scalar etc.). Alternatively, putting a '-' (which is a unary operator, not a binary one) also dereferences it, no matter what it is pointing to.(at least for array and hash), so long as there is some reference to its content on the operator's right (the same as it is implemented in C++, only more confusing). The curly braces act as a scoping operator, making the $/@/% relation to parts of the expression unique. All that is left is understanding why the round braces around the whole expression. Many thanks (the explanation was very useful) 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: OT: Where does it count?
Hetz Ben Hamo wrote: My question is simple: When does the developer experience starts ticking? (I'm not talking about any specific language here). Do the years of writing those small programs/scripts count as a developer years? or does the clock starts ticking when I'm a full time programmer? Partiality of occupation is hardly a factor, but experience is. I don't have the link, (I think it was on slashdot a while back), but someone once claimed that the difference between a programmer with greatness potential and actual great programmers is X hours of experience (I don't remember what X was, but it translated to about 3 or 5 years of full time job experience). The article claimed that the same X applies to other areas too (the article used the Beatles as a primary example). My point is that in order to realize your potential in any field, you need to invest a huge amount of time practicing it. This is almost impossible to do unless you make it your full time occupation. From personal experience, I think the article's quoted X may even be a little on the low side. So, if you did mostly system tasks, but did about 10% development, you will see how, for practical reasons, that leaves very little of your actual development experience. I should point out that the article talks about greatness. Assuming you have the potential to become a great programmer, this is a requirement for becoming great actually happening. Personally, I pride myself on seeing programmers, in certain cases total novices, and saying to myself he has the potential. They are not great programmers, but you can see that with enough experience, they will be. That said, even those that do not possess the potential for greatness advance significantly with experience. At a guesstimate, about 60% of the population can become acceptable quality programmers given enough experience (of course, initially they will suck) and a supporting environment (supporting includes not accepting mediocre). Of course, most of those will quit, because programming is a horrid job to do if you don't like it, but this is just to point you as to why 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: [OT] Looking to purchase a used SCSI HD
diksbcseanbcsa wrote: Looking to purchase a used SCSI HD: Do list in your reply as many details as possible: price, size, condition, location, manufacture, model, interface. sdbsdkbc AT sdf dot lonestar dot org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il What connector type? The hot pluggable type, or the regular one? 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: Setting LANG env on Ubuntu
Diego Iastrubni wrote: On Friday 25 September 2009 00:15:40 Shachar Shemesh wrote: I don't know about Ubuntu, but in Debian these variables are set either in /etc/default/locale or /etc/environment. Also, the official way of changing those is by doing dpkg-reconfigure locales as root. On Debian/Ubuntu, dpkg-reconfigure locales is a light wrapper around localgegen (I think, I am currently on Fedora...). On Mandriva, you can install each one of those locales by an rpm instead of generating them on your machine. If you want to change the locale of your system, this is a mandatory step. However it does not change the locale. localegen doesn't. dpkg-reconfigure locales does. It does both. What I usually do (works on Debian/Ubuntu/Mandriva/Fedora) is: locale ~/.i18n and then edit ~/.i18n as needed. Here it is on my machine: [elc...@pinky ~] cat /home/elcuco/.i18n LANG=en_US.UTF-8 Okay. Not optimal, but will do. LC_CTYPE=he_IL.UTF-8 Yes, that usually complements the first. LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=he_IL.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 Unnecessary. These default to the locale if not set. LC_ALL= Dangerous. If this is set, it overrides everything else. Personally, I think setting LANG to he_IL.UTF-8, and then set LC_MESSAGES to en_US to make the interface language remain in English. And if you want it set globally, /etc/default/locale is still a better place to put these lines. 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: Setting LANG env on Ubuntu
David Harel wrote: Hi, I use Ubuntu Jaunty release 9.04. On my last attempt to update openoffice to 3.1 (from repository: http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu) I noticed that openoffice can't do Hebrew file names anymore. I also got some warnings from other tools such as digikam regarding locale settings. Digging into this problem I noticed that my LANG env is set to C: $ echo $LANG C When I set it to: LANG=en_US.UTF-8 , both openoffice and digikam were fine. I also noticed that when I login on text mode (such as ssh localhost) I get the LANG settings as expected: en_US.UTF-8 Also I just tried to update my system and I tried to remove all my dot files and I tried to switch from xfce4 to Gnome but nothing seems to resolve this problem. Any idea? I don't know about Ubuntu, but in Debian these variables are set either in /etc/default/locale or /etc/environment. Also, the official way of changing those is by doing dpkg-reconfigure locales as root. Hope this helped. 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: how to protect directory from unauthorized access under linux
Serge wrote: Hello there, In one of my projects I have to protect specific directory on linux from unauthorized access, that directory should be not accessible either in single user mode or by booting server from live cd. In the same time data must be completely open in runlevel 3. That server will run at ISP hosting farm, I can't put password on boot. Any ideas how to implement this? Thanks, Serge. Create an encrypted partition. Make sure it does not load on boot. If the server reboot, connect via ssh and enter the password. 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: I have a rabbit in my ears ;-)
sara fink wrote: I tried to translate more than once french to english. It is done badly as well. There is no way around with those machine translations. it translates word by word. Some of them do, at least. 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: hosted machine and load average
Hetz Ben Hamo wrote: So my question: What do you do in case you have the same scenario? what steps do you take to prevent things like that from happening? I would focus less on prevention, and more on diagnostics. I usually use munin (you can see a live example at http://www.hamakor.org.il/munin). It's great in that it gives you complete history of almost all relevant parameters, and you can (farily easily) add your own. As for the specific problem you are describing, assuming it repeats itself, it really depends. For example, if you look at the munin history and see the load average slowly ascending, then I would run ps and check for runaway zombies or processes. If the load average jumps suddenly, I would run cron with something that logs the top ten active processes. 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
Google forces a translation to Japanese
Hi all, One of my clients is having a weird problem, and I'm pretty much at my wit's end as for what to do about it. The site is called Tzofit (at tzofit.co.il), and is an index and publisher for Zimmers. When you search Google for צימרים the site appears on the second page, and when you search Google for צופית it is the first result. In both cases, you cannot miss it - Google displays the site's title and summary as Japanese! Now here's where it gets really strange. While the main site is proclaimed to be in Japanese, all the deep links are in Hebrew. If you ask to see the Google cache, the site appears in Hebrew. If you search for its address directly (tzofit.co.il), the site appears with correct title and summary. The only explanation I have is that this is a Google index bug. The problem is that even if that is the case, I cannot see what I can do about it. I tried to ask about it on the Google forums (http://www.google.com/support/forum/p/Web+Search/thread?tid=08c423ea40d5c1abhl=en), but, as expected, got not replies. On the other hand, I did not manage to find anything wrong with the actual page. Trying to translate the Japanese text, using Google Translate, back to English seems to show that the text translates, but is not coherent sentences. Then again, looking at the raw encoding, this does not appear to be Hebrew interpreted with the wrong encoding (or am I missing something?) If anyone has any clue, it would be much appreciated. Thanks, 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: ubuntu/debian package problem
geoffrey mendelson wrote: Ok, I did something stupid. I have two similar ubuntu systems. Noticing that some packages I need are missing on one but not knowing which ones, I did a list of them using: dpkg --get-selections installed-software Then I used grep to weed out only the installed ones, and went to the other system and entered: dpkg --set-selections installed-software Then I tried to do a dselect, which wants to delete several packages I really want to keep. Is there any way to keep those packages? Or at least find out which ones are forcing removal of it, so I can deselect them? aptitude has a reverse dependency tracking tool. You can look at a package, and ask which package X on it, where X can be, among other things, conflict. This should tell you which packages are causing your package to be removed. 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: Perpetual quest for GNU smartphone
Michael Shiloh wrote: Openmoko has departed the cellphone business and no longer makes the FreeRunner, although you can buy them and there is still very large community support. Quoth the man who has worked for them and have been burned... :-( Actually, that fact matters very little, if you think about it. If Nokia goes out of business one day after you bought one of their phones, does that matter to you? For that matter, if Nokia issue a new model of their phone, priced exactly the same as the previous one, one day after you bought your phone, does that matter to you (beyond the damn effect, of course). A cell phone is a consumer product. Once you own it, it's yours. If the Neo Freerunner is a good phone, then the fact that FIC is no longer contemplating a new version does not really matter to you. Having said that, I have moved off the Freerunner myself (except as a portable battery powered Linux machine). It had something to do with the fact that my GSM receiver stopped working, but also with the fact that it suffers the classic market pioneer syndrom - it's not very good :-(. It is bulky, heavy, has a small screen (with too high a resolution), and doesn't have a high enough battery life. It's a wonderful dream, and I still hope someone realizes it. Furthermore, the FOSS model triumphs again, in that, despite FIC not being the one to produce a completely free phone, the next one to come along and try will have a better starting position, with much more mature software to work off of. 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: Google forces a translation to Japanese
Yuval Hager wrote: Trying to translate the Japanese text, using Google Translate, back to English seems to show that the text translates, but is not coherent sentences. Then again, looking at the raw encoding, this does not appear to be Hebrew interpreted with the wrong encoding (or am I missing something?) If anyone has any clue, it would be much appreciated. Thanks, Shachar The Japanese text is not complete nonsense, like you would expect from an encoding problem. Could it be that the site was hacked in some way that presents Google bots different content from what others see? The client contacted no less than three (3) SEO specialists, with all not coming any more than It's a malware of some sort. They even recommended we hire a scanning service by one of the list's participants (which we would have, had Noam answered his messenger - in fact, Noam, please have one of your sales people contact me). What not one of them managed to do is explain how a malware can cause the Google cache to show the wrong result for some search results, and the correct one for others, nor how to make Google show the wrong summary, but the correct page in the cache. My personal opinion is that Google had a bug that crossed the index with some other site. Admittedly, that theory does not completely match up to all available evidence. For instance, if you search Google for the Japanese description in quotes, there are zero results found (then again, you also don't get Tzofit's site, which is also weird). Like I said, ideas welcome. 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: Perl slowness
Noam Rathaus wrote: I know the time difference doesn't look too bad, but take a bigger code set: Fast: real0m1.682s user0m1.584s sys0m0.064s Slow: real0m16.730s user0m9.345s sys0m0.096s These times spell CPU intensive. Does your library do anything special? If you try to import a dummy library, does this still happen? 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: Perl slowness
Noam Meltzer wrote: the time output does looks like you have higher cpu usage for some reason, so i agree with Shachar on this. you can also try to pinpoint the place the cpu is spent. strace and/or ltrace with the '-f -c' flags can help. I'm not sure about ltrace, but strace will not help. Most of the time is spent in user space, not in the kernel. Strace may help if the problem is time spent in another process (i.e. - while the main process is sleeping), but it seems Noam has already tried that one and failed to spot any obvious candidates. Shachar On Tue, Sep 8, 2009 at 5:24 PM, Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz wrote: Noam Rathaus wrote: I know the time difference doesn't look too bad, but take a bigger code set: Fast: real0m1.682s user0m1.584s sys0m0.064s Slow: real0m16.730s user0m9.345s sys0m0.096s These times spell CPU intensive. Does your library do anything special? If you try to import a dummy library, does this still happen? Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com -- 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: Perl slowness
Noam Rathaus wrote: The only obvious one is that read() shown under strace, takes a significant more time on the new machine than the old one You can split the difference between the platforms into three groups: Time spent in the kernel (0.032 seconds) Time spent in userspace (7.761 seconds) Time spent sleeping or otherwise scheduled out (7.287 seconds) strace -c goes a long way, and works very hard, to show us information that is not useful to us. It counts CPU time spent in system calls, not actual wall time. What may provide a more useful output in this case is -T, which will also count time in which the process was sleeping inside a system call (which accounts for about half the slowdown). The second half of the slowdown, the one done in user space, is more difficult to trace without the sources (i.e. - the perl sources). valgrind has a module for detecting what causes a slowdown, but I doubt Noam wants to start analyzing perl to figure out what the different areas actually mean. Shachar On Tue, Sep 8, 2009 at 5:43 PM, Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz wrote: Noam Meltzer wrote: the time output does looks like you have higher cpu usage for some reason, so i agree with Shachar on this. you can also try to pinpoint the place the cpu is spent. strace and/or ltrace with the '-f -c' flags can help. I'm not sure about ltrace, but strace will not help. Most of the time is spent in user space, not in the kernel. Strace may help if the problem is time spent in another process (i.e. - while the main process is sleeping), but it seems Noam has already tried that one and failed to spot any obvious candidates. Shachar On Tue, Sep 8, 2009 at 5:24 PM, Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz wrote: Noam Rathaus wrote: I know the time difference doesn't look too bad, but take a bigger code set: Fast: real0m1.682s user0m1.584s sys0m0.064s Slow: real0m16.730s user0m9.345s sys0m0.096s These times spell CPU intensive. Does your library do anything special? If you try to import a dummy library, does this still happen? Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com -- 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: Perl slowness
Noam Rathaus wrote: So I am stuck Did you try strace -T -f yet? Grrr Anyone with ideas on how I can understand why my packages are causing issues, while apparently, perl-provided packages such as LWP::UserAgent dont? Did you try an empty my packages^H? 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: Perl slowness
Noam Rathaus wrote: Hi Noam, 1) Both machines have 2GB of memory and are using 200Mb of it.. I think the problem is not memory So it's probably not IO either. 2) no weird errors, of any kind in the dmesg or /var/log The newer machine is very new :) I wrote 1 year, it is actually 3 months, I don't think its a hardware malfunction, but I could be wrong Can you run time on the processes on both machines, see how much CPU time they take? 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: an open phone from nokia ?
Eli Marmor wrote: Hetz Ben Hamo wrote: ... Will it be totally open? I don't think so because they have to support their DRM'd music/video which you buy, and their DRM is from .. Microsoft, but OTOH writing/porting an app to N900, is IMHO way easier then to Android/WebOS/iPhone. ... By the way, don't forget that: 1. Android is Linux. 2. WebOS is Linux (Palm left their proprietary OS). 3. iPhone is BSD. 4. ...and not only Nokia's Maemo is Linux/UNIX based While technically true, it is also totally irrelevant. When you write a phone application, you rarely interact with the kernel. Your main interaction is with the GUI. As such, which are the toolkits and what languages can you use: Neo: C/C++/Python/Anything. GUI is ETK, GTK, QT, wxWidgets or whatever. WebOS: I don't know what language (C?). GUI is Palm OS iPhone: I don't know what language (Objective C?). GUI is iPhone Android: Java. GUI is Android Windows Mobile: C, GUI is Win32ish Nokia: C/C++. GUI is QT. Of this list, only the first and the last provide you with a development environment that is the same for the phone and for you (or, at least, my) desktop. In some cases I literally run the same software on my laptop and on the phone. With Windows mobile, the framework is somewhat the same (but it is a horrendous framework to develop desktop applications with, and it's even worse for phones). Then again, after spending the past two months doing Android development, there are also advantages. On the Neo, by far the best environment to actually send and receive phone calls is QTopia, which specifically deviates from the standard your desktop is running. I have two SIMs connected to one number. With most environments, my dumb phone would ring first. The exceptions were QTopia (if the phone was not asleep while the phone call came) and the Android device, both would actually ring before my dumb phone would. In all honesty, I would rather have a phone that works than have a phone that runs my applications. I am much more worried about Android's lack of friendliness to third party applications (unless they come through the Market) than I am about the fact it is running a non-standard environment. I am sad to say that, in that respect, Windows Mobile is better. 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: an open phone from nokia ?
geoffrey mendelson wrote: My point is that while Shachar states that Windows Mobile is a better development enviornment I said no such thing! I said it was a horrible environment made even more horrid by the move to slim appliance. What I said was that it is a more open one. 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: an open phone from nokia ?
Gilad Ben-Yossef wrote: Shachar Shemesh wrote: I am much more worried about Android's lack of friendliness to third party applications (unless they come through the Market) than I am about the fact it is running a non-standard environment. What do you mean by Android's lack of friendliness to third party applications (unless they come through the Market)? I mean that anyone can develop for the android, but if you actually want to install something on the actual phone, you are up to the mercy of whoever sold it to you (unless you root it, of course, in which case even the iPhone is open). I am not sure what is required to be able to do adb install from a PC, but it certainly requires that adb be running, possibly also requires root. Without that, if it's not in the Market (approved by Google, pending a yearly fee), it doesn't exist. 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: an open phone from nokia ?
Gilad Ben-Yossef wrote: Adb is running on all phones and you don't need to be root to install applications. The Samsung Galaxy, at least as sold by Cellcom, does not run ADB by default. Even when I set USB debugging, I cannot see the phone when I do adb devices, and cannot connect to it (let alone install anything on it). More important, you can install application by simply downloading an .apk file with the built in browser, assuming you check one checkbox in the GUI settings for security purposes. I have to admit I was not aware of that option. After checking, I stand corrected. It is, indeed, possible to install 3rd party applications, fairly freely. Why Samsung (or Cellcom) decided to cripple the installation from PC is beyond me, then. Maybe they thought this will prevent people from rooting the machine (which is strange, because the rooting instructions for the device do not require adb). And last, Google does not validate apps in the market and the developer fee is one time 25$. Not exactly a big barrierr. Enough of a barrier that most of the free (of charge) applications you actually see there are various variations on the crippleware/adware models, and not so many free (speech). In other words: what you're talking about, Willis^H^HShahar? Who is this WillShahar, then? Allow me to sell you a couple of tips: * Ctrl-W erases a whole word. * My name is spelled with a c 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: an open phone from nokia ?
Gilad Ben-Yossef wrote: Shachar Shemesh wrote: Gilad Ben-Yossef wrote: Adb is running on all phones and you don't need to be root to install applications. The Samsung Galaxy, at least as sold by Cellcom, does not run ADB by default. Even when I set USB debugging, I cannot see the phone when I do adb devices, and cannot connect to it (let alone install anything on it). Not sure, but I'm guessing it might be a problem with your setup, rather then a Smasung imposed limit. Are you sure you have set up the ADB udev rules correctly? I'm connecting to other Android devices without a problem. 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: an open phone from nokia ?
Gilad Ben-Yossef wrote: Shachar Shemesh wrote: The Samsung Galaxy, at least as sold by Cellcom, does not run ADB by default. Even when I set USB debugging, I cannot see the phone when I do adb devices, and cannot connect to it (let alone install anything on it). Not sure, but I'm guessing it might be a problem with your setup, rather then a Smasung imposed limit. Are you sure you have set up the ADB udev rules correctly? I'm connecting to other Android devices without a problem. That's because the USB vendor/product properties for the Samsung are different then your HTC made ones (different vendor), which means the udev rule needs to be different. That would be true had I needed to do anything to get udev to support the HTC. As things stand, I am mounting the relevant usbfs file system with write permissions for my user, so I can mount USB devices inside my VirtualBox machines. You also need to patch the adb client soruces with the different vendor ID. My adb sources already had the Samsung Vendor ID. RTFG, for example: http://groups.google.com/group/android-developers/msg/ae589dcd4ce8810d?pli=1 Just to be sure, I made the udev change and used their binary of adb, and deviec still wouldn't show up. It shows up in lsusb: Bus 004 Device 008: ID 04e8:6640 Samsung Electronics Co., Ltd Usb Modem Enumerator but not in adb: /tmp$ ./adb devices List of devices attached Either I am missing something else (which is possible), or Cellcom did remove adb from the device. 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: an open phone from nokia ?
Gilad Ben-Yossef wrote: Not sure, but I'm guessing it might be a problem with your setup, rather then a Smasung imposed limit. Are you sure you have set up the ADB udev rules correctly? Of course not :-) All I know is that, on my setup, the HTC worked with me having to actually set up anything (and I explained before why that makes sense, based on my system), and that adb seems to be one that should work. Just to be sure this is not the udev permissions problem, I just tried running adb as root. The phone is still not visible. 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: Drupal or Joomla for Heb-Eng Site?
Chaim Keren-Tzion wrote: Which is preferred for building a Hebrew-English site, Drupal or Joomla? The management interface can be in English. I will need content and menus in He and En though. Thanks in advance. I don't know Drupal very well. Lingnu's site is built with Joomla (http://www.lingnu.com), using joomfish for the actual translations. We didn't manage to get IE6 is to support the Hebrew site (things look bad, but you get redirected to http://www.lingnu.com/ie6-not-supported.html the first time). The site has Hebrew and English mode. Each (translated) article is available as a base URL (http://www.lingnu.com/solutions.html), as well as language specific URLs (http://www.lingnu.com/he/solutions.html and http://www.lingnu.com/en/solutions.html). There were quite a few important incoming links left over from the static HTML site that was there earlier, and we managed to simply place the new, dynamic site over the same URLs as the old one (all the pages have .html extension - an SEO plugin, of course). Now for the bad news. Getting this took a lot of work. Tailoring the template to look the way we wanted, and to get it working on (almost) all browser took a lot of tweaking and work. Joomfish took a lot of getting used to, but frankly, a lot of it were bugs in joomfish that have, since, been resolved. The same goes for the SEO plugin - getting friendly URLs took some getting used to. As far as I'm concerned, I'm happy with the choice of technology, and very happy with the end result. It allows me to have some of the site bilingual, others only in English/Hebrew, and mix in static elements where applicable. Most importantly, it allows me to make changes without thinking twice about it when I need to. Hope I've helped. 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: an open phone from nokia ?
Erez D wrote: nokia is realeasing the N900 smartphone. which is using maemo (linux) as it's os. will this be a de-facto open phone, or could nokia keep it closed ? In all likelyhood, the system will be more or less open (i.e. - there will be some closed drivers), but the actual phone software will be pretty close. Then again, a port of OpenMoko (or, for that matter, android) to that phone is, likely, not far away. 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: an open phone from nokia ?
I should make it clear that my previous email was a guess based on my experience with mobile platforms. I may well be surprised yet. Having said that: Hetz Ben Hamo wrote: Also, within the last few days, they signed and sumbitted new drivers to be included in the standard kernel. The question is whether all drivers running on the machine will be open? Will I be able to compile, from scratch, my own kernel and have all hardware working? I somehow doubt it, though I would love to be proven wrong. The technology that they use is open and it's right there on your linux desktop: Xorg, gstreamer, pulse audio, bluez, telepathy, they use upstart instead of sysinit, matchbox window manager, X terminal, busybox, GLX. Yes, that is definitely the case, but how about the core services of the phone? Will it be totally open? I don't think so because they have to support their DRM'd music/video which you buy, and their DRM is from .. I'm a bit confused about that. The guy on his blog says you get simple and easy root. If I have root, what good is a DRM software, closed source or otherwise? I can always just grab the data as it makes its way to the audio driver (or connect as a debugger and grab the raw data from the program's memory, or any number of other techniques). writing/porting an app to N900, is IMHO way easier then to Android/WebOS/iPhone. I'm not sure about easier, but it is definitely running a bunch of already existing applications, and has a huge selection of Linux/Unix applications that have an easier port (assuming you don't consider the adaptation of an application to the limitations of a phone the hardest part, which I do happen to). From my limited experience with the Neo, that is a major advantage (not to mention it will natively run all applications written for the Neo, as they share 90% of the technology). 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: an open phone from nokia ?
Lior Kaplan wrote: 2009/8/29 Erez D erez0...@gmail.com: nokia is realeasing the N900 smartphone. which is using maemo (linux) as it's os. will this be a de-facto open phone, or could nokia keep it closed ? The GSM part can't be open as that's an FCC requirements. Open Moko has the same issue. The question remains, will it prevent me from compiling my own kernel? In the Neo, the GSM is a completely different unit, and therefor does not require proprietary drivers in the kernel. 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: [OT] Power over radio is it a true thing or just a myth ?
Please excuse me for answering a humorous post seriously. Gilad Ben-Yossef wrote: Despite popular belief, the speed of light is only fixed in vacuum and scientists long acknowledged the fact that light may travels in different and lesser speeds when going through different materials, such as air, or water. Again, not precisely accurate. While light will, indeed, travel slower through any material denser than vacuum, this is not what the term speed of light refers to. To the best of my knowledge, speed of light refers to a basic property of the universe (how fast will any change of any field propagate), and that is the property that goes into the time warping formulas (the famous c in Lorentz transformation). Just because light travels through glass at 30% less speed does not mean you have to aim 30% lower if you want to freeze time (unless, and this is something I'm not 100% clear about, YOU are traveling through glass as well). 88 miles per hour, it would seem, is the speed of light as it travels through Hollywood movies. At least that one seems pretty accurate. This also explains why pretty much anything looks different when viewed through the filters of a Holywood movie. The huge refraction coefficient acts like lens, only much more powerful. 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: [OT] How many dimensions? (WAS: Power over radio)
Dotan Cohen wrote: Oleg, I understood that the universe has 11 or so dimensions, and that 5 or six can even be measured. But the wikipedia article that you link to claims only 3+1. I have googled a bit but found only very technical explanations, or baby facts with no explanations. Can you sum it up for someone who is familiar with relativity, but is not a physicist? Thanks. I'll do my best as another non-physicist, and then Oleg (or anyone else) can correct me where I'm wrong. In an attempt to create a grand unified theory(tm) of everything (and rejecting, with no explanation, the answer 42), some physicists have tried the big hammer(tm) approach - i.e. - hammer on the equations until they fit. This method is not to be put down, as it allowed Lorentz to phrase his Lorentz transformation even before Einstein came around and provided a relatively simple (excuse my pun) explanation for the why. In particular, the modern hammerists came up with strings theory. It is an extrapolation of existing theories, designed to encapsulate all known to be somewhat true theories about the universe (in particular, general relativity on the one hand, and quantum mechanics on the other). Strings theory does, indeed, claim that the universe has 12 dimensions. Here's the catch. Strings theory is so generic, that it fails to supply one of the basic requirements of any scientific theory. It fails to provide predictability. Any scientific theory must come with an experiment that is possible to perform (at least theoretically), with certain outcomes being agreed to mean that the theory is disproved. If a theory cannot supply such an experiment, it means that any possible outcome of any possible experiment is okay with that theory, and this means it lacks any ability to actually predict the outcome of yet unperformed experiments. Such a theory may be fine for philosophers, but is useless to scientists, and in particular, to physicists. And yet, it seems that strings theory is very far from useless. Strings theory has garnered support, and more importantly, research grants, and have occupied the time of our bests physicists around the world, with nothing concrete to show for it but the money well spent. It is trendy, and has been for quite some time now, but, at least as far as I'm concerned (and unless I am totally misunderstanding the situation, which is possible), it is not physics. People like it because of its potential, but this potential, after over a decade of research, has failed to materialize into something you can try and disprove. 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: [OT] Power over radio is it a true thing or just a myth ?
Oleg Goldshmidt wrote: In particular, when you travel close to the speed of light you emit mostly in the forward direction, not isotropically... I didn't know physics dealt with gastro functions. 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: [OT] Power over radio is it a true thing or just a myth ?
Erez D wrote: AFAIK, according to general relativity, the world is 4D. according to string theory, there are more dimensions ... I think we have enough flame wars over FOSS matters. Let's not go into strings, as that would not only be a flame war, but an off topic one at that. 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: [OT] Power over radio is it a true thing or just a myth ?
Erez D wrote: On Tue, Aug 25, 2009 at 11:56 AM, Shachar Shemesh shac...@shemesh.biz mailto:shac...@shemesh.biz wrote: Erez D wrote: AFAIK, according to general relativity, the world is 4D. according to string theory, there are more dimensions ... I think we have enough flame wars over FOSS matters. Let's not go into strings, as that would not only be a flame war, but an off topic one at that. i agree this is OT (the whole thread is), but i do not think this is a flame war. the string theory includes both quanum and relativity theories. as is, relativity is a subset of string, as the linux kernel is a subset of ubuntu. so its like talking about a flame war between ubuntu and the kernel. (i added this reply just to put some oil in the flame war engine, yala makot ;-) And I'm refusing to go there. 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: [OT] Power over radio is it a true thing or just a myth ?
Michael Vasiliev wrote: The power of the signal is inversely proportional to the square of distance. That is not precisely accurate. An undirected point source of EM radiation (or any other type of energy) transmits energy that expands on a sphere from the point of transmittal. The surface area of the sphere expands proportionally to R^2. Therefor, the law of conservation of energy dictates that the energy received over a constant area receiver (say, a 1 cm^2 energy receiver) will decline proportionally to the square of the distance from the transmitter. As a side note - does that prove that our universe only has three dimensions? However, if our transmitter is directional, and you keep the transmitter beam focused, so that it does not expand, there is no reason for the energy to almost not discard at all. Of course, the medium through which you transmit the energy may absorb some of it (assuming it is not a vacuum), and it may disperse some more of it, but there is no reason to get 1/R^2, or even 1/R. 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: [OT] Power over radio is it a true thing or just a myth ?
Oleg Goldshmidt wrote: I'll bite - it's OT, but too much fun to skip... ;-) 2009/8/24 Shachar Shemesh shac...@shemesh.biz: As a side note - does that prove that our universe only has three dimensions? Technically, no, though many philosophers (as opposed to physicists or mathematicians) will say it does. The number of dimensions does not follow from R^-2, but if you live in a 3D world then R^-2 follows... ;-) I read the link you gave, but have not found why it does not prove it. The closest I got (which was not stated) is that if N3 for our universe, then the laws of physics are much more complex than what we know. It seems very clear that if the laws we know are a close approximation of the real laws of physics, then the only explanation to the experiments we are conducting is that the world only has 3 physical dimensions. 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: [OT] Power over radio is it a true thing or just a myth ?
Oleg Goldshmidt wrote: On Mon, Aug 24, 2009 at 5:21 PM, Shachar Shemeshshac...@shemesh.biz wrote: I read the link you gave, but have not found why it does not prove it. You will, I hope, agree with me that the fact that you have not found it there does not actually mean that R^-2 = N=3... ;-) All I said was that if you assume N=3 then you get R^-2, but this does not mean that the reverse is also true. You state that, and then you delve on to prove the opposite. You lost me. The way I know science, we have: - A mathematical model saying that neither galaxies nor atoms are stable if N!=3 - Empirical evidence that both galaxies and atoms are stable The way I know how science works, pending further changes in the whole way laws of physics are understood (but it would have to be a pretty fundamental change, that pretty much scraps everything and starts from scratch), we can say that the Universe is three dimensional. Being as it is that the above is as close to certainty that any physicist might hope to get (make that - any scientist), it is usually phrased it is proven that the Universe is three dimensional. 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: Suggestion for a webmail application with good Hebrew Support
Danny Lieberman wrote: You feel more secure DIY (and are probably factually less secure) I feel more secure with Google Apps (and are probably factually more secure) I like the way you give your opinion, and then back it up by your opinion of how things are. People don't leave space for the possibility of being wrong. More to the point, security is a multi-facet problem. You worry about your server being broken into and third parties listening in on your email, and therefor decide that Google will likely do it better. It's a legitimate choice, but it is very far from being the only consideration, or even the only conclusion. Myself, I worry more about third parties having access to my data, and that includes Google themselves. Your claimed price of zero disregards certain costs. For example, you do not count the cost in loss of privacy and the cost of having your emails available for parties to summon from Google using the court system without your knowledge. Obviously, these may not be concerns for you, and as such, may not be something you count as cost. That is fine, so long as you do not have the hubris to claim that this applies to everyone. 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: Suggestion for a webmail application with good Hebrew Support
Danny Lieberman wrote: Shachar, Geoff b) the threat probability of one of our operations getting a US court injunction is so low that I don't even bother with security countermeasures. OTOH - the threat of dos/web defacing/site downtime/poor response time is high enough that we considered and eventually deployed outsourced services for messaging and hosting. We use slicehost, rackspace.com http://rackspace.com and Google Apps. Dev servers are inhouse. Your threat level rises significantly when you use free services. If you are going to be using Google's services for your business, my recommendation is that you find a route in which you pay them for it. The logic is that by paying them, you are creating accountability of them to you. Many of the privacy concerns diminish significantly as a result. I'll add that, specifically with Google, the amount of concentrated cross-referencable personal info is what bothers me the most. Apropos - My personal estimate is that the probability of a privacy breach is higher in the Israeli Ministry of Defense than in GooglePlex. Not when my own servers are involved. At least not without my knowledge. d) We deploy security countermeasures to protect assets: 0) We don't use Google docs, Never. So you are, essentially, saying that you agree with me to a degree, but don't go quite as far. 3) we physically destroy hard disks (it's fun...) That I'm curios about. What do you specifically do to destroy the hard disk? The way I see it, either you believe that recover seven generations is not possible (like some do), in which case just do dd if=/dev/urandom of=/dev/sdb followed by dd if=/dev/zero of=/dev/sdb (or just settle for the later), or you believe that it is possible, in which case the only solution I know of is melting the drive's plates. Personally, I don't have any way to do the later, so I just do the former and hope that my attackers don't have the $100K+ it allegedly requires to recover the data. 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: Suggestion for a webmail application with good Hebrew Support
Danny Lieberman wrote: 3. Use a 10kg hammer. We have clients that insist on physical destruction of the data disk after a network surveillance. Do you, at least, FIRST run the dd? I'm sure you realize that recovering data from a disk that got only the 10KG hammer is much easier (and cheaper) than recovering data from one that got only the dd treatment. As an added bonus, you just marked that disk as interesting by physically destroying it :-) Personally, I think the best solution for anyone who cannot afford to physically melt the disk platters is to dd the entire disk, and THEN GO ON USING IT for another project. 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: Suggestion for a webmail application with good Hebrew Support
ronys wrote: Note that if you're going to dd, at least use if=/dev/urandom. Running dd several (10) times is best (or using shred(1), which does the same). Rony I am familiar with the urban legend. From what I read about the technique by which you reconstruct older generation data, I'm not sure it would make that much of a difference. 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: Suggestion for a webmail application with good Hebrew Support
Amos Shapira wrote: 2009/8/18 Danny Lieberman dan...@software.co.il: d) We deploy security countermeasures to protect assets: 0) We don't use Google docs, Never. 1) None of our really sensitive assets are on Google Apps and that includes Calendar and Mail So what's left from your use of Google? BTW - do you (the plural you to the entire list) consider mail hosting by other companies besides Google as more secure? In most aspects, yes. First, another provider will likely be a smaller target (security by anonymity). Second, another provider are not cross linking your emails with other things they know about you. Granted, that's mostly because they don't have that other info, but whatever the reason - it works. As for traditional security - Google's extra size is a mixed blessing. I wouldn't work with someone small using a tailor made solution, but someone using a standard solution is likely, in the long run, to provide comparable security level to those Google provide (theoretical more chance of being vulnerable is offset by less chance of being exploited). 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: Suggestion for a webmail application with good Hebrew Support
ronys wrote: Hi Shachar, 'urban legend' may be a bit strong. The reference I had in mind was http://www.cs.auckland.ac.nz/~pgut001/pubs/secure_del.html http://www.cs.auckland.ac.nz/%7Epgut001/pubs/secure_del.html which is a bit dated (circa 1996, plus a couple of undated epilogues), but still an interesting read. Of course, if you're going to keep sensitive data on magentic media, it's *much* easier to use an encrypted partition (e.g., dm-crypt http://www.saout.de/misc/dm-crypt/ or TrueCrypt http://www.truecrypt.org/) and securely destroy the keys. Rony Thanks. That seems like an excellent resource (with reasoning, unlike what I'm used to :-). I haven't delved into it, yet, but its description of how the drive actually writes data to the disk differs dramatically from what I remember described the last time I saw a description of the recovery process (it claims the 1 and 0 are merely encoded as magnetic polarity, while I remember them being modulated on a sine wave). Which it actually is, I'm not sure, but the reasoning your article states for using random data (create as low a frequency as possible given the disk's RLE) is negated if the data is actually modulated. Unfortunately, I have lost track of my previous source, but pending further analysis, I'm willing to retract my definitive claim that needing to use random data is an urban myth. 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: Suggestion for a webmail application with good Hebrew Support
Danny Lieberman wrote: Mike To set the record straight - my comment about preferring Google Apps mail/calendar related to a fairly innocent question by Yonatan regarding the allternatives to Squirell Mail etc for Hebrew support. Then lets, do, return to the original question. Does gmail know how to send email where paragraphs are marked as RTL? In fact, can it send any HTML mail at all? 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: [YBA] Freescale i.MX27 project
Jonathan Ben Avraham wrote: Hi Shachar, Without knowing the details... You don't need any more details, you hit the nail on the head. The question is, who would take such a project? Actually, that's an easy one. Assuming the penalties are capped by the amount you are supposed to receive (i.e. - you do not end up owing them money), someone who wants to build up their resume and without a likely source of income for the coming five weeks can actually turn a profit on this job, whether he makes it on time or not. The profit is, of course, non-monetary. Sure, the client is receiving an inexperienced contractor where what they need is a really really experienced one, but GIGO[1] applies. Who knows, some of the inexperienced guys are really really talented. They may actually pull it off. Shachar [1] - Garbage in, garbage out. -- 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: [YBA] Freescale i.MX27 project
sammy ominsky wrote: On 13/08/2009, at 09:04, Jonathan Ben Avraham wrote: The customer is looking for someone who can a commit to doing the board bring-up process, write the BSP and set up a BusyBox distribution with Qt libraries within five weeks, with significant penalties for late delivery. Are there significant bonuses for early delivery? Without knowing the details, or anything else about the project or the client, here is what my experience says will happen to anyone brave enough to submit a quote. This typifies my belief that some clients put up money saving requirements that end up shooting themselves in the foot. The client is, likely, working under the following constraints: * They just received the devices from manufacturing, and need to have the board brought up as soon as possible * They are living under an external deadline. They cannot extend the five weeks deadline because it is a deadline to them. This is either a similar contract with their customer, or an investor who is impatient to see whether he wants to pull his money, or any such similar circumstances. * Engineer looks at the task to be done, says well, 90% of it is just duplicating what has already been done for the Freescale development board, so it shouldn't be a problem. * Client then says hey! let's outsource the risk instead of just the work. Any reasonable contractor will perform the following calculation: * There are a huge number of unknowns about this work. You can never tell how much is based closely, or what horrendous bugs you will find in the drivers once you start. I was once involved in a project (along with TkOS) where the board was based closely on the versatile platform. The project was a 9 months project that included a lot more than merely bringing up the board, but seven months into the project board bringup tasks were still being performed. * As a contractor, if I'm going to accept the client's risks, I need to be rewarded. In statistical terms, the expected value must be positive. If the project is at a loss if I am late, it must be really really profitable if I'm on time, or else there is no point in taking it up to begin with. As a result, the quote is typically high. Very high. In addition, the contractor obviously states that all times are from the point where an order is issued. The client is surprised. They usually don't understand that it was their penalty requirements that drove the price up. After all, this is supposed to be a simple project, merely performing adaptations to an already brought up platform, over in five weeks. As a result, it takes a few days, maybe even a week, to approve the quote (usually demanding that the price become lower). As far as the contractor is concerned, this week is not counted toward the delivery date, but since the client is constrained by external deadlines, as far as they are concerned, it does. The result is that the project is late, the client AND the contractor start disgruntled at the other side's unreasonable behavior, and all sides lose. Here is what could have been done to make things better. The client issues a request for a project at cost+, asking for a discount on the hourly rate in exchange for a significant bonus in case the project is delivered on time. Mathematically speaking, this offer is identical to the above offer, but as it is phrased in positive rather than negative terms, it is much easier to approve. This, of course, means that it can start much earlier, and have a better chance of succeeding. 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: [YBA] i4i vs MS?
Jonathan Ben Avraham wrote: My dearest fellow list members, Can someone explain to me what the i4i-MS tiff is about? Do i4i's patent claims regarding their XML technology affect other uses of XML besides MS Office? That is, on this issue should we be backing MS? I have not gone into the details of the controversy, but the heading seems outrageous. i4i claims that MS's using XML to describe documents violates its patents. Unless we are talking some soooper eelite technology, this seems like a junk patent, in which case, yes, we should be backing MS (for all the good that will do them). 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: [YBA] i4i vs MS?
Danny Lieberman wrote: the judge wants to forbid MSFT from selling Word in the US on grounds of a patent-infringement that cannot be proved to protect a company that relies on Word to sell it's product. I think the injunction is really ludicrous. The rule of late was that preventing a software house from selling its software because of a yet unproved claim does not satisfy the balance of damages. For example, it is quite clear that i4i cannot afford to compensate Microsoft for its true damages if should MS comply with this injunction, but then prevail in the actual case. The damages to Microsoft would be in the billions, and I doubt i4i has that much. On the other hand, if the injunction were not given, and i4i prevails, it is hard to imagine a situation in which MS will not have the money to compensate it. The whole setup seems utterly ridiculous. And yet, we cannot seem to draft Microsoft to the anti-software patents camp. Despite the fact that their loses to silly patents over the years far outweight their gains from them. Amazing 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: [YBA] i4i vs MS?
geoffrey mendelson wrote: On Aug 13, 2009, at 12:31 PM, Shachar Shemesh wrote: And yet, we cannot seem to draft Microsoft to the anti-software patents camp. Despite the fact that their loses to silly patents over the years far outweight their gains from them. Amazing With all due respect what amazes me is that you believe that. Can you offer any objective proof? Where has Microsoft's junk patents given them any money? Unless they are using extortion (possible) to quietly threaten potential FOSS defecties away, that is. They are not selling those, and they have never sued anyone (well, one). It also seems that not many are taking their threats too seriously - we did not exactly see the FOSS world grind to a halt, after all. If they are not making much money off their silly patents, and they are losing, then their loses outweight their gains. totally irrelevant stuff deleted. 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: [YBA] i4i vs MS?
Danny Lieberman wrote: Geoff Let's not mix the FOSS movement, politics, emotion or opinion with economics. The simple economics are that for the entire software industry - the cost of software patents far outweighs the economic benefit unlike the pharmaceutical industry. The cost == cost of writing, issuing, enforcing and licensing! Don't forget that one. The benefit == increased revenue to the company 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: partition full (or not)
shlomo solomon wrote: I´m getting disk full messages on /var. According to df, the / partition (/dev/sda1) is full, but du shows about 90% free space. Kdirstat also shows 90% free. I tried booting from a live CD and the partition is only about 10% full. Any ideas what´s going on here and how to fix it? Was the partition still full after you rebooted the device? df gives data on how much space is actually in use. du, on the other hand, only reports space that is reachable from the directory structure. If, for example, you had a program that kept a huge file open, but unlinked from the file system, that would completely explain the scenario you report. Of course, if that's the case, the reboot you did in order to run the live CD should have freed that space, and so you should see the problem resolved by now. If the problem persist (i.e. - disk is full from the system but free from live CD), run lsof to check who is keeping files open on the partition. Shachar here´s a partial listing for df: [solo...@shlomo1 ~]$ df FilesystemSize Used Avail Use% Mounted on /dev/sda1 15G 15G 40M 100% / /dev/sda6 495M 47M 448M 10% /boot and here´s a partial listing for du: [solo...@shlomo1 ~]$ du -x -c / 14M /bin 0 /dev 4.0K/etc/hp snip snip snip 512 /data4-music 1.3G/ 1.3Gtotal -- 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: Sending servers TO the US
Amos Shapira wrote: Hello, This will sound dumb to most of you but I'm not in Israel so my situation might be different. Does anyone here has experience sending servers (e.g. Dell PowerEdge 860 rack-mounted) TO the US? We have an opportunity to buy a few second-hands on a bankruptcy fire-sale and wonder how much would it cost (tax-wise) to just pack them with me when I visit there later this month. The sale closes tomorrow. Thanks, --Amos Yes, I did this once. It was a Sparc machine that we installed in Israel, and then I took with me to the US to be installed. When we arrived I approached the first customs officer and told him about it. He asked whether he could worship the Sun (did a couple of actual bows - jokes by a customs officer were so outside of my field of experience that I totally failed to get the joke), and then waved us through, and that was it. Of course, that was pre-9/11. 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: Sending servers TO the US
Noam Rathaus wrote: Shachar, You are talking about taking a server with you when you fly to the US He is refering to shipping it with a courier like UPS and FedEx Read his email again. In particular, the line that says: 2009/8/10 Shachar Shemesh shac...@shemesh.biz: ... and wonder how much would it cost (tax-wise) to just pack them with me when I visit there later this month. 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: Trying to understand multicast packet IP routing - why src IP address affects reception ??//
I'll just point out that my Multicast understanding is a bit tenuous. Lev Olshvang wrote: Evening all, But if I change the interface IP address to other network, these packets are ignored at IP layer (data link layer got it since RX count is running according to ifconfig ) I have tcp ip forwarding set to 1 and application sets multicast socket option to join the multicast group. Did you change the IP address after the socket is up? Multicast needs to perform some handshaking before it can start sending data, and this handshake might be done only at the start. Also, I would start the debugging by running a sniffer and seeing whether the packets actually leave the machine, and if so, with what destination MAC address. 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: [OT] do web page redirects keep google ranking?
Or Czerninski wrote: Hi, Here you can find the entire process, step by step: http://googlewebmastercentral.blogspot.com/2008/04/best-practices-when-moving-your-site.html Eeww, top posting... One important note beyond the link Or gave is to stress the 301 part. All of the 300 codes are redirects, and the article does not put a big enough stress on this point. 301 means permanent redirect. If the RFC is to be believed, this means the request can be cached, bookmarks may be automatically updated, and anything else that needs to take place (i.e. - updating the search engine page rank) to facilitate the change. The URL is never coming back. The most common way to produce redirects in Apache is mod_rewrite. The problem is that mod_rewrite produces 302 (found elsewhere). This code is for temporary redirects. The redirect may not be cached, bookmarks must not be updated, and in any other sense the pointer that led you to the original URL must still be considered valid. Understandably, Google will also not assign the previous page's rank to the new address, as the relocation is not considered permanent. In mod_rewrite, to achieve 301 codes, either add [permanent] to the end of the rule, or [R=301]. 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