Tuesday, November 10, 2009

New Software Installation

On November 24th I will be taking the test to get my Ham radio license. While it is no longer required, I thought it would be fun to learn a little Morse code. I figure there have to be some software programs out there to help teach it. Then when I see someone use Morse code in a movie, I will be able to understand what they are saying. Perhaps it will match up with what the message is supposed to be or be an encoded message like, "these actors are morons."

I have three different types of computers that I use: Linux, Windows, and Mac. My Windows machine is at another desk in my office and I really don't use it much. Unfortunately most of the searches for Morse code tutorials turned up software for Windows machines. So I refined my search to look for tutorials on Linux. There were a bunch of them.

Normally you install software on the Red Had flavors of Linux using a program called "yum." If you want to install the QT user interface framework library, you simply run the following command:

yum install qt

The computer automatically finds the software on the Internet and automatically installs it. If you already have QT installed, it says, "it is already installed and is the latest version." You don't have to download anything nor do you have to answer very many questions related to the installation.

You'll notice that I used the word "Normally." Not all software for Linux is so easily installed. A lot of people write software for Linux but not everybody packages up their software so neatly. None of the Morse code tutorials were and that made my life a bit more difficult.

I downloaded the first tutorial. It was a bz2 tar file. What is a "bz2 tar file?" It is just a bunch of files packages into a single "tar" file and then compressed using the "bz2" algorithm. It is similar to a .ZIP file. I uncompressed and broke the files out so I could see what was included. There were some instructions on how to do the installation. I followed them only to get an error. It seems I was missing some important files. So I tried "yum" but it couldn't find them either. It was time to throw this tutorial away and try another one.

I downloaded the second tutorial. It had similar issues to the first one. There were a whole page of tutorials and so I had no problem throwing it away and moving down the list. The third tutorial said I just needed to run the program and didn't need to install anything. It lied. Once again I was missing some important file or library and it wouldn't run.

I was beginning to think that Windows may be the platform of choice for Morse code tutorials when I found a program called "morse." I downloaded it and was happy to see it run. I immediately figured out how to recognize the letters G, Z, and U. Once you master those, it adds one letter at a time until you have them all memorized.

Last night I could agree with Windows users thinking that Linux is just too difficult to use. It is rare that software doesn't install smoothly on Windows or Mac computers. Hopefully Linux developers will take note and make it easier to install their software.

Monday, November 9, 2009

Hammers and Tools

A few years ago everyone started using the phrase, "If your only tool is a hammer, you tend to treat all your problems like nails." It made a lot of sense and people started re-evaluating what tools they were using for any type of job, not just home improvement projects.

At around this same time, my boss where I was working coined the phrase, "You can't build a skyscraper with a hammer." I was working for a company that had a really expensive software development tool that let small groups of programmers build really complex applications in a relatively short amount of time. The hammer and skyscraper metaphor made a lot of sense and opened several doors for the company.

Anyone who has ever worked on a seemingly simple home improvement project knows that the right tool can help keep the job simple. Not having the right tool can make it unbearably complex.

This past Friday I was working on a software project and was trying to build a skyscraper with a hammer. This meant I was going to be stuck writing a lot of code and I didn't ever think I was going to finish. Then I stumbled across several tools that made quick work of the project. Something that I expected to take a week took less than half an hour to complete and I could move on to other tasks.

So as you are working on your computer and seem to be running into a brick wall, remember to check your proverbial toolbox and see if you don't have a better tool to help with your task. If that doesn't work, you can always borrow a brick out of the wall you seem to be running into and smash your computer to bits. While it may not accomplish much, it can be very therapeutic.

Friday, November 6, 2009

Sneakernet

Yesterday I had both of the computers on my desk going at the same time and it was great. One of my computers has two monitors and so I hardly ever run out of screen real-estate making it a rarity that I actually need to use both computers. However yesterday was one of those unique times where I actually needed both machines.

My primary desktop is a Linux machine and is good for about 90% of the work I do. That other 10% is relegated to my MacBook laptop due to software being unavailable for Linux or for when I am traveling. Yesterday I was using Remote Desktop Connection on my Mac to work on a Windows machine located in San Francisco. I was putting together some documentation that required me to take some screen shots and include them in a technical paper. Since I like to do all of my image editing on Linux but word processing on the Mac, it required a lot of transferring of files.

