« May 2004 | Main | July 2004 »

June 29, 2004

New netgear wireless hub.

Neat new product from netgear.

From designtechnica:

Netgear, Inc. today announced the launch of the breakthrough WGR101 54 Mbps Wireless Travel Router, a pocket-size 802.11g router to enable wireless access during travel. In addition to delivering up to 54 Mbps wireless Internet access when linked to an existing wired Ethernet connection, such as found in a hotel room or conference room, the WGR101 also provides the added security of a “double firewall” along with routing functionality, and can be used in both single and multi-user environments. Capable of providing up to five times the data throughput speed and twice the range of 802.11b wireless networking solutions, the small, attractive WGR101 has an internal antenna that eliminates the concern of breakage during packing or transport. A convenient carrying case is also included, enabling users to easily pack and carry the router and other essential accessories when they travel.

Top 20 Antioxidant foods

Their Top 20:

1. Small red beans (dried).
2. Wild blueberries.
3. Red Kidney beans.
4. Pinto beans.
5. Blueberries (cultivated).
6. Cranberries.
7. Artichokes (cooked).
8. Blackberries.
9. Prunes.
10. Raspberries.
11. Strawberries.
12. Red Delicious apples.
13. Granny Smith apples.
14. Pecans.
15. Sweet cherries.
16. Black plums.
17. Russet potatoes (cooked).
18. Black beans (dried).
19. Plums.
20. Gala apples.

Berries, Beans Top 'Best Antioxidants List'

By E.J. Mundell
HealthDay Reporter

MONDAY, June 28 (HealthDayNews) -- A variety of veggies, fruits and nuts battled it out this month for the top spot on a new list of the 20 most antioxidant-rich foods, ranked by nutrition scientists at the U.S. Department of Agriculture (news - web sites) (USDA).


In the end, small red beans won the day, narrowly beating out wild blueberries as the food with the highest concentration of disease-fighting compounds per serving.

Antioxidants fight damage to cells from rogue molecules called "free radicals." Experts believe this assault on cells may fuel killer diseases such as heart disease and cancer, and even aging itself.

The new Top 20 list, published in the June issue of the Journal of Agricultural and Food Chemistry, "is a relative ranking of the capacity of foods to interfere with or prevent oxidative processes and to scavenge free radicals," explained list co-creator Ronald L. Prior, a USDA nutritionist and research chemist based in Little Rock, Ark.

Prior and his colleagues used the most advanced technologies available to tabulate antioxidant levels in more than 100 different types of fruits, vegetables, berries, nuts and spices.

Their Top 20:

1. Small red beans (dried).
2. Wild blueberries.
3. Red Kidney beans.
4. Pinto beans.
5. Blueberries (cultivated).
6. Cranberries.
7. Artichokes (cooked).
8. Blackberries.
9. Prunes.
10. Raspberries.
11. Strawberries.
12. Red Delicious apples.
13. Granny Smith apples.
14. Pecans.
15. Sweet cherries.
16. Black plums.
17. Russet potatoes (cooked).
18. Black beans (dried).
19. Plums.
20. Gala apples.

There's "still a lot we haven't learned" about why some foods are richer in antioxidants than others, Prior said. Even though the small red bean came out on top, "we don't have a lot of information on beans," he added.

Berries are better understood. "The components that contribute a lot of the antioxidant activity are what are called anthocyanins, the compounds that give many berries their dark blue color," he said.

In fact, color may be key to spotting foods that fight free radicals, said Roberta Anding, an American Dietetic Association spokeswoman and a nutritionist at Texas Children's Hospital in Houston.

"If you're looking for the best places to get antioxidants, I will usually tell folks to look at the colors of the rainbow," she added.

For example, "you'll find lutein with some of the yellow pigments found in corn; orange can be the pigments from the carotenoid family that are found in cantaloupe, butternut squash and mango; red could come from things like lycopene, found in tomatoes and watermelon. And then the darker colors -- the purples, blues, in berries," she said.

