helpful links herbal penis size stretching

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.

 


Free Templates - How Do They Rate Against Free HTML Editors?

Millions of websites being launched year after year can only signify two important things. One, the importance of being on the net, regardless of whether yours is a small business website, a home page, an ecommerce or even a portal, and two, easy availability of variety of free templates which make website building a child's play.

In this article, let us try to explore whether templates, free or paid, offer suitability and ease of working and why they are taking the newbie web owners and builders as well as professionals by storm.

Website templates are pre made web designs into which you can start filling in your information straight after downloading. Easily, this eliminates the cumbersome task of having to design an appealing layout and more than that, it does not want you to have any knowledge of HTML at all.

At this point in time, you might be tempted to ask, if this is all, how good it is over HTML editors which don't require a template to be downloaded for every time you are building a website? True, they don't require you to possess knowledge of HTML but they still rest the task of creating an appealing layout upon you, juggling with color schemes, and placement of different sections on your page etc which are really not your job. It is precisely here that the website templates fill the void- import web templates into your favorite HTML editor and get-set-go with site building.

Conventional method of web designing is out of date as it takes a lot of manual labor a web entrepreneur can hardly afford to waste. When web presence matters to you for reasons beyond passion, you would never want to waste time and efforts on designing your own templates or even purchase them in bulk.

Free templates are in no way inferior to paid templates but you have to be choosey about your source. They do not limit your aspirations; instead you can have a variety of them such as free CSS templates, PSD templates, besides the plain HTML types. The very reason these templates are a matter of big business today is their aesthetics, functionality, easy of use and of course, the huge demand.

Free templates also make business sense considering the number of websites the ordinary people launch every month. To get your business off by launching hundreds of websites you know what makes sense and what not. Choose your templates without compromising on your needs and let the cost be condoned by the world.

Alevoor Rajagopal, MBA, is very passionate about cricket and maintains a huge, cricket based funny videos collection. He is a business consultant and a professional copy writer to write most compelling content for your websites.

Alevoor Rajagopal - EzineArticles Expert Author

 


Marketing to Find Motivated Sellers - How We Model Investor Marketing

I am using the time I alloted today to work on the real estate investor marketing in the Learn To Be Rich on-line game to lay out a framework of the steps we need to follow to get this new feature implemented into the game.

First, I will need to access the Php MyAdmin control panel and manually add in some of the sample types of marketing so that I begin to play with those with my test player in the game. My intention is to add 3 or so different ones like classified ads, bandit signs and door to door flyers.

Next, once I have those three in the database, I will need to add some code so that there is a chance each turn to learn that from our in-game Marketing Consultant. This includes adding the type of marketing to that players database table as something that is available. It also includes making sure that it shows up on the Real Estate tab as something you can work on.

Once I have it in the players database table, I need to add the code for the player to be able to modify how much to spend each turn on that type of marketing.

Next, I will need to write the code to determine the number of new houses that appear for you to look at based on the marketing you are spending money on.

Once I have this basic system working, then I will go back and add more types of marketing and tweak the interface to get the right balance in the game.

So, that is the plan right now to make the game have that new feature for modeling the marketing to find motivated sellers.

James Orr is a professional real estate investor, marketing expert and founder of the LearnToBeRich.com on-line investment game.

You can get a free real estate course and fully analyzed real estate deals and his blog by e-mailing him at freerecourse@learntoberich.com or visit the Learn To Be Rich Blog for more great articles and information.

James Orr - EzineArticles Expert Author

 


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