<?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>DennisBB &#187; Programming</title>
	<atom:link href="http://dennisbb.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://dennisbb.com</link>
	<description>web development that roxx</description>
	<lastBuildDate>Tue, 11 May 2010 11:03:35 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Don&#8217;t Use FTP, Use SFTP</title>
		<link>http://dennisbb.com/2010/05/09/dont-use-ftp-use-sftp/</link>
		<comments>http://dennisbb.com/2010/05/09/dont-use-ftp-use-sftp/#comments</comments>
		<pubDate>Mon, 10 May 2010 07:03:39 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://dennisbb.com/?p=456</guid>
		<description><![CDATA[Don&#8217;t use FTP. This is an old protocol that works badly with firewalls and transfers files over UDP which doesn&#8217;t guarantee that they&#8217;ll be transfered without errors. Besides that, it sends your password in a clear text over the internet which makes it vulnerable to sniffing.
Use SFTP (SSH File Transfer Protocol) which sends everything over [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t use FTP. This is an old protocol that works badly with firewalls and transfers files over UDP which doesn&#8217;t guarantee that they&#8217;ll be transfered without errors. Besides that, it sends your password in a <em>clear text </em>over the internet which makes it vulnerable to sniffing.</p>
<p>Use SFTP (SSH File Transfer Protocol) which sends everything over ssh encrypted connection and uses TCP for file transfers that ensures your files will be received the same as they were sent. And you don&#8217;t need to have 23 (ftp) port available, since sftp works over 22, which eliminates another security vulnerability.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbb.com/2010/05/09/dont-use-ftp-use-sftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby-debug and Ruby 1.9</title>
		<link>http://dennisbb.com/2010/03/17/ruby-debug-and-ruby-1-9/</link>
		<comments>http://dennisbb.com/2010/03/17/ruby-debug-and-ruby-1-9/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 15:07:38 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://dennisbb.com/?p=424</guid>
		<description><![CDATA[Ruby-debug still doesn&#8217;t support ruby 1.9 and I doubt it will ever be. Instead we have ruby-debug19 gem now. So if you are using ruby 1.9 and you need to debug your rails apps, install it.
sudo gem install ruby-debug19
Currently Rails 3 beta 1 complains that it can&#8217;t find ruby-debug gem when you run the server [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby-debug still doesn&#8217;t support ruby 1.9 and I doubt it will ever be. Instead we have ruby-debug19 gem now. So if you are using ruby 1.9 and you need to debug your rails apps, install it.</p>
<pre class="code">sudo gem install ruby-debug19</pre>
<p>Currently Rails 3 beta 1 complains that it can&#8217;t find ruby-debug gem when you run the server with debugging enabled. Just add ruby-debug19 gem to your Gemfile and it&#8217;ll work.</p>
<pre class="code">gem "ruby-debug19"</pre>
]]></content:encoded>
			<wfw:commentRss>http://dennisbb.com/2010/03/17/ruby-debug-and-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Site Validators</title>
		<link>http://dennisbb.com/2009/08/03/web-site-validators/</link>
		<comments>http://dennisbb.com/2009/08/03/web-site-validators/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 05:44:06 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.dennisbb.com/?p=288</guid>
		<description><![CDATA[Here is a list of web site validators that you can bookmark, so not to search for them every time you need them.
http://validator.w3.org/ The W3C Markup Validation Service
http://jigsaw.w3.org/css-validator/ The W3C CSS Validation Service
http://www.w3.org/2003/12/semantic-extractor.html Semantic data extractor
If you know of any more, add them in comments.
]]></description>
			<content:encoded><![CDATA[<p>Here is a list of web site validators that you can bookmark, so not to search for them every time you need them.</p>
<p><a href="http://validator.w3.org/">http://validator.w3.org/</a> The W3C Markup Validation Service</p>
<p><a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a> The W3C CSS Validation Service</p>
<p><a href="http://www.w3.org/2003/12/semantic-extractor.html">http://www.w3.org/2003/12/semantic-extractor.html</a> Semantic data extractor</p>
<p>If you know of any more, add them in comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbb.com/2009/08/03/web-site-validators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax in real XHTML</title>
		<link>http://dennisbb.com/2009/04/20/ajax-in-real-xhtml/</link>
		<comments>http://dennisbb.com/2009/04/20/ajax-in-real-xhtml/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:37:36 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://www.dennisbb.com/?p=143</guid>
		<description><![CDATA[I&#8217;ve been workin today on Live Search for this web site. It uses Ajax and since this site is made in real XHTML, JavaScript works in xml mode.
When you work with JavaScript in real XHTML sites sometimes things are different than what they used to be. For example, you make an Ajax call and got [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been workin today on Live Search for this web site. It uses Ajax and since this site is made in real XHTML, JavaScript works in xml mode.</p>
<p>When you work with JavaScript in real XHTML sites sometimes things are different than what they used to be. For example, you make an Ajax call and got <code>transport.responseXML</code> object. This is what you do to add that xml to your code.</p>
<pre class="code">var content = $('content')
var res_xml = document.importNode(transport.responseXML.documentElement, true)
content.parentNode.replaceChild(res_xml, content)</pre>
<p>You can&#8217;t just take plain <code>transport.responseXML</code> object and use <code>replaceChild</code> or <code>appendChild</code> methods on it. You need to call <a href="https://developer.mozilla.org/en/DOM/document.importNode"><code>importNode</code></a> or <a href="https://developer.mozilla.org/en/DOM/document.adoptNode"><code>adoptNode</code></a> first, to import it to the current document, only after that you can use <code>replaceChild</code> or <code>appendChild</code>.</p>
<p>It took me 2 hours to figure that out, because Safari doesn&#8217;t show any error message when you don&#8217;t use <code>importNode</code>, it just doesn&#8217;t work. And in Firefox it works, but without any error message or a warning, which makes it very difficult to find the error.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbb.com/2009/04/20/ajax-in-real-xhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby 1.9.1 and Rails</title>
		<link>http://dennisbb.com/2009/04/14/ruby-191-and-rails/</link>
		<comments>http://dennisbb.com/2009/04/14/ruby-191-and-rails/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 23:32:31 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.dennisbb.com/?p=111</guid>
		<description><![CDATA[I installed ruby 1.9.1 and was gonna upgrade my rails apps to Rails 2.3. These are the problems I ran into during the upgrade.
MySQL Gem
Automatic installation of mysql 2.8.1 gem for ruby 1.9.1 on Mac OS 10.5 doesn&#8217;t work. Here is how to install it manually.
1. First thing, check whether you meet requirements on mysql [...]]]></description>
			<content:encoded><![CDATA[<p>I installed ruby 1.9.1 and was gonna upgrade my rails apps to Rails 2.3. These are the problems I ran into during the upgrade.</p>
<h3>MySQL Gem</h3>
<p>Automatic installation of mysql 2.8.1 gem for ruby 1.9.1 on Mac OS 10.5 doesn&#8217;t work. Here is how to install it manually.</p>
<p>1. First thing, check whether you meet requirements on <a href="http://www.tmtm.org/en/mysql/ruby/">mysql gem&#8217;s page</a>.<br />
Note: mysql 2.8.1 gem doesn&#8217;t support MySQL &lt; 5.0.67 and 5.1.x family (according to <a href="http://alwaysthecritic.typepad.com/atc/2009/03/install-mysql-gem-on-ruby-191-on-mac-os-x.html">this post</a>).</p>
<p>2. Download it from <a href="http://rubyforge.org/frs/?group_id=4550">their page</a> on RubyForge. Unpack it, cd to its root directory. Run these commands.</p>
<pre class="code">ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql
make
sudo make install</pre>
<h3>Ruby-Debug Gem</h3>
<p><img class="alignleft size-full wp-image-117" title="ruby-debug" src="http://www.dennisbb.com/wp-content/uploads/2009/04/ruby-debug.png" alt="ruby-debug" width="324" height="190" />Ruby-debug 0.10.3 gem doesn&#8217;t support ruby 1.9.x. If you have some important sites in rails, maybe you shouldn&#8217;t switch to ruby 1.9.x yet, as debugging will not be available.</p>
<p style="clear: both;">UPDATE: Ruby-debug19 is now <a href="http://dennisbb.com/2010/03/17/ruby-debug-and-ruby-1-9/">available</a> for Ruby 1.9.</p>
]]></content:encoded>
			<wfw:commentRss>http://dennisbb.com/2009/04/14/ruby-191-and-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
