<?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>Server Side Guy &#187; Uncategorized</title>
	<atom:link href="http://serversideguy.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://serversideguy.com</link>
	<description>Just another Barsness Solutions weblog</description>
	<lastBuildDate>Wed, 04 Apr 2012 21:37:41 +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>How do I use PHP preg_replace_callback?</title>
		<link>http://serversideguy.com/2012/04/04/how-do-i-use-php-preg_replace_callback/</link>
		<comments>http://serversideguy.com/2012/04/04/how-do-i-use-php-preg_replace_callback/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 21:37:41 +0000</pubDate>
		<dc:creator>Tim Barsness</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com.mu.barsnesssolutions.com/?p=718</guid>
		<description><![CDATA[I&#8217;m working on a project that sends transactional emails from templates using variables in the %%varname%% format, but defines variables in another table as a lookup value, or query. So, I needed to match strings of type %%varname%% which screams regular expressions, but also needed varname to look up what to replace it with. So, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a project that sends transactional emails from templates using variables in the %%varname%% format, but defines variables in another table as a lookup value, or query.  So, I needed to match strings of type %%varname%% which screams regular expressions, but also needed varname to look up what to replace it with.  So, instead of using multiple functions, I was able to do this with a callback and preg_replace_callback.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;A complicated gentleman allow me to present,
Of all <span style="color: #009933; font-weight: bold;">%%</span>asdf<span style="color: #009933; font-weight: bold;">%%</span> the arts and faculties the terse embodiment,
He&amp;#039;s a great arithmetician who can demonstrate with ease <span style="color: #009933; font-weight: bold;">%%</span>name<span style="color: #009933; font-weight: bold;">%%</span>
That two and two are three, or five, or anything you please;
An eminent Logician who can make it clear to you
That black is white – when looked at from the proper point of view;
A marvelous Philologist who&amp;#039;ll undertake to show <span style="color: #009933; font-weight: bold;">%%</span>asdf<span style="color: #009933; font-weight: bold;">%%</span>
That &amp;#039;yes&amp;#039; is but another and a neater form of &amp;#039;no&amp;#039;.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">preg_replace_callback</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#039;(%%.*%%)&amp;#039;, 
</span>	<span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span>
	    <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#039;$matches&amp;#039;,
</span>	    <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#039;return getValue($matches)&amp;#039;
</span>	<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #000088;">$string</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
	<span style="color: #b1b100;">return</span> toupper<span style="color: #009900;">&#40;</span><span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#039;%%&amp;#039;, &amp;#039;&amp;#039;, $var));
</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Outputs:
A complicated gentleman allow me to present,
Of all ASDF the arts and faculties the terse embodiment,
He&amp;#039;s a great arithmetician who can demonstrate with ease NAME
That two and two are three, or five, or anything you please;
An eminent Logician who can make it clear to you
That black is white – when looked at from the proper point of view;
A marvelous Philologist who&amp;#039;ll undertake to show ASDF
That &amp;#039;yes&amp;#039; is but another and a neater form of &amp;#039;no&amp;#039;.
*/</span></pre></div></div>

<p>I use the function getValue to query the database and get the value of the variable.  This function is pretty slick; now, PHP just needs to support callbacks that aren&#8217;t created as strings and we&#8217;ll be all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/04/04/how-do-i-use-php-preg_replace_callback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why does IE6 Double My Margins?</title>
		<link>http://serversideguy.com/2012/03/12/why-does-ie6-double-my-margins/</link>
		<comments>http://serversideguy.com/2012/03/12/why-does-ie6-double-my-margins/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 13:19:17 +0000</pubDate>
		<dc:creator>Sarah Relander</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://serversideguy.com.mu.barsnesssolutions.com/?p=715</guid>
		<description><![CDATA[If you compare your site in multiple browsers and find that the margins are twice as big in IE6, you&#8217;ve run into a big called the double margin IE6 issue. A known issue, it happens when you style a margin onto a floated element. Luckily it&#8217;s an easy fix: add the style attribute “display:inline” to [...]]]></description>
			<content:encoded><![CDATA[<p>If you compare your site in multiple browsers and find that the margins are twice as big in IE6, you&#8217;ve run into a big called the double margin IE6 issue.  A known issue, it happens when you style a margin onto a floated element. Luckily it&#8217;s an easy fix: add the style attribute “display:inline” to the column with margin.  </p>
<p>Then your IE6 version should obey your stylistic vision. Unless of course you have more style problems, but at least this won&#8217;t be one of them&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/03/12/why-does-ie6-double-my-margins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I grant a user execute permissions to stored procedures in SQL Server?</title>
		<link>http://serversideguy.com/2012/03/02/how-do-i-grant-a-user-execute-permissions-to-stored-procedures-in-sql-server/</link>
		<comments>http://serversideguy.com/2012/03/02/how-do-i-grant-a-user-execute-permissions-to-stored-procedures-in-sql-server/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 13:39:07 +0000</pubDate>
		<dc:creator>Tim Barsness</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com.mu.barsnesssolutions.com/?p=697</guid>
		<description><![CDATA[One thing that comes up fairly frequently with SQL Server permissions is allowing execute permissions to all user created programmability on a database. This frequently needs to be done when migrating servers, allowing the user connecting to execute stored procedures. One way to do this is to set explicit permissions for all securables for each [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that comes up fairly frequently with SQL Server permissions is allowing execute permissions to all user created programmability on a database.  This frequently needs to be done when migrating servers, allowing the user connecting to execute stored procedures.  One way to do this is to set explicit permissions for all securables for each user.  This is effective with a limited amount of stored procedures.</p>
<p>In doing so however, as the number of stored procedures increases, the feasibility of setting explicit permissions decreases.  The above also requires that permissions be explicitly granted for newly created stored procedures.  </p>
<p>Another way of doing so is to create a role (which we&#8217;ll call db_executor) and granting execute permissions to all programmability (or a well-defined subset if you prefer) to said role, then adding desired users to the role.  Doing so looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">CREATE</span> <span style="color: #0000FF;">ROLE</span> db_executor
<span style="color: #0000FF;">GRANT</span> <span style="color: #0000FF;">EXECUTE</span> <span style="color: #0000FF;">TO</span> db_executor
<span style="color: #0000FF;">EXEC</span> <span style="color: #AF0000;">SP_ADDROLEMEMBER</span> <span style="color: #FF0000;">'db_executor'</span>, <span style="color: #FF0000;">'username'</span></pre></div></div>

<p>The above:</p>
<ol>
<li>Creates the role db_executor</li>
<li>Grants execute permissions to the role</li>
<li>Adds the desired user to the role</li>
</ol>
<p>Because roles exist within a database, this should be done in the context of the database desiring the programmability required.  </p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/03/02/how-do-i-grant-a-user-execute-permissions-to-stored-procedures-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where are the database configurations in the Magento framework?</title>
		<link>http://serversideguy.com/2012/02/29/where-are-the-database-configurations-in-a-magento-framework/</link>
		<comments>http://serversideguy.com/2012/02/29/where-are-the-database-configurations-in-a-magento-framework/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 15:43:34 +0000</pubDate>
		<dc:creator>Andy Stramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com/?p=695</guid>
		<description><![CDATA[I had to migrate a Magento store last week and since I haven&#8217;t had much experience with that framework, I was at a loss with where the database configuration file was located. No matter how hard I looked there wasn&#8217;t an apparent config file named config.php or any of the sort. I did eventually find [...]]]></description>
			<content:encoded><![CDATA[<p>I had to migrate a Magento store last week and since I haven&#8217;t had much experience with that framework, I was at a loss with where the database configuration file was located. No matter how hard I looked there wasn&#8217;t an apparent config file named config.php or any of the sort.</p>
<p>I did eventually find it in a very non-conspicuous place. The configurations are listed in /app/etc/local.xml. Not exactly a descriptive name for what I was looking for. You will then want to look for this block of code in that file:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;resources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;db<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;table_prefix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/table_prefix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/db<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;default_setup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;connection<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[localhost]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[your_db_username]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[your_db_password]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dbname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[your_db_name]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dbname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;active<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/active<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/connection<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/default_setup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/resources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>I need this data only to create the database on the new server. I am not sure if changing this file will actually change the configuration of the application.</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/02/29/where-are-the-database-configurations-in-a-magento-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Do I Make Tabs on My Facebook Page?</title>
		<link>http://serversideguy.com/2012/02/27/how-do-i-make-tabs-on-my-facebook-fan-page/</link>
		<comments>http://serversideguy.com/2012/02/27/how-do-i-make-tabs-on-my-facebook-fan-page/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 23:05:36 +0000</pubDate>
		<dc:creator>Sarah Relander</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com.mu.barsnesssolutions.com/?p=705</guid>
		<description><![CDATA[Facebook fans pages that have been designed by the user stand out much more than if you just used the pages provided by Facebook. I.E Wall, Info, Friend Activity, Photos&#8230; However if you can design your own page, you can create content only viewable to those who &#8220;like&#8221; you page while promoting the &#8220;like&#8221; action [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook fans pages that have been designed by the user stand out much more than if you just used the pages provided by Facebook.  I.E  Wall, Info, Friend Activity, Photos&#8230;  However if you can design your own page, you can create content only viewable to those who &#8220;like&#8221; you page while promoting the &#8220;like&#8221; action to get more content. This is accomplished through Facebook applications. There are a lot of options, but one that I feel is very under rated is &#8220;Static HTML Plus&#8221;.  It&#8217;s free, and they don&#8217;t make you have their logo forever imprinted upon your material for it being free. </p>
<p>So after you created your page, you can install the application below to start making tabs:</p>
<p>https://apps.facebook.com/static_html_plus/</p>
<p>You can get more tabs by using the following applications:</p>
<p>https://apps.facebook.com/static_html_two/</p>
<p>https://apps.facebook.com/static_html_three/</p>
<p>https://apps.facebook.com/static_html_four/</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/02/27/how-do-i-make-tabs-on-my-facebook-fan-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping Google API sessions persistent with refresh tokens</title>
		<link>http://serversideguy.com/2012/02/13/keeping-google-api-sessions-persistent-with-refresh-tokens/</link>
		<comments>http://serversideguy.com/2012/02/13/keeping-google-api-sessions-persistent-with-refresh-tokens/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 20:08:22 +0000</pubDate>
		<dc:creator>Andy Stramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com/?p=689</guid>
		<description><![CDATA[I&#8217;ve been working with Google&#8217;s Tasks API and was looking to have a way a user would only need to authenticate their account once. Google does not explain very well on how to achieve this. With php you will need to get the api setup HERE. You then need to then setup up an authentication [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with Google&#8217;s Tasks API and was looking to have a way a user would only need to authenticate their account once. Google does not explain very well on how to achieve this. </p>
<p>With php you will need to get the api setup <a href="http://code.google.com/apis/tasks/v1/using.html#setup">HERE</a>. You then need to then setup up an authentication stream:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'src/apiClient.php'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'src/contrib/apiTasksService.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$client</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> apiClient<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$tasksService</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> apiTasksService<span style="color: #009900;">&#40;</span><span style="color: #000088;">$client</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>On the callback of the user allowing your app to access their tasks, you will get an access token and more importantly here a refresh token.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$auth</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">authenticate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$token</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAccessToken</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$refresh_token</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$token</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'refresh_token'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Save the refresh token to somewhere you are able to access it again whenever you&#8217;d like. After that we can use that token to get the users tasks at any moment.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">refresh_token</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$refresh_token</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/02/13/keeping-google-api-sessions-persistent-with-refresh-tokens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ext Js 4: Merging store data</title>
		<link>http://serversideguy.com/2012/01/31/ext-js-4-merging-store-data/</link>
		<comments>http://serversideguy.com/2012/01/31/ext-js-4-merging-store-data/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 14:57:06 +0000</pubDate>
		<dc:creator>Andy Stramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com/?p=680</guid>
		<description><![CDATA[In a project I&#8217;ve been working on I needed to get a bunch of different stores of data and then have a separate store that would contain all of them combined. This was to save on ajax calls. I couldn&#8217;t find anything as far as native methods that would merge stores but I did come [...]]]></description>
			<content:encoded><![CDATA[<p>In a project I&#8217;ve been working on I needed to get a bunch of different stores of data and then have a separate store that would contain all of them combined. This was to save on ajax calls. I couldn&#8217;t find anything as far as native methods that would merge stores but I did come up with a solution.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> emptyArr <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> aggregatedStore <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">data</span>.<span style="color: #660066;">ArrayStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		data<span style="color: #339933;">:</span> emptyArr<span style="color: #339933;">,</span>	
		fields<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field1'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field2'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> singularStore <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">data</span>.<span style="color: #660066;">JsonStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		autoload<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		proxy<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
			type<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ajax'</span><span style="color: #339933;">,</span>
			url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/getDataPlease'</span><span style="color: #339933;">,</span>
			reader<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
				type<span style="color: #339933;">:</span> <span style="color: #3366CC;">'json'</span><span style="color: #339933;">,</span>
				root<span style="color: #339933;">:</span> <span style="color: #3366CC;">'fieldRoot'</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		fields<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field1'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field2'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>So what I want to do here is push the contents of singularStore into aggregatedStore. What I ended up doing is adding a listener on singularStore load to accomplish this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> emptyArr <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> aggregatedStore <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">data</span>.<span style="color: #660066;">ArrayStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		data<span style="color: #339933;">:</span> emptyArr<span style="color: #339933;">,</span>	
		fields<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field1'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field2'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> singularStore <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">data</span>.<span style="color: #660066;">JsonStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		autoload<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		proxy<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
			type<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ajax'</span><span style="color: #339933;">,</span>
			url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/getDataPlease'</span><span style="color: #339933;">,</span>
			reader<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
				type<span style="color: #339933;">:</span> <span style="color: #3366CC;">'json'</span><span style="color: #339933;">,</span>
				root<span style="color: #339933;">:</span> <span style="color: #3366CC;">'fieldRoot'</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		fields<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field1'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'field2'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
                listeners<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #3366CC;">'load'</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>store<span style="color: #339933;">,</span> records<span style="color: #339933;">,</span> successful<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				aggregatedStore.<span style="color: #660066;">loadData</span><span style="color: #009900;">&#40;</span>records<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now I can use singularStore to get just the data from that url. I can then add that load listener to any other store and use aggregatedStore to show the combined data.</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/01/31/ext-js-4-merging-store-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I use traits in PHP 5.4</title>
		<link>http://serversideguy.com/2012/01/31/how-do-i-use-traits-in-php-5-4/</link>
		<comments>http://serversideguy.com/2012/01/31/how-do-i-use-traits-in-php-5-4/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 14:12:37 +0000</pubDate>
		<dc:creator>Tim Barsness</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com.mu.barsnesssolutions.com/?p=670</guid>
		<description><![CDATA[The biggest change in PHP 5.4 is the addition of traits to the object-oriented programmability. Traits prevent code duplication by allowing multiple classes to include a collection of methods implemented as a trait. This means multiple classes can include the same method implementations without duplicating code. Traits improve on interfaces because they include not only [...]]]></description>
			<content:encoded><![CDATA[<p>The biggest change in PHP 5.4 is the addition of traits to the object-oriented programmability.  <a href="http://en.wikipedia.org/wiki/Trait_(computer_programming)" target="_blank">Traits</a> prevent code duplication by allowing multiple classes to include a collection of methods implemented as a trait.  This means multiple classes can include the same method implementations without duplicating code.</p>
<p>Traits improve on interfaces because they include not only the function definition, but also the implementation.  Traits can also use other traits, meaning that one trait could be a collection of others.  So, if you had traits Roll and Bounce, you could have trait Movements that used both Roll and Bounce.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">trait HelloWorld <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> sayHello<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Hello '</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> sayWorld<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'World!'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> MyClass <span style="color: #009900;">&#123;</span>
    use HelloWorld<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> sayHelloWorld<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sayhello</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sayWorld</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$h</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MyClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$h</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sayHelloWorld</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;">// outputs &quot;Hello World!&quot;</span></pre></div></div>

<p>In implementing traits, the keywords trait and insteadof were added to PHP.  Usage of trait is outlined above.  The PHP keyword insteadof is used for conflict resolution.  Here&#8217;s an example of how to use insteadof:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">trait A <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> smallTalk<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'a'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> bigTalk<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'A'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
trait B <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> smallTalk<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'b'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> bigTalk<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'B'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Talker <span style="color: #009900;">&#123;</span>
    use A<span style="color: #339933;">,</span> B <span style="color: #009900;">&#123;</span>
        B<span style="color: #339933;">::</span><span style="color: #004000;">smallTalk</span> insteadof A<span style="color: #339933;">;</span>
        A<span style="color: #339933;">::</span><span style="color: #004000;">bigTalk</span> insteadof B<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Aliased_Talker <span style="color: #009900;">&#123;</span>
    use A<span style="color: #339933;">,</span> B <span style="color: #009900;">&#123;</span>
        B<span style="color: #339933;">::</span><span style="color: #004000;">smallTalk</span> insteadof A<span style="color: #339933;">;</span>
        A<span style="color: #339933;">::</span><span style="color: #004000;">bigTalk</span> insteadof B<span style="color: #339933;">;</span>
        B<span style="color: #339933;">::</span><span style="color: #004000;">bigTalk</span> <span style="color: #b1b100;">as</span> talk<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/01/31/how-do-i-use-traits-in-php-5-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Fix Text Links in the iPhone-Slide Plugin</title>
		<link>http://serversideguy.com/2012/01/30/text-links-dont-work-in-the-iphone-slide-plugin-solution/</link>
		<comments>http://serversideguy.com/2012/01/30/text-links-dont-work-in-the-iphone-slide-plugin-solution/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 22:26:02 +0000</pubDate>
		<dc:creator>Sarah Relander</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://serversideguy.com.mu.barsnesssolutions.com/?p=668</guid>
		<description><![CDATA[On a previous post I told you all about this amazing plugin I found that would create a slider that takes advantage of the iPad&#8217;s touch and drag functionality. However, if you didn&#8217;t use it just for images and had the slides contain text, you may have noticed that the links within the slides would [...]]]></description>
			<content:encoded><![CDATA[<p>On a <a href="/2012/01/08/how-can-i-make-a-div-slider-that-is-ipad-friendly/">previous post</a> I told you all about this amazing plugin I found that would create a slider that takes advantage of the iPad&#8217;s touch and drag functionality. </p>
<p>However, if you didn&#8217;t use it just for images and had the slides contain text, you may have noticed that the links within the slides would not work. This plugin appears as it was mainly created to swipe through images, and not necessarily for content with text links.</p>
<p>I went into the plugin (jquery.iphone-slide.js) and changed a few things so it would do my bidding:</p>
<p>OLD CODE:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">helpers.<span style="color: #660066;">goto_url</span><span style="color: #009900;">&#40;</span>thislink<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>NEW CODE:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> thislink <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">target</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>thislink<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> thislink <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">target</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>thislink<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   window.<span style="color: #660066;">location</span><span style="color: #009900;">&#40;</span>thislink<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//similar behavior as clicking on a link</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Turns out the __mouseup function was preventing the default action and the &#8220;helpers.goto_url&#8221; function only opened image links.  But now it&#8217;s set up to do everything, Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/01/30/text-links-dont-work-in-the-iphone-slide-plugin-solution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simple CSS gradient</title>
		<link>http://serversideguy.com/2012/01/23/simple-css-gradient/</link>
		<comments>http://serversideguy.com/2012/01/23/simple-css-gradient/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 15:08:35 +0000</pubDate>
		<dc:creator>Andy Stramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serversideguy.com/?p=663</guid>
		<description><![CDATA[CSS has continued to simplify common design operations and CSS3 doesn&#8217;t show any signs of that trend changing. Gradients, which have been around for awhile now have commonly replaced the old way of creating custom images for a couple quick css lines of code. .orange-gradient &#123; background: #f78d1d; /* initial background for default */ background: [...]]]></description>
			<content:encoded><![CDATA[<p>CSS has continued to simplify common design operations and CSS3 doesn&#8217;t show any signs of that trend changing. Gradients, which have been around for awhile now have commonly replaced the old way of creating custom images for a couple quick css lines of code.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.orange-gradient</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f78d1d</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* initial background for default */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#faa51a</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#f47a20</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Webkit Chrome/Safari etc.. */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#faa51a</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#f47a20</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*mozilla*/</span>
filter<span style="color: #00AA00;">:</span>  progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#faa51a'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#f47a20'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* IE */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p> This would make a great orange gradient for a background. Another great trick is to reverse the gradient on hover</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.orange-gradient</span><span style="color: #3333ff;"><span style="color: #00AA00;">:</span>hover
</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#f47a20</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#faa51a</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#f47a20</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#faa51a</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
filter<span style="color: #00AA00;">:</span>  progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#f47a20'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#faa51a'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Add this class to a button or link, add some padding and you have a quick and great-looking button.</p>
]]></content:encoded>
			<wfw:commentRss>http://serversideguy.com/2012/01/23/simple-css-gradient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

