How To

Get smart about money in 135 minutes

Two easy steps are involved with this:

  1. Take 90 minutes to watch Dave Ramsey’s video entitled “Dumping Debt“. It was posted to YouTube in 10-minute segments. Here they are: Part 1Part 2Part 3Part 4Part 5Part 6Part 7Part 8Part 9. This was possibly posted without Mr. Ramsey’s permission, so please consider purchasing the DVD from his web store. (via Get Rich Slowly)
  2. Take 45 minutes to watch Paul Grignon’s video entitled “Money as Debt” on Google Video. Trust me on this. You will be shocked. You will have your eyes opened, and then you’ll realize what makes the world go ’round. (Cristina, thanks for pointing this out to me!)

Since both of these resources were posted online at full length, and I’m not sure if they were posted with or without their authors’ permissions, you’d be smart to watch them now, while they’re still available. I do not endorse use of copyrighted materials without permission — and to be fair, I don’t know that’s the case here — but I did want to share this information with you. If the videos should become unavailable for some reason, then please consider purchasing them. They are worth your time and money.

Standard
How To

Automatic redirect from HTTP to HTTPS

IIS (Internet Information Server) doesn’t have a way to automatically redirect HTTP traffic to HTTPS if SSL encryption is enabled for a site. So if you’ve got a site that users are supposed to access by typing in https://www.example.com, but they type in http://www.example.com or http://www.example.com or just example.com, they’re going to get a pretty ugly error message that looks like this:

What can you do? Well, there are two ways of going about it, and both of them are hacks, but they do the job just fine. I prefer method 2 myself.

Method 1:

Make sure the original site (the one with SSL encryption) is listening only on port 443 for the IP address you’ve assigned to it. Now create a separate site using that same IP address, and make sure it only listens on port 80. Create a single file at the root level and call it default.htm or default.asp. If you want to use HTML, then use a meta refresh tag. If you want to use ASP, use a redirect. I’ll give you examples for both below.

<meta http-equiv="Refresh" content="0;URL=https://www.example.com" /> 

or

<% Response.Redirect("https://www.example.com") %>

Don’t forget to enclose each line in its proper brackets. This method works great, but it has one shortcoming. If the site visitor chooses to go to http://www.example.com/somepage.htm, they’re going to get forwarded to the root-level of the HTTPS site, because that’s the nature of the script. It doesn’t differentiate between the page addresses. So you may ask yourself, isn’t there some other way of doing this? Yes, there is.

Method 2:

This method doesn’t require the creation of an additional site. All that you need to do for this is to create an HTML file — I call mine SSLredirect.htm — then point IIS to it using a custom error capture. First, here’s the code that you need to paste in that HTML file:


<script language="JavaScript">
<!-- begin hide

function goElseWhere()
{
var oldURL = window.location.hostname + window.location.pathname;
var newURL = "https://" + oldURL;
window.location = newURL;
}
goElseWhere();

// end hide -->
</script>

Once you’re done editing the file, save it to the root level of your site, or to the root level of IIS (c:\inetpub\wwwroot\). Saving it to that general location lets you use that same file to fix the HTTPS redirection problem for all of the sites you host on a single server.

Now, in IIS 6, right-click on the site in question, go to Properties >> Custom Errors, and double-click on 403;4. Select File for Message Type, then browse for the file you’ve just created and click on OK. In IIS 7, click on your site, then double-click on Custom Errors, locate the Add link in the top right-corner, and add an error for 403;4, as shown in the image below.

IIS 7 Error Configuration

Once you’ve done this, your sites should automatically transfer HTTP traffic to HTTPS when it’s required, and the visitors won’t be forwarded to the root-level of the site. Instead, the URL will be remembered, and the page will simply be re-loaded using the HTTPS protocol. Come to think of it, you could write this in ASP as well, and avoid potential problems caused by browsers that have JavaScript turned off, but this code should work just fine for a lot of people.

Standard
How To

The best tomatoes are homegrown

You can go to Whole Foods, Trader Joe’s, MOM’s, Safeway, Giant, Publix — you name it — and buy the most expensive tomatoes, but they’ll still taste just as flat as the cheapest ones you’ll find. I don’t care if they’re organic, hydroponic, vine-ripened or whatever — they still have no taste.

It’s a fact of life in America. I don’t know what our farmers do to their fruits and vegetables, but nothing tastes good when you buy it from the store. Most stuff tastes like cardboard, and if you’re lucky, it might have a semblance, a sad little ghost of the taste of the real thing. I call it the great American taste theft. It doesn’t matter if the stuff is cheap or expensive, it still tastes like crap. While I expect the cheap stuff to taste like that, I find it offensive and downright thieving to charge $3-7 dollars for a pound of tomatoes that tastes just like the ones that cost $1-2 dollars. If you don’t know what I’m talking about, then you haven’t gotten around much.

