Re: bash wget script problem
On Sun, May 06, 2012, vordoo wrote about "Re: bash wget script problem": > wget -O - http://admin:1234@192.168.1.1/Status_Router.asp => bash: > 1234@192.168.1.1/Status_Router.asp: event not found I think we're missing something here - maybe you didn't actually write 1234, but a password containing an exclamation point ("!")? The "event not found" suggests there is an explanation point: Look at this: $ bash $ echo hi!hello bash: !hello: event not found $ echo "hi!hello" bash: !hello": event not found $ echo hi\!hello hi!hello $ password="hi!hello" bash: !hello": event not found $ password="hi\!hello" $ echo $password hi\!hello So, as you can see, bash sucks seriously in this regard - it forces you to quote the "!", but then you are left with that quote... The good news, is that this suckiness only happens for interactive shells, not in shell scripts. In an interactive shell, you can use "set +H" to disable this behavior: $ set +H $ password="hi!hello" $ echo $password hi!hello -- Nadav Har'El| Monday, May 7 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |"Outlook not so good." Wow! That magic 8- http://nadav.harel.org.il |ball knows everything! So, what about IE? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
dog db search supported only by msie - the response
what should i do with the response below ? (read anat's reaction). -- Forwarded message -- From: ברוך הלוי [Baruch Levi] Date: 2012/5/7 Subject: RE: חיפוש במאגר הכלבים To: "ענת אלזרקי [Anat Alzraki]" Cc: erez0...@gmail.com ** ** ** ** שלום בשלב הזה כפי ככתוב באתר אנחנו תומכים בסייר של מיקרוסופט בלבד ** ** בברכה ברוך הלוי מרכז ארצי לרישום כלבים משרד החקלאות ** ** -- *From:* ענת אלזרקי [Anat Alzraki] *Sent:* Sunday, May 06, 2012 10:51 AM *To:* ברוך הלוי [Baruch Levi]; **בוריס יעקובסון [**Boris Yakobson**]** *Subject:* FW: חיפוש במאגר הכלבים ** ** ** ** תשיבו למיילל למטה ** ** *בברכה*** *אלזרקי ענת* *המרכז הארצי לרישום כלבים* *טלפון: 03-9681610* *פקס: 03-9681753*** * * * * * * ** ** -- *From**:* Erez D [mailto:erez0...@gmail.com] *Sent**:* Thursday, May 03, 2012 6:12 PM *To**:* **Dog** **Center** *Subject**:* חיפוש במאגר הכלבים ** ** שלום רב אני מנסה לחפש במאגר הכלבים : http://www.vtr.moag.gov.il/vtr/DogCenter/search.asp אך איני מצליח- לא בפלאפון, לא בטאבלט ולא ב PC שמריץ לינוקס לא נראה לי סביר שאני צריך לשלם על רישיון של ווינדוז בכדי לחפש במאגר ממשלתי הייתי מצפה מאתר ממשלתי שיהיה לפי התקן (ואז יעבוד לא רק באקפלורר - גם בפלפון בטאבלט, בלינוקס, במאק וכו...) תודה ארז. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: dog db search supported only by msie - the response
Ask why. Why did they choose to disregard international standards? What are their plans for obeying standards in the future? They should understand that this is not a matter of Microsoft vs. Firefox or chrome this is a matter of disregarding international standards. -- Ori Idan 2012/5/7 Erez D > what should i do with the response below ? (read anat's reaction). > > -- Forwarded message -- > From: ברוך הלוי [Baruch Levi] > Date: 2012/5/7 > Subject: RE: חיפוש במאגר הכלבים > To: "ענת אלזרקי [Anat Alzraki]" > Cc: erez0...@gmail.com > > > ** ** ** ** > > שלום > > בשלב הזה כפי ככתוב באתר > > אנחנו תומכים בסייר של מיקרוסופט בלבד > > ** ** > > בברכה > > ברוך הלוי > > מרכז ארצי לרישום כלבים > > משרד החקלאות > > ** ** > -- > > *From:* ענת אלזרקי [Anat Alzraki] > *Sent:* Sunday, May 06, 2012 10:51 AM > *To:* ברוך הלוי [Baruch Levi]; **בוריס יעקובסון [**Boris Yakobson**]** > *Subject:* FW: חיפוש במאגר הכלבים > > ** ** > > ** ** > > תשיבו למיילל למטה > > ** > ** > > > *בברכה*** > > *אלזרקי ענת* > > *המרכז הארצי לרישום כלבים* > > *טלפון: 03-9681610* > > *פקס: 03-9681753*** > > * * > > * * > > * * > > ** ** > -- > > *From**:* Erez D [mailto:erez0...@gmail.com] > *Sent**:* Thursday, May 03, 2012 6:12 PM > *To**:* **Dog** **Center** > *Subject**:* חיפוש במאגר הכלבים > > ** ** > > שלום רב > > אני מנסה לחפש במאגר הכלבים : > http://www.vtr.moag.gov.il/vtr/DogCenter/search.asp > אך איני מצליח- לא בפלאפון, לא בטאבלט ולא ב PC שמריץ לינוקס > > לא נראה לי סביר שאני צריך לשלם על רישיון של ווינדוז בכדי לחפש במאגר ממשלתי > הייתי מצפה מאתר ממשלתי שיהיה לפי התקן (ואז יעבוד לא רק באקפלורר - גם > בפלפון בטאבלט, בלינוקס, במאק וכו...) > > תודה > ארז. > > > ___ > 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: dog db search supported only by msie - the response
On Mon, May 07, 2012, Erez D wrote about "dog db search supported only by msie - the response": > what should i do with the response below ? (read anat's reaction). It sounds like you told them "you have a problem", and they responded with "yes, we know we have a problem", and implied that "and we don't care". I don't think there's anything more you can achieve by talking to these guys. What can you do about it? Maybe call one of the radio shows that talk about the Israeli beaurocracies, or tell some reporter. Don't overemphasise Linux - also mention that it doesn't work on smartphones (if it indeed doesn't work). BTW, today ynet made a mockery out of the ministry of transportation site (see http://www.ynet.co.il/articles/0,7340,L-4225382,00.html). One of the complaints that the columnist had was that their site doesn't work on smartphones, only on home computers (that, I guess, are presumed to have Windows). Nadav. -- Nadav Har'El| Monday, May 7 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Why do doctors call what they do http://nadav.harel.org.il |practice? Think about it. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
TV card - tuner (not dvb)
My computer is dying. For reasons not relevant to this post I'm sure it's a hardware problem, so I'll probably be buying a new one. I have a generic SAA7130 PCI TV card that has worked for years. It's connected to the analogue output of a YES "MEMIR" (and before that to HOT). I use tvtime (and sometimes xawtv) as my TV viewer. Unfortunately, new computers no longer have PCI slots, so I'll need a new card (or more probably a USB dongle). I've Googled for recommendations, but haven't really found a solution. Does anyone on the list have a working solution to suggest? My needs are simple. I just want to connect to my "MEMIR" and watch TV in a window, while using the computer for writing, browsing, etc. The possibility to record TV programs would be nice, but is NOT essential. -- Shlomo Solomon http://the-solomons.net Sent by KMail 1.13.3 (KDE 4.4.3) on LINUX Mandriva 2010.1 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: dog db search supported only by msie - the response
actually, what annoyed me the most was the sentence: תשיבו למיילל למטה On Mon, May 7, 2012 at 6:05 PM, Nadav Har'El wrote: > On Mon, May 07, 2012, Erez D wrote about "dog db search supported only by > msie - the response": > > what should i do with the response below ? (read anat's reaction). > > It sounds like you told them "you have a problem", and they responded > with "yes, we know we have a problem", and implied that "and we don't > care". I don't think there's anything more you can achieve by talking > to these guys. > > What can you do about it? Maybe call one of the radio shows that talk > about the Israeli beaurocracies, or tell some reporter. Don't > overemphasise Linux - also mention that it doesn't work on smartphones > (if it indeed doesn't work). > > BTW, today ynet made a mockery out of the ministry of transportation > site (see http://www.ynet.co.il/articles/0,7340,L-4225382,00.html). > One of the complaints that the columnist had was that their site doesn't > work on smartphones, only on home computers (that, I guess, are presumed > to have Windows). > > Nadav. > > -- > Nadav Har'El| Monday, May 7 > 2012, > n...@math.technion.ac.il > |- > Phone +972-523-790466, ICQ 13349191 |Why do doctors call what they do > http://nadav.harel.org.il |practice? Think about it. > ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
[OT] Re: dog db search supported only by msie - the response
Suggestion: Forward it to the Minister's bureau and to the Director General's office (emails are on http://www.moag.gov.il/agri/English/contacts.htm, consider snail mail), explain that Ms. Alzraki's email was offensive, and both she and Baruch Levi behaved grossly unprofessionally and in a manner not becoming civil servants (he should have thought what he was forwarding, she should not have written what she did even in an internal email). Then explain that the overall lack of professionalism is evident not only from the manner these two people communicated with the taxpayer (you) but also from the fact that the site that is supposed to provide service to the citizen does not comply with international standards. Mention that you expect a reaction within 45 days (I think this is what the law says), including what the Ministry is planning to do to make the site usable. Maybe the timing will actually make the Minister light a fire under some piece of someone's anatomy? On Mon, May 7, 2012 at 11:18 AM, Erez D wrote: > actually, what annoyed me the most was the sentence: > תשיבו למיילל למטה > > > -- 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: TV card - tuner (not dvb)
On Mon, 7 May 2012, Shlomo Solomon wrote: My computer is dying. For reasons not relevant to this post I'm sure it's a hardware problem, so I'll probably be buying a new one. I have a generic SAA7130 PCI TV card that has worked for years. It's connected to the analogue output of a YES "MEMIR" (and before that to HOT). I use tvtime (and sometimes xawtv) as my TV viewer. Unfortunately, new computers no longer have PCI slots, so I'll need a new card (or more probably a USB dongle). I've Googled for recommendations, but haven't really found a solution. Does anyone on the list have a working solution to suggest? My needs are simple. I just want to connect to my "MEMIR" and watch TV in a window, while using the computer for writing, browsing, etc. The possibility to record TV programs would be nice, but is NOT essential. I bought about a year ago the chepest such device that is available on ebay. The one I bought looks exactly like this: http://www.ebay.com/itm/EasyCap-USB-2-0-Video-TV-DVD-VHS-Audio-Capture-Adapter-for-Windows-vista-win-7-/330726120826?pt=US_Video_Capture_TV_Tuner_Cards&hash=item4d00d01d7a And works with linux. It is of course a bet, because a new one might use another chipset which does not work in Linux. You can buy from an Israeli site for at least twice the price if you care for faster shipping. You can probably also buy it from a local shop (for quadruple the price), with a pre-arrangement that you may return the device if it does not work in Linux. -- Matan Ziv-Av. ma...@svgalib.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: dog db search supported only by msie - the response
On Mon, May 07, 2012, Erez D wrote about "Re: dog db search supported only by msie - the response": > actually, what annoyed me the most was the sentence: > תשיבו למיילל למטה Wow, I read this as "mail", not "meyalel", and found it very innocent... I wonder if he deliberately wrote it like that (he should have known that you would see the whole thread, because statistically, idiots top-post), or it was an honest typo that the spell-checker accepted as correct. BTW, on a dog site, calling you "meyalel" isn't just an insult - it's almost a license to kill you ;-) -- Nadav Har'El| Monday, May 7 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |echo '[q]sa[ln0=aln256%Pln256/snlbx] http://nadav.harel.org.il |sb3135071790101768542287578439snlbxq'|dc ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
writing data over RS232
Hi all, I have been assigned at work to write a specific protocol between two machines, which eventually will be over RS232. As part of the development I decided to write it on linux, and simulate the communication using a named pipe. In theroy, it should be trivail since the protocol only needs to know about the FD to read/write to, correct? Wrong. I face two problems (maybe one, as both problems seem similar): When I try to read from the PC (Ubuntu 12.04, 64bit), the read just aborts returning "0". If I run the application several times, I somtimes see that the app can read ONE byte. Sometimes. When I write from the PC, and read from the device (Andriod, 2.3.7, Linux 2.6.38.8) the android device reads garbage. I mean, the byte count is wrong, and the content is usually garbage. When I connect microcom (busybox) on Android (actually "microcom /dev/ttyS3 | hexdump -C") I can see that the bytes sent are mostly arriving, however maybe times bytes are missing, and sometimes the same bytes are read twice (I sent "testing 123" and read "testing 12323"). Some remarks: - ttyS* are opened on both sides using "open(file, O_RDWR|O_NOCTTY)" - speeds are set on both side using "csetispeed(&to, B1900);csetospeed(&to, B1900);", note that I lowered the speed for the test. - The Android side has no HW flow control (that might be the trigger). What would you recommend me to do? - diego ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: writing data over RS232
RS232 has a lot of settings, baud rate is only one of them You can use 'stty -a' to see what available. Unless all your settings are correct you are going to have a problem with communication. Valery. > > From: Diego Iastrubni >To: "linux-il@cs.huji.ac.il" >Sent: Monday, May 7, 2012 9:24 PM >Subject: writing data over RS232 > >Hi all, > >I have been assigned at work to write a specific protocol between two >machines, which eventually will be over RS232. As part of the development I >decided to write it on linux, and simulate the communication using a named >pipe. In theroy, it should be trivail since the protocol only needs to know >about the FD to read/write to, correct? Wrong. > >I face two problems (maybe one, as both problems seem similar): > >When I try to read from the PC (Ubuntu 12.04, 64bit), the read just aborts >returning "0". If I run the application several times, I somtimes see that the >app can read ONE byte. Sometimes. > >When I write from the PC, and read from the device (Andriod, 2.3.7, Linux >2.6.38.8) the android device reads garbage. I mean, the byte count is wrong, >and the content is usually garbage. > >When I connect microcom (busybox) on Android (actually "microcom /dev/ttyS3 | >hexdump -C") I can see that the bytes sent are mostly arriving, however maybe >times bytes are missing, and sometimes the same bytes are read twice (I sent >"testing 123" and read "testing 12323"). > >Some remarks: > >- ttyS* are opened on both sides using "open(file, O_RDWR|O_NOCTTY)" >- speeds are set on both side using "csetispeed(&to, B1900);csetospeed(&to, >B1900);", note that I lowered the speed for the test. >- The Android side has no HW flow control (that might be the trigger). > >What would you recommend me to do? > >- diego > >___ >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: bash wget script problem
Sorry, I messed up the Error message. I did have an: "!", in the original pass but changed it to "1234" for the problem debugging. with: wget -O - http://admin:"1234"@192.168.1.1/Status_Router.asp wget -O - http://admin:1234@192.168.1.1/Status_Router.asp The error is: Connecting to 192.168.1.1:80... connected. HTTP request sent, awaiting response... 401 Unauthorized Failed writing HTTP request: Bad file descriptor. On 05/07/2012 04:21 PM, Nadav Har'El wrote: On Sun, May 06, 2012, vordoo wrote about "Re: bash wget script problem": wget -O - http://admin:1234@192.168.1.1/Status_Router.asp => bash: 1234@192.168.1.1/Status_Router.asp: event not found I think we're missing something here - maybe you didn't actually write 1234, but a password containing an exclamation point ("!")? The "event not found" suggests there is an explanation point: Look at this: $ bash $ echo hi!hello bash: !hello: event not found $ echo "hi!hello" bash: !hello": event not found $ echo hi\!hello hi!hello $ password="hi!hello" bash: !hello": event not found $ password="hi\!hello" $ echo $password hi\!hello So, as you can see, bash sucks seriously in this regard - it forces you to quote the "!", but then you are left with that quote... The good news, is that this suckiness only happens for interactive shells, not in shell scripts. In an interactive shell, you can use "set +H" to disable this behavior: $ set +H $ password="hi!hello" $ echo $password hi!hello ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: dog db search supported only by msie - the response
On Mon, May 7, 2012 at 9:07 PM, Nadav Har'El wrote: > On Mon, May 07, 2012, Erez D wrote about "Re: dog db search supported only > by msie - the response": > > actually, what annoyed me the most was the sentence: > > תשיבו למיילל למטה > > Wow, I read this as "mail", not "meyalel", and found it very innocent... > > I wonder if he deliberately wrote it like that (he should have known that > you would see the whole thread, because statistically, idiots top-post), > or it was an honest typo that the spell-checker accepted as correct. > ok, i'll give her the benefit of the dought. btw, who uses spellcheckers anyway ? thanks, erez. > > BTW, on a dog site, calling you "meyalel" isn't just an insult - it's > almost > a license to kill you ;-) > or a compliment ;-) > > -- > Nadav Har'El| Monday, May 7 > 2012, > n...@math.technion.ac.il > |- > Phone +972-523-790466, ICQ 13349191 |echo '[q]sa[ln0=aln256%Pln256/snlbx] > http://nadav.harel.org.il > |sb3135071790101768542287578439snlbxq'|dc > ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il