Letters
Letters
Satisfaction
After having used the internal-built G technologies with my Acer Aspire
3690, I must say with great satisfaction that the Dynex Draft N card is a
solid performer. Having used Ubuntu for two years, I'm glad to see that
wireless speeds are surpassing those of Windows. Where I live, everyone is
wired into Windows, and as an Ubuntu fan for two years, it's amazing to have
my laptop running faster than most Windows machines—as well as without the crashes
all too common with Vista, my 250GB hard drive automatically working,
my 2GB of RAM not conflicting with the system, and my Draft N card
pulling its weight. Ubuntu, by far, is one of my favorite operating
systems. I'm praying that sooner or later, all laptops and PCs are given
the options to have either Windows or Linux as their primary OS.
—
Joseph Ziehm
It's Happening
I'm behind in my reading and just finished “Linux for the Long
Haul” by Michael Surran [LJ, August 2008], about
the Houlton Christian Academy's migration from Windows.
Like most businesses using Linux, “GHCA has a single Windows machine in our
office for the sole purpose of running Intuit's QuickBooks”. Intuit has
finally begun to realize that its future is not on the Windows desktop. A
version QuickBooks Online that is compatible with Firefox (and other non-IE
browsers) is in the works. Now, if we can just get Photoshop....
—
Joe Holt
Liked That Tech Tip
I really liked the Tech Tip on page 56 of the December 2008 issue. Being a bit of a bug for efficiency, I will mention one possible improvement. However, it may work only with the Bash shell. I am not very familiar with the other shells. I do this sort of thing because Ben Franklin once said: “A cycle saved is a cycle earned!” Or something like that. I've worked on some really slow machines in my day.
The line:
F=$(echo $F| perl -pe 's/.gz$//')
could be replaced with the line:
F=${1%.gz}
which allows the line:
F=$1
to be eliminated entirely.
And, just because I like to be different, I think that the line:
nice gunzip -c $F
would “look better” if gunzip were replaced with zcat. I think that zcat is simply more “intuitive” than gunzip -c:
nice zcat "$F"
Also notice that I enclosed $F in double quotes just in case there might be one or more blanks in the filename, which would make the unquoted $F look like multiple arguments to the zcat.
Oh, and just as a question, would sed be more efficient than perl here:
F=$(echo "$F"|sed 's/.gz$//')
Just curious on this last one.
Again, many thanks for the tip.
—
John McKown
Really, Really Liked That Tip
I really did like that tip [see letter above]. Using the idea in it, I created the following two functions that I now sourced by my Bash profile:
function do_cat()
{
local CAT
case "$1" in
*.gz) CAT=zcat;;
*.bz2) CAT=bzcat;;
*) CAT=cat;;
esac
$(${CAT} "$1")
)
function smart_cat()
{
local i
for i in "$@"; do
do_cat "$i"
done
}
Very thought-provoking tip! Of course, the do_cat function can be
extended to handle other cat-like commands simply by including more
entries in the case portion of the do_cat() function. I guess I could
have created only a single function of smart_cat(), but I like the
separation of using two functions.
—
John McKown
Correction
In the December 2008 issue of Linux Journal, the
“Going MoBile” interview
said that Linux Journal's mobile site, m.linuxjournal.com, ran on
Linux-based MoFuse. Instead, it runs on Drupal (as does our main site),
using a theme optimized for mobile devices.
—
Doc Searls
Photo of the Month
Have a photo you'd like to share with LJ readers? Send your submission to publisher@linuxjournal.com. If we run yours in the magazine, we'll send you a free T-shirt.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Dynamic DNS—an Object Lesson in Problem Solving
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Roll your own dynamic dns
15 min 47 sec ago - Please correct the URL for Salt Stack's web site
3 hours 27 min ago - Android is Linux -- why no better inter-operation
5 hours 42 min ago - Connecting Android device to desktop Linux via USB
6 hours 11 min ago - Find new cell phone and tablet pc
7 hours 9 min ago - Epistle
8 hours 38 min ago - Automatically updating Guest Additions
9 hours 46 min ago - I like your topic on android
10 hours 33 min ago - This is the easiest tutorial
17 hours 8 min ago - Ahh, the Koolaid.
22 hours 47 min ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?





Comments
thanks a lot for the tip
thanks a lot for the tip with do_cat() , just what I needed in my code