<?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>Houen&#039;s Blog</title>
	<atom:link href="http://blog.houen.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.houen.net</link>
	<description>Code, Drupal, Java, Flash, Computer Science and more</description>
	<lastBuildDate>Fri, 14 Oct 2011 12:08:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Kill a process in Mac OS X from the terminal command line</title>
		<link>http://blog.houen.net/kill-a-process-in-mac-os-x/</link>
		<comments>http://blog.houen.net/kill-a-process-in-mac-os-x/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 11:54:22 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[kill process]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[process]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=164</guid>
		<description><![CDATA[It can sometimes be necessary to kill a process in Mac OSX. We&#8217;ve all tried it. To kill a process or program in the Mac OSX Leopard / Snow leopard / Lion do the following commands ps -A &#124; grep &#91;name of program you want to close&#93; This will give you the number of the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>It can sometimes be necessary to kill a process in Mac OSX. We&#8217;ve all tried it.</strong><br />
To kill a process or program in the Mac OSX Leopard / Snow leopard / Lion do the following commands</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-A</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>name of program you want to close<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>This will give you the number of the processes found (if any). Now just close them with this command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>process <span style="color: #c20cb9; font-weight: bold;">id</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>So, for example to kill my activity monitor program</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-A</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> activity
<span style="color: #000000;">39049</span> ??         <span style="color: #000000;">0</span>:<span style="color: #000000;">01.81</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>Utilities<span style="color: #000000; font-weight: bold;">/</span>Activity Monitor.app<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>MacOS<span style="color: #000000; font-weight: bold;">/</span>activitymonitord
<span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #000000;">39049</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/kill-a-process-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.1 Redirect back to controller after custom authentication</title>
		<link>http://blog.houen.net/rails-3-1-redirect-back-to-controller-after-custom-authentication/</link>
		<comments>http://blog.houen.net/rails-3-1-redirect-back-to-controller-after-custom-authentication/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 12:33:32 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Rails 3.1]]></category>
		<category><![CDATA[Ruby on Rails 3]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[devise]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.1]]></category>
		<category><![CDATA[railscasts]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=168</guid>
		<description><![CDATA[If, like me, and Ryan Bates, you like doing the important things yourself, so that if there are errors, they&#8217;re your errors, chances are you will want to create your Rails authentication from scratch yourself. Ryan of Railscasts has an excellent screencast about this. I switched from Devise to this in a breeze, and then [...]]]></description>
			<content:encoded><![CDATA[<p>If, like me, and Ryan Bates, you like doing the important things yourself, so that if there are errors, they&#8217;re <strong>your</strong> errors, chances are you will want to create your Rails authentication from scratch yourself. Ryan of Railscasts <a href="http://railscasts.com/episodes/270-authentication-in-rails-3-1">has an excellent screencast about this</a>.</p>
<p>I switched from Devise to this in a breeze, and then comes the customization. One of these is the all-important redirecting back to the funnel a user came from after they are done signing in, or up. This can actually be achieved very easily, following some<br />
Devise conventions.</p>
<p>Say I have a CharitiesController, that I want to close to unauthenticated users. In line with Devise, I would do this to force them to authenticate:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> CharitiesController <span style="color:#006600; font-weight:bold;">&lt;</span> ApplicationController
  before_filter <span style="color:#ff3333; font-weight:bold;">:authenticate_user</span>!, <span style="color:#ff3333; font-weight:bold;">:except</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:show</span>, <span style="color:#ff3333; font-weight:bold;">:index</span><span style="color:#006600; font-weight:bold;">&#93;</span></pre></div></div>

<p>And in my ApplicationController, given i have set the user sign in route to user_login, I can define a return point:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> ApplicationController <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActionController::Base</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> authenticate_user!<span style="color:#006600; font-weight:bold;">&#40;</span>return_point = request.<span style="color:#9900CC;">url</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">unless</span> user_signed_in?
    set_return_point<span style="color:#006600; font-weight:bold;">&#40;</span>return_point<span style="color:#006600; font-weight:bold;">&#41;</span>
    redirect_to user_login_path
  <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> return_point
    session<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:return_point</span><span style="color:#006600; font-weight:bold;">&#93;</span> ? session<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:return_point</span><span style="color:#006600; font-weight:bold;">&#93;</span> : root_path
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>And then, in my UserSessionsController, I can redirect the user back to the return point:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> UserSessionsController <span style="color:#006600; font-weight:bold;">&lt;</span> ApplicationController
  <span style="color:#9966CC; font-weight:bold;">def</span> create
    user = User.<span style="color:#9900CC;">find_by_email</span><span style="color:#006600; font-weight:bold;">&#40;</span>params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:email</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">if</span> user <span style="color:#9966CC; font-weight:bold;">and</span> user.<span style="color:#9900CC;">authenticate</span><span style="color:#006600; font-weight:bold;">&#40;</span>params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:password</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      session<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:user_id</span><span style="color:#006600; font-weight:bold;">&#93;</span> = user.<span style="color:#9900CC;">id</span>
      redirect_to return_point, <span style="color:#ff3333; font-weight:bold;">:notice</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;You are now signed in&quot;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#006600; font-weight:bold;">&#91;</span>...<span style="color:#006600; font-weight:bold;">&#93;</span></pre></div></div>

<p>Now, whenever a controller calls <em>authenticate_user!</em>, my <strong>ApplicationController</strong> will save the calling URL before redirecting to the login page, and by fetching <em>return_point</em> from the <strong>UserSessionsController</strong>, I can redirect them back to that page. I can even override it, such that I can send them wherever I want, should I so desire. Awesome!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/rails-3-1-redirect-back-to-controller-after-custom-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Carrierwave with Rails 3.1 upgrade</title>
		<link>http://blog.houen.net/carrierwave-with-rails-3-1-upgrade/</link>
		<comments>http://blog.houen.net/carrierwave-with-rails-3-1-upgrade/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 08:21:40 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Rails 3.1]]></category>
		<category><![CDATA[Ruby on Rails 3]]></category>
		<category><![CDATA[carrierwave]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.1]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=157</guid>
		<description><![CDATA[So I had some trouble with Activesupport and CarrierWave when upgrading to Rails 3.1, so I&#8217;m putting my solution here, hopefully for others to enjoy. I got this error: Bundler could not find compatible versions for gem &#8220;activesupport&#8221;: In Gemfile: rails (= 3.1.1) depends on activesupport (= 3.1.1) carrierwave depends on activesupport (3.0.10) And the [...]]]></description>
			<content:encoded><![CDATA[<p>So I had some trouble with Activesupport and CarrierWave when upgrading to Rails 3.1, so I&#8217;m putting my solution here, hopefully for others to enjoy. I got this error:</p>
<blockquote><p>Bundler could not find compatible versions for gem &#8220;activesupport&#8221;:<br />
In Gemfile:<br />
rails (= 3.1.1) depends on<br />
activesupport (= 3.1.1)</p>
<p>carrierwave depends on<br />
activesupport (3.0.10)</p></blockquote>
<p>And the solutions was to do the bundle update command</p>
<blockquote><p>bundle update</p></blockquote>
<p>Or, if you like me are using rvm</p>
<blockquote><p>rvmsudo bundle update</p></blockquote>
<p>And now everything works just perfect ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/carrierwave-with-rails-3-1-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3 Magic Migrations</title>
		<link>http://blog.houen.net/rails-3-magic-migrations/</link>
		<comments>http://blog.houen.net/rails-3-magic-migrations/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 15:44:19 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=158</guid>
		<description><![CDATA[I Always forget what the Magic Migrations (migration generator names that automatically populate the migration with code) in Rails 3 are, so I thought I&#8217;d scratch my own itch and post them here for me (okay, and others) to find: Rails 3 Magic Migrations &#160; CreateSchemaName field1:type field2:type &#160; AddColumnColumnNameToSchemaName field1:type field2:type &#160; RemoveColumnNameFromSchemaName field1:type [...]]]></description>
			<content:encoded><![CDATA[<p>I Always forget what the Magic Migrations (migration generator names that automatically populate the migration with code) in Rails 3 are, so I thought I&#8217;d scratch my own itch and post them here for me (okay, and others) to find:</p>
<h2>Rails 3 Magic Migrations</h2>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">CreateSchemaName field1:type field2:type
&nbsp;
AddColumnColumnNameToSchemaName field1:type field2:type
&nbsp;
RemoveColumnNameFromSchemaName field1:type field2:type</pre></div></div>

<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/rails-3-magic-migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The best Ruby on Rails book</title>
		<link>http://blog.houen.net/best-rails-book/</link>
		<comments>http://blog.houen.net/best-rails-book/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 00:53:17 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Ruby on Rails 3]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=145</guid>
		<description><![CDATA[I have found a book that is really great. The best beginners&#8217; book for Ruby on Rails 3 to me: The Rails 3 Tutorial book I&#8217;m always learning new programming languages for projects (just have a look at the books ive read so far), and though they&#8217;re often very similar, a good book is essential to me in [...]]]></description>
			<content:encoded><![CDATA[<p>I have found a book that is really great. The <strong>best beginners&#8217; book</strong> for <strong>Ruby on Rails 3</strong> to me: <a title="Rails 3 Tutorial" href="http://ruby.railstutorial.org/ruby-on-rails-tutorial-book" target="_blank">The Rails 3 Tutorial book</a></p>
<p>I&#8217;m always learning new programming languages for projects (just have a look at <a title="Books ive read" href="ttp://www.shelfari.com/o1514336786/shelf" target="_blank">the books ive read so far</a>), and though they&#8217;re often very similar, a good book is essential to me in grasping new languages quickly.  For Rails, I started with <a href="http://pragprog.com/titles/rails3" target="_blank">Agile Web Development with Rails</a> by the Pragmatic guys, but found that it was way too problem-specific and not giving enough real rails knowledge. So i went back to the <a title="Rails Guides" href="http://guides.rubyonrails.org/" target="_blank">official guides</a>, which are very, very, very good.</p>
<p>Now, however, I have found what I was looking for: <a title="Rails 3 Tutorial" href="http://ruby.railstutorial.org/ruby-on-rails-tutorial-book" target="_blank">The Rails 3 Tutorial book</a></p>
<p>And to sweeten the deal, you can read it online for free (though I bought and printed it &#8211; you just cant beat the reusability of a book that you&#8217;ve underlined yourself) and there&#8217;s even a bunch of screencasts to further your education after reading the book.</p>
<p>Thank you Michael Hartl</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/best-rails-book/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Meowgle &#8211; Google with kittens. LOTS of kittens</title>
		<link>http://blog.houen.net/meowgle-google-with-kittens-lots-of-kittens/</link>
		<comments>http://blog.houen.net/meowgle-google-with-kittens-lots-of-kittens/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 16:16:33 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=128</guid>
		<description><![CDATA[Do you like kittens? I know, who doesn&#8217;t, right? On Meowgle.com you can get your standard Google search, only wrapped in wonderful Kitten pictures. There&#8217;s a new kitten image and video every day, so you can start the day with a cute little fluffy kitten]]></description>
			<content:encoded><![CDATA[<p>Do you like kittens? I know, who doesn&#8217;t, right?</p>
<p>On <a title="Meowgle - Google with kittens" href="http://www.meowgle.com">Meowgle.com</a> you can get your standard Google search, only <a href="http://www.meowgle.com">wrapped in wonderful Kitten pictures</a>. There&#8217;s a new kitten <strong>image</strong> and <strong>video</strong> every day, so you can start the day with a cute little fluffy kitten <img src='http://blog.houen.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_129" class="wp-caption alignnone" style="width: 946px"><a href="http://blog.houen.net/wp-content/uploads/2011/01/meowgle.jpg" rel="lightbox[128]"><img class="size-full wp-image-129" title="Meowgle - Google with kittens" src="http://blog.houen.net/wp-content/uploads/2011/01/meowgle.jpg" alt="Meowgle - Google with kittens" width="936" height="596" /></a><p class="wp-caption-text">Meowgle - Google with kittens</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/meowgle-google-with-kittens-lots-of-kittens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diablo 3 release date info page</title>
		<link>http://blog.houen.net/diablo-3-release-date-info-page/</link>
		<comments>http://blog.houen.net/diablo-3-release-date-info-page/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 14:36:05 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=124</guid>
		<description><![CDATA[So I&#8217;m pretty excited about Diablo 3 coming out this year, and decided to create a page dedicated to that most important of dates, the release date. So head on over, and check out my Diablo 3 Release Date page &#8211; I think it&#8217;s the most stylish one out there]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m pretty excited about Diablo 3 coming out this year, and decided to create a page dedicated to that most important of dates, the release date. So head on over, and check out my <a title="Diablo 3 Release Date" href="http://www.diablo3releasedateinfo.com">Diablo 3 Release Date</a> page &#8211; I think it&#8217;s the most stylish one out there <img src='http://blog.houen.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://blog.houen.net/wp-content/uploads/2011/01/diablo3releasedatebck.jpg" rel="lightbox[124]"><img class="alignnone size-large wp-image-125" title="diablo3releasedateinfo.com screenshot" src="http://blog.houen.net/wp-content/uploads/2011/01/diablo3releasedatebck-1024x462.jpg" alt="Screenshot" width="1024" height="462" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/diablo-3-release-date-info-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3 Cucumber and webrat &#8220;undefined method&#8221; error fix</title>
		<link>http://blog.houen.net/rails-3-cucumber-and-webrat-undefined-method-error-fix/</link>
		<comments>http://blog.houen.net/rails-3-cucumber-and-webrat-undefined-method-error-fix/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 20:05:06 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=102</guid>
		<description><![CDATA[So, I recently started using Rails 3, and I am running my test with the awesome Cucumber framework, and Webrat. To set it up in Rails 3, however, I had to apply a little fix, because my task kept giving me this lovely error 1 undefined method `fill_in' for # (NoMethodError) Now, the fix for [...]]]></description>
			<content:encoded><![CDATA[<p>So, I recently started using Rails 3, and I am running my test with the awesome Cucumber framework, and Webrat. To set it up in Rails 3, however, I had to apply a little fix, because my<br />
task kept giving me this lovely error</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="rails" style="font-family:monospace;">undefined method <span style="color:#996600;">`fill_in' for # (NoMethodError)</span></pre></td></tr></table></div>

<p>Now, the fix for this is very easy &#8211; you go to your &#8220;env.rb&#8221; file under features/support, and change :rails to :rack, like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="rails" style="font-family:monospace;">Webrat.<span style="color:#9900CC;">configure</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>config<span style="color:#006600; font-weight:bold;">|</span>
  config.<span style="color:#9900CC;">mode</span> = <span style="color:#ff3333; font-weight:bold;">:rack</span>
  config.<span style="color:#9900CC;">open_error_files</span> = <span style="color:#0000FF; font-weight:bold;">false</span> <span style="color:#008000; font-style:italic;"># Set to true if you want error pages to pop up in the browser</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>And presto! It works!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/rails-3-cucumber-and-webrat-undefined-method-error-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO Guide for Drupal and other websites</title>
		<link>http://blog.houen.net/seo-guide-for-drupal-and-other-websites/</link>
		<comments>http://blog.houen.net/seo-guide-for-drupal-and-other-websites/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 11:22:19 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=85</guid>
		<description><![CDATA[SEO Guide So I created a basic SEO guide to help webmasters (Drupal in particular) increase their SEO and search engine ranking. Top Elements of SEO Ordered by importance Incoming links (links from other domains) are the most important contributor to SE ranking with Google. Generally it is more important to have quality of links [...]]]></description>
			<content:encoded><![CDATA[<h1 id="internal-source-marker_0.9817225204315037">SEO Guide</h1>
<p>So I created a basic SEO guide to help webmasters (Drupal in particular) increase their SEO and search engine ranking.</p>
<h2>Top Elements of SEO</h2>
<h3>Ordered by importance</h3>
<ol>
<li>Incoming links (links from other domains) are the most important contributor to SE ranking with Google. Generally it is more important to have quality of links than quantity. Few high-quality links are better than many low-quality, and many high-quality links are best. The important factors are:
<ol>
<li>The <a href="http://en.wikipedia.org/wiki/PageRank">Pagerank</a> of the site linking to you</li>
<li>The relevance of the site linking to you. Sites with a similar content theme will elevate your ranking for their ranked keywords. Sites with a theme different from your site will dilute your keyword relevance.<br />
Note: One or two sites with a different theme are irrelevant. Only incoming link tendencies are important. As always, the higher the pagerank of the site linking in, the higher the importance of the link.</li>
<li>The link label of the incoming link (e.g. <a href="../">SEO </a><a href="http://blog.houen.net">guide for </a><a href="../">Drupal</a>)<br />
The link above links to basico’s page, and elevates the site’s ranking for the keywords (search words) Drupal and SEO</li>
</ol>
</li>
<li>On-page keywords. These are the words you want people to find you by when entering a search phrase in Google. E.g. “Drupal SEO” The important keywords here are Drupal and SEO, so these must be used in pages on the site that you want your users to find. The important places to use the keywords are:
<ol>
<li>Page title: The title shown in the top of the browser window when viewing a page
<ol>
<li>Note: Page title is not equal to headings in the document content</li>
</ol>
</li>
<li>Keywords in path: Having the keywords to rank for in the URL (e.g. blog.houen.net/<strong>seo</strong>/<strong>seo</strong>-<strong>guide</strong>-for-<strong>drupal</strong>-and-other-<strong>websites)</strong>
<ol>
<li>The above URL will elevate the ranking for SEO, Drupal, guide and websites.</li>
</ol>
</li>
<li>Heading: The part of the page’s content that is wrapped in a &lt;h1&gt; tag</li>
<li>Emphasized body parts: Parts of the text enclosed in the &lt;strong&gt; tag</li>
<li>General mention of keywords in text.</li>
</ol>
</li>
<li>Internal links (links from other content on your own domain) should be treated like incoming links, albeit with less relevance.
<ol>
<li>While links internally on your site are nowhere near as important as incoming links, they are still relevant.</li>
</ol>
</li>
<li>Sitemap
<ol>
<li>A XML sitemap will tell SE’s what content you have an index it all. This is automatically generated and updated by Drupal if you have the <a href="http://drupal.org/project/xmlsitemap">XML Sitemap</a> module installed.</li>
</ol>
</li>
</ol>
<h2>Keyword considerations</h2>
<ol>
<li>Research keywords by using google’s <a href="https://adwords.google.com/select/KeywordToolExternal">keyword tool</a>
<ol>
<li>Use this tool to find the keywords searched most by people relevant as customers for you.</li>
</ol>
</li>
<li>Do not target a page (one page in the website with a unique URL) towards too many keywords. This is always a trade-off. Google ranking is most determined by incoming link strength. This is divided by the number of keywords targeted in a page. The more different keywords, the less strength each will receive.<br />
More keywords means a page will target more searches, but have a harder time ranking top for each of them.</li>
<li>Do not stuff a page# with too many mentions of the same keyword. 2-3 mentions of a keyword is sufficient, and too many will hurt SE ranking. If wondering if a page has too many or too few mentions of a keyword, use the following golden rule: Does the keywords flow naturally with the content?<br />
While this may seem superficial, this is exactly what Google attempts to determine. A page is most relevant if it is on topic without pretending to be something it isn’t.</p>
<p>Note: Synonyms of keywords are regarded as the same keywords, but without incurring the same stuffing penalty. Using synonyms will work positively towards keyword ranking.</li>
</ol>
<h2>Targeting keywords</h2>
<p>This section will assume that desired keywords for a page are already determined, and will give an outline of how to target them within Drupal with the modules <a href="http://drupal.org/project/page_title">Page Title</a>, <a href="http://drupal.org/project/nodewords">Nodewords</a>, <a href="http://drupal.org/project/site_map">Pathauto, XML sitemap, Global Redirect, Path redirect, Site map</a>, <a href="http://drupal.org/project/search404">Search 404</a> Installed.</p>
<p>Go to the editing section of the page you wish to SEO-boost, and edit the following:</p>
<p><strong>Title</strong><br />
Give the page a title containing the desired keywords.</p>
<h4>Meta tags</h4>
<ul>
<li>Description
<ul>
<li>The description is the field most search engines (including Google) will use to display a little example text to the user. This is where the user should be caught by the site when they see it in search listings.</li>
</ul>
</li>
<li>Keywords
<ul>
<li>Meta keywords used to be the main source of info for search engines. Not anymore. It is discussed whether having your keywords listed here will affect your site ranking at all. It is rumored to have an impact on Yahoo ranking. I recommend listing the page’s keywords here, if nothing else, then just to have them listed for later reference.</li>
</ul>
</li>
<li>Robots
<ul>
<li>This section of Meta tags is largely irrelevant, but the NOINDEX option can be used for pages that you dont want listed in SE’s. When this tag is set to NOINDEX, most search engines will disregard the page (note: some SE’s still index it.)</li>
</ul>
</li>
<li>URL redirects
<ul>
<li>As will be discussed under “SEO Pitfalls”, having duplicate content is the single worst “White hat#” SEO thing you can do to your Google ranking. This is of course mainly targeted towards duplicating other people’s content on the web, but also refers to having duplicate content within your own site, such as two pages having the same content.If you want to have a page listed by two different URLs, or have a large amount of incoming links to a URL that is no longer valid, instead of creating a new page at the URL (creating duplicate content), you want to use URL redirects and add a redirect from the invalid URL to the page you are editing.</li>
</ul>
</li>
<li>Body
<ul>
<li>Use the keywords when relevant in the the textual content of the page, preferably in boldface text.</li>
</ul>
</li>
</ul>
<h2>SEO pitfalls</h2>
<p>SEO pitfalls are practices that will effectively hurt your SEO ranking. Avoid these whenever possible:</p>
<h3>Link stuffing</h3>
<p>As discussed above, dont overdo keyword mentions. Keep the text flowing naturally.</p>
<h3>Broken links</h3>
<p>Broken links are links from your own, or other domains that link to nonexistant pages. These will hurt your SEO ranking, and irritate users trying to reach your site.</p>
<ul>
<li>To find internal broken links, use the “Broken links” report within Drupal and fix the links on the reported pages
<ul>
<li>Disregard broken links in the report starting with “http://testcms.basico.dk” &#8211; these are a remnant of the development phase and no longer an issue.</li>
</ul>
</li>
<li>To find incoming broken links, use the “Top page not found errors” report, and create URL redirects for top the missing URLs to the relevant pages.
<ul>
<li>Always set URL redirects to 301 status. This tells search engines that the move is permanent, and that it is not duplicate content.</li>
<li>Use common sense when searching for broken links. Anything not a URL to a page that is missing can be disregarded (such as AutoDiscover/AutoDiscover.xml which is an automatic web indexer trying to find a weird xml document)</li>
</ul>
</li>
</ul>
<h2>Links</h2>
<p>To read more about SEO factors, take a look at this site<br />
<a href="http://www.seomoz.org/article/search-ranking-factors">SEO factors investigation</a><a href="http://www.seomoz.org/article/search-ranking-factors"></a></p>
<p>I would also very much recommend signing up for the <a href="http://www.hobo-web.co.uk/">Hobo SEO newsletter</a> (signup in right side)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/seo-guide-for-drupal-and-other-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript 3 using string or integer to access variables</title>
		<link>http://blog.houen.net/actionscript-3-using-string-or-integer-to-access-variables/</link>
		<comments>http://blog.houen.net/actionscript-3-using-string-or-integer-to-access-variables/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 21:42:12 +0000</pubDate>
		<dc:creator>Houen</dc:creator>
				<category><![CDATA[Flash Actionscript]]></category>

		<guid isPermaLink="false">http://blog.houen.net/?p=43</guid>
		<description><![CDATA[Here&#8217;s a situation I often run into: Having a set of variables that are almost alike, but differ in number. For example: 1 2 var textbox1:TextField; var textbox2:TextField; Now say I have a function that needs to change these based on a number in another variable. I could do a switch to access them, but [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a situation I often run into: Having a set of variables that are almost alike, but differ in number. For example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> textbox1<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> textbox2<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>Now say I have a function that needs to change these based on a number in another variable. I could do a switch to access them, but that would be repeating myself. Instead I can just access them through my string or integer variable like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> num<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;textbox&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> num<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span></pre></td></tr></table></div>

<p>You could, for instance use it to loop over your variables:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #339966; font-weight: bold;">function</span> update_textfield<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
   <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span> i <span style="color: #000066; font-weight: bold;">&lt;</span> something<span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
      <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;textbox&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>And presto! Easily accessable variables <img src='http://blog.houen.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.houen.net/actionscript-3-using-string-or-integer-to-access-variables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

