Re: Nahhh, we don't need to secure the *internal* network....

2002-08-02 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> We're behind a firewall.  We're safe!
> 
>   http://online.securityfocus.com/news/558
> 
> Think again! (not that we haven't said *that* before either ;)

``Say, that sure is a nice wooden horse parked outside the gates -- it
  seems to be a peace offering -- let's bring it inside the gates of
  Troy and get drunk -- the war is over!  Hurray!''

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Looking for a decent calendar application

2002-07-29 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> As I stated earlier, I don't feel that feeding information back into 
> the company calendar is important.  

If you are scheduled to take a day off next week, and one of your
co-workers wants to schedule you for a meeting on this day, do you think
that it's important for your co-worker to be able to discern from
looking at the calendar that you won't be in on this day?


> The problem is, at least in big companies, that people feel the need 
> to schedule meetings far too often when a simple e-mail conversation 
> would suffice.  In general, people also seem to rely upon meetings to 
> avoid having to make decisions on their own.

I tend to agree.

(I think that other factors that contribute to this are that some
people don't have the reading/writing skills or the attention span or
the attention to detail to be able to discuss an issue via email and
come to a problem resolution...or else they just want to drag out the
process so they can play politics or stoke their egos or even get the
meeting catered so they can try out some delicious Italian
pastries...(note, none of these complaints refer to my current job))

> In case anyone hasn't figured this out yet, I really find the 
> "Exchange way of doing things" quite annoying.  Actually, to the 
> point of being rude, presumptuous, and quite impersonal.  But I
> won't pontificate on that here, at least not now ;)
> thoughts 

OTOH, where I work, if I'm invited to a meeting, it's for a good
reason, and I do have to say that having some notion of a shared
calendar does seem to be worthwhile. 

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Looking for a decent calendar application

2002-07-29 Thread Kevin D. Clark


Have you given any thought as to how you could propagate events
entered into your private calendar back into your company's calendar?

Or do you not find this feature to be important/necessary for your
purposes?

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: automated installation

2002-07-26 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> Putting it under /usr
> doesn't really make sense -- /usr is where static files live, not
> user data.

This does seem to be a best practice nowadays.

However, there used to be a time when user directories used to be
placed under /usr.  Then things changed, and everybody started using
, most notably, /home .

What were the reasons for this change?  I can see a couple of reasons,
most notably:

o  using /home can help facilitate a NFS/automounter (etc.)
   environment.  (a lot of sites have /home mapped to a central
   server)

o  splitting users directories off from /usr (where other system
   things are held) can be useful when it comes time for doing
   backups or an OS install/upgrade/recovery.

I guess, in short, it's a bit of convenience to have users directories
all grouped together.  But are there any other reasons that I'm
overlooking?

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: automated installation

2002-07-23 Thread Kevin D. Clark


[EMAIL PROTECTED] (Michael O'Donnell) writes:

> I'm looking for an automated software installation
> mechanism - I want to be able to deliver software
> to my customers in such a way that they can install
> it on multiple machines as painlessly as possible.

Would yet another Outlook virus solve your problem here?

It'd be painless and automated, right?  (-:

--kevin
-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.  -- "sharkey's" .signature on Slashdot


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: realplayer (was: Re: RealNetworks going Open Source?)

2002-07-22 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> On 22 Jul 2002, at 4:05pm, Kevin D. Clark wrote:
> >>   Since when can RealPlayer decode Windows Media?  The version I have on
> >> Linux (8.0.3.421) certainly cannot.  More information, please.
> > 
> > Where does one obtain this version, anyways?
> 
>   http://proforma.real.com/real/player/unix/unix.html

Thanks!  You just saved me a huge headache...

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



realplayer (was: Re: RealNetworks going Open Source?)

2002-07-22 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   Since when can RealPlayer decode Windows Media?  The version I have on
> Linux (8.0.3.421) certainly cannot.  More information, please.

Where does one obtain this version, anyways?  I've struggled with
Real's web page and have only been able to determine that the 5.x
version (for free or for $$) is available for any of the Unices that I
run.

Incidently, I was trying to get this 5.x version running on a RedHat
7.3 box the other day and I didn't have a lot of luck.  I think that
this might have been a shared library problem, but I didn't have time
to investigate.

Thanks,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Microsoft vs. Windows ( He he he )

2002-07-17 Thread Kevin D. Clark


> http://www.microsoft.com/windows/Embedded/sak/evaluation/
> compare/advantage.asp

How apropos.

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Shell scripting moron

2002-07-17 Thread Kevin D. Clark

Erik Price <[EMAIL PROTECTED]> writes:

> > Any sales guy who knows what you know about shell scripts impresses
> > me.  I know *very senior* engineers who don't know this stuff.
> 
> Is that because they do it in Perl and therefore never use bash, or
> because they don't program?  (I hope it's the latter b/c that bodes
> well for my current job hunt [server side programming])

I totally messed up when I answered this question in a previous email.

"Why don't (software) engineers know shell scripting?"  Is this the
question? 

If this is the question, then I guess I'd have to answer:

  o  I dunno.  And...

  o  Some software engineers I know come from more of a Windows
 background.  They might have some VB experience, or more likely
 they know how to write DOS batch scripts.  When they come to find
 themselves in a Unix environment, they assume that Unix
 shell-scripts are pretty similar to DOS batch scripts (which are
 pretty horrible).  This comparison is false, but that's the
 perception.


Shell scripts are like a convenient glue or maybe like a handy power
tool (think cordless screwdriver).  There's some initial learning
curve, but after you're over this curve, you've got a *very* handy job
skill.  People without this skill are forced to do things the hard way
(*).


*  Like for example, the people I know who know that they want to make
   a textual replacement in, oh, a thousand files -- they either write
   a custom C program to do this, or else they make the changes 
   *by hand*.  Duh...

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Shell scripting moron

2002-07-17 Thread Kevin D. Clark


Erik Price <[EMAIL PROTECTED]> writes:

> On Wednesday, July 17, 2002, at 12:13  PM, Kevin D. Clark wrote:
> 
> > [please configure your mailer to wrap lines]
> 
> Is that the customary setting?  I thought that the burden of wrapping
> was upon the client, so that URLs don't get broken, etc.  (I'm not
> challenging you, I really am curious.)

There's a lot that could be said about this topic, and most of it has
already been said already (check the archives).  I get the feeling
that you already know what I'm talking about, since your mailer
appears to wrap lines reasonably.

A decent mail client should default to wrapping lines at around 72
columns.  It should also easily allow you to send lines that are
greater than 72 columns *if you want to*.  It should *not* "helpfully"
mangle your mail (wrap lines silently) for you before passing your
mail off to the SMTP server.

A mailer that doesn't have these properties, IMHO, stinks.

> > Any sales guy who knows what you know about shell scripts impresses
> > me.  I know *very senior* engineers who don't know this stuff.
> 
> Is that because they do it in Perl and therefore never use bash, or
> because they don't program?  (I hope it's the latter b/c that bodes
> well for my current job hunt [server side programming])

"because they generally don't program and don't have any familiarity
with the basic tools" is what I was getting at...

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Shell scripting moron

2002-07-17 Thread Kevin D. Clark


"Chad R. Henry" <[EMAIL PROTECTED]> writes:

> count=1
> while [ $count -lt 284 ]
> do
>   count='expr $count + 1'
>   echo "http://foo.foo.org/foo[$count].file"; >> /home/user/output
> done

Use backticks (`...`), not regular quotes ('...'):

count=`expr $count + 1`


> Obviously this isn't working and while I've tried to RTFM and figure out why I 
>realize now why I'm a sales guy.

[please configure your mailer to wrap lines]

Any sales guy who knows what you know about shell scripts impresses
me.  I know *very senior* engineers who don't know this stuff.

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: OT: Grand Buffet (was Re: Dinner)

2002-07-10 Thread Kevin D. Clark


Brian Chabot <[EMAIL PROTECTED]> writes:

> On the night in question there were only about a dozen people in the
> restaurant.  The same goes for the other nights she was in there.  I
> know, as I am friends with Karen and have joined her there as well as
> spoken to her on the night she was asked to leave.  Hardly taking up
> space that could have make more money. During Karaoke, the buffet part
> is closed and she was quite open about having been willing to buy
> another soda.  She has also been known to buy her friends drinks.

What's that I smell?  More "independent verification"?

It has a pleasant, sweet smell, almost like...Pepsi...

> In all, I look at it as a problem with Mr. Wong's business model
> during Karaoke which has come back to bite him an the rear and he did
> not handle the lower profits during that time in a manner that is
> acceptable in today's society.  I think he was frustrated and took it
> out on the wrong person - a customer.

To me, this is the most sensible paragraph that has been written in
this entire thread.

> Now back to the Linux discussion...

This seems like a good idea.


Regards,

--kevin  (who is thinking about killfiling this thread now)
-- 
"How do you like them apples?"
  -- Lance Armstrong


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Dinner

2002-07-09 Thread Kevin D. Clark

[EMAIL PROTECTED] writes:

> I don't care much about independant verification, I'm more concerned 
> about the veracity of the story and hearing both sides.

It seems to me that "independant verification" is helpful in
ascertaining the truth.

I wrote a big long flame that (IMHO) tore your email into shreds,
but I decided to delete and save everybody the pain and suffering.

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Dinner

2002-07-09 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   Is there independent verification of that somewhere?  

I am 99% certain I heard this story on NHPR.  I definitely heard it on
the radio one morning.

I also believe that I heard it on TV too.

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux OS kernel question

2002-06-26 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   Hardware implementation has a cost, too.  You complain that debuggers use
> special instructions or more memory to do what they do.  What do you think
> the hardware is going to do?  For breakpoints, the hardware would have to
> keep track of your breakpoint list, and check every instruction as it runs.
> That would actually be *slower* than simply inserting a new instruction in
> the code.

I think that this is a little bit confused.

(let's continue to assume that we're running on a x86)

The hardware *does not* run in the following way:

  again:
 is the PC (program counter) at a breakpoint?  if so, 
 run the instruction at the PC
 goto again;

Instead, the way debuggers typically implement breakpoints (*) is to
install a special instruction at a given instruction location (the
location of the breakpoint) (this is commonly done with ptrace()).
The original instruction at this location is saved (for later use).

The hardware runs as usual, running each instruction as fast as it can
(it does *not* look at some breakpoint table before running each
instruction).  When the hardware gets to the special instruction, this
actually triggers a hardware trap.  This is an exceptional situation.

The generation of a hardware trap triggers a trap-handling routine.
The routine, by virtue of the fact that if finds itself being
executed, knows that a breakpoint has been reached.  It also knows
where the PC was when this happens.

  The trap-handling routine, at this point, can cooperate