But Prior cautioned that just because a food has proven to be antioxidant-rich in the USDA's lab, that doesn't mean all those nutrients will be successfully absorbed by the human digestive tract.

"As we learn more and more, we're finding that, depending on the chemical makeup of antioxidants in different foods, some of them aren't apparently absorbed as well, or else they are metabolized in a form where they are no longer antioxidants," he said.

Whether a food is eaten fresh, frozen, processed or cooked can also affect its antioxidant potency -- for good or ill, he said. Blueberries are best when eaten fresh rather than cooked in a pie, for example. On the other hand, research has shown that gentle cooking raises the antioxidant power of tomatoes, he noted.

Although experts are working hard on the project, ongoing efforts to come up with daily dietary guidelines for antioxidant consumption will be "a long process," Prior said.

"How antioxidants behave, how they act within the body, the dose-response -- we just don't know enough about it," he said.

For her part, Anding said people shouldn't get too hung up on gorging on one particular food, but "cast your net widely," eating generous daily servings of a variety of fruits, vegetables and other wholesome foods.

Looking over the USDA's list, Anding suggested creating what she called an antioxidant "power salad."

First, she said, "put together a salad with a variety of mixed greens. Then I'd throw in some dried cranberries or blueberries from the health food store, toss in a few nuts, with a low-fat salad. Again -- choosing from the colors of the rainbow."

More information

Check out the U.S. Centers for Disease Control and Prevention (news - web sites) for its Color Your Way to 5 A Day antioxidant-rich diet plan.

June 28, 2004

Naming conventions for RedHat Kernels

From otn.oracle.com of all places:

Upgrading from Red Hat Enterprise Linux 2.1 AS
To Red Hat Enterprise Linux 3

Author: Wim Coekaerts, Director of Linux Engineering
Date: January 2004

Numerous customers have started migrating from Red Hat Enterprise Linux 2.1 Advanced Server (RHAS2.1) to Red Hat Enterprise Linux 3 (RHEL3) or are deploying some new servers onto RHEL3 and have had several questions. Some of the known features have either changed behavior a little or have changed in naming or implementation. I will try to explain some of the more commonly used features of RHAS2.1 and how to make use of them in RHEL3.

In this technical note, I focus on the use of the Oracle VLM option to create a large database buffercache and on the use of hugetlb.

New Kernel Naming

RHAS2.1 for ia32
2.4.9-e.25—Uniprocessor kernel
2.4.9-e.25-smp—SMP kernel capable of handling up to 4GB of physical memory
2.4.9-e.25—enterprise-SMP kernel capable of handling up to about 16GB of physical memory

The userspace has access to about 3GB of the userspace segment; the kernel part lives in the other 1GB (4GB address space on 32-bit systems).

The default SGA can be up to 1.7GB (shared pool and buffercache). It is possible to create a larger SGA of up to 2.7GB, by using MAPPED_BASE and relinking the Oracle executable with a lower attach address.

RHEL3 for ia32
2.4.21-4.EL—Uniprocessor kernel
2.4.21-4.ELsmp—SMP kernel capable of handling up to 16GB of physical memory
2.4.21-4.ELhugemem—SMP kernel capable of handling beyond 16GB, up to 64GB

The other difference with the hugemem kernel is that the kernel and userspace address spaces are split 4GB/4GB, meaning that with the hugemem kernel, a userspace program has access to its 4GB.

With the smp kernel, the default SGA size is the same as in RHAS2.1. However, using the hugemem kernel allows you to create an SGA of up to 3.6GB without having to use the VLM option.

bigpages vs. hugetlb

A typical big server deployment in RHAS2.1 would use bigpages as a bootup parameter to preallocate a large chunk of memory to be used solely for shared memory. These pages have a 2MB or 4MB TLB entry that reduces the number of TLB misses and hence increases performance by a few percent.

