<?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>Carlo Hamalainen</title>
	<atom:link href="http://carlo-hamalainen.net/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://carlo-hamalainen.net/blog</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 05:59:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mathematica 7 review: http://f&#8230;</title>
		<link>http://carlo-hamalainen.net/blog/?p=459</link>
		<comments>http://carlo-hamalainen.net/blog/?p=459#comments</comments>
		<pubDate>Mon, 02 Aug 2010 04:21:16 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=459</guid>
		<description><![CDATA[Mathematica 7 review: http://flyingfrogblog.blogspot.com/2010/07/half-dozen-bugs-in-mathematica-7.html
]]></description>
			<content:encoded><![CDATA[<p>Mathematica 7 review: <a href="http://flyingfrogblog.blogspot.com/2010/07/half-dozen-bugs-in-mathematica-7.html" rel="nofollow">http://flyingfrogblog.blogspot.com/2010/07/half-dozen-bugs-in-mathematica-7.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=459</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing Fair &#8211; fair trade children&#8217;s clothes Australia</title>
		<link>http://carlo-hamalainen.net/blog/?p=452</link>
		<comments>http://carlo-hamalainen.net/blog/?p=452#comments</comments>
		<pubDate>Thu, 29 Jul 2010 23:08:42 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=452</guid>
		<description><![CDATA[ I am pleased to announce the opening of Playing Fair, my partner&#8217;s Brisbane-based online store for fair trade children&#8217;s clothes. All of the garments are sourced through an importer recognised by the British Association of Fair Trade Shops (BAFTS).
 Here&#8217;s a small sample of the products that are available:





 Playing Fair was developed using [...]]]></description>
			<content:encoded><![CDATA[<p> I am pleased to announce the opening of <a href="http://playingfair.com.au/">Playing Fair</a>, my partner&#8217;s Brisbane-based online store for fair trade children&#8217;s clothes. All of the garments are sourced through an importer recognised by the British Association of Fair Trade Shops (BAFTS).</p>
<p> Here&#8217;s a small sample of the products that are available:</p>
<p><center></p>
<p><img src="http://playingfair.com.au/static/images/productimage-picture-cotton-knit-hoodie-47_jpg_285x285_q85.jpg"></p>
<p><img src="http://playingfair.com.au/static/images/productimage-picture-cotton-block-print-dresses-66_jpg_285x285_q85.jpg"></p>
<p><img src="http://playingfair.com.au/static/images/productimage-picture-tibetan-style-vests-62_jpg_285x285_q85.jpg"><br />
</center></p>
<p> <a href="http://playingfair.com.au/">Playing Fair</a> was developed using 100% open source software, including <a href="http://python.org">Python</a>, <a href="http://satchmoproject.com">Satchmo</a>, and runs on an <a href="http://ubuntu.com">Ubuntu Linux</a> server.</p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=452</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Marquis Who&#8217;s Who? Who cares.</title>
		<link>http://carlo-hamalainen.net/blog/?p=446</link>
		<comments>http://carlo-hamalainen.net/blog/?p=446#comments</comments>
		<pubDate>Wed, 28 Jul 2010 04:31:24 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=446</guid>
		<description><![CDATA[
 Well, Fred Marks, I am truly honoured to have come to the attention of your web scraping bot. This is clearly a defining moment in my career, to have been recognised by a vanity publisher, so I will immediately part with some of my money.
]]></description>
			<content:encoded><![CDATA[<p><center><img src="/blogdata/x-2010-07/who_is_who.png"></center></p>
<p> Well, Fred Marks, I am truly honoured to have come to the attention of your web scraping bot. This is clearly a defining moment in my career, to have been recognised by a <a href="en.wikipedia.org/wiki/Vanity_press">vanity publisher</a>, so I will immediately part with some of my money.</p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=446</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 shell scripts to improve you&#8230;</title>
		<link>http://carlo-hamalainen.net/blog/?p=445</link>
		<comments>http://carlo-hamalainen.net/blog/?p=445#comments</comments>
		<pubDate>Tue, 20 Jul 2010 04:44:17 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=445</guid>
		<description><![CDATA[3 shell scripts to improve your writing, or &#8220;My PhD. advisor rewrote himself in bash&#8221; http://icio.us/2dcb1p   via michael_nielsen
]]></description>
			<content:encoded><![CDATA[<p>3 shell scripts to improve your writing, or &#8220;My PhD. advisor rewrote himself in bash&#8221; <a href="http://icio.us/2dcb1p" rel="nofollow">http://icio.us/2dcb1p</a>   via michael_nielsen</p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=445</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software to be unpatentable in&#8230;</title>
		<link>http://carlo-hamalainen.net/blog/?p=444</link>
		<comments>http://carlo-hamalainen.net/blog/?p=444#comments</comments>
		<pubDate>Mon, 19 Jul 2010 22:57:35 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=444</guid>
		<description><![CDATA[Software to be unpatentable in NZ http://www.nzcs.org.nz/news/blog.php?/archives/97-Its-official-Software-will-be-unpatentable-in-NZ.html
]]></description>
			<content:encoded><![CDATA[<p>Software to be unpatentable in NZ <a href="http://www.nzcs.org.nz/news/blog.php?/archives/97-Its-official-Software-will-be-unpatentable-in-NZ.html" rel="nofollow">http://www.nzcs.org.nz/news/blog.php?/archives/97-Its-official-Software-will-be-unpatentable-in-NZ.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=444</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Intersystems Caché WTF</title>
		<link>http://carlo-hamalainen.net/blog/?p=372</link>
		<comments>http://carlo-hamalainen.net/blog/?p=372#comments</comments>
		<pubDate>Sat, 17 Jul 2010 05:36:57 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=372</guid>
		<description><![CDATA[ I stumbled across this remark in some documentation for Intersystems Caché ObjectScript.

You use the Lock command to prevent multiple processes from updating the same record at the same time. But it only works by convention: all the code throughout an application that updates a given global must try to Lock the record that is [...]]]></description>
			<content:encoded><![CDATA[<p> I stumbled across this remark in some documentation for <a href="http://vista.intersystems.com/csp/docbook/DocBook.UI.Page.cls?KEY=TCOS_Integrity">Intersystems Caché ObjectScript</a>.</p>
<blockquote><p>
You use the Lock command to prevent multiple processes from updating the same record at the same time. But it only works by convention: all the code throughout an application that updates a given global must try to Lock the record that is to be updated, and unLock it when finished. If one routine uses Lock, but another doesn&#8217;t, nothing prevents the second routine from updating the record while the first routine has it locked.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=372</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom fixed gear bike for sal&#8230;</title>
		<link>http://carlo-hamalainen.net/blog/?p=438</link>
		<comments>http://carlo-hamalainen.net/blog/?p=438#comments</comments>
		<pubDate>Sun, 11 Jul 2010 05:34:05 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=438</guid>
		<description><![CDATA[Custom fixed gear bike for sale in Brisbane #fixedgear #forsale #ebay http://tinyurl.com/327g5cl
]]></description>
			<content:encoded><![CDATA[<p>Custom fixed gear bike for sale in Brisbane #<a href="http://search.twitter.com/search?q=%23fixedgear" class="aktt_hashtag">fixedgear</a> #forsale #<a href="http://search.twitter.com/search?q=%23ebay" class="aktt_hashtag">ebay</a> <a href="http://tinyurl.com/327g5cl" rel="nofollow">http://tinyurl.com/327g5cl</a></p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=438</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evaluate ObjectScript expressions in Intersystems Caché from Python</title>
		<link>http://carlo-hamalainen.net/blog/?p=430</link>
		<comments>http://carlo-hamalainen.net/blog/?p=430#comments</comments>
		<pubDate>Mon, 05 Jul 2010 23:18:03 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=430</guid>
		<description><![CDATA[ The Python binding for Intersystems Caché only lets you run class methods and does nothing for running ObjectScript routines or evaluating arbitrary commands (like the eval command in Python). Here is a quick hack.
 Create a class:

Class aaaCarloTest.TestClass Extends %Persistent [ ClassType = persistent, ProcedureBlock ]
{
	ClassMethod myexecute(Command as %String)
	{
	XECUTE Command
	}
}

 Now we can eval [...]]]></description>
			<content:encoded><![CDATA[<p> The Python binding for Intersystems Caché only lets you run class methods and does nothing for running ObjectScript routines or evaluating arbitrary commands (like the eval command in Python). Here is a quick hack.</p>
<p> Create a class:</p>
<pre>
Class aaaCarloTest.TestClass Extends %Persistent [ ClassType = persistent, ProcedureBlock ]
{
	ClassMethod myexecute(Command as %String)
	{
	XECUTE Command
	}
}
</pre>
<p> Now we can eval an ObjectScript command from Python:</p>
<pre>
import intersys.pythonbind

user="_SYSTEM";
password="SYS";
host = "192.168.100.1";
port = "1972";

url = host+"["+port+"]:USER"

conn = intersys.pythonbind.connection()
conn.connect_now(url, user, password, None)
database = intersys.pythonbind.database(conn)

print database.run_class_method("aaaCarloTest.TestClass","myexecute",['WRITE "Did this work?"'])
</pre>
<p> For example, running the routine aaaCarlo in the Caché terminal looks like this:</p>
<pre>
USER>DO foo^aaaCarlo
Here we go

USER>
</pre>
<p> Now we can do this from the IPython prompt:</p>
<pre>
In [10]: database.run_class_method("aaaCarloTest.TestClass","myexecute",['DO foo^aaaCarlo'])
Here we go

In [11]:
</pre>
<p> Todo: return values.</p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=430</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABC Australia podcast: Michael&#8230;</title>
		<link>http://carlo-hamalainen.net/blog/?p=429</link>
		<comments>http://carlo-hamalainen.net/blog/?p=429#comments</comments>
		<pubDate>Mon, 05 Jul 2010 03:44:44 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=429</guid>
		<description><![CDATA[ABC Australia podcast: Michael Gazzaniga: Split brains and other heady tales http://www.abc.net.au/rn/allinthemind/stories/2009/2739621.htm
]]></description>
			<content:encoded><![CDATA[<p>ABC Australia podcast: Michael Gazzaniga: Split brains and other heady tales <a href="http://www.abc.net.au/rn/allinthemind/stories/2009/2739621.htm" rel="nofollow">http://www.abc.net.au/rn/allinthemind/stories/2009/2739621.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=429</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>False dichotomies by name</title>
		<link>http://carlo-hamalainen.net/blog/?p=324</link>
		<comments>http://carlo-hamalainen.net/blog/?p=324#comments</comments>
		<pubDate>Wed, 30 Jun 2010 05:16:25 +0000</pubDate>
		<dc:creator>carlo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://carlo-hamalainen.net/blog/?p=324</guid>
		<description><![CDATA[ Knuth wrote somewhere that he decided to call his code/LaTeX markup system literate programming because it implied that everyone else was doing illiterate programming, and no one wants to be illiterate. I&#8217;m sure that someone else has already made a list, but here goes anyway:
  Attachment parenting. Better than chaining your toddler to [...]]]></description>
			<content:encoded><![CDATA[<p> Knuth wrote somewhere that he decided to call his code/LaTeX markup system <i>literate programming</i> because it implied that everyone else was doing illiterate programming, and no one wants to be illiterate. I&#8217;m sure that someone else has already made a list, but here goes anyway:</p>
<p> <b> Attachment parenting</b>. Better than chaining your toddler to a wall in your basement.</p>
<p> <b> Literate programming</b>. Anyone for some illiterate programming?</p>
<p> <b> Natural parenting</b>. Red food colouring makes kids happy, right?</p>
<p> <b> Structured programming</b>. Let&#8217;s use goto statements everywhere!</p>
<p> Anyone know some more examples?</p>
]]></content:encoded>
			<wfw:commentRss>http://carlo-hamalainen.net/blog/?feed=rss2&amp;p=324</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
