Zac Mullett Engineering Services
Weblog

Archive for January, 2009

Consequences of the failure to incorporate negative externalities into energy prices

Friday, January 23rd, 2009

(A topical essay I wrote for an Energy Economics unit)

Cheap energy has been abundantly available for the last century. But is it really as cheap as it seems? Conventional energy trade carries external costs that neither the producer nor the consumer pays. Society at large must foot the bill for negative social and environmental by-products of energy production and consumption. This paper discusses the consequences of the failure to incorporate these externalities into the price of traded energy.

Externalities are defined as benefits or costs generated as an unintended by-product of an economic activity that do not accrue to the parties involved in the activity and where no compensation takes place[5]. In other words, any party (be it an individual, a group, a society or world-wide) external to an economic transaction may receive positive or negative impacts to which they had no intention or input in accruing.

(more…)

Custom rendering of a field’s value in list display mode

Wednesday, January 21st, 2009

In developing the Digital Signature Field for SharePoint I wanted to add a graphic to clearly display the current state of the signature. Is the signature old, new or invalid? A coloured tick can convey this intuitively while economising on size.

Controlling the rendering of a custom field’s value in most display modes is straight-forward through overrides to the SPField method GetFieldValueAsHtml(object) and the Render() methods of BaseFieldControl.  When it came to rendering the value on the list display (i.e. AllItems.aspx) I found that SharePoint limited me to doing this through the RenderPattern element in the field type definition XML, with the caveat that any values, properties or calculations be limited to the CAML View Schema elements. The MSDN documentation on Patterns of Custom Field Rendering hints that a DisplayTemplate specification will let you gain control of the display mode, including the list display. After messing around for a while I felt quite confident that it didn’t include the list display mode.

Some Googling later, I found someone who had bent the rules a little to achieve complete control over display list value rendering. This IconSet custom calculated field project uses a custom RenderPattern to generate a script reference to a custom aspx page that dynamically renders some document.write(…) code that then renders HTML. Values necessary to identifying which item and field are supplied by the CAML and passed by URL parameters.

(more…)

Best robots of 2008

Tuesday, January 20th, 2009

Singularity Hub rounded up the most interesting developments in robotics through 2008. Most of them are the humanoid variety. I know replicating biped movement and stability is a challenging task and still at the forefront of robotics pursuits, but I always like to see the evolutions in alternative robotic anatomies.

In my opinion, the coolest, and by far the most creepy, is a quadruped that is capable of traversing almost any terrain while carrying 150kg on its back. It’s called BigDog, but I think it’s more of a big mountain goat that buzzes like a wasp. The video is great - BigDog stumbing around foolishly on black ice, and swaggers to reclaim balance after a guy kicks it with all his weight. Are we permitted a little schadenfreude for robotic animals?