Web Design Blog - snippets

Unobtrusive javascript and jquery selectors

Jquery is a great library used by many. Those who are just starting out can become a bit confused by the jquery selector format. I want to take some time today and give you a primer and some examples on using selectors in jquery. Using them effeciently can save you time and headache. If you aren't familiar with unobtrusive javascript techniques, now would be a good time to brush up. If you create your javascript in an "unobtrusive" way, this means that you keep your javascript code separated fr... read more!

Posted in javascript, snippets, technology, tutorials, web design | Post Comment

CSS Text Effects: Text Shadow

The CSS text shadow property has been around since the release of CSS2, but has not been supported by mainstream browsers until recently. The level of support is still limited, but with time we will start seeing it more and more.Basically text shadow allows you to render text with a blur, glow or off-set shadow without using an image. Benefits of this include: The ability to allow text to be searchable by popular search engines like Google or Yahoo. Reduce load time by eliminating image file... read more!

Posted in CSS, Google, Graphic Design, html, Microsoft Windows, snippets, tutorials, web design | Post Comment

Using php from unix command line to process/modify files

This trick/snippet combines the flexibility of unix/linux command line tools combined with php scripting. If you are unfamiliar with the "find" command, you are missing out on your abilities to search and perform updates to many files. PHP can be used to do many things, this trick will teach you how to do some of those things on many files in one go, helping you automate what would normally be a very manual process. For example, say you need to do a find replace on many files, you could use find... read more!

Posted in php, snippets | Post Comment

Server Monitoring Tools (php)

I've been looking for a decent (simple) server monitoring tool that I could install to view at a snapshot glance what our servers are doing. I found several and thought I'd share a few: 1. Iguana Server Monitor (open source) Install this simple php script on the box you want to view stats for and you're good to go. Really it's that simple. Just upload a php script to your web directory, browse to that page and you can see in an instant all the specs of your server, processes, etc. 2. http va... read more!

Posted in linux, php, security, server administration, snippets | Post Comment

Sub domain creation on the fly with DNS Bind

Using Cpanel/Whm - I had to set up bind to accept any subdomain. In the /var/named folder there are a bunch of *.db files. Find the appropriate file for your domain. Set it up to look something like this: $TTL 14400 @ 86400 IN SOA ns1.yourdomain.com. email.domain.com. ( 2006090901 ; serial, todays date+todays 86400 ; refresh, seconds 7200 ; retry, seconds 3600000 ; expire, seconds 86400 ) ; minimum, seconds yourdomain.com. 86400 IN NS ns1.yourdomain.com. yourdomain.com. 86400 IN NS ns2.yourdomai... read more!

Posted in snippets | Post Comment


View All Posts