DLSLUG Notes, 6-Sept-2007: ATTACK of the Nifties!!!

2007-09-07 Thread Ted Roche
Bill McGonigle hosted the September meeting the Dartmouth - Lake Sunapee
Linux User Group [1], held as usual on the first Thursday of the month,
but at a different location: the Dartmouth Regional Technology
Center[2]. Seven members attended.

The night was announced as "Nifties:" short presentations that hope to
elicit from the audience just that reaction. Everyone present had
something to show off:

I showed the S5 (Simple Standards-Based Slide Show System) developed by
Eric Meyer of CSS fame [3]. S5 used standards-compliant CSS, JavaScript
and XHTML to generate a slide show with keyboard shortcuts, drop-down
slide lists, handout and slideshow formats, additional notes and more.
Free as in speech, free as in beer. Nifty!

Bill McGonigle showed off pfSense, following up on a blog entry he had
written [4]. pfSense is a spin-off of monowall, the xBSD-based firewall
program. Bill talked about how to configure it off a read-only CR, with
a small (512k) USB fob holding the configuration file, running diskless
on an older computer. The web interface was pretty slick, rich and
intuitive, and exposed a huge number of options. Nifty!

Adam showed off some work he had been doing with WebSphere Community
Edition [C] (aka Apache Geronimo [D]) and a commercial add-on that
provided VT-400 terminal emulation via Java and a browser, to access
some legacy machines he needs to maintain. Nifty!

I mentioned that TheOpenCD [5], september 2007 edition was out and
available via BitTorrent. We talked about some of the neat software on
the disk. PDFCreator seemed most popular, but OpenOffice and WinSCP got
good mentions, too. Nifty.

We did NOT mention the OpenEducationCD [6], a spin-off project, but that
got mention at last week's GNHLUG Board of Director's meeting.

We talked quite a bit about the OLPC project [7] and I showed off one of
the videos available on the RedHat site [8] to great acclaim. Not just
"Nifty!" but "I want to work there!!!" There are more videos here: [9]
[A] and [B]

Many interesting side discussions, too. Sorry if you missed it; it was a
fun night.


[1] http://www.dlslug.org
[2] http://www.den.dartmouth.edu/drtc/index.htm
[3] http://meyerweb.com/eric/tools/s5/
[4] http://blog.bfccomputing.com/articles/2007/08/02/pfsense-intervention
[5] http://www.theopencd.org
[6] http://www.theopencd.org/education
[7] http://laptop.org/
[8] http://www.redhat.com/v/magazine/ogg/070321_olpc.ogg
[9] http://www.redhat.com/v/ogg/olpc02Final.ogg
[A] http://www.redhat.com/v/magazine/ogg/olpcEp03.ogg
[B] http://www.redhat.com/v/magazine/ogg/olpcEp04.ogg
[C] http://www.ibm.com/developerworks/websphere/zones/was/wasce.html
[D] http://geronimo.apache.org/
-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: a simple question about grep

2007-09-07 Thread Ben Scott
On 9/7/07, Tom Buskey <[EMAIL PROTECTED]> wrote:
>> egrep -P "^\*(?!INDICATOR)" filename.txt
>
> GNU egrep  2.5.1 doesn't work:
> $ egrep  '^\*(?!INDICATOR)' z
> $

  You need to specify -P (or --perl) to turn on support for Perl
regular expression extensions.Otherwise it will interpret the "(?"
as... hmmm, to tell the truth, I'm not sure what that'll do.  I don't
think that's valid traditional regexp syntax.  In any event, it won't
work.

  Hmmm, for that matter, it doesn't seem to like "egrep -P".  I guess
that's because "egrep" is basically just the same thing as "grep -E",
and "grep -E -P" is invalid.  So try "grep -P".  On a CentOS 5.0 box:

$ grep '^\*(?!INDICATOR)' sample
$ grep -P '^\*(?!INDICATOR)' sample
*geoid gender location
*district court
$ rpm -q grep
grep-2.5.1-54.2.el5
$

-- Ben
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: a simple question about grep

2007-09-07 Thread Kent Johnson
Bill Ricker wrote:
>>   Or, if you only have an old grep, but do have Perl, the following should 
>> work:
> 
> The Andy and the "ack" project have built a better grep with perl.

Cool. By default ack ignores plain text files, so you have to tell it to 
include them even when explicitly specifying the file. Here is an ack 
command that solves the OP's problem:

ack --text '^\*(?!INDICATOR)' myfile.txt

Kent
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: a simple question about grep

2007-09-07 Thread Tom Buskey
On 9/6/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
> Tom Buskey wrote:
> >
> >
> > On 9/6/07, *G.O.* <[EMAIL PROTECTED] >
> > wrote:
> >
> > egrep "^\*[^INDICATOR]" filename.txt
>
> That excludes lines beginning with * and any of the characters INDCATOR,
> i.e. *N, *D, etc will all be excluded.
>
> > That didn't work for me, but this did:
> >
> >egrep '^\*[^I][^N][^I][^D][^I][^C][^A][^T][^O][^R]' filename.txt
>
> That will exclude a line that matches INDICATOR at any character, for
> example *aN



You're right.

perhaps this:
>
> egrep -P "^\*(?!INDICATOR)" filename.txt


GNU egrep  2.5.1 doesn't work:
$ cat z
*INDICATOR name1 zip1
geoid gender location
*INDICATOR name2 zip2
*geoid gender location
INDICATOR name3 zip3
*district court
$ egrep  '^\*(?!INDICATOR)' z
$

No output.
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: a simple question about grep

2007-09-07 Thread Shawn K. O'Shea
Will if you're going to go into 3-letter tools that start with 'a'
that can do the requested task, then I'm just going to have to tell
everyone how to do it with awk

 awk '/^\*/ && !/^\*INDICATOR/ { print $0 }' file

awk takes a pattern and then a set of things to do with lines that
match that pattern. So my pattern says "line starts with '*' AND lines
does NOT start with '*INDICATOR'". Lines that match get processed by
the curly braces, which in this case prints out the entire line ($0 in
awk parlance)

-Shawn

On 9/7/07, Bill Ricker <[EMAIL PROTECTED]> wrote:
> >   Or, if you only have an old grep, but do have Perl, the following should 
> > work:
>
> The Andy and the "ack" project have built a better grep with perl.
> http://perladvent.pm.org/2006/5/
> search.cpan.org/~petdance/ack/ack
> petdance.com/ack/
>
> "ack is pure Perl, so consistent across all platforms. Command name is
> 25% shorter. :-) Heck, it's 50% shorter compared to grep -r. "
> use.perl.org/~petdance/journal/31763
>
> http://www.youtube.com/watch?v=G1ynTV_E-5s [Andy "petdance" giving
> "ack" Lighting talk at OSCON 2007, 9min]
> http://www.perlfoundation.org/perl5/index.cgi?ack
>
> Disclaimer - I have been known to contribute a patch to "ack" once in
> a blue moon.
>
> --
> Bill
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> ___
> gnhlug-discuss mailing list
> gnhlug-discuss@mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/