To complicate things, My Mac was using Juniper Networks software to create a virtual private network (VPN) with the office in the Bay Area. Sometimes that means I can't access any of the computers in my home office without turning off the VPN. Since that slows things down a lot, I decided to resort to an tried and true method of networking: sneakernet.

Sneakernet is basically copying files to a removable medium and walking to the computer where you wish to copy that file. When sneakernet first got its name, people used floppy disks to transfer data. Now we use flash drives, CDs, or DVDs. If anyone ever needs to sneakernet data from here to Hawaii, I'm more than willing to be the one carrying the data.

Since my desktop and laptop are within easy reach of eachother, using sneakernet to transfer files didn't involve using my sneakers at all. I could copy from one computer to the other without even getting out of my chair. I transfered files all afternoon and was thinking I had an elegant solution and was rather smug. I didn't quite dislocate my shoulder patting myself on the back, but probably came close.

At the end of the day I decided to try a little experiment. I had been using sneakernet because I though the VPN would make it impossible for my Mac to see my Linux desktop. I thought I would give the network connection a try anyways. I assumed it was going to give me an error and wanted to know what that looked like in case anybody ever asked me, "What does this error mean?" Much to my surprise it actually worked. It turns out that both myself and the office in San Francisco had configured our networks in such a way that computer IP addresses remained unique.

My smugness quickly disappeared and I regretted not making the simple test earlier in the day. Now I know and can put away my sneakernet until the next time it is needed.

Thursday, November 5, 2009

Technical Books

Lately I have been working on a new software project that involves SQL Server Integration Services or SSIS as it is more commonly known. While I have extensive experience using Oracle and PostgreSQL databases, my SQL Server knowledge is somewhat shallow.

Yesterday I decided to make a quick run to the bookstore to see if there was a book or two that I could use to help me with one or two details on SSIS. I drove down and found two books. One was 400 pages and the other was 700. The difference in price was only $5.00 and so I did a quick scan of the index. I'm not sure if the larger book had a more comprehensive index or if it truly contained that much more material, but it seemed to be the better purchase. I was then back home with the entire roundtrip taking less than 30 minutes.

I got home and used the index to find the component of SSIS that I was working with and eagerly read. The book was a disappointment. It had no more information that I could figure out on my own by looking at the computer screen. There were no tips or tricks on how to get the tool to do more than what I was already doing. I was sad.

I used to love going to the bookstore and pick up technical books. In my office, I have three floor-to-ceiling bookshelves filled with computer-related books. Some I have even chapters chapters or been the technical editor. One I even wrote myself that was published by SAMS.

Yesterday was my first time back at the bookstore in quite a while and my experience with the SSIS book helped me understand why. Now that the Internet and World Wide Web have grown in size, it is generally where I go when I want to learn something new. With a few quick searches at Google or Bing, I can almost always find out what I need to know. When I couldn't find what I was looking for in the SSIS book, I did a quick search and found an example of what I was trying to accomplish.

Books are still a great place to get technical information. They are easy to carry and don't require an Internet connection to read. However, I think it is tough to compete with automated searches and up-to-date web sites. I still have my receipt so I think I will see if I can't get my money back on this SSIS book.

Wednesday, November 4, 2009

If Engineers Ran the World

I often joke with my wife about writing a book with a title along the lines of "What if Engineers Ran the World." Unlike politicians, engineers look at problems and try to come up with the most elegant solution without regard to emotion or who will be offended. We recognize the complexities of certain situations but also understand when some arguments can be ignored.

Unfortunately this straightforwardness makes it impossible for engineers to get elected to any major public office. When a constituent asks about a special project the benefits a minor segment of the population, the what-a-waste-of-time-and-money answer alienates more than just the person posing the question. Then there is that whole pocket-protector and nerdy glasses image that doesn't help either.

One example engineers and politicians using different approaches is healthcare. I think everyone can agree that healthcare has gotten incredibly expensive and something needs to be done. Politicians feel that by spreading out the costs of healthcare, it will lessen the impact for those that are truly sick. An engineer looks at the problem and wonders why healthcare costs are so high to begin with. Maybe we should attack those problems such as the spiraling cost of malpractice insurance and significant tort reform. Besides, if someone is going to streamline our healthcare system, I don't think it is going to be the government. "Federal Government" and "efficient" are generally never heard in the same sentence without the word "not."

