<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for blog.andrewbruce.net</title>
	<atom:link href="http://blog.andrewbruce.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.andrewbruce.net</link>
	<description>Ruby on Rails for breakfast, lunch and dinner, with some Amazon AWS snacks and lots of RSI</description>
	<lastBuildDate>Wed, 18 Jan 2012 09:29:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Using Alt Gr to switch windows in Ubuntu by Daniel C</title>
		<link>http://blog.andrewbruce.net/using-alt-gr-to-switch-windows-in-ubuntu#comment-193</link>
		<dc:creator>Daniel C</dc:creator>
		<pubDate>Wed, 18 Jan 2012 09:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=98#comment-193</guid>
		<description>If you have more than one layout set, define it in the following way:

xmodmap -e &#039;keycode 108 = Alt_R Alt_R Alt_R&#039;

To make the right alt work on your secondary layout as well.

Another very useful command that might help you:
xmodmap -pke

It prints the full list of keycodes definitions.</description>
		<content:encoded><![CDATA[<p>If you have more than one layout set, define it in the following way:</p>
<p>xmodmap -e &#8216;keycode 108 = Alt_R Alt_R Alt_R&#8217;</p>
<p>To make the right alt work on your secondary layout as well.</p>
<p>Another very useful command that might help you:<br />
xmodmap -pke</p>
<p>It prints the full list of keycodes definitions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Marco Antonio</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-178</link>
		<dc:creator>Marco Antonio</dc:creator>
		<pubDate>Sat, 05 Nov 2011 01:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-178</guid>
		<description>Yeah, you&#039;r right, I haven&#039;t realized those parameters by the time I asked. Thanks.</description>
		<content:encoded><![CDATA[<p>Yeah, you&#8217;r right, I haven&#8217;t realized those parameters by the time I asked. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Andrew</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-177</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 04 Nov 2011 09:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-177</guid>
		<description>I recently refactored the code to allow setting of custom classes for storage, queuing and and so on. See the Advanced section in the new config file: https://github.com/camelpunch/ungulate/blob/master/config/ungulate.rb

You&#039;d need to set a config.queue lambda. For an example, see the default setting in https://github.com/camelpunch/ungulate/blob/master/lib/ungulate.rb</description>
		<content:encoded><![CDATA[<p>I recently refactored the code to allow setting of custom classes for storage, queuing and and so on. See the Advanced section in the new config file: <a href="https://github.com/camelpunch/ungulate/blob/master/config/ungulate.rb" rel="nofollow">https://github.com/camelpunch/ungulate/blob/master/config/ungulate.rb</a></p>
<p>You&#8217;d need to set a config.queue lambda. For an example, see the default setting in <a href="https://github.com/camelpunch/ungulate/blob/master/lib/ungulate.rb" rel="nofollow">https://github.com/camelpunch/ungulate/blob/master/lib/ungulate.rb</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Andrew</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-176</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 04 Nov 2011 09:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-176</guid>
		<description>When Amazon redirects the user to your success_action_redirect URL, it includes a few parameters: bucket, key and etag. You can store the key in your database for future retrieval from S3.</description>
		<content:encoded><![CDATA[<p>When Amazon redirects the user to your success_action_redirect URL, it includes a few parameters: bucket, key and etag. You can store the key in your database for future retrieval from S3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Andrew</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-175</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 04 Nov 2011 09:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-175</guid>
		<description>Yes, it does. But, I&#039;ll re-iterate: the examples aren&#039;t intended to show how to write secure code, but are simplified to show how to use the Ungulate gem.</description>
		<content:encoded><![CDATA[<p>Yes, it does. But, I&#8217;ll re-iterate: the examples aren&#8217;t intended to show how to write secure code, but are simplified to show how to use the Ungulate gem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Marco Antonio</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-174</link>
		<dc:creator>Marco Antonio</dc:creator>
		<pubDate>Wed, 02 Nov 2011 18:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-174</guid>
		<description>in the controller example, this line have a security issue:
{&#039;success_action_redirect&#039; =&gt; create_user_avatar_url(current_user)}
One can change the user id in the HTML, and perform operations as other user.

I still am trying to figure out how to track the uploaded file from the S3 callback, without exposing sensitive data. Maybe use the encoded policy?</description>
		<content:encoded><![CDATA[<p>in the controller example, this line have a security issue:<br />
{&#8216;success_action_redirect&#8217; =&gt; create_user_avatar_url(current_user)}<br />
One can change the user id in the HTML, and perform operations as other user.</p>
<p>I still am trying to figure out how to track the uploaded file from the S3 callback, without exposing sensitive data. Maybe use the encoded policy?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Raphael Caldas</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-170</link>
		<dc:creator>Raphael Caldas</dc:creator>
		<pubDate>Wed, 26 Oct 2011 13:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-170</guid>
		<description>Thanks, Andrew!</description>
		<content:encoded><![CDATA[<p>Thanks, Andrew!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Andrew</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-169</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 26 Oct 2011 10:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-169</guid>
		<description>A snippet isn&#039;t going to help too much. I assume you&#039;ll be using a specific JavaScript library such as JQuery. I use YUI3 for Superhug, which is the site this gem was created for, and the JavaScript is quite specific to Superhug&#039;s needs.

As a step in the right direction though, you can&#039;t nest forms within forms. You&#039;ll need to have the ungulate form separate to your data form, then use a library such as JQuery or YUI3 to upload the file using an iframe. In YUI3 this is a case of choosing the iframe transport with the io module, in JQuery you may need to use a plugin such as http://plugins.jquery.com/project/iframe-post-form, but I can&#039;t vouch for its quality.

If you&#039;re not up to using an iframe, you could perhaps redesign your workflow to redirect the user somewhere once the upload has succeeded (using success_action_redirect).</description>
		<content:encoded><![CDATA[<p>A snippet isn&#8217;t going to help too much. I assume you&#8217;ll be using a specific JavaScript library such as JQuery. I use YUI3 for Superhug, which is the site this gem was created for, and the JavaScript is quite specific to Superhug&#8217;s needs.</p>
<p>As a step in the right direction though, you can&#8217;t nest forms within forms. You&#8217;ll need to have the ungulate form separate to your data form, then use a library such as JQuery or YUI3 to upload the file using an iframe. In YUI3 this is a case of choosing the iframe transport with the io module, in JQuery you may need to use a plugin such as <a href="http://plugins.jquery.com/project/iframe-post-form" rel="nofollow">http://plugins.jquery.com/project/iframe-post-form</a>, but I can&#8217;t vouch for its quality.</p>
<p>If you&#8217;re not up to using an iframe, you could perhaps redesign your workflow to redirect the user somewhere once the upload has succeeded (using success_action_redirect).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Raphael Caldas</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-168</link>
		<dc:creator>Raphael Caldas</dc:creator>
		<pubDate>Tue, 25 Oct 2011 20:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-168</guid>
		<description>Andrew,

I&#039;m sorry to bother you again, but could you point me out to a snippet showing how to implement the iframe technique you mentioned?

Given my inexperience I really couldn&#039;t figure out what I need to do.

I&#039;ve posted&lt;a href=&quot;https://gist.github.com/1314150&quot; rel=&quot;nofollow&quot;&gt;this gist&lt;/a&gt; that shows how my form would ideally look like, in case it helps.

Thanks and, once again, sorry to bother!</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>I&#8217;m sorry to bother you again, but could you point me out to a snippet showing how to implement the iframe technique you mentioned?</p>
<p>Given my inexperience I really couldn&#8217;t figure out what I need to do.</p>
<p>I&#8217;ve posted<a href="https://gist.github.com/1314150" rel="nofollow">this gist</a> that shows how my form would ideally look like, in case it helps.</p>
<p>Thanks and, once again, sorry to bother!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading directly to Amazon S3 from a Rails application by Raphael Caldas</title>
		<link>http://blog.andrewbruce.net/upload-direct-to-amazon-s3-from-rails#comment-167</link>
		<dc:creator>Raphael Caldas</dc:creator>
		<pubDate>Mon, 17 Oct 2011 17:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.andrewbruce.net/?p=40#comment-167</guid>
		<description>Thanks, Andrew!

I&#039;ll try the iframe method for some immediate relief and then dig a little deeper into your other proposed solution.

Would be really exciting to contribute to Ungulate! I must warn you though that I&#039;m an inexperienced programmer and you may come in contact with some ugly code ;)

Cheers!</description>
		<content:encoded><![CDATA[<p>Thanks, Andrew!</p>
<p>I&#8217;ll try the iframe method for some immediate relief and then dig a little deeper into your other proposed solution.</p>
<p>Would be really exciting to contribute to Ungulate! I must warn you though that I&#8217;m an inexperienced programmer and you may come in contact with some ugly code <img src='http://blog.andrewbruce.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