The other advantage of using bigpages in RHAS2.1 was that it allowed the kernel VM not to worry too much about bookkeeping for that part of virtual memory. And these pages are not pageable or swappable, so one can guarantee that the Oracle SGA remains in main physical memory.

Enterprise Linux 3 has replaced bigpages with a feature called hugetlb, a backport of what is also in Linux kernel 2.6. There are a few differences in how hugetlb works. Hugetlb behavior is similar to that of bigpages; the pages are backed by large TLB entries, are not pageable, and are preallocated, which means that once you allocate x megabytes of hugetlb pages, that amount of physical memory can be used only through hugetlbfs or shm allocated with SHM_HUGETLB.

RHEL3 no longer requires a bootup parameter; it is dynamically adjustable. After the system has booted, you can echo a value to /proc/sys/vm/hugetlb_pool or you can put the value you want in /etc/sysctl.conf. The value is in megabytes, and it allocates several 2MB pages. You can see the values in /proc/meminfo:

Hugepages_Total: 500
Hugepages_Free: 500
Hugepagesize: 2048K

Note, however, that the kernel needs to find 2MB contiguous physical pages for allocating the hugetlb pool. It does its best to get as many pages as possible, but if there is a lot of fragmentation due to existing binaries running, the pool allocation will probably fail.

A program that wants to allocate shared memory has to add a flag, SHM_HUGETLB, to the shmget() flags. (Oracle Database 10g will do this by default; for Oracle9i Database, a patch is required.) This approach ensures that the Oracle shared memory segments will be allocated out of this pool.

VLM Option

For RHEL3 to use the VLM option to create a very large buffercache, you have two options:

* Use shmfs much as you would in RHAS2.1: mount a shmfs with a certain size to /dev/shm, and set the correct permissions. Keep in mind that in RHEL3, shmfs allocate memory is pageable.

* Use ramfs: ramfs is similar to shmfs, except that pages are not pageable/swappable. This approach provides the commonly desired effect. Ramfs is created by mount -t ramfs ramfs /dev/shm (unmount /dev/shm first). The only difference here is that the ramfs pages are not backed by big pages.

The parameter use_indirect_data_buffers=true remains the same; the settings on the Oracle side should not have to change.

June 21, 2004

Suse 9.1 mirrors and RH Transition service

Suse 9.1 mirrors
Red Hat transition patches for 7.X - 9.X

June 19, 2004

Etowah day out

HPIM0098.jpg
We had a nice picnic on the Etowah river. This is one of the pictures I took. I liked wathcing the gras sway in the river as the kids splashed in the chilly water.

We had to take Opa to the airport later in the day. We didn't want him to go. It has been a nice week. It is always bittersweet when family comes to visit. You always have a great time, but by the end it just underscores the separation. Sometimes it is easier to harden your heart and move on. I don't think it is the right thing to do, but it is the easy path. Love is always harder.

Sunflower Summer Days

HPIM0041.jpg

A volunteer from the bird feeder. It just says Summer to me. My daughter loves it. She keeps wanting to pick it though. I hope it makes it to seed.

From Clark Howard: Control your

From Clark Howard:

Control your credit card use
We have set a new record when it comes to our use of credit cards. Currently, we have the largest delinquency rates in the history of the credit card business, and the largest amount of personal debt. If you cant make your credit card payments, it goes without saying that you need to get back on top of it. If youre not in trouble, but the danger signals are there, Clark has some tips for you. First of all, running balances is okay but its not financially healthy. Many of these balances are all about your lifestyle. So, if youre just able to make the minimum payment, you need to stop using the card. Clark has learned that asking people to cut up their cards doesnt work. But putting them away preferably in a freezer bag with water will stop you from using them. Its the ease of pulling out the plastic that kills us. And, the key to making bigger and bigger payments is to put yourself on a schedule. Come up with an amount of cash that you will hold onto until the next payday. Its not enough to talk about the problem. Youve got to come up with a solution. Take a brown bag to work. Avoid that expensive cup of coffee every day. People can get by on so much less; they just havent tried it yet. And, its important to start good money management early. According to Newsday, only one in four percent of parents ever discuss money with their children. There is a real disconnect here. Parents lead by example, so your kids will pick up on what you do not what you say.

