Mathematica 7 review: http://f…
August 2, 2010 | Filed Under twitter | Leave a Comment
Mathematica 7 review: http://flyingfrogblog.blogspot.com/2010/07/half-dozen-bugs-in-mathematica-7.html
Playing Fair – fair trade children’s clothes Australia
July 29, 2010 | Filed Under Uncategorized | 1 Comment
I am pleased to announce the opening of Playing Fair, my partner’s Brisbane-based online store for fair trade children’s clothes. All of the garments are sourced through an importer recognised by the British Association of Fair Trade Shops (BAFTS).
Here’s a small sample of the products that are available:



Playing Fair was developed using 100% open source software, including Python, Satchmo, and runs on an Ubuntu Linux server.
Marquis Who’s Who? Who cares.
July 28, 2010 | Filed Under Uncategorized | Leave a Comment

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.
3 shell scripts to improve you…
July 20, 2010 | Filed Under twitter | Leave a Comment
3 shell scripts to improve your writing, or “My PhD. advisor rewrote himself in bash” http://icio.us/2dcb1p via michael_nielsen
Software to be unpatentable in…
July 19, 2010 | Filed Under twitter | Leave a Comment
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
Another Intersystems Caché WTF
July 17, 2010 | Filed Under Uncategorized | Leave a Comment
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 to be updated, and unLock it when finished. If one routine uses Lock, but another doesn’t, nothing prevents the second routine from updating the record while the first routine has it locked.
Custom fixed gear bike for sal…
July 11, 2010 | Filed Under twitter | Leave a Comment
Custom fixed gear bike for sale in Brisbane #fixedgear #forsale #ebay http://tinyurl.com/327g5cl
Evaluate ObjectScript expressions in Intersystems Caché from Python
July 5, 2010 | Filed Under Uncategorized | Leave a Comment
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 an ObjectScript command from Python:
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?"'])
For example, running the routine aaaCarlo in the Caché terminal looks like this:
USER>DO foo^aaaCarlo Here we go USER>
Now we can do this from the IPython prompt:
In [10]: database.run_class_method("aaaCarloTest.TestClass","myexecute",['DO foo^aaaCarlo'])
Here we go
In [11]:
Todo: return values.
ABC Australia podcast: Michael…
July 5, 2010 | Filed Under twitter | Leave a Comment
ABC Australia podcast: Michael Gazzaniga: Split brains and other heady tales http://www.abc.net.au/rn/allinthemind/stories/2009/2739621.htm
False dichotomies by name
June 30, 2010 | Filed Under Uncategorized | Leave a Comment
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’m sure that someone else has already made a list, but here goes anyway:
Attachment parenting. Better than chaining your toddler to a wall in your basement.
Literate programming. Anyone for some illiterate programming?
Natural parenting. Red food colouring makes kids happy, right?
Structured programming. Let’s use goto statements everywhere!
Anyone know some more examples?