|
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 Successful Website
Every one of us wants to create a successful website. No one wants to fail. As a consequence of this many of us are out there looking for the silver bullet. Now to me the silver bullet lies within you. You are the key to your success. Of course this sounds nice but how can it be applied in practical terms? Firstly you like anyone else go online to seek solutions. Your idea right now is that you want to make money. So you are going to search out opportunities that enable you to achieve this. As a result of this you are going to come across a lot of information and the information that seems the most believable to you is the one you will choose to obtain. However there is also another element at play and that is emotion. The site that outlines the benefits that speak best to your emotional desires will be the one that you approve. To build a successful website you can use yourself as the model. In other words when people visit your site are you going to outline the benefits that speak to their emotional desires and furthermore will you provide proof by helping them to connect the dots which will make it believable for them that they can reach the goal that they desire to reach. If your website is built in this way where you genuinely help others achieve their objective then your site will be naturally successful. It really is as simple as that but that does not mean that the work will not be challenging because it will - but if you are determined and build you site with the visitor in mind then the rest is history.
Preserving the Integrity of Your Flash Templates Before Use
If you have decided to use website templates to create your ideal website you have taken a step in the right direction. This is especially so if you don't want to spend thousands of dollars on custom templates and do not have the ability to create them on your own. Many people think that once they have the templates they are ready to roll, and you are in a certain sense. But, there are some things that you should do to make sure that you preserve the integrity of the template so you can use it again and again if needed. After You Purchase Your Flash Templates There are many sources for web templates and whether you buy them to install on your computer or you download them the very first thing that you should do is save them in their original format. So many people open the template and they are ready to jump right in and start designing their website right away that they don't take a moment to save the template the way it is. The reason that you want to save the template "as is" is because many who are new to working with templates end up hitting enter one too many times or they end up changing the font or changing the format of the page and they cannot get it back. It does take some practice to work with templates without disturbing their original integrity and if you know that you have the original template saved you don't have to stress out every time you distort the template somehow. The great thing is that a lot of the templates out there come with some basic directions. If this is the first time you will be using templates you should take a look at the instructions and see what you can learn from them. Many times simply glancing at the instructions before you dive right in will allow you to decipher between the different layers of the template so you are able to add text and images with ease. Slow Down and Then Begin Many people get their templates and they want to rush into building their website. Whether this is your first time using templates or building a website or the 10th you need to take a deep breath and then begin. If you rush into building your website you won't give it the attention that it needs and the quality will therefore be less than you had always imagined that it would be. If you slow down you will be able to give attention to the small details that really make a webpage functional and aesthetically pleasing. It doesn't matter what sort of webpage you are building, slowing down and preserving the integrity of the template is important so you can return to it again and again or avoid the frustration of trying to fix what has been distorted through the trial and error of using a website template in a rush.
|
* 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). |