Blog This!   Lee Geistlinger's Web Log
Blog Home
Blog Archives
LittleGhost Home

E-mail: geistlinger AT gmail.com

Loading
Pic 'O the Day
Top 10 Lists
Everyone loves lists
Reviews
Books, Movies and so on
Blogroll
Feed Me!

XML Feed

Feeds I Read

My Online Aggregator

Theme
• Default
• Spring
• Summer
• Autumn
• Winter
• Black & White
• Gray & White
• MT-ish
• Classic
Listening To...
Evidence of Efforts

This page is powered by Blogger. Isn't yours?

Valid CSS!

[Valid RSS]

Recent Posts
 Thursday, December 26, 2002
OK, I was thinking about databases.

What am I thinking about now?

I've been coding my brains out lately, but in a very helter-skelter way that (occasionally) dovetails nicely.

The following is a list of what I've been working on lately:


I've been doing a little XML, some Cold Fusion, some stored procs and messing with three different databases (mySQL and Postgres on Linux; MS SQL Server on Win2000), as well. Probably not as much as I should, but there is only so much time.

=======================

One other thing I have been getting into lately is shell scripting. I finally found a book (PDF, on the Web, free) on BASH scripting (I use Bash on my Linux box; to be honest I don't know if I have the Korn or Bourne shell on there. Doesn't look like it).

Shell scripts are a pain in the ass, but excellent coding practice. They are difficult because they are so precise. With HTML, you can get away with almost anything (no close TR? the browser understands). With Cold Fusion, you get away with a lot (not case sensative, loosely typed etc). With Perl, it'll slap you for case, but other matters are handled transparently (variable $num not exist? Then "$myNum = $num + 7" will equal 7. No error).

Shell scripts require all sorts of rule-following, the most difficult -- to me -- is the space issue:

I like writing: $c = $b + 4;



Shell scripts require no spaces: $c=$b+4;

Yeah, same thing, but .... just not my usual coding practice.

But good -- you HAVE to be precise with shell scripts, which is a good thing. (However painful)

In a case of my "learnings" dovetailing, what I'm doing with the shell scripts is writing scripts to back up important files/directories on my Linux box to the Win2000 box and vice versa. This required the following tools/skills:


It's been an eye-opener.

I currently have eight CRON jobs running every night; before the crons run, I have two scheduled batch jobs on the Win2000 box zip things up.

Pretty cool.

And the best part is that I wrote these a month or so ago, and I just let them go. And they keep working. (Yes, I do check that they ran, and occasionally try to "restore" from a backup: never failed yet).

This was a lot of work -- simply because a lot wasn't in place (FTP server etc), but because I do have at least passing familiarity with the crontab, scheduler and so on, it was pretty straight-forward. Lot of work; lot of time -- but no "deal breaker" dead ends. Just busy work, to some extent. I would figure I'd need this or that; I'd do it. No biggee.

Sometimes being an inquisitive geek pays off.


- Posted by Lee at 2:14 PM Permalink #
^Top | Top Ten Home | Blog This! Home | Blog This! Archives