Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Fri, Sep 05, 2008 at 09:24:34AM +1000, Amos Shapira wrote: > Another thing - to page the coloured results through less, use "less > -R" (useful to page through bloody puppet's coloured screen log). And to follow-up to the original poster: press 'F' in less to make it behave as 'tail -f' -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il || a Mutt's [EMAIL PROTECTED] || best ICQ# 16849754 || friend = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
2008/9/5 Tzafrir Cohen <[EMAIL PROTECTED]>: > You want to mark 'FINDME' but also find every line? > > grep --color '^\|FINDME' > > Or: > > egrep --color '^|FINDME' Nice one! I should have though of that. (Into my bag of tools). Another thing - to page the coloured results through less, use "less -R" (useful to page through bloody puppet's coloured screen log). Cheers, --Amos = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Thu, Sep 04, 2008 at 02:31:02PM +0300, Maxim Veksler wrote: > Hi Amos, > > On Thu, Sep 4, 2008 at 2:05 PM, Amos Shapira <[EMAIL PROTECTED]> wrote: > > 2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: > >> Hi, > >> > >> Someone has a good recommendation for a log syntax highlighter ? > >> > >> I have my application logs where I need to quickly highlight some text, in > >> that case "name=" the output is verbose as I'm running in TRACE. > > > > "grep --color --name={1}" > > > > That would actually be great and is exactly the kind of solution I'm > searching for. The only problem with the grep --color apporoach is > that It would only show me the lines that contain the search term. I > want to see the whole scrolling log and highlight what interested me. You want to mark 'FINDME' but also find every line? grep --color '^\|FINDME' Or: egrep --color '^|FINDME' -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il || a Mutt's [EMAIL PROTECTED] || best ICQ# 16849754 || friend = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Thursday 04 September 2008, Maxim Veksler wrote: > On Thu, Sep 4, 2008 at 4:17 PM, Shlomi Fish <[EMAIL PROTECTED]> wrote: > > Here's a Proof-of-Concept script I wrote to implement this: > > [snipped] > > I mainly write in Python / Java but the above work from Shlomi is just > great !This is exactly what I've been after, quick dirty and works. > > Thanks a-lot !! > You're welcome. > Shlomi and Amos -- You are the man's ;) Thanks. > > > // OT Note: I must admit that to some one who is accustomed to logic... the > above code is completely unreadable. Could someone please explain where in > the above code the ANSI module / method / operator / what ever they do in > Perl... is called to the actually coloring that was read from stdin? Yes. The key line is: <<< $l =~ s/($re)/colored($1, $c)/eg; >>> $re is a variable containing a regular expression. s/($re)/EXPR()/eg matches all occurences of $re (while capturing it as $1) and replaces them with EXPR(). The expression in our case is: <<< colored($1, $c) >>> It and returns a string that represents $1 coloured using the colour $c. As you should note, I assign $re and $c previously here: <<< my $re = $pat->{pat}; my $c = $pat->{color}; >>> Regards, Shlomi Fish - Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://xrl.us/bjn7p Shlomi, so what are you working on? Working on a new wiki about unit testing fortunes in freecell? -- Ran Eilam = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Thu, Sep 4, 2008 at 4:17 PM, Shlomi Fish <[EMAIL PROTECTED]> wrote: > On Thursday 04 September 2008, Amos Shapira wrote: > > 2008/9/4 Amos Shapira <[EMAIL PROTECTED]>: > > > 2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: > > >> That would actually be great and is exactly the kind of solution I'm > > >> searching for. The only problem with the grep --color apporoach is > > >> that It would only show me the lines that contain the search term. I > > >> want to see the whole scrolling log and highlight what interested me. > > > > Also, a quick CPAN search turned up > > http://search.cpan.org/~rra/ANSIColor-1.12/ANSIColor.pm > > If you are a Perl programmer, I'd reckon a 15 minute work will get you > > what you want (but I don't have them right now to do this for you, > > sorry). > > Here's a Proof-of-Concept script I wrote to implement this: > > > #!/usr/bin/perl > > # Written by Shlomi Fish - http://www.shlomifish.org/ - 2008 > # Licensed under the MIT/X11 License. > # > # Example: > # perl color-patterns.pl --pat hello=red --pat '(?i:maxim)'=blue > > use strict; > use warnings; > > use Getopt::Long; > use Term::ANSIColor; > > my %patterns; > GetOptions("pat=s" => \%patterns); > > my @p; > while (my ($k, $v) = each (%patterns)) > { >push @p, { pat => qr{$k}, color => $v }; > } > > while (my $l = <>) > { >foreach my $pat (@p) >{ >my $re = $pat->{pat}; >my $c = $pat->{color}; >$l =~ s/($re)/colored($1, $c)/eg; >} >print $l; > } > > > Regards, > >Shlomi Fish > > - > Shlomi Fish http://www.shlomifish.org/ > Why I Love Perl - http://xrl.us/bjn88 > > Shlomi, so what are you working on? Working on a new wiki about unit > testing > fortunes in freecell? -- Ran Eilam > > I mainly write in Python / Java but the above work from Shlomi is just great !This is exactly what I've been after, quick dirty and works. Thanks a-lot !! Shlomi and Amos -- You are the man's ;) // OT Note: I must admit that to some one who is accustomed to logic... the above code is completely unreadable. Could someone please explain where in the above code the ANSI module / method / operator / what ever they do in Perl... is called to the actually coloring that was read from stdin? -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ?
Re: Financing for Wine BiDi
2008/9/4 Omer Zak <[EMAIL PROTECTED]>: > Only if you are willing to fork over 400NIS. > I do not see families of private people donating more than 100NIS per > family, regardless of number of users. > That's exactly what I meant. I'm not rich, but in any case the wine project is saving me money. > Shachar (Lingnu CEO): can you open a PayPal account (or equivalent) to > collect money from private people? Or do you have another mechanism to > deal with, say, 300 small payments? > > Shachar (Hamakor chairman): are there any tax advantages in getting > Hamakor to handle this, and work out any conflict of interest issues? > > Shachar (again, Lingnu CEO): seems that we might pull this off - so we > need more realistic estimates of the project cost. What budget do you > need to cover the cost of reviewing bugs, edit control development and > RTF edit control development? > With this figure, we can plan on 2-stage project, each stage to be > budgetted separately: > stage 1 - plan the project and make estimates. > stage 2 - actually execute. > If the output of stage 1 is made publicly available, then maybe parts of > stage 2 can be performed by outside volunteers with their own sources of > funding. > >> That's another 596 heads to find. I >> will be sure to drop hints wherever I can. > > Yes, it would help. > >> Both Google and MS have a presence in Israel. If I were to write to >> Google suggesting that it might be in their interests to at least >> partially sponsor the project, to where would I direct them for >> further information? > > Shoshana Forbes, being a Google insider, is the first name which comes > to my mind. Of course, we are speaking about sponsorship under a plan > different from GSoC. Naturally. Though independently of whatever is decided now, the community should maybe consider starting to recruiting CS students for GSoC to work on Wine BiDi support next summer. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: ( Marked As Spam ) Re: Financing for Wine BiDi
On Thu, 2008-09-04 at 16:26 +0300, Shachar Shemesh wrote: > Omer Zak wrote: > > > > Shachar (Lingnu CEO): can you open a PayPal account (or equivalent) to > > collect money from private people? Or do you have another mechanism to > > deal with, say, 300 small payments? > > > > > PayPal is fine. The main problem is what happens if too few people say > "I will"? How do you deal with returning everyone's money? There is also > the bitch of issuing invoices to everyone involved - not a trivial task! 1. In the following, you outlined possible stages for the project - bug fixes; edit control (non-RTF). In this staged approach, you can start the next stage once there are enough funds for the stage. Also, in the PayPal donation page you can state that unused funds will go to Hamakor to fund other projects. 2. Assuming that not everyone wants or needs a paper invoice, you could just print the invoices but actually send them only to those who request them. > > Shachar (again, Lingnu CEO): seems that we might pull this off - so we > > need more realistic estimates of the project cost. What budget do you > > need to cover the cost of reviewing bugs, edit control development and > > RTF edit control development? > > > I think we should leave RTF out of it right now. It does not add much to > the end user experience, and is probably a pain to implement. Nevertheless, I suggest to plan also this. If people still want it, they'll fund also this part of the project. > As for > edit - I'm supposed to be working on a project for ISOC that will > implement a BiDi edit control (not in Wine), and hopfully, once that > project is done, there will be enough reusable code to reduce the cost > of this element. At the moment, it is hard to estimate. Make a worst case estimate (if you can't reuse the ISOC code). > Please note that even without edit control, even just with #2 support, > MSO will work. > > With this figure, we can plan on 2-stage project, each stage to be > > budgetted separately: > > stage 1 - plan the project and make estimates. > > stage 2 - actually execute. > > If the output of stage 1 is made publicly available, then maybe parts of > > stage 2 can be performed by outside volunteers with their own sources of > > funding. > > > No problem with that. At the moment, the tasks are not really divisable. > Once #1 and #2 are done, hopefully, that will improve. OK. So now we need to raise 19K NIS to get #1, #2 done. And then we'll know what will be the cost estimate for #3, #4 and optionally #5. Is this the situation? I suggest that people and corporations donate 35NIS/seat for #1,#2 and put aside additional 85NIS/seat for #3,#4,#5. (I took into account 10NIS per transaction to cover administrative costs.) I do not see myself as a Wine user, but to put some money where my big mouth is, I'll donate 35NIS once there is a way to donate to this project (without putting aside the additional 85NIS). --- Omer -- By running MS-Windows XP on your PC, you are probably a multi-zombie. 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 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
Omer Zak wrote: Shachar (Lingnu CEO): can you open a PayPal account (or equivalent) to collect money from private people? Or do you have another mechanism to deal with, say, 300 small payments? PayPal is fine. The main problem is what happens if too few people say "I will"? How do you deal with returning everyone's money? There is also the bitch of issuing invoices to everyone involved - not a trivial task! Shachar (Hamakor chairman): are there any tax advantages in getting Hamakor to handle this, and work out any conflict of interest issues? Not that I can see. Since the money will eventually have to reach a business entity, VAT will need to be collected whatever the route. If Hamakor was an approved donation organization, then private people could offset this against income. Businesses can do that with the current situation. The only problem is that Hamakor has not managed to secure an approved donation status, so at the moment participation adds nothing. Shachar (again, Lingnu CEO): seems that we might pull this off - so we need more realistic estimates of the project cost. What budget do you need to cover the cost of reviewing bugs, edit control development and RTF edit control development? I think we should leave RTF out of it right now. It does not add much to the end user experience, and is probably a pain to implement. As for edit - I'm supposed to be working on a project for ISOC that will implement a BiDi edit control (not in Wine), and hopfully, once that project is done, there will be enough reusable code to reduce the cost of this element. At the moment, it is hard to estimate. Please note that even without edit control, even just with #2 support, MSO will work. With this figure, we can plan on 2-stage project, each stage to be budgetted separately: stage 1 - plan the project and make estimates. stage 2 - actually execute. If the output of stage 1 is made publicly available, then maybe parts of stage 2 can be performed by outside volunteers with their own sources of funding. No problem with that. At the moment, the tasks are not really divisable. Once #1 and #2 are done, hopefully, that will improve. Shachar = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Thursday 04 September 2008, Amos Shapira wrote: > 2008/9/4 Amos Shapira <[EMAIL PROTECTED]>: > > 2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: > >> That would actually be great and is exactly the kind of solution I'm > >> searching for. The only problem with the grep --color apporoach is > >> that It would only show me the lines that contain the search term. I > >> want to see the whole scrolling log and highlight what interested me. > > Also, a quick CPAN search turned up > http://search.cpan.org/~rra/ANSIColor-1.12/ANSIColor.pm > If you are a Perl programmer, I'd reckon a 15 minute work will get you > what you want (but I don't have them right now to do this for you, > sorry). Here's a Proof-of-Concept script I wrote to implement this: #!/usr/bin/perl # Written by Shlomi Fish - http://www.shlomifish.org/ - 2008 # Licensed under the MIT/X11 License. # # Example: # perl color-patterns.pl --pat hello=red --pat '(?i:maxim)'=blue use strict; use warnings; use Getopt::Long; use Term::ANSIColor; my %patterns; GetOptions("pat=s" => \%patterns); my @p; while (my ($k, $v) = each (%patterns)) { push @p, { pat => qr{$k}, color => $v }; } while (my $l = <>) { foreach my $pat (@p) { my $re = $pat->{pat}; my $c = $pat->{color}; $l =~ s/($re)/colored($1, $c)/eg; } print $l; } Regards, Shlomi Fish - Shlomi Fish http://www.shlomifish.org/ Why I Love Perl - http://xrl.us/bjn88 Shlomi, so what are you working on? Working on a new wiki about unit testing fortunes in freecell? -- Ran Eilam = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
On Thu, 2008-09-04 at 15:14 +0300, Dotan Cohen wrote: > 2008/9/4 Omer Zak <[EMAIL PROTECTED]>: > > See one of my previous E-mail messages. > > We are looking at 60K NIS. If we can round up a group of companies with > > total of 600 potential Wine users, then this should be doable - with > > 100NIS/head, the companies would save costs of dual-booting, VM > > deployments and licenses on extra copies of MS-Windows XP that they'd > > otherwise need. > > > > --- Omer > > Thanks, Omer. I'll sign up for the first four spots: me, the wife, the > daughter, and another on the way. Only if you are willing to fork over 400NIS. I do not see families of private people donating more than 100NIS per family, regardless of number of users. Shachar (Lingnu CEO): can you open a PayPal account (or equivalent) to collect money from private people? Or do you have another mechanism to deal with, say, 300 small payments? Shachar (Hamakor chairman): are there any tax advantages in getting Hamakor to handle this, and work out any conflict of interest issues? Shachar (again, Lingnu CEO): seems that we might pull this off - so we need more realistic estimates of the project cost. What budget do you need to cover the cost of reviewing bugs, edit control development and RTF edit control development? With this figure, we can plan on 2-stage project, each stage to be budgetted separately: stage 1 - plan the project and make estimates. stage 2 - actually execute. If the output of stage 1 is made publicly available, then maybe parts of stage 2 can be performed by outside volunteers with their own sources of funding. > That's another 596 heads to find. I > will be sure to drop hints wherever I can. Yes, it would help. > Both Google and MS have a presence in Israel. If I were to write to > Google suggesting that it might be in their interests to at least > partially sponsor the project, to where would I direct them for > further information? Shoshana Forbes, being a Google insider, is the first name which comes to my mind. Of course, we are speaking about sponsorship under a plan different from GSoC. --- Omer -- By running MS-Windows XP on your PC, you are probably a multi-zombie. 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 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
2008/9/4 Omer Zak <[EMAIL PROTECTED]>: > See one of my previous E-mail messages. > We are looking at 60K NIS. If we can round up a group of companies with > total of 600 potential Wine users, then this should be doable - with > 100NIS/head, the companies would save costs of dual-booting, VM > deployments and licenses on extra copies of MS-Windows XP that they'd > otherwise need. > > --- Omer Thanks, Omer. I'll sign up for the first four spots: me, the wife, the daughter, and another on the way. That's another 596 heads to find. I will be sure to drop hints wherever I can. Both Google and MS have a presence in Israel. If I were to write to Google suggesting that it might be in their interests to at least partially sponsor the project, to where would I direct them for further information? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: Color highlighting of arbitrary "tail -F'ed" text ?
2008/9/4 Amos Shapira <[EMAIL PROTECTED]>: > 2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: >> That would actually be great and is exactly the kind of solution I'm >> searching for. The only problem with the grep --color apporoach is >> that It would only show me the lines that contain the search term. I >> want to see the whole scrolling log and highlight what interested me. Also, a quick CPAN search turned up http://search.cpan.org/~rra/ANSIColor-1.12/ANSIColor.pm If you are a Perl programmer, I'd reckon a 15 minute work will get you what you want (but I don't have them right now to do this for you, sorry). Cheers, --Amos = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: > Hi Amos, > > On Thu, Sep 4, 2008 at 2:05 PM, Amos Shapira <[EMAIL PROTECTED]> wrote: >> 2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: >>> Hi, >>> >>> Someone has a good recommendation for a log syntax highlighter ? >>> >>> I have my application logs where I need to quickly highlight some text, in >>> that case "name=" the output is verbose as I'm running in TRACE. >> >> "grep --color --name={1}" >> > > That would actually be great and is exactly the kind of solution I'm > searching for. The only problem with the grep --color apporoach is > that It would only show me the lines that contain the search term. I > want to see the whole scrolling log and highlight what interested me. > > Thanks ! Uhh, forgot about that part (I use "grep -color" and it was good for my needs) but I DID forward you to "man grep" didn't I? maybe one of the "*-context" options (look for "Context Line Control" in the manual) help you get what you are after. Cheers, --Amos = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
On Thu, 2008-09-04 at 14:28 +0300, Dotan Cohen wrote: > 2008/9/4 Shachar Shemesh <[EMAIL PROTECTED]>: > > Omer Zak wrote: > >> > >> Are there Israeli companies, which deploy Linux solutions, and for which > >> it is worthwhile to avoid dual-booting or virtual machines yet support > >> clients, who still have legacy MS-Windows applications? > >> > > > > Yes and no. > > > > No, no such company will pick up the price tag on its own. Yes, if the > > infrastructure work is done, the remaining part would be economical for > > companies. It's a case of putting money to, potentially, get some back. > > > > Shachar > > > > What order of magnitude are we looking at? It is very hard to state > "someone needs to come up with X shekels / euros / dollars" without > knowing whereabout X lies. See one of my previous E-mail messages. We are looking at 60K NIS. If we can round up a group of companies with total of 600 potential Wine users, then this should be doable - with 100NIS/head, the companies would save costs of dual-booting, VM deployments and licenses on extra copies of MS-Windows XP that they'd otherwise need. --- Omer -- By running MS-Windows XP on your PC, you are probably a multi-zombie. 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 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
Hi Amos, On Thu, Sep 4, 2008 at 2:05 PM, Amos Shapira <[EMAIL PROTECTED]> wrote: > 2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: >> Hi, >> >> Someone has a good recommendation for a log syntax highlighter ? >> >> I have my application logs where I need to quickly highlight some text, in >> that case "name=" the output is verbose as I'm running in TRACE. > > "grep --color --name={1}" > That would actually be great and is exactly the kind of solution I'm searching for. The only problem with the grep --color apporoach is that It would only show me the lines that contain the search term. I want to see the whole scrolling log and highlight what interested me. Thanks ! > Replace "{1}" by regular expression which matches the part you want to > highlight in addition to the "name=", maybe "[^ ]*" to highlight up to > the next space. > >> Could some one please suggest a suitable tool as I've tried some project but >> the hardly work. > > "man grep" > > Cheers, > > --Amos > -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
2008/9/4 Shachar Shemesh <[EMAIL PROTECTED]>: > Omer Zak wrote: >> >> Are there Israeli companies, which deploy Linux solutions, and for which >> it is worthwhile to avoid dual-booting or virtual machines yet support >> clients, who still have legacy MS-Windows applications? >> > > Yes and no. > > No, no such company will pick up the price tag on its own. Yes, if the > infrastructure work is done, the remaining part would be economical for > companies. It's a case of putting money to, potentially, get some back. > > Shachar > What order of magnitude are we looking at? It is very hard to state "someone needs to come up with X shekels / euros / dollars" without knowing whereabout X lies. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: Color highlighting of arbitrary "tail -F'ed" text ?
Maxim - Following on Moish's first idea you might want to take a look at http://brianin3d.wordpress.com/tag/bash/ (script is at http://brianin3d.googlepages.com/line_lite.sh) for a script that inserts vt100 escape codes based a pattern. Yaacov Moish wrote: Maxim Veksler wrote: Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case "name=" the output is verbose as I'm running in TRACE. Could some one please suggest a suitable tool as I've tried some project but the hardly work. {..} If it's formatted ( or would be since it's your application ): 1. Add relevant syntax for vt100 terminal or the likes and display the output on such a terminal ( dah.. ) 2. Import into a spreadsheet. 3. For large amounts of data, import into a db, postgres or whatever. Moish = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
Maxim Veksler wrote: On Thu, Sep 4, 2008 at 1:45 PM, Moish <[EMAIL PROTECTED]> wrote: Maxim Veksler wrote: Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case "name=" the output is verbose as I'm running in TRACE. Could some one please suggest a suitable tool as I've tried some project but the hardly work. {..} If it's formatted ( or would be since it's your application ): 1. Add relevant syntax for vt100 terminal or the likes and display the output on such a terminal ( dah.. ) 2. Import into a spreadsheet. 3. For large amounts of data, import into a db, postgres or whatever. Hmmm, well no. I mean more as a tool I would use for debugging during development. Something that would allow me to do : tail -F /var/log/MyApp/DCN.log | SuperSyntaxHighlighter -SearchForWord="^regexOrSomething" -SearchForWordColor="#FF" I need something would allow me to highlight arbitrary terms in the log. Now I'm searching for "Name" tomorrow I might be search for "objectId". I need a "quick and dirty" solution. Thank you ;) {..} Well, you gave the answer. sed 's/SuperSyntaxHighlighter/sed/' :) use also grep/perl/whatever Moish = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Thu, Sep 04, 2008 at 01:30:39PM +0300, Maxim Veksler wrote: > Hi, > > Someone has a good recommendation for a log syntax highlighter ? Debian has some packages that seem relevant, I never tried any of them: ccze loco lwatch multitail -- Didi = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
2008/9/4 Maxim Veksler <[EMAIL PROTECTED]>: > Hi, > > Someone has a good recommendation for a log syntax highlighter ? > > I have my application logs where I need to quickly highlight some text, in > that case "name=" the output is verbose as I'm running in TRACE. "grep --color --name={1}" Replace "{1}" by regular expression which matches the part you want to highlight in addition to the "name=", maybe "[^ ]*" to highlight up to the next space. > Could some one please suggest a suitable tool as I've tried some project but > the hardly work. "man grep" Cheers, --Amos = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
On Thu, Sep 4, 2008 at 1:45 PM, Moish <[EMAIL PROTECTED]> wrote: > > Maxim Veksler wrote: >> >> Hi, >> >> Someone has a good recommendation for a log syntax highlighter ? >> >> I have my application logs where I need to quickly highlight some text, in >> that case "name=" the output is verbose as I'm running in TRACE. >> >> >> Could some one please suggest a suitable tool as I've tried some project but >> the hardly work. > > {..} > > > If it's formatted ( or would be since it's your application ): > > 1. Add relevant syntax for vt100 terminal or the likes and display the > output on such a terminal ( dah.. ) > 2. Import into a spreadsheet. > 3. For large amounts of data, import into a db, postgres or whatever. > Hmmm, well no. I mean more as a tool I would use for debugging during development. Something that would allow me to do : tail -F /var/log/MyApp/DCN.log | SuperSyntaxHighlighter -SearchForWord="^regexOrSomething" -SearchForWordColor="#FF" I need something would allow me to highlight arbitrary terms in the log. Now I'm searching for "Name" tomorrow I might be search for "objectId". I need a "quick and dirty" solution. Thank you ;) Thanks for helping guys. > Moish > -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Color highlighting of arbitrary "tail -F'ed" text ?
Maxim Veksler wrote: Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case "name=" the output is verbose as I'm running in TRACE. Could some one please suggest a suitable tool as I've tried some project but the hardly work. {..} If it's formatted ( or would be since it's your application ): 1. Add relevant syntax for vt100 terminal or the likes and display the output on such a terminal ( dah.. ) 2. Import into a spreadsheet. 3. For large amounts of data, import into a db, postgres or whatever. Moish = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
Omer Zak wrote: Are there Israeli companies, which deploy Linux solutions, and for which it is worthwhile to avoid dual-booting or virtual machines yet support clients, who still have legacy MS-Windows applications? Yes and no. No, no such company will pick up the price tag on its own. Yes, if the infrastructure work is done, the remaining part would be economical for companies. It's a case of putting money to, potentially, get some back. Shachar = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Color highlighting of arbitrary "tail -F'ed" text ?
Hi, Someone has a good recommendation for a log syntax highlighter ? I have my application logs where I need to quickly highlight some text, in that case "name=" the output is verbose as I'm running in TRACE. Could some one please suggest a suitable tool as I've tried some project but the hardly work. Thank you, Maxim. -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ?
Re: Financing for Wine BiDi
So the budget is 1.25 months of work for fields 1,2, unknown for fields 3,4,5. Given the numbers, fields 1,2 would cost about 19K NIS. Assuming that 3,4,5 need 2.75 months of work, the total budget is 60K NIS (not including Lingnu's own contribution in terms of reduced prices). I assume that it hugely underestimates the effort required in 4,5. One way to raise the money is to identify 600 Linux users, who would like to use Wine BiDi, and it is worth 100NIS at least for each of them, and get 100NIS from each of them. Since I somehow managed to lead totally MS-free life, I don't use Wine so I'm not counted among those 600. Are there Israeli companies, which deploy Linux solutions, and for which it is worthwhile to avoid dual-booting or virtual machines yet support clients, who still have legacy MS-Windows applications? If yes, it may make sense to organize them into a consortium for supporting Wine BiDi work. About GSoC: this is why I asked about the budget for preparing the project for GSoC - it has to be split into student-size bites and probably there are also other preparations as well. --- Omer On Thu, 2008-09-04 at 11:56 +0300, Shachar Shemesh wrote: > Omer Zak wrote: > > How about publicizing in Linux-IL the budget needed to fix Wine BiDi in > > terms of money, equipment and human resources? > > > These are rough estimates. > > Wine needs the following fields worked on: > 1. Move the BiDI code into Uniscribe, where it is on Windows > 2. Handle keyboard input language detection (essentially - rewrite > Wine's input processing - some of it already done) > 3. Start fixing the small bugs > 4. Implement a BiDi edit control > 5. Implement a BiDi rich edit control > > Lingnu is willing to chip in on such work, so the base for calculating > costs is 15Knis/month. Anyone contacting me for work on unrelated > projects should not expect those prices! 15K + employment overhead > translates to 110NIS/hour + VAT. Lets make it a round 125 sheqels/hour > with VAT. > > 1. Move the infrastructure to where it belongs, split the BiDi algorithm > down to the components it has with Uniscribe, make sure it works as is, > implement a glue library (called LPK.DLL on Windows) to resolve circular > dependencies, and hook the functions back into where they are scattered > (GDI32.DLL, Advapi32.dll etc.): about a month of work. > > 2. This is essential to get MSO working. A lot of the basic work is > done. You can find it attached to bug #735. Still quite a bit of work > getting it back into a state where it is commit ready. Lets mark it down > as a week's worth of work, though it might take more > > 3. These are small bugs. None of them is too big in and on its own, but > they do require getting 1 above resolved before they can be approached. > > 4. Unable to tell at this stage > > 5. Same as 4, only worse :-) > > As for getting it done with GSoC, I tried it this year, and people said > it was too big a task. Oh well > > Shachar -- By running MS-Windows XP on your PC, you are probably a multi-zombie. 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 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
On Thu, Sep 04, 2008 at 11:56:49AM +0300, Shachar Shemesh wrote: Lingnu is willing to chip in on such work, so the base for calculating costs is 15Knis/month. Anyone contacting me for work on unrelated projects should not expect those prices! 15K + employment overhead translates to 110NIS/hour + VAT. Lets make it a round 125 sheqels/hour with VAT. No, no no. It's 250 NIS an hour,which is reasonable for a contract job (actually it's low in some fields and places, even in Israel) of which if someone funds YOUR doing it, you'll match their funds. :-) See I've found you the missing half, even before you got the first half. :-) Now, if you were to go the Chief Scientist's Office with a request, you could ask for almost 18 man months (at 160 working hours a month) (350k), and you've already got a pledge of half funding. I'm still convinced that you can get a living wage out of it, and not have to go the Chief Scientist, there are lots of high tech "charity" funds out there. Geoff. -- Geoffrey S. Mendelson, Jerusalem, Israel [EMAIL PROTECTED] N3OWJ/4X1GM = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Financing for Wine BiDi
Omer Zak wrote: How about publicizing in Linux-IL the budget needed to fix Wine BiDi in terms of money, equipment and human resources? These are rough estimates. Wine needs the following fields worked on: 1. Move the BiDI code into Uniscribe, where it is on Windows 2. Handle keyboard input language detection (essentially - rewrite Wine's input processing - some of it already done) 3. Start fixing the small bugs 4. Implement a BiDi edit control 5. Implement a BiDi rich edit control Lingnu is willing to chip in on such work, so the base for calculating costs is 15Knis/month. Anyone contacting me for work on unrelated projects should not expect those prices! 15K + employment overhead translates to 110NIS/hour + VAT. Lets make it a round 125 sheqels/hour with VAT. 1. Move the infrastructure to where it belongs, split the BiDi algorithm down to the components it has with Uniscribe, make sure it works as is, implement a glue library (called LPK.DLL on Windows) to resolve circular dependencies, and hook the functions back into where they are scattered (GDI32.DLL, Advapi32.dll etc.): about a month of work. 2. This is essential to get MSO working. A lot of the basic work is done. You can find it attached to bug #735. Still quite a bit of work getting it back into a state where it is commit ready. Lets mark it down as a week's worth of work, though it might take more 3. These are small bugs. None of them is too big in and on its own, but they do require getting 1 above resolved before they can be approached. 4. Unable to tell at this stage 5. Same as 4, only worse :-) As for getting it done with GSoC, I tried it this year, and people said it was too big a task. Oh well Shachar = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Ann Arbor's Linux Box grows from start-up to 10-person firm
If some of you want to open a small company for supporting Linux in the local market. Here is an example: http://www.metromodemedia.com/innovationnews/linuxboxannarbor0083.aspx Gabor -- Gabor Szabo http://szabgab.com/blog.html Test Automation Tips http://szabgab.com/test_automation_tips.html = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: MSO in Wine: Hebrew backwards.
Geoffrey S. Mendelson wrote: BTW, isn't WINE LGPL? Can you really download the source code for CEDGA and Crossover? I've never tried, and ask that sincerely. For version 3 of CrossOver Office, I compiled a DLL from it again with BiDi support. I was the first, and as far as I know, the last, to ask for the sources. They did not have them ready (they put up the wrong versions on the site by mistake), but they did everything they could to help me out. They were also extremely surprised when I managed to do it :-) As for Cedega - they used to rely on a pre-fork Wine, which was of a non-copyleft license. I don't know what they do these days. Shachar = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Financing for Wine BiDi (was: Re: MSO in Wine: Hebrew backwards.)
Shachar, On Thu, 2008-09-04 at 08:06 +0300, Shachar Shemesh wrote: > Geoffrey S. Mendelson wrote: > > > > IMHO this is the kind of thing that the Chief Scientist's Office would > > fund. > Hmm. [...snipped...] > We all know that 10K is hardly enough to achieve much > on Wine, and we all also know that getting the community to put in 10K > is extremely hard. At the moment, for example, the sum total raised, > despite numerous complaints about the matter, totals in a round zero. > > So, no, I don't think the CS is a very likely venue. How about publicizing in Linux-IL the budget needed to fix Wine BiDi in terms of money, equipment and human resources? (I actually laughed when I saw the mention of the total raised so far, without mention of the amount which should be raised.) Can we also see a project plan, which will let us know where can we chip in? And if I am at that, can you also publicize an estimate (should be lower) of the effort (money+human resources) needed to prepare the Wine BiDi project for execution by a group of students in GSoC of 2009? --- Omer = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: MSO in Wine: Hebrew backwards.
On Thu, Sep 04, 2008 at 10:06:23AM +0300, Dotan Cohen wrote: The fact that you are focusing on BiDi support suggests that while the technology you develop would be _available_ outside Israel, there is little to no need for it outside Israel and thus it's use would be almost exclusively in Israel. Arabic and Persian users will enjoy your efforts, and that is outside Israel, but it is obvious that your efforts are meant to further the development of the technology specifically for the Israeli market. Furthermore, from familiarity with the wine mailing list, there is almost zero request for BiDi support from Arabic users, versus very many requests from Hebrew users. Also, Arabic and Persian users would have additional issues to the BiDi issues, which you would not be addressing. And one of the China's. I think it's Tiawan, not the PRC. I am certain that someone with a bit of talent could reword my previous paragraph in a form that would be very convincing that the technologies you would develop would stay, for all intents and purposes in any useful form, in Israel. Yes, and it really does not matter, IMHO. The fact that it might benefit 100 million people, or even a billion somewhere else in the world is almost irrelevant, it it benefits 4.5 million Israelis, or even just 10,000 of them if they are poor. Focus on the benefit to Israel. Geoff. -- Geoffrey S. Mendelson, Jerusalem, Israel [EMAIL PROTECTED] N3OWJ/4X1GM = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: MSO in Wine: Hebrew backwards.
2008/9/4 Shachar Shemesh <[EMAIL PROTECTED]>: > 2. A request that technologies developed stay in Israel. > > 2 is a problem for FOSS. While I have heard of companies that managed to > convince the CS to fund a project where some of the work went into FOSS > (and, in fact, Wine), it was as part of a larger project that was > proprietary. I have not heard of the CS funding a purely FOSS project. > The fact that you are focusing on BiDi support suggests that while the technology you develop would be _available_ outside Israel, there is little to no need for it outside Israel and thus it's use would be almost exclusively in Israel. Arabic and Persian users will enjoy your efforts, and that is outside Israel, but it is obvious that your efforts are meant to further the development of the technology specifically for the Israeli market. Furthermore, from familiarity with the wine mailing list, there is almost zero request for BiDi support from Arabic users, versus very many requests from Hebrew users. Also, Arabic and Persian users would have additional issues to the BiDi issues, which you would not be addressing. I am certain that someone with a bit of talent could reword my previous paragraph in a form that would be very convincing that the technologies you would develop would stay, for all intents and purposes in any useful form, in Israel. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü