penile erection picture

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.

 


Website Content - 5 Smart Ways To Create Content For Your Website

One should agree that content is the main thing that keeps visitors coming back for more to your website. Without content, your website is a dead duck in the water. Here are 5 smart ways you can create content for your website without breaking an arm and a leg:

1. Outsource Your Content

You can hire a professional freelancer to create content for you. This is an easy way to get your content created hands free. But the only problem is cost. If you have tons of extra cash lying around, then this is a viable option.

2. Use RSS Feeds

By installing RSS feeds on your site, you can have fresh new content generated practically on the fly. RSS Feeds can typically grab content from new blog posts around the web, news sites and other websites. You can also promote your content via RSS feeds using FeedBurner.

3. Use Blogs

Create a blog and allow people to comment on your posts. The comments are also a way of creating content for your site, only you are not writing the content, your readers are.

4. Create A Forum

A forum is one of the best ways to have tons of content created for you by others. If you have a popular forum, you'll have loads of fresh new information posted by the forum members.

5. Leverage Articles

Take reprint rights articles from article directories and publish them on your own website. There's a whole world of articles out there on article directories that you can use as long as you include the resource box with them.

Fabian Tan is the author of the free 51-Page Report:

"Murder Your Job: How To Build Cash Sucking Autopilot Businesses In 30 Days Or Less!"

Head over to http://www.MurderYourJob.com to get your free copy now before it's gone!

 


How to Make A Web Site Without Any Technical Knowledge

This article will teach you how to make a web site even if you don't know any HTML, CSS or any other web design languages.

The easiest way to get a web site up and running with minimal experience is to use an online site builder. Online site builders are web building software that are hosted on the internet. They can be used by total newbies to build web pages with minimal technical knowledge.

Here are several reasons why you should consider using an online site builder to make a web site.

  • WYSIWYG

    Online site builders offer you a WYSIWYG (what you see is what you get) editing interface. This means that you need little or no html knowledge to begin using it. Everything is done visually. The site builder will then produce the necessary HTML code that will make up your website.

  • Short learning curve

    With online site builders, you can put together a website in very short amount of time. The process of building a website using online site builders is very easy to understand. You just go through a series of steps and supply the site builder with the information it asks for and it will set everything up for you.

  • One button click publishing

    One of the biggest problem a newbie has with making a web site is publishing it to the internet. With online site builders, you don't have to worry about messing with FTP software to upload your webpages. Often, all you need to do is click on a "Save" or "Publish" button and your website is live on the internet for all to see.

  • Variety of predesigned layouts

    Most online site builders also comes with a variety of designs to choose from. This gives you that professional look instantly. Without you having to learn the fine points of creating great looking sites.

  • Minimal requirements

    Since it's web based, all you need to use an online site builder is a web browser and an internet connection. You don't have to worry about downloading programs and installing them. You can access an online site builder from any computer and you will always have access to the latest features.

Now, how do you gain access to an online site builder?

Most good web host provide a basic site builder with their services. Though very basic, you can still make a decent web sites with it.

I would recommend you sign up for specialized site builder. These site builders specializes in building a specific type of website. You have online site builders that build content sites, some that build ecommerce sites and others that build multimedia sites. So, it really depends on what type of site you'd like to build.

Either way, online site builders are a great way for newbies to learn how to make a web site without any technical knowledge.

Bina has helped many newbies build their own website. Check out her blog for some non techie web site building tips & tutorials.

 


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).