<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Calcatraz Blog</title>
	
	<link>http://www.calcatraz.com/blog</link>
	<description>Towards an optimized life</description>
	<lastBuildDate>Tue, 01 May 2012 21:08:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/calcatraz" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="calcatraz" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>PHP Topological Sort Function</title>
		<link>http://www.calcatraz.com/blog/php-topological-sort-function-384?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-topological-sort-function</link>
		<comments>http://www.calcatraz.com/blog/php-topological-sort-function-384#comments</comments>
		<pubDate>Wed, 14 Mar 2012 10:01:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

	<!-- AutoMeta Start -->
	<category>topological</category>
	<category>nodes</category>
	<category>edges</category>
	<category>array</category>
	<category>foreach</category>
	<category>empty</category>
	<category>sorting</category>
	<category>partial</category>
	<category>topological</category>
	<category>nodes</category>
	<category>edges</category>
	<category>array</category>
	<category>foreach</category>
	<category>empty</category>
	<category>sorting</category>
	<category>partial</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=384</guid>
		<description><![CDATA[While profiling some code to improve its performance, I discovered that a topological sort function was to blame. Failing to find a suitable PHP topological sort function on the web, I rewrote it myself to be more general and more efficient. Why Topological Sorting? A traditional sort algorithm, such as quicksort or bubble sort, takes [...]]]></description>
			<content:encoded><![CDATA[<p>While profiling some code to improve its performance, I discovered that a topological sort function was to blame. Failing to find a suitable PHP topological sort function on the web, I rewrote it myself to be more general and more efficient.</p>
<h3>Why Topological Sorting?</h3>
<p>A traditional sort algorithm, such as quicksort or bubble sort, takes a set of items and returns them in a new order based on a certain criteria (for example they may be returned in alphabetical order). For this to be possible, the algorithm needs to be able to pick out any two items from the list and be able to figure out which comes first.</p>
<p>Sometimes, however, we have a set of items for which this doesn&#8217;t hold true. There may be some pairs of items for which we can&#8217;t work out the correct order just by looking at those two items, and some we can. Such a set is know as a partial order.</p>
<p>While it may seem that elements where the order is unknown could just be put in any random order, this may not always be the case. While we can&#8217;t tell by looking at them that A comes before C, we may be able to look and see that A comes before B and B comes before C, implying that A does come before C. But that requires a more global view than taken by traditional sort function.</p>
<h3>What is Topological Sorting?</h3>
<p>This is where topological sort algorithms come in. They provide a means of sorting a partial order, such that the order constraints are all honoured. While they are a range of ways of performing a topological sort, the simplest is to iteratively remove nodes with no inbound edges from the partial order (viewed as a directed acyclic graph with the set elements as nodes and the order constraints as edges). The nodes placed in order of their removal then form the topologically sorted list of set elements.</p>
<h3>Topological Sorting in PHP</h3>
<p>So after that, here is my topological sorting function. It&#8217;s reasonably efficient, and has a smaller code-footprint than any alternatives I could find on the web.</p>
<pre>function topological_sort($nodeids, $edges) {
	$L = $S = $nodes = array();
	foreach($nodeids as $id) {
		$nodes[$id] = array('in'=&gt;array(), 'out'=&gt;array());
		foreach($edges as $e) {
			if ($id==$e[0]) { $nodes[$id]['out'][]=$e[1]; }
			if ($id==$e[1]) { $nodes[$id]['in'][]=$e[0]; }
		}
	}
	foreach ($nodes as $id=&gt;$n) { if (empty($n['in'])) $S[]=$id; }
	while (!empty($S)) {
		$L[] = $id = array_shift($S);
		foreach($nodes[$id]['out'] as $m) {
			$nodes[$m]['in'] = array_diff($nodes[$m]['in'], array($id));
			if (empty($nodes[$m]['in'])) { $S[] = $m; }
		}
		$nodes[$id]['out'] = array();
	}
	foreach($nodes as $n) {
		if (!empty($n['in']) or !empty($n['out'])) {
			return null; // not sortable as graph is cyclic
		}
	}
	return $L;
}</pre>
<h3>PHP Topological Sorting Example</h3>
<p>To use the function just call it with an array of node ids and an array of edges (where each edge is an array of two elements, the start node followed by the end node). For example:</p>
<pre>$nodes = array('1','2','3','4','5');
$edges = array(array('1','2'),
               array('3','1'),
               array('3','4'));
print_r(topological_sort($nodes, $edges));</pre>
<p>This outputs the sorted partial order, like so:</p>
<pre>Array
(
    [0] =&gt; 3
    [1] =&gt; 5
    [2] =&gt; 1
    [3] =&gt; 4
    [4] =&gt; 2
)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/php-topological-sort-function-384/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Math For Kids at Coolmath4kids.com</title>
		<link>http://www.calcatraz.com/blog/cool-math-for-kids-at-coolmath4kids-com-374?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cool-math-for-kids-at-coolmath4kids-com</link>
		<comments>http://www.calcatraz.com/blog/cool-math-for-kids-at-coolmath4kids-com-374#comments</comments>
		<pubDate>Tue, 13 Mar 2012 11:50:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math]]></category>

	<!-- AutoMeta Start -->
	<category>coolmath4kids</category>
	<category>kids</category>
	<category>coolmath</category>
	<category>child</category>
	<category>math</category>
	<category>games</category>
	<category>topics</category>
	<category>packed</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=374</guid>
		<description><![CDATA[I recently posted about a site I found packed full of math games aimed at 13 year olds and upward. That site was CoolMathGames by CoolMath. But what if your child is hasn&#8217;t yet reached that level of mathematical ability? Well it turns out the CoolMath website has a spin-off site aimed at kids below [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-375 alignleft" title="Cool math 4 Kids at CoolMath4Kids.com" src="http://www.calcatraz.com/blog/wp-content/uploads/cool-math-4-kids-at-coolmath4kids.com_.gif" alt="Cool math 4 Kids at CoolMath4Kids.com" width="234" height="60" />I recently posted about a site I found packed full of math games aimed at 13 year olds and upward. That site was <a title="Cool Math Games by Coolmath" href="http://www.calcatraz.com/blog/coolmath-making-math-cool-330">CoolMathGames by CoolMath</a>. But what if your child is hasn&#8217;t yet reached that level of mathematical ability?</p>
<p>Well it turns out the CoolMath website has a spin-off site aimed at kids below the age of 13: <a title="Cool Math 4 Kids at CoolMath4Kids.com" href="http://coolmath4kids.com">CoolMath4Kids.com</a>. CoolMath4Kids is every bit as brightly colored and packed with games, lessons and activities as it&#8217;s big brother. Guided by cute cartoon monsters such as &#8220;Spike&#8221;, your child is able to study a wide range of topics.</p>
<p>There are comprehensive math lessons covering all the basics: addition, subtraction, times-tables, long division, fractions and decimals.</p>
<p>And as your child progresses, they can move onto the more advanced topics such as fractals, polyhedra, tessellations, lattice multiplications and brain benders.</p>
<p>Coolmath4kids contains plenty of supporting material to help as your child moves through the lessons. For example there are flash cards to help strengthen their recall of key concepts. There are also links to the main Coolmath site so your kids can smoothly transition as their math skills improve.</p>
<p>If your kids are starting out learning math, CoolMath4Kids may well be worth a look.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/cool-math-for-kids-at-coolmath4kids-com-374/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wesbank Calculator</title>
		<link>http://www.calcatraz.com/blog/wesbank-calculator-362?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wesbank-calculator</link>
		<comments>http://www.calcatraz.com/blog/wesbank-calculator-362#comments</comments>
		<pubDate>Wed, 22 Feb 2012 09:38:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Calculators]]></category>
		<category><![CDATA[Math]]></category>

	<!-- AutoMeta Start -->
	<category>wesbank</category>
	<category>vehicle</category>
	<category>repayment</category>
	<category>purchase</category>
	<category>a vehicle</category>
	<category>repayments</category>
	<category>financing</category>
	<category>payment</category>
	<category>wesbank</category>
	<category>vehicle</category>
	<category>repayment</category>
	<category>purchase</category>
	<category>a vehicle</category>
	<category>repayments</category>
	<category>financing</category>
	<category>payment</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=362</guid>
		<description><![CDATA[I came across the Wesbank Calculator page recently, which offers several useful special purpose calculators. I figured I&#8217;d share them here in case they are of use to anyone. There are three Wesbank Calculators: a vehicle payment calculator, a vehicle purchase price calculator and a business finance calculator. Wesbank Vehicle Repayment Calculator The vehicle repayment calculator allows you to calculate vehicle [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.calcatraz.com/blog/wp-content/uploads/wesbank.jpg"><img class="alignright size-medium wp-image-363" title="WesBank Calculator" src="http://www.calcatraz.com/blog/wp-content/uploads/wesbank-300x117.jpg" alt="WesBank Calculator" width="300" height="117" /></a>I came across the <a title="Wesbank Calculator" href="https://www.wesbank.co.za/WesBankCoZa/calculators/">Wesbank Calculator page</a> recently, which offers several useful special purpose calculators. I figured I&#8217;d share them here in case they are of use to anyone.</p>
<p>There are three Wesbank Calculators: a vehicle payment calculator, a vehicle purchase price calculator and a business finance calculator.</p>
<h3>Wesbank Vehicle Repayment Calculator</h3>
<p>The <a href="https://www.wesbank.co.za/WesBankCoZa/calculators/">vehicle repayment calculator</a> allows you to calculate vehicle repayments based on a number of inputs such as the purchase price, extras cost, interest rate and term. It not only gives you a calculation of the total amount you can expect to repay, but it also shows how much of that goes on admin fees, interest, etc. A nice feature is that you can even add in the cost of insurance products (though the language is somewhat specific to Wesbank products).</p>
<h3>Wesbank Vehicle Purchase Price Calculator</h3>
<p>In many ways the <a href="https://www.wesbank.co.za/WesBankCoZa/calculators/">vehicle purchase price calculator</a> is the inverse of the vehicle payment calculator. Given the amount you are willing to spend on repayments each month, it&#8217;ll tell you the maximum price of car you can buy that will fit your monthly budget. This calculator is the simpler of the two, having less fields to fill out. Like the repayment calculator it is well laid out with the option of entering values manually or via a slider.</p>
<h3>Wesbank Finance Calculator</h3>
<p>If you&#8217;re taking out a business loan or other form of business financing, you&#8217;re going to want to know what your total repayment amount will be. That&#8217;s where the <a href="https://www.wesbank.co.za/WesBankCoZa/calculators/">business finance calculator</a> comes in. You enter the level of financing you are taking on, any deposit you&#8217;re contributing, the interest rate and the repayment frequency. From that it will calculate the repayment amount and the total amount you&#8217;ll repay. Simple, but very useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/wesbank-calculator-362/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Percentage Calculator</title>
		<link>http://www.calcatraz.com/blog/percentage-calculator-341?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=percentage-calculator</link>
		<comments>http://www.calcatraz.com/blog/percentage-calculator-341#comments</comments>
		<pubDate>Tue, 21 Feb 2012 11:19:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Calculators]]></category>
		<category><![CDATA[Math]]></category>

	<!-- AutoMeta Start -->
	<category>iframe</category>
	<category>percentage</category>
	<category>calculate</category>
	<category>border</category>
	<category>padding</category>
	<category>percent</category>
	<category>head</category>
	<category>powered</category>
	<category>iframe</category>
	<category>percentage</category>
	<category>calculate</category>
	<category>border</category>
	<category>padding</category>
	<category>percent</category>
	<category>head</category>
	<category>powered</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=341</guid>
		<description><![CDATA[How to Calculate a Percentage There are a few different ways of calculating percentages. You may want to calculate a percent of a number. Or you may want to calculate what percentage one number is of another. Either way, there is no need to do it by in your head when you can use one [...]]]></description>
			<content:encoded><![CDATA[<h3>How to Calculate a Percentage</h3>
<p>There are a few different ways of calculating percentages. You may want to calculate a percent of a number. Or you may want to calculate what percentage one number is of another. Either way, there is no need to do it by in your head when you can use one of these percentage calculators:</p>
<h3>What is X% of Y?</h3>
<p>Use the calculator below to calculate a percentage of a number.</p>
<style>
div.calcatraz, div.calcatraz img, div.calcatraz iframe { padding:0;margin:0;border:0; }
div.calcatraz {width:250px;height:155px;background-color:#F7F7F7;.border-radius(6px);border:1px solid #e2e2e2;color:#333;text-align:center;font:8pt arial;margin-bottom:10px;}
div.calcatraz img {padding:0;margin:0;margin-bottom:-3px;width:62px;height:15px}
div.calcatraz iframe { width:246px;height:135px;margin-bottom:0;border:0; }
</style>
<div class="calcatraz"><iframe src="http://www.calcatraz.com/widgets/form?X=10&amp;Y=5&amp;r=what+is+%7BX%7D%+of+%7BY%7D%3f" width="320" height="240"></iframe><br />
Powered by <a title="Calcatraz calculator" href="http://www.calcatraz.com/calculator"><img src="http://www.calcatraz.com/themes/v3/images/calcatraz-online-calculator-s.png" alt="Calcatraz" /></a></div>
<h3>What % of X is Y?</h3>
<p>Use this calculator to calculate what percentage one number is of another.</p>
<div class="calcatraz"><iframe src="http://www.calcatraz.com/widgets/form?X=10&amp;Y=5&amp;r=what+%+of+%7BX%7D+is+%7BY%7D%3f" width="320" height="240"></iframe><br />
Powered by <a title="Calcatraz calculator" href="http://www.calcatraz.com/calculator"><img src="http://www.calcatraz.com/themes/v3/images/calcatraz-online-calculator-s.png" alt="Calcatraz" /></a></div>
<h3>Other Percent Calculations</h3>
<p>Want to do another percentage calculation? Then just head on over to our <a title="Calcatraz Calculator" href="http://www.calcatraz.com">main calculator page</a> where you can enter any calculation you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/percentage-calculator-341/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Math Games by Coolmath</title>
		<link>http://www.calcatraz.com/blog/coolmath-making-math-cool-330?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=coolmath-making-math-cool</link>
		<comments>http://www.calcatraz.com/blog/coolmath-making-math-cool-330#comments</comments>
		<pubDate>Tue, 21 Feb 2012 07:52:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math]]></category>

	<!-- AutoMeta Start -->
	<category>coolmath</category>
	<category>bloxorz</category>
	<category>bloxorz</category>
	<category>games</category>
	<category>shop</category>
	<category>shop</category>
	<category>taxi</category>
	<category>lemonade</category>
	<category>coolmath</category>
	<category>bloxorz</category>
	<category>bloxorz</category>
	<category>games</category>
	<category>shop</category>
	<category>shop</category>
	<category>taxi</category>
	<category>lemonade</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=330</guid>
		<description><![CDATA[CoolMath is a site aimed at making math cool for kids. A major focus of the site is math lessons in the form of games, such as &#8220;bloxorz&#8221;, &#8220;coffee shop&#8221;, &#8220;crazy taxi&#8221; and &#8220;lemonade stand&#8221;. The games each target a particular math skill. The CoolMath site is also home to a vast array of math-based [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.calcatraz.com/blog/wp-content/uploads/coolmath.com_.gif"><img class="size-medium wp-image-331  alignleft" title="coolmath - cool math games" src="http://www.calcatraz.com/blog/wp-content/uploads/coolmath.com_-300x251.gif" alt="coolmath - cool math games" width="300" height="251" /></a></p>
<p><a title="CoolMath" href="http://www.coolmath.com">CoolMath</a> is a site aimed at making math cool for kids. A major focus of the site is math lessons in the form of games, such as &#8220;bloxorz&#8221;, &#8220;coffee shop&#8221;, &#8220;crazy taxi&#8221; and &#8220;lemonade stand&#8221;. The games each target a particular math skill.</p>
<p>The CoolMath site is also home to a vast array of math-based content, including math lessons, math practice and a comprehensive math dictionary.</p>
<p>The site is colorful and engaging, with core concepts presented in fun, clear diagrams. It is definitely a good place to introduce and build your child&#8217;s math skills without the stigma and difficulty of traditional textbooks. A very good, well established resource.</p>
<p>&nbsp;</p>
<h2>Coolmath Games</h2>
<p>Coolmath offers a wide range of games which introduce math concepts in a fun, memorable way. Here are a few of the more popular math games.</p>
<h3>Coolmath Bloxorz</h3>
<p><a title="Coolmath Bloxorz" href="http://www.coolmath-games.com/0-bloxorz/index.html">Bloxorz</a> is a neat logic puzzle game in which you move blocks around increasingly complex levels, manipulating switches and bridges to keep your blocks from falling of the edge. A very slick and entertaining head scratcher.</p>
<h3>Coolmath Coffee Shop</h3>
<p>In <a title="Coolmath Coffee Shop" href="http://www.coolmath-games.com/0-coffee-shop/index.html">Coffee Shop</a> you own your own &#8220;Starbucks&#8221;-style coffee shop. Using your maths skills, you must stock your shop and find the best price to sell at in order to make a profit.</p>
<h3>Coolmath Crazy Taxi</h3>
<p>The focus of <a title="Coolmath Crazy Taxi" href="http://www.coolmath-games.com/0-crazy-taxi-m12/index.html">Crazy Taxi</a> is practising the times tables. You are the driver of a taxi on a busy street. To make your way as quick as possible you must crash into cars whose number is a multiple of a particular number, while avoiding other cars. Great fun, but perhaps not suitable for every child.</p>
<h3>Coolmath Lemonade Stand</h3>
<p>In <a title="Coolmath Lemonade Stand" href="http://www.coolmath.com/games/lemonade-stand.html">Lemonade Stand</a> your ability to distinguish between fractions, decimals and whole numbers is put to the test as you attempt to make a profit selling lemonade.</p>
<p>&nbsp;</p>
<p><em>Update: I&#8217;ve just put up a review of <a title="Cool Math For Kids at Coolmath4kids.com" href="http://www.calcatraz.com/blog/cool-math-for-kids-at-coolmath4kids-com-374">Cool Math 4 Kids</a>, a related site aimed at under 13s.</em></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/coolmath-making-math-cool-330/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick and Easy Vegetarian Bean Wraps</title>
		<link>http://www.calcatraz.com/blog/quick-and-easy-vegetarian-bean-wraps-304?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=quick-and-easy-vegetarian-bean-wraps</link>
		<comments>http://www.calcatraz.com/blog/quick-and-easy-vegetarian-bean-wraps-304#comments</comments>
		<pubDate>Sun, 19 Feb 2012 11:50:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Food & Drink]]></category>

	<!-- AutoMeta Start -->
	<category>wraps</category>
	<category>bean</category>
	<category>beans</category>
	<category>vegetarian</category>
	<category>oven</category>
	<category>grated</category>
	<category>dish</category>
	<category>zucchini</category>
	<category>wraps</category>
	<category>bean</category>
	<category>beans</category>
	<category>vegetarian</category>
	<category>oven</category>
	<category>grated</category>
	<category>dish</category>
	<category>zucchini</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=304</guid>
		<description><![CDATA[Having a vegetarian wife, I find myself making a lot of meat-free meals &#8211; often using beans as a substitute. And being naturally lazy, I am always on the lookout for quick, easy meals. So it&#8217;s natural that at some point I&#8217;d end up making these quick and easy vegetarian bean wraps. The recipe has a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-305" title="Beans Close-Up" src="http://www.calcatraz.com/blog/wp-content/uploads/beans-close-up-300x224.jpg" alt="Beans Close-Up" width="300" height="224" /></p>
<p>Having a vegetarian wife, I find myself making a lot of meat-free meals &#8211; often using beans as a substitute. And being naturally lazy, I am always on the lookout for quick, easy meals. So it&#8217;s natural that at some point I&#8217;d end up making these <em>quick and easy vegetarian bean wraps.</em></p>
<p>The recipe has a base of grated zucchini, but we&#8217;ve also used carrot as an good alternative.  The rest of the recipe is similarly up for negotiation: we tend to use whatever beans we have to hand, and throw in other ingredients such as mushrooms if they are going spare.</p>
<p>&nbsp;</p>
<h3>Quick and Easy Vegetarian Bean Wraps</h3>
<p>A flavoursome, healthy meat-free Mexican dish.</p>
<p><img class="size-thumbnail wp-image-312 alignright" title="Quick and Easy Vegetarian Bean Wrap" src="http://www.calcatraz.com/blog/wp-content/uploads/bean-wrap-150x150.jpg" alt="Quick and Easy Vegetarian Bean Wrap" width="150" height="150" /></p>
<ul>
<li>2 tbsp olive oil</li>
<li>1/2 onion (chopped)</li>
<li>1 red capsicum (diced)</li>
<li>1 tomato (diced)</li>
<li>1 large zucchini (grated)</li>
<li>1 tsp chilli flakes</li>
<li>400g can of sweetcorn (drained)</li>
<li>400g can of kidney beans (drained)</li>
<li>Cracked black pepper</li>
<li>6 wraps (mountain bread or tortillas)</li>
<li>1/3 cup <a title="Calcatraz Taco Sauce Recipe" href="http://www.calcatraz.com/blog/a-trio-of-tomato-based-sauces-266">taco sauce</a></li>
<li>1/3 cup grated cheese (optional)</li>
</ul>
<p><img class="alignright size-thumbnail wp-image-314" title="Bean Wraps in a Dish" src="http://www.calcatraz.com/blog/wp-content/uploads/bean-wraps-in-dish-150x150.jpg" alt="Bean Wraps in a Dish" width="150" height="150" /></p>
<p>Preheat the oven to 180 degrees celcius.</p>
<p>Heat the oil in a frying pan over a medium high heat and fry the onion until soft (2-3 mins). Add the capsicum, tomato and grated zucchini and cook for 3-4 mins. Add the chilli flakes, sweetcorn and kidney beans and cook for a further until any liquid has reduced to a thick sauce-like consistency. Remove from the heat.</p>
<p>Spoon the mixture onto the wraps (approx 1/3 &#8211; 1/2 cup each), and roll them up. Place in a greased oven-proof dish. Spoon the taco sauce over the top of the wraps and spread evenly. Top with the cheese, if using.</p>
<p>Place the wraps in the oven and cook until they begin to brown, then remove and serve immediately. Serves 3-4.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/quick-and-easy-vegetarian-bean-wraps-304/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calcatraz Calculator iPhone Improvements</title>
		<link>http://www.calcatraz.com/blog/calcatraz-calculator-iphone-improvements-296?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=calcatraz-calculator-iphone-improvements</link>
		<comments>http://www.calcatraz.com/blog/calcatraz-calculator-iphone-improvements-296#comments</comments>
		<pubDate>Sun, 19 Feb 2012 04:12:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Calcatraz]]></category>
		<category><![CDATA[Calculator]]></category>

	<!-- AutoMeta Start -->
	<category>iphone</category>
	<category>layout</category>
	<category>zoom</category>
	<category>screen</category>
	<category>created</category>
	<category>default</category>
	<category>keyboard</category>
	<category>selection</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=296</guid>
		<description><![CDATA[I use Calcatraz Calculator on my iPhone frequently when I&#8217;m working stuff out on the move. While I have already created a basic mobile version of the calculator, I prefer to use the main site as the iPhone&#8217;s display is hi-res enough to display it. However, there were a number of niggling aspects of using [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.calcatraz.com/blog/wp-content/uploads/iphone1.png"><img class="wp-image-298 alignleft" title="Calcatraz Calculator iPhone Screenshot" src="http://www.calcatraz.com/blog/wp-content/uploads/iphone1.png" alt="Calcatraz Calculator iPhone Screenshot" width="358" height="538" /></a>I use Calcatraz Calculator on my iPhone frequently when I&#8217;m working stuff out on the move. While I have already created a basic mobile version of the calculator, I prefer to use the main site as the iPhone&#8217;s display is hi-res enough to display it.</p>
<p>However, there were a number of niggling aspects of using the calculator on the iPhone screen. I&#8217;ve made a number of improvements to address these.</p>
<h3>Improved Layout</h3>
<p>Previously, when I first loaded Calcatraz in the iPhone, the page would be tiny and I would need to zoom into to get it to fill the screen appropriately. And if you clicked in the calculation box the screen would zoom right in and fail to zoom out again when you had finished entering the calculation.</p>
<p>To fix this, I created an all new iPhone-specific layout. Calcatraz now detects the use of an iPhone and adjusts the screen layout to make the most of the available space. The new layout is shown on the left.</p>
<p>This layout eliminates the need to adjust the zoom level, and makes it much easier to view and interact with the calculator.</p>
<h3>Keyboard Selection</h3>
<p>When entering a calculation, the iPhone would default to showing the qwerty keyboard. As the majority of calculations involve numbers and symbols, this wasn&#8217;t an ideal selection.</p>
<p>I&#8217;ve changed this so that the numeric keypad is shown by default. This should speed up calculation entry and get you to your answer faster.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/calcatraz-calculator-iphone-improvements-296/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Trio of Tomato-Based Sauces</title>
		<link>http://www.calcatraz.com/blog/a-trio-of-tomato-based-sauces-266?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=a-trio-of-tomato-based-sauces</link>
		<comments>http://www.calcatraz.com/blog/a-trio-of-tomato-based-sauces-266#comments</comments>
		<pubDate>Sun, 29 Jan 2012 05:36:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Food & Drink]]></category>

	<!-- AutoMeta Start -->
	<category>sauce</category>
	<category>tomato</category>
	<category>city</category>
	<category>barbeque</category>
	<category>sauces</category>
	<category>taco</category>
	<category>cup</category>
	<category>tsp</category>
	<category>sauce</category>
	<category>tomato</category>
	<category>city</category>
	<category>barbeque</category>
	<category>sauces</category>
	<category>taco</category>
	<category>cup</category>
	<category>tsp</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=266</guid>
		<description><![CDATA[When I cook I like to chain recipes, where the result of one cooking session becomes an ingredient in another. That way later recipes are often improved by the use of a freshly prepared ingredient rather than a store-bought alternative. And you often end up with several prepared dishes for the same amount of effort [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Kansas City Barbeque Sauce" src="http://www.calcatraz.com/blog/wp-content/uploads/barbeque-sauce-224x300.jpg" alt="Kansas City Barbeque Sauce" width="224" height="300" />When I cook I like to chain recipes, where the result of one cooking session becomes an ingredient in another. That way later recipes are often improved by the use of a freshly prepared ingredient rather than a store-bought alternative. And you often end up with several prepared dishes for the same amount of effort it would take to make the last dish in the chain from scratch.</p>
<p>I&#8217;ve been separately planning to make a barbeque sauce and a taco sauce. Putting the chaining principle to work, I realised that they both have (or at least can have) a common base &#8211; tomato sauce (aka ketchup). So rather than make each from scratch, I figured I&#8217;d make a tomato sauce first, then add to it as necessary to make the barbeque and taco sauces. In doing so, I was able to make the three sauces (tomato, bbq and taco), with less effort than it would have been to make just two sauces (bbq and taco) separately.</p>
<p>The flip side of this is that you need to ensure the base is good, otherwise you could end up spoiling both sauces. A ketchup-style sauce is made by reducing a large quantity of tomato then flavouring with various spices, a bit of vinegar and some sugar. There is a lot of latitude in this for varying the added flavourings to a taste you like. But I&#8217;ve found the recipe below produces both a very enjoyable tomato ketchup, and makes a great base other tomato-based sauces, like the Kansas City barbeque sauce and the taco sauce below.</p>
<h3>Tomato Sauce (Ketchup)</h3>
<p>A rich, flavoursome tomato sauce. Feel free to use whatever tomatoes you have at hand (canned, vine ripened, cherry, etc.). A mix of half canned and half fresh gives a good balance between a fresh taste and a ketchupy consistency.</p>
<ul>
<li>1.5kg tomatoes (roughly chopped)</li>
<li>1/8th cup extra virgin olive oil</li>
<li>1/2 brown onion (chopped)</li>
<li>1 clove of garlic (minced)</li>
<li>1/4 cup brown sugar</li>
<li>200ml white-wine vinegar</li>
<li>1/2 tsp paprika</li>
<li>1 tsp cloves</li>
<li>1 tsp allspice</li>
<li>1 tsp cracked black pepper</li>
<li>1 tsp salt</li>
</ul>
<p>Heat the oil in a large pan over a medium-high heat. Add onion and garlic and cook until starting to brown, 4-5 mins. Add the tomatoes. Cover, bring to a gentle boil, then reduce the heat and simmer until the tomatoes are very tender (approx 1hr). Cool slightly, transfer into a blender and process until smooth. Return to a clean pan and stir in the vinegar and sugar. Add in the spices and seasoning. Then continue to simmer until it has reduced down to the consistency of a standard ketchup (1-2hrs). Pass through a sieve to remove any remaining pulp. Decant into sterilized bottles and store in the fridge. Makes 3 cups of sauce.</p>
<h3>Kansas City Barbeque Sauce</h3>
<p>An intense, fiery sauce that&#8217;s not for the faint-hearted.</p>
<ul>
<li>1 cup tomato sauce (recipe above)</li>
<li>1/4 cup water</li>
<li>1/4 cup vinegar</li>
<li>1/4 cup brown sugar</li>
<li>3 tbsp olive oil</li>
<li>2 tbsp smoked paprika</li>
<li>1 tbsp chilli</li>
<li>2 cloves garlic (minced)</li>
</ul>
<div>Heat the oil over a medium-high heat, and cook the garlic until brown. Add the rest of the ingredients and simmer gently until thickened (approx 15 mins). Cool, then decant into a sterilized bottle.</p>
<h3>
Taco Sauce</h3>
<p>A spicy accompaniment to any Mexican dish.</p></div>
<ul>
<li>1 cup tomato sauce (recipe above)</li>
<li>1/4 cup water</li>
<li>1/4 tsp chilli powder</li>
<li>1 tsp cumin</li>
<li>1 tbsp onion (chopped)</li>
<li>1 tbsp white vinegar</li>
<li>1/2 clove garlic (minced)</li>
<li>1/4 tsp salt</li>
<li>1/4 tsp paprika</li>
<li>1/4 tsp sugar</li>
<li>1/4 tsp chilli flakes</li>
</ul>
<p>Blend ingredients together until smooth. Transfer to a pan and simmer for 15 mins. Cool and store in a sterilized bottle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/a-trio-of-tomato-based-sauces-266/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Summer Sorbets</title>
		<link>http://www.calcatraz.com/blog/summer-sorbets-241?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=summer-sorbets</link>
		<comments>http://www.calcatraz.com/blog/summer-sorbets-241#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:09:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Food & Drink]]></category>

	<!-- AutoMeta Start -->
	<category>freezer</category>
	<category>sorbet</category>
	<category>frozen</category>
	<category>fully</category>
	<category>sorbets</category>
	<category>freezing</category>
	<category>lemon</category>
	<category>bitters</category>
	<category>freezer</category>
	<category>sorbet</category>
	<category>frozen</category>
	<category>fully</category>
	<category>sorbets</category>
	<category>freezing</category>
	<category>lemon</category>
	<category>bitters</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=241</guid>
		<description><![CDATA[Sorbets are the perfect refreshing summer dessert, having as they do all the ice, but none of the cream, of icecream. They are astonishingly simple to make &#8211; very respectable sorbets can be knocked up in just 5 minutes and then stored for a whole season of enjoyment. Overview Sorbets despite their sophisticated appearance, have [...]]]></description>
			<content:encoded><![CDATA[<p>Sorbets are the perfect refreshing summer dessert, having as they do all the ice, but none of the cream, of icecream. They are astonishingly simple to make &#8211; very respectable sorbets can be knocked up in just 5 minutes and then stored for a whole season of enjoyment.</p>
<h3>Overview</h3>
<p><img class="alignright size-medium wp-image-242" title="Lemon, lime and bitters sorbet" src="http://www.calcatraz.com/blog/wp-content/uploads/sorbet-300x269.png" alt="Lemon, lime and bitters sorbet" width="300" height="269" /></p>
<p>Sorbets despite their sophisticated appearance, have a notably unsophisticated base. At its most basic, a sorbet is little more than frozen sugar water. While tricks like adding alcohol or egg whites help make a smoother sorbet, a very acceptable result can be achieved without this extra complexity.</p>
<p>A typical ratio of water to sugar seems to be three units of water per unit of sugar. The water is heated to dissolve the sugar, and then cooled before freezing.</p>
<p>The only other thing that must be added is the flavor-giving ingredients themselves. The simple, neutral base makes it possible to concoct a wide-range of flavours. If these ingredients contain water or sugar themselves, it may be necessary to adjust the ratio used in the base.</p>
<p>The real magic in the sorbet is in how it is frozen. Rather than putting it in the freezer and forgetting about it, the sorbet should be stirred well while it is freezing. The purpose of this is to break up the large ice-crystals which form, resulting in a smoother sorbet. (At the other extreme, where large ice-crystals are actively sought, is the Italian dessert, granita). I find the easiest and most effective way to do this is to freeze the sorbet until it is firm, but not fully frozen, then blend it for 15 seconds or so. The result is a very smooth, thick but runny sorbet which can be re-tubbed and returned to the freezer to freeze completely.</p>
<p>Here are the recipes for the sorbets I have made.</p>
<h3>Dark Chocolate Sorbet</h3>
<p>A rich, decadent dark chocolate sorbet balancing bitterness and sweetness.</p>
<ul>
<li>1 cup sugar</li>
<li>3/4 cup cocoa powder</li>
<li>pinch of salt</li>
<li>170g dark chocolate (70% cocoa is ideal)</li>
<li>1/2 tsp vanilla extract</li>
</ul>
<p>In a large pan, combine the the sugar, cocoa powder, salt and 1 1/2 cups of water. Bring to the boil, while stirring. Remove from the heat after 45s. Then add the chocolate and stir until fully melted. Add the vanilla extract and 3/4 cup of water. Blend the mixture for 15s. Allow to cool, then transfer to a tub and place in the freezer until firm, but not fully frozen. Remove from the freezer, blend until smooth and then return to the freezer to finish freezing. When ready to eat, remove from the freezer and sit for 5 mins to soften before serving.</p>
<h3>Mixed Berry and Watermelon Sorbet</h3>
<p>A light, refreshing sorbet.</p>
<ul>
<li>2 cups watermelon, diced</li>
<li>2 cups mixed berries</li>
<li>1/2 cup sugar</li>
<li>1 tbsp fresh mint, finely chopped</li>
</ul>
<p>In a large pan, combine the the sugar with 1 cup of water. Heat, stirring until the sugar has fully dissolved. Remove from the heat and allow to cool slightly. Tip mixture into a blender and add the watermelon and berries. Blend until smooth (2-3mins), then sieve into a tub to remove the pips. Allow to cool, then transfer to a tub and place in the freezer. Stir after 1 hour, adding the mint as you do so. Return to the freezer until firm, but not fully frozen. Remove from the freezer, blend until smooth and then return to the freezer to finish freezing. When ready to eat, remove from the freezer and sit for 5 mins to soften before serving.</p>
<h3>Lemon, Lime and Bitters Sorbet</h3>
<p>A delicious twist on a traditional lemon sorbet.</p>
<ul>
<li>Juice of two limes</li>
<li>Juice of four lemons</li>
<li>1/2 cup white wine</li>
<li>2 tbsp Angostura bitters</li>
<li>2/3 cup sugar</li>
</ul>
<p>Combine the lime juice, lemon juice, wine, bitters, sugar and 1/2 cup of water in a small pan. Heat, stirring until the sugar has fully dissolved. Then remove from the heat and allow to cool slightly. Transfer to a tub and place in the freezer until firm, but not fully frozen. Remove from the freezer, blend until smooth and then return to the freezer to finish freezing. When ready to eat, remove from the freezer and sit for 5 mins to soften before serving.</p>
<h3>Mojito Sorbet</h3>
<p>Part cocktail, part dessert&#8230;</p>
<ul>
<li>1/2 cup sugar</li>
<li>4 limes</li>
<li>Large handful fresh mint leaves</li>
<li>5 tbsp rum</li>
</ul>
<p>Combine sugar, zest of two of the limes and 2 1/2 cups of water in a small pan. Bring to the boil, stirring until the sugar has fully dissolved. Then remove from the heat and add the mint. Allow to cool, then refrigerate for 10 mins. Add the juice of the 4 limes, along with the rum. Transfer to a tub and place in the freezer until firm, but not fully frozen. Remove from the freezer, blend until smooth and then return to the freezer to finish freezing. When ready to eat, remove from the freezer and sit for 5 mins to soften before serving.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/summer-sorbets-241/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Mustards</title>
		<link>http://www.calcatraz.com/blog/making-mustards-220?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=making-mustards</link>
		<comments>http://www.calcatraz.com/blog/making-mustards-220#comments</comments>
		<pubDate>Tue, 24 Jan 2012 20:26:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Food & Drink]]></category>

	<!-- AutoMeta Start -->
	<category>mustard</category>
	<category>vinegar</category>
	<category>seeds</category>
	<category>wine</category>
	<category>tsp</category>
	<category>sugar</category>
	<category>white</category>
	<category>wholegrain</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=220</guid>
		<description><![CDATA[Mustards can be both a great condiment and a simple, rewarding side-project. Unlike some condiments which can be expensive, complex or short-lived, most mustards are a breeze to make, low cost, and virtually indestructable. They are also flexible in a way that may surprise anyone familiar only with &#8216;plain&#8217; mustards such as English, American and [...]]]></description>
			<content:encoded><![CDATA[<p>Mustards can be both a great condiment and a simple, rewarding side-project. Unlike some condiments which can be expensive, complex or short-lived, most mustards are a breeze to make, low cost, and virtually indestructable. They are also flexible in a way that may surprise anyone familiar only with &#8216;plain&#8217; mustards such as English, American and Dijon. Here I show how to make a standard wholegrain mustard as well as flavoured varieties such as Dark Ale and Honey mustard and Spicy Whisky mustard.</p>
<h3>Overview</h3>
<p><img class="alignright size-medium wp-image-222" title="Mustards" src="http://www.calcatraz.com/blog/wp-content/uploads/batch1-300x231.png" alt="Mustards" width="300" height="231" /></p>
<p>The essential ingredient in any mustard is, of course, the mustard seed. It comes in two basic forms: wholegrain (i.e. just the seed), and powder (i.e. ground seeds). The seeds come in several colours, namely the milder yellow seed and the more potent brown and black seeds. A wholegrain mustard will often mix yellow and brown seeds for balance and visual appeal.</p>
<p>To make the mustard proper, the seed is soaked in a cool or cold liquid, such as water, which kicks off a chemical reaction (between the myrosinase enzyme and glucosilinates present in the seeds) and produces the &#8216;heat&#8217; of the mustard. The longer the reaction runs the hotter the resulting mustard will be. Vinegar and salt are usually used to control the reaction, and hence heat, and to enhance the flavour.</p>
<p>For wholegrain mustard, the heat-generating reaction will generally take 2-3 days to reach a suitable level and, after blending, the mustard may take several days (and sometimes upto several months) to &#8216;mature&#8217; to its final taste. With mustard powder, the heat-generating reaction is a lot faster, taking a matter of hours. The powerfully anti-bacterial mustard seed when combined with vinegar and salt will be very resiliant and long-lasting. Note, though, that the addition of short-lived flavour ingredients such as fresh herbs will reduce the shelf-life of the mustard.</p>
<p>Flavours can be introduced in the liquid used, for instance swapping the vinegar for a flavoured variety (white wine, apple cider) or an alcohol (such as whisky or beer) with enough vinegar (or other acid) added to attain and balance the desired heat. Alternatively, or additionally, flavours can be mixed in at the blending stage, for instance adding herbs, seasoning and spices. A sweetener, such as sugar or honey, is often added as well. The combinations which can be made are practically (and perhaps actually) limitless.</p>
<p>Here&#8217;s the recipe I used, along with the three variants I made. As I had ran out of black mustard seeds by the time I got to the red wine mustard, I used 4 tbsp yellow mustard seeds instead.</p>
<h3>Wholegrain Mustard</h3>
<p>A basic wholegrain mustard, from which endless variations can be produced.</p>
<ul>
<li>2 tbsp mustard seeds (yellow)</li>
<li>2 tbsp mustard seeds (black)</li>
<li>100ml white wine vinegar</li>
<li>1 tsp sugar</li>
<li>1/2 tsp salt</li>
</ul>
<p>Mix the mustard seeds and vinegar in a non-metallic bowl. Cover with cling-film and leave to stand for 2-3 days (3 days for a hotter mustard). Check occasionally and add extra vinegar if it has all been absorbed.</p>
<p>Then, drain any excess liquid and set aside. In a mortar and pestle (or blender), blend the seeds into a paste. Blend in the salt and sugar, along with some of the reserved liquid (if required) to get the right consistency.</p>
<p>Decant the resulting mustard into a clean, sterilised jar. Cap and leave to mature for 2 days prior to use.</p>
<p><strong>Dark Ale and Honey Mustard</strong></p>
<p>Replace the white wine vinegar with 100ml of your favourite dark ale, mixed with 2 tsp of white vinegar. Replace the sugar with 1 tsp of honey.</p>
<p><strong>Spicy Whisky Mustard</strong></p>
<p>Replace the white wine vinegar with a mixture of 50ml whisky, 50ml white wine vinegar and 1/2 tsp chilli flakes. Replace the sugar with 1 tsp honey and 1 tsp nutmeg.</p>
<p><strong>Red wine, Rosemary and Thyme Mustard</strong></p>
<p>Replace the white wine vinegar with a mixture of 50ml water, 50ml red wine vinegar, 2 tsp dried thyme and 2 tsp dried rosemary. Use brown sugar in place of normal sugar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/making-mustards-220/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

