Easily clear/flush your DNS cache.
Flushing your computer’s DNS cache will allow you to see the DNS changes much quicker. For example if you are transferring a site to a new server and it feels like it is taking forever. It could be that the transfer is complete but your computer’s DNS cache is not updated and as a result you can not see the change. The old fashioned remedy is to restart you computer a few times. Another remedy is to
Auto Detect Lightness/Darkness of a Background Image!
This Script allows you to automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it. Great for Sliders!
Convert Alphanumeric Phone Numbers into Numeric
What do you do when you want to link phone numbers that use letters. One way is to manually convert each number every time a number is entered. Obviously this is not practical. So here is a PHP script to automatically make this happen. This code can be tweaked for international numbers.
Automatically Generate a Google Address Link or Map
Let’s say you have dynamic data of a phone number, email and street address of a person or business and you want to show that data as useful links(“mailto:”,”tel:”,”sms:” etc…). It is fairly easy to write a PHP or JS script to automatically turn a phone number or an email into links. However generating an address that links to google maps or even better an address that turns into an embedded map is a little more complicated.
Bookmarklets Still Rock!
Bookmarklets have been around forever. They have expanded the abilities of web browsers before even browsers had extensions and plugins. I still find them extremely useful. Plugins/Extensions are great but can weigh down your browser. Bookmarklets can be a fast lightweight alternative for some.
Show a specific Page/Post content in your template.
Sometimes you need to display a specific page or single post content in an area on your site or templates. Here is one method that has worked great for me.