iGoogle Gadget: PowerSearch

Posted on March 3, 2008

OK, now I am hooked on Gadgets! I made what may just be the coolest iGoogle gadget ever; PowerSearch! PowerSearch is a gadget you can add to your iGoogle home page and it allows you to search all of the most popular sites right from your home page. You don’t have to go to Amazon to search for a book or eBay to search for you next collectible find-of-the-year. You just go to your home page and search from there. Currently there are 34 sites you can search and you are always welcome to request others.

You can set any of the searches as the default simply by clicking the little down arrow icon and choosing “Edit Settings”. The search you set as default is the one the selection box will go to automatically.

To add PowerSearch to iGoogle, simply click the [+ Google] button below.

iGoogle Gadget: Case Changer

Posted on March 3, 2008

Another iGoogle gadget from the Clark Consulting labs. This one is a useful tool that allows you to quickly convert text into all UPPER CASE, all lower case or will Upper Case The First Letters Of Each Word. This is a handy gadget if you want to force email addresses to lower case before you add them to your address book, or if you want to convert someones name from BOB JONES or bob jones to Bob Jones. Enjoy!

To add Case Changer to iGoogle, simply click the [+ Google] icon below

Vista SideBar Gadget: UltimateSearch

Posted on February 6, 2008

Here is my latest creation: UltimateSearch. The purpose of the UltimateSearch gadget is to provide a one-stop-shop for all your searching needs. UltimateSearch uses a prefix system rather than having you click a check box or change your settings constantly. For example, if you want to search Google for the term “widget”, you would type “g.widget” into UltimateSearch and hit the Enter key. Viola…Google results for the term will appear in your browser. If you want Yahoo!, you type “y.widget” and so on. To download UltimateSearch or to find out more about its search capabilities, visit the UltimateSearch web page.

Regular Expressions

Posted on July 11, 2007

TextPad® is a powerful, general purpose editor for plain text files. I have used it for years and recommend it highly. One of the best features is that you can do ‘find and replace’ requests using regular expressions.

I found a good set of regular expressions for finding phone numbers in text files. In the interest of saving you from reinventing the wheel, here they are.

The “^” character means that it will find only phone numbers that begin at the first character of the line. If you don’t want that, remove the “^”.

For numbers formatted like ###-###-#### or ###.###.####
^[0-9]\{3\}[-.][0-9]\{3\}[-.][0-9]\{4\}
For numbers formatted like (###)###-#### or (###)###.####
^[(][0-9]\{3\}[)][0-9]\{3\}[-.][0-9]\{4\}
For numbers formatted like (###) ###-####
^[(][0-9]\{3\}[)][[:space:]][0-9]\{3\}[-.][0-9]\{4\}

PsPad is another great text editor. It has an FTP feature that allows you to work on files on a server in real-time. The regular expressions for PsPad are as follows:

For numbers formatted like ###-###-#### or ###.###.####
^[0-9]{3}[-.][0-9]{3}[-.][0-9]{4}
For numbers formatted like (###)###-#### or (###)###.####
^[\(][0-9]{3}[\)][0-9]{3}[-.][0-9]{4}

For what it is worth, TextPad is a better utility if you are trying to clean up text files. PsPad is better if you are working on files that are on a web server. I use PsPad for development and TextPad for things like regular expression finds.

Filed Under Tips | Leave a Comment

QuoteMe v4.1 (PHP)

Posted on June 19, 2007

{{LEARN PHP HERE}}

Script in use (refresh for a new quote):
The ultimate measure of a man is not where he stands in moments of comfort and convenience, but where he stands at times of challenge and controversy. - Martin Luther King, Jr.
 

As one of the most powerful and robust quote scripts on the market, QuoteMe v4 is easy to install and quick to deploy. QuoteMe v4 allows you to produce a database of the quotes you want to use and has an administrative interface that provides you with a way to manage your quote database. You can extend the capabilities of QuoteMe v4 to pull from and manage multiple quote databases.

QuoteMe v4 does not use MySQL. Instead, QuoteMe v4 uses what is called a “flat file” database. This is a fancy name for a text file that lives in a folder on your web server. In the past managing text files that are in a database format was time consuming and tedious work. One missing item can cause the entire database to malfunction. With QuoteMe v4 all you have to do is login and edit the database using the easy to use administration tool.

Take a look at these screen shots: Login | View | Edit

QuoteMe v4 comes with easy to follow instructions and as always you can ask for help at any time by clicking the Support link found in the menu.

Download the QuoteMe4 script here (14kb)    Current Download Count: 2671

Rate This script
Hot Scripts

Filed Under PHP | Leave a Comment

God Speaks - JavaScript Version

Posted on June 7, 2007

{{LEARN JAVASCRIPT HERE}}

JavaScript version of the God Speaks billboard script.

This is a script that I wrote to display the quotes that surfaced on billboards across the country. These billboards contained quotes from God and the source of the billboards is still a mystery.

View the script in action

Download the script here (< 2kb) Current Download Count: 1212

Validate/Format Phone Numbers

Posted on October 16, 2006

{{LEARN JAVASCRIPT HERE}}

The purpose of this script is to format and validate Telephone Numbers in a form field. The script strips all non-numeric characters and then validates that the remaining characters are sufficient to make up a valid phone number. If there remaining string is 10 characters in length, the script then formats by adding a “-” after the third and sixth digits. Resulting in a mask like ###-###-####.

The example script does the validation/formatting onBlur, meaning when the cursor leaves the Phone Number field. You can also set the event to happen onSubmit or onClick of the Submit button, etc.

View the script in action

Download the script here (< 2kb)   Current Download Count: 4014

Rate This script
Hot Scripts

 

Validate/Format Social Security Number

Posted on October 16, 2006

{{LEARN JAVASCRIPT HERE}}

The purpose of this script is to format and validate Social Security Numbers in a form field. The script strips all non-numeric characters and then validates that the remaining characters are sufficient to make up a valid SSN. If there remaining string is 9 characters in length, the script then formats by adding a “-” after the third and fifth digits. Resulting in a mask like ###-##-####.

The example script does the validation/formatting onBlur, meaning when the cursor leaves the SSN field. You can also set the event to happen onSubmit or onClick of the Submit button, etc.

View the script in action

Download the script here (< 2kb)    Current Download Count: 2722

Rate This script
Hot Scripts

 

Filed Under JavaScript | 1 Comment

Automatically Put the Cursor in a Form Field

Posted on October 2, 2006

{{LEARN JAVASCRIPT HERE}}

Setting the focus, or for beginners, automatically placing the cursor in one of the fields of your HTML form, is fairly simple. There are two common methods. The first and most common is to use the <BODY> tag’s onload event.

Ex.
<body onload="document.FORMNAME.FIELDNAME.focus();">

However, there are times that you cannot use the body tag and you need another solution. As an alternative to the onLoad event, you can use the setTimeout fuction in JavaScript to wait half a second and then set the focus.

Ex.
<script>
setTimeout(’document.FORMNAME.FIELDNAME.focus()’,500);
</script>

In both cases, you would replace FORMNAME with the value of the name attribute in the <form> tag. You replace FIELDNAME with the value of the name attribute in the <input> tag of the targeted field.

 

HTML Countries and States

Posted on October 30, 2005

Do you need an HTML selection box for the States or Countries? Look no further. I have two TXT files, each containing the code for a selection box. The first contains all the States in America and the second contains all of the countries (that I could think of).

Enjoy!

Download the HTML files here (3kb)    Current Download Count: 1490

 

Filed Under HTML | 2 Comments