TroyGrosfield.com TroyGrosfield.com

Archive for October, 2010

Headline

SEO: Search Engine Optimization Best Practices for Your Website

Author
by Troy Grosfield
Date
October 26th, 2010
Category
Developer
Story

One of the best ways to make your site’s content more discoverable is to make sure it’s optimized for search engines, also known as SEO (Search Engine Optimization).  When I first made this site public, I wasn’t very happy with the fact that when I searched for my name my website wasn’t anywhere close to … read more

Tags
Comments
2 Comments »
Headline

Progressive Enhancement for Web Design

Author
by Troy Grosfield
Date
October 26th, 2010
Category
Developer
Story

If you’re into web development you’ve likely come across the term progressive enhancement. But what does this really mean? Progressive enhancement is a strategy for web design that emphasizes accessibility, semantic HTML markup, and external stylesheet and scripting technologies. Progressive enhancement uses web technologies in a layered fashion that allows everyone to access the basic … read more

Tags
Comments
No Comments »
Headline

Include Images in Your Twitter Widget

Author
by Troy Grosfield
Date
October 13th, 2010
Category
Developer
Story

Update: This script to pull images into the widget no longer works.  Twitter started returning all links including images as a shortened twitter http://t.co url which just redirects to the actual resource.  The bad part about this is you can’t tell if the link is truly an image or not and you can’t reference an … read more

Tags
Comments
9 Comments »
Headline

Python Context Manager and the With Statement

Author
by Troy Grosfield
Date
October 11th, 2010
Category
Developer
Story

Context managers are a great way to “loan” out objects. In conjunction with python’s “with” statement, this can be quite the powerful design pattern. You will see ways to automatically clean up entire objects or parts of objects once they are no longer needed. Below we create an object to be used temporarily, “loan” it … read more

Tags
Comments
No Comments »
Headline

Custom CSS List Bullets: list-style-image Positioning Workaround

Author
by Troy Grosfield
Date
October 11th, 2010
Category
Developer
Story

Creating custom CSS bullets can add a lot of extra flare to your site and truly give it a unique appeal.  However, sometimes dealing with the list bullet positioning can be a pain. Example You want your list to look like this: using the following css: ul { list-style-image: url(‘bullet.png’); margin-left: 1.25em; } but instead, … read more

Tags
Comments
3 Comments »
Headline

IE7 Background Image Hidden or Disappearing Fix

Author
by Troy Grosfield
Date
October 7th, 2010
Category
Developer
Story

Have you ever set a background image that showed up inconsistently cut off at times when you view your page in IE? The fix is quite simple. Here’s an example. You want to list to look like this: But when we try and view it in IE we sometimes see this: If you ever encounter … read more

Tags
Comments
4 Comments »