About/Contact

Steve Trefethen

Steve Trefethen is CTO at Wanderful Media.
Contact me

View my LinkedIn profile



Calendar

<<  June 2013  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Useful Twitter Bootstrap finds

March 05 2013 7:59PM

I've been collecting a set of Bootstrap related items and posting them via twitter but thought I'd write a post to capture them in once place. These are not necssarily things I've tried but for one reason or another I came across them and thought they looked interesting:

FacebookDel.icio.usDigg It!

Responsive design on FindnSave

February 01 2013 9:56AM

With the launch of our FindnSave beta redesign we've put a lot of effort into building a site that supports responsive design and scales well on a variety of devices. Below are examples on iPhone, iPad and Chrome on the desktop.

FacebookDel.icio.usDigg It!

MerchantCircle Listings Support Mobile Devices Through Responsive Design

September 12 2012 12:30AM

mcmobile2 In January merchantcircle.com launched a site redesign completely restructuring the HTML for the majority of pages on the site. The site redesign is based on a common base class template and architected to afford a great deal of layout flexibility via CSS. This affords the design team to dramatically modify the design of the site without requiring resources of the development team. As an example, take a look at the New Design screenshot from this post, notice the rail appears on the right-hand side whereas today’s listing uses a left-hand rail via CSS best practices.

Our latest efforts supporting mobile follow Google’s preferred guidelines:

Sites that use responsive web design, i.e. sites that serve all devices on the same set of URLs, with each URL serving the same HTML to all devices and using just CSS to change how the page is rendered on the device. This is Google’s recommended configuration.

Like most websites our traffic is increasingly moving to mobile and we feel this UX is significantly better than a desktop optimized experience.

FacebookDel.icio.usDigg It!

MerchantCircle’s New Mobile Listings

May 04 2012 10:00AM

mcmobilePreviously I posted about the redesign of MerchantCircle pushed out earlier this year and this week we’ve followed up with a mobile version of business listings. The mobile implementation leverages a lot of markup generation code developed for the desktop version and offers the end user a much better experience on a small screen.

At this point, we’ve working on creating more mobile versions of pages across the site as well as some of the various sign-up, and review flows.

[Update May 2012] Mobile version of listing pages have been taken down. More to come...

FacebookDel.icio.usDigg It!

Tags: HTML | Mobile

Pretty printing a Python dictionary to HTML

October 31 2011 11:08PM

Here’s a routine I wrote to pretty print a Python dict into an HTML table and though I’d share.

    def prettyTable(dictionary, cssClass=''):
        ''' pretty prints a dictionary into an HTML table(s) '''
        if isinstance(dictionary, str):
            return '<td>' + dictionary + '</td>'
        s = ['<table ']
        if cssClass != '':
            s.append('class="%s"' % (cssClass))
        s.append('>\n')
        for key, value in dictionary.iteritems():
            s.append('<tr>\n  <td valign="top"><strong>%s</strong></td>\n' % str(key))
            if isinstance(value, dict):
                if key == 'picture' or key == 'icon':
                    s.append('  <td valign="top"><img src="%s"></td>\n' % Page.prettyTable(value, cssClass))
                else:
                    s.append('  <td valign="top">%s</td>\n' % Page.prettyTable(value, cssClass))
            elif isinstance(value, list):
                s.append("<td><table>")
                for i in value:
                    s.append('<tr><td valign="top">%s</td></tr>\n' % Page.prettyTable(i, cssClass))
                s.append('</table>')
            else:
                if key == 'picture' or key == 'icon':
                    s.append('  <td valign="top"><img src="%s"></td>\n' % value)
                else:
                    s.append('  <td valign="top">%s</td>\n' % value)
            s.append('</tr>\n')
s.append('</table>') return '\n'.join(s)
FacebookDel.icio.usDigg It!

Removing rounded corners on jQueryUI elements

August 01 2011 4:23PM

I had this question today and it turns out the answer is pretty simple

  1. First, it’s important to note that as of this writing IE 8 (what I tested) doesn’t render rounded corners as implemented in jQueryUI v1.8.14 though I understand there is a plugin that enables that feature.
  2. To remove rounded corners on all elements of jQueryUI (for Chrome, FF and Safari) you can include the following in your own CSS:
    .ui-corner-all { border-radius: 0px; -moz-border-radius-bottomright: 0px; -moz-border-radius-bottomleft: 0px; -moz-border-radius-topright: 0px; -moz-border-radius-topleft: 0px;}
    }

Now, credit where credit is due.

FacebookDel.icio.usDigg It!

Tags: , HTML | jQuery