<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Surgeworks</title>
	<atom:link href="http://surgeworks.com/feed" rel="self" type="application/rss+xml" />
	<link>http://surgeworks.com</link>
	<description>iPhone and iPad App Design and Development</description>
	<lastBuildDate>Tue, 21 Feb 2012 15:21:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mac OS X 10.7.3 with Xcode 4.3: This bundle is invalid. Apple is not currently accepting applications built with this version of the OS.</title>
		<link>http://surgeworks.com/blog/mac-os-x-10-7-3-with-xcode-4-3-this-bundle-is-invalid-apple-is-not-currently-accepting-applications-built-with-this-version-of-the-os</link>
		<comments>http://surgeworks.com/blog/mac-os-x-10-7-3-with-xcode-4-3-this-bundle-is-invalid-apple-is-not-currently-accepting-applications-built-with-this-version-of-the-os#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:18:58 +0000</pubDate>
		<dc:creator>Mauro Dalu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3853</guid>
		<description><![CDATA[We have a few Mac applications on which we need to enable the Lion sandbox and resubmit to the Mac App Store (Mac, not iOS). I already applied the combo update 10.7.3 and after that I started getting this error: &#8220;This bundle is invalid. Apple is not currently accepting applications built with this version of [...]]]></description>
			<content:encoded><![CDATA[<p>We have a few Mac applications on which we need to enable the Lion sandbox and resubmit to the Mac App Store (Mac, not iOS). I already applied the combo update 10.7.3 and after that I started getting this error:</p>
<p>&#8220;This bundle is invalid. Apple is not currently accepting applications built with this version of the OS.&#8221;</p>
<p>In the SystemVersion.plist, it turns out our build for 10.7.3 is 11D50b (b being beta). Xcode does not allow beta OS to be used to compile and submit to the Mac App Store. This is clearly a bug and will be fixed. However there is a workaround:</p>
<p>Change the SystemVersion.plist in /System/Library/CoreServices with TextMate (it will ask you for a password to save) or with TextEdit (you will need to change the file permissions first).</p>
<p>Locate the line Build Number: 11D50b and remove the last &#8220;b&#8221;.</p>
<p>Save, restart Xcode (make sure you do this), clean, archive and you are finally able to submit successfully.</p>
<p>Once you&#8217;re done, I recommend you quit Xcode and made sure to change everything back to how it was before. If you keep the file open in TextMate you can &#8220;undo&#8221; your way back to the original file, which states:</p>
<p>Build Number: 11D50b<br />
ProductUserVisibleVersion: 10.7.3<br />
ProductVersion: 10.7.3</p>
<p>I will not trust restarting my mac with a messed up plist like that.<br />
So use at your own risk and happy coding!</p>
<p><a href="http://stackoverflow.com/questions/9243707/lion-10-7-3-apple-is-not-currently-accepting-applications-built-with-this-versi" target="_blank">Source: Stack Overflow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/mac-os-x-10-7-3-with-xcode-4-3-this-bundle-is-invalid-apple-is-not-currently-accepting-applications-built-with-this-version-of-the-os/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kindle Fire first impressions</title>
		<link>http://surgeworks.com/blog/kindle-fire-first-impressions</link>
		<comments>http://surgeworks.com/blog/kindle-fire-first-impressions#comments</comments>
		<pubDate>Tue, 10 Jan 2012 22:06:44 +0000</pubDate>
		<dc:creator>Ney Ricardo</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3837</guid>
		<description><![CDATA[Santa brought us a cool gift this year: a Kindle Fire tablet. At a first glance we were astonished: &#8220;Why?! We&#8217;ve been good boys through the whole year. Why are being punished?&#8221;. It&#8217;s not and iPad, but ok. Heh, just kidding… I couldn&#8217;t lose the opportunity. What can you expect from Apple fanboys? Ok, seriously. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://surgeworks.com/wp-content/uploads/2012/01/main-image.png" alt="" title="main-image" width="550" height="300" class="aligncenter size-full wp-image-3841" /></p>
<p>Santa brought us a cool gift this year: a <strong>Kindle Fire</strong> tablet.</p>
<p>At a first glance we were astonished: &#8220;Why?! We&#8217;ve been good boys through the whole year. Why are being punished?&#8221;. It&#8217;s not and iPad, but ok.</p>
<p>Heh, just kidding… I couldn&#8217;t lose the opportunity. What can you expect from Apple fanboys?</p>
<p>Ok, seriously. We&#8217;ve been using it for a week now and decided write a small review of our first impressions while handling the gadget.</p>
<p>Looking at the tech specs available on CNET website, we noticed that this is a very simple yet good tablet for the everyday use and a good gadget to keep on your bedside table:</p>
<ul>
<li>7 inches screen;</li>
<li>1024x600px (169ppi) screen resolution;</li>
<li>8GB integrated memory and dual-core processor;</li>
<li>Wi-fi, but no bluetooth nor 3G;</li>
<li>Supported audio formats: AAC, WAV, OGG, MP3, MIDI;</li>
<li>Supported text formats: AZW, PRC (Mobipocket), PDF, DOC, TXT, DOCX;</li>
<li>Supported video format: MPEG-4;</li>
<li>Supported image formats: PNG, JPEG, BMP, GIF;</li>
<li>Recharge time: 4 hours with the included charging cable. However, it charges when you plug in your PC, but the gadget stays in &#8220;stand-by&#8221; mode and you can&#8217;t use it while charnging;</li>
<li>Battery life (wireless off): 8 hours of continuous reading (this could easily spoil a good night of sleep).</li>
</ul>
<p>A deeper analysis of the tablet brought us into some good and some not so good conclusions.</p>
<p>So let&#8217;s start with the not so good aspects:</p>
<ul>
<li>No <strong>USB to Micro USB cable</strong> included, needed to access the gadget content from your computer. Also, after testing with the cable we found out that the transfer rate is quite slow;</li>
<li>A bit thick;</li>
<li>Scrolling smoothness is bad;</li>
<li>It gets slow when changing screen orientation;</li>
<li>Amazon store accepts only US credit card for pay. Here, at the Brazilian office we couldn&#8217;t buy anything (apps, books, TV shows) because it does not even accept international credit cards;</li>
<li>Does not recognize the main electronic book formats: <strong>.epub</strong> and <strong>.mobi</strong>;</li>
<li>Internet browsing is a poor experience. Since it&#8217;s resolution is 1024x600px and most of the websites are built for 1024x768px resolutions, you either lose a lot of vertical space when in landscape position or it cuts part of the content horizontally when in portrait.</li>
</ul>
<p>Now the good points:</p>
<ul>
<li>Feels very good in hand for its size. One can hold it with only one hand;</li>
<li>The task of typing something is very pleasant because your thumbs can reach all the virtual keyboard keys without having to take your hands off the tablet body. In addition to it, a large variety of special symbols are available on the special keys keyboard;</li>
<li>You can copy your MP3 files from your computer, there&#8217;s no need to re-buy them from Amazon. If your MP3 carries album data like Album cover, Album Name, etc., it will help to organize your songs in albums. Also, it&#8217;s possible to listen to music while you read a book or browse the internet.</li>
<li>Reading books is quite pleasuring just like on iPad. You can highlight texts and make notes over it. However, since the screen emits light, your eyes may get tired after some hours of reading. I know, this is a problem that comes with iPad too.</li>
</ul>
<p><strong>Overview:</strong></p>
<p>Kindle Fire is a very good tablet, easy to use and to carry, good to have on your bedside table or your backpack.</p>
<p>Also its price is quite reasonable for what is being offered.</p>
<p>The only thing that made me a bit sad was the difficulty of purchasing apps, books, movies and music.</p>
<p>However I&#8217;d recommend it for regular users that don&#8217;t need awesome performance and graphic resources and think that having iTunes to manage all their tablet content is too much effort for a small piece of shining plastic.</p>
<p>My only concern is: <strong>Amazon, Y U NO PUT USB TO MINI USB CABLE INSIDE THE BOX?!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/kindle-fire-first-impressions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interaction South America 2011, we were there!</title>
		<link>http://surgeworks.com/blog/interaction-south-america</link>
		<comments>http://surgeworks.com/blog/interaction-south-america#comments</comments>
		<pubDate>Fri, 09 Dec 2011 20:05:01 +0000</pubDate>
		<dc:creator>Ney Ricardo</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3776</guid>
		<description><![CDATA[We&#8217;ve just arrived from an awesome conference that opened our minds to new ideas and point of views. Yes, last week we were at Interaction South America (#ixdsa11), a conference with emphasis on Interaction Design, that happened in Belo Horizonte, MG, Brazil. The event had the presence of some of the most talented designers, engineers and architects of [...]]]></description>
			<content:encoded><![CDATA[<p><img title="post-image" src="http://surgeworks.com/wp-content/uploads/2011/12/post-image.jpg" alt="" width="550" height="300" /></p>
<p>We&#8217;ve just arrived from an awesome conference that opened our minds to new ideas and point of views.</p>
<p>Yes, last week we were at <a href="http://www.interaction-southamerica.org/">Interaction South America</a> (<a href="https://twitter.com/#!/search?q=%23ixdsa11">#ixdsa11</a>), a conference with emphasis on Interaction Design, that happened in <a href="http://maps.google.com.br/maps?q=Belo+Horizonte,+MG,+Brasil&amp;hnear=Belo+Horizonte+-+Minas+Gerais&amp;gl=br&amp;t=m&amp;z=11&amp;vpsrc=0">Belo Horizonte, MG, Brazil</a>.</p>
<p><a href="http://www.flickr.com/photos/surgeworks/sets/72157628296563539/with/6462368877/"><img class="aligncenter" title="" src="http://farm8.staticflickr.com/7026/6462368877_f472444bb8.jpg" alt="" width="550" /></a></p>
<p>The event had the presence of some of the most talented designers, engineers and architects of the Americas talking about Design Thinking, Service Design and Interaction Design. Although our company focus on mobile design/development and the event wasn&#8217;t specifically about the mobile world, we absorbed a lot of good concepts that we plan to include in our work methodology.</p>
<p>The first day began with a brief introduction about the event and we quickly went to the workshops, where we could have a detailed vision about how Design Thinking and User Experience work and why they are so important on project planning.</p>
<p>The Design Thinking workshop was led by Isabel Fróes, Psychologist and Interactive Telecommunications Program master. After she made a brief presentation of what it means, she gave the class an imaginary project and guided the participants through the phases of the process in order to reach three different results and make an analysis of them.</p>
<p>The User Experience workshop, led by Walter Cybis, PhD in Production Engineering applied to Software Ergonomy, was focused on User Experience Monitoring. He went through the most common processes and techniques of user experience analysis and then taught how to use the most popular online tools to measure the user adaptivity to the interface suggested based on the statistics generated in the tests.</p>
<p><img class="aligncenter size-full wp-image-3811" title="Brian Rink" src="http://surgeworks.com/wp-content/uploads/2011/12/brian_rink.jpg" alt="" width="121" height="121" />Still on the first day, to finish our quest for relevant knowledge, we attended to Brian Rink&#8217;s talk about How to Build Creative Communities. Rink is a designer specialist in organizational transformation in <a href="http://www.ideo.com/">IDEO</a> and made a brilliant talk about how to make good use of interaction design and the importance of the designer on several activities identifying problems and developing creative and efficient solutions for those problems in order to achieve better results.</p>
<p>On the second day of the conference we can highlight two lecturers: Denise Eler and Chloe Gottlieb.</p>
<p><a href="http://www.eler.com.br/"><img class="aligncenter size-full wp-image-3812" title="Denise Eler" src="http://surgeworks.com/wp-content/uploads/2011/12/deniseeler.jpg" alt="" width="121" height="121" />Denise Eler</a>, Innovation and Design Thinking consultant, talked about the importance of investing more money in service improvement and less in merchandising and advertisement when what usually happens is the opposite. She showed several cases in which she worked as a consultant and also talked about the several job opportunities that are available to the designers. It was a very interesting talk focused on Service Design and innovation.</p>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-3813" title="Chloe Gottlieb" src="http://surgeworks.com/wp-content/uploads/2011/12/chloe1.jpg" alt="" width="121" height="121" />Chloe Gottlieb, Creation Executive Director at <a href="http://www.rga.com/">RG/A</a>, made a brilliant talk about Data Driven Design and how information is used to motivate people change their lifestyle. She cited examples like Nike+ that tracks people workout activities and how the data generated from these exercises is transformed into useful information for the consumers and how they can share it with their online communities.</p>
<p>&nbsp;</p>
<p>Finally, the third day of conference was enlightened with the talks of Bill Scott and Mike Kuniavsky.</p>
<p><img class="aligncenter size-full wp-image-3814" title="Bill Scott" src="http://surgeworks.com/wp-content/uploads/2011/12/Bill-Scott-e1308070378481.jpg" alt="" width="121" height="121" />Bill Scott, Senior Director of Web Development at PayPal, featured the importance of the responsive design for services that need to be present on many different devices and how the design is influenced by different ways of interaction that are clearly visible between web, mobile and TV.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-3815" title="Mike Kuniavsky" src="http://surgeworks.com/wp-content/uploads/2011/12/Mike-Kuniavsky.jpg" alt="" width="121" height="121" />Mike Kuniavsky, designer and entrepreneur, opened our eyes to an interesting aspect of how we see products and services nowadays. He said we were habituated to buy products that matters to us as products, and now what really matters is the service. For example: people wouldn&#8217;t buy a smartphone only by its beauty or quality but mainly for the services that come with it such as internet, twitter, facebook ando so on. Things that go beyond the calling function.</p>
<p>The conference itself was very interesting and we came back home with a lot of new ideas and concepts that we want to put into practice and incorporate in our services.</p>
<p>Oh! Needless to say, our new tee made some buzz within the people who went to the conference. Some asked if we were selling it but we were giving it away to some lucky ones that came to ask.</p>
<p><a href="http://www.flickr.com/photos/surgeworks/6462780121/in/set-72157628296563539"><img class="aligncenter size-full wp-image-3807" title="tee" src="http://surgeworks.com/wp-content/uploads/2011/12/tee.jpg" alt="" width="550" height="450" /></a></p>
<p>Cool, huh?</p>
<p>And here are some photos we took while we were there: <a href="http://www.flickr.com/photos/surgeworks/sets/72157628296563539/">Interaction South America</a></p>
<p>Next stop: Campus Party BR @ Sao Paulo =]</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/interaction-south-america/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Surgeworks launches Catholicpedia, the Original Catholic Encyclopedia for iPhone, iPad and iPod Touch (press release)</title>
		<link>http://surgeworks.com/blog/surgeworks-launches-catholicpedia-the-original-catholic-encyclopedia-for-iphone-ipad-and-ipod-touch-press-release</link>
		<comments>http://surgeworks.com/blog/surgeworks-launches-catholicpedia-the-original-catholic-encyclopedia-for-iphone-ipad-and-ipod-touch-press-release#comments</comments>
		<pubDate>Fri, 09 Dec 2011 18:47:42 +0000</pubDate>
		<dc:creator>Mauro Dalu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[divine office]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3786</guid>
		<description><![CDATA[SALT LAKE CITY, Utah, (December 8, 2011)—The Divine Office Catholic Ministry in partnership with Surgeworks, a Salt Lake City-based application developer and graphical interaction design firm, has announced a new app for the Apple iPhone, iPad and iPod Touch based on The Original Catholic Encyclopedia. Introducing Catholicpedia The Catholicpedia App makes The Catholic Encyclopedia available on iPhone, [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://divine-office.com/mailing/2011-12-Catholicpedia/iphone/1.jpg" class="alignleft" width="320" height="480" />SALT LAKE CITY, Utah, (December 8, 2011)—The Divine Office Catholic Ministry in partnership with Surgeworks, a Salt Lake City-based application developer and graphical interaction design firm, has announced a new app for the Apple iPhone, iPad and iPod Touch based on The Original Catholic Encyclopedia.</p>
<h3>Introducing Catholicpedia</h3>
<p>The Catholicpedia App makes <strong>The Catholic Encyclopedia</strong> available on iPhone, iPad and iPod Touch through an easy-to-use interface.</p>
<p>From the Divine Office Catholic Ministry, developers of the About.com “2011 Best iPhone, iPod and iPad Catholic Apps,” this beautifully crafted, simple to use Catholicpedia App is designed to present its users with the full body of Catholic teaching: the Catholic Encyclopedia contains not only precise statements of what the Church has defined, but also an impartial record of different views of acknowledged authority on all disputed questions.</p>
<p><a href="http://divine-office.com/get/catholicpedia"><img src="http://divine-office.com/mailing/2011-12-Kindle-Fire/1-appstore.png" alt="available on the app store" /></a></p>
<h3>Features highlights</h3>
<p><strong>Over 11,000 articles have been categorized by letter and related by tags.</strong> The App includes:</p>
<ul>
<li>a powerful multi-keyword search engine,</li>
<li>a tags browser to drill down to specific topics and articles,</li>
<li>sortable favorites,</li>
<li>sharing via eMail, Facebook,</li>
<li>AirPrint support,</li>
<li>read in portrait or landscape,</li>
<li>change font size and color scheme</li>
</ul>
<p>The easy of use and these great features make Catholicpedia the most convenient way to access and carry in your pocket the full 15 Volumes of the Original Catholic Encyclopedia (1917).</p>
<h3>The Catholic Encyclopedia</h3>
<p>The Catholic Encyclopedia, proposes to give its readers full and authoritative information on the entire cycle of Catholic interests, action and doctrine. What the Church teaches and has taught; what she has done and is still doing for the highest welfare of mankind; her methods, past and present; her struggles, her triumphs, and the achievements of her members, not only for her own immediate benefit, but for the broadening and deepening of all true science, literature and art — all come within the scope of the Catholic Encyclopedia.</p>
<p>The Encyclopedia bears the imprimatur of the Most Reverend Archbishop under whose jurisdiction it is published. In constituting the Editors the ecclesiastical censors, he has given them a singular proof of his confidence and of his desire to facilitate the publication of the work which he has promoted most effectively by his influence and kindly co-operation.</p>
<p>The Encyclopedia was designed to serve the Roman Catholic Church, concentrating on information related to the Church and explaining matters from the Catholic point of view. It records the accomplishments of Catholics and others in nearly all intellectual and professional pursuits, including artists, educators, poets and scientists. While more limited in focus than other general encyclopedias, it was far broader in scope than previous efforts at comprehensive Catholic encyclopedias. It offers in-depth portrayals of historical and philosophical ideas, persons and events, from a Catholic perspective, including issues that divide Catholicism from Protestantism and other faith communities.</p>
<p><strong style="font-size: 11px;">Citations: The Catholic Encyclopedia Original Preface (1917) and Wikipedia.</strong></p>
<h3>About Divine Office</h3>
<p>The <strong>Divine Office Catholic Ministry</strong>, in partnership with <strong>Surgeworks, Inc.</strong>, is the developer of several apps including Divine Office &#8211; Liturgy of the Hours, an iPhone, iPod and iPad app for the universal prayer of the Roman Catholic Church. Divine Office was selected as the recipient of The NY Times Company’s About.com Readers’ Choice Award 2011 for “The Best Catholic Website,” “The Best Catholic iPhone App,” “The Best Catholic iPad App” and “The Best Catholic Podcast.” Visit the Divine Office Website at <a href="http://divineoffice.org/">http://divineoffice.org</a> or view our award-winning apps on your favorite App Store:</p>
<div align="center"><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=301349400"><img src="http://divine-office.com/mailing/2011-12-Kindle-Fire/1-appstore.png" alt="" /></a> <a href="http://divine-office.com/get/divine-office-android"><img src="http://divine-office.com/mailing/2011-12-Kindle-Fire/2-android-market.png" alt="" /></a> <a href="http://itunes.apple.com/us/artist/surgeworks-inc./id301349400?mt=12"><img src="http://divine-office.com/mailing/2011-12-Kindle-Fire/3-mac-appstore.png" alt="" /></a> <a href="http://divine-office.com/get/divine-office-nokia"><img src="http://divine-office.com/mailing/2011-12-Kindle-Fire/4-nokia-ovi.png" alt="" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/surgeworks-launches-catholicpedia-the-original-catholic-encyclopedia-for-iphone-ipad-and-ipod-touch-press-release/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Responsive Web Design Using Compass [Revised]</title>
		<link>http://surgeworks.com/blog/responsive-web-design-using-compass-revised</link>
		<comments>http://surgeworks.com/blog/responsive-web-design-using-compass-revised#comments</comments>
		<pubDate>Fri, 28 Oct 2011 18:44:30 +0000</pubDate>
		<dc:creator>Lyssandro Reis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Responsive Web]]></category>
		<category><![CDATA[Sass]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3677</guid>
		<description><![CDATA[The responsive web design comes as a solution to better display content across tablets, mobiles phones and laptops of the most varied screen sizes and resolutions. In order to achieve a responsive layout, all we need is: a Flexible grid, Flexible Content (Images and Media) and CSS Media Queries. The use of these three main [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-3432" title="Responsive Web Design Using Compass" src="http://surgeworks.com/wp-content/uploads/2011/07/featured-rwd-sw-0.jpg" alt="How to build a responsive grid with compass" width="550" height="250" /></p>
<p>The responsive web design comes as a solution to better display content across tablets, mobiles phones and laptops of the most varied screen sizes and resolutions. In order to achieve a responsive layout, all we need is: a Flexible grid, Flexible Content (Images and Media) and CSS Media Queries.</p>
<p>The use of these three main elements makes it possible for us to create websites that respond to the device or browser window size, adjusting the content accordingly in order to offer a better reading experience, should you be hunching over an iPhone on a busy train or comfortably sitting in front of a 30″ LCD shopping for dog food.</p>
<p>This is an experiment that combines the Responsive Design Layout practices to the Compass/Sass framework, in an attempt to cut back on the time and effort needed to achieve a Responsive web page.</p>
<p style="text-align: center;"><a class="bt-link" href="http://surgeworks.github.com/responsive-web-design-using-compass/"><span> </span>Live demo</a> <a class="bt-download" href="https://github.com/surgeworks/responsive-web-design-using-compass"><span> </span>Sample code</a></p>
<h2>What is Compass/Sass?</h2>
<p><a href="http://compass-style.org">Compass</a> is an open-source CSS Authoring Framework originally created to enable the use of Blueprint framework with <a href="http://sass-lang.com/">Sass</a>. Since then, Compass has become a “Swiss Army Knife” of tools and utilities with a crescent list of plug-ins that makes it possible to combine different frameworks in one project with ease. Most of the famous frameworks, such as: <a href="https://github.com/nextmat/compass-960-plugin">960gs</a>, <a href="https://github.com/sporkd/compass-html5-boilerplate">Boilerplate</a>, <a href="https://github.com/willhw/compass-less-plugin">Less Framework</a> are already available for Compass.</p>
<p>Sass is the language in which Compass is built upon &#8211; Try not to mix Sass language and SASS syntax. Sass compiles the style-sheets and bring some powerful features for CSS writing, such as mixins, functions, variables, efficient nesting of selectors, properties and <a href="http://sass-lang.com/">much more</a>.</p>
<p>Compass and Sass have co-evolved to become a powerful and versatile platform &#8211; many current features of Sass has been driven by Compass.</p>
<h3>Sass Syntax</h3>
<p>Sass offers two syntaxes for us to use. The SASS Syntax (yes, same name) and the SCSS Syntax.</p>
<p>The SASS syntax is the first one created. It is a white space aware and indented syntax that instead of brackets and semicolons, it uses indentation to specify blocks; and tabulation to specify nesting. It is the syntax used on the sample code provided.</p>
<p>Although SASS was the first syntax offered, it does not mean that it is a deprecated one. Both syntax are current and will be always supported.</p>
<p>The SCSS &#8211; or Sassy CSS, is a newly created syntax to be a super-set of  CSS3. It means that a valid CSS3 stylesheet is also a valid SCSS. You can even paste your CSS into a SCSS and it will be compiled just fine. There are some differences between the two syntaxes in terms of the use of mixins and includes, but even the busiest developer can start using Compass in their next project with no need to learn another syntax.</p>
<p>I personally think that CSS isn’t a wise syntax and I appreciate typing less, that’s why I use SASS instead of SCSS. However, it is just a matter of which one you want to go with. As Nathan Weizenbaum , Sass Language creator and maintainer posted about: The Indented <a href="http://nex-3.com/posts/102-the-indented-sass-syntax-is-here-to-stay">Sass Syntax is Here to Stay</a></p>
<p>You can <a href="http://sass-lang.com/try.html">try the SASS syntax</a> online.</p>
<h3>Why use Compass?</h3>
<p>Compass will massively cut back the amount of code you will need to write, simplify the maths and give you much more control over the grid. Furthermore, you won’t need to clutter your markup with semantic-less rubbish or cripple your project scalability and changeability.</p>
<p>For example, that’s how we would use 960gs without Compass:</p>
<p><code>&lt;div id=”main” class=”grid_9”&gt;<br />
&nbsp;&nbsp;&lt;article class=”grid_6 alpha”&gt;<br />
&nbsp;&nbsp;&lt;/article&gt;<br />
&nbsp;&nbsp;&lt;aside class=”grid_3 omega”&gt;<br />
&nbsp;&nbsp;&lt;/aside&gt;<br />
&lt;/div&gt;</code></p>
<p>Notice all the extra classes you have added to your markup. If you need to change the design later on, you will need to go after these classes and replace them. If you are using a complex PHP framework, it would be a nightmare to hunt them down in different templates, include files etc. Phew&#8230;</p>
<p>If you use Compass, you won’t need to add any additional classes to your markup. You will only need to use normal selectors to specify your grid:</p>
<p><code>#main<br />
&nbsp;&nbsp;+grid(9)<br />
&nbsp;&nbsp;+omega<br />
&nbsp;&nbsp;article<br />
&nbsp;&nbsp;&nbsp;&nbsp;+grid(6,9)<br />
&nbsp;&nbsp;aside<br />
&nbsp;&nbsp;&nbsp;&nbsp;+grid(3,9)<br />
&nbsp;&nbsp;&nbsp;&nbsp;+omega</code></p>
<p>That’s how your CSS will be compiled:</p>
<p><code>#main {<br />
&nbsp;&nbsp;display: inline;<br />
&nbsp;&nbsp;float: left;<br />
&nbsp;&nbsp;margin-left: 10px;<br />
&nbsp;&nbsp;margin-right: 10px;<br />
&nbsp;&nbsp;width: 700px;<br />
&nbsp;&nbsp;margin-right: 0;<br />
}<br />
#main article {<br />
&nbsp;&nbsp;display: inline;<br />
&nbsp;&nbsp;float: left;<br />
&nbsp;&nbsp;margin-left: 10px;<br />
&nbsp;&nbsp;margin-right: 10px;<br />
&nbsp;&nbsp;width: 620px;<br />
}<br />
#main aside {<br />
&nbsp;&nbsp;display: inline;<br />
&nbsp;&nbsp;float: left;<br />
&nbsp;&nbsp;margin-left: 10px;<br />
&nbsp;&nbsp;margin-right: 10px;<br />
&nbsp;&nbsp;width: 300px;<br />
&nbsp;&nbsp;margin-right: 0;<br />
}<br />
</code></p>
<p>Should you change your page layout later on, all you will have to do is to adjust the grid mixins on your .sass file and re-compile your CSS. Likewise, if you are looking for achieving a responsive layout, it will enable you to attribute different grid values to the same element using media-queries &#8211; that class won’t be on your way! It just makes life so much easier&#8230;</p>
<p>Not convinced yet? Compass brings tons of helpers and keeps you from repeating declarations for different browsers, different projects etc. Furthermore, you don’t have to collect and maintain an extensive library of snippets a-n-y-m-o-r-e! Time for the schmaltzy CSS lovers to look for another hobby.</p>
<p><strong>Example:</strong></p>
<p>I write:</p>
<p><code>div.mybox<br />
&nbsp;&nbsp;+border-radius(4px)<br />
&nbsp;&nbsp;&nbsp;&nbsp;a<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+replace-text("btn.jpg",50px,30px)<br />
</code></p>
<p>Compass writes for me:</p>
<p><code>div.mybox {<br />
&nbsp;&nbsp;-moz-border-radius: 4px;<br />
&nbsp;&nbsp;-webkit-border-radius: 4px;<br />
&nbsp;&nbsp;-o-border-radius: 4px;<br />
&nbsp;&nbsp;-ms-border-radius: 4px;<br />
&nbsp;&nbsp;-khtml-border-radius: 4px;<br />
&nbsp;&nbsp;border-radius: 4px;<br />
}</p>
<p>div.mybox a {<br />
&nbsp;&nbsp;text-indent: -119988px;<br />
&nbsp;&nbsp;overflow: hidden;<br />
&nbsp;&nbsp;text-align: left;<br />
&nbsp;&nbsp;background-image: url('../images/btn.jpg');<br />
&nbsp;&nbsp;background-repeat: no-repeat;<br />
&nbsp;&nbsp;background-position: 50px 30px;<br />
}<br />
</code></p>
<p>I needed to write 4 lines of code and Sass/Compass has written 16 lines of valid CSS code. This is just an example, see what Compass brings on its <a href="http://compass-style.org/reference/compass/">core</a>.</p>
<h3>Advantages</h3>
<p>Besides the fact that it is free, the greatest advantage of using Sass/Compass is that it is designer friendly, easy to use, quick to install and very well <a href="http://compass-style.org/reference/compass/">documented</a>.  You don’t have to understand Ruby to make it work. If you know CSS and HTML, you are set and most modern <a href="http://sass-lang.com/editors.html">code editors</a> offer support to SASS/SCSS Syntax.</p>
<p>The output is just a neat and clean CSS ready to be deployed. Compass does not require any extra server configuration or client side requirements. Unlike lesscss, although it also enables you to use variables, mixins, operations etc, it relies on an additional JavaScript on the client or server side.</p>
<p>Compass is project aware. Besides the project configuration file that allows you to specify your project directories or use a relative path to the stylesheet, you can use a variable or url function to specify the url to asset hosts should you be serving over a web-server. It keeps your stylesheets safe from environmental differences.</p>
<h3>Installation</h3>
<p>If you are on a Mac, the installation is pretty straight forward. Open your Terminal and type:</p>
<p><code>$ sudo gem install compass</code></p>
<p>Type your password.</p>
<p>Then, to confirm the installation:</p>
<p><code>$ compass version</code></p>
<p>It’s been successfully installed if you read:</p>
<p><code>Compass 0.11.5 (Antares)<br />
Copyright (c) 2008-2011 Chris Eppstein<br />
Released under the MIT License.<br />
Compass is charityware.<br />
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass</code></p>
<h4>Windows</h4>
<p>If you are using windows, you need to install <a href="http://rubyinstaller.org/">Ruby</a> first, then follow the steps above.</p>
<h3>Susy Grid Compass’ Plug-in</h3>
<p>For this experiment, I used Susy grid plug-in. It is the first time I am using Susy and it has proven to be the best fit for this project, as we have the option to not use side gutters and we can use percentage for achieving a flexible grid. I am quite convinced that Susy is, so far, the best grid I have worked with.</p>
<p>To install, you need to go on to your Terminal and type:</p>
<p><code>$ sudo gem install compass-susy-plugin</code></p>
<p>Remember to take some time to have a look at the <a href="https://github.com/ericam/compass-susy-plugin">Susy documentation</a>, so you can better understand its usage.</p>
<h3>Using Compass</h3>
<p>Let’s say you are creating a new compass project using Susy. All you have to do is to open your Terminal, go to the directory of your choice and type:</p>
<p><code>$ compass create project_name -r susy -u susy --syntax sass</code></p>
<p><em><strong>Note:</strong> if you don’t use –syntax sass, the project will be created using SCSS syntax by default.</em></p>
<p>If you are more familiar with the SCSS syntax, you can convert the SASS files I have provided using the command line:</p>
<p><code>$ sass-convert screen.sass screen.scss<br />
$ sass-convert _base.sass _base.scss</code></p>
<p>To start working, you need to let compass know that you are changing your <em>.sass</em> files. To do that, you have to go to your project directory on Terminal and type:</p>
<p><code>$ compass watch</code></p>
<p>From now on, every time you save one of your <em>.sass</em> files, Compass will compile the <em>.css</em> file to the <em>/stylesheets/</em> folder. All you have to do is to import this file into your HTML file.</p>
<p>While I was writing this article I found out that there’s a <a href="http://compass.handlino.com/">GUI</a> for creating projects with Compass. I haven’t tested it yet, but if you find it hard to use the command line you can check it out. It runs on Windows, Linux and Mac.</p>
<h4>Project Structure</h4>
<p>Compass will create a folder called project_name, containing:</p>
<p><code>/config.rb<br />
/sass/_base.sass<br />
/sass/screen.sass<br />
/stylesheets/ screen.css</code></p>
<p>The files with underscore <em>“_”</em> at the beginning are considered partials. The <em>_base.sass</em>, contains all the imports and the grid parameters that are to be imported at the top of <em>screen.sass</em> file. I also like to put the reset, all the varies, font-face and mixins in the <em>_base.sass</em> as well.</p>
<p>The <em>screen.sass</em> will have all our page styles followed by our media queries.</p>
<p>The <strong>config.rb</strong> will contain your project paths and will also have a few other configuration options that come briefly commented. It is a Ruby file and you can do quite a lot with it if you poke around. For example, when you finish your project you may want to compile your stylesheet in a minified version, then all you have to do is to use the declaration:</p>
<p><code>output_style = :compressed</code></p>
<p>If you are going to use relative paths and you are not using a local web-server, you will need to uncomment the line:</p>
<p><code>relative_assets = true</code></p>
<p>Remember to comment it out again when you deploy it to production. See more about the <a href="http://compass-style.org/help/tutorials/configuration-reference/">config.rb</a> file.</p>
<h3>Debugging on Compass</h3>
<p>If you are not using the compressed output style, the CSS generated by Compass is organized and commented. If you inspect an element, the comments on the CSS file will refer you to the line of the <em>.sass</em> declaration that targets this element.</p>
<p>Whenever you save the file, if there’s something wrong, compass will tell you which line and which file you messed up.</p>
<p>If you are new to Sass, pay attention to the indentation. If you don’t use the same indentation or forget the correct spacing, it will not work.</p>
<p><strong>Example:</strong></p>
<p>It is fine to write:</p>
<p><code>#my_box<br />
&nbsp;&nbsp;float: left</code></p>
<p>But, it will not work if you forget the space between the attribute and the value:</p>
<p><code>#my_box<br />
&nbsp;&nbsp;float:left</code></p>
<p>I am just saying that because I have lost quite a few minutes cursing at the code as I couldn’t see anything wrong.</p>
<h2>Getting into the Responsive Layout</h2>
<p>This article exemplifies the combination of Vertical Rhythm and Susy Grid Frameworks to achieve a Responsive Layout using Compass to compile our <em>stylesheets</em>.</p>
<h3>1. Defining the flexible grid</h3>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-01-revision.png" alt="The flexible grid - 20 Columns" title="The flexible grid - 20 Columns" width="550" height="282" class="alignnone size-full wp-image-3688" /></p>
<p>First of all, your mockup has to be organized into columns. You may already have your favorite grid. As I am used to the <a href="http://960.gs/">960gs</a>, I usually start all my designs using the <a href="http://960.gs/">.psd files</a> provided by them – you can add columns manually if you need. The column width will give us the basis to find the relative values that will be used to configure our grid.</p>
<p>Susy allows us to choose the number of columns and gutter size according to necessity. For this layout we are using 20 columns. As our design has two background images that go across the browser window. I am trying something different here, we will not use margin to position the container in the middle of the window or use the grid side gutters. I have used the columns themselves to specify the space allowed between our content and the actual browser window sides, we will have better control of the grid across the devices.</p>
<p>Here’s what I mean by that:</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-02-revision.png" alt="Smaller and Bigger screens side gutter representation" title="Smaller and Bigger screens Side Gutter representation" width="550" height="282" class="alignnone size-full wp-image-3689" /></p>
<p>The best thing about using a grid framework, is that we will not have to do these calculations for every element, margin and padding we need. For all the settings of width, we will use the grid.</p>
<p>Please, now open the file <em>_base.sass</em>.</p>
<p><code>$total-width: 1180px<br />
$total-cols: 20<br />
$col-width-abs: 40px<br />
$col-width: $col-width-abs / $total-width * 100%<br />
$gutter-width-abs: 20px<br />
$gutter-width: $gutter-width-abs / $total-width * 100%<br />
$side-gutter-width: 0<br />
</code></p>
<p>These are our grid constants, since our grid is going to be flexible, the width values are going to be in percentage, for doing that, all we have to do is to divide the column width by its context.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-03-revision.png" alt="40px wide columns and 20px gutters size." title="40px wide columns and 20px gutters size." width="550" height="282" class="alignnone size-full wp-image-3690"></p>
<p>As our mockup is 1180px wide, we have 20 columns and each column is 40px wide, we use the following formula to calculate the grid percentages on-the-fly. </p>
<p><strong>Finding the column width in percentage:</strong></p>
<p><code>$col-width-abs: 40px<br />
$col-width-abs / $total-width * 100%</code></p>
<p><strong>To find the gutter in percentage we use the same logic:</strong></p>
<p><code>$gutter-width-abs: 20px<br />
$gutter-width: $gutter-width-abs / $total-width * 100%</code></p>
<p>Having done that, we now have our flexible grid. Thanks Tobias for the <a href="https://github.com/surgeworks/responsive-web-design-using-compass/pull/1">contribution</a>.</p>
<h4>Flexible Images</h4>
<p>The textual content will flow naturally as we expand and contract our grid, but the images are still in need of a bit of CSS to assume a fluid quality. It is very simple, we can sort this out with one general declaration:</p>
<p><code>img<br />
&nbsp;&nbsp;max-width: 100%</code></p>
<p>This way, the maximum width the image will assume is its container width. We can also apply max-width to embedded videos and so on, so let’s make it more interesting:</p>
<p><code>img, embed, object, video<br />
&nbsp;&nbsp;max-width: 100%</code></p>
<p>If you still care about IE6, you better know that it does not support max-width. So, we need to use another declaration to go around it.</p>
<p>For this project, we are using a conditional &lt;html&gt; tag that gives us the means to fix some compatibility issues for IE. So, we will use the declaration:</p>
<p><code>.ie6<br />
&nbsp;&nbsp;img, embed, object, video<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 100%</code></p>
<p>It will make all the images take the whole width of its container, which may work just fine in most cases. For small images and thumbnails, you may need to use more specific declarations.</p>
<h3>2. Implementing the Vertical Rhythm</h3>
<p>Some might find it better to work the typography size also using percentage whereas, I prefer to have more control over the typography without having to worry about nested elements, relative values etc. For this reason, I decided to use the Vertical Rhythm, another framework that comes integrated with Compass.</p>
<p>It works like a vertical grid that makes it much easier to attribute vertical margin and padding to our page elements. It means that you can also design and distribute your typography and container heights following a vertical grid, or rhythm.</p>
<p>I like to configure my Photoshop grid as you can see below. Then, I can toggle the grid using the shortcut cmd + ” ‘ “.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-04-revision.png" alt="Easy way to refer to the vertical rhythm on Photoshop" title="Easy way to refer to the vertical rhythm on Photoshop" width="550" height="96" class="alignnone size-full wp-image-3691"></p>
<p>On <em>_base.sass</em>, we define the constants of our vertical rhythm:</p>
<p><code>$base-font-size: 14px<br />
$base-line-height: 17px</code></p>
<p>It means that a due text line, if we don’t specify otherwise, will assume the font-size of 14px and the line-height of 17px as default values.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-052-revision.png" alt="Vertical Rhythm size demonstration" title="Vertical Rhythm size demonstration" width="550" height="240" class="alignnone size-full wp-image-3698" /></p>
<p>Then, for all font size declarations we will use the mixin <em>+adjust-font-size-to(font-size in pixels)</em>.  Compass will then, convert the font sizes from px to em and fit it into the vertical rhythm automatically. Likewise, If you need to adjust the line-height, you will use <em>+adjust-leading-to(number of lines)</em>.</p>
<h5>Quick Reference</h5>
<p><em>+padding-leader(1)</em> – Adds 17px padding to the top of a due element.<br />
<em>+padding-trailer(1)</em> – Adds 17px padding to the bottom of a due element.</p>
<p><em>+margin-leader(1)</em> – Adds 17px margin to the top of a due element.<br />
<em>+margin-trailer(1)</em> – Adds 17px margin to the bottom of a due element.</p>
<p><em>+adjust-font-size-to(32px)</em> – Changes the font-size to 32px<br />
<em>+adjust-leading-to(2)</em> – Changes the line-height to 34px</p>
<p><strong>Note:</strong> The line height is relative to the constant<em> $base-line-height: 17px</em> – in our case the constant is 17px. The number you specify for the leader, trailer and leading will be multiplied by the constant, then converted to its relative value in <em>ems</em>. Don’t worry about nested elements etc, Compass will do the maths for you.</p>
<p>Find out more about the <a href="http://compass-style.org/reference/compass/typography/vertical_rhythm/">vertical rhythm usage</a>.</p>
<h3>Fix all the Weirdness</h3>
<p>Right, we have created our flexible grid, made our images flexible and setup our vertical rhythm. But if you scale the screen you will face some weird columns, and line breaks that make no sense at all.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-06-revision.png" alt="How flexible grids behave without Media Queries - Time to fix the weirdness" title="How flexible grids behave without Media Queries - Time to fix the weirdness" width="550" height="282" class="alignnone size-full wp-image-3692" /></p>
<p>Our last step is to fix it all using Media Queries.</p>
<h4>Media Queries</h4>
<p>Media queries are expressions that allow us to target a group of CSS declarations to some specific device capabilities. If the device does not match to the query, the declarations are ignored. For example:</p>
<p><code>@media screen and (max-width: 480px) { ... }</code></p>
<p>In this case, the device has a screen 480px wide or less, the styles of this query are applied. If not, they are ignored.</p>
<p>You can also use the media-queries in sequence:</p>
<p><code>@media screen and (device-width: 768px) and (orientation: portrait) {  ...  }</code></p>
<p>See some more <a href="http://css-tricks.com/snippets/css/media-queries-for-standard-devices/">examples</a> of media queries and read more about the W3C <a href="http://www.w3.org/TR/css3-mediaqueries/#media1">specifications</a>.</p>
<p>Now, let’s take a look at the Media Queries used for this experiment:</p>
<h4>@media screen and (max-width: 480px)</h4>
<p>On this query we are basically re-arranging the main and secondary content area grid to assume one column layout and two columns layout for the footer. </p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-09-revision.png" alt="Media Query - Max-width screen 480px - Content View" title="Media Query - Max-width screen 480px - Content View" width="550" height="282" class="alignnone size-full wp-image-3693" /></p>
<p>In devices with smaller screens, you may also want to adjust the typography. The vertical rhythm makes it simple. You can just override the Vertical Rhythm values at the beginning of each query. For this query:</p>
<p><code>$base-line-height: 16px<br />
&nbsp;&nbsp;+establish-baseline(12px)</code></p>
<p>Which sets the vertical rhythm from 17px to 16px for all devices with screens less than 480px wide. After this declaration, all typography, margin and padding will be automatically adjusted to the new rhythm, and the font baseline will be 12px by default. Just remember to use the Vertical Rhythm mixins to adjust the font size, leading, margin/padding leading and trailer, as I explained above.</p>
<p>Some may prefer to use percentage and assign relative values to the whole typography. I personally think that it can be a bit confusing, specially if you are collaborating on a project that may suffer revisions and you probably don’t want to spend too much time with maths.</p>
<p>The same happens for the grid values, as we don’t have those nonsense classes littering our markup, you can just attribute new grid values to every element according to necessity.</p>
<h4>@media screen and (max-width: 710px)</h4>
<p>This is an intermediary query that makes the footer go from two columns, to three columns, before assuming the four columns layout you can check when the browser window is wider than 710px. It also makes the transition from three columns to two, and finally, to one column on the <em>#secondary</em> container above the footer.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-10-revision.png" alt="Media Query - Max-width screen 710px - Footer view" title="Media Query - Max-width screen 710px - Footer view" width="550" height="282" class="alignnone size-full wp-image-3694" /></p>
<h4>@media screen and (max-width: 840px)</h4>
<p>The main call for this query is to keep the logo and the navigation from running into each other. When the screen is smaller than 840px wide, the navigation will appear underneath the centralized logo. </p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-11-revision.png" alt="Media Query - Max-width screen 840px - Header view" title="Media Query - Max-width screen 840px - Header view" width="550" height="282" class="alignnone size-full wp-image-3695" /></p>
<h4>@media screen and (max-width: 1024px)</h4>
<p>Remember that we are not using side gutters, we were actually using a grid column to build space for the sides. For all screens 1024px wide or smaller are going to assume one column to the sides, while bigger screens are assuming two.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-12-revision1.png" alt="Media Query - Max-width screen 1024px - Content view" title="Media Query - Max-width screen 1024px - Content view" width="550" height="282" class="alignnone size-full wp-image-3699" /></p>
<p>This Media Query also makes the transition from two to three columns of the main content, as well as re-adjust the Vertical Rhythm and font sizes.</p>
<h4>@media screen and (min-width: 1500px)</h4>
<p>This media query makes the page heading aligned to the center and sets another Vertical Rhythm.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/10/rwd-img-13-revision.png" alt="Media Query - Max-width screen 1500px - Desktop overall view" title="Media Query - Max-width screen 1500px - Desktop overall view" width="550" height="282" class="alignnone size-full wp-image-3697" /></p>
<h4>The View-port meta element</h4>
<p>The webkit mobile browsers comes with a default feature that scales the web content down to match the device width, even with a flexible grid and media queries in place.</p>
<p>To get around it, we need to add a meta element to the header of the html that will set the zoom of the page to 100% and match the browser size to the device screen size.</p>
<p><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</code></p>
<p>There are <a href="http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html">a few options</a> that you may consider using for more specific situations.</p>
<h2>Conclusion</h2>
<p>My main concern in this experiment, was to make the transition between the devices iPhone, iPad and Desktop perform the best way possible, as well as keeping the layout flow as good as I could as you scale your browser window.</p>
<p>By using the max and min-width attribute, you will find a way to sort most of the issues by adding auxiliary queries in between.</p>
<p>Try commenting off the queries you will find in the sample code and see it for yourself. To comment in SASS and SCSS syntax, you need to add “ // ” in front of the lines you want to comment.</p>
<h3>Compatibility</h3>
<p>Media Queries are supported in most modern desktop browsers, including IE9. However, it does not work up to Internet Explorer 8. Thankfully there are people fixing Microsoft’s fails with a bit of JavaScript and the will to make web-designers happy.</p>
<p>Scott Jehl, developed a small script called <a href="https://github.com/scottjehl/Respond">Respond</a>, that enables media queries support on Internet Explore 8 and under. Unfortunately, we need to rely on JavaScript for patching other IE versions, there’s no way around it.</p>
<p><strong>Note:</strong> I haven’t added media queries fallback on the sample code.</p>
<h3>Responsive web-design beyond the technique</h3>
<p>This article has a strong focus on the technical part of how to build a responsive page. All I have done was to convert a non-responsive page, into a responsive one in order to achieve a framework that will offset the time needed to achieve a responsive page.</p>
<p>What I have learnt from this experiment, goes beyond the fact that the page adjusts itself to the width of the browser;  we need to consider also the context in which the user is in while reading our content, what are the singularities of the devices and make the effort to offer the best experience possible.</p>
<p>Just as an example, I haven’t made many changes to the design at all. If you consider that on the iPhone, our user will need to tap the links with his finger, the footer may need a different solution for keeping the user from tapping in two links at the same time. What I am trying to say is that, if this page had been planned to be responsive from start, it would be designed quite differently in many aspects.</p>
<p>Therefore, the best way to achieve a responsive design is planning and wire-framing the experience for the devices you are targeting and the audience you are communicating with. There are those who believe that for different contexts, we need different markups, different contents. I believe it is a valid approach, the way to go will depend on your objective, the content itself and the audience.</p>
<p>This experiment will bring to you a different surgeworks.com soon enough, stay put with us and don’t forget to leave your comments.</p>
<h4>Example of Responsive websites</h4>
<p><a href="http://forefathersgroup.com">forefathersgroup.com</a><br />
<a href="http://hicksdesign.co.uk">hicksdesign.co.uk</a><br />
<a href="http://simplebits.com">simplebits.com</a><br />
<a href="http://morehazards.com">morehazards.com</a><br />
<a href="http://massimobonini.com">massimobonini.com</a><br />
<a href="http://10k.aneventapart.com">10k.aneventapart.com</a></p>
<h4>Read more about Sass, Compass and Responsive Web Design</h4>
<p><a href="http://www.abookapart.com/products/responsive-web-design">Responsive Web Design by Etthan Marcotte</a><br />
<a href="http://www.alistapart.com/articles/responsive-web-design/">Responsive Web Design – Article by Etthan Marcotte</a><br />
<a href="http://compass-style.org">compass-style.org</a><br />
<a href="http://sass-lang.com">sass-lang.com</a><br />
<a href="http://thesassway.com">thesassway.com</a><br />
<a href="http://susy.oddbird.net">susy.oddbird.net</a><br />
<a href="http://nex-3.com">nex-3.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/responsive-web-design-using-compass-revised/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello Brasilia!</title>
		<link>http://surgeworks.com/blog/lab-design/hello-brasilia</link>
		<comments>http://surgeworks.com/blog/lab-design/hello-brasilia#comments</comments>
		<pubDate>Tue, 30 Aug 2011 19:54:09 +0000</pubDate>
		<dc:creator>Ney Ricardo</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3599</guid>
		<description><![CDATA[Brasilia is the capital of Brazil (did you really think it was Rio or Buenos Aires?), and is located right in the middle of the Country. The city, curiously, was built in only five years (well, good part of it) and its structure has the shape of an airplane. I could cite a lot more [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-3601" title="JK Memorial" src="http://surgeworks.com/wp-content/uploads/2011/08/post-image.png" alt="JK Memorial" width="550" height="276" /></p>
<p>Brasilia is the capital of Brazil (did you really think it was Rio or Buenos Aires?), and is <a href="http://maps.google.com/maps?q=Bras%C3%ADlia+-+Brazilian+Federal+District,+Brazil&amp;hl=pt-BR&amp;ie=UTF8&amp;sll=-14.235004,-51.92528&amp;sspn=48.182406,79.013672&amp;vpsrc=0&amp;z=10" target="_blank">located right in the middle of the Country</a>.</p>
<p>The city, curiously, was built in only five years (well, good part of  it) and its structure has the shape of an airplane. I could cite a lot  more curiosities here but, since this post is about me you can <a href="http://en.wikipedia.org/wiki/Bras%C3%ADlia" target="_blank">read more about Brasilia at Wikipedia</a>.</p>
<p>After almost one year and a half working for Surgeworks remotely from home in a small city called <a href="http://maps.google.com/maps?q=campo+grande&amp;hl=pt-BR&amp;sll=37.0625,-95.677068&amp;sspn=40.409448,79.013672&amp;vpsrc=0&amp;z=9" target="_blank">Campo Grande</a>, I finally came to Brasilia to work and live in. Naturally, I miss a lot of my old pace of life: my friends, family, the  feeling of knowing where you are going even without a GPS. But I look at  these changes as progress.</p>
<p>All this time working remotely for Surgeworks and I hadn&#8217;t met some of my team mates in person yet, and when I first saw them it was like if we already knew each other from long time. And they received me really well, and introduced me to their families and friends, now I officially have 6 friends in the whole city (just kidding).</p>
<p>It took me some time to learn how to walk through the city. Different from what I was habituated, most of the streets here don&#8217;t have names. We have to locate the places for its &#8220;coordinates&#8221;, I mean, everything is divided into regions and each square has a number. Well, it&#8217;s hard to explain the logic in it, but it&#8217;s almost like playing battleship.</p>
<p>Between all the motivations that brought me here, the main aspect that I considered was: Working with the Brazilian crew, because all the Brazilian designers live here.</p>
<p>The team is very talented and I am always learning something new or something amazing. The meetings are faster and more objective. We often go to conferences related to our interests and then try to apply what we&#8217;ve learned. The brainstorm meetings are more efficient and we decide things faster than via Skype.</p>
<p>So, I don&#8217;t have what to complain about&#8230; till now.</p>
<p>Brasilia is a beautiful city. It will take some time for me to see everything good it has.</p>
<p>If you&#8217;re interested, you can take a look at some of the photos I took here. Just click the image below.</p>
<p><a href="http://www.flickr.com/photos/neyricardo/sets/72157627554291832/" target="_blank"><img class="aligncenter size-full wp-image-3607" title="flickr" src="http://surgeworks.com/wp-content/uploads/2011/08/flickr.png" alt="" width="550" height="163" /></a></p>
<p>Hope you like it. Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/lab-design/hello-brasilia/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HP TouchPad sold out, but WebOS has a not-so-bright future ahead.</title>
		<link>http://surgeworks.com/blog/hp-touchpad-sold-out-but-webos-has-a-not-so-bright-future-ahead</link>
		<comments>http://surgeworks.com/blog/hp-touchpad-sold-out-but-webos-has-a-not-so-bright-future-ahead#comments</comments>
		<pubDate>Mon, 29 Aug 2011 10:59:37 +0000</pubDate>
		<dc:creator>Mauro Dalu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[webOS]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3593</guid>
		<description><![CDATA[In my opinion, WebOS was extremely promising, but a couple years late. If HP acquired palm 12 months earlier they would have had better chances. I had a nice brief discussion about the HP TouchPad and WebOs the day the news came out. It was just very clear to me that WebOS and the TouchPad [...]]]></description>
			<content:encoded><![CDATA[<p>In my opinion, WebOS was extremely promising, but a couple years late. If HP acquired palm 12 months earlier they would have had better chances. I had a nice brief discussion about the HP TouchPad and WebOs <a href="http://mashable.com/2011/08/18/touchpad-ipad-tablet-wars/">the day the news came out</a>.</p>
<p>It was just very clear to me that WebOS and the TouchPad would have needed 2 or 3 iterations before gaining any traction and especially credibility, considering they had to convince the customers that the platform had a future after the acquisition.</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/08/palm-touchpad-top-300x187.jpg" alt="" title="palm-touchpad-top" width="300" height="187" class="aligncenter size-medium wp-image-3594" /></p>
<p>The product needed more differentiating factors and a more aggressive pricing, if they were serious they should have imposed a more competitive price tag and be available to even loose some money to get sales going like Microsoft did with the Xbox. Looks like TechCrunch is kind of <a href="http://techcrunch.com/2011/08/23/dear-hp-please-keep-making-those-touchpads/" target="_blank">on the same wave</a> on this.</p>
<p>After the initial announcement, HP clarified that they will not pull the plug on the whole WebOS team, but &#8220;just on the hardware&#8221;, at least for now. However, nowadays, people won&#8217;t see anything outside iOS, windows or android to have any future&#8230; And <a href="http://mashable.com/2011/08/18/touchpad-ipad-tablet-wars/" target="_blank">HP just proved them right</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/hp-touchpad-sold-out-but-webos-has-a-not-so-bright-future-ahead/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS 5 AirPlay Mirroring, Apple living room revolution coming this fall.</title>
		<link>http://surgeworks.com/blog/ios-5-airplay-mirroring-apple-living-room-revolution-coming-this-fall</link>
		<comments>http://surgeworks.com/blog/ios-5-airplay-mirroring-apple-living-room-revolution-coming-this-fall#comments</comments>
		<pubDate>Sat, 27 Aug 2011 10:38:58 +0000</pubDate>
		<dc:creator>Mauro Dalu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[User Experience]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3585</guid>
		<description><![CDATA[AirPlay Mirroring displays anything that appears on your iPad 2 onto your TV screen, wirelessly via the latest Apple TV box (the small black one). It works with the core iPad 2 interface as well as any apps, games, videos, and so on. It even adjusts for portrait or landscape mode, completely mirroring everything you [...]]]></description>
			<content:encoded><![CDATA[<p>AirPlay Mirroring displays anything that appears on your iPad 2 onto your TV screen, wirelessly via the latest Apple TV box (the small black one). It works with the core iPad 2 interface as well as any apps, games, videos, and so on. It even adjusts for portrait or landscape mode, completely mirroring everything you do with your iPad (thus the clever name).</p>
<p><img src="http://surgeworks.com/wp-content/uploads/2011/08/airplay2.jpeg" alt="" title="airplay2" width="363" height="262" class="aligncenter size-full wp-image-3586" /></p>
<p>This capability exists today to some degree in the form of AirPlay. You can stream video and audio from your iPad, iPhone and Mac to an Apple TV through enabled apps. Video mirroring is instead fully supported via an optional HDMI cable, but iOS 5 and Apple TV make it wireless. It also allows different things to be shown on the iPad and the TV screen, effectively giving you a dual-screen system.</p>
<p>I have already played with the existing AirPlay technology, effectively getting YouTube videos from the iPad to the TV screen wirelessly and while watching commenting the videos on social networks and checking email on the iPad.</p>
<p>I also have used CineXPlayer with the HDMI cable to watch DivX movies on the TV, while the iPad displays the remaining time on its screen.</p>
<p>With iOS 5 Airplay Mirroring, all Apps in the iTunes App Store will work and look great on your TV screen. Developers don&#8217;t have to do anything more: it&#8217;ll just work &#8212; as long as you have an iPad 2. In fact, it looks like this feature will only be available on the latest A5 chip.</p>
<p>Fortunately, it is very likely that the new iPhone and the next iPod Touch will both feature the A5 chip and support this feature.</p>
<p>iOS 5 wireless video mirroring and dual-display support opens up a huge world of opportunities for developers to create much more then media consumption apps.</p>
<p>The example everybody knows about is Real Racing 2 HD, that was reviewed by <a href="http://www.engadget.com/2011/06/17/real-racing-2-hd-wireless-dual-screen-gaming-with-ios-5-on-ipad/" target="_blank">Engadget</a> back in June.</p>
<p>The game will beam to your TV the in-car view while showing the track overview on your iPad. You use the iPad as a driving wheel to control the car on the screen.</p>
<p>Bottom line, this means once the new iPod Touch supporting AirPlay Mirroring comes out, that you can get an awesome gaming experience starting at 330 USD (99 for an Apple TV and 229 for an iPod Touch), which is about the cost of any gaming console.</p>
<p>But you get much more then that, because the new devices will allow you to do serious stuff on your TV screen, using the iPhone or the iPad as a controller. Think of iLife and iWork apps with a dual-display setup to create and show off your videos, music, presentations, video conferencing, just to name a few obvious things.</p>
<p>The key here is that you won&#8217;t get a sub-par experience like you do in today&#8217;s living room appliances ranging from gaming consoles like the Wii or the Xbox to the various media centers like Google&#8217;s, Microsoft&#8217;s or Roku&#8217;s: you get an Apple-quality &#8212; smooth, clean and pleasing &#8212; experience.</p>
<p>Finally, the living room revolution, the one that will bring TV Apps to the masses, is about to start.</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/ios-5-airplay-mirroring-apple-living-room-revolution-coming-this-fall/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social Commerce Exchange</title>
		<link>http://surgeworks.com/blog/news/social-commerce-exchange</link>
		<comments>http://surgeworks.com/blog/news/social-commerce-exchange#comments</comments>
		<pubDate>Wed, 03 Aug 2011 20:49:10 +0000</pubDate>
		<dc:creator>Ben Schmuhl</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Surgeworks]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3528</guid>
		<description><![CDATA[Surgeworks is proud to be a sponsor of the Social Commerce Exchange, a free event to learn how to use Social Media effectively to grow your business. Come learn from leading Social Commerce experts about real strategies you can implement within your company. The Social Commerce Exchange is a unique and collaborative conference format that [...]]]></description>
			<content:encoded><![CDATA[<p><img class=" alignleft" title="Social Commerce Exchange" src="http://www.surgeworks.com/temp/sce/logo.png" alt="Social Commerce Exchange" width="288" height="109" /></p>
<p>Surgeworks is proud to be a sponsor of the <a href="http://socialcommerceexchange.eventbrite.com">Social Commerce Exchange</a>, a free event to learn how to use Social Media effectively to grow your business. Come learn from leading Social Commerce experts about real strategies you can implement within your company.</p>
<p>The <a href="http://socialcommerceexchange.eventbrite.com">Social Commerce Exchange</a> is a unique and collaborative conference format that provides interactive learning sessions with leading experts and networking opportunities with like-minded businesses. Experts from Adobe, BlueGlass, KSL.com and others will lead discussions on:</p>
<ul>
<li>Effective Facebook and Twitter Strategies</li>
<li>Social Content Management</li>
<li>Social Media Measurement</li>
<li>Mobile Applications</li>
</ul>
<p>&nbsp;</p>
<p><strong>EVENT DETAILS</strong></p>
<ul>
<li><strong>Date</strong>: Thursday, September 8, 2011</li>
<li><strong>Time</strong>: 6:00-9:00 pm (Networking begins at 5:30)</li>
<li><strong>Location</strong>: Salt Lake Community College-Miller Campus, 9750 S 300 W Sandy, UT 84070</li>
<li>Post-conference refreshments provided by Costco</li>
</ul>
<p>If you are interested in attending the event, you can register (for free) at <a href="http://socialcommerceexchange.eventbrite.com">SocialCommerceExchange.Eventbrite.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/news/social-commerce-exchange/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bible App: awesome update coming to the Mac App Store!</title>
		<link>http://surgeworks.com/blog/bible-app-awesome-update-coming-to-the-mac-app-store</link>
		<comments>http://surgeworks.com/blog/bible-app-awesome-update-coming-to-the-mac-app-store#comments</comments>
		<pubDate>Tue, 19 Jul 2011 16:40:24 +0000</pubDate>
		<dc:creator>Mauro Dalu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[bible app]]></category>
		<category><![CDATA[divine office]]></category>
		<category><![CDATA[mac app store]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3515</guid>
		<description><![CDATA[The first Bible reader on the Mac App Store is just about to get a lot better, and it&#8217;s ready for Mac OS X Lion! We improved our Bible App on three main fronts: Contents, Navigation and Search features. The Bible App is so easy to navigate, you don’t need to be a scholar to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://surgeworks.com/wp-content/uploads/2011/05/Bible-App-01-300x187.png" alt="" title="Bible-App-01" width="300" height="187" class="size-medium wp-image-3024" /> The first Bible reader on the Mac App Store is just about to get a lot better, and it&#8217;s ready for Mac OS X Lion!</p>
<p>We improved our <a href="http://divine-office.com/get/bible-app" target="_blank">Bible App</a> on three main fronts: Contents, Navigation and Search features.</p>
<p>The Bible App is so easy to navigate, you don’t need to be a scholar to use it. It’s the Bible reader for the rest of us. The beautiful, elegant user interface allows you to dive into the Sacred Scriptures without all the clutter of Websites.</p>
<p>From the <a href="http://divine-office.com" target="_blank">Divine Office Catholic Ministry</a>, developers of the About.com “2011 Best iPhone, iPod and iPad Catholic Apps,” this beautifully crafted, simple to use Bible App is the perfect companion for daily inspiration and spiritual nourishment.</p>
<h3>Contents improvements</h3>
<ul>
<li>The Douay-Rheims Bible and the Latin Vulgate now include the full set of 73 books from the Catholic Canon (plus, some apocrypha books are also available).</li>
<li>The User Interface has been fully localized in English, Italian, German and French.</li>
</ul>
<h3>Navigation improvements</h3>
<ul>
<li>You can now select a chapter clicking on the current chapter number in the top right of the reading screen</li>
<li>You can now select a different book clicking on the book title in the reading screen</li>
<li>You can switch bible from the bible title in the reading screen</li>
<li>You can now set a default bible which will be pre-selected for searches and be shown as the first bible in your collection</li>
<li>The commands for each verse are now grouped in a menu that stays out of the way until you need it</li>
<li>You can now select a single word and look it up in the Dictionary or on Google</li>
</ul>
<h3>Search engine improvements</h3>
<ul>
<li>You can now search for multiple keywords, separated by spaces or comma (such as Jesus, Mary);</li>
<li>You can now search for an exact phrase enclosing it in quotes (such as &#8220;Let there be light&#8221;);</li>
<li>You can now get an entire chapter using standard notation (such as John 1);</li>
</ul>
<p><a href="http://divine-office.com/get/bible-app" target="_blank">Get Bible App today on the Mac App Store!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/bible-app-awesome-update-coming-to-the-mac-app-store/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dribbble invite contest winner</title>
		<link>http://surgeworks.com/blog/dribbble-invite-contest-winner</link>
		<comments>http://surgeworks.com/blog/dribbble-invite-contest-winner#comments</comments>
		<pubDate>Mon, 18 Jul 2011 23:13:51 +0000</pubDate>
		<dc:creator>Ney Ricardo</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tips & Resources]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3491</guid>
		<description><![CDATA[We are very proud to announce the winner of the Dribbble Invite Contest. After analyzing carefully the work of the participants we have finally chosen the one who is being invited today. We&#8217;d like to congratulate Felipe Luize for his creativity and simplicity with the wallpapers shown above. See Felipe&#8217;s winner tweet. If you like [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-3501" title="Dribbble invite Surgeworks contest winner" src="http://surgeworks.com/wp-content/uploads/2011/07/IMG_9098.png" alt="Dribbble invite Surgeworks contest winner" width="550" height="366" /></p>
<p>We are very proud to announce the winner of the Dribbble Invite Contest.</p>
<p>After analyzing carefully the work of the participants we have finally chosen the one who is being invited today.</p>
<p>We&#8217;d like to congratulate <a href="http://twitter.com/felipeluize">Felipe Luize</a> for his creativity and simplicity with the wallpapers shown above. See Felipe&#8217;s winner <a href="http://twitter.com/#!/felipeluize/status/85780501285179392">tweet</a>.</p>
<p>If you like it you can download the wallpapers here:</p>
<ul>
<li><a href="http://felipe.luize.com.br/other/felipeluize_surgeworks_iphone.jpg">iPhone version</a></li>
<li><a href="http://felipe.luize.com.br/other/felipeluize_surgeworks_ipad.jpg">iPad version</a></li>
</ul>
<p>Ah, don&#8217;t forget to follow <a href="http://dribbble.com/felipeluize">Felipe</a> and also <a href="http://dribbble.com/surgeworks">Surgeworks</a> on <strong>Dribbble</strong>.</p>
<p>Thanks to all the participants and stay tuned to our next contests.</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/dribbble-invite-contest-winner/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Responsive Web Design Using Compass – Part 2</title>
		<link>http://surgeworks.com/blog/responsive-web-design-using-compass-pt2</link>
		<comments>http://surgeworks.com/blog/responsive-web-design-using-compass-pt2#comments</comments>
		<pubDate>Mon, 11 Jul 2011 22:46:23 +0000</pubDate>
		<dc:creator>Lyssandro Reis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[Css3]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Media Queries]]></category>
		<category><![CDATA[Responsive Web]]></category>
		<category><![CDATA[Sass]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3437</guid>
		<description><![CDATA[Getting into the Responsive Grid On the first part of this post, I have explained a bit about Compass and how to get it running. Now let’s use Compass to build our Responsive Grid. To better understand what I will be explaining, I recommend you download the sample code and follow it as you read [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-3432" title="Responsive Web Design Using Compass" src="http://surgeworks.com/wp-content/uploads/2011/07/featured-rwd-sw-0.jpg" alt="How to build a responsive grid with compass" width="550" height="250" /></p>
<h2>Getting into the Responsive Grid</h2>
<p>On the first part of this post, I have explained a bit about Compass and how to get it running. Now let’s use Compass to build our Responsive Grid.</p>
<p>To better understand what I will be explaining, I recommend you download the sample code and follow it as you read this post.</p>
<p>&nbsp;</p>
<p style="text-align:center"><a class="bt-link" href="http://surgeworks.github.com/responsive-web-design-using-compass/"><span></span>Live demo</a> &nbsp; <a class="bt-download" href="https://github.com/surgeworks/responsive-web-design-using-compass"><span></span>Sample code</a></p>
<h3>Defining the flexible grid</h3>
<p>First of all, your mockup has to be organized into columns. You may already have your favorite grid. As I am used to the 960gs, I usually start all my designs using the .psd files provided <a href="http://960.gs/">here</a> &#8211; you can add columns manually if you need. The column width will give you the basis to find the relative values that will be used to configure our grid.</p>
<p><img class="alignnone size-full wp-image-3441" title="Responsive web-design with compass" src="http://surgeworks.com/wp-content/uploads/2011/07/rwd-img-01.png" alt="Ouw grid size" width="550" height="282" /></p>
<p>Susy allows us to choose the number of columns and gutter size according to necessity. For this layout we are using 20 columns. As our design has two background images that go across the browser window. I am trying something different here, we will not use margin to position the container in the middle of the window or use the grid side gutters. I have used the columns themselves to specify the space allowed between our content and the actual browser window sides, we will have better control of the grid across the devices.</p>
<p>Here&#8217;s what I mean by that:</p>
<p><img class="alignnone size-full wp-image-3440" title="Responsive web-design with compass" src="http://surgeworks.com/wp-content/uploads/2011/07/rwd-img-02.png" alt="Controlling the side margins using grid columns" width="550" height="282" /></p>
<p>The best thing about using a grid framework, is that we will not have to do these calculations for every element, margin and padding we need. For all the settings of width, we will use the grid.</p>
<p>Please, now open the <em>_base.sass</em>.</p>
<p><code>$total-cols: 20<br />
$col-width: 3.3898305084746%<br />
$gutter-width: 1.6949152542373%<br />
$side-gutter-width: 0<br />
</code></p>
<p>These are our grid constants, since our grid is going to be flexible, the width values are going to be in percentage, for doing that, all we have to do is to divide the column width by its context.</p>
<p><img class="alignnone size-full wp-image-3439" title="Responsive web-design with compass" src="http://surgeworks.com/wp-content/uploads/2011/07/rwd-img-03.png" alt="Configuring Susy flexible grid" width="550" height="282" /></p>
<p>As our mockup is 1180px wide, we have 20 column and each column is 40px wide, we use the formula:</p>
<p><strong>40 ÷ 1180 = 0.033898305084746</strong></p>
<p>The number looks pretty ugly, but it will make our grid work properly.</p>
<p>Now we need to transform this number into percentage, which can be done simply by moving the <em>&#8220;.&#8221;</em> two decimals to the right.</p>
<p>Which gives us <strong>3.3898305084746%</strong></p>
<p>No matter what, hold the urge to round this up to 3.38%, it will not work. You won&#8217;t be looking at this number very much after this, don&#8217;t worry.</p>
<p>To find the gutter we will do the same thing:</p>
<p><strong>20 ÷ 1180 = 0.016949152542373 = 1.6949152542373%</strong></p>
<p>Having done that, we now have our flexible grid.</p>
<h3>Flexible Images</h3>
<p>The textual content will flow naturally as we expand and contract our grid, but the images are still in need of a bit of CSS to assume a fluid quality. It is very simple, we can sort this out with one general declaration:</p>
<p><code>img<br />
&nbsp;&nbsp;max-width: 100%<br />
</code></p>
<p>This way, the maximum width the image will assume is its container with. We can also apply max-width to embedded videos and so on, so let&#8217;s make it more interesting:</p>
<p><code>img, embed, object, video<br />
&nbsp;&nbsp;max-width: 100%<br />
</code></p>
<p>If you still care about Ie6, you better know that it does not support max-width. So, we need to use another declaration to go around it.</p>
<p><code>.ie6<br />
&nbsp;&nbsp;img, embed, object, video<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 100%<br />
</code></p>
<p>It will make all the images take the whole width of its container, which may work just fine in most of cases. For small images and thumbnails, you may target using more specific declarations.</p>
<h3>Vertical Rhythm</h3>
<p>Some might find it better to work the typography size also using percentage whereas, I prefer to have more control over the typography without having to worry about nested elements, relative values etc. For this reason, I decided to use the Vertical Rhythm, another framework that comes integrated with Compass.</p>
<p>It works like a vertical grid that makes it much easier to attribute vertical margin and padding to our page elements. It means that you can also design and distribute your typography and container heights following a vertical grid, or rhythm.</p>
<p>I like to to configure my Photoshop grid as you can see below. Then, I can toggle the grid using the shortcut cmd + &#8221; &#8216; &#8220;.</p>
<p><img class="alignnone size-full wp-image-3443" title="Responsive web-design with compass" src="http://surgeworks.com/wp-content/uploads/2011/07/rwd-img-04.png" alt="Ninja tip for using the vertical rhythm" width="550" height="96" /></p>
<p>On <em>_base.sass</em>, we define the constants of our vertical rhythm:</p>
<p><code>$base-font-size: 14px<br />
$base-line-height: 17px<br />
</code><br />
It means that a due text line, if we don&#8217;t specify otherwise, will assume the <em>font-size</em> of 14px and the <em>line-height</em> of 17px as default values.</p>
<p><img class="alignnone size-full wp-image-3446" title="Responsive Web Design Using Compass" src="http://surgeworks.com/wp-content/uploads/2011/07/rwd-img-052.png" alt="Configuring our vertical Rhythm" width="550" height="240" /></p>
<p>Then, for all font size declarations we will use the mixin <em>+adjust-font-size-to(font-size in pixels)</em>.  Compass will then, convert the font sizes from <em>px</em> to <em>em</em> and fit it into the vertical rhythm automatically. Likewise, If you need to adjust the <em>line-height</em>, you will use <em>+adjust-leading-to(number of lines)</em>.</p>
<h4>Quick Reference</h4>
<p>+padding-leader(1)  &#8211;  <em>Adds 17px padding to the top of a due element.</em><br />
+padding-trailer(1)  &#8211;  <em>Adds 17px padding to the bottom of a due element.</em></p>
<p>+margin-leader(1)  &#8211;  <em>Adds 17px margin to the top of a due element.</em><br />
+margin-trailer(1)  &#8211;  <em>Adds 17px margin to the bottom of a due element.</em></p>
<p>+adjust-font-size-to(32px)</em> &#8211; <em> Changes the font-size to 32px</em><br />
+adjust-leading-to(2)</em> &#8211;  <em>Changes the line-height to 34px</em></p>
<p>Note: The line height is relative to the constant <em>$base-line-height: Npx</em> &#8211; in our case the constant is 17px. The number you specify for the leader, trailer and leading will be multiplied by the constant, then converted to its relative value in <em>ems</em>.  Don&#8217;t worry about nested elements etc, Compass will do the maths for you.</p>
<p>Find out more about the vertical rhythm usage <a href="http://compass-style.org/reference/compass/typography/vertical_rhythm/">here</a>.</p>
<h3>Media Queries</h3>
<p>Right, we have created our flexible grid, made our images flexible and setup our vertical rhythm. But if you scale the screen you will face some weird columns, and line breaks that make no sense at all.</p>
<p><img class="alignnone size-full wp-image-3442" title="Responsive web-design with compass" src="http://surgeworks.com/wp-content/uploads/2011/07/rwd-img-06.png" alt="Configuring the Media Queries" width="550" height="282" /></p>
<p>Our last step is to fix all the weirdness that is left using media queries.</p>
<p>Media queries are expressions that allow us to target a group of CSS declarations to the devices that match to the query. If the device does not match, the declarations contained in the query will be ignored.</p>
<p><code>@media screen and (max-width: 480px) { ... }</code></p>
<p>In this case, the device has a screen 480px wide or less, the styles of this query are applied. If not, they are ignored.</p>
<p>You can also use the media-queries in sequence:</p>
<p><code>@media screen and (device-width: 768px) and (orientation: portrait) {  ...  }</code></p>
<p>See some more examples of media queries <a href="http://css-tricks.com/snippets/css/media-queries-for-standard-devices/">here</a> ) and read more about the w3c specifications <a href="http://www.w3.org/TR/css3-mediaqueries/#media1">here</a>.</p>
<h4>Viewport meta element</h4>
<p>The webkit mobile browsers comes with a default feature that scales the web content down to match the device width, even with a flexible grid and media queries in place.</p>
<p>To get around it, we need to add a meta element to the header of the html that will set the zoom of the page to 100% and match the browser size to the device screen size.</p>
<p><code> &#60;meta name="viewport" content="width=device-width, initial-scale=1.0" /&#62; </code></p>
<p>There are a few options that you may consider using for more specific situations, click <a href="http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html">here</a> for more information.</p>
<h4>The Media Queries, the Grid and the Vertical Rhythm</h4>
<p>For this experiment, I am using three main media-queries and two auxiliary to better align the image in the <em>#secondary</em> container.</p>
<p>As we go from larger to smaller screens, all I am doing is re-organizing the grid and the vertical rhythm &#8211; which will attribute new values to the leading and font-sizes, aiming to create the best reading experience possible.</p>
<p>On the Desktop for instance, we are using two columns as margin for the <em>#page</em>, when the screen size drops to 1024px wide, it switches to one column, that ensures better use of space in the iPad and smaller devices.</p>
<p>My main concern, was to make the transition between the devices iPhone, iPad and Desktop the best way possible, as well as keeping the layout flow as good as I could as you scale your browser window.</p>
<p>There’s no set rule of how to organize your media queries, it all depends of the devices you want to target and how you want to organize your code; By using the max and min-width attribute, you will find a way to sort most of the issues by adding auxiliary queries in between.</p>
<p>Try commenting on the queries and see it for yourself. To comment in sass language, you need to add “ // ” in front of the lines you want to comment.</p>
<h4>Compatibility</h4>
<p>Media Queries are supported in most modern desktop browsers, including ie9. However, it does not work up to Internet Explorer 8.</p>
<p>Thankfully there are people fixing Microsoft’s fails with a bit javascript and the will to make web-designers happy.</p>
<p>Scott Jehl, developed a small script called <a href="https://github.com/scottjehl/Respond">Respond</a>, that enables media queries support on Internet Explore 8 and under .</p>
<p>Unfortunately, we need to rely on javascript for patching other IE versions, there’s no way around it.</p>
<p><strong>Note:</strong> I haven&#8217;t added media queries fallback on the sample code. I am sure you are using a modern browser.</p>
<h2>Responsive web-design beyond the technique</h2>
<p>In this experiment, we have a strong focus on the technical part of a responsive design. All I have done was to convert a non-responsive page, into a responsive one.</p>
<p>What I have learnt from this experiment, goes beyond the fact that the page adjusts itself to the width of the browser; we need to consider also the context in which the user is in while reading our content, what are the singularities of the devices and make the effort to offer the best experience possible.</p>
<p>Just as an example, I haven’t done much changes to the design at all. If you consider that on the iPhone, our user will need to tap the links with his finger, the footer may need a different solution for keeping the user from tapping in two links at the same time. What I am trying to say is that, if this page had been planned to be responsive from start, it would be designed quite differently in many aspects.</p>
<p>Therefore, the best way to achieve a responsive design is planning and wire-framing the experience for the devices you are targeting and the audience you are communicating with. There are those who believe that for different contexts, we need different markups, different content. I believe it is a valid approach, the way to go will depend on your objective, the content and the audience.</p>
<p>This experiment will bring to you a different surgeworks.com soon enough, stay put with us and don’t forget to leave your comments.</p>
<h3>Sources</h3>
<ul>
<li><a href="http://www.abookapart.com/products/responsive-web-design">Responsive Web Design</a> by Etthan Marcotte</li>
<li><a href="http://www.alistapart.com/articles/responsive-web-design/">Responsive Web Design &#8211; Article</a> by Etthan Marcotte</li>
<li><a href="http://thinkvitamin.com">thinkvitamin.com</a></li>
<li><a href="http://compass-style.org/">compass-style.org</a></li>
<li><a href="http://sass-lang.com">sass-lang.com</a></li>
<li><a href="http://susy.oddbird.net/">susy.oddbird.net</a></li>
</ul>
<p>Lyssandro Reis &#8211; @Lyssandro</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/responsive-web-design-using-compass-pt2/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Responsive Web Design Using Compass &#8211; Part 1</title>
		<link>http://surgeworks.com/blog/responsive-web-design-using-compass-pt1</link>
		<comments>http://surgeworks.com/blog/responsive-web-design-using-compass-pt1#comments</comments>
		<pubDate>Fri, 01 Jul 2011 12:33:22 +0000</pubDate>
		<dc:creator>Lyssandro Reis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Responsive Web]]></category>
		<category><![CDATA[Sass]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3401</guid>
		<description><![CDATA[I started my career doing Art Direction for print advertising; I learnt how to direct my creative process in many ways and an important factor to be taken into consideration was the media type and size &#8211; Magazine, Tabloid, Billboard, all the media sizes were fixed and I knew exactly the canvas size. After migrating [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-3432" title="Responsive Web Design Using Compass" src="http://surgeworks.com/wp-content/uploads/2011/07/featured-rwd-sw-0.jpg" alt="How to build a responsive grid with compass" width="550" height="250" /></p>
<p>I started my career doing Art Direction for print advertising; I learnt how to direct my creative process in many ways and an important factor to be taken into consideration was the media type and size &#8211; Magazine, Tabloid, Billboard, all the media sizes were fixed and I knew exactly the canvas size.</p>
<p>After migrating to the online environment a lot has changed but I was still designing for fixed width (800, 960, 1024&#8230;); Those days seem to be gone for good.</p>
<p>We can not assume that our audience is reading our content on a desktop anymore. The content is been squished or stretched creating different reading experiences across tablets, mobile phones and laptops of  varied screen sizes and resolutions.</p>
<p><a href="http://en.wikipedia.org/wiki/File:Vector_Video_Standards5.svg"><img class="alignnone size-full wp-image-3410" title="Screensizes" src="http://surgeworks.com/wp-content/uploads/2011/06/rwd-img-001.png" alt="Comparison between MOST known video resolutions including relevant aspect ratio lines. " width="550" height="282" /></a></p>
<h2>Responsive Design is the answer</h2>
<p>Responsive Design has been crafted by Ethan Marcotte, a Designer/Developer form Cambridge, Massachusetts. He is the author of the book <a href="http://www.abookapart.com/products/responsive-web-design">Responsive Web-Design</a> that has inspired me to do this experiment.</p>
<h3>Responsive design is the combination of:</h3>
<ol>
<li>Flexible Grid Layout</li>
<li>Flexible Content &#8211; Images and Media</li>
<li>CSS Media Queries</li>
</ol>
<p>The use of these three elements together makes it possible for us to create websites that respond to the device or browser window size, adjusting the content accordingly in order to offer a better reading experience, should you be hunching over a mobile phone on a busy train or comfortably sitting in front of a 30&#8243; LCD shopping for dog food.</p>
<h2>Our Experiment</h2>
<p>This experiment&#8217;s objective is to build a Responsive Grid using Compass to do build the grid and compile our stylesheet. In doing so,  we will split this study in two parts, first I will talk about Compass and in the second part, I will explain how to achieve a responsive page using Compass and Susy Grid.</p>
<h2>What is Compass?</h2>
<p>Compass is an open-source CSS Framework created by Chris Eppstein that uses Sass to make it possible for us to use nested rules, variables, mixins, includes and much more. Compass brings loads of helpers and utilities that makes writing CSS feels like a holiday, no joke.</p>
<p>Let&#8217;s see an example:</p>
<p><strong>You write:</strong></p>
<p><code>div.mybox<br />
&nbsp;&nbsp;+border-radius(4px)<br />
&nbsp;&nbsp;&nbsp;&nbsp;a<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+replace-text("btn.jpg",50px,30px)<br />
</code></p>
<p><strong>Compass writes for you:<br />
</strong></p>
<p><code>div.mybox {<br />
&nbsp;&nbsp;-moz-border-radius: 4px;<br />
&nbsp;&nbsp;-webkit-border-radius: 4px;<br />
&nbsp;&nbsp;-o-border-radius: 4px;<br />
&nbsp;&nbsp;-ms-border-radius: 4px;<br />
&nbsp;&nbsp;-khtml-border-radius: 4px;<br />
&nbsp;&nbsp;border-radius: 4px;<br />
}</code></p>
<p><code>div.mybox a {<br />
&nbsp;&nbsp;text-indent: -119988px;<br />
&nbsp;&nbsp;overflow: hidden;<br />
&nbsp;&nbsp;text-align: left;<br />
&nbsp;&nbsp;background-image: url('../images/btn.jpg');<br />
&nbsp;&nbsp;background-repeat: no-repeat;<br />
&nbsp;&nbsp;background-position: 50px 30px;<br />
}<br />
</code></p>
<p>I have just written 4 lines and Sass/Compass have written 16 lines of valid CSS code. Isn&#8217;t it amazing?</p>
<h3>Installation</h3>
<p>If you are on a Mac, the installation is pretty straight forward. Open your Terminal and type:</p>
<p><code>$ sudo gem install compass</code></p>
<p>Then, to confirm the installation:</p>
<p><code>$ compass version</code></p>
<p>It&#8217;s been successfully installed if you read:</p>
<p><code>Compass 0.11.3 (Antares)<br />
Copyright (c) 2008-2011 Chris Eppstein<br />
Released under the MIT License.<br />
Compass is charityware.<br />
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass<br />
</code></p>
<p>If you are using windows, you need to install <a href="http://rubyinstaller.org/">Ruby</a> first.</p>
<h3>Sass Syntax</h3>
<p>For this example, we will be using the indented syntax, simply called Sass. As stated on Sass homepage, “&#8230;it’s intended for people who prefer conciseness over similarity to CSS. Instead of brackets and semicolons, it uses the indentation of lines to specify blocks.” You can try it out online <a href="http://sass-lang.com/try.html">here</a>.</p>
<p>You can also use the SCSS syntax, if you like. I personally find it a bit more complicated, but at the end, both of them are going to be compiled into valid CSS code. It is just a matter of which one you want to go with.</p>
<p>If you are more familiar with the SCSS syntax, you can convert the sass files using the command line.</p>
<p><code>$ sass-convert screen.sass screen.scss<br />
$ sass-convert _base.sass _base.scss<br />
</code></p>
<h3>Susy Compass Plugin</h3>
<p>We will also need to install the grid we will be using. It is the first time I am using Susy and it has shown the best fit for this project, as we have the option to not use side gutters and we can use percentage for achieving a flexible grid. I am quite convinced that Susy is, so far, the best grid I have worked with.</p>
<p>To install, you need to go on to your Terminal and type:</p>
<p><code>$ sudo gem install compass-susy-plugin<br />
</code><br />
Remember to take some time to have a look at the <a href="https://github.com/ericam/compass-susy-plugin">Susy</a> documentation, so you can better understand its usage.</p>
<h3>Using Compass</h3>
<p>Let’s say you are creating a new project using Susy. All you have to do is to open your terminal and type:</p>
<p><code>$ compass create project_name -r susy -u susy --syntax sass<br />
</code></p>
<p><strong>Note:</strong> if you don’t use<em> &#8211;syntax sass</em>, the project will be created using scss syntax by default.</p>
<p>If you find it hard to use, while I was writing this post, I have just found out that there’s a UI for creating projects with compass. Check it out <a href="http://compass.handlino.com/">here</a>. I haven&#8217;t tested it yet.</p>
<h3>Project Structure</h3>
<p>Compass will create a folder called <em>project_name</em>, containing:</p>
<p>/config.rb<br />
/sass/_base.sass<br />
/sass/screen.sass<br />
/stylesheets/ screen.css</p>
<p>The files with “_” at the beginning are considered partials. The<em>_base.sass</em>, contains all the imports and the grid parameters that are to be imported at the top of <em>screen.sass</em> file. I also like to put the reset, all the varies, font-face and mixins in the<em> _base.sass</em> as well.</p>
<p>The <em>screen.sass</em> we will have all our page styles followed by our media queries.</p>
<p>The <em>config.rb</em> will contain your project paths and will also have a few other configuration options that come briefly commented. For example, when you finish your project you may want to compile your stylesheet in a minified version, then all you have to do is to use the declaration:</p>
<p><code>output_style = :compressed</code></p>
<p>If you are going to use relative paths and you are not using a local web-server, you will need to uncomment the line:</p>
<p><code>relative_assets = true</code></p>
<p>Remember to comment it out again when you deploy it to production. See more about the <em>config.rb</em> <a href="http://compass-style.org/help/tutorials/configuration-reference/">here</a>.</p>
<p>Your css will be compiled to the <em>/stylesheets/</em> folder, all you have to do is to import this file into your html file.</p>
<p>To start working, you need to let compass know that you are changing your <em>.sass</em> files. To do that, you have to go to your project directory on Terminal and type:</p>
<p><code>$ compass watch</code></p>
<p>From now on, every time you save one of your <em>.sass</em> files, Compass will re-compile the <em>.css</em> file with the changes you have just made. Easy peasy.</p>
<h3>Debugging on Compass</h3>
<p>If you are not using the compressed output style, your css is organized and commented. If you inspect an element, the comments on the css file will refer you to the line of the <em>.sass </em>declaration that targets this element.</p>
<p>Whenever you save the file, if there’s something wrong, compass will tell you which line and which file you messed up.</p>
<p>If you are new to Sass, pay attention to the indentation. If you don’t use the same indentation or forget the correct spacing, it will not work.</p>
<p>Example:</p>
<p>It is fine to write:</p>
<p><code>#my_box<br />
&nbsp;&nbsp;float: left<br />
</code></p>
<p>But, it will not work if you forget the space between the attribute and the value:</p>
<p><code>#my_box<br />
&nbsp;&nbsp;float:left<br />
</code></p>
<p>I am just saying that because I have lost a quite a few minutes cursing at the code as I couldn’t see anything wrong.</p>
<h4>To be continued&#8230;</h4>
<p>In the second part of the post, I will elaborate about the flexible grid  and post the sample code, so you can have a go and try for yourself.</p>
<p>UPDATED: Second part published. Keep reading it <a href="http://surgeworks.com/blog/responsive-web-design-using-compass-pt2">here</a>.</p>
<p>Drop us a comment if you have any problem, we will help as much as we can.</p>
<p>See you soon!</p>
<p>Lyssandro Reis &#8211; @Lyssandro</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/responsive-web-design-using-compass-pt1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to close, quit and restart apps on iPad and iPhone</title>
		<link>http://surgeworks.com/blog/how-to-close-quit-and-restart-apps-on-ipad-and-iphone</link>
		<comments>http://surgeworks.com/blog/how-to-close-quit-and-restart-apps-on-ipad-and-iphone#comments</comments>
		<pubDate>Wed, 22 Jun 2011 10:38:52 +0000</pubDate>
		<dc:creator>Mauro Dalu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[multitasking]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3387</guid>
		<description><![CDATA[This is a classic: an app stops working correctly, so you hit the home button and open the app again thinking: &#8220;I restarted the app but this didn&#8217;t fix the problem&#8221;&#8230; But the truth is that iOS on iPhone, iPad and iPod Touch handles multiple apps running at the same time (multitasking) by saving the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a classic: an app stops working correctly, so you hit the home button and open the app again thinking: &#8220;I restarted the app but this didn&#8217;t fix the problem&#8221;&#8230; But the truth is that iOS on iPhone, iPad and iPod Touch handles multiple apps running at the same time (multitasking) by saving the app state every time you switch to another app or get back to the main screen hitting the home button.</p>
<p>In order to really close an app and remove the &#8220;suspended state&#8221; it gets into when you click the home button, you need to follow one of the following processes.<span id="more-3387"></span></p>
<h3>Switch off your device&#8230; and then back on</h3>
<p>The simplest way is to shut down your device and start it up again. In order to really switch off your iPad, iPhone or iPod Touch, you need to push and keep pressed the standby button until the screen goes black and the &#8220;swipe to shutdown&#8221; bar appears. Then, you need to swipe and wait for the device to completely turn off. To startup the device again, just press the standby button again.</p>
<p>All apps will still be sitting in the multitasking tray as if they were running, but reality is that all processes got killed and no suspended states will be in your way until you start each app once again.</p>
<p>This process is a very good way to make memory intensive apps responsive again (especially games) since it will also clean up the device RAM.</p>
<h3>Quit apps from the multitasking tray</h3>
<ul>
<li>Hit the home button once to get to the main screen.</li>
<li>Hit the home button twice to show the multitasking tray (on the iPad you can, alternatively, swipe up with 4 fingers)</li>
<li>Tap and keep your finger on any app icon in the tray until the red badges appear and the icons start &#8220;dancing&#8221;</li>
<li>Now tap on the red badge for any of the apps you want to close. Please note: this action will not remove the app from your device. You&#8217;re just &#8220;killing&#8221; it so you can remove the &#8220;suspended state&#8221; and restart it.</li>
<li>Tap anywhere outside the tray to close it (or, alternatively, hit the home button once &#8212; on the iPad, you can also swipe down with 4 fingers).</li>
</ul>
<h3>Force restart</h3>
<p>If your iPad, iPhone or iPod Touch looks &#8220;dead&#8221;, don&#8217;t panic. Just press and keep pressed the standby button AND the home button simultaneously for about 10 seconds (usually 5 seconds are enough). If you&#8217;re not in bad luck, your device will restart itself and everything will be back to normal (whew!).</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/how-to-close-quit-and-restart-apps-on-ipad-and-iphone/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to create your own Facebook fan page</title>
		<link>http://surgeworks.com/blog/facebook-fan-page</link>
		<comments>http://surgeworks.com/blog/facebook-fan-page#comments</comments>
		<pubDate>Wed, 22 Jun 2011 06:14:36 +0000</pubDate>
		<dc:creator>Ney Ricardo</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tips & Resources]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fan]]></category>
		<category><![CDATA[page]]></category>

		<guid isPermaLink="false">http://surgeworks.com/?p=3270</guid>
		<description><![CDATA[Creating a Facebook fan page can be really easy, but what people don’t know is why to create one. A fan page is just like a profile page, except that it is more suitable to companies or professional promotion. There you can post all the information about the company, news, photos, answer people’s questions, etc. just [...]]]></description>
			<content:encoded><![CDATA[<div>
<p><img title="facebook-blogpost-main-image" src="http://surgeworks.com/wp-content/uploads/2011/06/facebook-blogpost-main-image.jpg" alt="How to easily create your own Facebook fan page" width="550" height="403" /></p>
<p>Creating a <strong>Facebook fan page</strong> can be really easy, but what people don’t know is why to create one.</p>
<p>A fan page is just like a profile page, except that it is more suitable to companies or professional promotion. There you can post all the information about the company, news, photos, answer people’s questions, etc. just like in a common personal profile.</p>
<p>Another peculiarity about the pages behavior is that there&#8217;s no limit of followers, while in the personal profile you can have up to 5 thousand friends.</p>
<p>The basic difference is that people don’t add the company as a friend, they “<strong>Like</strong>” it, which avoids having personal profiles mixed to their friends list. Once they “<strong>Like</strong>” the page, they start receiving all the updates that are being posted in the fan page.</p>
<p>Here are some examples of cool Facebook pages:</p>
<ul>
<li><a href="http://www.facebook.com/cocacola">http://www.facebook.com/cocacola</a></li>
<li><a href="http://www.facebook.com/ufcfightnation">http://www.facebook.com/ufcfightnation</a></li>
<li><a href="http://www.facebook.com/redbull">http://www.facebook.com/redbull</a></li>
<li><a href="http://www.facebook.com/foofighters?sk=app_209000812460148">http://www.facebook.com/foofighters?sk=app_209000812460148</a></li>
</ul>
<p>So let’s start to create a simple fan page.</p>
<p><img title="fp-fp-01" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-011.jpg" alt="Step 01" width="590" height="302" /></p>
<p><strong>Step 01:</strong> Go to your Facebook home page and click “<strong>Pages</strong>” at the sidebar.</p>
<p><img title="fp-fp-02" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-021.jpg" alt="Step 02" width="590" height="272" /></p>
<p><strong>Step 02:</strong> The screen above shows a list of Pages that you’ve created. So, now click the button “<strong>+ Create Page</strong>” in this screen.</p>
<p><img title="fp-fp-03" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-03.jpg" alt="Step 03" width="590" height="433" /></p>
<p><strong>Step 03:</strong> In next screen we must choose the type of page that we want to create. You must choose the option that most applies to your purpose. That will imply that your page will be listed in the user profile page of everyone who “<strong>Likes</strong>” your page, so it would be really awkward to have a portfolio page listed under “Movies” at the user page, right?</p>
<p>After filling in the form with correct info and accepting the <a href="http://www.facebook.com/terms_pages.php">Facebook Pages Terms</a> we are ready to customize the page.</p>
<p><img title="fp-fp-04" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-04.jpg" alt="Step 04" width="590" height="447" /></p>
<p><strong>Step 04:</strong> Ok, now here comes the part where we customize our page. Facebook was really kind to make things easier to be customized.</p>
<p>First thing here is to upload a cool image that will be displayed when people enter fan page. The standard dimensions for this image are <strong>180 pixels wide </strong>and height is free, but if you choose a larger image it will be automatically resized to fit the 180 pixels wide.</p>
<p><img title="fp-fp-04b" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-04b.jpg" alt="Upload image" width="590" height="323" /></p>
<p>The next four steps suggested in this screen are better that we leave to be done later, because our page is not ready yet, so why to spread the world an incomplete page, right?</p>
<p><strong>Step 05:</strong> We want to put a custom layout in the middle which shows content that would be hard to do only with Facebook’s help. So now I’ll teach how to put an HTML code with your custom design that will be seen when the user first visits our page.</p>
<p>To make that possible we’ll need to install a Facebook application to our page. Yes, sounds difficult but it is pretty easy.</p>
<p><img title="fp-fp-05" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-05.jpg" alt="Step 05" width="590" height="395" /></p>
<p>Just type “<strong>Static HTML</strong>” in the search field at Facebook’s header. It will show several applications for HTML insertion. Choose the one called “<strong>Static HTML: iframe tabs</strong>”.</p>
<p><img title="fp-fp-06" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-06.jpg" alt="Step 06" width="590" height="373" /></p>
<p><strong>Step 06:</strong> Now, at the sidebar click the link “<strong>Add to my page</strong>” and then click the button “<strong>Add to page</strong>” that corresponds to the page we are creating. That’s it! Now the application will appear in our page’s sidebar with the name “<strong>Welcome</strong>”. Enter the page again to edit its content.</p>
<p><img title="fp-fp-07" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-07.jpg" alt="Step 07" width="590" height="472" /></p>
<p><strong>Step 07:</strong> When you click the link called “<strong>Welcome</strong>” at the sidebar it will show two boxes for you to insert the HTML code. You can insert any HTML code just like you would do for a common web page, without restriction of compatibility. The first box you put the content for users who are not fans of the page yet. The second one is optional, it will show a different content for users who are already fans of the page.</p>
<p><strong>An important hint here</strong>: the layout area is free of height but width is limited to <strong>520 pixels</strong>, so be clever and don’t put larger content or it will look ugly.</p>
<p><img title="fp-fp-07b" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-07b.jpg" alt="Step 07 - Save and view tab..." width="590" height="472" /></p>
<p>Now that you’ve pasted the code click the button “<strong>Save and view tab&#8230;</strong>” then follow the instructions that the application shows.</p>
<p><img title="fp-fp-08" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-08.jpg" alt="Step 08" width="590" height="169" /></p>
<p><strong>Step 08:</strong> Let’s edit one last thing now: The tab name (unless you want to keep it as “Welcome”) and which tab will be first shown when the user visits the page. Click the button “<strong>Edit page</strong>” at the top right corner of the page.</p>
<p>This area allows you to set up everything regarding to how the page will behave, but what really interests us is the area called “<strong>Apps</strong>” in the sidebar.</p>
<p><img title="fp-fp-09" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-09.jpg" alt="Step 09" width="590" height="385" /></p>
<p><strong>Step 09:</strong> Find the app we’ve installed (<strong>Static HTML: iframe tabs</strong>) and click “<strong>Edit Settings</strong>”, change the name and save.</p>
<p><img title="fp-fp-09b" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-09b.jpg" alt="Chose the tab name" width="590" height="330" /></p>
<p>Then click “<strong>Manage Permissions</strong>”, find the property “<strong>Default landing tab</strong>” and select the tab name you have just set, then click “<strong>Save Changes</strong>”.</p>
<p><img title="fp-fp-10" src="http://surgeworks.com/wp-content/uploads/2011/06/fp-fp-10.jpg" alt="Step 10" width="590" height="373" /></p>
<p>Voilà! It got so beautiful, huh?! Congratulations, you are such a clever person!</p>
<p>Now, publish it and go tell your friends.</p>
<p>BTW, have you seen the <a title="Facebook GUI free PSD resource" href="http://surgeworks.com/blog/lab-design/facebook-gui-free-psd-resource">Facebook GUI Kit</a> we had created?</p>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://surgeworks.com/blog/facebook-fan-page/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