with the parent debugger.  The original instruction can also be run
(since it was saved -- the routine can put it back, put a breakpoint
at the next instruction, run the original instruction, break, and then
re-install the special  instruction, so as to preserve the
breakpoint *and* to preserve the program's semantics.

The point here is that the program can be run at full-speed *and* be
debugged at the same time. 

(*)  I wrote a debugger like this once at UNH.  It was one of my
 favorite programs -- ever.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux OS kernel question

2002-06-26 Thread Kevin D. Clark


Tom Rauschenbach <[EMAIL PROTECTED]> writes:

> On Wednesday 26 June 2002 h:43, Kevin D. Clark wrote:

> > You know, of course, that most debuggers allow you to catch reads and
> > writes to a certain memory location already, right?
> 
> Sure, but they usually do it by inserting an illegal instruction at the 
> beginning of each statement boundary

You might be referring to sequence points.

While I don't deny that some debuggers might implement this this way
(), let's focus on a specific example: gdb on Linux on an x86
box.  In this case, newer versions of gdb do take advantage of
hardware watchpoints, which allows a debugged program to run at full
speed.

Regards,

--kevin
-- 
i = i++;


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux OS kernel question

2002-06-26 Thread Kevin D. Clark


Tom Rauschenbach <[EMAIL PROTECTED]> writes:

> I'd really like to see the ability to have *tiny* pages to give extra 
> hardware support to debuggers.  Imagine getting an interupt when a certain 
> variable is changed

You know, of course, that most debuggers allow you to catch reads and
writes to a certain memory location already, right?

Sometimes this is very handy...

> , or when a malloced block overflows.

ElectricFence (and similar tools) are useful here.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: procmail and IMAP (was: What do people use ...)

2002-06-25 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   Ever.  NFS's history of piss-poor file locking means a shared mailspool is
> a recipe for disaster in any kind of heterogeneous environment.

  NFS file locking has gotten better over the years.  But this
is a religious issue at this point, and I don't want to debate this.

> It might
> work if your favorite implementation does locking right, and everyone is
> using that same implementation, but otherwise, forget it.

Maildir format works just fine over NFS, no locking required.

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: procmail and IMAP (was: What do people use ...)

2002-06-24 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   Cool!  I'm sure Paul has already scheduling you for a meeting
> presentation.  ;-)

