<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.0.5" --><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Miles Barr</title>
	<link>http://blog.milesbarr.com</link>
	<description>Thoughts on Search, software development and everything else.</description>
	<pubDate>Sat, 19 Jul 2008 15:18:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/milesbarr/comments" type="application/rss+xml" /><item>
		<title>Comment on Prolog Sudoku Solver by Sigmundo Preissler Jr.</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/309556503/</link>
		<pubDate>Wed, 11 Jun 2008 03:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2007/01/prolog-sudoku-solver/#comment-15340</guid>
					<description>Hello,

You talked about the use of FC but omitted the role of 'labeling' above correct?

Att</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>You talked about the use of FC but omitted the role of &#8216;labeling&#8217; above correct?</p>
<p>Att</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2007/01/prolog-sudoku-solver/#comment-15340</feedburner:origLink></item>
	<item>
		<title>Comment on Rails iCalendar improvement by Justin Halsall</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/265024946/</link>
		<pubDate>Sun, 06 Apr 2008 10:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2006/09/rails-icalendar-improvement/#comment-14943</guid>
					<description>you could also do this:
&lt;code&gt;render(:inline =&gt; whatever)&lt;/code&gt;
instead of &lt;code&gt;render(:layout =&gt; false, :text =&gt; whatever)&lt;/code&gt; or &lt;code&gt;render_without_layout&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>you could also do this:<br />
<code>render(:inline =&gt; whatever)</code><br />
instead of <code>render(:layout =&gt; false, :text =&gt; whatever)</code> or <code>render<em>without</em>layout</code></p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2006/09/rails-icalendar-improvement/#comment-14943</feedburner:origLink></item>
	<item>
		<title>Comment on icalendar and Rails by Dev Blog AF83 » Blog Archive » Publishing ICalendar events with Ruby on Rails</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/245512103/</link>
		<pubDate>Tue, 04 Mar 2008 12:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2006/06/icalendar-and-rails/#comment-14595</guid>
					<description>[...] icalendar and Rails [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] icalendar and Rails [&#8230;]</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2006/06/icalendar-and-rails/#comment-14595</feedburner:origLink></item>
	<item>
		<title>Comment on Typo Sidebar - CalendarHelper by A Fresh Cup » Blog Archive » An Unexpected Hoop</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/211287409/</link>
		<pubDate>Fri, 04 Jan 2008 19:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2006/03/typo-sidebar-calendarhelper/#comment-13684</guid>
					<description>[...] I added the DynamicCalendarHelper plugin to my current Rails project today, only to discover that I couldn’t call it the way that I expected from a view. Eventually I found the answer at Typo Sidebar - CalendarHelper which had instructions for turning the plugin into a global view helper. I was expecting a somewhat more seamless experience. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] I added the DynamicCalendarHelper plugin to my current Rails project today, only to discover that I couldn&#8217;t call it the way that I expected from a view. Eventually I found the answer at Typo Sidebar - CalendarHelper which had instructions for turning the plugin into a global view helper. I was expecting a somewhat more seamless experience. [&#8230;]</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2006/03/typo-sidebar-calendarhelper/#comment-13684</feedburner:origLink></item>
	<item>
		<title>Comment on icalendar and Rails by Vijay</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/199291494/</link>
		<pubDate>Wed, 12 Dec 2007 12:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2006/06/icalendar-and-rails/#comment-13157</guid>
					<description>Thanks for the post. 
Here, you are exporting iCal file , asking user to save file.
How can we save this .ics file to particular folder in rails, say I want to save this .ics file to '/public/ics/' folder in rails.    ?

how can we do this ?
Any Idea ?

