I guess this is more a reminder to myself than useful information, but here goes.

Recently, I read up on PHP 5.x header() function. I ran across this tidbit of info.

HTTP/1.1 requires an absolute URI as argument to ยป Location: including the scheme, hostname and absolute path, but some clients accept relative URIs.

I don’t know about you, but I find RFCs incredibly boring, so I’m glad that some insomniac took the time to find this gem.

Following this standard eliminates another problem in a different language. In Perl, many people correctly use CGI.pm to perform redirects. The CGI manual gives the same advice. Use full URLs to redirect.

Here’s a mini guide to redirection: (Basically, you just print the redirect out.)

(more…)

I just got off the phone with the former owner of EAAHosting.com. He has one of those cautionary tales that was really tough. It just dawned on me that I completely forgot to ask his name.

According to his story, EAA Hosting started out small and gained a lot of customers fast. Soon, they were able to get better pricing from the larger server wholesalers, but they kept their CRM on one of the smaller server companies.

Some time last year, fatnetworks.com took down the server which housed their CRM and all their customer contact information. While most of their customers were located on other servers form other more stable providers, they went out of business because they lost all their customer information.

Apparently they could not get fatnetworks to get the server back up and couldn’t get them to recover their lost data.

So, we can learn something form their mistake. Do not use a Customer Relations Manager program which does not come with some type of off-line or remote backup. Do not rely on CP or H-Sphere to manage all your customers unless you can back up the database they use.

Personally, I would never have thought to take this step.

Barak Obama is touting a tax credit for college tuition. I can only hope that this is just a promise and will not come about. I read recently that a politicians job is to make promises. It’s not their job to fulfill their promises, just to make them. Why would I be against a tax credit?

One reason was given in a short interview on my local news station. The speaker said that students could go to bigger schools. In her opinion, the tax credit would allow students to spend more on education, but Obama wanted to help people save money on tuition.

Left only to the market, if the price of education was too high then colleges would have to reduce their prices. The reason we might need a tax credit to help people afford education is if we are already doing something which inhibits this market mechanism.

Instead of offering a tax credit to fix the regulation, why not just repeal that regulation which messes up the market in the first place? Why does “doing something” have to add more laws? Since the market works all by itself, why not make “doing something” mean getting out of the way of the market?

Sometimes it does it subtly and sometimes it does it obviously, but regulation always changes the market place in ways we may not understand. It seems to me that Consumer Law attempts to give power to consumers because some people are convinced that large firms have all the power. But do they?

In a free market every trade is voluntary. There is no legal method to initiate force. Not even government can initiate it. Free market advocates often complain that there is no need for anti-trust or consumer law.

Take, for example, the scenario of a dominant market player (like Intel) using its size to drive other players out of a particular market by lowering its prices so much that they are sometimes selling below cost.
(more…)

I ran across this web site this morning. Here’s a quote from the January 2008 page.

As far as I am concerned if an answer to a question isn’t in the bible, then the you have no business asking the question. A few years ago when my wife suddenly had to get an emergency c-section I was scared. But I didnt turn to any book about quarks. Luckily I had my palm pilot with me, which just happened to have the entire King James bible on it! I read a few passages that gave me the strength to pray for her and the baby to get through this ordeal. I sure didn’t need any useless trivia books about quarks to find comfort in.

I have very little use for science. In fact it is in impediment to getting close to God.

(more…)

The jQuery JavaScript library offers some quick and dirty solutions to many problems. I was perusing a jQuery email list when I ran across a simple problem that a beginner JavaScript coder like me could solve. I’ll simplify it a little here to focus this article.

Basically, the poster wanted to add form fields to a table, but he wanted to increment a field counter in the HTML and in the id and name tags. Just to make it a little more difficult, the field numbers needed to be padded with leading zeros.

Adding the table rows is trivial in jQuery and it turns out that leading zeros are pretty easy too. I like the “everything is an object” approach to JavaScript. You can extend even the built-in objects including the String object. Let’s tackle that first.
(more…)

The U.S. has 4% of the world’s population and consumes 25% of the world’s power.

This time I heard it on the NBC Evening news. The reporter never bothered to ask why the speaker made this comparison. What the Bleep do these two things have in common?

Okay. At first glance this statement seems to hold some substance. What could only 4% of the world’s people be doing that accounts for so much power usage? Hmm. I wonder if production might tell us something?

Gross Domestic Product provides of the best measures to compare countries or populations. According to the International Monetary Fund the 2006 World GDP was $48,245,198,000,000 and the U.S. GDP is $13,194,700,000,000. Isn’t it a coincidence that the U.S. GDP is about 27% of the World GDP and the U.S. power consumption is 25% of world power consumption?

Daniel Botkin was featured on the EconTalk podcast for November 26, 2007. In the interview he says some really neat things about nature.

Most species have evolved and adapted to change and depend on change, so assuming steady state goes against their needs.

He’s referring to more than just climate change. In some forests the vegetation has adapted to fires. When we stop allowing fires to control wilderness, we actually destroy nature. Daniel illustrates that our perception of what nature should be often influences what we do to nature.
(more…)

I ran across this argument in a political thread about libertarians.

… the fact that your lap top just went up in flames and distorted a years work product is of little concern. You will get your check for $1000 to replace the Lap Top. You talk to a lawyer You are told it will cost at least $35,000 and maybe 5 years to make a claim for the work product you lost. a work product might have a worth in the Millions but do you have the time and the money to recover the loss …

In your scenario the idiot consumer placed millions of dollars worth of information on a single device with no backups. Even if the battery was well made, the potential for loss of the information is too great to warrant such a risk. I wouldn’t leave that kind of information on any single device.
(more…)

Perpetual:
1. Continuing forever,
2. Occurring continually. Indefinitely long-continued.

I found this argument on a political forum about energy and oil.

Don’t atoms, the solar system, and the galaxy itself perpetually move?

Yes. They move, but not perpetually. Anything that has a definite end is not perpetual. The motion of an electron, a planet or a star will end eventually. They are not perpetual.
(more…)

« Previous PageNext Page »