alvin's blog

Linux mail - a Linux shell script to send mail

Here's a n example Linux shell script (Bourne shell to be specific) that I use to send a list of directories to one of our invoicers. She uses this list as part of a cross-checking process to make sure she bills each one of our customers who have a directory allocated to them. The list is sent to her automatically from a Linux crontab entry I created for her.

Without any further ado, here is the Linux shell script that sends the email. (Note that although I keep writing "Linux mail", this should also work on other Unix systems.)

Tue, July 13, 2004 (Wonderlic test; ad problems)

It's funny in life how you don't hear about something, or know about something, and then it comes up over and over again in unrelated situtations. The "Wonderlic test" is like that for me. I'd never heard it until three recent unrelated conversations.

Sat, July 10, 2004 (Creating a sed script to convert HTML to LaTeX)

My obsessive use of LaTeX continues. Here's a link to a sed script I'm creating to convert HTML to LaTeX.

I actually have a reason to do this. During a requirements phase I'm doing a lot of work with HTML prototypes, but the actual specification is being created using LaTeX, and I want to incorporate the HTML prototypes in the LaTeX document. Hence this conversion effort. I know that it can never fully succeed, but I think I'll be pretty happy with 90-95% success here.

 

A crazy sed script to convert HTML code to LaTeX

The crazy sed script below is my first attempt at a script that will convert as much HTML as possible to LaTeX. For my purposes I'm mostly interested in tables, lists, buttons, and comboboxes, but I included a few other things as well.

This is in an extremely experimental state, and is included here as much for backup purposes and sharing as anything else.

Here's how you run the sed script on an HTML file named test.html:

sed -f html2latex.sed test.html > test.tex

That being said, here's the current source code for the html2latex.sed file:

Wed, July 7, 2004 (hyperbolic trees; support issues)

Here's a link to a cool "Green plant hyperbolic tree demo". Don't give up on it too quick. If you start exploring the tree, especially by following the Moniliformopses path, you'll start to see some very interesting power here. I'm looking for a new menu/navigation paradigm, and a co-worker sent me down this road.

In other news, here's a recent conversation between me and a Support Guy ("SG" for short):

Tue, July 6, 2004 (Speaking at BorCon 2004)

Over the weekend I saw that I'm on Borland's speaking schedule for their annual conference, BorCon 2004. I guess I better get to work on my presentations. :) Actually, I'm ready to go. I'm set to give one talk on Java Performance Tuning and another on Function Point technology. Giddyup.

I haven't frequented it before, but the Java & Internet Glossary at mindprod looks pretty good.

 

Homeland Security says don't use Internet Explorer (Fri, July 2, 2004)

I guess it's pretty serious when the Department of Homeland Security says "Don't use Internet Explorer":

Windows title bar - setting the title of a Windows command session

I don't know exactly how I'm supposed to be able to control the text that appears in the titlebar of a Command prompt window in Windows 2000 and Windows XP, but I've figured out something that kind of sort of works. Just follow these steps:

Anti-practice: The karma of bad estimates and not communicating in the process of software development

A quick lesson on the karma of getting and accepting bad estimates from developers, and not communicating:

Mutt email tips

Maybe because I'm a bit of an old-timer, or maybe because I like the speed, I often use mutt for my email. Knowing that, DD forwarded me this link of good mutt tips. As an old(er) friend might say, I'm all over that like green on a frog.

Syndicate content