thanks,</description>
		<content:encoded><![CDATA[<p>Thanks for the post.<br />
Here, you are exporting iCal file , asking user to save file.<br />
How can we save this .ics file to particular folder in rails, say I want to save this .ics file to &#8216;/public/ics/&#8217; folder in rails.    ?</p>
<p>how can we do this ?<br />
Any Idea ?</p>
<p>thanks,</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2006/06/icalendar-and-rails/#comment-13157</feedburner:origLink></item>
	<item>
		<title>Comment on icalendar and Rails by John beck</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/141192221/</link>
		<pubDate>Mon, 06 Aug 2007 10:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2006/06/icalendar-and-rails/#comment-9543</guid>
					<description>Perhaps a little late to the party but I ran into the same problem. The solution I settled on worked slightly differently. I avoid the include and used the Icalendar namespace.</description>
		<content:encoded><![CDATA[<p>Perhaps a little late to the party but I ran into the same problem. The solution I settled on worked slightly differently. I avoid the include and used the Icalendar namespace.</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2006/06/icalendar-and-rails/#comment-9543</feedburner:origLink></item>
	<item>
		<title>Comment on Beat some sense into your computer by Hämmern Sie es ihm doch ein… »</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/127837057/</link>
		<pubDate>Mon, 25 Jun 2007 16:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2006/07/beat-some-sense-into-your-computer/#comment-7740</guid>
					<description>[...] (via Miles Barr) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] (via Miles Barr) [&#8230;]</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2006/07/beat-some-sense-into-your-computer/#comment-7740</feedburner:origLink></item>
	<item>
		<title>Comment on Scratch that FastCGI IPC bit by Sundae weblog » Blog Archive » Debian sarge, Apache, Ruby on Rails and FastCGI</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/106997609/</link>
		<pubDate>Thu, 05 Apr 2007 23:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2005/08/scratch-that-fastcgi-ipc-bit/#comment-5119</guid>
					<description>[...] First, I found out that you need to install the gem package fcgi: gem install fcgi [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] First, I found out that you need to install the gem package fcgi: gem install fcgi [&#8230;]</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2005/08/scratch-that-fastcgi-ipc-bit/#comment-5119</feedburner:origLink></item>
	<item>
		<title>Comment on Prolog Sudoku Solver by anonymous</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/90487328/</link>
		<pubDate>Wed, 14 Feb 2007 03:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2007/01/prolog-sudoku-solver/#comment-4028</guid>
					<description>To the previous poster: Forward checking is done by the constraint library. Selecting the variable with smallest domain is done with labeling([ff], Vars) (available in library(bounds) in the latest SWI versions).

Here's a shorter version:
&lt;code&gt;
:- use_module(library(bounds)).

suudoku(Rows) :-
    Rows = [R1,R2,R3,R4,R5,R6,R7,R8,R9],
    flatten(Rows, Vars),
    Vars in 1..9,
    row_constraint(Rows),
    column_constraint(R1, R2, R3, R4, R5, R6, R7, R8, R9),
    block_constraint(R1, R2, R3),
    block_constraint(R4, R5, R6),
    block_constraint(R7, R8, R9),
    label(Vars),
    display_rows(Rows).

display_rows([]).
display_rows([[X1,X2,X3,X4,X5,X6,X7,X8,X9]|Rows]) :-
    format('~d ~d ~d ~d ~d ~d ~d ~d ~d \n', [X1,X2,X3,X4,X5,X6,X7,X8,X9]),
    display_rows(Rows).

row_constraint([]).
row_constraint([R|Rt]) :- all_different(R), row_constraint(Rt).

column_constraint([], [], [], [], [], [], [], [], []).
column_constraint([X1|R1], [X2|R2], [X3|R3], [X4|R4], [X5|R5], [X6|R6],
                  [X7|R7], [X8|R8], [X9|R9]) :-
    all_different([X1,X2,X3,X4,X5,X6,X7,X8,X9]),
    column_constraint(R1, R2, R3, R4, R5, R6, R7, R8, R9).

block_constraint([], [], []).
block_constraint([X1,X2,X3|R1], [X4,X5,X6|R2], [X7,X8,X9|R3]) :-
    all_different([X1,X2,X3,X4,X5,X6,X7,X8,X9]),
    block_constraint(R1, R2, R3).
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>To the previous poster: Forward checking is done by the constraint library. Selecting the variable with smallest domain is done with labeling([ff], Vars) (available in library(bounds) in the latest SWI versions).</p>
<p>Here&#8217;s a shorter version:<br />
<code><br />
:- use_module(library(bounds)).</p>
<p>suudoku(Rows) :-<br />
    Rows = [R1,R2,R3,R4,R5,R6,R7,R8,R9],<br />
    flatten(Rows, Vars),<br />
    Vars in 1..9,<br />
    row<em>constraint(Rows),<br />
    column</em>constraint(R1, R2, R3, R4, R5, R6, R7, R8, R9),<br />
    block<em>constraint(R1, R2, R3),<br />
    block</em>constraint(R4, R5, R6),<br />
    block<em>constraint(R7, R8, R9),<br />
    label(Vars),<br />
    display</em>rows(Rows).</p>
<p>display<em>rows([]).<br />
display</em>rows([[X1,X2,X3,X4,X5,X6,X7,X8,X9]|Rows]) :-<br />
    format(&#8217;~d ~d ~d ~d ~d ~d ~d ~d ~d \n&#8217;, [X1,X2,X3,X4,X5,X6,X7,X8,X9]),<br />
    display_rows(Rows).</p>
<p>row<em>constraint([]).<br />
row</em>constraint([R|Rt]) :- all<em>different(R), row</em>constraint(Rt).</p>
<p>column<em>constraint([], [], [], [], [], [], [], [], []).<br />
column</em>constraint([X1|R1], [X2|R2], [X3|R3], [X4|R4], [X5|R5], [X6|R6],<br />
                  [X7|R7], [X8|R8], [X9|R9]) :-<br />
    all<em>different([X1,X2,X3,X4,X5,X6,X7,X8,X9]),<br />
    column</em>constraint(R1, R2, R3, R4, R5, R6, R7, R8, R9).</p>
<p>block<em>constraint([], [], []).<br />
block</em>constraint([X1,X2,X3|R1], [X4,X5,X6|R2], [X7,X8,X9|R3]) :-<br />
    all<em>different([X1,X2,X3,X4,X5,X6,X7,X8,X9]),<br />
    block</em>constraint(R1, R2, R3).<br />
</code></p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2007/01/prolog-sudoku-solver/#comment-4028</feedburner:origLink></item>
	<item>
		<title>Comment on DivX to H.264 by Miles</title>
		<link>http://feeds.feedburner.com/~r/milesbarr/comments/~3/80169610/</link>
		<pubDate>Tue, 23 Jan 2007 10:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.milesbarr.com/2007/01/divx-to-h264/#comment-3785</guid>
					<description>I did use the TV/iPod setting. I'll definitely give it a go with some other videos, ideally not recorded from the TV.</description>
		<content:encoded><![CDATA[<p>I did use the TV/iPod setting. I&#8217;ll definitely give it a go with some other videos, ideally not recorded from the TV.</p>
]]></content:encoded>
				<feedburner:origLink>http://blog.milesbarr.com/2007/01/divx-to-h264/#comment-3785</feedburner:origLink></item>
</channel>
</rss>