June 16, 2004

More on enscript

We can control the margins with enscript as well.

enscript --no-header --fontFont --margin=7:7:21:21 --word-wrap

--fontFont is the name and size of the font to use. By default, GNU enscript uses 12 point Courier to format the file. You specify the font name and size like this: Courier10 (10 point Courier). GNU enscript can use any Postscript font on your system, but it's usually safe to stick with the following ones: Helvetica, Times-Roman, and Courier.

--margins=left:right:top:bottom
Adjust page marginals to be exact left, right, top and bottom PostScript points. Any of arguments can be left empty in which case the default value is used.

The man page enscript(1) has details on these and other options.

Changing font in cups with enscript

Because of changes to the texttops filter the Courier font is hardcoded for any mime type that uses that filter.

/etc/cups/mime.convs contains the following lines that show the mime types using this filter:
application/x-cshell application/postscript 33 texttops
application/x-perl application/postscript 33 texttops
application/x-shell application/postscript 33 texttops
text/plain application/postscript 33 texttops
text/html application/postscript 33 texttops

Create a file called "difffont" in /usr/lib/cups/filters and put this text in it:

#!/bin/sh
/usr/bin/enscript -B -f Courier-Bold10 $6

Make the script executable, and make sure it is owned by root. Replace Courier-Bold10 with the font you want to use. A list of available fonts is found in /usr/share/enscript/font.map

To print font.map in 14 point Palatino-Bold with no header lines:

enscript -B -f Palatino-Bold14 font.map

Then edit /etc/cups/mime.convs and replace "texttops" with "difffont" on the lines refering to the mime types you want to replace the texttopts filter.

Intro to lpoptions

http://www.cs.brown.edu/system/printing.html is a good starting place to using the cups command lpoptions.

You can set these values in ~/.lpoptions - for user defaults and instances created by non-root users or /etc/cups/lpoptions sets system-wide defaults.

For Example, In the file place the line :
cpi=12 lpi=7

You will have to experiment with the values of course.

June 15, 2004

Tax advantages of maxing out 401(k) may be too good to pass up

From csmonitor.com

Q: Since 401(k) withdrawals are taxed as regular income, is it better to only contribute enough to get the company match instead of maxing out contributions? You could invest the money after taxes in stocks, where dividends and capital gains are taxed at a lower rate.
- G.R., via e-mail

A: Roger Gorham, a certified financial planner in Hillsborough, N.J., says that it's generally a good idea to maximize 401(k) contributions.

Because a 401(k) contribution is not subject to ordinary income taxes immediately, you have more money to invest, he says. For example, Mr. Gorham says if a $1,000 contribution generates a $100 gain (assuming a 10 percent return), the 401(k) would hold $1,100 after one year. Assuming you retire next year in the 28 percent tax bracket and withdraw the money, you would pay $308 in income taxes, leaving you with $792.

If that $1,000 was not put into a 401(k) and immediately taxed at 28 percent, the initial investment would only be $720. A 10 percent capital gain over one year yields $72, and subjects you to $11 in capital gains taxes (at 15 percent), leaving you with $781, or $11 less than if that money was put in the 401(k).

Gorham says you might not maximize your contribution if you expect your ordinary tax rate to be higher at retirement than it is now.

Changing fonts in cups with enscript

Because of changes to the texttops filter the Courier font is hardcoded for any mime type that uses that filter.