Our families have always grown their own vegetables, even when they lived in cities. Now that Ligia and I are on our own, and we’ve only got a terrace, we still grow a few vegetables, mostly tomatoes, every year. Let me tell you that there’s a world of difference between the tomatoes you grow at home and the ones you buy at the store. The ones over there might look better, cosmetically-speaking, but the ones you grow with your own love and care, without pesticides or fertilizers, are the ones that will blow you away every time you taste them. They may have a few blemishes, they may not be as big or pretty as the ones in the store (you know, the ones full of hormones and all sorts of crap that’s not good for you) but when you bite into one, that fragrance and taste explosion you’ll feel is proof of their pedigree.

Homegrown cherry tomatoes

Trust me, there’s no substitute. You don’t know what you’re missing if you don’t try it out. You may lose a few tomatoes to disease, but if you let them fend for themselves, and only feed them water, till the ground once in a while and prune them carefully, you’ll come to find out what I mean.

Homegrown tomatoes
Standard
How To

How to rename a WSS 3.0 server

Say you’ve got a Windows SharePoint Services 3.0 server, and you’ve got to rename it — as in change the actual computer name. I found myself twice in that situation recently. How do you go about renaming it? It’s a three-step process, as outlined below. Plan for a half-hour outage, just to be on the safe side.

Step one:

Change the machine name. I hope no directions are needed for this. If you need them, you should abort the operation, and get someone more qualified to help.

Step two:

This only applies if your server is self-contained (it has IIS, SQL Server and SharePoint installed on the same machine). Change the name of the SQL Server install by following the excellent directions written by Tibor Karaszi. Like him, I prefer to go directly into the sysjobs table and edit the server names. When you’re done, don’t forget to either restart the machine or the SQL Server services.

Step three:

Per MS Tech Support, open the command prompt and type the following:

  • cd c:\program files\common files\microsoft shared\web server extensions\12\bin
  • stsadm -o renameserver -oldservername [type in the name] -newservername [type in the name] (remove the brackets, just type the names by themselves)

Now open the SP Admin interface, go to Operations >> Alternate access mappings and modify the server names to reflect the new name. Modify all appropriate entries there. When you’re done, don’t forget to either restart the machine, or the SharePoint services.

Test the SP sites and make sure things are working as they should be. Remember, if you posted any images on your sites, and you used the machine name instead of the site URL for the image paths, the paths will now be broken, and you’ll need to go through each link and re-map it. MS Support didn’t know of any automated way of doing this. Of course, if you feel adventurous, you can back up the SP DB, then go through the SQL file with a text editor looking for instances of the name and replacing it with the new one. Then you can restore the DB from the modified backup file and see how things turn out. I don’t advise this though. You may mess up the text encoding, and may end up with weird characters in your content, not to mention you could also corrupt the DB.

That’s it, you’re done now. If you’d like to read up on the stsadm command-line tool, you can check out this article at the TechNet site.

Standard
How To

Making it to the first page of Google search results

As I checked my traffic stats over the past few days, I noticed a steady stream of traffic to my reviews of the WD My Book World and Pro Edition II hard drives. I was pleasantly surprised, but couldn’t figure out why. Other than publishing the reviews on my blog, I hadn’t done any sort of promotion. No one had linked to them so far (from what I could tell), yet the traffic was there. It wasn’t an outrageous amount of traffic, but nice, steady and regular. That sort of traffic usually only comes from one source: search engines.

I checked, and sure enough, my two reviews had made it to the first page of Google search results — the dream of any content creator. Here’s a search for WD My Book Pro Edition II, and for WD My Book World Edition II. Not sure how long they’ll stay there, but it’s really nice to see blog content make it to the front page of Google search, and even better, it’s a treat to see my own content make it there. 🙂

I thought I’d check on some other popular content and see how it ranks in Google’s search results. I logged into my FeedBurner account and looked at the most popular pages for the past 30 days. Here are the top ten pages at ComeAcross, in descending order:

In truth, I’m not sure just what it takes to get to the front page at Google. Let’s just say that it involves a fair amount of chance along with the the hard work. I steer clear of dirty SEO tricks like keyword seeding and other such nasty stuff. Also, I haven’t really spent a lot of time optimizing ComeAcross with honest SEO techniques. Other than using WordPress, which has certain built-in SEO advantages, and trying to write good content, I don’t do much to ensure that my posts get good ranks in the search engines. That’s why I find it refreshing to see that content is still king, and as long as one’s design isn’t egregiously awful, you’ll still get indexed just fine and bubble toward the top as more people find your information interesting.

Don’t assume though that I do nothing to promote my work. Remember, I just finished writing about how I promote it using Twitter and Jaiku or other microblogging services yesterday. Here’s part one and part two of that discussion. I also have other tools that I use, though I don’t use them often. I depend on my readers to do that — or rather, I prefer to let my content grow in popularity organically, without “cheating the system”. It’s probably a good idea that I discuss this in more detail in a future post — perhaps next week.

I should also say that I’m not dismissing SEO. It has its value, and if done right, can help push content right to the top. Some people swear by it, and have seen their traffic double. I should probably look into it in more detail at some point in the future. And good web design is crucial. Design may not necessarily matter to search engines (to some extent) but it sure matters to people. If your site’s design is ugly or hard to use, don’t expect many people to read through your content or return to it. By the same token, good web design alone won’t draw the traffic. Good content will do it. Keep that in mind, and thrive.

Standard