Re: Introduction
Hey Mark, Welcome :) I'd consider the "technical" capabilities of DORA as modern "best practices" for software development (open source or otherwise). See here https://www.devops-research.com/research.html#capabilities Best, On Thu, Jan 13, 2022, 12:12 Mark E. Fuller wrote: > Hi all, > > sorry if I failed to do this earlier - I thought I had already > introduced myself, but based on a few recent conversations in seems that > I likely did not. > > I'm Mark Fuller (fuller or mefuller most places), an Oleh Hadash (May > 2021) from the US via way of Germany. > I presently work as a postdoc at the Technion doing research on > combustion and fuel chemistry. I've primarily been an experimentalist, > but have gotten much more into software development and scientific > computing having long been the only guy in the lab who used Linux or > could do data analysis with more automation that copy-pasting in Excel. > I'm a long-time Linux user and FOSS enthusiast (first used Debian at > university in 2006) and I have been part of the Fedora Project since > 2010 where I have done some translations (German), and am just now > getting into packaging. > > I'm very much looking to continue drifting professionally and > learn/apply more lessons about good development practices to the > scientific software to which I contribute, since much of it is pretty > rough around the edges. > > Regards, > fuller > > -- > Mark E. Fuller, Ph.D. > HaShikma 19, Apt. 24 > Nesher 3681219, Israel > +972 (0)53-872-6579 > +49 (0)1577 1848188 > +1 401-214-4266 > mark.e.ful...@gmail.com > mark.e.ful...@gmx.de > ful...@stossrohr.net > @fuller:one.ems.host > https://www.stossrohr.net > PGP Fingerprint: 73F1 A30C BDF4 DB4B C75F FD0F D599 E76C FFCA BF60 > > ___ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: כריכים
On Mon, Oct 29, 2012 at 5:00 PM, Nadav Har'El n...@math.technion.ac.ilwrote: On Sun, Oct 28, 2012, Maxim Veksler wrote about Re: כריכים: If sandwiches are promised I'll be as well. Lucky he didn't make that mistake on Facebook! Check out http://forum.phillyd.tv/discussion/5931/facebook-party-gone-wrong A girl wanted to invite her friends to a small party, which she accidentally sent to everybody on facebook resulting on 30,000 (!) people coming to the party, starting riots and ending with 20 people being arrested for vandalism and looting. Hope this doesn't happen at your tuna-less party ;-) Reality takes inspiration from the movies :) http://www.imdb.com/title/tt1636826/ Same story as Anonymous and V for Vendetta. -- Nadav Har'El| Monday, Oct 29 2012, 13 Heshvan 5773 n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |How long a minute depends on what side of http://nadav.harel.org.il |the bathroom door you're on. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: כריכים
If sandwiches are promised I'll be as well. 2012/10/28 Jonathan Ben Avraham y...@tkos.co.il Yes but looks delicious! Maybe I'll show up. - yba On Sun, 28 Oct 2012, Shahar Dag wrote: Date: Sun, 28 Oct 2012 14:47:36 +0200 From: Shahar Dag d...@cs.technion.ac.il To: 'IGLU Mailing list' linux-il@cs.huji.ac.il Subject: RE: כריכים Sorry I don't know how I made such mistake Shahar From: linux-il-boun...@cs.huji.ac.il [mailto:linux-il-bounces@cs.** huji.ac.il linux-il-boun...@cs.huji.ac.il] On Behalf Of Shahar Dag Sent: Sunday, October 28, 2012 2:22 PM To: 'IGLU Mailing list'; 'Deansec' Subject: כריכים Importance: High לינוי ובלה שלום בבקשה תזמינו ליום שלישי ב 12:30 כריכים לסמינר של יוסי שיערך בחדר 235. תזמינו כריכים ל 20 איש, אבל בבקשה אל תזמינו טונה. (בפעם שעברה זה היה מצוין) תשתמשו בתקציב של המעבדה, תקציב מוסדי מספר 7200438 תודה שחר -- EE 77 7F 30 4A 64 2E C5 83 5F E7 49 A6 82 29 BA~. .~ Tk Open Systems =}**ooO--U--** Ooo{= - y...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: sponsorship?
On Sun, May 29, 2011 at 8:16 PM, Omer Zak w...@zak.co.il wrote: On Sun, 2011-05-29 at 12:50 +0300, amichay p. k. wrote: Even if we don't find a company willing to finance the visit we can definitely raise funds for this purpose. By the way, if Israel would pay for the visit I demand that he will not give a talk for the Palestinians. NO WAY! WE SHALL NOT STOOP TO THE PALESTINIANS' LEVEL! I agree with those who suggested to raise funds to cover Stallman's transportation costs in lieu of the Palestinians, and then let him lecture also to the Palestinians - no strings attached. Our issue is one of the academic boycott, not of petty monetary quibbles. I must comment as I haven't seen this email getting enough attention: NO WAY! We should not try to limit actions that we originally oppose to being implemented on us. I 100% share Omer's view on the subject and would like to remind people here that actions speak launder then words and this topic small as it might be could mean great deal in public opinion regrading Israel the Palestinians. If we end up funding Dr Richard Stallman trip great, if he chooses to give his speak in the Palestinians authority as well as Israel - Excellent, both can profit. On and 1 final note, has anyone considered the option of funding the trip together? Creative idea: Israel and the original Palestinians sponsors to share the financial load... Maxim. --- Omer 2011/5/29 Hetz Ben Hamo het...@gmail.com Hi, I just read this morning that Richard Stallman will not come to Israel due to pressure from the Palestinians who sponsor his visit. You can read it here: http://www.calcalist.co.il/internet/articles/0,7340,L-3519167,00.html?dcRef=ynet My question: I'm pretty sure that hotel + ticket is not such a huge price. Is there any company that can sponsor his visit, so we might actually see mister Stallman here after all? -- Linux Mint is insecure by design as it won't accept contributions (bug reports) from Israelis who choose to defend themselves against suicide bombers: http://eclelef.blogspot.com/2009/05/palestine_03.html My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html ___ Discussions mailing list discussi...@hamakor.org.il http://hamakor.org.il/cgi-bin/mailman/listinfo/discussions ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: IPv6
On Fri, Feb 4, 2011 at 10:33 AM, geoffrey mendelson geoffreymendel...@gmail.com wrote: On Feb 4, 2011, at 10:09 AM, Uri Even-Chen wrote: I have websites and domain names, but currently I think they work with IPv4 and not IPv6. Will they change them to IPv6? Will I have to change DNS settings for my domain names? And when will this happen? Possibly never, but at least for a long time. The current DNS system is IPv4 only, but serves both IPv4 and IPv6. If you have your DNS set up to include IPv6, the information will be available, but the client needs to be able to interpet it. Since BIND is open source software, nothing is preventing you or anyone else from adding IPv6 support to it. Eventually someone will do it, and 100% IPv6 networks will become possible. To clarify some misconceptions: Bind IPv6 is in working condition. Further more, it is production ready as demonstrated by this article http://www.debian-administration.org/article/655/Running_IPv6_in_practice ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
[JOB OFFRE] EyeView is looking for an exceptional Java Developer / Architect
Hi everyone, We do (in no particular order) Cloud, MR, Agile, NoSQL, GAE, CI, Scrum - Generally speaking it's the right time to join. Thanks, Maxim. == EyeView (www.eyeviewdigital.com), a promising Israeli start-up with development in IL and sales in NY, is looking for an exceptional Java Developer / Architect to lead the server side development effort. The company is backed by leading VCs and Google’s CEO. The developer will have key impact on EyeView’s innovative video technology which is implemented by the largest video publishing sites worldwide. Position Requirements: 4-6 years of Java development experience, with emphasis on highly scalable environments 3-5 years of experience with SQL (MySql, Sql Server) Very strong Linux skills - at least 4 years of hand-on experience B.Sc. in Computer Science from a leading university (or Mamram graduate) Experience building Cloud-based (aws) systems – Advantage Experience building NoSql-based systems – Advantage Experience developing in Python – Advantage Experience working in Scrum - Advantage The applicant must: Be highly motivated and self driven Be able to work in a fast-growing and dynamic environment Have a sense of humor Please send resumes to: jobs-...@eyeviewdigital.com (or directly to me) ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
How to enable ICMP ECHO but still protect against ICMP DoS attacks? [WAS: Are ICMP packets not important for a hosted machine?]
Follow up question: ICMP can be used for DoS. Cool. How does google battle with that? All google services are ping'able (which is very cool obviously). How do they protect against the attack?, surly there are enough script kiddies that constantly try to DoS Google. 2010/10/19 shimi linux...@shimi.net See inline, On Tue, Oct 19, 2010 at 7:23 PM, Ron Varburg linux...@hotmail.com wrote: A Hosting service is blocking pings from the Internet to the hosted servers. It is possible to ping from the hosted servers to anywhere on the Internet, assuming that the packets are not dropped somewhere else, ofcourse. 1. Why would the hosting service bother with such a blockage? Mitigating some of a Denial Of Service attack. If a machine replies to ICMP Echo DoS attack, it doubles the amount of traffic it has to handle. Since blocking ICMP Echo has no actual effect on any other thing beside of checking if a machine is alive, they believe the benefit of not participating in a DoS attack outweights the lack of ability to ping-test the machine. (not to mention that it may be filtering just *some* of the ICMP Echo packets, and may be responding to ICMP Echo if sent from a limited set of IPs (for example a monitoring machine and/or the sysadmin's IP pool...) 2. Is it reasonable to assume that more ICMP packets are blocked? Yes, many people block ICMP alltogether, not realizing that ICMP Echo and ICMP Echo Reply are not the only type of ICMP messages, and just block any IP packet that has ICMP in it. 3. What are the implications of such a blockage? In particular, assuming that each hop in a random path takes care to assure connectivity to any nearest hop, one might think that ICMP packets are not important and hardly used. The annoying ones: PMTU[1] breaks. If any router / medium in the middle cannot support the client/server MTU (typically - 1500), and a packet with the DF[2] flag is sent, it will be dropped silently and the sender wouldn't know, and re-transmit the packet until the connection times out and dies. The less annoying but non-too-interfering: If a router on the way filters the packet due to some policy, or that some router on the way has a dead link for the next hop, no ICMP notifying that the host/net is unreachable will reach the client; Instead of immediately knowing that it can't connect (and with a pretty good explanation on why), the client would simply try to re-send a SYN packet over and over again, until it gets into timeout state. Hope I didn't miss anything :) HTH, -- Shimi [1] http://en.wikipedia.org/wiki/Path_MTU_Discovery [2] Don't Fragment. See http://en.wikipedia.org/wiki/IP_fragmentation ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
What's up with Bezeq ? Can people please try the following:
Hi, Something very strange is going on these days with Bezeq ISP network. I seem to be unable to reach appspot.com while appengine.google.com works just fine. Both of these services are available: http://tools.pingdom.com/?url=appspot.com http://tools.pingdom.com/?url=appengine.google.com Can people please try these following with your connection and report back. Could you mention what ISP your connected with? **NOTE: This will reveal you IP address** wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/.*$//' 84.108.229.170 wget appspot.com --2010-10-18 08:27:48-- http://appspot.com/ Resolving appspot.com... 173.194.36.141 Connecting to appspot.com|173.194.36.141|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2010-10-18 08:27:49 ERROR 404: Not Found. tracepath appspot.com 1: maximveksler-desktop 0.147ms pmtu 1500 1: 192.168.1.1 1.039ms 1: 192.168.1.1 1.093ms 2: 10.227.160.1 9.835ms 3: bzq-115-189-145.static.bezeqint.net 27.992ms asymm 6 4: bzq-115-189-145.static.bezeqint.net 11.124ms asymm 6 5: bzq-179-73-242.static.bezeqint.net 11.611ms asymm 11 6: bzq-179-124-165.static.bezeqint.net 13.540ms asymm 8 7: bzq-179-124-138.static.bezeqint.net 16.537ms asymm 9 8: bzq-25-116-157.static.bezeqint.net 10.893ms asymm 11 9: bzq-25-116-158.static.bezeqint.net 20.788ms asymm 10 10: bzq-25-95-209.static.bezeqint.net13.101ms asymm 9 11: bzq-179-124-181.static.bezeqint.net 17.586ms asymm 8 12: bzq-179-124-150.static.bezeqint.net 11.194ms asymm 9 13: bzq-219-189-14.cablep.bezeqint.net 786.081ms asymm 11 14: no reply 15: no reply 16: no reply 17: no reply 18: no reply 19: no reply 20: no reply 21: no reply 22: no reply 23: no reply 24: no reply 25: no reply 26: no reply 27: no reply 28: no reply 29: no reply 30: no reply 31: no reply Too many hops: pmtu 1500 Resume: pmtu 1500 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: What's up with Bezeq ? Can people please try the following:
Hmmm, thanks but I meant to try to reach the servers using your connection. Pingdom seems to be working fine but I don't know what IP they resolve too. Them issue seems to be resolved now, can it really be that it was a Google issue? Note the following: This was the DNS resolution I was getting during the failure (Note: DNS = 8.8.8.8 = Google) maximveks...@maximveksler-desktop:~$ dig appspot.com ; DiG 9.7.1-P2 appspot.com ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 62314 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;appspot.com. IN A ;; ANSWER SECTION: appspot.com.300 IN A 173.194.36.141 ;; Query time: 111 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Mon Oct 18 08:41:32 2010 ;; MSG SIZE rcvd: 45 maximveks...@maximveksler-desktop:~$ wget appspot.com --2010-10-18 08:42:15-- http://appspot.com/ Resolving appspot.com... 173.194.36.141 Connecting to appspot.com|173.194.36.141|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2010-10-18 08:42:16 ERROR 404: Not Found. Now, I'm getting: maximveks...@maximveksler-desktop:~$ dig appspot.com ; DiG 9.7.1-P2 appspot.com ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 49059 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;appspot.com. IN A ;; ANSWER SECTION: appspot.com.300 IN A 209.85.229.141 ;; Query time: 150 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Mon Oct 18 08:55:33 2010 ;; MSG SIZE rcvd: 45 maximveks...@maximveksler-desktop:~$ wget appspot.com --2010-10-18 09:02:25-- http://appspot.com/ Resolving appspot.com... 209.85.229.141 Connecting to appspot.com|209.85.229.141|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://appengine.google.com/ [following] --2010-10-18 09:02:25-- http://appengine.google.com/ Resolving appengine.google.com... 173.194.36.100 Connecting to appengine.google.com|173.194.36.100|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://www.google.com/accounts/ServiceLogin?service=ahcontinue=https://appengine.google.com/_ah/login%3Fcontinue%3Dhttps://appengine.google.com/ltmpl=aesig=c24697718eec1be75b7ab8f8a0c02416[following] --2010-10-18 09:02:26-- https://www.google.com/accounts/ServiceLogin?service=ahcontinue=https://appengine.google.com/_ah/login%3Fcontinue%3Dhttps://appengine.google.com/ltmpl=aesig=c24697718eec1be75b7ab8f8a0c02416 Resolving www.google.com... 173.194.36.104 Connecting to www.google.com|173.194.36.104|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 13854 (14K) [text/html] Saving to: `index.html.3' 100%[==] 13,854 --.-K/s in 0.1s 2010-10-18 09:02:27 (139 KB/s) - `index.html.3' saved [13854/13854] On Mon, Oct 18, 2010 at 8:50 AM, Moish mo...@mln.co.il wrote: Hot+Netvision 5mb http://tools.pingdom.com/fpt/?url=appspot.com/id=3141856 http://tools.pingdom.com/fpt/?url=appengine.google.com/id=3141864 On 18/10/2010 08:35, Maxim Veksler wrote: Hi, Something very strange is going on these days with Bezeq ISP network. I seem to be unable to reach appspot.com http://appspot.com while appengine.google.com http://appengine.google.com works just fine. Both of these services are available: http://tools.pingdom.com/?url=appspot.com http://tools.pingdom.com/?url=appengine.google.com Can people please try these following with your connection and report back. Could you mention what ISP your connected with? **NOTE: This will reveal you IP address** wget -q -O - checkip.dyndns.org http://checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/.*$//' 84.108.229.170 wget appspot.com http://appspot.com --2010-10-18 08:27:48-- http://appspot.com/ Resolving appspot.com... 173.194.36.141 Connecting to appspot.com http://appspot.com|173.194.36.141|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2010-10-18 08:27:49 ERROR 404: Not Found. tracepath appspot.com http://appspot.com 1: maximveksler-desktop 0.147ms pmtu 1500 1: 192.168.1.1 1.039ms 1: 192.168.1.1 1.093ms 2: 10.227.160.1 9.835ms 3: bzq-115-189-145.static.bezeqint.net http://bzq-115-189-145.static.bezeqint.net 27.992ms asymm 6 4: bzq-115-189-145.static.bezeqint.net http://bzq-115-189-145.static.bezeqint.net 11.124ms asymm 6 5: bzq-179-73-242.static.bezeqint.net http://bzq-179-73-242.static.bezeqint.net 11.611ms asymm 11 6: bzq-179-124-165
Re: Amazon EC2 hosting,
Thanks for the tip. On Sun, Oct 17, 2010 at 1:42 AM, Etzion Bar-Noy eza...@tournament.org.ilwrote: A small note. I was led to understand (from a fried who uses EC2 and aggressively) that xlarge instances are (usually? Always? I think the later) alone on physical hardware. So you would prefer to use xlarge instance to prevent slowdowns. Ez 2010/10/10 Maxim Veksler ma...@vekslers.org On Sun, Oct 10, 2010 at 5:04 PM, Orna Agmon Ben-Yehuda ladyp...@gmail.com wrote: 2010/10/10 Ori Idan o...@helicontech.co.il 2010/10/10 Tom Rosenfeld trosenf...@gmail.com Hi, I just came across this thread from back in Aug about Amazon's cloud. I'd like to add that I have been a satisfied customer of Amazon for over a year, using their services for both consulting at at my current job where we use it to run our SaaS offering. The capabilities keep improving and the prices keep coming down. Their lowest end server is now just 2 cents an hour! There are some issues with the IO, but it is certainly adequate for all but high performance needs. We use 8 way stripped disks and get about 100 MBp/s sequential reads. If anyone wants more details, I'll be happy to share with you. -tom I am considering using EC2 for a web application. I am not sure how to calculate the payment per month. Do I pay only for the time someone makes a request? For example, I have a user who requests a certain report and it takes 1 second to load the report request form, then 20 seconds to produce the report and print it. I understand that I pay for 21 seconds? In addition to mistakes already corrected, there is another mistake of how long something takes. Amazon aim to provide a certain computation power unit, but benchmarks show that what is actually provided has high variability. For example, ping times to EC2 machines started rising significantly since Amazon announces the spot instances. See also: Some more input on EC2. Not all instances born alike. We recently ran a huge computation based on Hadoop and you can definitely see that some nodes perform faster (I/O was the bottleneck) then others. I too, when starting with EC2 made the mistake to of thinking that you only pay for as much CPU as you use. Wrong! OTOH, I was very happy to find out that with Google AppEngine this is actually the case: You pay for as much resources as you consume. And they DO count CPU Time vs. Amazon's instance is running time. Another note regarding EC2. Read bitbucket story about ec2 horrors http://blog.bitbucket.org/. Yet please don't get me wrong, generally EC2, S3, CloudFront, ELB and other Amazon's services work great - Our production farm (~40 servers is hosted there and we are relatively happy). Amazon's main issues are: I/O bandwidth is funny Occasionally peaks in connectivity time that lead to timeouts (between zones from the outside world). Not so fair hypervisor: We've seen occasions when an instance slows down for a couple of minutes. We assume (without being able to tell for sure) that some bigger instance type that happen to be hosted on the same physical server as we are got resource hungry and practically ate all our CPU time... Maxim. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: [YBA] [OT] Mazal tov to Shachar Shemesh
Mazal Tov. 2010/8/31 Shachar Shemesh shac...@shemesh.biz My first born daughter was born yesterday. Mother and daughter are both fine. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: O'reilly Books in Israel
A different option is to order Amazon's Kindle, then you can buy books and read them instantly. It took me about a week to get it shipped to Israel using mustop. You can also install Kindle Software on your PC (Windows / Android / MacOSX - no linux client) and read it on that device until your kindle arrives. Regarding O'reilly books you have the option of Safari safaribooksonline.com or you might want to look at ACM membership which will also give you access to several online book repositories http://pd.acm.org/ HTH Maxim. 2010/9/24 Amichai Rotman amic...@iglu.org.il Hi all, I am looking for the fastest eay to acquire O'reilly books in Israel - I mean - where can i find them in a book store or an Israeli Online bookstore... I guess i could order from Amazon - but it will take it about a month or so to arrive, and I need it sooner... Any of you know of such a bookstore? Thanks! .::. Amichai Rotman Registered Linux User#: 201192 [http://counter.li.org/] Registered Ubuntu User #12851 [http://ubuntucounter.geekosophical.net] .::. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: CPU RAM in a storage box
Not really sure what's the current topic of this long lasting discussion is but if it's backup we're talking about I don't think any service can beat S3 in pricing, S3 reduced storage even cheaper, see pricing http://aws.amazon.com/s3/#pricing http://aws.amazon.com/s3/#pricingAnd you have great tools to work with the service - http://code.google.com/p/s3fs/ - http://s3tools.org/s3cmd - http://sourceforge.net/projects/elasticfox/ - and some proprietary like bucket explorer and co. HTH Maxim. On Tue, Sep 28, 2010 at 5:28 PM, Nadav Har'El n...@math.technion.ac.ilwrote: On Tue, Sep 28, 2010, Nadav Har'El wrote about Re: CPU RAM in a storage box: Thanks for the recommendation, I'll look into it. Their price is a bit of a turn-off, though - at $0.80 GB/mo, backing up 20 GB costs $16 a month, .. I wonder what is rsync.net's discount for open source developers ;-) I asked them, and the answer is that a free software developer, I get a 50% discount, i.e, 40 cents per GB per month. There's still a minimum of $5.6 a month, for which I get to store 14 GB. -- Nadav Har'El| Tuesday, Sep 28 2010, 20 Tishri 5771 n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Cement mixer collided with a prison van. http://nadav.harel.org.il |Look out for sixteen hardened criminals. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Amazon EC2 hosting,
On Sun, Oct 10, 2010 at 5:04 PM, Orna Agmon Ben-Yehuda ladyp...@gmail.comwrote: 2010/10/10 Ori Idan o...@helicontech.co.il 2010/10/10 Tom Rosenfeld trosenf...@gmail.com Hi, I just came across this thread from back in Aug about Amazon's cloud. I'd like to add that I have been a satisfied customer of Amazon for over a year, using their services for both consulting at at my current job where we use it to run our SaaS offering. The capabilities keep improving and the prices keep coming down. Their lowest end server is now just 2 cents an hour! There are some issues with the IO, but it is certainly adequate for all but high performance needs. We use 8 way stripped disks and get about 100 MBp/s sequential reads. If anyone wants more details, I'll be happy to share with you. -tom I am considering using EC2 for a web application. I am not sure how to calculate the payment per month. Do I pay only for the time someone makes a request? For example, I have a user who requests a certain report and it takes 1 second to load the report request form, then 20 seconds to produce the report and print it. I understand that I pay for 21 seconds? In addition to mistakes already corrected, there is another mistake of how long something takes. Amazon aim to provide a certain computation power unit, but benchmarks show that what is actually provided has high variability. For example, ping times to EC2 machines started rising significantly since Amazon announces the spot instances. See also: Some more input on EC2. Not all instances born alike. We recently ran a huge computation based on Hadoop and you can definitely see that some nodes perform faster (I/O was the bottleneck) then others. I too, when starting with EC2 made the mistake to of thinking that you only pay for as much CPU as you use. Wrong! OTOH, I was very happy to find out that with Google AppEngine this is actually the case: You pay for as much resources as you consume. And they DO count CPU Time vs. Amazon's instance is running time. Another note regarding EC2. Read bitbucket story about ec2 horrors http://blog.bitbucket.org/. Yet please don't get me wrong, generally EC2, S3, CloudFront, ELB and other Amazon's services work great - Our production farm (~40 servers is hosted there and we are relatively happy). Amazon's main issues are: I/O bandwidth is funny Occasionally peaks in connectivity time that lead to timeouts (between zones from the outside world). Not so fair hypervisor: We've seen occasions when an instance slows down for a couple of minutes. We assume (without being able to tell for sure) that some bigger instance type that happen to be hosted on the same physical server as we are got resource hungry and practically ate all our CPU time... Maxim. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: seeking cross-platform professional backup recommendation
What about Acronis and stuff like that? 2010/10/12 Etzion Bar-Noy eza...@tournament.org.il I don't know about Bacula and Windows, but the requirement was that the server runs on Windows, right? ArcServ is a lousy product. Easier to backup. Harder to restore. Symantec product is OK. You will not have the ability to restore from bare-metal without some major work, however, you can create (if you have enough time) a unified bootable USB disk which can run Linux OS with backup agent to achieve bare-metal. BE is a better and more reliable. I would strongly recommend on it, from the portfolio of non-OSS solutions. Ez On Mon, Oct 11, 2010 at 5:39 PM, Avi Rozen avi.ro...@mobileye.com wrote: Ira Abramov wrote: Bacula and AMANDA are probably not options since they won't use shadow copies thus can't back up databases swiftly and restore them partially and intelligently like propriatary tools do. I'm in no position to compare it with other backup solutions, but I do know that Bacula can use the volume shadow copy service on windows [1], since version 1.37.x (current version is 5.0.x). Cheers, Avi [1] http://www.bacula.org/5.0.x-manuals/en/main/main/Windows_Version_Bacula.html#SECTION00376 This mail was sent via Mail-SeCure system. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Awful Bandwidth from Most Sites on Bezeqint - What can I do about it?
I'm also getting lousy traffic from Bezeqint at home. I was sure it was on my side, so I haven't dug into it yet but now I see it's a cross client issue. I'm connected with hot-bezeqint. Download 2.5/ Upload 128 (or something in this range), center of Tel Aviv (http://goo.gl/maps/pIbG). I will test today a 10mb file download from: Akamai, cloudfront, s3 which are all super fast and from a server in us-east and eu-west and will report the results. I really hope that this is a temporarily bug in bezeqint routing instead of a new policy, I chose them exactly because they have a good reputation of not doing this sort of stuff. Maxim. 2010/10/14 sara fink sara.f...@gmail.com I also have problems with bezeqint. I tried ftp from holland. Unencrypted the speed was around 5k/s, encrypted less than 1k/s. worse than that I tried tunneling via a good site (speed guaranteed) and even this didn't work well. Transfer from israel has excellent speed. Other than that, nothing. My conclusion is that they started to apply QOS and other dirty tricks which I noticed via wireshark. I would suggest few things: 1. try to download the same rpm from other sites and compare. and then call them and show them it's impossible to get such low speed from 4-5 different sites. 2. In cases where you can change ports, try to revert to high end ports. 3. Try https. Maybe you will get lucky. In my case it didn't help. 2010/10/14 shimi linux...@shimi.net On Thu, Oct 14, 2010 at 12:03 AM, Shlomi Fish shlo...@iglu.org.ilwrote: On Wednesday 13 October 2010 23:04:55 geoffrey mendelson wrote: On Oct 13, 2010, at 10:47 PM, Shlomi Fish wrote: Can anyone help me shed any light on this problem? Traffic shaping? Did you try it at 6am or 1am? No, I did not. I'm usually not awake at 6am, and usually go to bed before 1am. Are there traffic shaping schemes that limit the speed on a single TCP connection and not the entire bandwidth? (Which in prozilla's case may consist of several connections to the same host.) QoS products today can do any combination you can think of. Side of testing and seeing for yourself, you really can't know. (usually the QoS policy is not equal to all users, and the choice of users ISPs apply different QoS rules on is voodoo at best...) You don't really need 6am, 10am is also OK to verify such thing. Might be a new policy to convert everyone to Private NGN so they pay a few more shekels? :) (other ISPs did it in the past so you'll add money to join the gamers package. a.k.a. the we screw you less with out QoS package...) -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Automated GUI testing with JS and AJAX
Hello, Some pointers, nothing concrete. Tools that might assist: http://www.mozilla.org/js/spidermonkey/ http://seleniumhq.org/ https://developer.mozilla.org/en/Rhino Maxim. 2009/9/4 Lev Olshvang lols...@012.net.il Just my 2 cents: I think that combination of iMacros +GreaseMonkey plugins can be used for regression tests, perhaps the iMacros alone is just sufficient for your purposes. Danny Lieberman wrote: Leonid, I'm pretty sure there are two possible non-DIY alternatives 1) maybe ratproxy - it's pretty cool for webapp software security assessment and it might cover some of your test use cases 2) probably Mochitest - https://developer.mozilla.org/en/Mochitest Just a thought. Danny On Thu, Sep 3, 2009 at 3:48 PM, Leonid Podolny leonidp.li...@gmail.com wrote: Hi, all, At my work we encountered a problem and it looks like we are re-inventing the bicycle. Someone here surely has an experience with that. We have a regressions testing lab. As a part of the testing we have to work with the web-interface of our product. (I'm intentionally vague, the details are quite irrelevant to the problem). The testing scenario includes action items like press the button with caption 'Advanced Settings' on it. This is implemented as a C program with sockets interface, so find a button actually means look for a substring in the received HTML code and press the button means create an HTTP POST message and send it. However, recently we have added some JavaScript and AJAX to the web-interface and now the testing environment must be able to run JS and even cope with things like replacing part of the DOM tree. We can see three possible directions to tackle the problem: - Further fix our great testing program. After all, we know what AJAX can return -- we can manually open the connection it would open, parse the response, etc. Looks ugly and has a potential to turn into maintenance nightmare. - Setup a headless X server with Firefox running inside and some sort of scripting/management add-on. If someone has an experience with such a setup, I would appreciate pointers to specific add-ons you used. - Somehow hack off the GUI from any open-source browser and link it to our program, i.e. use it as HTML parser and JS machine. Looks unpredictably complicated, maybe not even feasible. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Danny Lieberman - http://www.dannylieberman.info Twitter: http://twitter.com/onlyjazz Skype: dannyl50 Warsaw:+48-79-609-5964 Israel: +972 8 9701485 Mobile: +972 - 54 447 1114 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Linux / Computer Books in Israel
2009/7/15 Shlomo Dubrowin dubrowin.l...@gmail.com: I live and work in the Jerusalem area. Generally, when I want Linux and/or other types of computer books (right now I'm learning Perl), I wait till we have family coming from the US and force them to bring the books to me here. I keep saying there must be a better way to get good books here in Israel. Is there a bookstore somewhere that already imports these kinds of books, or that can order them for me and deliver them to me via IL Post or where I can pick them up somewhere local in this part of the country? I have ordered books through a previous employer from Amazon.co.uk, but I remember it being much more expensive than getting them in the US. What are your experiences. Thank you. How about purchasing a Kindle and then ordering nothing but electronic books? I seems that in the long run it might turn out to be more beneficial then buying batches of printed books. Shlomo - Shlomo Dubrowin The Solution to the water crisis in Israel: # According to WikiPedia, the Kinneret can hold # 4 km^3, so FULL here is in cubit meters FULL=4000 while [ $LEVEL -lt $FULL ]; do cat /sea/med /sea/red |\ grep -vi salt |\ tee /sea/dead /lake/kinneret LEVEL=`du -c /sea/dead /lake/kinneret | grep total | awk '{print $1}'` done ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: High availability virtual ip
On Tue, Jun 23, 2009 at 9:01 AM, Itay Donenhirsch i...@bazoo.org wrote: Hi Folks, I would recommend not using Linux-HA for any means. I had very bitter experience with it. It is implemented in a very complicated and hard to debug and configure. It's also very poorly tested. I first didn't believe it myself and thought I was doing something wrong, but after some email exchanges with its developer it became apparent that it fails some very basic scenarios (like switch power-down for instance). Moreover, the linux-ha people themselves will confuse you with which version to use (2.99/2.1.4, heartbeat or pacemaker, etc). If you'd like more detailed explanation, or had different experience, you are more than welcome to email me. Heartbeat has 2 faces, It can work great or it can fail bitterly. It has a very steep learning curse before something useful begins to happen. cibadmin -Q, crm_attribute are your friends. I agree with Itay, from our experience it is indeed buggy but working. Maxim. Itay On Tue, Jun 16, 2009 at 9:55 PM, Oleg Goldshmidtp...@goldshmidt.org wrote: Marc Volovic marcvolo...@me.com writes: Hi First, the problem is not an IP, but the mac-ip mapping and ARP caching strategies. Second, don't use ping. Third, do use project 'heartbeat' and 'fake'. They provide what you need. Heartbeat is a component of Linux-HA, which is why I pointed to the latter ;-) http://www.linux-ha.org/Heartbeat -- Oleg Goldshmidt | p...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: PE apps on linux, alternative solutions when win4lin breaks
On Sat, Jun 6, 2009 at 3:59 PM, sara fink sara.f...@gmail.com wrote: this is nice. googling a little bit about unity in virtual box, it looks like there is support for it. I quote VirtualBox however has some unique features such as Seamless Windows (which won't be unique as soon as Workstation 6.5 releases with Unity), plus it is Open-Source. More details in this link: http://forums.virtualbox.org/viewtopic.php?t=4272 BTW, seamless windows appears in the binary version as well. And there you have the usb support too. On Sat, Jun 6, 2009 at 2:46 PM, Maxim Veksler maxim.veks...@gmail.comwrote: (Replying to myself) OK, Turns out VMWare Workstation have developed the same feature that that I was so excited try in Win4Lin. In VMWare they call it Unity http://blog.scottlowe.org/2008/04/03/unity-coming-to-vmware-workstation-65/ http://www.chipx86.com/blog/2008/04/02/workstation-65-beta-1-now-with-100-more-unity/ This is very good for me, both productivity wise and performance wise - Although a full XP will be running in the background I will turn off all services it has and will not be displaying it's desktop so memory and cpu resources will not be wasted on it. Now all I need to do is get it working :) I wonder if XEN or VirtualBox have this feature as well ? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Another tip for people coming to this post from google. Do not use Windows XP, Use Windows Fundamentals for Legacy PCs. See this comment http://ask.slashdot.org/comments.pl?sid=1008275cid=25518407 Then this wiki http://en.wikipedia.org/wiki/Windows_Fundamentals_for_Legacy_PCs Then this torrent http://thepiratebay.org/torrent/3659362/WinFLP -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: PE apps on linux, alternative solutions when win4lin breaks
(Replying to myself) OK, Turns out VMWare Workstation have developed the same feature that that I was so excited try in Win4Lin. In VMWare they call it Unity http://blog.scottlowe.org/2008/04/03/unity-coming-to-vmware-workstation-65/ http://www.chipx86.com/blog/2008/04/02/workstation-65-beta-1-now-with-100-more-unity/ This is very good for me, both productivity wise and performance wise - Although a full XP will be running in the background I will turn off all services it has and will not be displaying it's desktop so memory and cpu resources will not be wasted on it. Now all I need to do is get it working :) I wonder if XEN or VirtualBox have this feature as well ? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
PE apps on linux, alternative solutions when win4lin breaks
Hello friends, I've recently decided to give another take on running iexplorer on linux because of http://openu.ac.il lectures. I'm looking for as lightweight as possible solution to run IE Office 2003 on Ubuntu 9.04. I've tried Win4Lin because of the feature of opening just 1 application instead of a full virtual machine but the product* is buggy and totally crashes. I have also tried WINE but this does not work with the required ActiveX openu installs. Is there some other virtualization solution (VMWare?, VirtualBox?, Xen? more...?) that could provide the feature of opening single application as if it was native? What alternatives / creative ideas are there ? All I need is Internet Explorer and Office so that I could view the video lectures. Thank you for helping, Maxim. P.S. * Note Product, not Project - it's a commercial software. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: PE apps on linux, alternative solutions when win4lin breaks
Hello Tomer, No, it's not High Learn. It's an in house software that seems to be developed by openu. Anyway, the website it self is not the problem, the whole system is quite workable with Firefox / Chrome, the IT department at openU is actually quite aware of standards and browser interoperability. The problem is that the lectures them self were created with a stupid thing called Microsoft Producer[1] which requires an ActiveX plugin to make it even start. So I must have a IE browser fully working with sound, popups and everything to view the lectures. Suggestions? [1] http://www.microsoft.com/windows/windowsmedia/technologies/producer.mspx On Sat, Jun 6, 2009 at 12:31 AM, Tomer Cohento...@gmx.net wrote: What software are openu.ac.il using? In case it is highlearn, you can use the following userscript - http://userscripts.org/scripts/show/9847 On Sat, Jun 6, 2009 at 00:04, Maxim Veksler maxim.veks...@gmail.com wrote: Hello friends, I've recently decided to give another take on running iexplorer on linux because of http://openu.ac.il lectures. I'm looking for as lightweight as possible solution to run IE Office 2003 on Ubuntu 9.04. I've tried Win4Lin because of the feature of opening just 1 application instead of a full virtual machine but the product* is buggy and totally crashes. I have also tried WINE but this does not work with the required ActiveX openu installs. Is there some other virtualization solution (VMWare?, VirtualBox?, Xen? more...?) that could provide the feature of opening single application as if it was native? What alternatives / creative ideas are there ? All I need is Internet Explorer and Office so that I could view the video lectures. Thank you for helping, Maxim. P.S. * Note Product, not Project - it's a commercial software. -- Tomer Cohen http://tomercohen.com Sent from Haifa, Israel H. L. Mencken - Nobody ever went broke underestimating the taste of the American public. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Firefox chokes on YNET
On Sun, Sep 28, 2008 at 3:04 PM, Shlomo Solomon shlomo.solo...@gmail.com wrote: I got several replies. Here's a summary of what worked or didn't. On Sunday 28 September 2008, Ori Idan wrote: I think it is because of the the many flash adds they have. Use adblock to block these adds and it should work fine. I installed adblock plus, but it didn't solve the problem. CPU use dropped only slightly, but adblock killed all the pictures and the icons at the top of the page (but only some of the flash!!) so YNET was not really usable. On Sunday 28 September 2008, David Ronkin wrote: I had the same issue in Suse. After i installed the Flash blocker it disappeared: https://addons.mozilla.org/en-US/firefox/search?q=flash+blockcat=all This did seem to solve the problem, but, although I agree there's to much flash on YNET, killing it all seems to be over-kill. On Sunday 28 September 2008, Boaz Rymland wrote: To the best of my knowledge its not the flash objects on the page but rather the JS they use there. I was told once its the scrolling news thingy they use which eats the CPU. I don't think that's true. After installing flash blocker, the scrolling news was also gone. Clicking on the location it usually appears re-enabled the scrolling news and CPU use only went up about 2%. On Sunday 28 September 2008, Gal Gur-Arie wrote: If you'r using the extension of the HTML validator then disable it for Ynet it will help. not installed On Sunday 28 September 2008, Micha wrote: On Sun, 28 Sep 2008 07:44:08 +0300 snip snip I tend to see this mostly with weaker cpus where it comes into play. Also appears with explorer on windows, not only firefox. The issue is flash and ynet have a lot of them and they are very dynamic which take a lot of cpu. As I mentioned above, the flash blocker did reduce CPU use, but my box is an AMD 4200 dual core. A few flash windows should not have any real impact on the CPU. In fact, with 10 - 15 tabs open (and many of them use flash), I get about 2% (or less) CPU usage. Opening YNET jumps that to 140% (as I wrote earlier - over 70% on each core). That really makes no sense. -- Shlomo Solomon http://the-solomons.net Sent by KMail 1.9.9 (KDE 3.5.9) on LINUX Mandriva 2008.1 I can verify that disabling JS on firefox solves the problem. I'm working with FF 3.0.5 on Red Hat 5 EL, Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz, 3GB Ram. My CPU usage without FF is ~6%, with FF 90%. To test this - 1. Using firefox 3, JS enabled. Open http://ynet.co.il in 10 new tabs 2. Measure CPU usage in 5min interval. You should see a constant increase in CPU usage until the point where FF hangs and needs forced kill. Now repeat the test, with JS disabled (EditPreferencesContent, uncheck Enable JavaScript). To work around this bug, First install Greasemonkey https://addons.mozilla.org/en-US/firefox/addon/748, then install this script http://userscripts.org/scripts/show/32443 Now install http://noscript.net/getit To verify the workaround, browse to ynet, You should see in the upper right corner - where the news flash used to be - the NoScript logo. Note that this also disables your ability to read / post comments, If this functionality is required the easiest solution IMHO is to click on the S icon on the right and selecting Temporarily allow all this page HTH P.S - If someone has a better solution on how to block just the required JS code on ynet.co.il (Using AdBlock Plus) or something alike, I would love to hear it. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il
Re: Color highlighting of arbitrary tail -F'ed text ?
On Fri, Sep 5, 2008 at 2:24 AM, Amos Shapira [EMAIL PROTECTED] wrote: 2008/9/5 Tzafrir Cohen [EMAIL PROTECTED]: You want to mark 'FINDME' but also find every line? grep --color '^\|FINDME' Or: egrep --color '^|FINDME' Nice one! I should have though of that. Nice indeed. It does match everything but fails to highlight. At least on EL5 using Konsole. (Into my bag of tools). Another thing - to page the coloured results through less, use less -R (useful to page through bloody puppet's coloured screen log). Cheers, --Amos = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: Color highlighting of arbitrary tail -F'ed text ?
On Fri, Sep 5, 2008 at 9:42 AM, Tzafrir Cohen [EMAIL PROTECTED] wrote: On Fri, Sep 05, 2008 at 09:24:34AM +1000, Amos Shapira wrote: Another thing - to page the coloured results through less, use less -R (useful to page through bloody puppet's coloured screen log). And to follow-up to the original poster: press 'F' in less to make it behave as 'tail -f' That's a useful feature I will always be using from now on. Though still prefer the Term::ANSIColor; solution that Shlomi implemented above because it allows me to to be as flexible as I want to be. Thanks everyone for the help. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il || a Mutt's [EMAIL PROTECTED] || best ICQ# 16849754 || friend -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Color highlighting of arbitrary tail -F'ed text ?
Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case name= the output is verbose as I'm running in TRACE. Could some one please suggest a suitable tool as I've tried some project but the hardly work. Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: Color highlighting of arbitrary tail -F'ed text ?
On Thu, Sep 4, 2008 at 1:45 PM, Moish [EMAIL PROTECTED] wrote: Maxim Veksler wrote: Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case name= the output is verbose as I'm running in TRACE. Could some one please suggest a suitable tool as I've tried some project but the hardly work. {..} If it's formatted ( or would be since it's your application ): 1. Add relevant syntax for vt100 terminal or the likes and display the output on such a terminal ( dah.. ) 2. Import into a spreadsheet. 3. For large amounts of data, import into a db, postgres or whatever. Hmmm, well no. I mean more as a tool I would use for debugging during development. Something that would allow me to do : tail -F /var/log/MyApp/DCN.log | SuperSyntaxHighlighter -SearchForWord=^regexOrSomething -SearchForWordColor=#FF I need something would allow me to highlight arbitrary terms in the log. Now I'm searching for Name tomorrow I might be search for objectId. I need a quick and dirty solution. Thank you ;) Thanks for helping guys. Moish -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary tail -F'ed text ?
Hi Amos, On Thu, Sep 4, 2008 at 2:05 PM, Amos Shapira [EMAIL PROTECTED] wrote: 2008/9/4 Maxim Veksler [EMAIL PROTECTED]: Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case name= the output is verbose as I'm running in TRACE. grep --color --name={1} That would actually be great and is exactly the kind of solution I'm searching for. The only problem with the grep --color apporoach is that It would only show me the lines that contain the search term. I want to see the whole scrolling log and highlight what interested me. Thanks ! Replace {1} by regular expression which matches the part you want to highlight in addition to the name=, maybe [^ ]* to highlight up to the next space. Could some one please suggest a suitable tool as I've tried some project but the hardly work. man grep Cheers, --Amos -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary tail -F'ed text ?
On Thu, Sep 4, 2008 at 4:17 PM, Shlomi Fish [EMAIL PROTECTED] wrote: On Thursday 04 September 2008, Amos Shapira wrote: 2008/9/4 Amos Shapira [EMAIL PROTECTED]: 2008/9/4 Maxim Veksler [EMAIL PROTECTED]: That would actually be great and is exactly the kind of solution I'm searching for. The only problem with the grep --color apporoach is that It would only show me the lines that contain the search term. I want to see the whole scrolling log and highlight what interested me. Also, a quick CPAN search turned up http://search.cpan.org/~rra/ANSIColor-1.12/ANSIColor.pm If you are a Perl programmer, I'd reckon a 15 minute work will get you what you want (but I don't have them right now to do this for you, sorry). Here's a Proof-of-Concept script I wrote to implement this: #!/usr/bin/perl # Written by Shlomi Fish - http://www.shlomifish.org/ - 2008 # Licensed under the MIT/X11 License. # # Example: # perl color-patterns.pl --pat hello=red --pat '(?i:maxim)'=blue use strict; use warnings; use Getopt::Long; use Term::ANSIColor; my %patterns; GetOptions(pat=s = \%patterns); my @p; while (my ($k, $v) = each (%patterns)) { push @p, { pat = qr{$k}, color = $v }; } while (my $l = ) { foreach my $pat (@p) { my $re = $pat-{pat}; my $c = $pat-{color}; $l =~ s/($re)/colored($1, $c)/eg; } print $l; } Regards, Shlomi Fish - Shlomi Fish http://www.shlomifish.org/ Why I Love Perl - http://xrl.us/bjn88 Shlomi, so what are you working on? Working on a new wiki about unit testing fortunes in freecell? -- Ran Eilam I mainly write in Python / Java but the above work from Shlomi is just great !This is exactly what I've been after, quick dirty and works. Thanks a-lot !! Shlomi and Amos -- You are the man's ;) // OT Note: I must admit that to some one who is accustomed to logic... the above code is completely unreadable. Could someone please explain where in the above code the ANSI module / method / operator / what ever they do in Perl... is called to the actually coloring that was read from stdin? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
OT: How about running Linux in your web browser?
Hello list, This is surly interesting news, It seems that the folks at Mozilla are working on writing a C/C++ to Tamarin compiler (ActionScript VM running inside Adobe's Flash). This means implementing the full POSIX calls, including emulation of direct memory access... Now I ask you, is it not getting us just 1 steps closer into the concept of network OS? Just think about it, you could theoretically boot MacOSX, open your browser, browser to http://hamakor.org.il/start (which would redirect you to http://os.google.com) and bam!! You see Linux happily booting in your FireFox :) Read more about it here : http://www.artima.com/forums/flat.jsp?forum=270thread=234365 -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: what can be done against isp blocking ports
On Tue, Mar 25, 2008 at 12:56 AM, sara fink [EMAIL PROTECTED] wrote: My ISP is 012. They claim that they don't block ports and they can't block ports. Something is on my computer. Viruses, spyware, firewall. My firewall is disabled. And I am connected through the modem only. Yet only 1 port is open. What can I do in this case? Proxy client, server on the pc? Use proxy from the internet? Port forward? Besides browsing I need the p2p. Any ideas how to solve this problem will be appreciated. There is nothing currently to do about this, the correct technical term for what 012 are doing is Deep Packet Inspection. They are probably using something like [1] to QOS p2p traffic. They are not blocking ports, they are reading the content of your traffic and analyzing it in real time, these packets that are labeled as low priority get Throttled. I'm also connected to 012 using HOT, for the last 3 months I'm experiencing an ever degrading performance of popular file sharing protocols such as ed2k and bit torrent. It get's to such ridicules rates as 3KB/s. I can verify this is an ISP issue, because : a. I've made an experiment with my fellow college where we started downloading the same popular file, each from his own home simultaneously. He is connected via Bezeq+ADSL and I'm through 012+HOT. My download rate was 6Kb/s (max) while his maintained an steady rate of 55Kb/s. We're both connected using a Linksys Router, and made proper checking before started the test: Ports have been forwarded and verified to be allow connect(), other network devices have been disconnected. No other downloads / uploads were active. b. I've talked to 2 other friends at work, who are also connected using 012 and are reporting to experience the exact same service disrupts as I am. c. Please read these forum posts, discussing this issue : - http://forum.bgu.co.il/index.php?showtopic=165231pid=1673953 - http://209.85.135.104/search?q=cache:UV5wN3Sg4rYJ:selectv.net/lofiversion/index.php/t37336.html+012+%D7%97%D7%95%D7%A1%D7%9E%D7%99%D7%9Dhl=enct=clnkcd=9client=firefox-a We've spoke to 012 representative, it's always the same automatic answer they have been instructed to provide: Problem with your computer, spyware, virus, wrong usage No point in arguing with the poor technical support guy because he a. Can't help you. B. Probably does not have the slightest clue about what you are talking about. This leads me to the conclusion that nothing can be done besides leaving the company that insists on hurting it's costumers and join Bezeq, who may or may not be the best ISP around but at least they aren't using technology to hide cowardly acts from their users. I for one have lost my faith in 012 completely, I will not let this slip and have already started the procedure of disconnecting from 012 ASAP. I will also make sure all my friends + parents + who ever I can advice on ISP choosing to reconsider their decision based on the above. Maxim. [1] http://www.cyberoam.com/contentfiltering.html p.s. The solution to this problem is passing your traffic encrypted, i.e. SSL. The problem here that all traffic then must be TCP which is actually bad for the Operator as it increases the bandwidth usage. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
UML 2.0 Design tools on Linux
Hello List, I'm looking for UML design tool. The target language is mainly java. I need a tool with nice interface, I don't mind it having a bit steep learning curve but I do want a good tool that can enable smart usage. The requirements are : 1. Support class diagrams with interfaces, concrete classes and inheritance. 2. Support sequence diagram 3. Enable exporting to Image formats. PNG is fine. SVG is better. Optional requirements : 1. State diagram's are a big plus. 2. Activity diagram would be nice but I can go along without them 3. Use case diagrams are not required. This tool can be Free Software (I would prefer this), but a proprietary tool will do as well. It would also be nice if it acted as MDA (+ADM) code generator, but again this is not a must. Now I understand this is a hot topic, there is a plethora of tools out there [1], [2], [3] the real problem is selecting the right one. Can some one on this list recommended a tool he has personal experience with and found it to be worthwhile ? Thank you, Maxim. p.s. In case some body is interested, or does not know UML. Please learn here http://www.omg.org/spec/UML/2.1.2/ [1] http://en.wikipedia.org/wiki/List_of_UML_tools [2] http://www.objectsbydesign.com/tools/umltools_byCompany.html [3] http://java-source.net/open-source/uml-modeling -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: Using SSH keys without havint to type a passphrase
On Mon, Feb 18, 2008 at 7:13 AM, Amos Shapira [EMAIL PROTECTED] wrote: On 17/02/2008, Erez D [EMAIL PROTECTED] wrote: #copy to destenation scp .ssh/id_dsa.pub target_machin:/path to home/.ssh/authorized_keys2 #(actually you should append to destenation instead of copying to it) 2. At least on Debian Etch and CentOS 5, there is ssh-copy-id to help you transfer the public key conveniently. Who needs it? cat ~/.ssh/id_dsa.pub | ssh target_machin 'cat /path to home/.ssh/authorized_keys2' --Amos -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Gnu make or replacement?
On Jan 13, 2008 2:58 PM, Ira Abramov [EMAIL PROTECTED] wrote: I'm helping a client here to start a project from almost scratch. it involves java servelets for Tomcat, building with MAVEN, a few external GPL tarballs that are downloaded from the web, unzipped and compiled (or maybe we'll check them into the CVS) and some glue scripts in bash. Make is the standard, I just wodered how many of you tried rake and other tools that compete against it, and have an opinion... If it's C / C++ code that you will be compiling then scons is bullet proof, you will need to learn how to wear the vest though... Thanks, Ira. -- The cream in your coffee Ira Abramov http://ira.abramov.org/email/ = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Find process id of background ssh?
On Dec 26, 2007 5:13 PM, linux. il [EMAIL PROTECTED] wrote: Hi List. I'm writing a script to automate some system maintenance tasks, and I want to connect over SSH to several remote computers and do stuff on them. I'm using ssh -f to background ssh so I can run the same operation on multiple machines in parallel, otherwise it will be too slow - the maintenance job may take up to a few minutes to run and the script is not supposed to be fully automatic: a human is to monitor the process. But I don't want just to fire and forget the SSH processes - I want to exit from the script only when all the SSH processes have completed. I can do that by monitoring the process ids of the background SSH processes, if I could know them - which I'm having a difficult time detecting. I'm writing in bash, and optimally it would be something like this: for server in 1 2 ...; do ssh -f [EMAIL PROTECTED] 'run maintenance task' pids=$pids $(getSSHpid) done while kill -0 $pids 2/dev/null; do echo Waiting..; sleep 1; done but I didn't manage to find a way to get the process id of the ssh process after it goes to background, other the 'ps'ing for it. How can I go about doing this? -- Oded Sorry for OT, but some kind of distributed shell seems me more suitable for this task - http://www.linux-mag.com/microsites.php?site=business-class-hpcsid=buildp=4658 You might as well check http://www.csm.ornl.gov/torc/C3/ -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Something weird is happening
On Dec 8, 2007 6:59 PM, Oded Arbel [EMAIL PROTECTED] wrote: rpmverify glibc kernel May shed more light. rpmverify glibc kernel return nothing (exactly nothing, no output whatsoever Yes it did, it returned an error code. rpmverify glibc kernel; echo $? -- Oded -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Store selling Linux computer with support
On Dec 3, 2007 8:25 PM, Oron Peled [EMAIL PROTECTED] wrote: On Sunday, 2 בDecember 2007, sara fink wrote: d-source installs ubuntu. They will help to connect to internet as well. http://www.d-source.co.il/ Can you back it up? I followed your link with the following results: - Didn't see Linux or Ubuntu mentioned anywere. - Using their search with Linux or Ubuntu returns nothing. - Just to test that search actually functions, I tried windows and vista... yes they do work (not the OS, the search ;-) - Otherwise, their website barely works (e.g: the Javascript links on the sidebar to the various categories, do not work) -- Tested on both Firefox-2.0.0.10 and Konqi-3.5.8 from Fedora-7 So? So... This thing got me curies and I went to verify some information. http://d-source.co.il are resellers of http://affordy.com which delivery hardware + software for the home marked based on Ubuntu. 1. They will support you in your first steps of connecting to the Internet by working with the ISP. 2. They sell Monthly (100NIS) / Yearly (600NIS) technical support. A home visit will cost you 250 NIS. Their support covers PC not booting, no X and other user land stuff. From the business point of view, they've sold ~100 PCs in Israel and are expending abroad. Their offer includes Ubuntu core + 3rd party software (mostly binary freeware such as Skype, games and toys). It's seems like a small PC shop (6 employees with hardware backing from d-source). On the community side, they have plans on donating hardware for ubuntu.org.il, I'll believe it when I see it happening. All in all, this seems like win-win situation for us all. Maxim. -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 Without the wind, the grass does not move. Without software, hardware is useless. -- Tao of Programming To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: RedHat Cluster Suite as a replacement for linux-ha?
On Nov 30, 2007 11:31 AM, Amos Shapira [EMAIL PROTECTED] wrote: Hello, Hi, I'm beginning to give up on making Linux-HA's heartbeat work for my environment (CentOS x86_64) and am wondering what other option have I got to help me: 1. Use IPVS to maintain a cluster of servers serving virtual IP, either master/slave or load-balanced. 2. Use DRBD in master/slave fashion to keep a home-grown application highly-available. The first thing I stumbled upon is RedHat Cluster Suite (http://www.linuxtopia.org/online_books/centos_linux_guides/centos_cluster_configuration_and_management/ ), from which I also saw some packages on my CentOS servers. I've never heard of it before and am just starting to dig its docs, but if someone here can confirm/deny that this is a possible route to take it might save me some time or doubts. Thanks, Don't give up so fast. linux-ha has lots of bugs that's true, but they all have either a workaround or fixes in the development / stable src releases. First thing I suggest you do is build a RPM from the development branch. The latest release is here http://hg.linux-ha.org/dev/archive/ef1be5978d97.tar.bz2. You can the package by calling sudo ./ConfigureMe package. Note that you will need libnet [1]. Second thing to do is read lots and lots of linux-ha.org documentation, cib DTD and just about everything you can find on the mailing lists. I've just seen your question on linux-ha, very odd. It didn't happen for us here. We're using 2.1.2-2 on RH4/RH5 with real hardware. Perhaps you should try doing a minimal installation of CentOS 5 to eliminate any chance of conflicting libs coming with the OS ? [1] http://dag.wieers.com/rpm/packages/libnet/ --Amos -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
collaborative online document writing software
Hi, I remember once someone posted on this list a project that allowed writing documents online simultaneously by several users. It did this by exposing a web interface with some ajax calls behind it. It looked great, felt awesome and I can't find it anywhere. Anyone knows what I'm talking about? Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: collaborative online document writing software
On Nov 26, 2007 4:28 PM, Ori Idan [EMAIL PROTECTED] wrote: You are talking about a Wiki system. There are lot of Wiki systems some of them with hebrew support. Not exactly. I'm talking about a interface where you write documents with your peers in real time. You see their changes and they see yours. I'm planning to use it to write design documents and co. Maxim. -- Ori Idan On Nov 26, 2007 4:07 PM, Maxim Veksler [EMAIL PROTECTED] wrote: Hi, I remember once someone posted on this list a project that allowed writing documents online simultaneously by several users. It did this by exposing a web interface with some ajax calls behind it. It looked great, felt awesome and I can't find it anywhere. Anyone knows what I'm talking about? Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- ספרים וסיפורים שכתבתי: http://www.thestories.org -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: collaborative online document writing software
On Nov 26, 2007 11:21 PM, Oron Peled [EMAIL PROTECTED] wrote: On Monday, 26 בNovember 2007, Maxim Veksler wrote: Hi, I remember once someone posted on this list a project that allowed writing documents online simultaneously by several users. It did this by exposing a web interface with some ajax calls behind it. Even better (no stinking web interfaces ;-) http://gobby.0x539.de/ Well, had I wanted to go install stuff - ACE[1] looks pretty cool. Point being that I want that stinking web interface, I love it. Look what zoho.com managed to do with it. Never the less, thanks Oron for the gobby pointer. [1] http://ace.iserver.ch/index.php -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: a time accelerating script anyone ?
On Nov 23, 2007 7:11 AM, Valery Reznic [EMAIL PROTECTED] wrote: I don't remember where, but some (considerable)time ago I saw LD_PRELOAD library, which aloow shift and or multiply time. It was called something like faketime (not so sure about the name) You can try to find it Or re-implement yourself :) Interesting, http://www.code-wizards.com/projects/libfaketime/index.html Thanks! Valery. Maxim. --- Maxim Veksler [EMAIL PROTECTED] wrote: Hi guys, I know this sounds a bit funny but I need a script or perhaps a method to hurry up the kernel internal time pacer so that time will go faster on my machine. I'm testing events that are scheduled to be executed, say ~every 3h. Waiting 3h for each test is lame. I need a time machine! Has anyone written / seen something appropriate ? To mention that simply testing for time and adding +1min to it is not good because that means I could lose a whole minute in case of race conditions with other processes (think HH:MM: 59.999). Yes, testing for date '+%N' and adding to it is also an option but that's boring and I guess is error prone too. Using something tested that someone wrote is my preferred option. Thanks, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
a time accelerating script anyone ?
Hi guys, I know this sounds a bit funny but I need a script or perhaps a method to hurry up the kernel internal time pacer so that time will go faster on my machine. I'm testing events that are scheduled to be executed, say ~every 3h. Waiting 3h for each test is lame. I need a time machine! Has anyone written / seen something appropriate ? To mention that simply testing for time and adding +1min to it is not good because that means I could lose a whole minute in case of race conditions with other processes (think HH:MM: 59.999). Yes, testing for date '+%N' and adding to it is also an option but that's boring and I guess is error prone too. Using something tested that someone wrote is my preferred option. Thanks, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
a time accelerating script anyone ?
Hi guys, I know this sounds a bit funny but I need a script or perhaps a method to hurry up the kernel internal time pacer so that time will go faster on my machine. I'm testing events that are scheduled to be executed, say ~every 3h. Waiting 3h for each test is lame. I need a time machine! Has anyone written / seen something appropriate ? To mention that simply testing for time and adding +1min to it is not good because that means I could lose a whole minute in case of race conditions with other process (think HH:MM: 59.999). Yes, testing for date '+%N' is also an option but that's boring and I guess is error prone too. Using something tested that someone wrote is my preferred option. Thanks, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: OT: Netvision and the damn routing
On Nov 12, 2007 2:50 PM, Hetz Ben Hamo [EMAIL PROTECTED] wrote: Any suggestions? tips? Have you considered using Amazon's S3 ? http://www.amazon.com/gp/browse.html?node=16427261 Thanks, Hetz -- Skepticism is the lazy person's default position. my blog (hebrew): http://benhamo.org = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: looking for a very simple ticket system
On 10/25/07, Hetz Ben Hamo [EMAIL PROTECTED] wrote: Hi, I'm looking for a very basic ticket system that supports hebrew (the people that will fill the tickets are not computer 'experts'), that will let me see all the tickets and reply to them via the system (so they get a link to the reply).. The ticket system is not related to any software field (i.e. bugzilla etc). Any suggestions, recommendations? As Doron mentioned already - Look at http://otrs.org/. I once used it with relatively high success. It needs some learning and the UI could be better but once people get the hang of it it works quite well. Thanks, Hetz -- Skepticism is the lazy person's default position. my blog (hebrew): http://benhamo.org = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Career advice needed
On 9/10/07, Danny Lieberman [EMAIL PROTECTED] wrote: Herouth I see Matrix are looking for a J2EE programmer on the list.that might be an indicator.Danny I would think twice before turning to work for Matrix, but perhaps that's just me. On 9/3/07, Herouth Maoz [EMAIL PROTECTED] wrote: On 02/09/2007, at 20:13, Stanislav Malyshev wrote: I want to do something new. That's why I asked what the current market demands are. I have an opportunity to change. The choice what to change to depends on what's available, and out of what's available I'm hoping to select what will seem the most interesting to me, given the time and money constraints. If you want to stay in web arena, but not deal much with LAMP anymore, you may try to go client-side - rich applications, AJAX, etc. These days I think it is becoming a real programming market. Not sure if there's easy to find such job without it being combined with design (which are two entirely different jobs, but not everybody understands it). It doesn't have to do much with Linux, though :) Thanks. I sort of regard Ajax as part of the territory these days. Herouth = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Danny Lieberman Reduce risk with practical threat analysis- visit us at www.ptatechnologies.com All things being equal, the simplest solution tends to be the best one. Occam's razor www.software.co.il/blog - Israeli software, music and mountain biking www.software.co.il/pta - Download a free copy of the PTA-Practical threat analysis tool Tel Aviv + 972 3 610-9750 US + 1-301-841-7122 Cell + 972 54 447-1114 -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Commercial/FOSS C++ dev env for Linux?
On 9/1/07, Amos Shapira [EMAIL PROTECTED] wrote: Hello, We are at this stage were the lead C++ developer needs to switch over our mostly ACE-based applications from Windows to Linux and needs a GOOD and CONVENIENT debugging environment for multi-threaded applications. He's giving a honest effort to use gdb but so far found it very hard to work with and at least once he managed to get gdb itself to crash. Can anyone recommend a REALLY USEFUL(TM) debugger for Linux, even cheap commercial ones (up to around 100$ per seat)? Please spare me the preaching about gdb being so great - that guy, who haven't touched Linux until last week, is already doing a tremendous effort to convert and needs any tool he can to help him. At least one of the target environments will be RHEL4 (due to customer's demands) but there is a good chance the Debian will be our internal SOE. Have him look at http://www.slickedit.com/ Thanks, --Amos -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Career advice needed
On 9/1/07, Herouth Maoz [EMAIL PROTECTED] wrote: So far I'm told that kernel drivers are in demand. I've noted that to myself (as well as the other general advices given), and it's an option. Basically, any suggestion will be welcome - I'm trying to get a feel of the market, not to make an instant decision. Herouth Well, from my short swim in the industry I can tell you the following market trends: 1. Advertising is hot, everything from analytical people to graphical designers goes. 2. System Analysts are being hired quickly today, you must have a firm background in your field. 3. DBA, not system but those that responsible for scalability and optimization of the scheme. 4. Good networking people are always in demand. 5. JAVA, as in serverlets and jsp's can be a good direction for you. 6. Security experts, you can merge into a security firm as web application security consultant. 7. Well, QA is also an option if your looking for a relaxed position. HTH. On a personal note, I never agreed with the claim Current market demand. My answer to this is simple - If you want to make a difference, start thinking differently. In translation to the software industry, I you want to make a `fine` salary and work in a good company - find something your interested in and pursue, be good at what you do and work will just pop up for you. Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Career advice needed
On 8/31/07, Herouth Maoz [EMAIL PROTECTED] wrote: Hello, fellow Linuxers. I'd like your advice regarding a job change. My company has been acquired. There is a chance that my boss won't stay around, and if so, I'm not going to stay around, either - because the chances are that the business will become yet-another- dotnet-based-web-portal. I'm basically a PHP programmer, though in the past two years I've been doing more integration work and problem solving than any web development (being the only one except our sysadmin who is not afraid of shell scripts). Now, this merger gives me a unique opportunity - I've been in my current company for 6 years, so I'm due a lot of compensation should I quit (quitting after an acquisition is considered being laid off), meaning I can basically keep my standard of living for at least 6 months without actually working. I can use these 6 months to develop my skills in some other area of programming, and maybe even get some experience by participating in an open source project of some kind. What I'd like your advice on is - what directions are popular, have high demand, and can accommodate a programmer with lots of general experience, but not particular (other than the web)? Preferably ones that don't enslave people (no golden cages for the chance of becoming a millionaire). Needless to say, I'm talking about Linux-oriented (or at least Unix) jobs here, I'm not looking to change to .Net, I don't even have a Windows box available at home. My CV in a nutshell: B.Sc. from 1989, military service doing application programming in environments that no longer exist, until 1994, then some tech support until 1996-7, and since then I've done web programming, at first in Java, then in PHP, though I did a refresher course in Java recently (but never got around to writing anything in it). Any advice will be appreciated. Sneers and jeers will not. :) Herouth I recently had a talk with fellow colleges, I been told a story about company X that was looking for php software house under the following conditions: 1. They have more then 4 employees. 2. There in business for over 1 year. 3. They have a large php project to back their work. It seems that there were not even one decent company in Israel that would fall under these conditions. This was ~2 years ago. So they turned to .Net. I don't mean to be all too rude but: What about starting your own company? You definitely have the necessary experience, skill, motivation and with proper guidance/managements you could fill in a blank that is clearly missing here in the local market. I could even suggest this organization would be a hybrid of Django (which is getting hotter by the minute!) and php ajax software house. Do it in the open source way (i.e. keep using fresh FOSS technology, contribute back) and there's surly a bright future ahead. Maxim. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Linux sockets binding issues
On 8/25/07, ik [EMAIL PROTECTED] wrote: Hello List, I have this weird problem that I can't figure out with Linux's sockets. I have a server that I'm writing that bind a port to 0.0.0.0, now when I disconnect, and quit the server and then re-run the server, sometimes (not all of the time) the binding is failing as the port is still binded, however netstat -lnp does not show any indication for such binding to still be existed, and it takes few seconds until I'm able to restart the server without any issues. Now this issue does not always exists, so I don't know exactly what to look for. I'm using a multi-platform socket library named lnet (that I'm adding some new features), and this issue only exists on Linux, while BSD, MacOSX and Windows does not have such problem. I'm using Kubuntu 7.04 with kernel 2.6.20 So I'm looking for pointers and tips on what should I be looking for in order to understand what is happening. Not much of a help but I've experienced the same issue with Python 2.5 on Ubuntu 6.10. I didn't bother to search for a solution as this behaviour was accepted for my needs. I did hear other people complaining about this issue, with no obvious solution. Thanks, Ido -- http://ik.homelinux.org/ = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: www.mybroadband.co.il
On 8/8/07, Amos Shapira [EMAIL PROTECTED] wrote: On 08/08/07, Gadi Cohen [EMAIL PROTECTED] wrote: Hi All There have been alot of e-mails on the list this year (from myself aswell) relating to the Internet in Israel. Every ISP promises that they are the fastest, have the best support, when often nothing can be further from the truth. An ISP / infrastructure provider will be having technical problems that affect all users, but to cover their ass they'll waste your time trying to find a non existant problem on your PC. In most other countries, you have independant sites which keep such companies in line, and I'd like your help in setting one up for Israel. I foresee a number of parts of such a site: Look at http://whirlpool.net.au/ for a site which fills just this niche in Australia. It's hugely successful and considered the Mecca of anyone checking about broadband in Australia (though there are forums also about VoIP, web hosting and more). Also look at http://www.netcheif.com/ Cheers, --Amos -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
System resource monitoring and reporting utility ?
Hello list, I'm looking for a simple system monitoring script / utility. I need to do checks like memory usage, cpu usage, hard disk usage and co. I would like to email alerts if one of the check fails. I know SNMP traps are exactly what I'm after, oddly I haven't been able find any decent project that will support this. Has anyone had any experience with opennms/nagios and could point me to their client side Linux agent ? Again, I'm after a simple and easy to setup resource watchdog utility. Tips will be publicly acknowledged. Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: System resource monitoring and reporting utility ?
On 8/8/07, Oren Held [EMAIL PROTECTED] wrote: A friend of mine (Amnon) found Munin (http://munin.projects.linpro.no/), which is a great system resource grapher tool which has plugins for almost everything from swap, ntp time drifts, disk temperature - to mysql queries per second. Oron, you're off by just 2 small (levenshtein distance) steps. I've found monit to be exactly what I'm looking for, and it makes the impression of a very quality code. Here is the setup I'm using on a redhat 4 box, coping and pasting from a dokuwiki format: Installl code cd /tmp/ wget http://dag.wieers.com/rpm/packages/monit/monit-4.9-2.el4.rf.i386.rpm rpm -Uvh monit-4.9-2.el4.rf.i386.rpm /code Settings * sed /^#/d /etc/monit.conf code set daemon 600 set logfile syslog facility log_daemon set mailserver aaa.bbb.ccc.ddd# primary mailserver set mail-format { from: [EMAIL PROTECTED] } set alert [EMAIL PROTECTED] # receive all alerts set httpd port 2812 and use address localhost # only accept connection from localhost allow localhost# allow localhost to connect to the server and allow admin:monit # require user 'admin' with password 'monit' check system localhost if loadavg (1min) 4 then alert if loadavg (5min) 2 then alert if memory usage 75% then alert if cpu usage (user) 70% then alert if cpu usage (system) 30% then alert if cpu usage (wait) 20% then alert check device datafs with path /dev/mapper/VolGroup00-LogVol00 if space usage 70% for 5 times within 15 cycles then alert /code Reference: http://www.debian-administration.org/articles/269 http://www.tildeslash.com/monit/index.php On Wednesday, 8 August 2007 17:46:48 Maxim Veksler wrote: Hello list, I'm looking for a simple system monitoring script / utility. I need to do checks like memory usage, cpu usage, hard disk usage and co. I would like to email alerts if one of the check fails. I know SNMP traps are exactly what I'm after, oddly I haven't been able find any decent project that will support this. Has anyone had any experience with opennms/nagios and could point me to their client side Linux agent ? Again, I'm after a simple and easy to setup resource watchdog utility. Tips will be publicly acknowledged. Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Problems connecting to wireless networks. Need some assistance.
On 5/20/07, Julian Daich [EMAIL PROTECTED] wrote: Hi all, I got an Inellinet wireless PCMCIA card[ 1] for my Compaq Armada M300 running Kubuntu 7.04. While trying to connect to several public networks using either wlassistant or Knetworkmanager, the networks are well recognized but I cannot log in. The connection is always refused. I came across forums and wikis, found myself a little bit lost with this and at the present, I cannot determinate if the problem is related to a) drivers, b) system or c) network configuration. I performed many tests that are too long to be included in this message, but any of them are conclusive. I need some help about how to proceed. I´m pasting two outputs that I got at a friend´d network. $ iwconfig lono wireless extensions. eth0 no wireless extensions. ra0 RT61 Wireless ESSID:makhtesh Nickname: Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:CB:FB:83:4A Bit Rate=24 Mb/s RTS thr:off Fragment thr:off Link Quality=66/100 Signal level:-69 dBm Noise level:-103 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 $ ifconfig ra0 ra0 Link encap:Ethernet HWaddr 00:0E:2E:A3:71:49 inet6 addr: fe80::20e:2eff:fea3:7149/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6955 errors:0 dropped:0 overruns:0 frame:0 TX packets:328 errors:3 dropped:3 overruns:0 carrier:0 collisions:45 txqueuelen:1000 RX bytes:847253 (827.3 KiB) TX bytes:14720 (14.3 KiB) Interrupt:11 Links: [ 1]http://www.intellinet-network.com/html/505314.htm Thanks, Julian Hi Julian, First thing first; I recommend you go read http://www.troubleshooters.com/lpm/200612/200612.htm#_Is_Linux_Productivity_Magazine_Back_for it will give you a great overview of how wifi works on linux and in general. Secondly, have you tried connecting with this pcmcia card to other networks ? Open ones? WEP encrypted? Perhaps the driver does not support the authentication scheme you're using on your AP ? -- Julian Daich [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: Keeping iptables rules across reboots on Debian (lenny) ?
On 7/2/07, Baruch Even [EMAIL PROTECTED] wrote: * Maxim Veksler [EMAIL PROTECTED] [070702 03:32]: On 7/2/07, Lior Kaplan [EMAIL PROTECTED] wrote: Maxim Veksler wrote: Use iptables-save to save your current rules as to the iptables rules files. It will be loaded on the next reboot using iptables-restore. Ha? I must be missing something, I would like the rules to load _automatically_ on next boot. Using iptables-restore is great, provided that someone/something invokes it on system reboot, that is exactly what I'm doing in the script attached to my previous email. Is there already something that will handle this automatically? You can have up rules in your network configuration file /etc/network/interfaces, such an up rule can load the firewall ruleset. This can also be a pre-up rule to load the rules before the interface is up. Something like: iface eth0 inet dhcp pre-up iptables-restore /root/iptables.rulez Hello Baruch, Let me try explaining what is it that I find missing in Debian's iptables setup: The most basic use case is for a sysadmin to configure rules and expect them to survive reboot. This is the behavior he is familiar with from nearly every enterprise FW device. Here, on Debian OTOH he's instructed to script in /etc/network/if-pre-up.d to have the system load iptables rule set on boot, reasonable except for the single issue of him required to also _remember_ to iptables-save those rules on each modification. I find this process error prone. The is not a single utility (AFAIK) in Debian repository to automate this process. I think that the optimal work method would be for the system to write iptables rules on shutdown and have them restored back next boot. I'm doing this in my firewall script by taking actions on start|stop. Thus, you know that all you need to do is run iptables -A INPUT... to have your firewall ticking. Cheers, Baruch = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: ADSL connection problem
On 7/3/07, Amos Shapira [EMAIL PROTECTED] wrote: On 03/07/07, shlomo solomon [EMAIL PROTECTED] wrote: Sorry if this arrives twice, but my original message to [EMAIL PROTECTED] didn't arrive after waiting an hour. To the list managers - maybe an attachment to the end of messages is in order as it appears that some people have missed your announcement about this. Perhaps a bounce email explaining the alias is no longer valid and that email is accepted only on ¨linux-il+(a-t)+cs.huji.ac.il¨ ? --Amos -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: Keeping iptables rules across reboots on Debian (lenny) ?
On 7/3/07, Gil Freund [EMAIL PROTECTED] wrote: On 7/3/07, Vassilii Khachaturov [EMAIL PROTECTED] wrote: Let me try explaining what is it that I find missing in Debian's iptables setup: If you have console access, it's a different thing. I agree that, perhaps, a mid or low priority debconf option to change it to auto-save every change would be reasonable, as long as it is not a default. I don't think you will find a consensus on what the correct behavior should be. I, for one, see this as reasonable. Debian is a general purpose OS. It's impossible predict the actual usage and environment in which it will be used. Consider the following defaults: Squid defaults to a restrictive mode by default (no access) DHCPD will start automatically upon installation CUPS web access is restricted to localhost Exim is the default MTA DHCP client will not send the hostname While I find those annoying, I would not consider them bugs. Because they aren't. Those are limitations by design, some due to security considerations while other are purely because of popcon statistics. iptables on Debian OTOH is simply put Plain Broken. It is not usable for 99% of the use cases, which is why I think action should be taken. Perhaps a versioning framework should be developed and have iptables recommend iptables-persistent or something like that. I'm thinking about a script that can run either in sysv mode or in daemon mode that will monitor the active rule set and if needed create new revision of the rule file, save the current rules and generate md5 hash to verify everything is OK on next reboot. V. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Gil Freund, Systems Analyst --- Sysnet consulting [EMAIL PROTECTED], http://www.sysnet.co.il voice: +972-54-2035888, Fax: +972-8-9356026 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Keeping iptables rules across reboots on Debian (lenny) ?
Hi list, I've installed lenny on my parents home PC, it works great (as always). They have russion login environment, the grandsons are happy with hebrew (thanks user-he) and I myself am very satisfied with english. I find something lacking - the ability to save iptables rules across system reboots. I've looked at bug listings for iptables, it seems that once there was such script. It was called /etc/init.d/iptables but for some reason it has been removed. Why? In the meaning time I've wrote my own version, can be downloaded here [1]. Does some one know of a better way to have persistent iptables rules then an init.d script ? Thank you, Maxim. [1] http://solarwall.svn.sourceforge.net/viewvc/*checkout*/solarwall/trunk/misc/contrib/init.d/firewall setup : mkdir /var/lib/network/ echo 'ENABLED=yes' /etc/default/firewall wget -O /etc/init.d/firewall http://solarwall.svn.sourceforge.net/viewvc/*checkout*/solarwall/trunk/misc/contrib/init.d/firewall -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Keeping iptables rules across reboots on Debian (lenny) ?
On 7/2/07, Lior Kaplan [EMAIL PROTECTED] wrote: Maxim Veksler wrote: Use iptables-save to save your current rules as to the iptables rules files. It will be loaded on the next reboot using iptables-restore. Ha? I must be missing something, I would like the rules to load _automatically_ on next boot. Using iptables-restore is great, provided that someone/something invokes it on system reboot, that is exactly what I'm doing in the script attached to my previous email. Is there already something that will handle this automatically? Thank you, -- Lior Kaplan [EMAIL PROTECTED] http://www.Guides.co.il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Transferring named pipes data over exported NFS ?
Hello list, I'm trying to make an named pipe using mkfifo and pass data in it, over nfs exported directory. host1 cd /opt/REAL11/Content/ host1 mkfifo npipe host1 cat /dev/urandom /opt/REAL11/Content/npipe Then I mount this directory on host2 and do host2 cat npipe This does not work. Any ideas why ? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Any experience with cfengine anyone ?
Hi, I'm trying to understand whats so great about CFEngine compared to a normal scp of configuration files ? Whats the real intelligence of it? Has anyone here had experience with the application and will be willing to share ? Thank you, Maxim. (If someone gets this message twice, please grill the wasted bytes.). -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Description of /proc/PID/* ?
Hello everyone, My quest for the answer to Can I determine if my stdout redirected lead me to /proc. Is there some good documentation of this FS? I'm wondering about use cases for the various information exported. For the answer, in case people wonder, here it is: [EMAIL PROTECTED]:/tmp/testbash$ cat fd_report.sh #!/bin/bash declare STDOUT=$(readlink /proc/$$/fd/1) # Redirect stdout to stderr for the whole run. # (redirecting is fine but we still need to report status to user). exec 2 if [ -f $STDOUT ]; then echo My stdout is redirected to: $STDOUT else echo Running normal, stdout is at: $STDOUT fi file $STDOUT Example run: [EMAIL PROTECTED]:/tmp/testbash$ ./fd_report.sh Running normal, stdout is at: /dev/pts/3 /dev/pts/3: character special (136/3) [EMAIL PROTECTED]:/tmp/testbash$ ./fd_report.sh /tmp/file My stdout is redirected to: /tmp/file /tmp/file: empty Please note that this will not work for when stdout is redirected to other device then a file (char device, fifo and co.) [EMAIL PROTECTED]:/tmp/testbash$ ./fd_report.sh /dev/null Running normal, stdout is at: /dev/null /dev/null: character special (1/3) I would like to react differently if my output is redirected to stdout or to a file; I can think of several ways that might give leads to someone but none that actually seems elegent, to but none Reading stdout redirection target from bash scripts ? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Description of /proc/PID/* ?
On 5/20/07, Gilad Ben-Yossef [EMAIL PROTECTED] wrote: Maxim Veksler wrote: Hello everyone, My quest for the answer to Can I determine if my stdout redirected lead me to /proc. Is there some good documentation of this FS? I'm wondering about use cases for the various information exported. man proc and if you distro is not updated: vi /usr/src/linux/Documentation/filesystems/proc.txt or something very similar to that. Great! man proc - so simple... As for use cases; here are some that google picked up. Cooler ones are welcome. http://www.samag.com/documents/s=8920/sam0311a/0311a.htm http://systhread.net/texts/199910tfsp.php http://gentoo-wiki.com/HOWTO_TCP_Tuning Gilad -- Gilad Ben-Yossef [EMAIL PROTECTED] Codefidence. A name you can trust(tm) http://www.codefidence.com Phone: +972.3.7515563 ext. 201 | Cellular: +972.52.8260388 SIP: [EMAIL PROTECTED] | Fax: +972.3.7515503 Lacking fins or tail the gefilte fish swims with great difficulty. -- A Jewish Haiku -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: bidiv and the default $COLUMNS value
On 5/6/07, Nadav Har'El [EMAIL PROTECTED] wrote: On Sat, May 05, 2007, Avraham Rosenberg wrote about bidiv and the default $COLUMNS value: After rereading the man page for bidiv, I cheched: echo $COLUMNS. As suspected, I got an odd number: 99. Question: Where is this value defined ? I completely missed this question (which has nothing to do with bidiv). So here is a brief history of COLUMNS... COLUMNS is a variable set by your shell (zsh, bash, tcsh, or whatever you're using). The idea is that your shell knows what is the width of your terminal and passes this knowledge to the programs it runs; A few of the familiar Unix programs use this knowledge - for example ls by default shows the file listing in multile columns, up to the terminal's width. As you saw, bidiv also uses this variable. In the old days, terminals used to have fixed widths; If you had a vt100 terminal (TERM=vt100), then the width was always 80. If you had a ATT 5620 terminal, the width was 88, and so on, and the termcap or terminfo libraries was used to get this information based on the terminal name. However, when resisable windows appeared in Unix (on the aforementioned 5620, and in X-Windows), this fixed width was no longer enough, and the terminal's (or actually, terminal emulator window's) width could be changed at any moment. This is when three new facilities were added to Unix. First, a window width/hight setting was added to the tty (the tty is the Unix mechanism for a terminal emulator to connect to a process, usually a shell, running in it). See stty -a (and the TIOCSWINSZ ioctl). This was almost enough - your shell and the processes it runs can now figure out at any moment what's the window's current size. But should the shell (which needs to know the terminal's width, e.g., for command line editing) try this ioctl on every command? Instead of forcing it to check every time, a new signal was invented - SIGWINCH, window change. When the terminal emulator is resized, it sends its child process (namely, your shell) a SIGWINCH signal. The shell then uses the ioctl to get its current window size, and remembers it. The third mechanism is a shell variable, COLUMNS, which gets updated when the shell learns of a new window width. This feature is useful because ioctl's are nonstandard or complex and using variables is easier; it also allows the user to easily override the width; And it also works with pipes and redirections. Learning something new everyday. What is tput then? I know it speaks with the terminfo db and that it's a rather portable to method to encode color strings (try tput setaf 1; whoami; tput setaf 7). I assume this adds a fourth mechanisms? ncurses being 5th? [EMAIL PROTECTED]:~$ echo $COLUMNS 88 [EMAIL PROTECTED]:~$ tput cols 88 #resizing window... [EMAIL PROTECTED]:~$ echo $COLUMNS 112 [EMAIL PROTECTED]:~$ tput cols 112 -- Nadav Har'El| Sunday, May 6 2007, 18 Iyyar 5767 [EMAIL PROTECTED] |- Phone +972-523-790466, ICQ 13349191 |I have a great signature, but it won't http://nadav.harel.org.il |fit at the end of this message -- Fermat -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Querying apt for package repository source ?
On 5/1/07, Lior Kaplan [EMAIL PROTECTED] wrote: Maxim Veksler wrote: I don't ask apt to store history of download source of package, all I'm asking is that with the current state, when all repositories are configured in sources.list to get a reply from apt that if I ask for package X he will wget it from http://heaven.org/angel.deb. To follow your example for unstable: I don't care for updates. You have your local copy(s) of Packages.gz please tell me what package you choosed (after you ran you algorithms.cc) and from what repository will you be fetching it, that's all I'm asking. A workaround (and not a solution). 1. Find the file name. $ apt-cache show user-he | grep Filename Filename: pool/main/u/user-he/user-he_1.0.14_all.deb 2. Find the repository $ apt-cache policy user-he user-he: Installed: 1.0.14 Candidate: 1.0.14 Version table: *** 1.0.14 0 500 http://mirror.hamakor.org.il unstable/main Packages 100 /var/lib/dpkg/status 3. Do some combination to build an exact URL. If you want a straight solution, you'll have to build something on your own. Why? That's perfect. I have several sources for ffmpeg, querying apt-cache I get medibuntu.sos-sts.com that's exactly what I needed. $ apt-cache policy ffmpeg ffmpeg: Installed: 3:0.cvs20060823-3.1ubuntu4+medibuntu2 Candidate: 3:0.cvs20060823-3.1ubuntu4+medibuntu2 Version table: *** 3:0.cvs20060823-3.1ubuntu4+medibuntu2 0 500 http://medibuntu.sos-sts.com feisty/free Packages 100 /var/lib/dpkg/status 3:0.cvs20060823-3.1ubuntu4 0 500 http://il.archive.ubuntu.com feisty/universe Packages 500 http://archive.ubuntu.com feisty/universe Packages Thanks Lior :) -- Lior Kaplan [EMAIL PROTECTED] http://www.Guides.co.il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Querying apt for package repository source ?
Hi, I'm preparing my laptop for egdy to feisty upgrade. My first step is identifying all packages installed on my system coming from not official Ubuntu repo. I've started by commenting out all of them from sources.list (have ~5 of those), following sudo aptitude update. This gave me all foreign packages under Obsolete and Locally Created Packages in aptitude interactive mode. Now I wish to continue by resuming the previously commented out repositories, and identifying each package from which repository it comes from. This will give me a perfect status on required steps to accomplish a successful upgrade and more importantly could suggest what software will break (because no feisty deb has been created for it yet). So, to make a long story short - How can I query apt-get/aptitude/apt-* for package from repository data ? Thanks guys. P.S, OT, btw, foo-msg and co. This whole thing it to get subversion v1.4, which for some reason (bad!) has does have rpm for RH4 but no .deb for Debian 3.1/Ubuntu 6.10. This in turn to enable me seeing meld diff of a checkouted source on the RH4 box (using svn1.4) from on a mapped via sshfs folder in my Ubuntu 6.10 laptop. Meld FYI can automagically detect that you are diffing from an svn directory and display you those diffs (local copy vs. HEAD revision). -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Querying apt for package repository source ?
On 4/30/07, Lior Kaplan [EMAIL PROTECTED] wrote: Maxim Veksler wrote: P.S, OT, btw, foo-msg and co. This whole thing it to get subversion v1.4, which for some reason (bad!) has does have rpm for RH4 but no .deb for Debian 3.1/Ubuntu 6.10. This in turn to enable me seeing meld diff of a checkouted source on the RH4 box (using svn1.4) from on a mapped via sshfs folder in my Ubuntu 6.10 laptop. Meld FYI can automagically detect that you are diffing from an svn directory and display you those diffs (local copy vs. HEAD revision). subversion 1.4.2 is the version in debian stable (= Etch), testing and unstable at the moment. See http://packages.debian.org/stable/devel/subversion You can find a backport from 1.4.2 to oldstable (= Sarge or 3.1) at http://www.backports.org/debian/pool/main/s/subversion/ It was done by the same debian maintainer... Enjoy. Thanks for helping Lior :) Yhea, I know the new shiny Debian stable has svn 1.4. That helps, and I could probably take the backport and use it on my Ubuntu 6.10 and it will work as well. Great (I've started the upgrade by now so guess I'll just let it run). The fact I'm more curies about though is that you as a Debian developer don't have a straight answer to my main question in this email. Is what I'm asking such a exotic request? Please don't get me wrong, there is not a inch of complaint in this reply it's that I'm amazed that such a simple request can't be answered with apt-magic repository php5-gd. Anyway, I've started looking at the issue. It seem that the real horse behind apt is libapt (/usr/lib/libapt-pkg-libc6.3-6.so.3.11.0). I can't seem to able to find any documentation for the API. Now, apt-get is something the deity(1) team wrote, but take aptitude for example; did he/they used some reference or do I need to start emailing the original dev's if something isn't working for me? (I'm looking for a very quick hack here, don't think I'll be getting any further then that). Looking at the apt source apt-0.6.46.4.1/apt-pkg/packagemanager.h and apt-0.6.46.4.1/apt-pkg/sourcelist.h look like the right way to go. Thanks for helping. [1] http://en.wikipedia.org/wiki/Advanced_Packaging_Tool#History -- Lior Kaplan [EMAIL PROTECTED] http://www.Guides.co.il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Querying apt for package repository source ?
On 5/1/07, Lior Kaplan [EMAIL PROTECTED] wrote: Maxim Veksler wrote: On 4/30/07, Lior Kaplan [EMAIL PROTECTED] wrote: Maxim Veksler wrote: P.S, OT, btw, foo-msg and co. This whole thing it to get subversion v1.4, which for some reason (bad!) has does have rpm for RH4 but no .deb for Debian 3.1/Ubuntu 6.10. This in turn to enable me seeing meld diff of a checkouted source on the RH4 box (using svn1.4) from on a mapped via sshfs folder in my Ubuntu 6.10 laptop. Meld FYI can automagically detect that you are diffing from an svn directory and display you those diffs (local copy vs. HEAD revision). subversion 1.4.2 is the version in debian stable (= Etch), testing and unstable at the moment. See http://packages.debian.org/stable/devel/subversion You can find a backport from 1.4.2 to oldstable (= Sarge or 3.1) at http://www.backports.org/debian/pool/main/s/subversion/ It was done by the same debian maintainer... Enjoy. Thanks for helping Lior :) Yhea, I know the new shiny Debian stable has svn 1.4. That helps, and I could probably take the backport and use it on my Ubuntu 6.10 and it will work as well. Great (I've started the upgrade by now so guess I'll just let it run). The fact I'm more curies about though is that you as a Debian developer don't have a straight answer to my main question in this email. Is what I'm asking such a exotic request? Please don't get me wrong, there is not a inch of complaint in this reply it's that I'm amazed that such a simple request can't be answered with apt-magic repository php5-gd. I do think it's an exotic request, and the reason is that it's not in APT's responsibilities. Apt should manage software installation and removal, which it does based on your installed packages, and your *current* repositories. What you're asking needs information also on *past* repositories. Lets look at unstable, in which packages come and go relatively quick. It mean, that if I don't update daily, I can find myself with installed packages which currently doesn't exist in the repository. From where should apt take the info about the source repository? I think I was not clear enough on my question. I don't ask apt to store history of download source of package, all I'm asking is that with the current state, when all repositories are configured in sources.list to get a reply from apt that if I ask for package X he will wget it from http://heaven.org/angel.deb. To follow your example for unstable: I don't care for updates. You have your local copy(s) of Packages.gz please tell me what package you choosed (after you ran you algorithms.cc) and from what repository will you be fetching it, that's all I'm asking. On a more technical side: When you create a package, you do that regardless of any repository, so there isn't any meta data about that. Before installation APT (and aptitude) will resolve the package dependencies and download the .deb files. From there, the installation is done with DPKG, which doesn't know anything about repositories. Same as you would have done the installation manually with DPKG. I hope this answer is enough. Please let me know if you want more info. Anyway, I've started looking at the issue. It seem that the real horse behind apt is libapt (/usr/lib/libapt-pkg-libc6.3-6.so.3.11.0). I can't seem to able to find any documentation for the API. $ apt-cache show libapt-pkg-doc [snip] Description: Documentation for APT development This package contains documentation for development of the APT Debian package manipulation program and its libraries. From a quick play with python-apt, it seems that apt will not report this info to the upper layer. Pasting from apt source apt-pkg/pkgrecords.h pkgRecords does not have such field: class pkgRecords::Parser { protected: virtual bool Jump(pkgCache::VerFileIterator const Ver) = 0; public: friend class pkgRecords; // These refer to the archive file for the Version virtual string FileName() {return string();}; virtual string MD5Hash() {return string();}; virtual string SHA1Hash() {return string();}; virtual string SourcePkg() {return string();}; // These are some general stats about the package virtual string Maintainer() {return string();}; virtual string ShortDesc() {return string();}; virtual string LongDesc() {return string();}; virtual string Name() {return string();}; // The record in binary form virtual void GetRec(const char *Start,const char *Stop) {Start = Stop = 0;}; virtual ~Parser() {}; }; The Ubuntu upgrade is almost over here, I don't think I will be pursuing this issue any further. Thank you for the answers Lior. Enjoy. You too, and keep up the great work. -- Lior Kaplan [EMAIL PROTECTED] http://www.Guides.co.il -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word
Re: strange behaviour of montage (imageMagick)?
On 4/29/07, Avraham Rosenberg [EMAIL PROTECTED] wrote: Good morning, Answering my own question: The use of the construct for i in .., when the order of execution is important is the mistake. I'll have to rewrite the script. Nothing like a good night's sleep, to discover such fallacies. Cheers, Avraham I'm not sure what is it that your doing, but: A. Thanks for the mapa.co.il tip, it works great with firefox on Ubuntu. B. Mind posting it when your done? Maxim. -- Please avoid sending to this address attachments in excess of 2MByte, or any Excell or Powerpoint attachments. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Find the usb device pragmatically
On 4/28/07, Amos Shapira [EMAIL PROTECTED] wrote: On 26/04/07, Ehud Karni [EMAIL PROTECTED] wrote: point. If you have only one such usb device you can do something like this (in bash): DEV=`echo /dev/ttyUSB?` and you'll get your device. Just as a side note - the echo is redundant, it's enough to do DEV=/dev/ttyUSB? --Amos (crusader against redundant echo's and cat file | statements) You would love http://partmaps.org/era/unix/award.html -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: debian netinst q
On 4/27/07, Yedidyah Bar-David [EMAIL PROTECTED] wrote: On Fri, Apr 27, 2007 at 06:05:27PM +0300, Shimon Panfil wrote: On Fri, Apr 27, 2007 at 03:59:40PM +0300, Baruch Even wrote: * Shimon Panfil [EMAIL PROTECTED] [070427 14:32]: Hi Folks, I've just made instalation of debian 4.0 using netinst CD. All is fine safe a couple of minor things: Installer did not asked me if want graphical login, set gdm or something like that automatically, second it did not asked for root passwd and set something that I do not know and it did not asked me if I want grub or lilo and set grub (I definetely prefer lilo!). How did you boot the installer? If you just pressed enter at the first installer screen it should have presented you with a textual installer that by default would have asked you for root password and also for your computer tasks, if you chose as a task Desktop it automatically installs X11 with GDM and the whole Gnome desktop environment. I see. Can I have X11 without GDM Gnome etc? Yes. Try something like apt-get install xorg I did not check what exactly it installs - you might want to install some more stuff even if you do not want gnome/kde. Shouldn't this be # aptitude install xserver-xorg ? -- Didi = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Ubuntu sudo security (was : debian netinst q)
On 4/27/07, ronys [EMAIL PROTECTED] wrote: Hi, Regarding root, IIRC, 'sudo' is configured to allow the user to get root access, e.g., 'sudo bash' should give you a root shell. This is the approach taken by Ubuntu as well - root itself is disabled, all root work done via sudo. The idea behind this is better security. I'm not ocnvinced that this is the case, but that's the intent. Security? I think it's a combination of convenience for the user and a very weak form of obscurity. For the root user I would choose a better, longer, more random combination of characters then I would set for my own daily used account. The attacker would surly have easier time breaking into my account then the root account for several reasons: ssh noroot, password, automatic blocking of failed attempts and more. There are several situations where you might provide your password to a fellow friend, this does not mean you like to give him complete control over your box. For general system administration. You are playing with your environment, you might have some binary which you placed in ~/bin/ there is the a chance of you using sudo to by mistake running something from this bin path, take for example sudo mkdir newdir, mkdir is a bash wrapper script the checks if the dir exists and if it does it first rm it (a stupid script, but for the sake of example it will do) the only issue is your wrapper script has a bug causing it to rm /home or even better /. If you'd use su - such stuff would never happen. I can think of several more reasons where the normal user should not be granted by default root access, think of ssh private-key logins done from your laptop to your server machine done by a 3rd person. Generally speaking I think that this is a Ubuntu bug that is OK for the desktop version but should be avoid for anything else. Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Private Hebrew Web Site Template
On 4/26/07, Oded Arbel [EMAIL PROTECTED] wrote: I'm not familiar with typo2. I wouldn't touch typo3 with a laser guided radioactive stick. Very poorly written php, impossible to install. No documentation. -- Oded = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Find the usb device pragmatically
On 4/24/07, ik [EMAIL PROTECTED] wrote: Hello, I have a serial usb device, that from time to time disconnect according to the kernel (dmesg): usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1 ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 And then as you can see, the kernel assign it to a new address. I'm looking either at a hint of what should I be looking on what causing it to disconnect, or for a bash/perl (or C) way to find whyat is the active usb /dev/ device to use. Don't know what could be causing the disconnect, try replacing the cable (Worked for me once). The kernel I'm using is 2.6 (at the moment 2.6.20) on Fedora Core 6. Any hints and tips on the subject are more then welcome Now, for continuously naming your device with a fixed identifier you should be looking at your udev rules. Read this paper http://reactivated.net/writing_udev_rules.html and use udevmonitor to see what's going on when you plug your device. Then locate your udev.d folder (on debian it /etc/udev/rules.d/) and add your custom rule. Try to be a restrictive as possible, preferably depending only the device's serial number or such. Thanks, HTH Ido -- http://ik.homelinux.org/ Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Transcoding video for net friendly size
Hi list, I have a video I captured using my Fuji cam, the only problem is it's 580MB for 8min video. The info from mplayer is as follows: Playing DSCF3012.AVI. AVI file format detected. VIDEO: [MJPG] 640x480 24bpp 30.000 fps 9215.4 kbps (1124.9 kbyte/s) == Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 16000 Hz, 1 ch, u8, 128.0 kbit/100.00% (ratio: 16000-16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) == open: No such file or directory Couldn't open: /dev/mga_vid open: No such file or directory Couldn't open: /dev/mga_vid [VO_TDFXFB] Can't open /dev/fb0: No such device. [VO_3DFX] Unable to open /dev/3dfx. == Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder) == alsa-init: using device default alsa: 48000 Hz/1 channels/1 bpf/16384 bytes buffer/Unsigned 8 bit AO: [alsa] 48000Hz 1ch u8 (1 bytes per sample) Starting playback... VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar 422P as output csp (no 1) Movie-Aspect is undefined - no prescaling applied. I would like to transcode it to something under 100mb, so that I can upload it to UT. Could some one please share a tip or more. I wouldn't mind using command line, but something with GUI is preferred. I'm on Ubuntu 6.10. I think I should lower the fps to something around 22, user codec with better compression ratio for video and obviously encode sound with something like mp3. Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Connectivity testing for specific gateway on a multi gateway machine
Hi, I have X default getaways on my machine, I would like to test for reachability from my machine outside using gw X1. All gateways exist on the Internet. The way I'm thinking to solve this is by configuring a specific route via gw X1 IP address to some host on the Internet (say 194.90.1.5) then doing continues ping to it (with 60s interval). I can see on the output of ifconfig ppp1 if the number of RX packets increased. I'm trying to solve a ppp going down problem by rerunning wvdial on it by requirement. Any ideas on a proper solution? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: nfs permissions
On 4/22/07, Yahav Biran [EMAIL PROTECTED] wrote: Hi all, My application is running on one host(local) and integrate with another application that runs on another host(remote). during its work the two applications are using the a NFS shared folder from my application, doing some processing on some of the files there and save it there. Im using umask 022. In order that the remote user will be able to have a write access, I added it on the remote machine to the same group of the user my application is runnig on the local machine(I first created it with the same name on both machines). But I still exprencing a problem to get a write permission on the shred folder from the remote user. Thanks Yahav Lets see your /etc/exports. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Connectivity testing for specific gateway on a multi gateway machine
On 4/22/07, shimi [EMAIL PROTECTED] wrote: On Sunday 22 April 2007 20:11, Maxim Veksler wrote: Hi, I have X default getaways on my machine, I would like to test for reachability from my machine outside using gw X1. All gateways exist on the Internet. The way I'm thinking to solve this is by configuring a specific route via gw X1 IP address to some host on the Internet (say 194.90.1.5) then doing continues ping to it (with 60s interval). I can see on the output of ifconfig ppp1 if the number of RX packets increased. I'm trying to solve a ppp going down problem by rerunning wvdial on it by requirement. Any ideas on a proper solution? I am assuming every DGW is on a different pppX ? If so, you can simply use ping -I iface (where iface is other IP of the interface or device name). If not, and they all go through the same interface, I guess routing by destination like you said is the right solution... -- Shimi Good tip, thank you. Here's something I've scratched, I will be calling this via cron on a per minute interval. #!/bin/bash ## ppp1 is the interface of Motorola V3 handheld ### # ping # # -I interface address or device name # -c count # -i interval # ( ping -I ppp1 -c 3 -i 0 194.90.1.5 if [ $? != 0 ]; then { PID_OF_WVDIAL_PELE=`cat /var/run/ppp1.pid` kill $PID_OF_WVDIAL_PELE ps -e -o pid |grep -E $PID_OF_WVDIAL_PELE$ if [ $? != 0 ]; then { sleep 10 kill -9 $PID_OF_WVDIAL_PELE } fi #//ps|grep $? echo $(date): Restarted MotoV3 ppp1 connection /tmp/ppp1.log wvdial } fi #//ping $? ) /dev/null 21 Public Domain ;). -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Wireless PCI card that can act as Access Point ?
Hello, Could someone please recommend a PCI WiFi card with prism 2/2.5/3 chipset available for purchase in Israel ? I would like to make an AP from it based on RH4. http://www.linux.com/article.pl?sid=06/07/10/1729226 Can't find any of those in Zap or anything http://wiki.personaltelco.net/index.cgi/Prism2Card. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: dynamically configuring ssh ip address
On 4/15/07, Ehud Karni [EMAIL PROTECTED] wrote: On Sat, 14 Apr 2007 16:18:20 +1000, Amos Shapira wrote: That said, I'm not sure that I can trust SSH_CLIENT/SSH_CONNECTION since they are passed from the client. Maybe a getpeername(2) on stdin/stdout can be used as a more secure way to obtain the client's IP. You are mistaken. You can trust the SSH_CLIENT/SSH_CONNECTION, it is taken from the TCP stack, not from the client (same as getpeername). Yes, I was thinking about this one. Assuming you do get SSH_CLIENT passed to you by the client that connects, the fact he is passing your anything means the client has already passed the authentication phase! I would say that if it was a rouge client you have now bigger problems then him faking his source IP address to wary about. This to imply that I trust the openssh folks to not leave such obvious holes in their software implementation and I assume SSH_CLIENT is safe to rely on. Ehud. Maxim. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: dynamically configuring ssh ip address
On 4/14/07, Amos Shapira [EMAIL PROTECTED] wrote: On 13/04/07, Yehoshua (Shay) O'Hayon Suchar [EMAIL PROTECTED] wrote: Amos Shapira wrote: On 13/04/07, *Moshe Leibovitch* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It may sound too simplistic, but you can mail it to a shell alias which will run a script. Thanks for the idea, but I can only access mail at work through Outlook. Can't you configure your client/outlook account to automatically send a mail to another machine in the internal network? I suppose I can but ssh sounds so much easier and stright-forward, without dependence on having Outlook running all the time... I assume you are aware of the way you run commands on the server with ssh. Example for those who don't: [EMAIL PROTECTED]:/$ ssh localhost echo ssh-server-side: \$SSH_CLIENT ssh-server-side: 127.0.0.1 45116 22 [EMAIL PROTECTED]:/$ CLIENT_SIDE_VAR='This is simple bash interpretation' [EMAIL PROTECTED]:/$ ssh localhost echo $CLIENT_SIDE_VAR This is simple bash interpretation [EMAIL PROTECTED]:/$ echo STDIN redirection example | ssh localhost cat STDIN redirection example You can also combine them all into one ssh invocation: [EMAIL PROTECTED]:/$ echo STDIN redirection example | ssh localhost echo ssh-server-side: \$SSH_CLIENT; echo $CLIENT_SIDE_VAR; cat ssh-server-side: 127.0.0.1 45116 22 This is simple bash interpretation STDIN redirection example --Amos Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
ppp dialing with DATA POZ on ubuntu
Hi list, I'm connecting to to iNet using pelephone POZ, via ppp connection. The thing is I need to add custom route each time I get the connection up. My question is am I doing something wrong or is this the way it's supposed to work or do I need to script the grepping of ifconfig by myself? In case anyone wonders, I'm attaching the config files I'm using to connect with pelephones' DATA POZ thingy on Ubuntu 6.10 (copy paste from dokuwiki format). Configuration files * cat /etc/wvdial.conf file [Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 Modem Type = USB Modem ISDN = 0 New PPPD = yes Phone = #777 Modem = /dev/ttyACM0 Username = [EMAIL PROTECTED] Password = pcl Baud = 460800 /file * cat /etc/ppp/peers/pelephone file # This optionfile was generated by pppconfig 2.3.11. # # hide-password noauth connect /usr/sbin/chat -v -f /etc/chatscripts/pelephone debug /dev/ttyACM0 115200 defaultroute noipdefault user [EMAIL PROTECTED] /file * cat /etc/chatscripts/pelephone file # This chatfile was generated by pppconfig 2.3.11. # Please do not delete any of the comments. Pppconfig needs them. # # ispauth CHAP # abortstring ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED # modeminit '' ATZ # ispnumber OK-AT-OK ATDT#777 # ispconnect CONNECT \d\c # prelogin # ispname # isppassword # postlogin # end of pppconfig stuff /file Connection Method code sudo wvdial pelephone ifconfig ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:10.x.x.x P-t-P:85.159.x.x Mask:255.255.255.255 route add -net 10.11.12.13/24 gw 85.159.x.x /code Tips for tricks. Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Hacked server
On 4/8/07, Hetz Ben Hamo [EMAIL PROTECTED] wrote: You could do few things: 2. Have some logs emailed to you from the server on a daily basis (crontab). By default, Redhat/CentOS/Fedora does this automatically, but you can enhance it to send pack few log files and email them to you as .tar.bz2 for example. That way you could check whats going on to see who entered when etc.. (logs like ssh, httpd, sendmail). Ususally when you compress text files, they become small, so the email wouldn't be really big. That is impractical advise. No one has time the go by daily basis over the logs of every service, the only way your logs will prove to be useful that way is *after* the break in. You should be looking at logwatch. 3. Make sure your iptables/firewall settings will only let specific needs and nothing else comes in. nmap is your friend to check, along with stuff like SAINT etc. If you don't know firewall settings well, just ask here. I'm sure someone would happily assist you with it. Also, for user friendly firewall manipulation - http://www.fwbuilder.org/ 4. have a cron script that will backup your web server stuff nightly. If you don't have a tape backup or spare space for backup, then pack the essential parts and use the script to email it to you (GMail account can hold almost 3 gigs, so you can save the backup there) dirvish.org is a gift from guru(s). Hetz Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: VMWare and native Windows XP
On 4/5/07, Valery Reznic [EMAIL PROTECTED] wrote: Good day. I have dual-boot computer with Linux on one partition (sda1) and WinXP on the other (sda2). Linux has VMware installed. (VMware-server-1.0.2-39867) Now, I want boot into Linux, and from VMware run windows, installed in the sda2. VMware-server allows specify whole disk or partition to be disk for virtual machine. I specify it. And try to but VM. To my surprise I got grub boot loader, select windows, and windows began to boot and the fail. Windows was installed on (native) SATA drive, and VMware make Windows think drive is LSI, which was not installed in the first place. In linux adding modules mptbase.ko mptscsih.ko mptspi.ko to the initrd can solve the problem. Is it a way to achive same on Windows, i.e boot windows, which was installed native under VMWare ? Valery See this page for SCSI Disk Drivers http://www.vmware.com/download/server/drivers_tools.html I vaguely remember solving a similar problem by booting into windows, installing the drivers and then booting back into Linux, loading vmware and booting into windows - should work. Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Performance monitoring for selected process
On 4/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, From your mail I cannot understand the context of your problem. Are you looking for profiling tools to improve programs developed by you or a user that wants to understand why a process is slow? Both. The application in question is developed in-house. Aside from profiling each module I would like to know why the service chocks after calling it for X concurrent sessions. I'm looking for a tool that could show, in real time, why the service is busy: is it cpu / io or memory (causing kernel to swap) intensive. I would have used the term bottle neck to describe what I'm looking to solve, it's just that it's possible that it's not a bottle neck but a simple bug. Thank you for helping, Maxim. Best regards, Yaron Kahanovitch - Original Message - From: Maxim Veksler [EMAIL PROTECTED] To: Linux-IL, linux-il@linux.org.il Sent: 18:59:17 (GMT+0200) Asia/Jerusalem יום רביעי 4 אפריל 2007 Subject: Performance monitoring for selected process Hi, Except from stracing -f executables is there some way I can monitor the process for performance? I would like to debug process delayed response activity and need to know when it's doing heavy IO / when it's CPU intensive and when it's all too busy waiting for IRQ. A graphical display would be preferred, textual will do as well obviously. For general system statistics, I've tried the following : 1. sysstat + kSar 2. gnome-system-monitor 3. ksysguard 4. ntop All work great but are too general for my needs, I'm looking for tools that could display single process statistics. Thanks, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Re: Asterisk.il weekend of code
On 4/4/07, Ira Abramov [EMAIL PROTECTED] wrote: Quoting Shlomi Fish, from the post of Mon, 02 Apr: Added to the end of: http://www.shlomifish.org/humour/fortunes/tinic First quote by you that I added to my fortune cookies' collection. Enjoy your immortality! I guess I'm justly being punished for overdoing it this week. Had I believed there were deities I'd say god works in mysterious ways. Shlomif silently ignored my snazy repartee when it was aimed at him but revenge comes in the shape of immortalizing my out-of-context remark without asking me, just because it's aimed at someone else (GSM in another thread if you didn't get it) so all I can say is we have proven that contrary to common shlomif beliefs, he's not a deity, he's all too human (albeit a weird one.) -- works in mysterious ways Ira Abramov http://ira.abramov.org/email/ Cut it out. You can't have your signatures be in such perfect sync on random. Seriously though, I feel this topic has been taken way too far. Stop. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Performance monitoring for selected process
Hi, Except from stracing -f executables is there some way I can monitor the process for performance? I would like to debug process delayed response activity and need to know when it's doing heavy IO / when it's CPU intensive and when it's all too busy waiting for IRQ. A graphical display would be preferred, textual will do as well obviously. For general system statistics, I've tried the following : 1. sysstat + kSar 2. gnome-system-monitor 3. ksysguard 4. ntop All work great but are too general for my needs, I'm looking for tools that could display single process statistics. Thanks, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: [ OT] Re: Telux: Shachar Shemesh on The Smallest RSA Key on 01-April-2007
On 3/30/07, Shlomi Fish [EMAIL PROTECTED] wrote: Hi Julian! On Friday 30 March 2007, Julian Daich wrote: El vie, 30-03-2007 a las 03:23 +0200, Shlomi Fish escribió: Hi all, happy Passover, and happy upcoming April Fool's day! Shachar Shemesh will give on Sunday, 1 April 2007 (April Fool's) a presentation about Why the Smallest RSA Private Key is not 42 (it's 47): By the way, I want to recall that it will the last opportunity to drink beer before Passover. So, those attendees who are interested can think about a place after the meeting. A possibility can be¨ Rosh Pina¨ it is at Bordetsky 5 min. walking from TAU, they have food, a happy hour, also is cheaper than the campus´ coffee shop and you not have to wait for big tables. I don't know about you, but I don't need beer (or any other alcohol or caffeine or sugar or cigarettes or whatever) to feel good. Beer would be nice for people who can enjoy it, but I'm not going to a smoke-filled pub instead of a nice outdoor café, like the TAU Coffee to Go which I really like. If you want to hit a pub later - be my guest. If not - can you consider wine instead? Judging by past experience, the both can (are) mixed exceptionally well together. ;) And remember: The software is FREE, the beer isn't. Regards, Shlomi Fish P.S: I don't drink alcohol at all. Not even the 4 mini-glasses of wine in Passover, or during Purim. I find that people who consume alcohol, caffeine, etc. are much less balanced and tend to be more drowsy and dysfunctional than I am. And I know how to have a good time without them. And no - you don't need to reply to that. Julian http://www.cs.tau.ac.il/telux/lin-club_files/Shachar-Shemesh--RSA-lecture .odp For this, we'll meet on 11-March-2007 at 18:30, in Schreiber 008 (note the change of room from last semester) in the Tel Aviv University campus. More information can be found on the site: http://www.cs.tau.ac.il/telux/ The attendance is free and everyone are welcome to attend. Regards, Shlomi Fish - Shlomi Fish [EMAIL PROTECTED] Homepage:http://www.shlomifish.org/ Chuck Norris wrote a complete Perl 6 implementation in a day but then destroyed all evidence with his bare hands, so no one will know his secrets. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Shlomi Fish [EMAIL PROTECTED] Homepage:http://www.shlomifish.org/ If it's not in my E-mail it doesn't happen. And if my E-mail is saying one thing, and everything else says something else - E-mail will conquer. -- An Israeli Linuxer To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
Someone managed to compile auditd on Ubuntu ?
Hi Everyone, I'm trying to answer what chmod's some files on the (mandriva2006) server. Here's a cool utility for the 2.6 kernel: http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html To play with it I'd to get it running on my laptop, sadly there's no package for Debian/Ubuntu, and I'm getting all sort of quirks trying to compile it. Source at : http://people.redhat.com/sgrubb/audit/audit-1.5.tar.gz Perhaps someone here would like to give a shot at it, and maybe share his tips? http://people.redhat.com/sgrubb/audit/ http://freshmeat.net/projects/linux-audit/?branch_id=63825release_id=247908 btw, too bad http://syscalltrack.sourceforge.net/ ain't good(?) for 2.6. Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Someone managed to compile auditd on Ubuntu ?
On 3/20/07, Baruch Even [EMAIL PROTECTED] wrote: * Maxim Veksler [EMAIL PROTECTED] [070320 15:57]: btw, too bad http://syscalltrack.sourceforge.net/ ain't good(?) for 2.6. You can get a similar effect by using systemtap on a kprobes enabled kernel. It's actually much stronger than syscalltrack. Thanks for the tip. It's an interesting utility, but not suitable for production (IMHO). I need to monitor a very low and minor activity on a production server, doing a kernel level break point for traps just sounds bad. How do I check if my kernel was compiled with kprobes? Thank you. Baruch Max. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Open Asterisk - correct name.
On 3/20/07, Peter [EMAIL PROTECTED] wrote: On Mon, 19 Mar 2007, Geoffrey S. Mendelson wrote: Yesterday I mentioned OpenAsterisk as a fork from Asterisk. I was wrong. The name of the project is OpenPBX. Their web page is http://www.openpbx.org Yes, thanks for that. Still there is no description of the story behind it, but I'll find it. http://www.voip-info.org/wiki/view/OpenPBX.org+FAQ Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Using the code of dead project - Political question
Hello List, A political question if I may. What to do if you wish to use the code of some GPL'ed project hosted on sf.net but the project is dead? Do you fork the project for your own code, or do you start maintaining two different projects? More specifically - I would like to use DAXFi which has been dead for 5 years now. It looks good and it will pretty much fit the bill (if it works). Now, if I decide to use it I will probably custom fit it for own purposes, leaving only the XML core logic. How should I approach this? Should I contact the developer and ask his permission to do so? Should I simply inform him that I will be forking his code? What have you done in a similar occasions? Thanks, and good week to all. Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
do I have some method to manipulating calling shell environment variables?
Hi list, I would like to make changes to my environment variables, using automation (script) that is called conditionally (that is after bashrc was sourced). Do I have some method of doing this in bash? The following obvious method sadly doesn't work: [EMAIL PROTECTED] builder]$ cat setenv.sh export TTOTHER=123 [EMAIL PROTECTED] builder]$ ./setenv.sh [EMAIL PROTECTED] builder]$ echo $TTOTHER -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: do I have some method to manipulating calling shell environment variables?
On 3/12/07, Meir Kriheli [EMAIL PROTECTED] wrote: Sorry for replying to my own post, but looks like the list manager removed the dot at the beginning of the 1st method (something to do with list commands maybe ?). It appears in my sent folder. It should be: . setenv.sh Testing: . setenv.sh Actually I got it ok the first time. I would like to comment that I had no idea source (.) actually runs the file it's sourcing. I was sure it's just a quick short cut to typing each command at the terminal. Because I've used it for something that is cool (IMHO) I would like to share with the list. I'm patching our dev's environment and was looking for a way to automate the PATH setup for them (taking into account that not all the devs are unix gurus). We are using subversion as the scm and scons as the builder. Note that the scons version is local, that is you get it with the source once you checkout, no install is needed (besides python, obviously). With the help you Meir and Peter I now have a setup the allows me to dynamically set the PATH variable once a developer cd's into the root of his checked-out working copy. The OS is RH 4 WS, the shell is bash. It's set up is the following way: $ cat /etc/profile.d/hooks.sh # Add custom hooks to user-activity in the shell export PROMPT_COMMAND='[[ -x Utils/bin/local_setup_bashenv.sh ]] source Utils/bin/local_setup_bashenv.sh' $ pwd /home/hq4ever/development/builder $ cat Utils/bin/local_setup_bashenv.sh #!/bin/bash for export_val in $(python Utils/bin/local_setup_environment.py); do export $export_val; done $ cat Utils/bin/ml_setup_environment.py #!/bin/python import os def find_svn_wcroot(): homedir_len=len(os.getenv('HOME').split('/')) cwddir_len=len(os.getcwd().split('/')) cwddir_text=os.getcwd() for i in range(cwddir_len, homedir_len, -1): if not os.path.exists('/'.join(cwddir_text.split('/')[:i]) + '/.svn'): return '/'.join(cwddir_text.split('/')[:i+1]) #else: #print 'Still ok: ' + '/'.join(cwddir_text.split('/')[:i]) + '/.svn' def setPATH(export_environment): try: os.getenv('PATH').split(':').index(find_svn_wcroot()+'/Utils/bin') except ValueError: export_environment['PATH']=[find_svn_wcroot()+'/Utils/bin'] + os.getenv('PATH').split(':') export_env = {} setPATH(export_env) #export_env['SOMEVAL']=['maxim'] for (k, v) in export_env.items(): print k + '=' + ':'.join(v) Note that I've only written it today and haven't actually tried to work with it, so bugs are real. Cheers -- Meir -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Adding hooks to user actions in linux shells
On 3/8/07, Peter [EMAIL PROTECTED] wrote: You can overload PS1 with any code you want. It will run every time a PS1 prompt is displayed. Good tip, thank you. The answer of curse is PROMPT_COMMAND. http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html Peter -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Two Sound Devices: PCI and USB. Configuration problem.
On 3/7/07, Chaim Keren Tzion [EMAIL PROTECTED] wrote: I have two sound devices. One is an on-board NVidia PCI bus device. The second is an USB headset. The problem is that when I boot up with the USB headset attached, only the USB sound device works and the NVidia PCI device is not recognized. quote # cat /proc/asound/cards 0 [Headset]: USB-Audio - Logitech USB Headset Logitech Logitech USB Headset at usb-:00:02.0-2, full speed /quote If I then run 'alsaconf' the USB device disappears and the NVidia PCI device alone is shown: quote # alsaconf Terminating processes: 5548. Unloading ALSA sound driver modules: snd-intel8x0 snd-ac97-codec snd-ac97-bus snd-usb-audio snd-pcm-oss snd-mixer-oss snd-usb-lib snd-rawmidi snd-pcm snd-seq-device snd-hwdep snd-timer snd-page-alloc. Building card database... Running update-modules... Architecture-specific modutils configuration for x86_64 not found, using defaults Loading driver... Setting default volumes... .. # cat /proc/asound/cards 0 [CK804 ]: NFORCE - NVidia CK804 NVidia CK804 with ALC850 at 0xf8105000, irq 225 /quote If I then unplug the USB headset and insert it again, both devices will show and work properly: quote # cat /proc/asound/cards 0 [CK804 ]: NFORCE - NVidia CK804 NVidia CK804 with ALC850 at 0xf8105000, irq 225 1 [Headset]: USB-Audio - Logitech USB Headset Logitech Logitech USB Headset at usb-:00:02.0-2, full speed /quote How can I configure the system so that both devices will work from the get go, without the need to run alsaconf and remove/reinsert the USB device? My OS is Debian etch TIA, Chaim A workaround, Identify the kernel module being used by the Logitech USB Headset and manually load it. Script at /etc/rc2.d/S99fix-audio: 1.run alsaconf 2. modprobe logitec-headset-module It seems that when you run alsaconf it removes modules (Unloading ALSA sound driver modules) but fails to load them all back. That might be the reason why you don't get your logitec device back after alsaconf finished. When you plug the USB cable out and back in the udev daemon taken care to load the appropriate module. You might want to check /etc/udev/rules.d for proper loading clues. HTH = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Adding hooks to user actions in linux shells
Hi list, I wish to add custom checks for the our dev machines, I would like to hook myself to the action of running binary file. Be it any file or just their build results. What I would like to do is check if their PATH variable is to to WORKING_COPY:$PATH and if not set it, the `best` I see to do this is query on each binary invocation attempt. The shell environment is bash, but if some one tips me of a available functionality in zsh, tcsh, or psh or whatever-sh we will switch to that. Thanks in advance, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: How do I encode Hebrew in PHP?
On 3/6/07, Uri Even-Chen [EMAIL PROTECTED] wrote: Thanks for the help. Although RFC requires breaking long header lines, and your code doesn't break long lines. But besides that, it works. If you want to send mail to all your 120 Knesset members at once, here it is: http://www.speedy.net/knesset/ I hope no one actually considers taking such a foolish act. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]