<?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>Things That Work &#187; Things That Work</title>
	<atom:link href="http://thingsthatwork.net/index.php/category/things-that-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://thingsthatwork.net</link>
	<description>Thoughts on life and code</description>
	<lastBuildDate>Tue, 16 Feb 2010 00:25:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>HTML Entities and Actionscript</title>
		<link>http://thingsthatwork.net/index.php/2008/06/26/html-entities-and-actionscript/</link>
		<comments>http://thingsthatwork.net/index.php/2008/06/26/html-entities-and-actionscript/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 23:43:54 +0000</pubDate>
		<dc:creator>Katy Richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Things That Work]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML Entities]]></category>

		<guid isPermaLink="false">http://thingsthatwork.net/?p=17</guid>
		<description><![CDATA[A couple weeks ago I needed to easily convert HTML entities in a string back to their normal representation, but I didn&#8217;t really find anything nice, and wound up just using str.replace(/&#38;/g, "&#038;").replace(/&#39;/g, "'"); since those were the only characters I was having a problem with at the time. But today I went searching again [...]]]></description>
			<content:encoded><![CDATA[<p>A couple weeks ago I needed to easily convert HTML entities in a string back to their normal representation, but I didn&#8217;t really find anything nice, and wound up just using <code>str.replace(/&amp;/g, "&#038;").replace(/&#39;/g, "'");</code> since those were the only characters I was having a problem with at the time.</p>
<p>But today I went searching again for something better, and found a really great way to <a href="http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/" target="_blank">escape and unescape HTML entities</a>. Not sure why I didn&#8217;t find his post the first time, I guess my Google-fu was weak that day.</p>
<p>Anyway, I&#8217;ve wrapped his methods up in a little helper class, and it works great:</p>
<p><code></p>
<pre>
package com.grooveshark.utils
{

    public class HTMLEntityUtils
    {
        import flash.xml.XMLDocument;
        import flash.xml.XMLNode;
        import flash.xml.XMLNodeType;

        public function HTMLEntityUtils()
        {
        }

        public static function htmlEscape(str:String):String
        {
            return XML(new XMLNode(XMLNodeType.TEXT_NODE, str)).toXMLString();
        }

        public static function htmlUnescape(str:String):String
        {
            return new XMLDocument(str).firstChild.nodeValue;
        }
    }
}
</pre>
<p></code></p>
<p>Hope it helps someone else!</p>
]]></content:encoded>
			<wfw:commentRss>http://thingsthatwork.net/index.php/2008/06/26/html-entities-and-actionscript/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Things that Work: Slicehost</title>
		<link>http://thingsthatwork.net/index.php/2008/02/04/slicehost-works/</link>
		<comments>http://thingsthatwork.net/index.php/2008/02/04/slicehost-works/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 05:08:41 +0000</pubDate>
		<dc:creator>Katy Richard</dc:creator>
				<category><![CDATA[Things That Work]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://thingsthatwork.net/index.php/2008/02/04/things-that-work-slicehost/</guid>
		<description><![CDATA[I just wanted to give a little shoutout to my VPS provider: Slicehost. I used to have a couple of shared hosting accounts with Hurricane Electric. Now, if you just need a basic shared hosting account, I highly recommend them. In all the years they hosted my sites, I never had any problems, and I really appreciated [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to give a little shoutout to my VPS provider: <a href="http://slicehost.com" target="_blank">Slicehost</a>.</p>
<p>I used to have a couple of shared hosting accounts with <a href="http://he.net" target="_blank">Hurricane Electric</a>. Now, if you just need a basic shared hosting account, I highly recommend them. In all the years they hosted my sites, I never had any problems, and I really appreciated their no fuss, no muss approach. Yeah, no cpanel or plesk or whatever, but I didn&#8217;t need those things, and in my experience, those all-in-one control panels are usually more trouble then they&#8217;re worth, and in the end you wind up with fewer options and less control over your site than if you had it hosted somewhere without them.</p>
<p>So I was very happy with HE.net, except that if I wanted to set up any more domains, I&#8217;d have to sign up more accounts, and honestly, none of the sites I wanted to build were really worth paying more money per month just to play with. Plus, I wanted an opportunity to learn more about how to set up a web server in the first place. So I started looking into VPS and dedicated server solutions. None of them particularly grabbed my attention until a friend found a link to Slicehost.</p>
<p>Both their philosophy and their prices caught my eye. They say that they&#8217;re a VPS provider for developers, by developers, and so far I&#8217;ve seen nothing to the contrary. They offer a variety of Linux flavors that you can install on your slice, and experimenting is encouraged &#8211; worst case scenario, you log into the admin panel and click the button to rebuild your slice from scratch. Five minutes later, you have a brand new shiny root password and a fresh start. Their wiki and forums are full of advice, guides, and tutorials from fellow slicehosters, so even if you&#8217;re new to linux server administration, you&#8217;ll be able to figure out how to set up the environment of your choice, regardless of whether you prefer PHP, Ruby on Rails, or even Django. They&#8217;ll even take care of your DNS for you, with a handy-dandy web form that makes adding records a snap, even if you&#8217;ve never done it before.</p>
<p>So I can&#8217;t recommend Slicehost enough. I&#8217;m saving money, getting to host whatever sites I want, AND learning all at the same time. Win-win.</p>
<p><a href="http://slicehost.com" target="_blank">Slicehost</a> Works. </p>
]]></content:encoded>
			<wfw:commentRss>http://thingsthatwork.net/index.php/2008/02/04/slicehost-works/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