Another example is the economy. Politicians seem to think that deficit government spending was what rescued us from the Great Depression. What they don't realize was that money went to infrastructure programs that helped ignite the economy and build our country into what it is today. An engineer would look to emulate this spark for the economy instead of paying overinflated bonuses to bankers, airline executives, and automobile manufacturers that have already proven they are incompetent.

Yesterday was election day and I exercised my right to vote. I used it to give my current city council the proverbial finger. You see, my property taxes increased 70% this year to help cover the budget shortfall due to a down economy. Judging from the election results, I wasn't the only one upset by the tax increase. Now if we could only get more engineers to run for public office.

Tuesday, November 3, 2009

Professional Computer Problems

This morning I met with a major computer company with an online service that anyone can use to back up their home computer. My meeting took a back seat to a problem they were having. It seems that one of their servers was experiencing a hardware problem. It was a non-critical system but had a ripple effect on the rest of the service. It got me thinking about what happens when even the professionals have problems.

Previously I wrote about how I don't trust computers to help me keep my daily journal. However you can't always print everything and so you have to rely on some way of keeping your computer data safe.

There are many different options. You could back it up to CD or DVD disks. However I have used them in the past only to try to retrieve data and discover that the files were corrupted and the important information was lost.

You could use one of those flash drives that are becoming more popular at the same time they are increasing in size. So far I have yet to lose any data on one of those. However there is always a first time and I am sure they have a finite shelf life.

Then there are the online services like the one I was visiting this morning. However they are not imune from problems either. While they provide money-back guarantees, can you really put a price on your family vacation photos?

I still maintain that paper is the best way to go. If that isn't possible, then might I suggest a multi-prong approach. The online services really are fairly reliable and so would definitely try to incorporate one into your backup strategy. I would just be sure to include another medium as well. Then hope you never have to use it.

Monday, November 2, 2009

A Tale of Two iPods

A little while ago I had a very good contact at Apple Computer. He was my counterpart while I was working for one of their software partners and was a very nice guy. Every time I would visit him, he would take me to the employee store and tell me I could get anything I wanted using his significant discount. Most of the time I didn't want to impose upon his generosity and so I left empty handed. However once I felt it would be good for company relations if I made a token purchase. I decided on a top-of-the-line iPod.

I had always wanted an iPod even though I had an MP3 player. I opened the box on the flight home and inspected my new toy. It was really quite the bargain but still wasn't in the family budget. I couldn't expense it even though I only purchased the gadget as a goodwill gesture between Apple and my company at the time. I decided that the best tactic was to tell my wife I got it for her. If she didn't want it, then I had a new toy.

Little did I know that my wife had wanted a new iPod as well and was happy with the gift. She put her music on the device and left me the task of making it fit in the family budget. With a little creativity, things worked out and I didn't have to sell one of the children.

Then my wife got a new Samsung mobile phone that doubled as an MP3 player. She thought this would be great because she could put all her music on her phone for those jogs with the dog. My oldest son saw this as an opportunity to get a free iPod. As soon as my wife started using her phone, he promptly wiped out my wife's music and loaded it up with his own. I had my iPhone at this point and my son knew I wouldn't try to take it.

Unfortunately the Samsung phone isn't nearly as convenient as an iPod. My wife would buy songs from iTunes but not be able to convert them to MP3 files so she could load them on her phone. After several months, she had had enough and wanted her iPod back. Naturally my son felt victimized because he was loosing his music player. He resisted and resisted but finally decided that there were too many privileges he enjoys and doesn't want any of them revoked.

My son has the same phone as my wife and decided he would try to use that. Unfortunately the iPod has a 60 GB capacity while his phone only holds 1. His PSP can also play music and it has 4 GB of memory. Since he only has about 3 and a half gigs of music, the PSP would actually work for him. The only problem is that his battery is old and lasts about 10 minutes before dying. So he started looking at getting new battery for the PSP.

Saturday I get a call from my son who was at the local Kmart. "Dad," he said, "Kmart has the best prices on PSP batteries but it is still $30." I suggested that he look at the price for a new memory card for his phone. It might be cheaper. A half hour later he walks in the door and shows me his new memory card. Not only was it 4 GB, but it also came with a mini USB adapter so he can plug it directly into any computer's USB port to load it up with songs. It was half as expensive as the battery and so my son was happy.

As for that little problem about not being able to play songs purchased on iTunes, my son figured out a way around that. It involves creating a CD with purchased songs for use in a regular CD player and then converting the songs to MP3s. Leave it to a teenage kid to figure out how to make everything work.