Re: sipura sp3000 caller id
First it's a very old product that linksys does not support anymore. Second, can you show a SIP trace when dialing and initiate a call? Don't forget to hide IP addresses, auth info and phone numbers :) Ido On Wed, Jul 3, 2019 at 12:42 PM Geoffrey Mendelson < geoffreymendel...@gmail.com> wrote: > I have a sipura sp3000 connected to a BEZEQ line. Customer support says I > have caller ID on the line, but I cant get the ID to be passed to asterisk. > > Does anyone have setup instructions specific to BEZEQ? > > Thanks in advance > > Geoff. > > -- > Geoffrey S. Mendelson, N3OWJ/4X1GM/KBUH7245/KBUW5379 Jerusalem, Israel > ___ > 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: VDSL modem recommendation
I just bought a router actually named VR600 of TP-LINK, and it works great even on vectoring for example. I actually just activated it, and this email is using that router. I like the UI, and the features, but no WRT support for example. But then again, it's a router with a A/VDSL modem, and not just a modem. Ido On Thu, Jun 7, 2018 at 12:22 PM, Geoff Shang wrote: > Hi everyone, > > I'm in the market for a VDSL modem, and after looking at various options, > I'm unsure which I should buy. So I thought I'd ask here for > help/recommendations. > > Last year, I posted to the list about ISP recommendations. As part of > that discussion, I was sent a link to a site listing modems compatible with > Israeli service. Until then, I didn't know that buying your own device was > even an option here. > > As previously mentioned, ISP-supplied modems/routers are an issue for me > as a blind person, as many seem to have visual CAPTCHAs which make it > difficult/impossible to log into the interface. And I don't think my > choice of ISP should be determined by whether or not I can log into their > equipment, I'd prefer to choose based on service (like everyone else). > > So I'm now looking to buy a modem. I have a Ubiquiti Edge Router which I > intend to use as the router, so routing/wi-fi component is not important. > > I started looking at options. The things I thought were important were: > > * Good/best modem performance > > * Support for all/most relevant modem connectivity standards > > * Support for open firmware > > When I started looking, I was looking for modem-only devices. The closest > I could find were modem/routers with only one ethernet port. > > The device that seemed to fit the bill was the Netgear DM200. It has 1 > port (albeit 100 MBPS but VDSL connections aren't exceeding that at the > moment anyway), and it appears to be supported by OpenWRT. > > But then I started seeing some bad reviews. In particular, with the help > of Google Translate, I saw some unhappy people on hometheatre.co.il, > which I considered important as I will be using it here. > > The othere 1-port device I found was the Draytech Vigor 130. This is more > expensive, but I don't mind about that if the device is good. It seemed to > generally get better performance reviews than the Netgear. However, it's > not supported by OpenWRT as far as I can see. > > There were a couple of other things that I also saw time and again. Some > people say that Broadcom chips are better than others , though I've also > seem comment that compatibility with the upstream chipset is the most > important. Also, I saw references to things like vectoring and g.imp, > things I know nothing about but which sound important, and g.fast which > seems like it's going to be the next big thing but which nothing much seems > to support yet. > > People also pointed out that there's really no difference between using a > 1-port router in bridged mode and using a 4-port router in bridged mode. > As neither of the above had the Broadcom chips, and since I had seen quite > a few recommendations for the TP Link 9970/9977, I looked into these. > > The TP Link 9970 and 9977 (9977 is apparently newer) both seem to have the > Broadcom chips and support g.imp. But neither seem to support open > firmware from what I can see. Otheres like the 9980 do support it, but > they don't have Broadcom chips. > > Some people make the argument that if you're using a device in bridged > mode, open firmware is less important, but I'm not sure if I buy that > argument. > > So now I'm a bit confused. I'm starting to lose track of which devices > support what, and I don't really know which of these factors are > specifically important here in Israel and which are more or less important > generally. > > Since I believe that most problems have been solved by others before me, I > thought I'd ask here. > > To repeat, I'm after a good modem. I'm not so concerned about price and I > really don't care about the routing and wi-fi specs as I don't plan on > using them. > > Any advice anyone can provide would be most helpful. > > > Thanks, > Geoff. > > > ___ > 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: voice recognition specialist needed
David, Again, what exactly are your requirements? Do you require to identify a word ? Do you require to understand the whole sentence ? Do you need to know that David is David and not someone else ? The three types of scenarios here are three different types of systems, with three different types of products to use, and the voice signature has it's own companies in that field. To recognize a person, there are few companies in the world that does it, and it costs tons of money, and depends on so many levels. The thing is, that telephony (e.g. land line and sip trunk to land line) always works in 8KHz (usually g711 and g729 in codecs), and that makes things not very good to the subject, however codecs such as OPUS works in Full HD and provides a lot more data to use, but not supported in many places. To understand a sentence, there are voice recognition services, such as Nuance's, that afaik, does not capable in supporting Hebrew at all. Last, you have keyword spotting, for example the way Pago works. You say a name of a city, and it try to figure out pattern that is close enough to that city. It cannot understand all the words, but specific words that is was programmed to find out. For example the Israeli Police uses it for getting your ID number when you want to know about speeding tickets in the IVR, and it doesn't work in all cases. I do not know of any open source solution for any of this type of solutions. AFAIK, Asterisk does not support it by default, but requires plugins depends on the system, or to send recordings to external system. Freeswitch (another open source PBX) does support some of the protocols, but not all, again, depends on what the exact solution is. There is also YATE (another open source PBX), that I have never used, so I cannot say, It's too hard to answer more then that, without you explaining your actual needs. Ido On Mon, Jan 19, 2015 at 5:41 PM, David Ronkin dron...@gmail.com wrote: I know some companies sell this but, lets take Asterisk or similar, can anyone give me a short overview, please: 1. how machure the speech recognition support in a FOSS ? which one is best to start 2. i need basic voice/speech recognition ability, to distingish a man in a short possible time 3. what about hebrew (other langs) support? Thanks! David 2015-01-19 8:17 GMT+02:00 ik ido...@gmail.com: Hi, I'm not that person, but you're message is too cryptic. There are voice signature systems, there are key words spotting, and attempt to decipher meaning of words systems, each system contains difference the requirement of what is required. There are also human language issues to know about, each language has it's own issues to deal with. I do not know of any good open source software for any of that. Ido On Jan 18, 2015 10:54 AM, David Ronkin dron...@gmail.com wrote: Hi all I'm looking for a specialist in voice recognition solutions ( based Asterisk or similar, FOSS preferable of course ) for a long term freelance contract. Only people with relevant experience please contact me off the list david at ok2go.co.il David http://www.ok2go.co.il/ -- בברכה, דוד רונקין *נא בקרו בבלוג של*י: http://dronkin.blogspot.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- בברכה, דוד רונקין *נא בקרו בבלוג של*י: http://dronkin.blogspot.com *הערוץ של מאיר*: http://www.youtube.com/user/ronkinim ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: voice recognition specialist needed
Hi, I'm not that person, but you're message is too cryptic. There are voice signature systems, there are key words spotting, and attempt to decipher meaning of words systems, each system contains difference the requirement of what is required. There are also human language issues to know about, each language has it's own issues to deal with. I do not know of any good open source software for any of that. Ido On Jan 18, 2015 10:54 AM, David Ronkin dron...@gmail.com wrote: Hi all I'm looking for a specialist in voice recognition solutions ( based Asterisk or similar, FOSS preferable of course ) for a long term freelance contract. Only people with relevant experience please contact me off the list david at ok2go.co.il David http://www.ok2go.co.il/ -- בברכה, דוד רונקין *נא בקרו בבלוג של*י: http://dronkin.blogspot.com ___ 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
detecting what does a reboot
Hello I have a server (old centos 5) that does sometimes few times a reboot, in random hours. I removed non root permissions to execute halt, reboot and shutdown, but I wish also to try and track down what causing that reboot. Is there a way to audit-trail or just log any kind of rebooting request (including system calls), and finding out what or whom execute it ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: detecting what does a reboot
Hi Jonathan, We ruled out that it happens from hardware, and at the messages log, you see a normal reboot, we just can't place the finger who or what does it. Thanks, Ido On Sun, Jun 8, 2014 at 1:04 PM, Jonathan Ben Avraham y...@tkos.co.il wrote: Hi Ido, If the reboot occurs as a result of a hardware fault, you might never see anything in the logs. AFAIK nothing in the Centos 5 configuration does a reboot on its own. - yba On Sun, 8 Jun 2014, ik wrote: Date: Sun, 8 Jun 2014 12:11:15 +0300 From: ik ido...@gmail.com To: linux-il linux-il@cs.huji.ac.il Subject: detecting what does a reboot Hello I have a server (old centos 5) that does sometimes few times a reboot, in random hours. I removed non root permissions to execute halt, reboot and shutdown, but I wish also to try and track down what causing that reboot. Is there a way to audit-trail or just log any kind of rebooting request (including system calls), and finding out what or whom execute it ? Thanks, Ido -- 9590 8E58 D30D 1660 C349 673D B205 4FC4 B8F5 B7F9 ~. .~ Tk Open Systems =} Jonathan Ben-Avraham (yba) --ooO--U--Ooo- ---{= mailto:y...@tkos.co.il tel:+972.52.486.3386 http://tkos.co.il skype:benavrhm ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Linux with Android MTP
Sorry, only saw this discussion today. mtp works for me partially. kio-mtp is the only one that works for me, however it is also unstable. Many times the phone must be reinitialize to support mtp, because it losses it's capabilities to do so. sftp, adb and even kdeconnet works well for me, but I dislike all of them because it's not the same as using mass storage like solution. Ido On Tue, Dec 10, 2013 at 7:24 AM, Shlomo Solomon shlomo.solo...@gmail.comwrote: On Mon, 09 Dec 2013 23:24:47 +0200 Diego Iastrubni elc...@kde.org wrote: On 12/08/2013 12:12 PM, Shlomo Solomon wrote: I never got MTP to work with a Galaxy S3 on Mageia 3. I've tried mtpfs and kio-mtp with no success. I may be doing something wrong, but since these are my kids' phones, it was not really urgent. But now I'm about to move from A Galaxy S to Galaxy S4 so the problem of connecting to backup the phone is more urgent. When shit hits the fan, I use adb pull /data/balbla.txt. This WORKS. And yes. MPT on Android is a piece of shite. I miss good old USB mass storage from my GalaxyS1. BTW: keep the GalaxyS. Today my Nexus4 decided to dump on me, and now I cannot even install cyanogenmod on it. The old Sansung is still working. Like a charm. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Thanks. Just a few comments - some of them OT. 1 - I never tried adb - always thought it was overkill to install a developer's tool just to do a backup, but I may have no choice after I get the S4. 2 - Another possible solution would probably be one of the many WiFi solutions such as AirDroid or an FTP server, but I was really hoping I'd be able to continue using basic rsync commands to backup my phone. 3 - I don't know if the above solutions will require root access to the phone. I don't want to void the warranty so at least at first I won't be rooting the phone. 4 - Speaking of rooting, I never understood why this voids the warranty. I'm not a lawyer but this needs to be challenged in court. The last time I read a phone warranty I seem to remember that it referred to the warranty being voided if you install unauthorized software. But who defines what is unauthorized? Google? There are tons of apps on Google Play that require root so does that imply that rooting is allowed? -- Shlomo Solomon http://the-solomons.net Sent by Claws Mail 3.9.0 - KDE 4.10.2 - LINUX Mageia 3 ___ 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: mysql q
Hi, I think you tackle it wrong. If there is no need for accessing the database all the time, why not cache the result in tools such as Memcached or Redis ? If they are different clients (as in agents), then there are other tools at your disposal, such as Varnish, that create cached version for the web. Secondly, the MySQL/MariaDB triggers really basics if you compare them to PG and Fb (true open source solutions), not to mention non open source databases such as SQL Server and Oracle. Third, try to see how you can optimize the page. If there is no need for constant data reading, why does it constantly refresh itself ? Ido On Sun, Nov 17, 2013 at 10:18 AM, Erez D erez0...@gmail.com wrote: hello i have a web page that refreshes all the time to display things from a mysql database which is updated from time to time. however. this meens a lot of un-needed acesses to the database. and this refresshing page may be openede by many browsers. causing a huge load on the database. i know mysql supports triggers, but it seems this is only internal (i.e. trigger may do a query, usually an update query, but this is not what i need). I am looking for a way to leave the connection open with mysql, not sending any queries, just waiting for mysql to notify me when a somthing changes. does mysql support that ? examples of doing that will be nice thanks, erez. ___ 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: mysql q
On Sun, Nov 17, 2013 at 3:39 PM, Erez D erez0...@gmail.com wrote: On Sun, Nov 17, 2013 at 10:36 AM, ik ido...@gmail.com wrote: Hi, I think you tackle it wrong. If there is no need for accessing the database all the time, why not cache the result in tools such as Memcached or Redis ? then i will still need to poll Memcached or Redis. this may speedup things, but it is still polling, which i try to avoid Both Memcahed and Redis are RAM based, while SQL is disk based. You handle them with timestamp for resources, for example last update, and once every X amount of time try to update them directly if a timestamp at the db was changed. If they are different clients (as in agents), then there are other tools at your disposal, such as Varnish, that create cached version for the web. still neab client need to poll the server Secondly, the MySQL/MariaDB triggers really basics if you compare them to PG and Fb (true open source solutions), not to mention non open source databases such as SQL Server and Oracle. Third, try to see how you can optimize the page. If there is no need for constant data reading, why does it constantly refresh itself ? i do not refresh the whole page, i use ajax. Again, it does not matter what you use, you need to know how to cache the data. For example AJAX is not HTTP just sockets, but also XML parser (the X part in AJAX). You can create a stored procedure that every changes to the database will create new content to provide (JSON, XML, Plain Text or any other format you wish), and everyone will use the SP itself. i need a repsonse time from db change, to display on browser of 5 seconds, however the db may not change in days, and then can change every second... if we talk about polling, i need to poll every 5 seconds, but if there is no db change, then this is in vain i want to work event driven, and not polling, so i thought mysql has a builtin machanism for this. if it doesn't i will need to warp it up in some other code - i was trying to avoid that. thanks, erez. Ido On Sun, Nov 17, 2013 at 10:18 AM, Erez D erez0...@gmail.com wrote: hello i have a web page that refreshes all the time to display things from a mysql database which is updated from time to time. however. this meens a lot of un-needed acesses to the database. and this refresshing page may be openede by many browsers. causing a huge load on the database. i know mysql supports triggers, but it seems this is only internal (i.e. trigger may do a query, usually an update query, but this is not what i need). I am looking for a way to leave the connection open with mysql, not sending any queries, just waiting for mysql to notify me when a somthing changes. does mysql support that ? examples of doing that will be nice thanks, erez. ___ 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: OT: Where do I buy battery cells?
Ebay usually much cheaper then local stores in Israel for many parts (but not all). On Fri, Nov 8, 2013 at 5:00 PM, vordoo vor...@yahoo.com wrote: Hi, Where can I buy battery cells to rebuild a battery pack? Looking for Li-Ion spaciously LiMn2o4, 3.7 volt. For this time:-) Willing to pay a bit more in an IL store, but online store with IL or only U.S delivery is OK. Appreciate any recommendations, as buying from an amazon/ebay now-name looks risky with this kind of stuff. Thank! ___ 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 with Android MTP
Hello, I'm using Arch Linux, and have Samsung Galaxy S4. It uses MTP in order to allow me to access files. I'ved read several wiki's (Including Arch wiki) and forums about it, and came out for the following settings (/etc/udev/rules.d/51-android.rules), after install go-mtpfs: # Galaxy S4 GT-I9500 ATTR{idVendor}==04e8, ATTR{idProduct}==685d, SYMLINK+=android_adb, MODE=0666 ATTR{idVendor}==04e8, ATTR{idProduct}==6860, SYMLINK+=android_adb, MODE=0666 ATTR{idVendor}==04e8, ATTR{idProduct}==6860, SYMLINK+=android_adb, MODE=0666, ACTION==add, RUN+=/usr/bin/sudo -b -u ik /usr/bin/go-mtpfs -allow-other=true -android=true /mnt/ando ATTR{idVendor}==04e8, ATTR{idProduct}==6860, SYMLINK+=android_adb, MODE=0666, ACTION==remove, RUN+=/bin/umount /mnt/ando It does mount properly the content, however, when I try to access the content, it keep on looping an remounting everything until I take off the USB cable. I then need to wait several minutes to try again, or the loop just continue ... I can see the remounting also in /var/log/messages and dmesg. What am I missing or doing wrong here ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Linux with Android MTP
The dmesg errors: [90892.247976] usb 4-1.2: new high-speed USB device number 61 using ehci-pci [90892.336150] usbip-host 4-1.2:1.0: 4-1.2 is not in match_busid table... skip! [90892.336484] usbip-host 4-1.2:1.1: 4-1.2 is not in match_busid table... skip! [90892.336511] cdc_acm 4-1.2:1.1: This device cannot do calls on its own. It is not a modem. [90892.336589] cdc_acm 4-1.2:1.1: ttyACM3: USB ACM device [90892.337460] usbip-host 4-1.2:1.3: 4-1.2 is not in match_busid table... skip! [90892.410843] usb 4-1.2: usbfs: process 30325 (go-mtpfs) did not claim interface 0 before use [90892.438597] usb 4-1.2: USB disconnect, device number 61 [90892.628063] usb 4-1.2: new high-speed USB device number 62 using ehci-pci [90892.715178] usbip-host 4-1.2:1.0: 4-1.2 is not in match_busid table... skip! [90892.715538] usbip-host 4-1.2:1.1: 4-1.2 is not in match_busid table... skip! [90892.715552] cdc_acm 4-1.2:1.1: This device cannot do calls on its own. It is not a modem. [90892.715619] cdc_acm 4-1.2:1.1: ttyACM3: USB ACM device [90892.716359] usbip-host 4-1.2:1.3: 4-1.2 is not in match_busid table... skip! [90892.781898] usb 4-1.2: USB disconnect, device number 62 ... Eliyaho: On a Windows machine, with usb2 it does work. On Sun, Oct 6, 2013 at 4:50 PM, ik ido...@gmail.com wrote: Hello, I'm using Arch Linux, and have Samsung Galaxy S4. It uses MTP in order to allow me to access files. I'ved read several wiki's (Including Arch wiki) and forums about it, and came out for the following settings (/etc/udev/rules.d/51-android.rules), after install go-mtpfs: # Galaxy S4 GT-I9500 ATTR{idVendor}==04e8, ATTR{idProduct}==685d, SYMLINK+=android_adb, MODE=0666 ATTR{idVendor}==04e8, ATTR{idProduct}==6860, SYMLINK+=android_adb, MODE=0666 ATTR{idVendor}==04e8, ATTR{idProduct}==6860, SYMLINK+=android_adb, MODE=0666, ACTION==add, RUN+=/usr/bin/sudo -b -u ik /usr/bin/go-mtpfs -allow-other=true -android=true /mnt/ando ATTR{idVendor}==04e8, ATTR{idProduct}==6860, SYMLINK+=android_adb, MODE=0666, ACTION==remove, RUN+=/bin/umount /mnt/ando It does mount properly the content, however, when I try to access the content, it keep on looping an remounting everything until I take off the USB cable. I then need to wait several minutes to try again, or the loop just continue ... I can see the remounting also in /var/log/messages and dmesg. What am I missing or doing wrong here ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: קול קורא להרצאות בכנס אוגוסט פינגווין 2013
יש לי הרצאה על Golang אם זה יעניין אתכם. ויש לי עוד כמה מוכנות. 2013/6/20 sara fink sara.f...@gmail.com אנחנו מחפשים מרצים עם הרצאות מעניינות לכנס אוגוסט פינגווין שיערך ב- 2.8.2013 במרכז הקונגרסים חיפה. השנה אנחנו הולכים על כנס גדול במיוחד, ואנחנו נקיים 3 מסלולים - קהילתי, טכני ואבטחת מידע. כמעט כל מרכז הקונגרסים עומד לרשותנו, ואנחנו נרצה למלא אותו בקהל ובהרצאות מן השורה הראשונה. אם יש לכם, או למכרים שלכם, הרצאות מעניינות שמתאימות לאחד מהמסלולים הנל עםזיקה ברורה לקוד פתוח ותוכנה חופשית, אנחנו נשמח שישלח אלינו מייל ל- bo...@hamakor.org.il עם כותרת ההרצאה ותקציר ההרצאה (מס' שורות מועט המספרות על נושא ההרצאה) כדי שנוכל לבחור את ההרצאה. אורך ההרצאה צריך להיות 30 דקות. נשקול הרצאות ארוכות יותר (עד 50 דקות) במידת הצורך. שימו לב - יש לשלוח הצעות עד ה- 1.7.2013. תודה, עמותת המקור. ___ 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: Finding if a line contains Hebrew characters in perl
On Fri, Apr 26, 2013 at 9:24 AM, Gabor Szabo szab...@gmail.com wrote: On Thu, Apr 25, 2013 at 6:05 PM, ik ido...@gmail.com wrote: try this #!/usr/bin/env perl -w # use v5.14; use utf8; my $text = 'שלוabv'; if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) { say yes; } else { say no; } I'd probably use \p{IsHebrew} or \p{InHebrew} instead of the hexa code. For some strange reason it did not worked for me, so I resorted into hex code :( Check here: http://perldoc.perl.org/perluniprops.html to learn way more than you'd probably want to :) I also CC-ed Meir Guttman who is *the* Perl Unicode expert. He might have something more correct to suggest. Gabor ___ 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: Finding if a line contains Hebrew characters in perl
On Thu, Apr 25, 2013 at 5:17 PM, Ori Idan o...@helicontech.co.il wrote: I have a script in perl where I read lines from a UTF-8 text file. I have to find out if a line contains at least 3 letters in Hebrew. How can this be done in perl? What is your Perl version ? -- Ori Idan ___ 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: Finding if a line contains Hebrew characters in perl
try this #!/usr/bin/env perl -w # use v5.14; use utf8; my $text = 'שלוabv'; if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) { say yes; } else { say no; } On Thu, Apr 25, 2013 at 5:47 PM, Ori Idan o...@helicontech.co.il wrote: On Thu, Apr 25, 2013 at 5:21 PM, ik ido...@gmail.com wrote: On Thu, Apr 25, 2013 at 5:17 PM, Ori Idan o...@helicontech.co.il wrote: I have a script in perl where I read lines from a UTF-8 text file. I have to find out if a line contains at least 3 letters in Hebrew. How can this be done in perl? What is your Perl version ? Perl 5 version 14.2 -- Ori Idan ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Online collaboration
If FOSS is what you are looking for, then you have drupal based solutions. Recently I'ved discovered a closed source system by IBM that does a lot more then this, and it has an amazing user interface (between facebook and google+). http://www-01.ibm.com/software/lotus/products/connections/ You also have MS sharepoint. That's all the stuff I know about in this area. Ido On Mon, Apr 8, 2013 at 2:52 PM, Mord Behar mord...@gmail.com wrote: Hi I'm looking for an open source solution for collaborating on various tasks, mostly graphics related. I have access to a LAMP stack, so installing server-side software shouldn't be a problem. The problem is, I don't know what software we need. We need to have a repository of data, where people can upload and download the work they've done. It needs to be tracked and (automatically) documented. It also needs to have a good user-facing interface, the people using it will be graphics designers, not programmers. Any ideas? Thanks. ___ 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
queue management algorithms
Hello, I have a very complex queue management requirements, I need to calculate task weight, time restrictions for execution, number of possible execution at given time, changes of the data when it is inside the queue and even disabling specific task. some tasks have very short time to live, and required to be executed faster, then others. but it's not a simple priority queue. I'm looking for known algorithms for such tasks, such as bfs (at the kernel) for example and more, and wonder if someone can point me to a list or more resources to learn about queue management, and find the proper way (or closer way) to implement my needs Thanks Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: queue management algorithms
On Sun, Apr 7, 2013 at 2:39 PM, Orna Agmon Ben-Yehuda ladyp...@gmail.comwrote: If you are not in the kernel, Userspace all the way. Actually never touched the Kernel. you might with to consider slurm or the lesser ones ((open)PBS, torque), condor, boinc. If you need really complex things (dependencies), you need a scientific flow manager such as kepler. Thanks, I'll take a look at them. Ido On Sun, Apr 7, 2013 at 2:27 PM, ik ido...@gmail.com wrote: Hello, I have a very complex queue management requirements, I need to calculate task weight, time restrictions for execution, number of possible execution at given time, changes of the data when it is inside the queue and even disabling specific task. some tasks have very short time to live, and required to be executed faster, then others. but it's not a simple priority queue. I'm looking for known algorithms for such tasks, such as bfs (at the kernel) for example and more, and wonder if someone can point me to a list or more resources to learn about queue management, and find the proper way (or closer way) to implement my needs Thanks Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Orna Agmon Ben-Yehuda. http://ladypine.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: queue management algorithms
On Sun, Apr 7, 2013 at 3:51 PM, Oleg Goldshmidt p...@goldshmidt.org wrote: On Sun, Apr 7, 2013 at 2:27 PM, ik ido...@gmail.com wrote: Hello, I have a very complex queue management requirements, I need to calculate task weight, time restrictions for execution, number of possible execution at given time, changes of the data when it is inside the queue and even disabling specific task. some tasks have very short time to live, and required to be executed faster, then others. but it's not a simple priority queue. It is difficult to say from the description, but it sounds to me like your problem is that of scheduling rather than just queue management. Note that a scheduler (e.g., that of the kernel) will have many queues holding tasks of different types and properties, and will need to manage all of them together. In particular, some of the things you mention sound to me like real time requirements. If you look at, say, the Linux scheduler it handles RT tasks separately from the normal tasks. You may need to do the same. Another thing that is missing is the target system. A single server? A cluster or multicomputer? Something else? I'd suggest googling for scheduling and resource management (of which scheduling is a component). Apart from things like SLURM and Condor that Orna mentioned, maybe Maui? There are all sorts of proprietary offerings as well. At first glance, condor looks like the thing that can help me most. Thanks -- 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
Re: queue management algorithms
On Sun, Apr 7, 2013 at 6:36 PM, Orna Agmon Ben-Yehuda ladyp...@gmail.comwrote: If you are looking for something reliable for many tasks scheduled at a time (e.g., one user may send a hundred tasks within one second) go for slurm. openPBS, torque, condor cannot take the heat. I heard that PBS (not open) can, too. One of the issues, is knowing what data to take, and there is a need for a cycle. each cycle have finite number of data inside the queue, but each new cycle recreate the queue to the actual content to be used. I still research this one. On Sun, Apr 7, 2013 at 5:30 PM, ik ido...@gmail.com wrote: On Sun, Apr 7, 2013 at 3:51 PM, Oleg Goldshmidt p...@goldshmidt.orgwrote: On Sun, Apr 7, 2013 at 2:27 PM, ik ido...@gmail.com wrote: Hello, I have a very complex queue management requirements, I need to calculate task weight, time restrictions for execution, number of possible execution at given time, changes of the data when it is inside the queue and even disabling specific task. some tasks have very short time to live, and required to be executed faster, then others. but it's not a simple priority queue. It is difficult to say from the description, but it sounds to me like your problem is that of scheduling rather than just queue management. Note that a scheduler (e.g., that of the kernel) will have many queues holding tasks of different types and properties, and will need to manage all of them together. In particular, some of the things you mention sound to me like real time requirements. If you look at, say, the Linux scheduler it handles RT tasks separately from the normal tasks. You may need to do the same. Another thing that is missing is the target system. A single server? A cluster or multicomputer? Something else? I'd suggest googling for scheduling and resource management (of which scheduling is a component). Apart from things like SLURM and Condor that Orna mentioned, maybe Maui? There are all sorts of proprietary offerings as well. At first glance, condor looks like the thing that can help me most. Thanks -- 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 -- Orna Agmon Ben-Yehuda. http://ladypine.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ix2-200 NAS and rsync
On Mon, Jan 14, 2013 at 12:05 PM, Oleg Goldshmidt p...@goldshmidt.org wrote: On Sat, Jan 12, 2013 at 12:35 PM, ik ido...@gmail.com wrote: Hello, I have ix2-200 NAS, and I wish to start backpacking stuff using rsync, but I can't find out what path it uses for it. I created using web ui a directory named backup I tried rsync ... rsync@ip:~/backup/ I get an error message that the directory was not found, I triend it as root directory, nothing, etc... I am not familiar with the device in question, so I am risking to fall face down into the mud. But if it is intended to be used as a NAS server, aren't you supposed to mount the target directory at a client system and rsync between the two local directories? Does the documentation say it supports the rsync protocol from a remote host? It is obviously possible that it does, but given that it does not support ssh... Come to think of it, if the remote path contains a single colon as in your example, ssh is used. have you tried using the double colon to indicate that the raw rsync protocol should be used? rsync ... src/ ip::backup/ etc? You are correct, it took me a long time to understand it, and partly using your replay. Here is btw, a way to access the ssh part of the machine: With older firmware: http(s)://your ip/support.html with newer firmware: http(s)://your ip/diagnostics.html using ssh: user: root pass: sohoYourAccessCode that is, the access code you created for the web login, but adding a prefix of soho It runs Debian 5 on arm -- 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
Re: ix2-200 NAS and rsync
On Sat, Jan 12, 2013 at 11:33 PM, Amos Shapira amos.shap...@gmail.comwrote: The ~/ in ~/backup/ could be redundant, since your home directory is where the relative paths starts. Try removing it? Tried that as well, but not avail :( Also a general tip about rsync - you should either use a trailing / on both source and destination paths or none, never mix unless you want the weird results that it causes. Thanks Ido On 12 January 2013 21:35, ik ido...@gmail.com wrote: Hello, I have ix2-200 NAS, and I wish to start backpacking stuff using rsync, but I can't find out what path it uses for it. I created using web ui a directory named backup I tried rsync ... rsync@ip:~/backup/ I get an error message that the directory was not found, I triend it as root directory, nothing, etc... There is no ssh login, and I don't have time to start taking it apart and working on the hd themselves. So does anyone know how I can backup stuff using rsync ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- [image: View my profile on LinkedIn] http://www.linkedin.com/in/gliderflyer ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: ix2-200 NAS and rsync
On Mon, Jan 14, 2013 at 10:54 AM, Amos Shapira amos.shap...@gmail.comwrote: Can you use ssh protocol instead of raw rsync, even just to test? Nop, it does not open TTY, so it closes for me when I try :( According to Google, in order to make ssh work, I need to extract the two hd, and mount them locally here, and change he configuration by hand. Can you reach the rsync daemon's configuration file (usually rsyncd.conf)? On 14 January 2013 19:43, ik ido...@gmail.com wrote: On Sat, Jan 12, 2013 at 11:33 PM, Amos Shapira amos.shap...@gmail.comwrote: The ~/ in ~/backup/ could be redundant, since your home directory is where the relative paths starts. Try removing it? Tried that as well, but not avail :( Also a general tip about rsync - you should either use a trailing / on both source and destination paths or none, never mix unless you want the weird results that it causes. Thanks Ido On 12 January 2013 21:35, ik ido...@gmail.com wrote: Hello, I have ix2-200 NAS, and I wish to start backpacking stuff using rsync, but I can't find out what path it uses for it. I created using web ui a directory named backup I tried rsync ... rsync@ip:~/backup/ I get an error message that the directory was not found, I triend it as root directory, nothing, etc... There is no ssh login, and I don't have time to start taking it apart and working on the hd themselves. So does anyone know how I can backup stuff using rsync ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- [image: View my profile on LinkedIn] http://www.linkedin.com/in/gliderflyer -- [image: View my profile on LinkedIn] http://www.linkedin.com/in/gliderflyer ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
ix2-200 NAS and rsync
Hello, I have ix2-200 NAS, and I wish to start backpacking stuff using rsync, but I can't find out what path it uses for it. I created using web ui a directory named backup I tried rsync ... rsync@ip:~/backup/ I get an error message that the directory was not found, I triend it as root directory, nothing, etc... There is no ssh login, and I don't have time to start taking it apart and working on the hd themselves. So does anyone know how I can backup stuff using rsync ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Fortigate router, and security attacks
On Tue, Oct 23, 2012 at 7:14 PM, shimi linux...@shimi.net wrote: On Mon, Oct 22, 2012 at 11:13 AM, ik ido...@gmail.com wrote: Hello, I have a network with Fortigate router, active firewalls and the network itself is under NAT. It recently started to get attacked by external class A IP's (several of class A based IP blocks). We scan from outside, the network, the whole IP addresses of the network itself (that should go inside), and they are not visible from outside (except for a handful of IP addresses). The thing is, that they arrive to servers inside the network, and constantly try to attack them, scan them etc, while we see the external IP addresses of the attackers. The network contain Windows, Linux and Mac OS X machines (almost all of the desktops are Windows, and few Mac OS X). I'm looking for better ideas on what can be checked in that matter, to better understand from where they are coming from, or to figure out what is the vulnerability they are exploiting. If I'm reading you correctly - you're saying that internal IPs get connection attempts from the outside EVEN THOUGH they're not supposed to? (there's no NAT rule that sends an external IP to in internal one)? You understand me correctly. There is no NAT rule that we know of that provide such access. If so - are you sure they're _attacking_ you? Absolutely positive that what you're seeing is NOT returning packets for packets that have originated from YOUR network? (could be internal computers with malware...) I see the automated scanners in the log, trying to do stuff, but they are very narrow cans for specific tasks of specific servers. For example attempting to connect to SIP extensions on Asterisk and try to dial. The reason I'm asking, is, that for a new connection to be established to a machine behind NAT, you would need the NAT router to explicitly DNAT the traffic to the internal scope. If you didn't do that - it's very weird to see new sessions traversing the NAT router... I know, that's why I'm so puzzled with it. However, if I am not reading you correctly, and you did open access to the internal network with DNAT rules, then I am not sure I understand what you're actually asking - it seems it works as expected? Please explain what do you mean by 'where they are coming from' - I think you already answered the question yourself (several of class A based...) So, please clarify the scenario more precisely. :) -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Fortigate router, and security attacks
Hello, I have a network with Fortigate router, active firewalls and the network itself is under NAT. It recently started to get attacked by external class A IP's (several of class A based IP blocks). We scan from outside, the network, the whole IP addresses of the network itself (that should go inside), and they are not visible from outside (except for a handful of IP addresses). The thing is, that they arrive to servers inside the network, and constantly try to attack them, scan them etc, while we see the external IP addresses of the attackers. The network contain Windows, Linux and Mac OS X machines (almost all of the desktops are Windows, and few Mac OS X). I'm looking for better ideas on what can be checked in that matter, to better understand from where they are coming from, or to figure out what is the vulnerability they are exploiting. Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
qmail and mx records
Hello, I have a qmail (smtp) server . When there is a domain that only the MX records provides the other side smtp servers, qmail does not check it, and reports that it can not find any smtp servers. Using simple telnet on such servers, they do answer properly. I can't figure out how or what should be configured to make it check mx records. I can only find how to set my own MX records for qmail, but not how to make qmail look for the server it is sending. Please note that I can not install postfix or exim, as normal smtp servers, so I have to solve this issue with qmail Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: qmail and mx records
Answering myself: There is a DNS problem at my server side, and not the so called problematic server. Ido On Wed, Aug 29, 2012 at 3:12 PM, ik ido...@gmail.com wrote: Hello, I have a qmail (smtp) server . When there is a domain that only the MX records provides the other side smtp servers, qmail does not check it, and reports that it can not find any smtp servers. Using simple telnet on such servers, they do answer properly. I can't figure out how or what should be configured to make it check mx records. I can only find how to set my own MX records for qmail, but not how to make qmail look for the server it is sending. Please note that I can not install postfix or exim, as normal smtp servers, so I have to solve this issue with qmail Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: alcatel X220
On Sun, Jul 29, 2012 at 11:57 AM, Shimon Panfil i...@industrialphys.comwrote: Hi folks, does anybody have 1st hand experience with cellcom usb modem (alcatel x220) on linux? How hard should one work to make it work on e.g. centos 6.3? It works well, I used with Orange: http://idkn.wordpress.com/2010/11/19/connecting-cellular-modem-in-linux/ -- Shimon Panfil: Industrial Physics and Simulations http://industrialphys.com __**_ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/**mailman/listinfo/linux-ilhttp://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Assisting a person to learn linux
Hello list, A person from Nazrat Iilit contacted me, and he is looking for a person that could help him learn Linux. He require that the person could be at the area, and also to communicate on the phone, but less with texts. At the moment, he installed Ubuntu 12.04, however he is unable to connect into the network, or fully understand how stuff works. If there is such person that can help him, please contact me privately. Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: suggestions sought for a framework for a quick, dirty, reallysimple GUI prototype
On Fri, Jul 20, 2012 at 1:21 PM, Dov Grobgeld dov.grobg...@gmail.comwrote: Here are a few comparisons. (Note that I always prefer inheriting the main window and thus create a derived widget. This typically requires more code, but in return you get a real widget that integrates seamlessly into the widget system.) Python gtk: #!/usr/bin/python import gtk class HelloWorld(gtk.Window): def button_clicked(self, data): print Hello World! def __init__(self): gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL) self.connect(destroy, gtk.main_quit) button = gtk.Button(Press me) button.connect(clicked, self.button_clicked) button.show() self.add(button) HelloWorld().show() gtk.main() Vala: using Gtk; public class HelloWorld : Gtk.Window { construct { this.title = Hello World; var button = new Button.with_label(Hello world); button.clicked.connect( () = { stdout.printf(Hello world!\n); }); button.show(); this.add(button); } } int main(string[] args) { Gtk.init(ref args); var hello_world = new HelloWorld(); hello_world.show(); Gtk.main(); return 0; } For pyside / PyQt see: http://www.harshj.com/2009/04/26/the-pyqt-intro/ It carries some additional noise due to the python vs qt bindings. Regarding tcl, I once wrote a gtk/Tcl quick and dirty prototyping tool, that may be of interest to someone. See: http://gemshell.sourceforge.net/ Way too much code. In Lazarus you do not need to write this code, unless you really want to. Object Pascal is not a dynamic language but a static language, so you can not compare the two. Even TP was very complex language, and today's language contain even more features, generics, mixin, and a lot more. The API of both Lazarus and Delphi is very close to Qt (Qt came after Delphi). But today both with Lazarus and Delphi you can create native code and GUI depends on the platform. So you do not need to know GTK, Qt, WinAPI, Android API (yes you can compile native code to run in JVM), iOS etc... Except of specific stuff. You just use the API. when you compile to/in windows it will be WinAPI native, no GTK or Qt. On Linux, you can use GTK or Qt (in compile time you choose it). On Mac it will be native to that, on BeOS it will native to BeOS etc.. Have a look at my program (not very simple one): https://github.com/ik5/display-quotes Only one method with some GUI code inside for an open dialog, that i did not want to do in a design time. everything else is about the logic, not about the GUI. If you will check it closely, I even have code that that add extra features if you compile it to GTK, and extra code for Windows based requirements, only one line of code for it. I binded there the libnotify library arrive from Gnome/GTK. You can see the code itself. When you use Python, you do not use GTK, you use a way that is suitable to Python that at the end translate into GTK. When you use Vala, it again translate into C that is translated into machine code. When you use Lazarus, you use API, that call the native UI methods (like with Python), but translated into native machine code (elf, exe, class files). You have a lot of components and addons in Lazarus, and it is very simple to write code with it that will work everywhere. But people still think that working hard and dealing with too much dependencies on run time for normal users, is the way to go, and learning 10 technologies to write one program, is the proper way, or that you do not need a fast executable (the fastest in bench-marking then GCC, intel etc.. ), then please, by all means, keep on going the wrong way ... Just remember that C#, Go and even C11 copied from Object Pascal most of it's features ... My last battle in this thread on the subject. Regards, Dov Ido On Thu, Jul 19, 2012 at 9:14 PM, Nadav Har'El n...@math.technion.ac.ilwrote: On Thu, Jul 19, 2012, Dov Grobgeld wrote about Re: suggestions sought for a framework for a quick, dirty, reallysimple GUI prototype: very nicely reflects the beauty of the GObject system. Especially in C it is easy to miss that because of the very tedious syntax you need to use, e.g. to define an derived class. In Vala the syntax is very concise. This is a very important point. This is why I loved Tcl/Tk when I learned it in the mid 90s - the code to create the gui was so compact, so elegant - the complete opposite of Xlib, Xaw and Motif, each requiring you to write dozens of lines for every simple task. For example, here is a program in TCL/TK which shows a hello button which outputs hi when pressed. How does it look in your favorite gui language? #!/usr/bin/wish button .a -text hello -command puts hi pack .a For the curious, the first command creates a button .a - in TK, widgets are hierarchical and have hierarchical
Re: suggestions sought for a framework for a quick, dirty, really simple GUI prototype
On Wed, Jul 18, 2012 at 11:50 AM, Oleg Goldshmidt p...@goldshmidt.orgwrote: Hi, I have no - literally zero - experience in creating GUIs of any kind. I face the following task now: there is a C++ program that runs on Linux and basically receives some packets with some data over the network and does some transformations on the data. As a result some data structures are created and updated - potentially many times a second, say, a few times a second for any *single piece* of data. I need a *prototype* GUI that would display and constantly update (parts of) those structures, say strings and numbers with colours and labels and stuff. There may be a need for a drop-down menu for some configuration - don't know yet. Eventually maybe a button or two will be added to invoke some actions. I figure that the simplest way about it would be to make the GUI run on the same Linux machine and write it in C++ for ease of integration. What would be the easiest / simplest framework to use? Is it Qt? Ultimate++ ( http://www.ultimatepp.org/ - just one of the things I found in a simple and brief search)? Since I have no experience it's difficult for me to judge quickly. What is important here is speed and painless ramp-up to some fairly low level. I want to be up and running as fast as possible with as little coding as possible. No need for bells and whistles. No need for long term maintenance. It is for a throw away demo/prototype - and yes, I am sure it (the GUI part) will be thrown away. Any suggestions / experiences / war stories / whatever? I'm suggestion you a different type of approach here: Use Lazarus. You do not need to worry about the GUI, because it's simple to use, you only worry about the logic behind your solution. It's not marketing, but how the concept works. Here is an example on a project of mine using Lazarus: https://github.com/ik5/display-quotes The code there is not about writing GUI, but everything that is not the GUI part. Thanks in advance, -- Oleg Goldshmidt | p...@goldshmidt.org o...@goldshmidt.org Ido ___ 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: suggestions sought for a framework for a quick, dirty, reallysimple GUI prototype
On Thu, Jul 19, 2012 at 12:40 PM, Dov Grobgeld dov.grobg...@gmail.comwrote: The advantage of using Qt or Gtk compared with some of the other gui toolkits mentioned (fltk, Tcl/Tk, SDL, or Matlab GUI) are that they are complete (lots of widgets, internationalization and localization support etc) if the prototype turns into something bigger than was initially envisioned. To often have I seen tools that were written like oh, its's only for me and then a company is trying to figure out how to deploy and support the tool. I therefore thing it is worth taking the time to learn complexity of one of these GUI's, and then use it. The language is a separate issue from the GUI. The difference between Qt and Gtk is that Qt was from the beginning written to be tighly coupled with C++, whereas gtk (actually the glib model) was written so that it is easy to bind it to various languages. There is even a special GObject (the base class of gtk) dedicated language. See: http://en.wikipedia.org/wiki/Vala_%28programming_language%29 . True, there are some bindings to Qt, e.g. the official python binding PySide, but the huge amount of bindings to gtk shows that it is a much easier task. In short, decide a language and a toolkit. Take time to learn it. It is well worth your time. The thing is, that the approach I offered - Lazarus, contain support both to Qt and GTK, but you do not care about it in any way, you just focus on your task, on the libraries at hand. The libraries are only matter on compile and deployment time, not on coding, you do not really use any GTK or Qt code, but focus on an API that exists above this. The fight aginst Qt vs GTK is nice when you need to focus yourself on lower level development, not with tools that simplify things to you. Vala, is a very stupid idea. it's a C# like language that is translated into C and then built a native code. With Lazarus, you program in a real programming language, and instead of using a middleware, you just cod your code, and the GUI is designed without any line of code (unless you have to, or just want to do it like that). Regards, Dov Ido On Thu, Jul 19, 2012 at 12:29 PM, yochai yoc...@titat.info wrote: Shlomi, I gave it as an idea as I understood he doesn't need a full GUI or anything with a shiny look but to print a lot of data very fast. I'm sorry if I miss-understood anything. Yochai On 07/19/2012 12:12 PM, Shlomi Fish wrote: Hi all, On Thu, Jul 19, 2012 at 12:02 PM, yochai yoc...@titat.info wrote: Sorry, I thought it will be clear what I'm speaking about. https://en.wikipedia.org/wiki/Simple_DirectMedia_Layer I would recommend against SDL, because creating a decent GUI with it will require a lot of work, and on top of it will give you a giant window of raw graphics in the screen, which isn't very user-friendly or impressive. SDL is good enough for games, but not for a GUI application. There used to be a GUI library for SDL called ParaGUI but its home page is currently down. I'm not sure if it could fix all of SDL's limitations in regards to its usability as a GUI platform. Regards, -- Shlomi Fish On 07/19/2012 11:37 AM, Omer Zak wrote: On Thu, 2012-07-19 at 10:55 +0300, yochai wrote: Hey, It isn't the first idea that comes to mind but what about SDL ? How about giving an URL to a Website or a Wikipedia article, which describes the specific SDL that you refer to? When searching both resources, Google returned irrelevant links and Wikipedia was rather ambiguous. Thanks, --- Omer ___ 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 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: suggestions sought for a framework for a quick, dirty, reallysimple GUI prototype
On Thu, Jul 19, 2012 at 2:01 PM, Shlomi Fish shlo...@gmail.com wrote: Hi Ido, On Thu, Jul 19, 2012 at 12:50 PM, ik ido...@gmail.com wrote: On Thu, Jul 19, 2012 at 12:40 PM, Dov Grobgeld dov.grobg...@gmail.com wrote: The advantage of using Qt or Gtk compared with some of the other gui toolkits mentioned (fltk, Tcl/Tk, SDL, or Matlab GUI) are that they are complete (lots of widgets, internationalization and localization support etc) if the prototype turns into something bigger than was initially envisioned. To often have I seen tools that were written like oh, its's only for me and then a company is trying to figure out how to deploy and support the tool. I therefore thing it is worth taking the time to learn complexity of one of these GUI's, and then use it. The language is a separate issue from the GUI. The difference between Qt and Gtk is that Qt was from the beginning written to be tighly coupled with C++, whereas gtk (actually the glib model) was written so that it is easy to bind it to various languages. There is even a special GObject (the base class of gtk) dedicated language. See: http://en.wikipedia.org/wiki/Vala_%28programming_language%29 . True, there are some bindings to Qt, e.g. the official python binding PySide, but the huge amount of bindings to gtk shows that it is a much easier task. In short, decide a language and a toolkit. Take time to learn it. It is well worth your time. The thing is, that the approach I offered - Lazarus, contain support both to Qt and GTK, but you do not care about it in any way, you just focus on your task, on the libraries at hand. The libraries are only matter on compile and deployment time, not on coding, you do not really use any GTK or Qt code, but focus on an API that exists above this. The problem is that Lazarus is based on Free Pascal, which may have problem wrapping C++ code which is what Oleg wanted originally. I might have misread it, but as I understand, he thinking on C++ because of the GUI. The fight aginst Qt vs GTK is nice when you need to focus yourself on lower level development, not with tools that simplify things to you. Fight? All other suggestions are either Qt vs GTK vs FLTK etc... I offered to ignore the type of all of it. Vala, is a very stupid idea. it's a C# like language that is translated into C and then built a native code. Why is it a stupid idea? I recall re-implementing a small Perl program (which ran too slowly) in Vala, and it performed much better, so I was happy. I have not done any GUI programming in Vala, but translating something to C is a valid approach. If what you understood is true, and he is looking for a C++ solutions, why do you keep offering Python or Vala to him ? If I understand it, then my solution is better, instead of using a language to help use a toolkit, I offer a language with tools that helps you develop GUI without the hassle of choosing the GUI toolkit, but to focus on your work, and think in DRY land ... If he choose Glade with GTK, he needs to start to think in grid like way of writing. If he chooses Qt with Qt-Develop, he will need to write a template, and then focus on understanding Qt I offer something different, different thinking, even know, without any knowledge of gui development, or even the programming language, a simple window, edit box, a button and a simple menu will take him less then 10 minutes. When he'll know to use it, it will take him 3-5 minutes tops. With Lazarus, you program in a real programming language, and instead of using a middleware, you just cod your code, and the GUI is designed without any line of code (unless you have to, or just want to do it like that). Are you implying that Vala is not a real programming language? *Vala* is an object-oriented http://en.wikipedia.org/wiki/Object-oriented programming language http://en.wikipedia.org/wiki/Programming_language with a self-hosting http://en.wikipedia.org/wiki/Self-hosting compilerhttp://en.wikipedia.org/wiki/Compilerthat generates C http://en.wikipedia.org/wiki/C_%28programming_language%29 code and uses the GObject http://en.wikipedia.org/wiki/GObject system. http://en.wikipedia.org/wiki/Vala_%28programming_language%29 It's a descriptive language for C, that was built to help you develop GUI for GTK, and looks too much like C# (it's actually cool language C#, much better then Java, but that's off topic). Regards, -- Shlomi Fish -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. Please reply to list if it's a mailing list post - http://shlom.in/reply . ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: LDAP (Active Directory) and user statuses
On Fri, Jun 1, 2012 at 4:41 PM, Baruch Shpirer bar...@shpirer.com wrote: You can run some syslog for windows daemon on your dcs and redirect to some linux syslog daemon and parse security events for login Last login record in the ldap will not help you much Baruch shimi linux...@shimi.net wrote: On May 31, 2012 6:14 PM, ik ido...@gmail.com wrote: Hello, I need to write an application (on Linux) that checks with Active Directory if a user is logged in, and few other details about that user. The only thing I do not understand, is how can I check if a user has logged in or not. Does anyone have any experience with this issue and can shed some light, or point me to a good documentation on the subject ? Thanks, Ido AFAIK, AD doesn't know a user is logged in, because AD is not a login service, rather than an information source (e.g. *can* you login or not with the credentials provided). Also, you may be logged in to multiple stations on the domain... which one is the important to you? How would it know? You need workstations/server level info, not AD, IMHO. For example you could query NetBIOS via nbtstat -A ipaddr from a remote windows machine... there should be samba equivalent (don't remember by heart, sending this from my sgs2) Hope this helps... Thank you both, I'm thinking in forcing the DC to add me a property of login with boolean field or something like that, because as I understand, they do know if a user is logged in. For me the number of logins is not important, only that they are logged in somewhere. -- *Shimi* Ido On May 31, 2012 6:14 PM, ik ido...@gmail.com wrote: Hello, I need to write an application (on Linux) that checks with Active Directory if a user is logged in, and few other details about that user. The only thing I do not understand, is how can I check if a user has logged in or not. Does anyone have any experience with this issue and can shed some light, or point me to a good documentation on the subject ? Thanks, Ido ___ 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
LDAP (Active Directory) and user statuses
Hello, I need to write an application (on Linux) that checks with Active Directory if a user is logged in, and few other details about that user. The only thing I do not understand, is how can I check if a user has logged in or not. Does anyone have any experience with this issue and can shed some light, or point me to a good documentation on the subject ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
HTTP IP spoofing detection
Hello, I'm trying to detect a layer 7 based HTTP request, and see if it contain headers that provided as spoofed IP address. Is there a way to detect what is the Ethernet that the request arrived from at apace level ? If so, how can I provide rules what to do according to an HTTP header fields ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: HTTP IP spoofing detection
On Wed, Mar 14, 2012 at 13:30, shimi linux...@shimi.net wrote: On Wed, Mar 14, 2012 at 1:23 PM, ik ido...@gmail.com wrote: Hello, I'm trying to detect a layer 7 based HTTP request, and see if it contain headers that provided as spoofed IP address. Is there a way to detect what is the Ethernet that the request arrived from at apace level ? If so, how can I provide rules what to do according to an HTTP header fields ? You could look at the ARP cache by reading /proc/net/arp I guess. You ARE aware that Ethernet MACs, just like IPs, can be 'spoofed', right? Yes, but it's not what I need to work upon. If your LAN is insecure, secure your LAN. Don't run web applications on unsecure networks... My web app require to work also over the internet, and not only LAN (client request), that's why I'm looking for a way to secure it further. -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: HTTP IP spoofing detection
On Wed, Mar 14, 2012 at 16:28, Nadav Har'El n...@math.technion.ac.il wrote: On Wed, Mar 14, 2012, ik wrote about HTTP IP spoofing detection: Hello, I'm trying to detect a layer 7 based HTTP request, and see if it contain headers that provided as spoofed IP address. Is there a way to detect what is the Ethernet that the request arrived from at apace level ? Generally, endpoints on the Internet will have a hard time spoofing their IP address on connection-oriented protocols (like TCP-based HTTP is) because while sending a packet with a false source IP is easy, it's much more difficult to get back replies, when the victim sends them to the falsfied IP address, which routers across the internet won't route to the attacker. TCP in particular protects again blind connection setup (where the attacker cannot see replies) through its three-way handshake: The attacker can send a SYN packet with a false source address, and the server will reply to this false address with a SYN-ACK. This server reply contains a server-chosen random initial sequence number. The attacker will never receive this packet, so he'll not be able to respond to it with its own ACK, as needed, and the connection will NOT be established. Anyway, if you really need to authenticate remote machines, you should probably not do this based on their IP address, and rely on more secure methods (e.g., SSL). Or at least don't allow the first packet (an HTTP request) to do any damage. Thank you, and everyone else for the answers. It seems like I'm over thinking this issue. I'll try to work on layer 3 instead. -- Nadav Har'El | Wednesday, Mar 14 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |A smart man always covers his ass. A wise http://nadav.harel.org.il |man just keeps his pants on. Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: HTTP IP spoofing detection
On Wed, Mar 14, 2012 at 14:23, shimi linux...@shimi.net wrote: On Wed, Mar 14, 2012 at 2:02 PM, ik ido...@gmail.com wrote: On Wed, Mar 14, 2012 at 13:30, shimi linux...@shimi.net wrote: On Wed, Mar 14, 2012 at 1:23 PM, ik ido...@gmail.com wrote: Hello, I'm trying to detect a layer 7 based HTTP request, and see if it contain headers that provided as spoofed IP address. Is there a way to detect what is the Ethernet that the request arrived from at apace level ? If so, how can I provide rules what to do according to an HTTP header fields ? You could look at the ARP cache by reading /proc/net/arp I guess. You ARE aware that Ethernet MACs, just like IPs, can be 'spoofed', right? Yes, but it's not what I need to work upon. If your LAN is insecure, secure your LAN. Don't run web applications on unsecure networks... My web app require to work also over the internet, and not only LAN (client request), that's why I'm looking for a way to secure it further. I suspected that's going to be your reply... MAC is meaningless outside Layer 2. You can't do anything MAC related for clients outside your subnet. All Ethernet frames will arrive from the MAC of your router. Yes, all I need is to use layer 2 or 3 (ebtables or iptables) and allow only sources and destinations of a valid known mac addresses (router, switch etc...) The way to secure a website over HTTP, for the last few decades, has been by using SSL, signed by a mutually trusted CA. I can only use self signed certificate for this, but I'll try to use SSL all the way. If you want to authenticate the clients, there's an option to request a client certificate during the SSL negotiation. -- Shimi Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
elevate gdb privileges
Hello, I have a program that I write that uses user-space libraries that talk with kernel space, and I use an IDE for the development and debugging. The program requires to run as super user, but I do not want to run the whole IDE itself as super user, only gdb for this specific project, but the IDE does not allow me to do something like: /usr/bin/kdesu /usr/bin/gdb ... I also do not wish to provide suid to root, and allow every one to use gdb as root. Beside executing gdb myself with sudo, how would you recommend me to elevate user privileges for gdb on such case ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: elevate gdb privileges
On Mon, Feb 27, 2012 at 12:43, guy keren guy.choo.ke...@gmail.com wrote: On 02/27/2012 12:33 PM, ik wrote: Hello, I have a program that I write that uses user-space libraries that talk with kernel space, and I use an IDE for the development and debugging. The program requires to run as super user, but I do not want to run the whole IDE itself as super user, only gdb for this specific project, but the IDE does not allow me to do something like: /usr/bin/kdesu /usr/bin/gdb ... I also do not wish to provide suid to root, and allow every one to use gdb as root. Beside executing gdb myself with sudo, how would you recommend me to elevate user privileges for gdb on such case ? a few options: 1. write a program called gdb that only your user has access to. put it in your PATH before the locatinof the real gdb. this new gdb program will be a small suid C program that runs the real gdb. if your IDE looks for gdb in the path, rather then with a full path, it will work. 2. make a second copy of the gdb binary that only your can access - and make it suid root. put it in your path before the original gdb. 3. check if your IDE is able to use the gdb client-server model. if it can - you can run your program externally using the gdb server - and make your ide use a gdb-client. i didn't check if the gdb client can run as a normal user - but assuming the communiation is done over sockets - it can work. make sure that the socket is not accessible outside your machine, and you can add firewall rules that will only allow your user to connect to the relevant socket. I'm going to use gdbserver. Thank you very much guys --guy Ido ___ 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
Modern Linux memory management
Hello, In the past week I had several bugs that while gdb pointed to a place X, the actual place was several instructions prior to that position. For example the following error message I had to an off by one bug: *** glibc detected *** ./test_parser: malloc(): memory corruption (fast): 0x01ddad50 *** The instruction set that I was at, when glibc raised this exception was a lot further then the original position of the function that caused it have been executed. Only by using valgrind, that I could find the exact location and figure out, that it was another function that had the problem. How does the modern memory management system is working then, that it takes so much time for the problem to surface ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Modern Linux memory management
On Thu, Jan 26, 2012 at 18:08, Yedidyah Bar-David linux...@didi.bardavid.org wrote: On Thu, Jan 26, 2012 at 10:54:56AM -0500, Ori Berger wrote: On 01/26/2012 10:16 AM, Baruch Siach wrote: Only by using valgrind, that I could find the exact location and figure out, that it was another function that had the problem. How does the modern memory management system is working then, that it takes so much time for the problem to surface ? Now, if you corrupt the internal glibc data structure, glibc won't notice until you try to call one of malloc(), free(), etc. And in addition to what Baruch said: Valgrind will always catch these errors, but will result in significant slowdown (x10-x20). There are tools like DUMA (and its earlier incarnation, Electric Fence) incur almost no CPU overhead and can detect many kinds of corruptions as soon as they happen, by using the memory management units. (Because of the MMU granularity, you need to run your program twice - one in which allocations are aligned to the lower address, and one when they are aligned to the top address) There is also a middle ground; gcc's mudflap http://www.stlinux.com/devel/debug/mudflap and -- if your program is pure C and can be compiled by tcc, http://bellard.org/tcc/tcc-doc.html#SEC21; These are comparable to valgrind in functionality (for code you compile with them; standard library code runs at full speed/unchecked), but usually only introduce a small slowdown (10% or so). BTW, in case you do not know Fabric Bellard, he does lots of very cool stuff - he is the author of qemu, and every now and then I give a look at his site. I now did because of this post and found out an amazing project of a PC Emulator in Javascript: http://bellard.org/jslinux/ The guy is simply amazing. -- Didi Thank you all, you made me wiser :) Ido ___ 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: Israeli Linux Friendly Compatibility List?
2011/11/20 Amichai Rotman amic...@iglu.org.il Hello All, Is there a resource I could check for Israeli friendly Linux apps / sites? For instance: I'd like to use a personal finance program like KMoney, but customized to Israel (Hebrew interface, default settings for ILS, Israeli banks pre-installed and so on I found Skrooge to be nice. Like the name suggest, it's for KDE (hence the K :)) You can set each bank account for example (or any other resource) to be in a specific currency, and even to set the default currency. It also allow you to convert currency from one currency to another, but it understand and does not allow you to convert the default currency to itself :) I did not look for Hebrew translation though. Thanks, Amichai. Ido ___ 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
Detecting runaway process
Hello list, I have a daemon that every X amount of time just stop running. There are no logs or any other indicator for what will make it stop running, but it does. I'm looking for ideas on how to figure out what makes the daemon to stop running. Can you please help me with that ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Detecting runaway process
On Thu, Nov 17, 2011 at 13:13, Shlomi Fish shlo...@shlomifish.org wrote: On Thu, 17 Nov 2011 03:03:39 -0800 (PST) Valery Reznic valery_rez...@yahoo.com wrote: You can try strace -p pid_of_daemon ik can also use gdb for that. Can't use gdb, it's a Ruby daemon (I didn't wrote it). And strace gives different outputs on each crash :( I can't figure out what is wrong. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Original Riddles - http://www.shlomifish.org/puzzles/ rindolf buu: do you have a functional spec? An architecture document? An interface whitepaper? A developer’s guide? A user manual? A “The BL Book” and “BL — The Program”? buu rindolf: no, no, no no and no Please reply to list if it's a mailing list post - http://shlom.in/reply . ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Detecting runaway process
On Thu, Nov 17, 2011 at 14:52, Evgeniy Ginzburg nad@gmail.com wrote: 2011/11/17 ik ido...@gmail.com: Hello list, I have a daemon that every X amount of time just stop running. There are no logs or any other indicator for what will make it stop running, but it does. I'm looking for ideas on how to figure out what makes the daemon to stop running. Can you please help me with that ? And also it is useful to be specific then you asking question. Eg daemon, distribution, etc... http://catb.org/~esr/faqs/smart-questions.html You must be new here. I'm known to be non smart person. I usually choose tools that works for the task I require even when they are not what everyone else chooses ... Unlike forums, I can not edit it and add additional information that I'ved missed, so I can send another email with additional information when I find out that I missed something out ... -- So long, and thanks for all the fish. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Detecting runaway process
Solved it. Thank you for your help Ido On Thu, Nov 17, 2011 at 16:25, Nadav Har'El n...@math.technion.ac.il wrote: On Thu, Nov 17, 2011, ik wrote about Re: Detecting runaway process: Can't use gdb, it's a Ruby daemon (I didn't wrote it). And strace gives different outputs on each crash :( I can't figure out what is wrong. The first step is to figure out if it exits because of a signal (e.g. SIGSEGV) or because it decides to exit on its own. Try to run it in a shell prompt, not in the background, and see if you see any message when it ends, and see what the exit status ($?) is at the end of the run. While it is running, see if its memory use is growing out of control (use ps or top to find this out). Perhaps it uses too much memory and gets killed by the oom-killer. See if you see any relevant messages in /var/log/messages. Try with strace, what is the last few lines? Is there an exit() at the end? If it appears it just exists on its own accord, maybe this is not a bug, but a feature? :-) Look at the code and try to find any place it might exit without any message. In certain languages (I don't know about Ruby) it is possible for uncought exceptions to kill the program without a message - can it be the cause here too? Anyway, good luck. In general, it's NOT FUN to debug a program that someone else wrote... There is no magic bullet, just sweat. -- Nadav Har'El| Thursday, Nov 17 2011, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Isn't Disney World a people trap operated http://nadav.harel.org.il |by a mouse? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Detecting runaway process
On Thu, Nov 17, 2011 at 21:11, Shlomi Fish shlo...@shlomifish.org wrote: Hi Ido, On Thu, 17 Nov 2011 19:34:09 +0200 ik ido...@gmail.com wrote: Solved it. Thank you for your help Ido Could you, by any chance, share how you solved it and what was the problem? Just for everybody's enlightenment. I'ved place exit method instead of return in a code that the daemon executed. I found it, because someone asked me to make sure that I do not use it, after. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Larry Wall has been changing the world. By modifying its very source code. Please reply to list if it's a mailing list post - http://shlom.in/reply . ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: talk.google.com certificate problem
2011/10/30 Lior Kaplan kaplanl...@gmail.com Hi, When trying to use talk.google.com in pidgin I get a certificate that expired on the 25th. See also http://www.google.com/support/forum/p/Google+Apps/thread?tid=296e90270b07985bhl=en Does anyone else encounters the same problem ? Because I would expect something like that to get a bigger echo (and get solved quickly). I do, for few weeks now... Kaplan ___ 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: Are there any good reason why to use native api instead of ODBC ?
On Tue, Oct 18, 2011 at 23:07, Boris shtrasman borissh1...@gmail.comwrote: Hi , Today I chatted with an experienced person and we had our disagreements between database types and an interesting issue rose up about using Native Api or ODBC , from what I experienced in the last years I can't find any good reason why not use ODBC: Pro: 1. using ODBC is more prone to api change. 2. it is easier (I think) to maintain ODBC based code , I've seen code based with more then 15 years and it is still maintainable, and the code stores db back compatibility (from SQL 2000 to SQL 2010). 3. didn't find any indication for performance penalty more then 10% (didn't see that just found this number in a written benchmark a fellow did few years ago). 4. don't violate GPL if your using a driver and just using the DB as storage backed (*IANAL). so as long you stick to good SQL (ANSI) code your pretty safe (yes I know that the dbs have wonderful extensions the problem they have the tendency to change api and not support what the others have) But I'm pretty sure there situation when you should avoid using ODBC (the problem I don't what they are). Do you have any suggestions when should I use native api instead of ODBC ? Boris, you'ved missed a lot of what I have said in the conversation, as you see only narrow sight on things. If you take Ruby, Python and even Delphi/FPC they all binding to the official API rather then ODBC. They use so because ODBC as you mentioned is very limited. For example if I want to use stored procedures, udf, event driven work (Firebird and PostgreSQL support TCP based events that you can trigger on things), capture exceptions (user defined ones) etc... Well, using ODBC is almost impossible for some of the things. It is more generic way of using databases. When all I require is simple connection to the database and run simple tasks, it might provide good job. But when you are starting to have more demands, or do not wish to place your whole data logic in your application (amm MySQL anyone ?), then how ODBC can help you with that ? Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
apache as HTTP load balancer
Hello, I require to create an HTTP load balancer. I thought on using Apache for it using mod_proxy, however there are few things that there are few things that I do not know/understand how to do, and look for your help in this matter. I have web service requests (soap [who hates .net ?], xmlrpc and json) and also some REST requests. The thing is, that the content of the web service (wsd for short) have information that is not suited for the internal workers, and should be modified for something else, and only on answering on the data, it should change again. Furthermore I have more services on the LB server that should use the original data, while the internal servers does not know how to handle it, so I require to store such requests somehow to be available and make be changed again to the original content. The thing is, that I do not understand how to do it. I understand how mod_proxy should be configured for workers, but not how to do the work with WSD as I require. Have any one had any experience with such things or can help me with pointing to a good documentation on this subject ? Thanks, Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Thinkpad T520
On Sun, Sep 11, 2011 at 07:18, Yedidyah Bar-David linux...@didi.bardavid.org wrote: On Fri, Sep 09, 2011 at 04:38:12PM +0300, ik wrote: On Thu, Sep 8, 2011 at 19:20, ik ido...@gmail.com wrote: 1. It has Integrated Mobile Broadband and an optional Gobi 3000. Will they work in Israel? Am I limited to specific suppliers? Is there a reason for the extra $125 for a Gobi 3000, assuming I'll use it only in Israel? A salesman now told me that it's not integrated but I have to buy some Erricsson modem (part number 0a36186). The cellular modem works well for me. I entered the SIM and connected it and it worked. I still haven't install Linux on it, but with the Windows version it does work. I'm answering you using the internal cellular modem. Two more questions: Can you please tell the exact model of the cellular modem, both Lenovo part numbers etc (from the order or whatever) and pci IDs? It is considered as USB rather then PCI. I'm attaching the full lsusb string of it. Also - what cellular provider do you use it with? Do you know if it matters? Does it also support Pelephone frequencies? I'm using Orange. I do not have a Pelephone SIM to test it. Thanks a lot for the encouraging report! You welcome -- Didi Ido modem Description: Binary data ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Thinkpad T520
On Thu, Sep 8, 2011 at 19:20, ik ido...@gmail.com wrote: Hi, I have a brad new T420s (the same laptop, but with smaller screen) that arrived today. On Tue, Sep 6, 2011 at 10:49, Yedidyah Bar-David linux...@didi.bardavid.org wrote: Hi all, I am considering ordering a Lenovo Thinkpad T520, and have the following questions. I intend to use it with Debian, can go with Ubuntu if it makes a difference. 1. It has Integrated Mobile Broadband and an optional Gobi 3000. Will they work in Israel? Am I limited to specific suppliers? Is there a reason for the extra $125 for a Gobi 3000, assuming I'll use it only in Israel? A salesman now told me that it's not integrated but I have to buy some Erricsson modem (part number 0a36186). The cellular modem works well for me. I entered the SIM and connected it and it worked. I still haven't install Linux on it, but with the Windows version it does work. 2. It has a Thinkpad b/g/n Integrated WiFi and few optional extras. Is there a reason to pay for for one of the options, assuming I do not have extreme needs of either bad reception or high bandwidth? Will any of them work better in linux? FWIW, I currently have a T42 with its integrated 2200BG which basically works well, but recently I did not manage to connect to few networks - IIRC I saw somewhere it's a (fixed) bug in the dhcp client but I did not bother debugging. I'm answering you using the internal cellular modem. Both the wifi and the modem works very will for me. I used them inside the mamad without any problem at all. My linux distro (Arch Linux) support all of my hardware out of the box. the only real hacking I needed to do is for NetworkManager to work with the modem, while wvdial worked out of the box (after settings of course), NetworkManager required rerun of modem-manager. I have not tested the HDMI, but I have tested everything else, and it seems to work in Linux without any special requirement by me :( Where are the days where we needed a month to make Linux works ? Even on the preinstalled windows it was less clean then this. :) Will answer it later on. I already searched a bit the net, so I'd like mainly advices from people who actually have one (or similar) and real experience. Thanks, -- Didi I hope that helps, Ido ___ 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: Thinkpad T520
Hi, I have a brad new T420s (the same laptop, but with smaller screen) that arrived today. On Tue, Sep 6, 2011 at 10:49, Yedidyah Bar-David linux...@didi.bardavid.org wrote: Hi all, I am considering ordering a Lenovo Thinkpad T520, and have the following questions. I intend to use it with Debian, can go with Ubuntu if it makes a difference. 1. It has Integrated Mobile Broadband and an optional Gobi 3000. Will they work in Israel? Am I limited to specific suppliers? Is there a reason for the extra $125 for a Gobi 3000, assuming I'll use it only in Israel? A salesman now told me that it's not integrated but I have to buy some Erricsson modem (part number 0a36186). The cellular modem works well for me. I entered the SIM and connected it and it worked. I still haven't install Linux on it, but with the Windows version it does work. 2. It has a Thinkpad b/g/n Integrated WiFi and few optional extras. Is there a reason to pay for for one of the options, assuming I do not have extreme needs of either bad reception or high bandwidth? Will any of them work better in linux? FWIW, I currently have a T42 with its integrated 2200BG which basically works well, but recently I did not manage to connect to few networks - IIRC I saw somewhere it's a (fixed) bug in the dhcp client but I did not bother debugging. Will answer it later on. I already searched a bit the net, so I'd like mainly advices from people who actually have one (or similar) and real experience. Thanks, -- Didi Ido ___ 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: What field is used as a SCREENING number when using SIP.
2011/8/18 Boris shtrasman borissh1...@gmail.com Hi , with plain old SS7 we send a number and fill a field - how we got the calling number (Screening indicator), but what happen with SIP ? I noticed a few practices how this data is passed (using a hint , P-Asserted-Identity and Remote-Party-ID ) but I'm searching for a common solution rather the checking all options to what should I expect when sending a SIP message from my SER to other networks (peering). what would be a good solution for forwarding a blocked call ? how should i fill the the invite on my ser so I could block / unblock call ? As far as I know, there is no single way of doing it. I do not know the whole RFC's of SIP, but in practice it depends on the provider gateway. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: What field is used as a SCREENING number when using SIP.
On Thu, Aug 18, 2011 at 13:33, Boris shtrasman borissh1...@gmail.comwrote: On Thu, Aug 18, 2011 at 13:17, ik ido...@gmail.com wrote: 2011/8/18 Boris shtrasman borissh1...@gmail.com Hi , with plain old SS7 we send a number and fill a field - how we got the calling number (Screening indicator), but what happen with SIP ? I noticed a few practices how this data is passed (using a hint , P-Asserted-Identity and Remote-Party-ID ) but I'm searching for a common solution rather the checking all options to what should I expect when sending a SIP message from my SER to other networks (peering). what would be a good solution for forwarding a blocked call ? how should i fill the the invite on my ser so I could block / unblock call ? As far as I know, there is no single way of doing it. I do not know the whole RFC's of SIP, but in practice it depends on the provider gateway. So a good practice is to use all the known options ? And hope for the best. Some does not send the phone number at all. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: email alias issue
2011/7/19 Hetz Ben Hamo het...@gmail.com Hi, I have a weird issue with /etc/aliases I've setup the root to send emails to my email (h...@benhamo.org) and ran the newaliases command to rebuild the aliases db file. I've restarted sendmail. And yet, sendmail simply ignores this alias and tries to send emails to r...@benhamo.org (which of course doesn't exists). Any suggestions? Yes, DON'T work with sendmail PS: this setup used to work perfectly well up to few weeks ago, and then after some updates (CentOS 5.6) stopped working. Thanks, Hetz -- *חץ בן חמו חץ-ביז *השכרה ואירוח של שרתים פיזיים מעוניין להשתמש בשרותים שחסומים לגולש הישראלי? Hulu? NetFlix? Pandora? Google Voice? אם כן, היכנס לכאן http://vps.net.bz/?p=406. ___ 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: email alias issue
On Tue, Jul 19, 2011 at 23:55, Geoff Shang ge...@quitelikely.com wrote: On Tue, 19 Jul 2011, ik wrote: 2011/7/19 Hetz Ben Hamo het...@gmail.com Hi, I have a weird issue with /etc/aliases I've setup the root to send emails to my email (h...@benhamo.org) and ran the newaliases command to rebuild the aliases db file. I've restarted sendmail. And yet, sendmail simply ignores this alias and tries to send emails to r...@benhamo.org (which of course doesn't exists). Any suggestions? Yes, DON'T work with sendmail rant I really *hate* these sorts of non-answers. They don't help at all with the immediate problem and only really serve to annoy the person asking the question. Yes, I realise that in this case the questioner ended up taking this person's advice, but there may well have been plenty of cases where they might not have been able to. Questions like this don't usually outline the rationale for why they are using the software/hardware/whatever they're asking about, and neither should they have to. Yes you do. If you are saying I have a problem with something, and want others to help you, you should provide as much as possible information about the issue. Hetz imho gave only limited information about the problem, and where he think that it might be. That's does not helping us to help him, so usually when someone lack of proper information about the whole thing, get an answer as detailed as they provided. Even though I consider Hetz as a friend, he should know better and provide more information on the subject, such as I have a new installation or old installation and here are the entire settings I provided etc... all of that information even if it seems not very helpful, it might provide a clue for the helpers to help him. Let's assume that you have only 10 reasons why sendmail acts like it acts, don't you think that such information can limit the amount of guess work ? If I ask about a problem I'm having with my cat, the last thing I want to hear from someone is that I should have a dog instead. The fact is that I have a cat. There may be good reasons for recommending a dog instead, and I can see why it might be relevent to mention this when answering, but to just say get a dog is not at all helpful. And if you *must* say get a dog, at least say why. Wrong way example that does not suite the issue at hand. If you rant that your cat does not understand your commands, and you want to make it understand it, then take a dog is the answer. That's not what you are looking for, please provide additional information or rephrase your question regarding the issue with your cat. Maybe the problem is that the cat keep on getting hurt because it stand on electric oven and get burns, and then the solution is completly different, but when you phrase it that you want an animal that answer commands, the the answer you'll have is get a dog /rant Geoff. Ido __**_ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/**mailman/listinfo/linux-ilhttp://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
Job Offer, for Freelancers in Linux System area
Hello, I'm looking for freelancers (more then one) that are Linux system guys. The job is to help me provide SLA to my clients as a backup for myself. The people I'm looking for need to be able to provide receipts on the payment, and are עוסק מורשה/פטור (Don't know how to explain it in English). The job is done remotely using VPN and ssh (on CentOS servers). The freelancers need to be able to do the following: * Read and understand logs * Capable of communicating in English * Able to communicate with clients that does not know Linux and sometimes even technical stuff. * Able to solve problems that occurs, or understanding that the servers does not have any problem at all. It does not matter to me where is the geographical location of the freelancers, so you can be anywhere ... If you are interested, or know anyone that can be interested in it, please replay in private message. Thanks, Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Email To SMS
2011/6/17 jonah wolf jo...@voolf.com In the US, many cell providers provide you with an email address that sends messages to your cell phone via SMS. In Israel this doesn't seem to be the norm. Can anyone recommend a solution that will either provide me with an email address that goes to SMS or alternatively an email to SMS gateway that works with an Israel mobile #. If you wish to do it yourself, then you have Kannel, but you must have cellular modem for it. Ido Thanks ___ 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: VLC can read it but I cannot?
How did you mount the CD ? When you write $ mount What are the information you have on it ? Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il On Tue, Apr 5, 2011 at 00:56, Gabor Szabo szab...@gmail.com wrote: I have a CD with a short video film on it. I can see the video using VLC but when I try to copy the VIDEO_TS I get an error: ls -al /media/cdrom/ ls: cannot access /media/cdrom/.: Permission denied ls: cannot access /media/cdrom/..: Permission denied ls: cannot access /media/cdrom/VIDEO_TS: Permission denied total 0 d? ? ? ? ?? . d? ? ? ? ?? .. ?? ? ? ? ?? VIDEO_TS gabor@localhost:~$ ls -al /media/cdrom/VIDEO_TS ls: cannot access /media/cdrom/VIDEO_TS: Permission denied sudo ls -la /media/cdrom/ ls: cannot access /media/cdrom/VIDEO_TS: Permission denied total 6 dr--r--r-- 3 4294967295 4294967295 88 2006-09-26 16:23 . drwxr-xr-x 4 root root 4096 2011-04-04 23:00 .. ?? ? ? ? ?? VIDEO_TS gabor@localhost:~$ sudo ls -la /media/cdrom/VIDEO_TS ls: cannot access /media/cdrom/VIDEO_TS: Permission denied Any idea why is that and how could I copy the video? BTW running Ubuntu 10.10 and this is a personal video. Gabor ___ 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: .htaccess files on apache2 + MySQL
You should use AllowOverride option in the directory settings to be All rather then none on not existed at all. Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il 2011/3/4 Uri Even-Chen u...@speedy.net Hi everyone, 1. I installed a new cloud server on www.speedy2000.net , it uses Ubuntu 10.04 LTS with apache2, PHP and MySQL. The problem is, currently apache ignores .htaccess files. I have 2 .htaccess files, one to protect a directory with username password and one to redirect to another domain. Here are the contents of the .htaccess files: root@www:/var/www/admin# cd /var/www/admin/ root@www:/var/www/admin# cat .htaccess AuthUserFile /etc/apache2/users/.htpasswd AuthGroupFile /dev/null AuthName Protected Area AuthType Basic LIMIT GET POST require admin /LIMIT root@www:/var/www/admin# cd /var/www/uri/ root@www:/var/www/uri# cat .htaccess IfModule mod_rewrite.c RewriteEngine On RewriteBase /uri/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /uri/index.php [L] /IfModule -- currently both .htaccess files are ignored, for example http://www.speedy2000.net/uri/en/ is not working and http://www.speedy2000.net/admin/ is visible to everyone. How do I fix it? root@www:/var/www/uri# /usr/sbin/apache2 -v Server version: Apache/2.2.14 (Ubuntu) Server built: Apr 13 2010 20:21:26 2. *I also had a bug with MySQL* - http://bugs.mysql.com/bug.php?id=60331- I understand I need to upgrade MySQL. What is the best stable version of MySQL, and how do I upgrade? Thanks, Uri Even-Chen Mobile Phone: +972-50-9007559 E-mail: u...@speedy.net Website: http://www.speedy.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
openvpn and multiple host to host like configuration
Hello, I'm trying to configure openvpn to be a host to host like configuration. The reason is simple, because I want to have access to the machine that is the server. The problem is, that I have many clients that need to be like that. How can I have a host to host like approach but with multiple client hosts ? My current server side configuration is: -- dev tun ifconfig 172.16.8.1 172.16.8.2 secret /etc/openvpn/static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key user nobody group nobody daemon And my client settings is: - remote xxx.xxx.xxx.xxx dev tun ifconfig 172.16.8.2 172.16.8.1 secret /etc/openvpn/static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key user nobody group nobody daemon - Thanks, Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: openvpn and multiple host to host like configuration
On Tue, Feb 22, 2011 at 13:16, Tzafrir Cohen tzaf...@cohens.org.il wrote: On Tue, Feb 22, 2011 at 12:59:13PM +0200, ik wrote: Hello, I'm trying to configure openvpn to be a host to host like configuration. The reason is simple, because I want to have access to the machine that is the server. The problem is, that I have many clients that need to be like that. How can I have a host to host like approach but with multiple client hosts ? My current server side configuration is: -- dev tun ifconfig 172.16.8.1 172.16.8.2 Why do you force that IP address? The tutorial that explained how to do host to host wrote that it is required. # Configure server mode and supply a VPN subnet # for OpenVPN to draw client addresses from. # The server will take 10.8.0.1 for itself, # the rest will be made available to clients. # Each client will be able to reach the server # on 10.8.0.1. Comment this line out if you are # ethernet bridging. See the man page for more info. server 172.16.8.1 255.255.255.0 secret /etc/openvpn/static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key user nobody group nobody daemon And my client settings is: - remote xxx.xxx.xxx.xxx dev tun ifconfig 172.16.8.2 172.16.8.1 Again, get the IP address from the server. secret /etc/openvpn/static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key user nobody group nobody daemon - -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best tzaf...@debian.org|| friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: openvpn and multiple host to host like configuration
On Tue, Feb 22, 2011 at 13:07, shimi linux...@shimi.net wrote: 2011/2/22 ik ido...@gmail.com Hello, I'm trying to configure openvpn to be a host to host like configuration. The reason is simple, because I want to have access to the machine that is the server. The problem is, that I have many clients that need to be like that. How can I have a host to host like approach but with multiple client hosts ? My current server side configuration is: -- dev tun ifconfig 172.16.8.1 172.16.8.2 secret /etc/openvpn/static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key user nobody group nobody daemon And my client settings is: - remote xxx.xxx.xxx.xxx dev tun ifconfig 172.16.8.2 172.16.8.1 secret /etc/openvpn/static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key user nobody group nobody daemon - From http://openvpn.net/index.php/open-source/documentation/howto.html#server : *# Configure server mode and supply a VPN subnet # for OpenVPN to draw client addresses from. # The server will take 10.8.0.1 for itself, # the rest will be made available to clients. # Each client will be able to reach the server # on 10.8.0.1. Comment this line out if you are # ethernet bridging. See the man page for more info. server 10.8.0.0 255.255.255.0* You build a normal server to clients; You just don't push out routes as one would normally do in a VPN server... -- Shimi It helped a lot, thank you for your help. Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
secure/ssl vpn in linux with phone clients
Hello, I'm looking for an open source VPN that is secure (such as ssl vpn that arrive with openvpn) but also have clients for cellular phones including iPhone. OpenVPN as far as I know have support for all cellular phones except iPhone (unless you know any non jailbreak based clients for it). The Cellular phones that I require support for are: 1. Symbian, 2. iPhone, 3. Android 4. Blackberry 5. Windows mobile :( Does any one have any recommendation for such VPN ? Thanks, Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: secure/ssl vpn in linux with phone clients
On Thu, Feb 10, 2011 at 17:42, Ori Berger linux...@orib.net wrote: ik wrote: Hello, I'm looking for an open source VPN that is secure (such as ssl vpn that arrive with openvpn) but also have clients for cellular phones including iPhone. OpenVPN as far as I know have support for all cellular phones except iPhone (unless you know any non jailbreak based clients for it). The Cellular phones that I require support for are: 1. Symbian, 2. iPhone, 3. Android 4. Blackberry 5. Windows mobile :( I know Windows Mobile and iPhone support a PPTP VPN. I can vouch for the iPhone implementation - it works flawlessly. This connects to my Ubuntu 8.04 server, which I set up for this more than two years ago and did not even touch once since. The pptp server is libre/free/open source. The problem with pptp is that it has a very weak encryption and it usually depends on what the client side supports rather then what the server side support as far as I understand from reading about it. Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Sending hebrew mails from PHP to Outlook
It's a known bug of Outlookhttp://idkn.wordpress.com/2008/04/10/outlook-%D7%90%D7%95%D7%99%D7%99%D7%91-%D7%94%D7%A6%D7%99%D7%91%D7%95%D7%A8/that was never fixed. BTW, you should store non us-ascii as base64 string, and place it as part in the email afaik. Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il 2011/1/17 Ori Idan o...@helicontech.co.il I am sending HTML mail in Hebrew from a server running Ubuntu 10.4 and PHP 5.3.2 When sending the mail as UTF-8 with the header set to Content-type: text/html; charset=UTF-8 the mails are read as gibrish. When converting to windows-1255 (and changing the Content-type header) the hebrew received Ok but it is received as plain text (seeing HTML tags) Does anyone have any idea how to solve it? (preferably without changing setup in outlook) Everything works fine when sending to gmail. -- Ori Idan ___ 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: cgi-script shell script wrapping question
If you can send once in a while data to the output of the cgi, but not to finish the execution so it's pipe to the HTTP server will not terminate and the request will not end, then it should work, because there is a response, it's just keep on going, however if you do not send a thing, then the timeout will take place, because the timeout is on receiving content. Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il 2010/12/27 Dov Grobgeld dov.grobg...@gmail.com I'm trying to write a cgi wrapper for a long running command. The command takes about 10minutes to execute and when running it from the command line it continously outputs text to stdout. A simplistic cgi-bin wrapper that tries to execute the script and then writes that it is done fails with the following message: Timeout waiting for output from CGI script ... What I wonder if there is any easy way to have continously update the web page with stdout of the script. One way, I guess would be to run the script in a separate thread and just do HTML reload on a static page which I would regenaret with the stdout generated so far. Is there any other simple solution? Regards, Dov ___ 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: cgi-script shell script wrapping question
2010/12/27 shimi linux...@shimi.net 2010/12/27 Dov Grobgeld dov.grobg...@gmail.com I'm trying to write a cgi wrapper for a long running command. The command takes about 10minutes to execute and when running it from the command line it continously outputs text to stdout. A simplistic cgi-bin wrapper that tries to execute the script and then writes that it is done fails with the following message: Timeout waiting for output from CGI script ... What I wonder if there is any easy way to have continously update the web page with stdout of the script. One way, I guess would be to run the script in a separate thread and just do HTML reload on a static page which I would regenaret with the stdout generated so far. Is there any other simple solution? You could increase the timeout to be running time of the script ... Do not forget that you also have timeout of the web browser that you can not control (you can not control the users themselves). -- Shimi Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Fwd: [Israel.pm] Tel Aviv.pm meeting!
LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il -- Forwarded message -- From: sawyer x xsawy...@gmail.com Date: Wed, Dec 15, 2010 at 18:52 Subject: [Israel.pm] Tel Aviv.pm meeting! To: Perl in Israel p...@perl.org.il Hi, everyone! I'm including invitations to the meeting in two weeks of Tel Aviv.pm at the bottom of this message. We're basically calling all closet geeks who rarely leave the house, to come out, into the sun, into the light, and into a building which will have light (but not sun) and meet with us, in person, to talk, share, babble and even learn a bit in between! The flyer is simply for casual Perl programmers who are affluent with the community. The invitation PDF is an official invitation that speaks to those who do not really understand what the big fuss about community is. This includes both programmers and even bosses. So: - if you're a Perl programmer that doesn't know other programmers, or - if you work in a Perl job and are looking for more hires, or - you want to become a better programmer, or - you want your staff to become better programmers please do consider coming to the meeting! Also, feel free to spread these invitations in your workplace and among your friends. Everyone is invited! (we need help in any social network medium: Twitter, Facebook, LinkedIn and anything else you can think of) Sawyer. Invitations: PNG flyer: http://img257.imageshack.us/img257/3240/tapm.png PDF invitation: http://pdfcast.org/pdf/tel-aviv-perl-mongers-29-12-10-meeting-invitation ___ Perl mailing list p...@perl.org.il http://mail.perl.org.il/mailman/listinfo/perl ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: 3G USB Modems
The Alcatel X220D works well with Linux, Personally I will recommend you to say away from Orange ( http://idkn.wordpress.com/2010/11/19/the-fine-of-using-orange-products/). Ido LINESIP websites: http://www.linesip.com http://www.linesip.co.il 2010/11/21 Mordecha Behar mordecha.be...@mail.huji.ac.il I tried sending this before, when I wasn't a member and it bounced, or the moderator didn't let it in or something. Anyway, if this has been posted already, please forgive me. Does anybody have any experience getting any of the USB 3G modems provided by any one of the cell carriers here to work on Linux? I want to get one, but I'm not willing to commit until I know it will work. I'm not afraid of having to poke around the settings and stuff (I am after all a Linux user) but I want to know if it has been done before. Thanks. ___ 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: vim q
It's a security problem with Windows version. VIM disabled this feature because people used to write code there and doing code execution when you open a text file. Ido LINESIP websites: http://www.linesip.com http://www.linesip.co.il 2010/11/9 Erez D erez0...@gmail.com the following line: // vim: ts=2 sw=2 et seems to work under windows in gvim, but not in linux (at least not under vim over xterm). how can i change the syntax to make it work in all of linux/windows/cygwin in gvim and vim/xterm ? thanks erez. ___ 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: What's up with Bezeq ? Can people please try the following:
I'm redirected to google: Run your web applications on Google's infrastructure. I'm using ccc as my ISP (had enough with the big ISP), but OpenDNS as my dns server. Ido 2010/10/18 Maxim Veksler ma...@vekslers.org 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 LINESIP websites: http://www.linesip.com http://www.linesip.co.il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: need help with OO Calc
I think this will help you and do what you are looking for: http://www.oooforum.org/forum/viewtopic.phtml?t=87162 Ido LINESIP websites: http://www.linesip.com http://www.linesip.co.il 2010/10/14 Hetz Ben Hamo het...@gmail.com Hi, I'm trying to use OO Calc, and so far I managed to do what I want: to create a template for a price quote. One thing that I didn't manage to do is create a serial number which will be unique in every price quote Any suggestions how to do it please? Thanks, Hetz ___ 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: asterisk and bezeq
Bezeq started to offer SIP trunks (calling it ipri, at least in the PRI equivalent). I can only guess that they offer also similar but to FXO. I do not know if it will work with Asterisk, but I'll be glad to hear if it does. Ido On Sat, Oct 2, 2010 at 20:54, geoffrey mendelson geoffreymendel...@gmail.com wrote: I've been seeing ads from BEZEQ about using your laptop to access your BEZEQ line. Since my Hebrew is not good enough to understand the ads, nor call and get marketing advice, I am asking here. If I understand the ads correctly you can get access (I assume SIP) to your regular BEZEQ DID. Is this true? I'm not talking about any random Israeli DID I get from a third party, I'm talking about my BEZEQ number, which I still want attached to my landline. Has anyone done this? Have you done it with ASTERISK? Thanks in advance for any info. Geoff. -- Geoffrey S. Mendelson, N3OWJ/4X1GM To help restaurants, as part of the stimulus package, everyone must order dessert. As part of the socialized health plan, you are forbidden to eat it. :-) ___ 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: Can I use 32bit shared libraries on a 64bit machine?
You can use 32 bit libraries in 64 bit machines. I use several VPNs in Linux that are only 32 bit based, while my own machine is 64 bit. I haven't used Mandriva for a long time, but as far as I remember, you should place it under the normal lib directory. the lib64 is for 64 bit only. That's way you maintain the order of things. When done, do ldconfig -v to see if the shared library was found in the search path. If not, please add it to /etc/ld.so.conf.d/ or any other directory/file Mandriva requires it. Good luck Ido On Thu, Sep 16, 2010 at 21:59, Herouth Maoz hero...@spamcop.net wrote: Sorry about the newbie question. Our sysadmin is going abroad for the holidays, and I have to cover for him. Sort of. Well, I need to be able to connect to our office using Checkpoint SNX. But the version I was given is looking for libpam.so.0, I assume the 32 bit version, and doesn't find the /lib64/libpam.so.0 I have. Should I install the 32 bit version of pam? Or is that going to have ill effects on my system? Or maybe I should just add /lib64 to LD_LIBRARY_PATH or something? (My machine is Mandriva 2010.0) Thanks, Herouth ___ 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: com port list
You can use the sysfs for example. It's actual path inthe file system that represent information about the system of Linux, so any real COM port will have a directory with the device name and inside information about the port itself. I do not know regarding COM how it will look like, but for example for ethernet it looks like this (just for the sake of understanding): /sys/class/net/ For COM I guess it will be /sys/class/tty/ (Not sure tough, I do not have a machine with COM at all to check it on). Ido http://ik.homelinux.org/ 2010/8/31 Erez D erez0...@gmail.com hi I am looking for a simple way to know which serial ports i have. I want to have a list of all serial ports, either onboard, via usb, via bluetooth etc ... I'm looking for a better way than scanning /dev/ttyS* /dev/ttyUSB* /dev/usb/... etc ... In cygwin I just look under /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/SERIALCOMM/ is there somthing similiar in linux (probably somewhere in /proc) ? thanks, erez. ___ 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: hebrew letters in non-unicode vfat
Try to use CP862 instead (Hebrew code page in DOS). Also make sure that the terminal (like shimi said) display the same encoding. Ido http://ik.homelinux.org/ 2010/6/18 Arie Skliarouk sklia...@gmail.com Hi, I tried to read hebrew-named files and directories from a vfat-formatted DOK, but default mounting shows question marks instead of hebrew characters. I tried to use iocharset option of mount, with the same result. Windows shows the names properly. mount -o iocharset=iso8859-8 /dev/sdc /mnt/dok What is the proper charset I should use to be able to see the hebrew-named files? -- Arie ___ 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
automated installation system
Hello List, I'm looking for an automated installation system, like kickstart but not for PXE. What I'm looking for is a way to generate a script that can add repository for the package management. Download, Compile and install things automatically. Prompt for specific questions such as IP number, passwords etc.. when needed. And that it will run on an installed version of CentOS rather then a PXE (a clean installation). So I need to be able to place such scripts from remote (no physical access to the machine). Does anyone here know of a good system that can provide it ? Thanks, Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: sipme.me and Linux voip softphone
It sounds like a codec issue. What codec do they use for incoming calls ? Ido 2010/6/1 Tomer Cohen to...@gmx.net Hi, I've signed-up an account on sipme.me voip provider. They are official landline phone provider from the Ministry of Communication office, and provide phone lines with the 078-555 prefix. They are providing a customized soft-phone application for various platforms, including Windows and Symbian and iPhone, but as I preferred to use it under Linux, I had to configure it on SIP-complaint desktop application. Configuring it on various applications (including Ekiga, QutePhone and sflphone) was not an issue, and I can receive calls without any problem. As for doing calls, it seems that the line is hanging-up right after handshake, so my regular land-line phone is doing half ring and unable to get even the caller id string from the caller. For mobile phones I was unable even to get this. After asking their support, they said that it is happening due to the usage of a different SIP stack, and seems to refuse guiding me with relevant information. Anyone succeed getting their service to work well under Linux? Thanks. -- Tomer Cohen http://tomercohen.com ___ 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: The web site of HaMakor does not work in Firefox
Works for me on Firefox 3.6.3 under Arch Linux. Ido On Wed, Apr 28, 2010 at 12:44, Gabor Szabo szab...@gmail.com wrote: When looking at the website of HaMakor http://www.hamakor.org.il/ I see the butterfly on the top of the English About us menu item and I cannot click on the menu item. Typing http://www.hamakor.org.il/en/ worked and the menu item is highlighted. Using FF 3.5.9 on Ubuntu 9.10. regards Gabor http://szabgab.com/ ___ 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: request for help regarding a bidi patch
Thanks Omer, They have now accepted the patch, after I proved that the oldstable (thanks to Meir - MKSoft) also include the functions. Now we have a little more support for BiDi in Lazarus making it more usable in that area, and slowly we are making it to be a BiDi complete in Qt4, GTK2 and Windows API (I and another person that add support for it do not have access to any Mac machine for making sure there is also BiDi there), so cross platform UI programming will have better BiDi support :) Ido On Thu, Apr 15, 2010 at 00:43, Omer Zak w...@zak.co.il wrote: In Debian Lenny, the libpango version (libpango1.0-0) is 1.20.5-5+lenny1 In this version, /usr/include/pango-1.0/pango/pango-types.h declares the functions which you need. Outputs requested by you: $ objdump --dynamic-syms /usr/lib/libpango*.so | grep base_dir 00016500 gDF .text 0130 Base pango_itemize_with_base_dir 00028a20 gDF .text 00a6 Basepango_find_base_dir 00015060 gDF .text 0050 Basepango_context_set_base_dir 00015000 gDF .text 0052 Basepango_context_get_base_dir $ objdump --dynamic-syms /usr/lib/libpango*.so | grep unichar_direction 000289e0 gDF .text 0034 Basepango_unichar_direction I have also a directory with files from RedHat 8.0, where the pango version is 1.1.1 (from August 2002). In this version, the functions which you need don't exist. From modern pango changelog.gz: Overview of changes between 1.3.3 and 1.3.5 === * Add support for automatically determining the base direction for PangoLayout from the contained text [Dov Grobgeld] So the first supporting version is probably somewhere between 1.3.5 and 1.20.5-4 (inclusive). --- Omer On Wed, 2010-04-14 at 23:31 +0300, ik wrote: Hello list, I have a small help to ask you, that I've wrote about it at: http://whatsup.org.il/forum/53484 (Hebrew). To make things short, I've created a patch to support BiDi on Lazarus implementation in GTK2. In order to apply the patch, they want to make sure that the two binding functions I've added supported in all current major Linux distro's. I wish to find out, what is the earliest version of libpango and the earliest distro version that have the support of the following functions: pango_unichar_direction pango_find_base_dir I will appreciate any help on this matter, -- Every good master plan involves building a time machine. Moshe Zadka My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
request for help regarding a bidi patch
Hello list, I have a small help to ask you, that I've wrote about it at: http://whatsup.org.il/forum/53484 (Hebrew). To make things short, I've created a patch to support BiDi on Lazarus implementation in GTK2. In order to apply the patch, they want to make sure that the two binding functions I've added supported in all current major Linux distro's. I wish to find out, what is the earliest version of libpango and the earliest distro version that have the support of the following functions: pango_unichar_direction pango_find_base_dir I will appreciate any help on this matter, Thanks, Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: fax and asterisk
On Sat, Jan 30, 2010 at 21:04, geoffrey mendelson geoffreymendel...@gmail.com wrote: I've been playing more with asterisk and fax and wanted to post this to document what I found and see if anyone else had a better answer. I'm running Asterisk 1.6.2 under UBUNTU 9.10 using the UBUNTU packages. I found that the latest for 9.04 was Asterisk 1.4, and had to upgrade my second computer, which was a small disaster on its own. I obtained single user free licenses for each system for Free Fax for Asterisk (FFA). I then installed them on each machine and found that they caused Asterisk to crash with no information. I tracked that down to having app_fax autoloaded and I had to mark it as not to be loaded in modules.conf. The documentation for FFA is pretty sparse or there are a bunch of things missing. The documentation that comes with it shows you how to receive a fax and send one, but there is no simple way to receive a fax and autoincrement the file name, or pass asterisk a file name to send. Since one of my systems has a functioning Hylafax system on it, I decided to do plan b. Plan B is to install IAXMODEM and set it up as a Hylafax modem. The best instruction page I could find was in Italian, but since I could read the config files and path names, I figured it out. Hylafax works well with IAXModem. Hint, make sure to turn off sending of faxes via the IAX modem by default until it works. :-) I could not get an IAX connection to detect a fax tone, but that may have been a configuration problem. Supposedly in 1.6 support for that was added. In any case, in order for a FAX to work over VoIP, you need to use the uLaw or aLaw codecs (IAXMODEM supports uLaw), so it begs the question if there is a source of incoming Israeli DID's (and outgoing service) that supports it? As long as you are working either with FXO/PRI you can use what ever supplier you wish to use (I do not recommend HOT, but other then that I do not have any preferences for pro/con on suppliers). VoIP have a lot of glitches with FAXes afaik, and I never saw even one VoIP service that actually able to pass FAX properly. You can also try spandsp and not only IAXmodem for FAXing, but 90% (or more) of VoIP installation does not work well with FAXes. Looks like for I'll still be keeping my BEZEQ line for the fax machine and modem. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com New word I coined 12/13/09, Sub-Wikipedia adj, describing knowledge or understanding, as in he has a sub-wikipedia understanding of the situation. i.e possessing less facts or information than can be found in the Wikipedia. Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: xlib questions
2010/1/26 Erez D erez0...@gmail.com i need your help i am trying to grab a cursor image (i have the cursor's XID). xlib doesn't have any functions that does that. xfixes have a function that reads the cursor image, but only the current cursor and i am trying to get a cursor which i have i'ts XID. XCopyArea(display,mycursor,...) gives me a bad drawable error. anyone ? Not a direct X answer, but rather a way to approach it. Draw the cursor image you have the XID above the captured image you have in the proper location for it. So you will have to combine two bitmaps into one. Don't forget to mask the pointer prior to add it into the background image you place it on. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: xlib questions
On Tue, Jan 26, 2010 at 13:16, Erez D erez0...@gmail.com wrote: On Tue, Jan 26, 2010 at 1:04 PM, ik ido...@gmail.com wrote: 2010/1/26 Erez D erez0...@gmail.com i need your help i am trying to grab a cursor image (i have the cursor's XID). xlib doesn't have any functions that does that. xfixes have a function that reads the cursor image, but only the current cursor and i am trying to get a cursor which i have i'ts XID. XCopyArea(display,mycursor,...) gives me a bad drawable error. anyone ? Not a direct X answer, but rather a way to approach it. Draw the cursor image you have the XID above the captured image you have in the proper location for it. So you will have to combine two bitmaps into one. i didn't really get wht you mean, but drawing using the cursor XID i have gives me a bad drawable error. You have the image you captured of the desktop (rootwindow) right ? You know what is the handle of the mouse cursor right ? Now tranlsate the mouse cursor handle to it's image. then paint it above the desktop image at X,Y and you have it. Unless I'm completely not understanding what you wish to do. Don't forget to mask the pointer prior to add it into the background image you place it on. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT: internet infrastructure - any alternatives to Hot and Bezeq?
3.5 generation Cellular modem and that's about it afaik :( Ido http://ik.homelinux.org/ On Thu, Jan 21, 2010 at 14:08, Oleg Goldshmidt p...@goldshmidt.org wrote: Hi, Sorry for OT post, but since questions regarding cellular ISPs get good traction I'll bother you with a general Internet question, too. Are there any alternatives in Israel to Hot and Bezeq in internet infrastructure provisioning business (private, not business)? Frankly, I am quite appalled by the level of customer service either of these provide (I do not have any significant technical issues, it's customer service and infrastructure that drives me mad). I am willing to consider alternatives, but I don't know of any, and I tried to google... ;-) Anything at all? Abandon all hope? Thanks, -- 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
Re: Supporting legacy parallel-port dependent HW via USB-to-parallel and virtualization
2010/1/18 Udi Finkelstein linux...@udif.com I have an old universal programmer (i.e. for programming Flash/PLD/Microcontroller chips) that is parallel port based. Since new computers with a parallel port are harder to come by (if at all), I'm looking for a solution that will let me use it with a USB connection. Is there a solution that involves a USB to parallel cable, Yes, there are few of thous. and a virtualization software that traps HW parallel port accesses and emulate them through the USBparallel interface? In linux it's a terminal based device, so you need to map it to a non serial device and you should be able to work with it. The control program for the above programmer only runs under W2000 or DOS, but the virtualization solution can run under Linux. thanks, Udi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Asterisk shabbat mode?
On Sun, Jan 17, 2010 at 12:44, Tzafrir Cohen tzaf...@cohens.org.il wrote: On Sun, Jan 17, 2010 at 07:01:57AM +0200, geoffrey mendelson wrote: On Jan 17, 2010, at 2:29 AM, Tzafrir Cohen wrote: On Sat, Jan 16, 2010 at 08:05:51PM +0200, ik wrote: You can use libhdate with some AGI and set variable to calculate shabat per place and day. This is relatively quite expensive. Maybe a qeekly cron to update a relevant GotoIfTime line in the dialplan? Actually I'm quite happy with picking up the phone and entering an extension number that puts the system into shabbat mode, and doing the opposite motzi shabbat. What I am looking for is a way of setting a presistent variable, so that it knows it is in shabbat mode, and I can easily check it in a dial plan. Normally the astdb is used for such persistant variables. To set: Set(${DB(flags/shabat)=1) To reset: DbDel(flags/shabat) To test in the dialplan: the function DB_EXISTS: GotoIf($[${DB_EXISTS(flags/shabat)}]:context-for-shabat) But that's have to be updated every week, or every X amount of time. You can't automate Berkly insert/update without any AGI/AMI running at least once, unless you know something I do not know. I'll take the chance that if there is a power glitch, the system will reboot in normal mode. If that's OK, you can set a global variable instead. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Asterisk shabbat mode?
On Sun, Jan 17, 2010 at 15:09, Tzafrir Cohen tzaf...@cohens.org.il wrote: On Sun, Jan 17, 2010 at 01:17:53PM +0200, ik wrote: On Sun, Jan 17, 2010 at 12:44, Tzafrir Cohen tzaf...@cohens.org.il wrote: On Sun, Jan 17, 2010 at 07:01:57AM +0200, geoffrey mendelson wrote: On Jan 17, 2010, at 2:29 AM, Tzafrir Cohen wrote: On Sat, Jan 16, 2010 at 08:05:51PM +0200, ik wrote: You can use libhdate with some AGI and set variable to calculate shabat per place and day. This is relatively quite expensive. Maybe a qeekly cron to update a relevant GotoIfTime line in the dialplan? Actually I'm quite happy with picking up the phone and entering an extension number that puts the system into shabbat mode, and doing the opposite motzi shabbat. What I am looking for is a way of setting a presistent variable, so that it knows it is in shabbat mode, and I can easily check it in a dial plan. Normally the astdb is used for such persistant variables. To set: Set(${DB(flags/shabat)=1) To reset: DbDel(flags/shabat) To test in the dialplan: the function DB_EXISTS: GotoIf($[${DB_EXISTS(flags/shabat)}]:context-for-shabat) But that's have to be updated every week, or every X amount of time. You can't automate Berkly insert/update without any AGI/AMI running at least once, unless you know something I do not know. Sure you can: asterisk -rx 'database put flags shabat 1' asterisk -rx 'database del flags shabat' Run from cron at a time of your choosing. Likewise for global variables: asterisk -rx 'dialplan global set IS_SHABAT 1' (In asterisk 1.4 it was 'core global ...') But for that you need to know when is the shabat enter a specific location, so you need extra program for it (even if it's pure bash), to calculate the exact time it started. I think that the berkley should have the exact time and date for each week for that. I agree that you can execute it like so, but it requires a bit more work then what you are pointing out imho. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Asterisk shabbat mode?
You can use libhdate with some AGI and set variable to calculate shabat per place and day. Ido http://ik.homelinux.org/ On Sat, Jan 16, 2010 at 19:34, geoffrey mendelson geoffreymendel...@gmail.com wrote: Anyone know if there is a shabbat mode, or persistent variable? I know that I can make a night mode by time, but since shabbat time changes every week, I'm just looking for something where I can dial an extension number which would turn on shabbat mode and another extension to turn it off (or the same one as a toggle). Then I can check it in the dialplan and if it is set, go directly to voicemail. Even nicer would be to display shabbat shalom on the screen on sccp phones. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com New word I coined 12/13/09, Sub-Wikipedia adj, describing knowledge or understanding, as in he has a sub-wikipedia understanding of the situation. i.e possessing less facts or information than can be found in the Wikipedia. ___ 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: X/Xlib programming questions
Hello Erez, I think you are looking for XQueryPointer ( http://www.xfree86.org/4.4.0/XQueryPointer.3.html). Ido http://ik.homelinux.org/ On Mon, Jan 4, 2010 at 12:20, Erez D erez0...@gmail.com wrote: hello i want to send keyboard and mouse event to a window at position x,y. i thought of using XSendEvent how do i find which is the top most window at pos x,y (without moving the pointer position) ? what fields do i need to fill in the event i send via XSendEvent, i guess event.xbutton.serial and event.xbutton.send_event and event.xbutton.display are filled automatically by xlib. am i correct ? thanks, erez. ___ 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: finding how many screens i have
Erez, You can write the following program: for (int count = 1; count = argc; count ++) { Display *dpy; int i; dpy = XOpenDisplay(argv[count]) i = XScreenCount(dpy); printf(You have %d screens\n, i); XCloseDisplay(dpy); } Its a quick and dirty code from my memory (haven't tried it). that counts for each given display string in the command line. Ido http://ik.homelinux.org/ On Thu, Dec 31, 2009 at 11:57 AM, Erez D erez0...@gmail.com wrote: hi i have a computer with multiple display adapters, and each may have multiple X servers. each X server may have multiple screens. how can i get a list of all the screens i have ? thanks, erez. ___ 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
fortigate vpn and linux
Hello Does anyone in this list was able to work properly with Fortigate's SSL VPN under linux, or know any way to work without without using the official client ? Thanks, Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: weird WIFI route
Can you clean your entire routing table and set it by hand on your own ? Also something I can think of is a bridge from one device to another. What is your distro ? Ido http://ik.homelinux.org/ 2009/12/27 Hetz Ben Hamo het...@gmail.com Hi, I'm using this machine with wifi connection and I noticed something really weird.. When browsing the net I saw that sometimes I didn't get the DNS resolving. I added DNS servers to resolv.conf, even setup my own DNS server. That didn't help. So I tried to ping some sites and then I saw it took quite a long time until it started ping even specific IP numbers. I checked route and then I saw the problem.. it shows the routes, pauses for few seconds and then shows the default gateway (which is an internal IP). I replaced the router to Linksys which works OK, but I still get those problems. It's not an issue of signal strength (it's around 70-80% here). Any suggestions? Thanks, Hetz -- my blog (hebrew): http://benhamo.org Skype: heunique MSN: hetz-b...@benhamo.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
Re: weird WIFI route
On Sun, Dec 27, 2009 at 1:07 PM, Hetz Ben Hamo het...@gmail.com wrote: Clean? It's a 2 line thing: # route Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 192.168.1.0 * 255.255.255.0 U 2 00 ra0 default 192.168.1.1 0.0.0.0 UG0 00 ra0 I didn't understand: which devices to bridge? (no ethernet here). I'm using Fedora 12. I was asking if you have one, not to create one :) Other then DNS issues (you can make a default reaction of fail fast as far as I remember from bind - haven't touched it since 2007), you might as well have a ssid issues as mentioned here, or some radio issues as well. Hetz On Sun, Dec 27, 2009 at 12:54 PM, ik ido...@gmail.com wrote: Can you clean your entire routing table and set it by hand on your own ? Also something I can think of is a bridge from one device to another. What is your distro ? Ido http://ik.homelinux.org/ 2009/12/27 Hetz Ben Hamo het...@gmail.com Hi, I'm using this machine with wifi connection and I noticed something really weird.. When browsing the net I saw that sometimes I didn't get the DNS resolving. I added DNS servers to resolv.conf, even setup my own DNS server. That didn't help. So I tried to ping some sites and then I saw it took quite a long time until it started ping even specific IP numbers. I checked route and then I saw the problem.. it shows the routes, pauses for few seconds and then shows the default gateway (which is an internal IP). I replaced the router to Linksys which works OK, but I still get those problems. It's not an issue of signal strength (it's around 70-80% here). Any suggestions? Thanks, Hetz -- my blog (hebrew): http://benhamo.org Skype: heunique MSN: hetz-b...@benhamo.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- my blog (hebrew): http://benhamo.org Skype: heunique MSN: hetz-b...@benhamo.org Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il