<?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>Halfslide Design Blog - Austin, Texas Website Design</title>
	<atom:link href="http://www.halfslide.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halfslide.com/blog</link>
	<description>Austin, Texas Website Design</description>
	<lastBuildDate>Mon, 19 Mar 2012 21:52:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple Function to Remove URLs Posted in WordPress Comments</title>
		<link>http://www.halfslide.com/blog/2012/03/19/simple-function-to-remove-urls-posted-in-wordpress-comments/</link>
		<comments>http://www.halfslide.com/blog/2012/03/19/simple-function-to-remove-urls-posted-in-wordpress-comments/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 21:51:35 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=221</guid>
		<description><![CDATA[As part of an effort to combat spam for a web design client using wordpress, I have been tasked with removing urls from comments that are posted to his wordpress blog. Most articles and tutorials on the web mention removing the comment input field from the comments form. This, however, won&#8217;t work since most spam [...]]]></description>
			<content:encoded><![CDATA[<p>As part of an effort to combat spam for a web design client using wordpress, I have been tasked with removing urls from comments that are posted to his wordpress blog. Most articles and tutorials on the web mention removing the comment input field from the comments form. This, however, won&#8217;t work since most spam bots are posting their generated comments directly to wordpress and are bypassing the comments form directly.</p>
<p>The only way to do this completely that I was able to come up with was to use this simple function.  <strong>Add the following code to your wordpress theme&#8217;s functions.php file.</strong></p>
<blockquote class="code"><p>function disable_comment_url($fields)<br />
{<br />
return &#8221;;<br />
}</p>
<p>add_filter(&#8216;pre_comment_author_url&#8217;,'disable_comment_url&#8217;);</p></blockquote>
<p>This code is a hook into the pre_comment_author_url filter in wordpress and will essentially always return an empty string as the url for any new comment. This has worked for my client so far. Please post a comment (without a url of course!) if you know of a better way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2012/03/19/simple-function-to-remove-urls-posted-in-wordpress-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GoDaddy Dedicated Server Disaster Recovery, Part 2</title>
		<link>http://www.halfslide.com/blog/2012/03/17/godaddy-dedicated-server-disaster-recovery-part-2/</link>
		<comments>http://www.halfslide.com/blog/2012/03/17/godaddy-dedicated-server-disaster-recovery-part-2/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 20:21:26 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[dedicated server]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[godaddy]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=218</guid>
		<description><![CDATA[This is a follow up to this post from two years ago (http://www.halfslide.com/blog/2010/03/14/review-godaddy-dedicated-server-disaster-recovery/).  This past week, the same client who had her server crash at Godaddy in 2010 had it happen again.  The server went down and we only noticed it when all of the websites she was hosting went offline.  I was about to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow up to this post from two years ago (<a href="http://www.halfslide.com/blog/2010/03/14/review-godaddy-dedicated-server-disaster-recovery/">http://www.halfslide.com/blog/2010/03/14/review-godaddy-dedicated-server-disaster-recovery/). </a></p>
<p>This past week, the same client who had her server crash at Godaddy in 2010 had it happen again.  The server went down and we only noticed it when all of the websites she was hosting went offline.  I was about to run to a meeting so I logged into godaddy and requested a hard reboot of the server through their server control panel.  About an hour later, we got an email that the server restart had been completed.  There was no mention that there was still an issue, but the server was still definitely dead.</p>
<p>My client called Godaddy directly to speak with someone in support, but was told that they would only talk to her through the online chat.  This is insane to me that a mature company won&#8217;t speak to a long-time customer unless it&#8217;s through an online forum.  Unfortunately for her, she was away from her computer so she had to run to a coffee shop and log onto their chat through her laptop.</p>
<p>After a few hours, Godaddy finally said essentially, &#8220;Your server is dead, we can reprovision it&#8230;hope you got good backups.&#8221;  There was no attempt to assess the issue and we were even told that they are not responsible for the hardware which leads one to wonder what my client was paying them for.  They did offer to plug the harddrive from the dead server into a drive encloser for $150 so we could get her files off, but we&#8217;d taken backups that morning as part of a daily backup process so we didn&#8217;t need that.</p>
<p>Due to the fact that this is the second time in two years that we&#8217;ve had a massive failure, and the fact that their customer service is collosally inept, we have left Godaddy.  My client set up a new dedicated server at <a title="1and1" href="http://www.1and1.com">1and1</a>.  So far, their customer service has been excellent as they&#8217;ve already helped her work through two issues that arose as part of reloading the sites from her old godaddy server.  Their service has been so excellent that Halfslide will be migrating our servers from godaddy to 1and1 over the next few months.  Godaddy&#8217;s had some awful PR in the last few months and lost several high profile customers.  This was definitely the last straw for us.  My recommendation for anyone looking to host a dedicated server would be to take a hard look at <a title="1and1" href="http://www.1and1.com">1and1</a>.  They have done a fantastic job for us so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2012/03/17/godaddy-dedicated-server-disaster-recovery-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client Profile &#8211; Toyflow</title>
		<link>http://www.halfslide.com/blog/2011/10/30/client-profile-toyflow/</link>
		<comments>http://www.halfslide.com/blog/2011/10/30/client-profile-toyflow/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 16:43:35 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Deal of the Day Websites]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Daily Deal Site]]></category>
		<category><![CDATA[Daily Deal Website]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[Moneris]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Toys]]></category>
		<category><![CDATA[UPS]]></category>
		<category><![CDATA[UPS Worldship]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[wordpress site design]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=206</guid>
		<description><![CDATA[Visit Toyflow Toyflow.com is a new Canadian-based deal of the day site that sells toys and other children&#8217;s products to customers in the United States and Canada. The daily deal site has now been through two phases of development and has been in production selling products for the last month.  The site was designed with [...]]]></description>
			<content:encoded><![CDATA[<p><a class="visit" title="Visit Toyflow" href="http://toyflow.com" target="_blank">Visit Toyflow</a></p>
<p><a href="http://toyflow.com"><img class="alignnone size-full wp-image-214" title="Toyflow" src="http://www.halfslide.com/blog/wp-content/uploads/2011/10/latest_project_toyflow.jpg" alt="Toyflow Latest Project" width="620" height="210" /></a></p>
<p><a title="Toyflow" href="http://www.toylfow.com" target="_blank">Toyflow.com </a>is a new Canadian-based deal of the day site that sells toys and other children&#8217;s products to customers in the United States and Canada. The daily deal site has now been through two phases of development and has been in production selling products for the last month.  The site was designed with some very unique features in addition to the typical features you would see on a deal of the day site.</p>
<ul>
<li>Since the deal of the day site sells its products to customers in the United States and Canada, there were some customizations that needed to happen to accomodate the diverse customer base.</li>
<li>The site is fully internationalized when it comes to language and can be configured to display text in both French and English.</li>
<li>Toyflow accepts both the Canadian Dollar and US Dollar.  A user can elect to show prices for the products in either of these currencies as well as shipping costs, tax, and discount codes.</li>
<li>The site utilizes geolocation to determine which currency to show to a visitor as well as assists the user in filling out their order info by pre-filling their country, city, and state/province based on this geolocation data.</li>
<li>A full shipping integration has been built in order to allow the site to compute shipping costs to the United States as well as to Canada.  The entire shipping process has been fully automated.  The client can export orders to UPS Worldship for printing labels, print packing slips, and process returns using RMA numbers.</li>
<li>Canadian sales tax is calculated automatically based on the GST and PST taxes in each of the Canadian provinces</li>
<li>The site has the ability to feature side deals in addition to the standard deal of the day.  These deals can be scheduled based on date or on inventory.</li>
<li>Integration with Moneris for secure credit card payments directly on the site.</li>
<li>Ability to tag products for use in reporting.  Products can be tagged and placed into various categories so that sales can be analyzed to see which groups of products are selling the best.  This reporting is built into the site&#8217;s administrative console and all reports are exportable to Microsoft Excel.</li>
</ul>
<p>We at Halfslide Design really enjoyed working with David and Terry at Toyflow on the development of their daily deal website.  They are excellent communicators and have an excellent business plan.  In addition, they did a superb job of planning the website design project and clearly illustrating the requirements of their site.  If you haven&#8217;t checked out <a title="Toyflow" href="http://www.toyflow.com" target="_blank">Toyflow.com </a>yet, give it a look and grab some toys for your kids.</p>
<p><a class="visit" title="Visit Toyflow" href="http://toyflow.com" target="_blank">Visit Toyflow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/10/30/client-profile-toyflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export to CSV invalidates session on CodeIgniter</title>
		<link>http://www.halfslide.com/blog/2011/10/26/export-to-csv-invalidates-session-on-codeigniter/</link>
		<comments>http://www.halfslide.com/blog/2011/10/26/export-to-csv-invalidates-session-on-codeigniter/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 02:38:24 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=200</guid>
		<description><![CDATA[I ran into an interesting problem I&#8217;d never seen before this evening. I&#8217;m not sure if this is a problem isolated to the CodeIgniter framework because I&#8217;ve seen a few forum posts on Sencha/ExtJS reporting the same type of issue. But this was definitely happening for me on CodeIgniter. The situation was that every time [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting problem I&#8217;d never seen before this evening. I&#8217;m not sure if this is a problem isolated to the CodeIgniter framework because I&#8217;ve seen a few forum posts on Sencha/ExtJS reporting the same type of issue. But this was definitely happening for me on CodeIgniter.</p>
<p>The situation was that every time a user exported some data from one of my web applications to csv in Internet Explorer 8 and then opened that csv file, it would invalidate their session.  So, for example, they were running a report in the administrative console that provided results in an html table.  On all of the web applications that I write, I always give the user the ability to export the data to csv through a link above the table.  When a user clicked this link in IE and downloaded the csv file and then opened it, it essentially killed their session and forced them to log back in.  The key thing is that it would only do this if the user opened the file.  If they didn&#8217;t open it, their session was fine.</p>
<p>After doing some troubleshooting, I found that the issue was fixed by changing the Content-Type in the header.   In the method that exports the data to csv, it was set up as this:</p>
<blockquote class="code"><p>header(&#8220;Cache-Control: must-revalidate, post-check=0, pre-check=0&#8243; );<br />
header(&#8220;Content-Type: application/vnd.ms-excel&#8221; );<br />
header(&#8220;Content-Disposition:attachment; filename=&#8221;.$filename );<br />
header(&#8220;Content-Transfer-Encoding: binary&#8221; );</p>
<p>print $out;</p></blockquote>
<p>Where the &#8220;print $out&#8221; is actually printing out the details.</p>
<p>I was able to resolve this problem by changing the content-type header line above to:</p>
<blockquote class="code"><p>
		header(&#8220;Content-Type: application/octet-stream&#8221;);
</p></blockquote>
<p>I didn&#8217;t see many forum posts about this, so hopefully this blog post will help someone out down the road who runs into this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/10/26/export-to-csv-invalidates-session-on-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client Profile &#8211; I Choose Golf</title>
		<link>http://www.halfslide.com/blog/2011/06/08/client-profile-i-choose-golf/</link>
		<comments>http://www.halfslide.com/blog/2011/06/08/client-profile-i-choose-golf/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 02:39:25 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[magdesign]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=193</guid>
		<description><![CDATA[Visit iChooseGolf iChooseGolf is an exciting new fantasy golf site that seeks to provides a unique fantasy team experience to its users. The basic idea behind iChooseGolf is that a user can create a fantasy golf league, invite his or her friends to join that league by creating their own teams, and then compete against [...]]]></description>
			<content:encoded><![CDATA[<p><a class="visit" title="Visit iChooseGolf" href="http://www.ichoosegolf.com" target="_blank">Visit iChooseGolf</a></p>
<p><a href="http://www.ichoosegolf.com"><img class="alignnone size-full wp-image-194" title="iChooseGolf" src="http://www.halfslide.com/blog/wp-content/uploads/2011/06/latest_project_icg.jpg" alt="" width="620" height="210" /></a></p>
<p>iChooseGolf is an exciting new fantasy golf site that seeks to provides a unique fantasy team experience to its users. The basic idea behind iChooseGolf is that a user can create a fantasy golf league, invite his or her friends to join that league by creating their own teams, and then compete against them in weekly matchups. Each team in the league can build a list of PGA golfers through a draft, trades, or free-agent signings.  The team then receives a score based on how that team&#8217;s players perform in the weekly PGA tournaments.  A team is matched up with another team from their league once a week and the winner is the team with the highest score.  At the end of the season, the team who has the most victories over other league teams is the winner.</p>
<p>Those who have participated in other fantasy games (such as fantasy basketball or fantasy football) will find much of this familiar.  What sets iChooseGolf apart is the fact that the commissioner has full control over how the league is managed.  Each league&#8217;s schedule, score format, matchup format, and draft are all totally configurable and allows the league to find the exact format that is perfect for them.  The league truly has a powerful set of options for completely customizing the entire fantasy experience.</p>
<p>In addition, iChooseGolf has two different types of matchups:  ICG format and Gridiron.  The ICG format is completely unique and allows the league to score each round of a tournament in a different way.  They can setup &#8220;Best Ball&#8221; for round 1, &#8220;Worst Ball&#8221; for round 2, etc&#8230;  So each week, the scoring can be different, leading to a much richer experience for those who appreciate the strategy behind fantasy sports.</p>
<p>Halfslide Design was able to partner with <a title="MagDesign" href="http://www.magdesign.com">Magdesign </a>on the implementation of this new site.  Magdesign developed the really excellent layout and graphical elements that you see on the site as well as worked with iChooseGolf&#8217;s creator to flesh out the site&#8217;s vision.  Halfslide Design was responsible for implementing all of the business logic and UI architecture.  It has been a truly excellent partnership.</p>
<p>Mike at iChooseGolf is the client that every developer dreams about.  All through the project, he clearly communicated his vision in a way that I found refreshing and easy to work with.  I&#8217;d gladly work with Mike again any day.</p>
<p>iChooseGolf has just gone into beta so feel free to go over, sign up, create a fantasy golf team or fantasy golf league, and give us your feedback.  You can participate by creating your own league, joining an existing league, or participating in one of their public solo leagues.</p>
<p><a class="visit" title="Visit iChooseGolf" href="http://www.ichoosegolf.com" target="_blank">Visit iChooseGolf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/06/08/client-profile-i-choose-golf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ranking Teams based on Win/Loss/Tie Record using PHP&#8217;s usort()</title>
		<link>http://www.halfslide.com/blog/2011/04/06/ranking-teams-based-on-winlosstie-record-using-phps-usort/</link>
		<comments>http://www.halfslide.com/blog/2011/04/06/ranking-teams-based-on-winlosstie-record-using-phps-usort/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 15:19:26 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[usort]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=185</guid>
		<description><![CDATA[For a current project I&#8217;m working on, I&#8217;ve had to rank a list of teams based on their win-loss-tie record within their division. I searched the web but was unable to find anyone who had done this and posted an example so I figured I&#8217;d post my process. If you have corrections or improvements for [...]]]></description>
			<content:encoded><![CDATA[<p>For a current project I&#8217;m working on, I&#8217;ve had to rank a list of teams based on their win-loss-tie record within their division.  I searched the web but was unable to find anyone who had done this and posted an example so I figured I&#8217;d post my process.  <strong>If you have corrections or improvements for this, please feel free to comment. </strong></p>
<p>The code assumes that you have an array of team objects that each have a win/loss/tie property.  As an example, I&#8217;ve got an array of five teams such that:</p>
<blockquote class="code"><p>
Array<br />
(<br />
&nbsp;&nbsp;[0] => stdClass Object<br />
&nbsp;&nbsp;(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[id] => 1<br />
&nbsp;&nbsp;&nbsp;&nbsp;[name] => Team 1<br />
&nbsp;&nbsp;&nbsp;&nbsp;[wins] => 5<br />
&nbsp;&nbsp;&nbsp;&nbsp;[losses] => 6<br />
&nbsp;&nbsp;&nbsp;&nbsp;[ties] => 3<br />
&nbsp;&nbsp;)</p>
<p>&nbsp;&nbsp;[1] => stdClass Object<br />
&nbsp;&nbsp;(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[id] => 2<br />
&nbsp;&nbsp;&nbsp;&nbsp;[name] => Team 2<br />
&nbsp;&nbsp;&nbsp;&nbsp;[wins] => 4<br />
&nbsp;&nbsp;&nbsp;&nbsp;[losses] => 8<br />
&nbsp;&nbsp;&nbsp;&nbsp;[ties] => 4<br />
&nbsp;&nbsp;)</p>
<p>&nbsp;&nbsp;[2] => stdClass Object<br />
&nbsp;&nbsp;(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[id] => 3<br />
&nbsp;&nbsp;&nbsp;&nbsp;[name] => Team 3<br />
&nbsp;&nbsp;&nbsp;&nbsp;[wins] => 2<br />
&nbsp;&nbsp;&nbsp;&nbsp;[losses] => 9<br />
&nbsp;&nbsp;&nbsp;&nbsp;[ties] => 6<br />
&nbsp;&nbsp;)</p>
<p>&nbsp;&nbsp;[3] => stdClass Object<br />
&nbsp;&nbsp;(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[id] => 4<br />
&nbsp;&nbsp;&nbsp;&nbsp;[name] => Team 4<br />
&nbsp;&nbsp;&nbsp;&nbsp;[wins] => 4<br />
&nbsp;&nbsp;&nbsp;&nbsp;[losses] => 9<br />
&nbsp;&nbsp;&nbsp;&nbsp;[ties] => 4<br />
&nbsp;&nbsp;)</p>
<p>&nbsp;&nbsp;[4] => stdClass Object<br />
&nbsp;&nbsp;(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[id] => 5<br />
&nbsp;&nbsp;&nbsp;&nbsp;[name] => Team 5<br />
&nbsp;&nbsp;&nbsp;&nbsp;[wins] => 4<br />
&nbsp;&nbsp;&nbsp;&nbsp;[losses] => 9<br />
&nbsp;&nbsp;&nbsp;&nbsp;[ties] => 5<br />
&nbsp;&nbsp;)<br />
)
</p></blockquote>
<p>We&#8217;re going to use <a title="usort()" href="http://www.php.net/usort" target="_blank">usort </a>to sort the array based on each team&#8217;s win/loss/tie record.  First, we need to write our usort method:</p>
<blockquote class="code"><p>
function sort_win_loss($team1, $team2) {<br />
&nbsp;&nbsp;if($team1->wins > $team2->wins) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;return -1;<br />
&nbsp;&nbsp;} else if($team1->wins < $team2->wins) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 1;<br />
&nbsp;&nbsp;} else if($team1->wins == $team2->wins) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if($team1->losses>$team2->losses) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;} else if($team1->losses<$team2->losses) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;} else if($team1->losses==$team2->losses){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($team1->ties>$team2->ties) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return -1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}	else if($team1->ties<$team2->ties) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}	else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;return 0;<br />
}
</p></blockquote>
<p>Lastly, we provide our array of teams to the usort and get our sorted list back:</p>
<blockquote class="code"><p>
usort($teams, &#8220;sort_win_loss&#8221;);<br />
// After the usort, the teams will be ranked as<br />
// 1) Team 1<br />
// 2) Team 2<br />
// 3) Team 5<br />
// 4) Team 4<br />
// 5) Team 3
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/04/06/ranking-teams-based-on-winlosstie-record-using-phps-usort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client Profile &#8211; Lure Depot</title>
		<link>http://www.halfslide.com/blog/2011/03/04/client-profile-lure-depot/</link>
		<comments>http://www.halfslide.com/blog/2011/03/04/client-profile-lure-depot/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 22:25:55 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Deal of the Day Websites]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=174</guid>
		<description><![CDATA[Visit Lure Depot Lure Depot is a daily deal website recently completed by Halfslide Design. We were contacted by the owners of Lure Depot about creating a daily deal website that would feature their fishing related products on a daily basis. In additional to featuring one daily deal, the clients wished to be able to [...]]]></description>
			<content:encoded><![CDATA[<p><a class="visit" title="Visit Lure Depot" href="http://www.lure-depot.com" target="_blank">Visit Lure Depot</a></p>
<p><a href="http://www.lure-depot.com"><img class="alignnone size-full wp-image-175" title="Lure Depot" src="http://www.halfslide.com/blog/wp-content/uploads/2011/03/latest_project_lure_depot.jpg" alt="Lure Depot" width="620" height="210" /></a></p>
<p>Lure Depot is a daily deal website recently completed by Halfslide Design. We were contacted by the owners of Lure Depot about creating a daily deal website that would feature their fishing related products on a daily basis. In additional to featuring one daily deal, the clients wished to be able to feature up to an additional two side deals each day in a manner that is similar to other deal sites.  The site also features:</p>
<ul class="basic">
<li>Configurable product options: the client can fully configure how the  products are listed such as when each daily deal ends, how many  pictures to show on each product, how many features, etc&#8230;</li>
<li>Each product can feature videos hosted on youtube.  Each video is listed in the sidebar of the product and plays in a pop-up window when the visitor clicks to view it.</li>
<li>The site features a mini-CMS that allows the client to  add/remove/update any pages on the site such as the About Us, FAQ,  Contact us pages.   The CMS features a mini-WYSIWYG editor to allow the  client to have full-control over how the page is designed.</li>
<li>Integration with Google Checkout, Paypal Website Payments Standard,  and Paypal Website Payments Pro.  Each of these integrations can be  turned off at any time.</li>
<li>The ability to add discount coupons that provide various  configurations of discounts such as a fixed price, percentage of order  cost, free shipping, etc&#8230;  Each coupon can be controlled to expire at  either a future date, or after a certain number of uses.</li>
<li>A customizable schedule that allows the client to setup an unlimited  number of future deals and configure how long each deal lasts.  In addition to scheduling the main daily deal, the client can also schedule up to two more side deals.</li>
<li>A listing of the previous five deals featured on the site to give  new visitors an idea of what products have been recently available.</li>
<li>A &#8216;Past Deals&#8217; page that features the most recent deals that are still available to purchase.  This gives the client the ability to continue to sell a product to visitors who may have missed them when they were originally for sale.</li>
<li>Customers can setup accounts on the site which will allow them to see their order status as well as store their checkout information for quicker purchases in the future.</li>
</ul>
<p><a class="visit" title="Visit Lure Depot" href="http://www.lure-depot.com" target="_blank">Visit Lure Depot</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/03/04/client-profile-lure-depot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client Profile &#8211; Countshop Daily Deal</title>
		<link>http://www.halfslide.com/blog/2011/02/24/client-profile-countshop-daily-deal/</link>
		<comments>http://www.halfslide.com/blog/2011/02/24/client-profile-countshop-daily-deal/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 22:01:29 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Deal of the Day Websites]]></category>
		<category><![CDATA[Daily Deal Site]]></category>
		<category><![CDATA[Daily Deal Website]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[Google Checkout]]></category>
		<category><![CDATA[Paypal Website Payments Pro]]></category>
		<category><![CDATA[Paypal Website Payments Standard]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=169</guid>
		<description><![CDATA[Visit Countshop Daily Deal Countshop.com is an online retailer of fine watches with an international client base. The owners of Countshop contacted us at Halfslide Design about creating a daily deal store to complement their current e-commerce website.  Halfslide recently completed the work on the site and is happy to announce a successful launch. The [...]]]></description>
			<content:encoded><![CDATA[<p><a class="visit" title="Visit Countshop Daily Deal" href="http://dailydeal.countshop.com" target="_blank">Visit Countshop Daily Deal</a></p>
<p><a href="http://dailydeal.countshop.com"><img class="size-full wp-image-170 alignnone" title="Countshop Daily Deal" src="http://www.halfslide.com/blog/wp-content/uploads/2011/03/latest_project_countshop.jpg" alt="Countshop Daily Deal" width="620" height="210" /></a></p>
<p>Countshop.com is an online retailer of fine watches with an international client base. The owners of Countshop contacted us at Halfslide Design about creating a daily deal store to complement their current e-commerce website.  Halfslide recently completed the work on the site and is happy to announce a successful launch.</p>
<p>The site is built with a goal of being easily reproduced in the various languages of the countries that Countshop seeks to market to.  Halfslide Design built the site fully internationalized so that it is easy for the client to swap out language files for customers in Sweden, Japan, Brazil, etc&#8230;  The site also features:</p>
<ul class="basic">
<li>Configurable currencies to allow each site to sell products in the native currency of its targeted market.  For example, the Swedish Countshop site will list all products in the Swedish Krona (Sweden has not yet adopted the Euro).</li>
<li>Configurable product options: the client can fully configure how the products are listed such as when each daily deal ends, how many pictures to show on each product, how many features, etc&#8230;</li>
<li>Each product can feature links to comparable prices at other competitors in order to showcase the savings that Countshop provides over its customers.</li>
<li>The site features a mini-CMS that allows the client to add/remove/update any pages on the site such as the About Us, FAQ, Contact us pages.   The CMS features a mini-WYSIWYG editor to allow the client to have full-control over how the page is designed.</li>
<li>Integration with Google Checkout, Paypal Website Payments Standard, and Paypal Website Payments Pro.  Each of these integrations can be turned off at any time.</li>
<li>The ability to add discount coupons that provide various configurations of discounts such as a fixed price, percentage of order cost, free shipping, etc&#8230;  Each coupon can be controlled to expire at either a future date, or after a certain number of uses.</li>
<li>A customizable schedule that allows the client to setup an unlimited number of future deals and configure how long each deal lasts.</li>
<li>A listing of the previous five deals featured on the site to give new visitors an idea of what products have been recently available.</li>
</ul>
<p><a class="visit" title="Visit Countshop Daily Deal" href="http://dailydeal.countshop.com" target="_blank">Visit Countshop Daily Deal</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/02/24/client-profile-countshop-daily-deal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Halfslide Design Launches Mobile Site</title>
		<link>http://www.halfslide.com/blog/2011/01/27/halfslide-design-launches-mobile-site/</link>
		<comments>http://www.halfslide.com/blog/2011/01/27/halfslide-design-launches-mobile-site/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 05:58:30 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[smart phones]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=158</guid>
		<description><![CDATA[Visit Halfslide Deisgn MobileHalfslide Design is happy to announce that we have completed our new mobile site at m.halfslide.com. If you are on a smart phone, you will now be automatically redirected to the mobile version of our site with scaled down pages including our list of services, contact information, portfolio of web design projects, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://m.halfslide.com"><img class="alignleft size-full wp-image-163" title="Halfslide Mobile Site" src="http://www.halfslide.com/blog/wp-content/uploads/2011/01/halfslide-mobile.jpg" alt="" width="250" height="461" /></a></p>
<p><a class="visit" title="Visit Halfslide Design Mobile" href="http://m.halfslide.com" target="_blank">Visit Halfslide Deisgn Mobile</a>Halfslide Design is happy to announce that we have completed our new mobile site at m.halfslide.com. If you are on a smart phone, you will now be automatically redirected to the mobile version of our site with scaled down pages including our list of services, contact information, portfolio of web design projects, and list of testimonials from happy clients.</p>
<p>Usability was the main motivation for creating the mobile site.  The site provides visitors with a better experience by serving them smaller images, less css and javascript, and formatting the navigation and text in such a way that they do not have to zoom or horizontally scroll.</p>
<p>The mobile site was designed to be compatible with all mobile browsers on smart phones like the iPhone, Blackberry, and Android phones.  If you are interested in having Halfslide build a mobile version of your website, please contact us through our contact page and we&#8217;ll be happy to discuss your project and provide a quote on the expected cost of your site.<a class="visit" title="Visit Halfslide Design Mobile" href="http://m.halfslide.com" target="_blank">Visit Halfslide Deisgn Mobile</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2011/01/27/halfslide-design-launches-mobile-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Search Engine Optimization Technique: Blogging</title>
		<link>http://www.halfslide.com/blog/2010/12/29/easy-search-engine-optimization-technique-blogging/</link>
		<comments>http://www.halfslide.com/blog/2010/12/29/easy-search-engine-optimization-technique-blogging/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 20:09:50 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Recommendations]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[search engine optimization]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=153</guid>
		<description><![CDATA[Recently, several clients have reached out to me for guidance on how to increase traffic to their websites. Many of these clients have sites that are rich in media such as video or image collateral but they have not made much use of their text content. In other words, their sites look great, but the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, several clients have reached out to me for guidance on how to increase traffic to their websites. Many of these clients have sites that are rich in media such as video or image collateral but they have not made much use of their text content. In other words, their sites look great, but the lack of text is punishing them when it comes to search engine optimization. One of the ways that we&#8217;ve found that will increase the search engine optimization is to incorporate a blog.</p>
<p>Blogs, when continuously updated, create a way for the client to create content that is relevant to their subject area and creates new search engine entry points to their site.  For example, one of my clients is a real estate agent here in the Austin, Texas area.  They have a website that features many images of the properties that they are selling and a few short paragraphs of text that list the amenities of the property.  They aren&#8217;t getting great search engine optimization due to the fact that they have very few words in their site that might be relevant to their target audience.</p>
<p>I advised this client to start a blog and to write at least one article per week regarding real estate trends in the Austin area.  They have posted a few articles about specific areas in Central Texas such as the Round Rock, Pflugerville, and Cedar Park areas.  In each of these articles, they&#8217;ve discussed how the market is recovering from the housing collapse and listed a few links to some of the houses that the agent has for sale in the area.</p>
<p>After analyzing the visitor data from Google Analytics, we&#8217;ve noticed a dramatic rise in traffic to their website as visitors search for keywords like &#8220;Cedar Park Real Estate&#8221; and land on the agent&#8217;s blog post about the homes in that area.</p>
<p>So, with a blog, the client can spend ten to twenty minutes per week putting together a short article on a topic relevant to their visitors and reap the rewards of increased page views.  It&#8217;s a win-win.</p>
<p>If you are interested in discussing a blog integration with Halfslide Design, please <a title="Contact Us" href="http://www.halfslide.com/contact.php" target="_blank">contact us through our contact page.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2010/12/29/easy-search-engine-optimization-technique-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

