<?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>Coffee Powered &#187; firefox</title>
	<atom:link href="http://www.coffeepowered.net/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coffeepowered.net</link>
	<description>code and content</description>
	<lastBuildDate>Mon, 09 Jan 2012 18:32:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Pain-free CSS3 with Sass and CSSPie</title>
		<link>http://www.coffeepowered.net/2010/09/02/pain-free-css3-with-sass-and-csspie/</link>
		<comments>http://www.coffeepowered.net/2010/09/02/pain-free-css3-with-sass-and-csspie/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 18:20:20 +0000</pubDate>
		<dc:creator>Chris Heald</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[csspie]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://www.coffeepowered.net/?p=316</guid>
		<description><![CDATA[So, you have a great design for a site. Lots of rounded corners, soft shadows, and beautiful gradients. &#8220;This&#8217;ll be fun!&#8221;, you think. Enter IE. &#8220;Oh, crap&#8221;, you think. Modern web design in IE is a pain in the rear. Fortunately, we have modern tools that make it a not-pain. SASS (Syntactically Awesome Stylesheets) is [...]]]></description>
			<content:encoded><![CDATA[<p>So, you have a great design for a site. Lots of rounded corners, soft shadows, and beautiful gradients. &#8220;This&#8217;ll be fun!&#8221;, you think.</p>
<p>Enter IE.</p>
<p>&#8220;Oh, crap&#8221;, you think.</p>
<p>Modern web design in IE is a pain in the rear. Fortunately, we have modern tools that make it a not-pain.</p>
<ul>
<li><a href="http://sass-lang.com/">SASS</a> (Syntactically Awesome Stylesheets) is a macro language for CSS. It lets you express CSS as nested rules, and gives you mix-ins, functionality extensions, variables, partials, and a whole lot more.</li>
<li><a href="http://css3pie.com/">CSSPie</a> is a set of behaviors for Internet Explorer that gives you CSS3 visual styles without really slow Javascript hacks like <a href="http://www.curvycorners.net/">CurvyCorners</a>.</li>
</ul>
<p>When combined, the two are a shot of <em>liquid awesome</em> injected directly into your brain.</p>
<p>I&#8217;ve settled on a fairly standard setup for my projects. I have:</p>
<ul>
<li>My <code>application.sass</code> file.</li>
<li>My <code>_mixins.sass</code> partial.</li>
<li>My <code>PIE.htc</code> behavior file.</li>
</ul>
<p>Macros is very straightforward:</p>
<pre class="brush: css; title: ; notranslate">
@mixin pie
  behavior: url(/behaviors/PIE.htc)
.pie
  +pie

@mixin shadows($color: #aaa, $x: 1px, $y: 2px, $spread: 2px)
  @extend .pie
  -moz-box-shadow: $color $x $y $spread
  -webkit-box-shadow: $color $x $y $spread
  box-shadow: $color $x $y $spread

@mixin inset-shadows($color: #aaa, $x: 1px, $y: 1px, $spread: 1px)
  @extend .pie
  -moz-box-shadow: inset $x $y $spread $color
  -webkit-box-shadow: inset $x $y $spread $color
  box-shadow: inset $x $y $spread $color

@mixin corners($tl: 5px, $tr: nil, $br: nil, $bl: nil)
  @extend .pie
  @if $tr == nil
    $tr: $tl
  @if $br == nil
    $br: $tl
  @if $bl == nil
    $bl: $tl
  -moz-border-radius: $tl $tr $br $bl
  -webkit-border-top-left-radius: $tl
  -webkit-border-bottom-left-radius: $bl
  -webkit-border-top-right-radius: $tr
  -webkit-border-bottom-right-radius: $br
  border-radius: $tl $tr $br $bl

@mixin vertical-gradient($start: #000, $end: #ccc)
  @extend .pie
  background: $end
  background: -webkit-gradient( linear, left top, left bottom, color-stop(0, $start), color-stop(1, $end) )
  background: -moz-linear-gradient(center top, $start 0%, $end 100%)
  -pie-background: linear-gradient(90deg, $start, $end)
</pre>
<p>What&#8217;s going on here? We&#8217;re defining several mix-ins for Sass:</p>
<pre class="brush: css; title: ; notranslate">
+shadows([color, [x, [y, [spread]]]])

+inset-shadows([color, [x, [y, [spread]]]])

+corners(size)

+corners(topleft, topright, bottomright, bottomleft)

+vertical-gradient(start, end)
</pre>
<p>Now, in your CSS, you can just do the following:</p>
<pre class="brush: css; title: ; notranslate">body
  font:
    family: Arial
    size: 10pt

.box
  +corners
  +shadows(#ccc)
  +vertical-gradient(#eee, #fff)

  h3
    color: #444

.dark-box
  +corners(20px)
  +shadows(#888, 4px, 4px, 4px)
  +vertical-gradient(#444, #000)
  color: #fff
  h3
    color: #fff

.box, .dark-box
  padding: 1em
  margin-bottom: 1em
</pre>
<p>This expands to:</p>
<pre class="brush: css; title: ; notranslate">
.pie, .box, .dark-box {
  behavior: url(/projects/PIE.htc);
}

body {
  font-family: Arial;
  font-size: 10pt;
}

.box {
  -moz-border-radius: 5px 5px 5px 5px;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
  border-radius: 5px 5px 5px 5px;
  -moz-box-shadow: #cccccc 1px 2px 2px;
  -webkit-box-shadow: #cccccc 1px 2px 2px;
  box-shadow: #cccccc 1px 2px 2px;
  background: white;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eeeeee), color-stop(1, white));
  background: -moz-linear-gradient(center top, #eeeeee 0%, white 100%);
  -pie-background: linear-gradient(270deg, #eeeeee, white);
}
.box h3 {
  color: #444444;
}

.dark-box {
  -moz-border-radius: 20px 20px 20px 20px;
  -webkit-border-top-left-radius: 20px;
  -webkit-border-bottom-left-radius: 20px;
  -webkit-border-top-right-radius: 20px;
  -webkit-border-bottom-right-radius: 20px;
  border-radius: 20px 20px 20px 20px;
  -moz-box-shadow: #888888 4px 4px 4px;
  -webkit-box-shadow: #888888 4px 4px 4px;
  box-shadow: #888888 4px 4px 4px;
  background: black;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444444), color-stop(1, black));
  background: -moz-linear-gradient(center top, #444444 0%, black 100%);
  -pie-background: linear-gradient(270deg, #444444, black);
  color: white;
}
.dark-box h3 {
  color: white;
}

.box, .dark-box {
  padding: 1em;
  margin-bottom: 1em;
}
</pre>
<p><a href="http://www.coffeepowered.net/projects/sass-mixins.php">Check out the live demo.</a></p>
<p>Here are screenshots of the demo in Chrome 6, Firefox 4.0b3, Internet Explorer 8. Can you tell which browser is which?</p>
<p><a href="http://www.coffeepowered.net/wp-content/uploads/2010/09/comps.png"><img src="http://www.coffeepowered.net/wp-content/uploads/2010/09/comps.png" alt="" title="comps" width="467" height="798" class="aligncenter size-full wp-image-323" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.coffeepowered.net/2010/09/02/pain-free-css3-with-sass-and-csspie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desuckifying Experts-Exchange</title>
		<link>http://www.coffeepowered.net/2009/02/07/desuckifying-experts-exchange/</link>
		<comments>http://www.coffeepowered.net/2009/02/07/desuckifying-experts-exchange/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 12:29:44 +0000</pubDate>
		<dc:creator>Chris Heald</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[rip]]></category>

		<guid isPermaLink="false">http://www.coffeepowered.net/?p=91</guid>
		<description><![CDATA[If you&#8217;ve ever searched for an answer to a programming problem, chances are good that you&#8217;ve run into results from experts-exchange. Everyone hates them. The information usually isn&#8217;t that good, and even if it is, you have to scroll past sixteen pages of ads and spam to get to them. Unfortunately, there&#8217;s the occasional nugget [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_95" class="wp-caption alignright" style="width: 289px"><a href="http://www.coffeepowered.net/wp-content/uploads/2009/02/ee.jpg"><img src="http://www.coffeepowered.net/wp-content/uploads/2009/02/ee.jpg" alt="Experts Exchange minus the suck!" title="ee" width="279" height="300" class="size-medium wp-image-95" /></a><p class="wp-caption-text">Experts Exchange minus the suck!</p></div><br />
If you&#8217;ve ever searched for an answer to a programming problem, chances are good that you&#8217;ve run into results from experts-exchange. Everyone hates them. The information usually isn&#8217;t that good, and even if it is, you have to scroll past sixteen pages of ads and spam to get to them. Unfortunately, there&#8217;s the occasional nugget of info that&#8217;s what you&#8217;re looking for. There&#8217;s just too much crap to dig through to get to it.</p>
<p>We&#8217;re gonna fix that.<br />
<span id="more-91"></span></p>
<p>You&#8217;ll need:</p>
<ul>
<li>Firefox</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/521">Remove it Permanently</a></li>
<li>The RIP export file below, saved as a file
</ul>
<pre class="brush: ruby; title: ; notranslate">
&lt;Config version=&quot;1.0&quot;&gt;
	&lt;Page name=&quot;Experts Exchange&quot; url=&quot;http://*experts-exchange.com*&quot; enabled=&quot;true&quot;&gt;
		&lt;XPath comment=&quot;&quot;&gt;//div[@class='s sectionFour shFFF5 sgray expGray allZonesMain taSearchRow']&lt;/XPath&gt;
		&lt;XPath comment=&quot;&quot;&gt;//div[@class='bl blQuestion']//div[@class='answers']&lt;/XPath&gt;
		&lt;XPath comment=&quot;&quot;&gt;//a[@class='startFreeTrial']&lt;/XPath&gt;
		&lt;XPath comment=&quot;&quot;&gt;//div[@id='relatedSolutions20X6']&lt;/XPath&gt;
		&lt;XPath comment=&quot;&quot;&gt;//div[@id='compSignUpNowVQP32']&lt;/XPath&gt;
	&lt;/Page&gt;
&lt;/Config&gt;
</pre>
<p>Go to your RIP options, click &#8220;Import Rip&#8221;, and import that rip config. Presto chango, Experts-Exchange looks like a sane, readable website.</p>
<p>Enjoy.</p>
<p>Edit: It appears that Experts-Exchange only inlines answers for unregistered users if you have a search engine referral URL, obviously so they can saturate search results to bait-and-switch people into registering for the service without getting smacked for information cloaking. There&#8217;s an easy answer, though.</p>
<p>1) Grab <a href="https://addons.mozilla.org/en-US/firefox/addon/953">https://addons.mozilla.org/en-US/firefox/addon/953</a><br />
2) Set your referrer for experts-exchange.com to</p>
<p>http://www.google.com/search?q=woo+woo+woo+woo&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a</p>
<p>3) Yay, information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coffeepowered.net/2009/02/07/desuckifying-experts-exchange/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>

