history of herbal medicine

just another regularban.info web blog

MEMBERS:

Using Perl To Convert Hyperlinks And Filenames To Lowercase

Like a lot of web developers, I'm not always that disciplined when it comes to the file naming convention I use and I sometimes end up with a situation whereby I have some files that are in lowercase, some that begin with a capital, and some that are a bit of a mixture.

One web site I maintain contains about 2000 web pages and has about 20,000 hyperlinks. As you can imagine, I had one of those sinking feelings when I was told that in order to migrate the web site to a new content management system, all the file names and hyperlinks would need to be changed to lowercase.

Whenever I am presented with a problem like this, my instinct is always to write a Perl script using one or more regular expressions to solve the problem. This particular situation was no exception.

Change a string to lowercase

The following regular expression changes all the characters in a string to lowercase. The first part of the regular expression finds a hyperlink, and the second part converts the string. (Just in case this article is not displayed correctly, there should be a single backslash in front of the 'L$1').

1. $line =~ s/<a href="(.*?)"/<a href="L$1"/gs;

Change a filename to lowercase

Likewise, changing a filename itself is very simple. The following two lines perform the task quite nicely:

1. use File::Copy; 2. move ("$name", "L$name");

(Again, there should be a single backslash in front of the 'L$name'.)

If you need more information on how to incorporate the above code snippets into a complete script, feel free to contact me directly.

About the Author: John Dixon is a freelance web developer working for My Health Questions Matter, a company that helps users of the health service to ask the right questions in their dealings with health professionals.

John is also interested in computer history and maintains a Computer History web site.

Through his own company John Dixon Technology Ltd, John does web development work for various companies.

 


The Successful Ingredients That You Need To Apply When Building A Website

So you decided you wanted to build a website and now you are faced with all this information and you do not know where to start. Everybody online is promising the moon and stars and it's almost impossible to tell which ones are genuine and which ones are not.

A lot of these sales pitches make it sound like you can build a site go to sleep wake up in the morning to thousands in your bank account. So its time to step back from it all and take stock of your position as this will help clear your mind. What are you prepared to do? What are your strengths and weaknesses?

Often times we run off and buy stuff and never think out how we can practically apply it. Remember information is one thing it is the application of information which becomes knowledge and this will provide you with a real experience. A real experience will provide real results. The speed of implementation will bring about these results sooner rather than later.

Where to start? Note down your interests and then visit article directories and forums and see how popular your subjects of interest are. From here you will get keywords and then you want see how often those keywords get searched. Keywords are your sites building blocks. If the building blocks are weak the overall structure will be weak.

Take your time in the research phase as this lays the foundation. Don't be afraid to deviate from your central idea especially if you find that a particular topic under the main subject seems to generate more searches and interest.

In other words be flexible. When it comes to building a site you can use a site builder. Just make sure they can build webpage's that are structurally sound in terms of code and keyword density. Take care of the basics, keep it simple and your odds of success will be vastly increased.

Watch These Free Videos At Site Build It Customer Reviews please allow time for the videos to load.

Learn how to publish a real website That works Site Build It Review. Sign Up for the free affiliates masters course.

http://www.lfdab.com/Site-Build-It-Customer-Reviews.php

 


How To Create A Powerful Website

So you're considering building a website and you may be feeling a little overwhelmed by it all. While this can easily happen it is wise to whip out some note paper and write down exactly what you want to achieve and what steps you need to take in order to get there.

So the first thing you are going to need to do is put the foundation in place. This will require extensive research. Now contrary to popular opinion I start this process a little bit differently than what is generally advised.

Now while we all know that you need to find a hungry market doing this can be a little more difficult than explained in actual fact that is just like everything else when it comes to doing anything online.

Actuality can be quite different from theory. So what I do is visit the article directories. I punch in a keyword that I am interested in and see what articles come up relative to that. Then I check the articles out to see how many page views they have received over a given period of time.

If an article receives a lot of page views then I know that there are a number of people looking for information relative to this subject. I also know that if I write an article on this topic that it will receive a lot of page views and as a result get a lot of click throughs to my site which will help me get traffic quickly without having to worry about what Google and everyone else does.

Next I visit the forums to see what solutions are being discussed then I go back to the articles and check what the writers are promoting and see if it is a valid good product to help people achieve the goals they desire. If so then I make note of it. Now I feel a little more confident about building a site around this theme.

The next thing you have to consider is the domain. A keyword in the domain is helpful but not essential. Your next quest is hosting. You need a good host as this is your life line.

Finally you want to be able to build the site effectively so as to achieve good search engine rankings. Keyword research relative to your overall theme will help you to do this plus you need to structure the pages properly so that you site can be understood by the search engines.

Do not worry if you lack technical knowledge as there are site builders out there to help you overcome this challenge.

Select any of the following links to watch some free videos.

Watch These Free Videos At Site Build It Customer Reviews please allow time for the videos to load.

Learn how to publish a real website That works Site Build It Review. Sign Up for the free affiliates masters course.

http://www.lfdab.com/Site-Build-It-Customer-Reviews.php

 


Pages 
* About

Archives
    * February 2008
    * January 2008

Categories:
* Uncategorized

Last Updated:

regularban.info is proudly powered by WordPress MU running on  regularban.info.
Create a new blog and join in the fun!
Entries (RSS) and Comments (RSS).