I wouldn't dream of subjecting a captive audience to something so
boring.  (-:

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: procmail and IMAP (was: What do people use ...)

2002-06-24 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   It would be really nice if one could "apply" a set of procmail recipes to
> an IMAP mail store.  That is, rather than having the MDA process each
> message as it comes in, have a program that, given an IMAP mail server,
> reads each message in the inbox, runs it through a procmail recipe file, and
> stores the result relative to the IMAP server.  

Could you provide clarification as to where you are proposing to store
this?  On the IMAP server itself?

> Sure, it would not be as
> efficient as doing it server-side

This sound similar to sieve.

But it could also involve a  that filed your mail for you (from
the client) but kept the mail on the server side.  In a pinch, I could
do this with duct tape, chicken-wire, and Perl, but this isn't a
turnkey solution... (-:

Given my druthers, I'd rather run my own server, but Paul's particular
situation left him few options.

> but for cases like this, where procmail
> couldn't run on the server even if the admins let you, it could be handy.
>
>   Anyone know of anything like this?

No, but I got my procmail -> Maildir format -> Courier IMAP setup
running...I plan on posting a writeup soon.  (-:

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Message Boards

2002-06-05 Thread Kevin D. Clark


"Rich C" <[EMAIL PROTECTED]> writes:

> The advantage of message boards over mailing lists is that YOU go to
> THEM, they do not come to you.

I myself would prefer that the online forums that I participate in
come to me rather than the other way around.  I have a consistant and
powerful set of tools to manage this interaction too.

The fact that my email program is really a integrated mail+newsreading
program is handy too...

In fact, if gnhlug was something that I had to participate with using
a browser on some foreign website, I probably wouldn't participate --
I have to do this for too many other things already.

Just my opinion.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Message Boards

2002-06-05 Thread Kevin D. Clark


Bill Sconce <[EMAIL PROTECTED]> writes:

> (A wiki is by definition essentially unmoderated - it's designed
> for a community whose members trust each other for quality.  Again,
> the example is workgroup collaboration, I think.)

For example, http://www.wikipedia.com (a collaborative effort at
creating an encyclopedia) has had various problems with vandalism.

Regardless, the results so far are very impressive.  To me, this is
one of the neatest wiki's that I've ever seen.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Message Boards

2002-06-04 Thread Kevin D. Clark


[EMAIL PROTECTED] (Michael O'Donnell) writes:

> Wouldn't pretty much any of the available NNTP servers
> satisfy those requirements?  And FYI some of the
> specified features (and misfeatures) are normally
> managed by the client rather than the server.

Source: http://news.com.com/2100-1023-237194.html?legacy=cnet

  "Newsgroups are unruly and message boards are easier to convert into a
  business," said Anya Sacharow, an analyst at Jupiter
  Communications. 

 I hope Usenet never goes away.  I would much prefer to use a
NNTP server rather than a web-based message board (usually, I find
these to be gaudy and feature-lacking).

--kevin
-- 
"SOMEONE WROTE A BOOK ABOUT THE A-TEAM!!!11!!"
-- from one of my favorite posts to talk.bizarre


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: fetchmail with pop3s?

2002-06-03 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> Is anyone else using fetchmail to access an ssl-enabled POP3 account?
> If so, could you tell me what your fetchmail command line looks like?
> Also, and this probably makes a huge difference, the server is an 
> Exchange server.

Oh, *that* headache.

First of all, can you show us the output of Exchange's IMAP server
(yes, I know you're asking for POP) when you query it with a 

A001 CAPABILITY

query?  Is the string "STARTTLS" mentioned?

Second of all, is there anything listening on TCP ports 993 or 995 on
your Exchange server?  Just wondering.

Third, going back to the output of the CAPABILITY response, is the
string NTLM mentioned?


I'm sure you can figure out where I'm going with thisI've never
had any luck connecting to an Exchange server via (POP|IMAP)/SSL ...

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: FYI, Linux gains ...

2002-05-31 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

>   - they didn't need to go through the insane procurement cycle to get it 

I first installed Linux at my last job because I needed a NFS server
to store large purify cache directories on.  My local hard drive was
too small, and getting access to a reasonable sized NFS server (that I
could write to) involved politics that I didn't want to step into.

With Linux I was able to put the old 90Mhz Pentium box on my desk to
good use, all without having to play procurement games.  I was able to
solve my own problems rather quickly because of Linux (all of which
benefited my previous employer greatly, BTW)

So I agree with Paul's argument.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: FYI, Linux gains ...

2002-05-31 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> The article is at:
> 
> http://www.boston.com/dailyglobe2/150/business/Linux_gain
> s_in_government+.shtml

No it isn't.  Your mailer "helpfully" wrapped the line, which has the
effect of mangling this URL.  So if I want to look at this URL I have
to manually enter it in my browser.  This isn't very convenient.

I would humbly suggest that a mailer that exhibits this behavior isn't
a very good mailer, and that better mailers are available.

Regards,

--kevin

PS  http://www.boston.com/dailyglobe2/150/business/Linux_gains_in_government+.shtml
(if your mailer wraps this line, I'll be even more depressed)

-- 
My sister became some sort of MS Certified Professional today. I knew
she could do it. She's the only person I know who sends me email with
Outlook and yet still manages to send it in ASCII with the quoted
material at the top with "> " at the start of each (less than 76 char)
line and her comments nicely interspersed beneath. (See, Outlook
users, you can do it!)

  -- Telsa Gwynne's (Alan Cox's wife's) diary, 2 May 2000, at
 http://roadrunner.swansea.linux.org.uk/~hobbit/diary.html


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: SLOC question

2002-05-29 Thread Kevin D. Clark


<[EMAIL PROTECTED]> writes:

> I'm curious if anyone knows the approximate number of SLOC in popular 
> Free/Open Source projects kept under CVS control?  I'm looking for 
> "impressive numbers" to show management :)

I would think that "*lots*" would be an appropiate answer to this
question.  Some projects that are already stored under CVS are 
*much larger* than most of the projects that many developers ever work
on (examples:  FreeBSD, Mozilla).  Anybody who argues that CVS isn't
capable of acting as a source code repository for a large project is
(at best) silly.

More important criteria might be "how easy is it to use in your
environment?" and "how does using CVS help facilitate your project?".

These are different criteria than what you were asking for...

Regards,

--kevin
-- 
My sister became some sort of MS Certified Professional today. I knew
she could do it. She's the only person I know who sends me email with
Outlook and yet still manages to send it in ASCII with the quoted
material at the top with "> " at the start of each (less than 76 char)
line and her comments nicely interspersed beneath. (See, Outlook
users, you can do it!)

  -- Telsa Gwynne's (Alan Cox's wife's) diary, 2 May 2000, at
 http://roadrunner.swansea.linux.org.uk/~hobbit/diary.html


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: bash question

2002-05-23 Thread Kevin D. Clark




[PLEASE DON'T TOPQUOTE]




Kenny Donahue <[EMAIL PROTECTED]> writes:
> Ken Ambrose wrote:
> > On Thu, 23 May 2002, Kenny Donahue wrote:
> >
> > > lspci -d1134:1 | /usr/bin/wc -l
> > >
> > > The idea of course is to get the number of our boards in the
> > > system.  the funny thing is, if I log in as root I get
> > >   2/* Note the 6 blank spaces before the "2" */
> > >
> > > if I log in as my self or ssh into the machine and su to root, I get
> > > 2 /* note NO space before the "2" */
> >
> > Based on what I've seen, and read, I'm guessing that it's spitting out
> > tabs, which then get converted by way of your $TERM variable.  Check your
> > $TERM on the two, and make them the same, and see what happens, 'cause
> > your tabs are probably getting eaten for lunch.

> nope.  TERM=xterm on both
> which xterm
> /usr/bin/X11/xterm
>  on both


What is the output of "env", both when you login on the console and
when you login via ssh?

What shell(s) are you running?

--kevin
-- 
My sister became some sort of MS Certified Professional today. I knew
she could do it. She's the only person I know who sends me email with
Outlook and yet still manages to send it in ASCII with the quoted
material at the top with "> " at the start of each (less than 76 char)
line and her comments nicely interspersed beneath. (See, Outlook
users, you can do it!)

  -- Telsa Gwynne's (Alan Cox's wife's) diary, 2 May 2000, at
 http://roadrunner.swansea.linux.org.uk/~hobbit/diary.html


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: cat an Exchange inbox?

2002-05-03 Thread Kevin D. Clark


Todd Littlefield <[EMAIL PROTECTED]> writes:

> This may not be for the faint of heart but it is an option...  The
> RFC will contain all the commands that you can use...  A google search
> should produce some links...

>From my notes:


POP3 conversation:
--

$ telnet mailserver 110
Trying 127.0.0.1...
Connected to mailserver.com.
Escape character is '^]'.
+OK POP3 server at foobar.com ready <[EMAIL PROTECTED]>
user kclark
+OK kclark authenticate please
pass mySecretPassword
+OK kclark's mailbox has 1 messages (3072 octets)
stat
+OK 1 3072
list
+OK 1 messages (3072 octets)
1 3072



Re: Tape Backups

2002-05-02 Thread Kevin D. Clark


<[EMAIL PROTECTED]> writes:

> Content-Type: text/plain; charset=us-ascii

Please fix this.

>  I'm not 
> *saying* they have infinite capacity, and I know it's ridiculous to say
> this, but I really get the feeling that these things are bottomless.
> (now watch someone prove me wrong.  I'm sure /. will now have an article
> about some idiot who's recently filled theirs up!)

Well, the device itself might be infinite, but around 10 years ago I
remember hearing about a Unix-based application that crashed because
it was writing out too much stuff to /dev/null.

IIRC, this was more of a problem with the C stdio library that they
were using, rather than the actual device.

But strange things do happen...

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: How to create a GUID?

2002-04-30 Thread Kevin D. Clark


"Mansur, Warren" <[EMAIL PROTECTED]> writes:

> I have need to generate a globally unique ID between nodes.

I think that using the lowest MAC address on the node is a pretty good
solution.  This is similar to what layer-2 bridges do
when they implement spanning-tree.  In practice, this works well.

Yes, there are certain MAC address ranges that can be "reprogrammed".
You'll have to decide if this is a show-stopping issue for you.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Books

2002-04-25 Thread Kevin D. Clark


<[EMAIL PROTECTED]> writes:

> I'm thinking about getting W. Richard Stevens book "Unix Network 
> Programming".  Not for any particular reason other than I know he's a 
> great author, and from I've heard, all his books are fantastic.
> 
> What I was wondering though, is this book more a reference book, or a 
> tutorial book?  I've got his "Advanced Programming in the UNIX 
> Environment" book, but found that to be more of a reference than 
> anything else.

I think that it's both.  I'm not interested in debating this; this is
my opinion.  I use this book every day.

You cannot go wrong by buying this book.

> What are his other books like?

TCP/IP Illustrated Vol1 is a good book too -- very well written, and
augments his UNP vol1 2ed book very well.

If you are interested in kernel issues, TCP/IP Illustrated Vol2 is
very good.  It's very oriented towards BSD though.

TCP/IP Illustrated Vol3 is very good if you're interested in the
subjects it covers...

UNP vol2 2ed is very good if you're interested in interprocess
communications.

> Any recommendations on good books to 
> get? (I haven't bought any good books lately, and am itching to go to 
> SoftPro since I now work less than 5 minutes away :)

_Hard-Boiled Wonderland and the End of the World_, Haruki Murakami.  

Oh, were you asking about technical books?  (-:

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Another (simpler) bash scripting question...

2002-04-23 Thread Kevin D. Clark


"Derek D. Martin" <[EMAIL PROTECTED]> writes:

> At some point hitherto, Kevin D. Clark hath spake thusly:

> > In general, the inner part of the loop is run in a sub-shell.
> 
> Not exactly... it's more subtle even than that.  For example:

Yes, my language could have been a little tighter there.  "In general"
isn't right; "in general, when you're using a loop and doing any sort
of file redirection, the loop might be implemented as a subshell" is
more correct.

> Certain kinds of things trigger the shell to use a subshell for loops.

Yes.

> One is, as in the example above, piping the output of a process into
> another command.  Another is if you redirect the output of the loop
> into a file, as in
> 
>   done >> $ouputfile
> 
> In the former case, I believe it does so because the shell which the
> script is running in must

No, not "must", but instead "the shell happens to implement it this
way".

Implementing this in other ways would be a lot more difficult, and so
this behavior has come to be viewed as "reasonable".

Of course, sometimes this isn't the desired behavior, and you have to
take other steps to get what you want (like use Perl...).

>  first fork a process to generate the output,
> and fork a second process (a shell) to feed the output of that command
> to through a pipe (as in pipe(2)).  I believe this is necessary
> because the stdout and stdin of the processes which the shell runs are
> not the same as those of the shell itself.

Well, in the cases that we are discussing, stdin and stdout are
different, but stderr is the same.

>  I'm not quite positive on
> that, and hopefully someone will correct me if I'm mistaken.  The
> latter case would essentially be the same thing; the shell the loop is
> running in has a different stdout than the shell script itself, so it
> must...

Again, not "must".  I'm sure you know what I mean.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Another (simpler) bash scripting question...

2002-04-22 Thread Kevin D. Clark


[EMAIL PROTECTED] (Michael O'Donnell) writes:

> >it has a subtle scoping gotcha that drove me nuts the
> >first time I tripped over it - anybody know what I'm
> >referring to?
> 
> No?  Then how about this?
> 
>result=badness# init with failure default
>spewSomeKindOfOutput | while read input
>do
>result=goodness
>done
>echo $result
> 
> What is the output?

In general, the inner part of the loop is run in a sub-shell.  This is
often transparent, but if you have an expression that has
side-effects, these effects blip out of existance when the sub-shell
disappears.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: I need a date!

2002-04-19 Thread Kevin D. Clark


Ben Boulanger <[EMAIL PROTECTED]> writes:

> Eesh!  A perl window manager, a perl shell.. how far off are we from the 
> Perlnel?  or Pfree86?  

I heard a rumor once that Kevin Clark was actually a (poorly behaved)
AI program, implemented in Perl.

The complete code for this experiment run amok is as follows:

#!/usr/bin/perl -0777
seek(DATA,0,0); eval scalar() __END__

Of course, this was only a rumor.

Regards,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: I need a date!

2002-04-19 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

>   Indeed.  But until/unless someone comes up with a workable Perl command
> shell, it still comes in useful.  :-)

http://www.focusresearch.com/gregor/psh/

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Another emacs question

2002-04-18 Thread Kevin D. Clark


"Derek D. Martin" <[EMAIL PROTECTED]> writes:

> How please?

If you are truly interested in doing this, let me again recommend
using Kai Großjohann's "TRAMP" package:

ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/tramp.tar.gz


A couple of caveats:

  1:  "ange-ftp" got superseded by "efs" a couple of years ago.

  2:  IIRC, efs and TRAMP don't play nicely together.

  3:  I said it was "possible" to use ange-ftp with ssh, but unless
  you like hacking around with elisp and other sundry details (ssh
  port forwarding, etc.), using TRAMP will be easier.


If you do use TRAMP, your life could be as simple as adding this to
your .emacs:

(require 'tramp)
(setq tramp-default-method "scp")

and then editing a file thusly:

C-x C-f /[root@somemachine]/etc/hosts


Of course, I'm hand-waving a bit here, but you get the idea.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Another emacs question

2002-04-17 Thread Kevin D. Clark


<[EMAIL PROTECTED]> writes:

> Does anyone know how to authorize a gnuclient session running under one 
> user id to connect to a gnuserv session running under another?

Two ideas:

1:  Use ange-ftp.  Fire up a gnuclient and type:

C-x C-f /root@somemachine:/etc/hosts

(it is possible to do this over ssh as well)


(gosh, I wonder how many other editors implement this incredibly
 handy functionality...)


2:  Use Kai Großjohann's "TRAMP" package:

ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/tramp.tar.gz


--kevin
-- 
A LISP programmer knows the value of everything, 
but the cost of nothing. 


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: BSD distro for MacOSX?

2002-04-16 Thread Kevin D. Clark


Recent versions of FreeBSD can run Linux binaries.

Darwin is based on BSD 4.4 and FreeBSD (version 3.2?) .

Can anybody confirm or deny that OS X can run Linux binaries?

I've heard that it can, to some extent (with the usual caveats).

Thanks,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: PATH (was total newbie)

2002-04-16 Thread Kevin D. Clark


Michael Bovee <[EMAIL PROTECTED]> writes:

>  returns the following info -- (linebreaks chosen for
> clarity, I hope)
> 
> 
> /usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
> /usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
> /usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
> /usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
> /usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
> /usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games/bin:
> /usr/games:/opt/gnome/bin:/opt/ked2/bin:.:/opt/gnome/bin:
> /local/qmake/bin:/usr/local/tmake/bin:/local/qmake/bin:
> /usr/local/tmake/bin:/local/qmake/bin:/usr/local/tmake/bin:
> local/qmake/bin:/usr/local/tmake/bin:/local/qmake/bin:
> /usr/local/tmake/bin

You might want to stick something like this at the end of your
.profile:

  PATH=`perl -e 'print join ":", grep {-d && !$d{$_}++} split /:/, $ENV{'PATH'}'`


This will clean up your PATH (it removes duplicates but also preserves
the original order).

(the same thing works well for other : delimited variables, like for
example MANPATH)


Regards,

--kevin
-- 
Kevin D. Clark ([EMAIL PROTECTED])
ADVERTISEMENT:  On Sunday May 5th, I'm riding my bicycle 100 miles
in the American Diabetes Association's Tour de Cure ride.  If you're
interested in sponsoring me, please send me email.


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: outlook headers (References and In-Reply-To)

2002-04-15 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> Right, but if I don't have any of that thread in my mailbox, then 
> regardless of whether my client can handle threading, there's nothing 
> there for it to relate the new message to.

Yes.

Of course, people don't have to save every message in order for these
headers to be useful:

  http://www.mail-archive.com/gnhlug@zk3.dec.com/msg14148.html

Note the message thread at the bottom of this web-page.  Without
"References:" and "In-Reply-To", the mailing list archive couldn't
have associated all of these messages (notice that the "Subject" field
changed multiple times).


Again, I say:  email clients that don't send proper headers and don't
know how to deal with proper headers are seriously lacking in basic
functionality.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: outlook headers (References and In-Reply-To)

2002-04-15 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> In a message dated: 12 Apr 2002 15:03:31 EDT
> Kevin D. Clark said:
> 
> >OBTW, if you are looking at this email and your email program doesn't
> >easily let you determine that this message is somehow (vaguely)
> >related to Tom Rauschenbach's message on 25 Mar 2002 with a Subject:
> >of "behavior of find /", then you're missing out on a very handy
> >feature.
> 
> Errr, would you have to have that original e-mail still floating 
> around in your mailbox somewhere for it to detect this?

Yes.


But an email program that can deal with "message threads" is useful
even when dealing with email that arrives in your inbox all at the
same time.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



outlook headers (References and In-Reply-To)

2002-04-12 Thread Kevin D. Clark


mike ledoux <[EMAIL PROTECTED]> writes:

[snip]
> http://www.slipstick.com/mail1/longline.htm

Is there any way to configure Outlook to include "References" and
"In-Reply-To" headers in the email that gets generated?

Not including these headers makes life more difficult for everybody
who has to look at this stuff.  I'm sick of not being able to sensibly
migrate through a thread because of the absence of these headers.

(RFC822 even calls for these fields...)



OBTW, if you are looking at this email and your email program doesn't
easily let you determine that this message is somehow (vaguely)
related to Tom Rauschenbach's message on 25 Mar 2002 with a Subject:
of "behavior of find /", then you're missing out on a very handy
feature.

Thanks,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: [pri.blu@iadonisi.to: Re: Obfuscated URL]

2002-04-10 Thread Kevin D. Clark


Paul Iadonisi <[EMAIL PROTECTED]> writes:

>   Even better, attached is a bash script to do the conversion.  I'm sure
> it'll quickly be reposted by a perl monk as a one line perl script.
> Have at it.
> 
> On Wed, Apr 10, 2002 at 07:47:21AM -0400, Jonathan Arnold wrote:
> > Here's a link to help decipher an obfuscated URL:
> > 
> > http://www.samspade.org/t/

How about:

$ perl -MURI -e '$u = URI->new($ARGV[0])->canonical; 
         print $u1->as_string(), "\n"' 


Regards,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Fun GNOME Eye candy..

2002-04-10 Thread Kevin D. Clark


Cole Tuininga <[EMAIL PROTECTED]> writes:

> Anybody have any thoughts?

What source file(s) declare (but not necessarily define)
glutBitmapCharacter?  It's gotta be declared somewhere, since you're
using C++...

What happens when you run "nm -A" on various libraries and grep for
glutBitmapCharacter? 

Aren't linker errors fun?

Regards,

--kevin
-- 
Kevin D. Clark ([EMAIL PROTECTED])
ADVERTISEMENT:  On Sunday May 5th, I'm riding my bicycle 100 miles
in the American Diabetes Association's Tour de Cure ride.  If you're
interested in sponsoring me, please send me email.


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux-Outlook (ouch) question

2002-04-05 Thread Kevin D. Clark


[EMAIL PROTECTED] writes:

> In a message dated: 05 Apr 2002 14:18:43 EST
> Kevin D. Clark said:

> >3:  This scheme doesn't really work well if you only have one
> >computer. 
> 
> Why not?

If you had only a dual-boot system, and wanted to run Outlook on it
while pointing it at your IMAP server (running on the same host),
this would be difficult.

(unless you had Wine or VMware, etc.)


This is all that I was alluding to.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux-Outlook (ouch) question

2002-04-05 Thread Kevin D. Clark


David Roberts <[EMAIL PROTECTED]> writes:

> Right now may mail comes in on a Unix server and love it.  I can
> check my messages from home (pine works wonderfully) and I have
> fetchmail running daemon mode to grab the messages off their system
> (saves them disk space, and me headaches).  If I am forced to run
> Outlook I am afraid I will lose that ability - but then again, I'm
> not up on M$ Email.
> 
> I am also afraid that, if I give in here it is just the first step
> into forcing me (as the cartoon once said) "to be assimilated",
> and I've been a Unix user too long to go willingly.
>
> Oh well, all good things must come to an end...

Not so fast.

You and I have a very similar perspective on this issue.  Let me tell
you how I solved this:

I run my own IMAP server.  Here's a description:

   http://www.mail-archive.com/gnhlug@zk3.dec.com/msg09038.html  ***

***  I slightly goofed on these recipes.  They should be more like:

 :0w
 * ^TO.*IETF-Announce
 | dmail +ietf-announce


There are a number of advantages to this:

1:  procmail and fetchmail are reliable tools

2:  procmail takes care of the bulk of my mail sorting.  I don't have
to sort much mail manually.  In addition, I can use freely
available SPAM filters (www.spambouncer.org) because they use
procmail.

3:  My email program knows how to deal with IMAP just fine.

4:  If I want to, I can just point OutLook at my IMAP server...
(I only tried this once though -- it seemed to work fine)

5:  I can use the Exchange calendar system from Outlook, or via the
OWA system -- it's my choice.


As I see it, there are only three disadvantages to my system:

1:  I have to backup my own email.

2:  The University of Washington IMAP server is slower than death on
qualudes (for very large mailboxes) -- I am currently investigating
Cyrus IMAPD (in my copious spare time...).  I still plan on using
procmail too -- I don't have a lot of incentive to use sieve.

3:  This scheme doesn't really work well if you only have one
computer. 



BTW, it sounds like you might be worried about Outlook's reaction to
fetchmail snarfing all of your email off of the server while it is
running against the Exchange server.  I can assure you that this works
just fine -- one minute there's mail, the next minute it has been
moved to my IMAP server.  This doesn't affect the Outlook calendar at
all, either.


I think that you'd be nuts to give up using Pine.

Regards,

--kevin
-- 
Kevin D. Clark ([EMAIL PROTECTED])
ADVERTISEMENT:  On Sunday May 5th, I'm riding my bicycle 100 miles
in the American Diabetes Association's Tour de Cure ride.  If you're
interested in sponsoring me, please send me email.


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux-Outlook (ouch) question

2002-04-04 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

>   Actually, that is not quite true.  If you run Exchange, there is something
> called Outlook Web Access (OWA), which, as you can probably guess, is a
> web-based interface to Exchange.  I am not sure how much functionality is
> available in it, though.

I've used OWA before.  The pages look pretty (assuming you set up your
fonts correctly...), but I have a difficult time actually using this
system to setup a meeting.

(merely using this system to indicate that I am out of the office is a
tad bit easier)

Another downside of OWA is that by default you have to login *a lot*,
since the sessions time out after an hour or so.

On the bright side, if somebody else sets up a meeting, the Exchange
system sends me an email with a URL in it that I can use to indicate
my attendance at that meeting.  This works pretty well.

(luckily, I don't have an overwhelming number of meetings...)



If the original poster happens to be using Sun/Solaris (yes, I see
that the subject line reads "Linux"), he might want to check out Sun's
"sunpci" cards.  These are basically a complete PC on a card, and you
can run Win2K on these cards and display the output inside a window in
X.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: dealing with non-ascii characters in perl

2002-04-03 Thread Kevin D. Clark


Peter Beardsley <[EMAIL PROTECTED]> writes:

> I'm dealing with import data from a Mac that has non-ascii apostrophes
> that are hex d5.  I wrote a regular expression in perl to replace them:
> 
> 
>  my $hex = 0xd5;
>  $str =~ s/$hex/\'/g;
> 
> OK, now if I make a string in perl with this character in it like so:
> 
>  my $str = 'foo' . 0xd5 . 's string';
> 
> The above regular expression matches.  If I run it on a string
> containing the character from my input file, it doesn't match.

What happens when you use this instead?:

   my $hex = chr(0xd5);
   $str =~ s/$hex/\'/g;

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: call graph

2002-04-01 Thread Kevin D. Clark


"Mansur, Warren" <[EMAIL PROTECTED]> writes:

> Perhaps someone asked this question before, but . . . are there any good call graph 
>generators for c programs available for Linux?  I downloaded one available on Debian 
>called cflow, and it leaves a lot to be desired.

If you're more interested in a call-graph that combines runtime
information, I would recommend looking at the output of gprof.

If you go down this road, I've heard good things about VCG
(http://www.ida.liu.se/~vaden/cgdi/#xvcg).


I don't think that it is available for Linux, but Rational's Quantify
is similar.


Neither one of these is a pure call graph generator; they depend on
runtime information as well.  I've used both and found them to be very
useful.

> Any call graph program that integrates nicely with emacs?

etags?  (-:

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: ypxfrd

2002-03-29 Thread Kevin D. Clark


"Derek D. Martin" <[EMAIL PROTECTED]> writes:

> At some point hitherto, Kevin D. Clark hath spake thusly:

> > Well if ypxfrd should start after ypserv (I'm going by your quote
> > above), then I would recommend that you rename S26ypxfrd to S27ypxfrd,
> > since typically init executes scripts in /etc/rc.d/*/ with the same
> > "number" in a "deterministic but unspecified" order.
> 
> That isn't quite true.  The order is specified.  

"Deterministic but unspecified" is a direct quote from my Solaris
box's man page.  Since Solaris is very SYSV-flavored, and since only
documentation I've seen on Linux's init is that it tries to be
compatable with the SYSV init scripts (I have not seen a definitive
statement that clearly states what should happen in this case), I
myself will always assume that Linux's init executes these scripts in
a "deterministic but unspecified" order.

You can make assumptions about the order if you want.  However, I
wouldn't recommend doing this if you want your scripts to be
portable.  Also, in the absence of a formally documented behavior in
this case, future Linux systems could implement a different behavior,
and then your scripts would die silently, which I assume could cause
you to have a Very Bad Day.

Regards,

--kevin

-- 
  1.3: If I write the code int i, j; can I assume that (&i + 1) == &j?

  Only sometimes. It's not portable, because in EBCDIC, i and j are
  not adjacent.

 -- from "Infrequently Asked Questions in comp.lang.c"


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: ypxfrd

2002-03-28 Thread Kevin D. Clark


Robert Casey <[EMAIL PROTECTED]> writes:

> The man page for ypxfrd mentions that this daemon starts slowly so
> make sure it starts after ypserv. When I look in the rc. directories
> it appears to be S26ypxfrd and ypserv also says S26ypserv. Does anyone
> know if this is okay or should ypxfrd start later than it is.

Well if ypxfrd should start after ypserv (I'm going by your quote
above), then I would recommend that you rename S26ypxfrd to S27ypxfrd,
since typically init executes scripts in /etc/rc.d/*/ with the same
"number" in a "deterministic but unspecified" order.

> I'm not
> sure if this is making sense so please shed some light if you can. I
> used chkconfig to get all the daemons going. I'm sure the previous
> fact pleases the command line only people.

Well, I'm happy... (-:

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Java resources

2002-03-27 Thread Kevin D. Clark


Tom Rauschenbach <[EMAIL PROTECTED]> writes:

> On Wednesday 27 March 2002 08:18, Kevin D. Clark wrote:
> > "Derek D. Martin" <[EMAIL PROTECTED]> writes:
> > > So, in trolling the various sources of job listings, it looks to me
> > > like one of the hottest skills in demand is Java development.  I was
> > > wondering if anyone can recommend GOOD sources of information about
> > > learning Java.  Free ones (like web sites) are preferable, but not
> > > necessarily required.  :)
> >
> > Well, I would have thought that C/C++ skills would be a little more
> > desirable (this is my take), but if you want Java resources, I
> > recommend these:
> 
> I thought so too and started to leanr C++ (I am a C coder by trade) but it 
> started to look like Java was the way to go (if getting work is your first 
> priority) si I switched to learning Java. 

I would have thought that with all of the embedded work going on out
there, that there would be more work for C/C++ programmers.

I'm not saying "a lot more", but just "a bit more".

Oh, and I've heard of people doing embedded Java programming, but this
seems to be a little bleeding edge to me.

>  If writing OO software was the 
> first goal I would have stayed with C++.

I find this comment to be weird, because you can do OO development in
either C++ or Java (C too, if you are careful).

Or do you mean that you program in Java, but you don't use any OO
techniques?

--kevin
-- 
Go UNH Hockey!  Beat Maine!


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Java resources

2002-03-27 Thread Kevin D. Clark


"Derek D. Martin" <[EMAIL PROTECTED]> writes:

> So, in trolling the various sources of job listings, it looks to me
> like one of the hottest skills in demand is Java development.  I was
> wondering if anyone can recommend GOOD sources of information about
> learning Java.  Free ones (like web sites) are preferable, but not
> necessarily required.  :)

Well, I would have thought that C/C++ skills would be a little more
desirable (this is my take), but if you want Java resources, I
recommend these:


http://java.sun.com/docs/books/jls/

_Concurrent Programing in Java_, Doug Lea

You'll probably want to look into Swing, but I can't recommend a good
book.

O'Reilly's books are all useful, especially their _Java in a Nutshell_
book.



But if you want to learn Java, then I highly recommend that you become
familiar with object-oriented design.  I'm not suggesting that you go
crazy with learning UML or anything, but knowing (for example) what
inheritance is and how to apply it is an invaluable skill (and one
that is useful for working with *any* object-oriented language).


You didn't ask for it, but I *highly* recommend _The Practice of
Programming_ by Kernighan and Pike as well.


> I also wonder if someone can explain to me how one becomes an
> experienced programmer when employers all want someone who has 7+
> years of experience...  

That's an unfortunate catch-22, you're right.  But imagine everybody's
frustration back in 1995 or so when ads seeking "programmers with 7+
years of Java programming experience" were commonplace... (-:

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: behavior of find /

2002-03-26 Thread Kevin D. Clark


"Mansur, Warren" <[EMAIL PROTECTED]> writes:

> If we disable the last access time on the machine, will it mess up any applications? 
> I always thought the atime was kind of useless but I don't know if some applications 
>use it in an esoteric way.

[please configure your email program to wrap lines correctly]


I would encourage people to not mess around with this option.

I'm somewhat biased in this area -- I have a couple of scripts that
depend on the atime field.  For example:

  o  I have some glue scripts that I use in conjunction with xbiff
 that depend on atime to tell me when I have email.

  o  I wrote another script a long time ago that figured out, for a
 given Java application, what the absolute minimum subset of files
 in my full build area needed to be packaged up for a software
 release.

  o  I've sometimes used the atime field to determine that a given
 user on a closed system wasn't accessing certain files.


Configuring a system to not update the atime field, to me, violates my
"eliminate surprises" rule.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



ugly email

2002-03-21 Thread Kevin D. Clark


[EMAIL PROTECTED] (Michael O'Donnell) writes:

> IS THERE AN FAQ FOR THIS BOARD?  HOW DO I GET RID OF A THOSE EXTRA LINES?

I wonder how much email I'd miss if I wrote a procmail script that
sent ugly-to-look-at email (including "top-quoted" email, email that
exceeded a quoted-content to new-content ratio, etc.) to /dev/null?

I am sometimes very tempted to do this.


Please send flames this email to /dev/null.  Thanks.

--kevin

PS: Recommended reading:

http://www.tuxedo.org/~esr/jargon/html/Email-Quotes.html

-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Zvon RFC hypertext system

2002-03-21 Thread Kevin D. Clark


http://www.magres.nottingham.ac.uk/~rourke/links/rfc/index-long.html

is also nice.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: MAC at TCP level

2002-03-20 Thread Kevin D. Clark


"Rodent of Unusual Size" ([EMAIL PROTECTED]) writes:

> I'm not real conversant with the various packet formats.
> Is there anything at the TCP packet level that might include
> the MAC address of either endpoint?  If so, I rather guess
> it isn't used, but I'm not even sure it exists.  In other
> words, is the MAC address completely inaccessible in a WAN
> environment using TCP, or only by convention?

You can't get this information with any of the TCP socket APIs.

Furthermore, even if you wrote the necessary code to obtain the
layer-2 headers (probably using SOCK_PACKET on Linux), this effort
would still be somewhat futile, since every router in-between your
"destination" computer and the "source" node will re-write the MAC
address in the packets to their own MAC addresses anyways.

So, if there's a router in between you and the source node, the source
MAC addresses will be those of the router and not the original node.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Nore on spam

2002-03-13 Thread Kevin D. Clark


Paul Lussier <[EMAIL PROTECTED]> writes:

> There are some plug-in modules for procmail which do "weighting" of 
> e-mail.  If an e-mail scores some number of points, it's counted as 
> spam, and redirected to a folder of your choosing (/dev/null *is* a 
> valid folder :)

Personally, I use this one:

http://www.spambouncer.org/

I've integrated this system with my "procmail sorts my email to IMAP
mailboxes" system.  Spambouncer manages to eliminate a large amount of
SPAM from my mailboxes.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Paul Lussier's mail is messed up

2002-03-12 Thread Kevin D. Clark


Paul Lussier <[EMAIL PROTECTED]> writes:

> Upon first glance, I don't see any problems, but then again, I don't 
> claim to be a sendmail expert :)  Anyone out there see anything 
> blatantly wrong with this config?

Is "pll" (and not "plussier") the name of your userID on your Linux
box, and if so, does mindspring's MTA use the IDENT protocol?

(or does your sendmail possibly use IDENT?)


Just a possibility...

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



fix-outlook-quoting.pl

2002-03-08 Thread Kevin D. Clark


I am distributing this in hope that other people find it to be useful.



#!/usr/bin/perl

# fix-outlook-quoting.pl

# Author:  Kevin D. Clark (alumni.unh.edu!kdc)


# This program will take a region of text that looks like this:

# > Kevin ,
# >
# > Blah blah blah blah blah bla.
# >
# > Ralph
# > 
# >  -Original Message-
# > From:   Clark, Kevin
# > Sent:   Thursday, January 03, 2002 8:18 AM
# > To: A bunch of people
# > Cc: A bunch of other people
# > Subject: life, the universe, and everything
# > 
# > Ralph,
# > 
# > Mumble mumble mumble mumble.
# > 
# > Kevin

# (you'd end up with such a region of text if your mail program quoted 
#  email in the cannonical way, and you had to deal with brain-dead
#  email clients like Outlook)

# and transforms this into this:

# > Clark, Kevin writes:
# > > Ralph,
# > > 
# > > Mumble mumble mumble mumble.
# > > 
# > > Kevin
# 
# > Kevin ,
# >
# > Blah blah blah blah blah bla.
# >
# > Ralph
# > 
# `


# this program is also general enough to handle a whole thread of the 
# braindead outlook quoting style.  After this transmorgification is performed,
# it's simple enough to edit the resulting text to actually look decent.


# If you use emacs as your editor and you've yanked the mangled message into
# your reply buffer, some variant of:
#
#   C-u M-| fix-outlook-quoting.pl
#
# will suffice.

# If you use vi as your editor, some variant of:
#
# ma  (move to end of mangled text)
# :'a,.!fix-outlook-quoting.pl
#
# might work.



# Version history:
#
# 0.1 - initial version
# 0.2 - renamed original identifiers to be less offensive


undef $/;

$_ = <>;

($firstPart, $screwed) = /(.*?)(>\s*---*Original Message---*.*)/s;

# print ":$firstPart:\n";

$screwed =~ s/^[> \t]*//mg;

@screwedList = split(/---*Original Message---*/, $screwed);

# the first item in the list is screwed, er, I mean, blank...
shift @screwedList;


$i = 1;
for $f (@screwedList) {

  ($from) = $f =~ /From:\s+(.*?)\s*$/m;

  print "> " x $i++;
  print "$from writes:\n";
}

$i = scalar(@screwedList) + 1;
for $f (reverse(@screwedList)) {

  # delete first "paragraph" of screwed "headers"
  $f =~ s/.*?\n\s*\n//s;

  # quote properly
  $quotes = "> " x $i--;

  $f =~ s/^/${quotes}/mg;

  print "$f\n";
}

print "$firstPart\n";



Regards,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|



Re: Mystery C question

2002-03-06 Thread Kevin D. Clark


[EMAIL PROTECTED] (Michael O'Donnell) writes:

> struct mysteryStruct  {
> struct mysteryStruct *next;
> int   dontCare;
> };
> 
> typedef struct mysteryStruct mystery;
> 
> mystery *nextMystery;/* Pointer declaration - no problem */
> mystery  mysteryPool[ 200 ];/* Array of structs - no problem */
> 
> mystery *  /* Function type - no problem */
> problem(
> mystery *mystery ) /* Parameter declaration - no problem */
> {
> mystery *hosed;/* Auto variable declaration - choke and die! */

The problem here is that this last line is grammatically ambiguous.
I'll get back to this in a second...

Is this a variable declaration, as you claim, or is this a statement
without any side effects (multiply the *variable* "mystery" and the
(currently undefined) variable "hosed" and then throw the result
away).


Back to grammatical ambiguity...

The root of the problem here is C's "typedef" facility.  While this
facility is genuinely useful, it does come with certain implications.
One of these implications is that the presence of "typedef" in C's
grammer makes the actual formal grammer for C "context-sensitive"
(and, if you're familiar with compiler theory, this further implies
that the grammar for C is not LALR(1)). The fact that C's grammer is
context-sensitive implies that there are certain ambiguous cases that
the compiler won't be able to sort out what you were trying to direct
it to do.  

Your example is one of those ambiguous cases.

(as a side-note, if you look at the grammar of Java, it is obvious that
the designers deliberately did *not* include "typedef" in the language
because they wanted to keep this ambiguity out of the language, and
they wanted to keep the grammar LALR(1) as well)


I hope this helps,

--kevin
-- 
Perl's grammar can not be reduced to BNF. The work of parsing perl is
distributed between yacc, the lexer, smoke and mirrors.
-- Chaim Frenkel


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Suspending process started in a new X terminal window

2002-02-25 Thread Kevin D. Clark

Benjamin Scott <[EMAIL PROTECTED]> writes:

>   To rephrase my original question more precisely: How do I spawn a new
> shell, with job control, and have that shell run an external program,
> without replacing the shell?  What do I have to do, run it though 'expect'
> and have that type "pine" for me?  :-)  There has got to be a better way.

I have this feeling that I'm not understanding the whole problem here,
but does this help?:

xterm -e bash -i -c "pine --"

(or something like this...)

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Linux and e-commerce

2002-02-19 Thread Kevin D. Clark


Dan Coutu <[EMAIL PROTECTED]> writes:

> So let me ask if anyone has any experience, or even war stories,
> related to use of Linux for e-commerce.

Try here:

http://www.perl.com/pub/a/2001/10/17/etoys.html

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: (OT) email

2002-02-13 Thread Kevin D. Clark


"R. Sean Hartnett" <[EMAIL PROTECTED]> writes:

> I need to get an email address that I can reach for school purposes for
> a few months.
> Can anyone recommend any free email service somewhere that is not one of
> the big spam outfits?

I'd recommend Yahoo Mail.  You can access this via the web or POP3,
and you can even configure Yahoo's servers to forward your email to
another account if you want.

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Spam via sourceforge???

2002-02-04 Thread Kevin D. Clark


Jack Hodgson <[EMAIL PROTECTED]> writes:

> Probably not from sourceforge. The spam in question.
> 
> ===
> 
> To: [EMAIL PROTECTED]
> Subject: URGENT BUSINESS PROPOSAL. ( CONFIDENTIAl)
> 
> FROM:BARR.IBRAHIM ALI
> 
> ATTN: Jack Hodgson
> 
> compliments of the season.
> I am BARR.IBRAHIM ALI the family Lawyer to the former
> Military Head of States Major General Sani Abacha who
> died mysteriously as a result of cardiac arrest, since
> after his death his family has been frozen by the
> Nigerian civilian government.


Oh, well, then you definitely need to surf here:

    http://www.buddyweiserman.com/

(-:

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Spam via sourceforge???

2002-02-01 Thread Kevin D. Clark


Jack Hodgson <[EMAIL PROTECTED]> writes:

> I got a spam last night that appeared to be addressed to
> 
> @users.sourceforge.net
> 
> I've only registered at sourceforge recently, so maybe this happens
> alot, but two things:

Since you brought the subject of SPAM up, please allow me to refer you
to a company started by a friend of mine:

http://www.emailias.com/

Basically, my friend has developed a service that allows you to create
and manage "emailiases" -- aliases for your real email address.  You
can create these emailiases, dole them out to untrusted parties, and
even interact with these untrusted parties via your favorite email
client.  When you start receiving SPAM via these emailiases, you can
TURN THEM OFF.  End of problem.

Yes, this company charges money if you want to create more than N
emailiases.

Obligatory notice:  I have received no compensation from my friend to
tell you about his company.  We just go on sick mountain bike rides
together (far too infrequently, alas...)...


Obligatory Linux comment:  my friend is a big Linux/Open Source
enthusiast.

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: x86 Assembly resources

2002-01-09 Thread Kevin D. Clark


Bayard Coolidge USG <[EMAIL PROTECTED]> writes:

> However, I'd strongly encourage looking more at what might be coming
> up in Itanium, and rather than doing Assembly-level stuff, be looking
> at what it REALLY takes to migrate existing C/C++ code to a 64-bit
> environment. In a sense, it shouldn't take ANY migration work at all,
> if the programmer paid attention to the difference between pointer
> sizes and integer sizes. But, there is a lot of sloppy code out there
> that assumes a 32-bit object, and that's an erroneous assumption, as
> 9+ years of experience with Alpha has shown.  I submit that this may
> prove to be more interesting/lucrative than twiddling bits on a
> small system. But, that's strictly MHO.

Speaking for myself, I find the whole "let's migrate to a 64-bit
architecture" issue to be a little bit unexciting.  As you implied,
most of the problems in this space are going to involve dealing with
(frequently bad) assumptions that other programmers made.  Bleh.

(coincidently, the  that I work on originally was developed on
ILP32, the "port" to LP64 was trivial, since I paid attention to
details...)

"All the world is a VAX" is no longer true...



But being somebody who finds the internal workings of compilers
fascinating, the Itanium's capability for speculative execution,
instruction predication, parallel operations, etc. make this
architecture terribly interesting.

IMHO, Derek can't go wrong by examining any of the issues associated
with x86 assembly language, or the Itanium spiffy new features, etc.

Regards,

--kevin
-- 
"If it doesn't have 36 bits, you're not playing with a full DEC!"
(seen printed on a tee-shirt at a trade show)


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Python follow-up [modadlug]

2002-01-08 Thread Kevin D. Clark


Ray Cote <[EMAIL PROTECTED]> writes:

> Thanks for the follow-up (even though it did manage to trigger the
> juvenile knee-jerk reaction squad into action).

I fail to see anything "juvenile" in this thread.

There might have been a little bit of "knee-jerk" reaction, but this
was just a small misunderstanding.  Water under the bridge as far as
I'm concerned


If you still hold these opinions about this thread, please, by all
means, tell us more about why this thread is so "juvenile" (etc.).

Otherwise, let's drop this issue.


Regards,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Python follow-up [modadlug]

2002-01-08 Thread Kevin D. Clark


mike ledoux <[EMAIL PROTECTED]> writes:

> Err, why are you guys dragging your language war from 'modadlug' (what's
> 'modadlug'?) to GNHLUG?  Please don't.

I didn't start a language war.  I merely stated that I disagreed with
a controversial statement.

If I had wanted to start a language war, I would have made a statement
to the effect of "Python sucks because...".

Regards,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Python follow-up [modadlug]

2002-01-08 Thread Kevin D. Clark


Bill Sconce <[EMAIL PROTECTED]> writes:

> What Eckel says now:

...

> o  Python is executable pseudocode. Perl is
>executable line noise. 
> 
> o  Perl is like vice grips. You can do anything
>with it, and it's the wrong tool for every job. 


Just for the record, I disagree with all of this.


Python is nice, but clearly there are a lot of problems out there that
are just screaming to be solved using Perl.

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: HPUX break in

2002-01-03 Thread Kevin D. Clark


"Andrew W. Gaunt" <[EMAIL PROTECTED]> writes:

> A fellow I work with inherited an HPUX machine and of course, nobody
> knows the root password. Does anyone know of a  'break in' procedure he
> can try?

Is this machine involved in a NIS domain?  Can the NIS administrator
login/su?

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: HPUX break in

2002-01-03 Thread Kevin D. Clark


"Andrew W. Gaunt" <[EMAIL PROTECTED]> writes:

> A fellow I work with inherited an HPUX machine and of course, nobody
> knows the root password. Does anyone know of a  'break in' procedure he
> can try?

If you *absolutely* don't have the root password:

(from my very old (possibly incorrect) notes...)

1:  shut off the system
(no way to gracefully do this w/o the root password)

2:  IIRC, while the system is starting up, if you hit ESC twice,
you'll interrupt the booting process.

3:  At the boot_admin prompt type: boot pri isl

4:  At the "isl" prompt type: hpux -is



If the previous admin configured the system in "trusted" mode, this
will *not* work, and you'll have to boot from the original media.

Regards,

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Apache/Expat/Sablotron

2002-01-03 Thread Kevin D. Clark


Paul Iadonisi <[EMAIL PROTECTED]> writes:

>   I forgot to mention that I did do a Google search on 'sablotron expat apache
> segfault' and found lots of references to this exact type of problem. The
> results seem to universally point to multiple copies of the expat processor due
> to the fact that many products (apache included) include their own copy
> of expat.  

You need to verify that you have *one* *consistant* version of expat
on your system.

> Depending on the version, whether it's linked statically or
> dynamically and anything else you are using that needs expat, there can be
> serious conflicts.  It has something to do with instantiating the parser
> multiple times and then the code that makes the call to the parser doesn't
> know which instance to call.  Something like that.

Har!  I wonder if they use yacc for their parser...

>   Anyhow, based on what I read, it appears that I've got everything set right.
> Red Hat's apache 1.3.22 update links dynamically to the external expat.  So
> does the 0.71 rpm of sablotron from the Ginger Alliance.  Even the
> perl-XML-Parser is linked dynamically, though we don't use that.  The only
> thing I can think of that might not be is php (which we use a small bit of),
> but we don't even use any of the XML stuff in php and I don't think we've
> even reached the point where php would be loaded.  I may be wrong, though,
> as I know little about the inner workings of apache.


Do you happen to end up with a file named "core" anywhere as a result
of this problem?

Are there any references to LD_LIBRARY_PATH anywhere in this mix?

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Apache/Expat/Sablotron

2002-01-02 Thread Kevin D. Clark


Paul Iadonisi <[EMAIL PROTECTED]> writes:

>   Our custom C++ tag is dying with a sig11 when called from our CF scripts,
> not when called from the command line via a C++ program.

What's the stack trace look like?

What are the shared libraries being used here?

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: daemon-mode fetchmail failures

2001-12-31 Thread Kevin D. Clark


I use fetchmail all the time.  In previous versions I occasionally
experienced the same problems that you are reporting.  In every case
that I traced, the problem had something to do with an authentication
failure on the POP/IMAP server end.  When fetchmail encountered this,
it silently died.

However, now I am running fetchmail 5.5.2.  I still occasionally
experience authentication failures, but with this new version of
fetchmail the fetchmail daemon sends me an email that tells me about
the problem.  This is The Right Thing to do in this situation, and I'm
still happily using fetchmail.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: PGP question

2001-12-28 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

>   You are pretty much out of luck, then.  The whole point behind things like
> PGP is that they aim to provide unbreakable encryption.  If you lose your
> passphrase, you effectively become an attacker.  If they made it easy for
> you, they would make it easy for the attacker.  Your only option would be to
> brute force the key -- you might crack it in a few billion years.

This is all pretty much false.

Paul has lost the passphrase that protects his cryptographic keys.
He's *does* have the cryptographic keys though.

Paul needs some way of recovering the passphrase.  If this is Really
Important, Paul can recover his passphrase, if he wants to devote
sufficient resources and/or resources to this task.  However, let me
categorize this further:  it probably won't take thousands of years of
computing time to recover the passphrase.


Suggestion:

http://www.accessdata.com/Product00_Download.htm?ProductNum=00 


--kevin
-- 
"There was no way in hell Bill Gosper was going to work under a man
 who did not know why the logarithm of the sum was not the sum of the
 logarithms."
-- Steven Levy, _Hackers_


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: rfc2505

2001-12-27 Thread Kevin D. Clark


Bob Bell <[EMAIL PROTECTED]> writes:

> Here at work we have a web-based interface to edit procmail
> rules.  I can't find a URL for that interface, but I found a similar
> project at http://www.uvm.edu/opensource/?Page=procbuilder.html.  This
> should allow you to edit your procmail rules without having shell access
> to the server.

I think that the crux of the matter here is that as soon as you allow
an end-user to run procmail on a so-called "sealed" server, you're
basically giving them shell access.  A nefarious user might be able to
exploit this.

(maybe if you ran the whole thing in a chroot jail...)


Still, I have to say that I've been using my IMAP+procmail custom
setup for a few months now (described here:
http://www.mail-archive.com/gnhlug@zk3.dec.com/msg09038.html).  I've
even integrated one of the pre-packaged SPAM filters into my setup
(SPAM is sent to its own folders -- occasionally I peruse these just to
make sure I'm not overlooking anything).  I *really* like my setup.

Still, I will grant that tools like "sieve" might be attractive to
those wishing to run a "sealed" IMAP server.  I haven't actually
checked out sieve, but I do have to say that I sure do like
procmail...it's a tried and tested tool, and I trust it.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: news.gnhlug.org is now operational!

2001-12-19 Thread Kevin D. Clark


Another suggestion for the mail portal:  I'd like to see it wrap lines
properly.

Thanks,

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Shell scripting question

2001-12-19 Thread Kevin D. Clark


Hey, here's another approach:

if [ "$LOG" = '' ] ; then
  LOG=gralog.`date +%Y%m%d%H%M%S` ; export LOG

  cat >/tmp/temp.sh.$$ <


Re: Shell scripting question

2001-12-19 Thread Kevin D. Clark


Marc Evans <[EMAIL PROTECTED]> writes:

> Since I also have the constraint that this same script must work on common
> Linux platforms, I have to come up with an alternative to the script
> command. So I think, maybe this will work:
> 
> [ "$LOG" = '' ] && \
>   { export LOG=mylog.`date +%Y%m%d%H%M%S` ; exec bash -c "$0 $* 2>&1 | tee 
>/tmp/$LOG" ; }
> 
> Yeah, I loose the logging of input information, but it largely
> works.

Would you be willing to use something less portable if it also
preserved user input?  Like Expect or by utilizing a Perl module...

(damn, "script" is useless without that feature...)

> #!/bin/bash
> 
> [ "$LOG" = '' ] && \
>   { export LOG=mylog.`date +%Y%m%d%H%M%S` ; exec bash -c "$0 $* 2>&1 | tee 
>/tmp/$LOG" ; }

This looks reasonable.  I recall doing something like this once.

Out of curiosity, what happens if you do {something like} this instead:

[ "$LOG" = '' ] && \
  ( LOG=mylog.`date +%Y%m%d%H%M%S` ; export LOG ; "$0" "${@}" 2>&1 | tee /tmp/$LOG ; )

[ "$LOG" = '' ] && exit $?


Yes, this uses more sub-shells, but it might prod this into working.

> So, my question becomes, has anyone had to do anything similiar in their
> own scripts, and if so what mechanism did you use? Does anyone see
> anything obviously wrong in my approach and/or do you know of any issues
> that might cause the non-termination of the program when it is made more
> complex then the last example?

Are any of the  that you are eliding in your example doing
anything weird with the terminal?  Just wondering.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Firewall rules question

2001-12-05 Thread Kevin D. Clark


Tom Rauschenbach <[EMAIL PROTECTED]> writes:

> Does anyone know if they are trying to establish a reverse connection like 
> FTP does ?

Well, they do, sort of.  But (by default) they're using a UDP (a
connectionless protocol) for this data-stream.  No SYN bits to deal
with with UDP...


Questions:

Are your firewall rules allowing your system to freely make outgoing
connections to arbitrary ports (in particular, ports 80, 554, 7070,
and 8080)?

What does your firewall do with incoming UDP datagrams (particularly
those destined for UDP ports 6970-7170)?

Are you doing any sort of NAT?

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Xemacs

2001-11-29 Thread Kevin D. Clark


Brian Chabot <[EMAIL PROTECTED]> writes:

> I've already set and unset and tweaked the lpr-switches variable, but
> that never seems to take and I can't find reference to it in the
> ~/.emacs file.

Is there any reference to it in ~/.xemacs-options?

What happens when you set lpr-switches manually in your .emacs to
whatever you need to accomplish double-sided printing; e.g.:

(setq lpr-switches '("-whatever"))


(if you know what you're doing you can set this in your .emacs file,
and then eval this expression and you won't have to restart your
x?emacs process...)

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|







*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Alias files

2001-11-26 Thread Kevin D. Clark


<[EMAIL PROTECTED]> writes:

> Anyone else want to offer some neat, tricky, crafty
> additions for an (Linux) alias file ?

Most of what I include here will be useful to programmers, but some of
these are generally handy to all.  Enjoy...

--kevin



# Author:  Kevin D. Clark 

# these are intended to be stuck in your .kshrc .  
# if you use csh you have my condolences...

alias kh="kill -HUP"
alias k9="kill -9"
alias cx="chmod +x"

srcfind () {
  if [ $# -eq 0 ] ; then
echo srcfind: please enter a directory list
  else
find "${@}" \(   -name \*.c \
  -o -name \*.cc \
  -o -name \*.h \
  -o -name \*.hh \
  -o -name \*.java \
  -o -name \*.c++ \
  -o -name \*.el \
\) -print
  fi
}

writeablesrcfind () {
  if [ $# -eq 0 ] ; then
echo writeablesrcfind: please enter a directory list
  else
find "${@}" \(   -name \*.c \
  -o -name \*.cc \
  -o -name \*.h \
  -o -name \*.hh \
  -o -name \*.java \
  -o -name \*.c++ \
  -o -name \*.el \
\) \
-exec test -w {} \; \
-print
  fi
}


# files that are relevant to our build
buildfind () {
  if [ $# -eq 0 ] ; then
echo buildfind: please enter a directory list
  else
find "${@}" \(   -name \*.c \
  -o -name \*.cc \
  -o -name \*.h \
  -o -name \*.java \
  -o -name \*.c++ \
  -o -name Makefile \
\) -print
  fi
}

# files that are relevant to our build
newerbuildfind () {
  if [ $# -lt 2 ] ; then
echo Usage: newerbuildfind file-with-timestamp directory1 directory2 ...
  else
FILE=$1
shift
find "${@}" -newer $FILE \
\(   -name \*.c \
  -o -name \*.cc \
  -o -name \*.h \
  -o -name \*.java \
  -o -name \*.c++ \
  -o -name Makefile \
\) -print
  fi
}

# files that are relevant to our build
writablebuildfind () {
  if [ $# -eq 0 ] ; then
echo Usage: writablebuildfind file-with-timestamp directory1 directory2 ...
  else
find "${@}" \(   -name \*.c \
  -o -name \*.cc \
  -o -name \*.h \
  -o -name \*.java \
  -o -name \*.c++ \
  -o -name Makefile \
\) \
-exec test -w {} \; \
   -print
  fi
}

txtfind () {
  if [ $# -eq 0 ] ; then
echo txtfind: please enter a directory list
  else
perl -MFile::Find -e 'find(sub{print "$File::Find::name\n" if (-f && -T);}, 
@ARGV);' "${@}"
  fi
}

binfind () {
  if [ $# -eq 0 ] ; then
echo binfind: please enter a directory list
  else
perl -MFile::Find -e 'find(sub{print "$File::Find::name\n" if (-f && -B);}, 
@ARGV);' "${@}"
  fi
}

cfind () {
  if [ $# -eq 0 ] ; then
echo cfind: please enter a directory list
  else
find "${@}" \(   -name \*.c \
  -o -name \*.cc \
  -o -name \*.c++ \
\) -print
  fi
}

hfind () {
  if [ $# -eq 0 ] ; then
echo hfind: please enter a directory list
  else
find "${@}" \(-name \*.h \
\) -print
  fi
}

jfind () {
  if [ $# -eq 0 ] ; then
echo jfind: please enter a directory list
  else
find "${@}" \(   -name \*.java \
\) -print
  fi
}

elfind () {
  if [ $# -eq 0 ] ; then
echo elfind: please enter a directory list
  else
find "${@}" \(   -name \*.el \
\) -print
  fi
}

bakfind () {
  if [ $# -eq 0 ] ; then
echo bakfind: please enter a directory list
  else
find "${@}" \(   -name \*.bak \
\) -print
  fi
}

classfind () {
  if [ $# -eq 0 ] ; then
echo classfind: please enter a directory list
  else
find "${@}" \(   -name \*.class \
\) -print
  fi
}

writeablefind () {
  if [ $# -eq 0 ] ; then
echo writeablefind: please enter a directory list
  else
perl -MFile::Find -e 'find(sub{print "$File::Find::name\n" if (-f && -w);}, 
@ARGV);' "${@}"
  fi
}

readonlyfind () {
  if [ $# -eq 0 ] ; then
echo readonlyfind: please enter a directory list
  else
perl -MFile::Find -e 'find(sub{print "$File::Find::name\n" if (-f && ! -w);}, 
@ARGV);' "${@}"
  fi
}

# Finds all files and directories newer than a given file
newerfind () {
  if [ $# -lt 2 ] ; then
echo newerfind: please enter a directory list
  else
perl -MFile::Find -e '$f = shift; find(sub{print "$File::Find::name\n" if 

Re: And now for a rant...

2001-11-14 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

>   How ironic.  You use a shell script whose major purpose is to detect and
> correct for differences between platforms to illustrate the effect of
> standard implementations.  Was that deliberate?

Yes, and it proves that such things are possible to write.

> > this isn't a intractable problem to deal with.
> 
>   Intractable?  No.  If it was, we would be justified in not bothering.
> But is it frustrating?  Yes!!  :-)

Yes, but dealing with such problems has a tendancy to keep me employed
(-:  ... and I would rather deal with such sane kinds of problems
rather than deal with  systems...

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|




*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: And now for a rant...

2001-11-14 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

> On Wed, 14 Nov 2001, Bayard Coolidge USG wrote:
> > ... particularly since I don't have time to make a detailed study of the
> > POSIX standard...
> 
>  ... and no one else does, either, so it wouldn't help in any event...

Oh, come on, this isn't really true.  

If the thrust of this argument is correct, then 

   o  highly portable shell scripts wouldn't exist   (ever use configure?)

   o  the POSIX books that I have on my desk wouldn't be so dog-eared

   o  Someone like Bayard, who seems pretty sharp to me, wouldn't be
  able to help out his daughter with what are probably going to be
  some pretty easy tasks.  I doubt this is really true.

Yes, various Unix OS's and distributions of these OS's are
sufficiently different to cause some problems, generally, this isn't a
intractable problem to deal with.

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Obtaining IP addr of a given interface

2001-10-29 Thread Kevin D. Clark


"Derek D. Martin" <[EMAIL PROTECTED]> writes:

> I don't disagree!  However, sed was designed to be an editor, whereas
> awk truly was intended to be a programming language.  :)

What's the difference?  They're all just convenient ways ot flipping
bits.

Hell, I'm a longtime user of Emacs, but most of the C++ code I'm ever
written was produced with Perl.

Why should I do the typing when I can be clever and let the computer
type for me...?  (-:


It's all just flipping bits.

--kevin
-- 
Kevin D. Clark   |   Will hack Perl for
 |  fine food, good beer,
[EMAIL PROTECTED]   |   or fun.
 |


*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*



Re: Unix trivia [ was Re: Obtaining IP addr of a given interface ]

2001-10-25 Thread Kevin D. Clark


Paul Lussier <[EMAIL PROTECTED]> writes:

> Er, while I'm quite familiar with the Perl Poetry thing, I've never 
> seen this one before.  Does it actually do anything, or is it just 
> that perl doesn't barf all over it that's the amazing part? :)

Oh sure.  That particular program is in fact a solution for the
Halting Problem...  (-:

--kevin
-- 
In order to understand recursion, you must first understand recursion.


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Obtaining IP addr of a given interface

2001-10-25 Thread Kevin D. Clark


Jerry Feldman <[EMAIL PROTECTED]> writes:

> I'm not exactly sure. I've got that somewhere in my lecture notes from last 
> winter, but according to Clem Cole, the only unix command that is not an 
> acronym of some sort is biff, which was named after a dog.

Some counterexamples:

   yes, echo, print, less, cut, find, shutdown, halt, kill, who am i.



But there aren't too many.  Actually, it is a well known fact that
Perl's popularity as a scripting language (as opposed to scripting in
the One True Shell -- the Bourne shell) is largely due to the fact
that the multiplicity of English keywords in Perl's grammer makes Perl
a far more suitable language for writing poetry...  (-:

--kevin
-- 
#!/usr/bin/perl
  Unknown_Parcel:

("by JAPH");

package Delivery;

H...Delivery? Perhaps: cookies or cakes or crumpets with icing...
I pause - open the door and close it,
  open it and close again   while deciding;

untie %parcel, quickly, with anxious fingers...
reading the misspelled writing;

use less caution;
 no less urgency;

import scissors;
chop, chop...snip, snip;
no less untied;  /ARGH! I need to open this package *right now*!/;

This Delivery's quite weighty.
My suspicions heightenand alarm bells ring in...my $head;
I'm dead
if the Unabomber sent this parcel.

(he can pack (a, pipe( bomb, good )));

But curiosity gets the better of me, so I open the parcel
 _with_my_bare_teeth_;

chomp, chomp, warn me or kill me, chomp, write an epitaph, chomp, chomp;

bless death, when it comes, I always say;

accept fate, contentedly if not happily, since we all live or die in the end;

listen ( to, me ); study or die -

the
 __END__
  is nigh.
 ** BOOM **
  :-(


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Obtaining IP addr of a given interface

2001-10-24 Thread Kevin D. Clark


Paul Lussier <[EMAIL PROTECTED]> writes:

> Though I think Ben's idea is actually faster:
> 
>   $ time ifconfig eth0 | grep inet | awk -F: '{print $2}' | cut -f1 -d' '

Actually, all that does is time ifconfig.  Not very useful...

You might try:

  time sh -c '/sbin/ifconfig eth0 | grep inet | awk -F: "{print $2}" | cut -f1'



``Overhead of Perl''?  Ha ha...

--kevin
-- 
Kevin D. Clark   |   Will hack Perl for
[EMAIL PROTECTED]   |  fine food, good beer,
 |   or fun.
 |


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Linux on Dell Inspiron 8100

2001-10-17 Thread Kevin D. Clark


Bill Freeman <[EMAIL PROTECTED]> writes:

>   I'm not sure how many of you have noticed that the loop
> control condition depends on a variable different from that being
> updated.  Assuming that $i is non-volatile, then this loop either runs
> zero times, doesn't compile (if perl checks the declaration of $i and
> it hasn't been), or it runs forever.

This is actually a typo; let's not blame the original author for that.

Sorry...

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Linux on Dell Inspiron 8100

2001-10-17 Thread Kevin D. Clark


Ken Ambrose <[EMAIL PROTECTED]> writes:

> It does -- most certainly.  I've been in *DOS*, doing *NOTHING*, and the
> fans come on on my Sony.  Beats the hell out of me what's going on.

It is well-known that DOS is basically a big busy-wait loop.

Ha ha -- only serious.

--kevin
-- 
for ($x = 0; $i <= 5000; $x++) {}

-- "Perl From The Ground Up" by Michael McMillan
   (Windows NT Systems Magazine Columnist)

"A more common way to use a for loop as a timer is to have a loop
 perform nothing for a particular number of steps, effectively pausing your
 computer program... This is a very common program construct and one that
 all beginning computer programmers learn to write."

-- Michael McMillan, "Perl From the Ground Up", p 71


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: CERT Advisory CA-2001-27 Format String Vulnerability in CDE ToolT alk

2001-10-08 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

>   Not that the warning isn't appreciated, but who runs CDE on Linux?

Beats me.

>   For that matter, who runs CDE?  ;-)

Plenty of people, especially those who don't know how to replace their
window manager.  Although I suspect that the number of CDE users is
steadily shrinking...

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|



**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Windowing changes from RH 6.2 to 7.1

2001-10-05 Thread Kevin D. Clark


Rodent of Unusual Size <[EMAIL PROTECTED]> writes:

> 'Sokey, I guess I'll either get used to
> C-M-Fn or else figure out how to tell Sawfish to map it.

Settings -> Shortcuts will get you there.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Website defacement (was: Anti-terrorism bill...)

2001-10-03 Thread Kevin D. Clark


[please configure your mailer to wrap lines correctly]


"Philip M" <[EMAIL PROTECTED]> writes:

> I really don't see what the fuss is all about. Some lawyers passed some laws, some 
>law enforcement wonks got their wishlist. Who
> really cares? If you suddenly find your local judge prosecuting you for planting 
>roses, then go over to his house and berate him and
> tell his wife to make him sleep on the couch.

Are you serious?  Do you consider your personal liberties so
unimportant that you'd allow your government to arbitrarily take them
away from you?

> Freedom is only real in the away from the computer walking around sense. You guys 
>are sitting around at a computer eating doughnuts.
> M doughnuts!

Well, I for one am glad that you're not the guy who defines what
freedom is.

I suppose that you'd be happy if one of your "trusted politicians"
told you that:

...freedom *was* real in the "away from computer walking
around sense", but today we thought about it a bit more and we
decided that we didn't like what what the newspapers were printing
about us, so we shut them down.

> Frankly all this new law passing is due to the arrogance of sys admins in the first 
>place.

Oh yes, you're right.  You're so wise.  Wow, how could I have been so
silly to think otherwise

> Back in the old days companies used to issue press releases and who got to say what 
>was tightly controlled. Then the web came along
> and all the little people in the company got around their big bosses
> by putting their own stuff on the web. 

Look at me!  I'm a little person!

> pThen all the sys admins
> came along and tried to configure the already configured systems
> thereby making them vulnerable to hacking. 

Oh yes, there's a bit conspiracy out here amongst the little people to
make the world more insecure!  You're onto us now!

>  Result: web page gets
> defaced by other sys-admins (i.e. hackers), 

So you don't know what a hacker is either.  Your knowledge level is
simply astounding.

> big bosses look bad to board of directors.
> The big bosses are really mad and they have long memories. They can't put anyone 
>calling himself a sys admin in prison like they
> want to (yet). So they just get the government to do it. What goes around comes 
>around, I say.
> 
> When searching for incompetence, always look to yourself first.

Speak for yourself.


You are either a troll or you are really, really naive.  Either way, I
will deal with your future postings in a similar manner.

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Home again, and a glimpse of the future

2001-09-20 Thread Kevin D. Clark


Derek Martin <[EMAIL PROTECTED]> writes:

> According to reports, there were typically 4 men involved in each
> plane hijacking.  These men were armed with knives with smaller than
> 4" blades.  With roughly 100 or more other people on board each of
> these planes, I'm almost embarrased for our country that these people
> were successful in taking control of the plane.  Almost, but I'm
> fairly certain that if I were there, I would have sat in my seat, much
> like all the rest of the passengers.

These cowards almost certainly grabbed some of the weaker passengers
and put knives to their throats, threatening the stronger passengers
that they'd kill unless they kept away.

IIRC, there was a two year old baby on on of the planes...  This
doesn't make for a very pleasant scenerio, but that's the world we
live in today.


If we can get through this whole mess and end up with a decent society
in which our personal liberties are preserved and our quality of life
is still high, this will be a good trick.

--kevin
-- 
``We are coming after you. God may have mercy on you, but we won't.''

   Senator John McCain, 12-sept-2001





**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Derek Martin's email unreadable?

2001-09-05 Thread Kevin D. Clark


Whatever happened to MS/TNEF anyways?

When Outlook first became popular, I used to get email in this
unreadable format all the time.  I used to trash such email regularly.

Why don't I see MS/TNEF messages anymore -- did users complain, IT
staffers complain, or did Microsoft benevolently decide not to subject
the rest of us to this bogosity anymore?

--kevin
-- 
"Ouch!"
  -- Bill Gates, after my friend rolled back in his chair and over
 Bill's foot while giving Bill a demo.


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Lint for shell scripts?

2001-08-30 Thread Kevin D. Clark


Richard Soule <[EMAIL PROTECTED]> writes:

> I got this email recently.  After a quick search did not seem to turn up
> anything, I figured that I would ask the experts...
>
> > I recall that there may be a lint-like utility available for shell
> > scripts, instead of the well known lint for C, and lint-like tools for
> > CGI, HTML, etc
> > 
> > Do you know if there is such a utility out there in Linuxland?

Post it to comp.unix.shell and let the regulars tear it apart...

(or run it through "sh -n" and take your chances)

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|






**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: General Question

2001-08-30 Thread Kevin D. Clark


Benjamin Scott <[EMAIL PROTECTED]> writes:

>   Since VLANs are for making virtual networks, perhaps you can have a system
> with multiple physical connections treat them all as the same VLAN
> interface?  Just a guess, I really don't know much about VLANs.  (Hey,
> sounds like a great talk for GNHLUG, Kevin!  ;-)

Everything you need to know about VLANs is discussed in the following
koan:

   Goso said:  ``When a packet goes out of its egress to the edge of
   the abyss, its header and its payload all pass through, but why can't
   the VLAN tag also pass?''
   
   Kevin's comment: If anyone can open one eye at this point and say a
   word of layer-2 bridging, he or she is qualified to discuss the
   intricacies of ``one-armed routers'', and, not only that, he or she
   can save all sentient beings under them from broadcast storms caused by
   Windoze boxen.  But if he or she cannot say such a word of true IEEE 802.1Q
   VLANs, he or she should turn back to their tag.
   
If the packet is transmitted, it will fall into the ether;
If it remains in the queue, it will exceed its TTL,
That little VLAN tag
Is a very strange thing.
   

(apologies to Mumon...  (-: )

--kevin
-- 
Kevin D. Clark (CetaceanNetworks.com!kclark)  |
Cetacean Networks, Inc.   |   Give me a decent UNIX
Portsmouth, N.H. (USA)|  and I can move the world
alumni.unh.edu!kdc (PGP Key Available)|


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: General Question

2001-08-28 Thread Kevin D. Clark


[EMAIL PROTECTED] (Kevin D. Clark) writes:

> Marc Evans <[EMAIL PROTECTED]> writes:
> 
> > I *think* that this may be covered in the 802.11Q VLAN software available
> > for Linux. I am not certain, as I have not actually tried to use it in
> > this fashion, but I do recall seeing discussion of it...
> 
> I don't see how VLANs (pick your standard; IEEE 802.1Q or whatever)
> and any sort of trunking (pick your standard; IEEE 802.3ad, Cisco,
> whatever) has a direct relationship.
> 
> So I find this to be a little bit weird.

Wait, I think I know what Marc is referring to.

In VLAN terminology, there's a concept of a trunk (traffic from
multiple VLANs can easily travel over such a link).

Port aggregation schemes also refer to something called a "trunk".

However, these two "trunks" are different.  Port aggregation
technology is different from VLAN technology.

--kevin
-- 
Kevin D. Clark (cetaceannetworks.com!kclark)  |   Will hack Perl for
Cetacean Networks, Inc.   |  fine food, good beer,
Portsmouth, N.H. (USA)|   or fun.
alumni.unh.edu!kdc (PGP Key Available)|


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



  1   2   3   4   >