|
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'). Change a filename to lowercase Likewise, changing a filename itself is very simple. The following two lines perform the task quite nicely: (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.
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.
First Steps To Website Internationalization - Glossary
Making your web site easy for international visitors to understand is what website internationalization is all about. There are times when differences in vocabulary may crop up. This can even happen across different industries in the same country. One of the ways you can help your readers is to start a Glossary. In your glossary you can list industry specific words and all words you use commonly where others may not have the exact same understanding. If you explain a process in your communication, think of including verbs in your glossary. The key to making your glossary work for you is to strive for accuracy, clarity, and ease of understanding. Accuracy In some cases a lack of accuracy can have devastating effects.
Clarity A glossary's aim is to give a clear meaning to the words you use. Keep your explanations as clear as possible. If they only lead to further misunderstandings or do not answer the readers questions, you would be better off without one. Ease Of Understanding Keep your glossary very easy read and people will enjoy reading it. Pay attention to the general appearance of the glossary as a whole as well as the individual explanations. An Added Value After ready through a well done glossary, the reader may well come away feeling appreciative of the easy to read informative experience. It is a wonderful touch of thoughtfulness to your international visitors. Non-native English speakers will greatly appreciate its value. Prepares For Translation A glossary is highly recommended in certain industries where specific vocabulary requires expert translations. In some instances some people feel they can take a dictionary out and provide translations of key vocabulary in languages other than their mother-tongue. This can lead to further misunderstandings. A glossary well done is far better than taking on translation skills when you do not have them. However, your glossary will be of significant value to a professional translator once you decide to offer multilingual services. Glossaries are also appreciated in non-technical areas too. Cultural habits differ. People can use vocabulary differently. Glossaries provide insight into how you communicate and provide a base for cross-cultural dialogue.
|
* About Archives
Categories:
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). |