/etc/cups/mime.convs contains the following lines that show the mime types using this filter:
application/x-cshell application/postscript 33 texttops
application/x-perl application/postscript 33 texttops
application/x-shell application/postscript 33 texttops
text/plain application/postscript 33 texttops
text/html application/postscript 33 texttops

Create a file called "difffont" in /usr/lib/cups/filters and put this text in it:

#!/bin/sh
/usr/bin/enscript -B -f Courier-Bold10 $6

Make the script executable, and that it is owned by root. Replace Courier-Bold10 with the font you want to use. A list of available fonts is found in /usr/share/enscript/font.map

To print font.map in 14 point Palatino-Bold with no header lines:

enscript -B -f Palatino-Bold14 font.map

Then edit /etc/cups/mime.conv and replace "texttops" with "difffont" on the lines refering to the mime types you want to replace the texttopts filter.

Holy cow

Who knew This is a some what explicit picture, but the offending articles are almost 100 years old and in a jar. Poor Rasputin.

Alternative to disabling ACPI

Instead of completely disabling ACPI at boot time (with acpi=off), I only disable ACPI for PCI : the kernel boot parameter I use is pci=noacpi .

June 13, 2004

The wisdom of the Iron Lady

From this weeks Time Magazine:

An examination of the guest book from Blair House, where Nancy stayed last week, showed that Thatcher's touch for brevity and devotion was still intact, though she did not have the strength to talk in the cathedral and had them play her recorded speech. "To Ronnie," she wrote. "Well done, thou good and faithful servant."

Crop rotation makes me dizzy.

I need to get two more beds going so I can start a proper crop rotation going. Especially since I am growing tomatoes and peppers. I have two beds going now. I figure that two more and I can rotate a crop through a bed a year. I use a combination of raised beds placed on 6 inch depressions I dug out. Digging out is the worst. We have very hard red clay.

A Hummus Recipe

Hummus
Prep Time: approx. 10 Minutes. Ready in: approx. 10
Minutes. Tastes much better if it is refrigerated over night.
Makes 2 cups (16 servings).
Printed from Allrecipes, Submitted by Rhoda McIntosh

--------------------------------------------------------------------------------

2 cups canned garbanzo beans, drained
1/3 cup tahini
1/4 cup lemon juice
1 teaspoon salt
2 cloves garlic, halved
1 tablespoon olive oil
1 pinch paprika
1 teaspoon minced fresh parsley


Directions
1 Place the garbanzo beans, tahini, lemon juice, salt and
garlic in a blender or food processor. Blend until smooth.
Transfer mixture to a serving bowl.
2 Drizzle olive oil over the garbanzo bean mixture.
Sprinkle with paprika and parsley.

More rpm tips

To list the contents of an rpm package file you would run:
rpm -ql -p afile.rpm

The -p or --package tells rpm to look in afile.rpm rather than looking in the installed rpm database.
Adding the -p works for other query options as well.

Example:

# rpm -qlp cdrecord-ProDVD-2.01a27-1.i386.rpm
/usr/lib/xcdroast-0.98/bin/cdrecord-prodvd-2.01a27-i686-pc-linux-gnu
/usr/lib/xcdroast-0.98/bin/cdrecord-wrapper.sh
/usr/lib/xcdroast-0.98/bin/cdrecord.prodvd
/usr/lib/xcdroast-0.98/bin/prodvd
/usr/local/bin/cdrecord-ProDVD
/usr/local/bin/cdrecord-wrapper.sh
/usr/local/bin/prodvd
/usr/share/doc/cdrecord-ProDVD-2.01a27
/usr/share/doc/cdrecord-ProDVD-2.01a27/README.cdrecord-ProDVD.txt
/usr/share/doc/cdrecord-ProDVD-2.01a27/README.xcdroast-ProDVD.txt

A buyers market for elastic?

From Clark Howard:

Weight related deaths soon our No. 1 killer

Americans are getting bigger and bigger and soon issues involving weight will be the No. 1 cause of death in the United States. Weight-related deaths will surpass smoking-related deaths, which accounts for a huge percentage of the mortality rate today. Part of the reason is the amount of food were eating in each sitting. Portion sizes are 200 to 500 percent larger than they were in the Eisenhower era, so people are seriously overeating. One way to reduce the amount you eat is to share entrees. Even if a restaurant has a plate charge, you can split your meal and still save money. Its been proven that people will eat whatever is in front of them and they will finish it, regardless of the size. The other key is exercise. Walking briskly a few times a week for 30 to 45 minutes will keep the weight off. Its not that difficult to take 30 minutes out of your day and walk around the block. It could save your life.

Atm Scams

From Clark Howard

ATM scams you need to know about
Criminals are skimming money from you in several ways when you use ATMS these days. First of all, independent ATMS that you see in convenience stores are very dangerous because the banking industry has no pre-cautions set in place on these machines. Criminals install these machines and, over several months, they capture information of the people who get money out of the machines. They also install these card skimmers in regular ATM machines. They capture the information using fake card readers and then with the information they steal all of your money. The third way they steal your money is to install cameras in the racks next to the ATM machine. The cameras capture your hand motions and then the criminals can read your secret code and empty your checking account. Even worse, when this happens banks shrug their shoulders and say there is nothing they can do. Thats why its so important to keep track of your checking account. Read your statements each month, and if something looks unusual you must bring it up with your bank immediately. Banks have a 10-day window to conduct an investigation and at least give you a temporary credit for your money.

Tivo alternatives

From Clark Howard:

A cheaper alternative to Tivo
Personal video recorders such as Tivo and Replay TV have reached almost cult-like status these days. These services are expensive,
though. Usually, people have to buy the device, pay a licensing fee of about $250 and pay a monthly charge to get the service. But companies
are coming up with less costly alternatives that function just like Tivo using your home computer. Basically, you buy software and install
it on your home computer, which becomes the brains of the operation. You can then buy adapters to hook up to your TV and youre good to go.
One of the products is called Beyond TV3 and it costs $80. You can try it for a few weeks for free, and then buy it if you like it. It
includes all of the functions of Tivo, plus a skip commercial feature. Clark is going to try out one of these services and let you know how
it goes.

I have also seen the MediaMVP talked about recently. This is not really a direct competetor for the Tivo, but it is interesting.

MediaMVP Features:

  • Access digital music, videos or pictures from your TV set, over your home network.

  • Uses 10Mbit or 100Mbit Ethernet, for the best network performance with any type of digital media. Plays DVD quality videos on your TV set over an Ethernet LAN!

  • Composite and S-Video outputs for the best video quality on TV sets, plus stereo audio output to TV sets or home theater systems.

  • Watch digital camera pictures (JPEG or GIF) on your TV set. Play slide shows with music, too!

  • Plays MP3 music, either individual titles, all the music titles in a directory or M3U, B4S, PLS and ASX playlists.

  • Plays MEPG-1 and MPEG-2 recordings made with the Hauppauge WinTV-PVR's. Will also play most other MPEG-1/2 standard video files. With MediaMVP’s remote control, you can pause, rewind and fast forward through your recorded videos.

  • Remote control for easy access to your PC media from your TV set. MediaMVPs remote control allows you to navigate through your PCs disk drives, and displays media names, directories and other information on the TV set. MediaMVPs remote also can control the audio volume and mute of videos and music being played.

June 01, 2004

Cool tool of the day - pdftk

pdftk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to:

* Merge PDF Documents
* Split PDF Pages into a New Document
* Decrypt Input as Necessary (Password Required)
* Encrypt Output as Desired
* Burst a PDF Document into Single Pages
* Report on PDF Metrics, including Metadata and Bookmarks
* Uncompress and Re-Compress Page Streams
* Repair Corrupted PDF (Where Possible)

There is also a GUI available for it.