Sunday, August 15, 2010

The Shape of Water (La forma dell’Aqua)

The Shape of Water - Andrea Camilleri
The Shape of Water (2002) is a detective story (il giallo, romanzi polizieschi) in the Inspector Montalbano series by Andrea Camilleri (1925 – ). La forma dell’acqua (1994) is the Italian title. The story is set in the fictional town of Vigàta in Sicily in the fictional province of Montelusa. Salvo Montalbano, a police inspector (commissario di polizia), investigates a suspicious but apparently natural death. Montalbano does get to the bottom of it and along the way we are treated to good food, witty dialogue, a cast of characters, and a sampling of the grit, grime and beauty of Sicilian life (or at least a version in Camilleri’s mind).

In Vigàta things seemingly never get done and are so controlled by corrupt officials that people accept this as the state of affairs, occasionally making a deal or play to better their own situation. In the middle of the book, a leftist journalist explains how “in Sicily, and in the province of Montelusa in particular, mutatis mutandis – or zara zabara – to say it in Sicilian – things never budged, even when there was a storm on a horizon. He quoted, with obvious facility, the prince of Salina’s famous statement about changing everything in order to change nothing…” The prince of Salina being the main character in Il Gattopardo.

The Italian phrasing of the statement is this “zara zabara per dirla in dialetto o mutatis mutandis per dirla in latino, le cose nell’isola, e nella provincia di Montelusa in particolare, non si cataminavano mai, magari se il barometro segnava tempesta. Citò, ed ebbe gioco facile, la frase saliniana del cangiar tutto per non cangiare niente...”

The story’s title is revealed when Signora Luparello is speaking to Montalbano and advising him on the next steps in the investigation: “That is up to you to discover, if you so desire. Or else you can stop at the shape they’ve given the water.”

The image shown below is the Italian version front cover. In copertina: Gonna a pieghe di Allen Jones. Collezione privata, Brescia.
La forma dell'acqua - Andrea Camilleri

Coming Soon… in Fremont

Coming Soon - Fremont
We walk by Coming Soon [a retail pop-up installation space] a couple of times a week as we roll down the hill into the center of the universe, aka Fremont. From what we’ve read the space is inspired by pop-up art stores in New York City. We don’t know what pop-up art store means exactly - I still call contemporary art, modern art and receive stern looks from those in the [k]now - but we like to stop and gaze at the installations. They bring a smile to nostre faccie. The current show (and pictured above) is called Of Paper and Light by artist Jesse Brown which features cut-out paper sculptures.

Sunday, August 8, 2010

The Periodic Table – Primo Levi

The Periodic Table Front Cover
The Periodic Table (1975) is a collection of fascinating stories by the Italian chemist and novelist Primo Levi (1919 – 1987). The collection, titled in Italian as Il sistema periodico, was translated into English in 1985. Each of the 21 chapters is based on an element that sometimes playing a figurative role in the story, but most often, playing a literal role. The majority of the stories are based on events in Levi’s life. In chapter 10, Gold, Levi is captured by the Fascists. In chapter 11, Cerium, Levi is in Auschwitz. How the elements gold and cerium figure into the stories is Levi’s narrative magic. Another important work by Levi is Se questo è un uomo (If This is a Man) which describes his 11 months in the Auschwitz and more generally the human condition in all its extremes.

The periodic table is the organizional scheme of how we understand elements and their relationships. It’s clever and in hindsight it makes sense, that Levi, a chemist, chose this title of the collection as such and structured each story around an element. Throughout the book it’s clear that Levi is a probing mind, a detective in matters of life and science, and in a battle with nature to unlock its secrets. To Levi, “incomprehensible matter” must be examined, writing that “[w]e must never feel disarmed: nature is immense and complex, but it is not impermeable to the intelligence; we must circle around it, pierce and probe it, look for the opening or make it.” There are many passages in the book where battle metaphors are used.

In the stories, there are many instances when Levi starts with an observation or fact about life or chemistry and generalizes it in a matter-of-fact way to a quasi-mediation on life. A good example is from chapter 3, Zinc, where Levi goes from a specific chemical behavior of zinc to wondering about the Fascist mentality:

The course notes contained a detail which at first reading had escaped me, namely, that the so tender and delicate zinc, so yielding to acid which gulps it down in a single mouthful, behaves, however, in a very different fashion when it is very pure: then it obstinately resists the attack. One could draw from this two conflicting philosophical conclusions: the praise of purity, which protects from evil like a coat of mail; the praise of impurity, which gives rise to changes, in other words, life. I discarded the first, disgustingly moralistic, and I lingered to consider the second, which I found more congenial. In order for the wheel to turn, for life to be lived, impurities are needed, and the impurities of impurities in the soil, too, as is known, if it is to be fertile. Dissension, diversity, the grain of salt and mustard are needed: Fascism does
not want them, forbids them, and that’s why you’re not a Fascist; it wants everybody to be the same, and you are not.

One aspect that you get a sense of reading these stories is Levi’s love of the origin of words and their meaning. The collection starts out in Chapter 1, Argon, with Levi relating what he knows of his ancestors, part of the larger Jewish community in Piedmont first arriving there in 1500. In the backstory, Levi introduces many Jewish-Piedmontese terms from his childhood. His ancestors to him were like argon, a noble gas, inert in that they never really mixed with other elements/society – or at least seemed relegated to the margins of society. Another example of his love of words is from chapter 6, Nickel, where Levi writes:

The entrails of the earth swarm with gnomes, kobolds (cobalt!), nickel, German “little demon” or “sprite,” and from which we derive the word nickel, creatures who can be generous and let you find a treasure beneath the tip of your pickax, or deceive you and bedazzle you, making modest pyrites glitter like gold, or disgusting zinc in the garb of tin: and in fact, many are the minerals who names have roots that signify ‘deception, fraud, bedazzlement.’
The collection ends with the story that seems to have been the nucleus for Levi’s writing career. He alludes that that story was “dreamed in an hour and place when my life was not worth much” – probably while imprisoned. It is the story of a carbon atom and this story is perhaps the most beloved of the 21 stories. This story appeared in The Oxford Book of Modern Science Writing and is what led me originally to The Periodic Table.
A Visual Representation of the The Periodic Table - Il sistema periodico

Thursday, July 29, 2010

Windows Live REST Explorer – Messenger Connect

Roadmap

This post is part of a series of related posts on how to use Windows Live Messenger Connect.

1. (this post) Using Messenger Connect REST Explorer for exploring Windows Live resources.
2. Using the Messenger Connect JavaScript API for listing your contacts.

Overview


Messenger Connect is a new offering from Microsoft that allows you (a developer of a web site) to allow your customers to log into your web site using Windows Live credentials. Your Messenger Connect -enabled web site furthermore, allows users, once they have authenticated and consented, to be able to access their social graph (contacts, activities, etc.) while on your site. For more information see this Windows Live post. It is similar to FaceBook Connect which was discussed previously in this blog here and here. However, Messenger Connect comes to the table with a more mature set of APIs (Windows Live SDK - download here) and more flexibility for different scenarios. In this post we'll deal with the first step in understanding Messenger Connect and that is understanding the data model (technically called the Resource Model) that supports these capabilities. We'll do this using a tool that Windows Live has provided called Windows Live REST Explorer (REX): http://rex.mslivelabs.com/. We will view data from and write data to the Windows Live cloud.

Viewing Resource Data

The Windows Live Resource Model is similar to the Facebook API, but whereas the Facebook API had some public data you could access without having an Application ID (i.e. registering with Facebook). Instead, viewing Windows Live resources using REX requires you to log in to begin seeing any data. Furthermore, with REX you are exploring your own data, not the data of others.

The Windows Live Resource Model defines top level resources such as contacts, profiles, and activities, collections of data entries, and data entries (an individual contact or profile, e.g.). It's not completely intuitive at first glance, but suffice it to say you can get to all of your Windows Live data one way or another. Each top level resource, collection, and entity has a unique URI address. The Windows Live Resource Model is RESTful in that you make requests (via the browser client) and receive responses. Each request is for a specific (REST) resource that is uniquely addressed. So, every piece of your Windows Live data is accessible with a well formed URI and can be accessed provided you have been authenticated.

REX is an interface to explore your Windows Live resources, but it is not how you will typically consume this data from the cloud. Rather, you will likely use the APIs provided by in the Messenger Connect release, like the JavaScript API or the .NET API. For this post we'll concentrate on just the REST explorer, REX, to understand the resources and how they are organized and then in a follow up post deal with accessing resources using APIs.

Let's look closely at REX. The first thing you have to do is choose a Scope and then log in. The idea of a scope is that it indicates what resources you want to access and what you want to do with them (view, update, e.g.). Let's make sure the scope matches the screenshot below. In particular we want to select the ability to update contacts (WL_Activities.Update). WL = Windows Live. Activities = resource. Update = permission desired.

Windows Live REST Explorer 1

After setting the scopes click the Connect button and you should receive the consent dialog shown below.

Windows Live REST Explorer 2

If you click the "What will I share?" link you can review what is going to be shared. It will match the scopes you specified. The real interesting scenario for reviewing what you will share is for a web site that is Messenger Connect-enabled and you, now playing the part of the user, do not know what scopes have been specified and you want to review them before consenting. It’s your chance to refuse sharing your data. But in this scenario here, you are just viewing your own data so you should be okay to consent.

Windows Live REST Explorer 3

After successfully authenticating and providing consent you are at the top level of your resource tree. REX allows you to see resource data in a variety of formats (RSS, ATOM, JSON, or POX). Change it a few times to see the different formats, but for this post we’ll stick with JSON.

Windows Live REST Explorer 4

In all the screenshots in this post the CID is obscured. When you log in your CID will be unique to your Windows Live credentials.

From the REX home page you'll be able to drill down through data going from top level resources to resource collections to data entities. So, for example, if you click through the ContactsLink on the home page you come to the collection page of categories and contacts.

Windows Live REST Explorer 5

Clicking the AllContactsLink, you come to the contacts collection page.

Windows Live REST Explorer 6

Clicking through to any of the SelfLinks of a contact brings you to a contact entity page. You've drilled all the way down to a resource, a contact in this case.

Windows Live REST Explorer 7

Don't forget that if you log into http://home.live.com/ with the same credentials you used for REX you will access the same data, but through the UI. Also, if you captured the URL http://sn1.apis.live.net/V4.1/cid-**YOUR-CID-HERE**/Contacts/AllContacts, closed the browser, reopened and pasted it in the address bar you will receive either nothing or an error The idea is that you can’t access a collection or entity without first authenticating.

Modifying Resource Data
You can also use REX to make changes to your data. Doing it through REX is not the preferred way but it helps you understand the REST commands that are in use behind the JavaScript Library is part of this release. So let's suppose we want to add a new activity using the Windows Live REST Explorer. Note that in REX there is a "Request" tab and a drop down for the action (verb) you want to take (GET, PUT, POST, DELETE, HEAD, OPTIONS). So far we've been just using the "Response" tab and GET requests. To create a new activity we'll use a POST action and fill in the Request tab with the appropriate information. This is all documented fairly well in the MSDN topic REST API Service and Resource Model. Our goal is to make this appear in our Messenger social feed (http://home.live.com):

Windows Live REST Explorer 8

  1. Start at the collection page of MyActivities: http://bay.apis.live.net/V4.1/cid-***YOUR-CID-HERE***/MyActivities
  2. Select POST from the action dropdown
    Click the Request tab and enter data similar to the following to create a new activity marking a favorite:
     
    {"__type": "MarkFavoriteActivity:http://schemas.microsoft.com/ado/2007/08/dataservices",
    "ActivityVerb": "http://activitystrea.ms/schema/1.0/favorite",
    "ApplicationLink": "http://www.travelmarx.net",
    "ActivityObjects": [
    {
    "ActivityObjectType": "http://activitystrea.ms/schema/1.0/*",
    "AlternateLink": "http://travelmarx.blogspot.com",
    "PreviewLink": "http://travelmarx.blogspot.com/thumbnail.jpg",
    "Title": "A blog I follow.",
    "Summary": "About traveling - without moving."
    }
    ]
    }

  3. Note that we have kept the default data presentation of JSON and so we'll enter data in this way as well. For more information on the syntax see http://json.org/.
  4. Click the submit button (the green arrow) and the activity should be created and appear in your Messenger Social feed as shown above.


Windows Live REST Explorer 9

So, there you have it, a quick overview of the Windows Live REST Explorer (REX) that allows you to browse Windows Live resource data.

Monday, July 26, 2010

Amazing and Rare Things: The Art of Natural History in the Age of Discovery

Amazing Rare Things - David Attenborough Book Cover 

The book Amazing Rare Things: The Art of Natural History in the Age of Discovery (2009) is the guide for an exhibition of the same name that took place at the Queen’s Gallery, Buckingham Palace, London March 14 – September 28, 2008. If only I were there! Most of the imagery in the book appears on the related exhibition site. 

Natural history is the study of plants and animals through observation rather than experimentation. Amazing Rare Things gives you a whistle-stop tour of the development of natural history by focusing on five individuals from the 15th to the 18th century. A short chapter is devoted to each featured individual: Leonardo da Vinci (1452 – 1519), Cassiano dal Pozzo (1588 – 1657), Alexander Marshal (c. 1620 – 1682), Maria Sibylla Merian (1647 – 1717), and Mark Catesby (1682 – 1749). David Attenborough contributes with an introduction to the book as well as comments on illustrations interspersed throughout the volume where he gives insight into what the illustrator must a have been thinking or observed. 

To be honest, this guide/book is probably not the best source to get a good introduction to natural history, but is really designed for those already familiar with this subject or those really into botanical art. This book is all about beautiful imagery, drawings and watercolors, by Leonardo, Marshal, Sibylla Merian, and Catesby, as well as images from the “paper musuem” of the collector dal Pozzo. 

A reoccurring theme throughout the book is that of the cabinet of curiosities which was a collection of objects whose categories and relationships were not well defined. Do we have curiosity cabinets today? I think so, just in a different way. I like to think of this blog or my copious personal notes (as disorganized and scattered as they are) as a humble form of a digital cabinet of curiosities – applicable to me. Anyway, I digress. Cabinets of curiosities were an important step in the evolution of natural history. As key collections came together, drawing objects in the collection followed, and that was then followed by the search for new curiosities to expand the collection to satisfy the collector’s ego, impress his friends, or maybe just for curiosity’s sake. Curiosity cabinets grew from the introduction of new flora and fauna into Europe from a new age of exploration. The influx was exponential and challenged long held beliefs and classification systems. 

Reading Amazing Rare Things I was introduced for the first time to the incredible story of Maria Sibylla Merian. In 1699, age 52, and divorced she journeyed from the Netherlands to Surinam (South America) to study first hand the country’s flora and fauna, and in particular, butterflies and moths. She remained there for several years there and returned to produce her monumental Metamorphsis insectorum Surinamensium published in 1705. 

The story or life that I most closely identified with is that of Alexander Marshal, an English gentleman who worked for 30 years on a florilegium (flower book) purely for his own pleasure and with no thought to publishing. He seemed to live with various well-connected individuals, drawing their gardens. When he died, his tombstone read ‘PROLEM NON RELIQUIT AT PROBITATE ET INGENIO LONGIOR HUIC FACTA EST DATA VITA FUIT’ – translated as ‘He left no issue, but by reason of his integrity and gifts he will live longer than the life which was vouchsafed for him.’

Wednesday, July 14, 2010

Desert Blister Beetle – Lytta magister

The desert blister beetle (Lytta magister)

Travelmarx has gone buggy, or, shall we say beetle-y, lately. Here’s a beetle, the desert blister beetle (Lytta magister), that we saw while hiking on the Eisenhower Mountain Trail (accessible from the Living Desert) in Palm Desert. We saw swarms of blister beetles eating brittlebush (Encelia farinosa) like the one pictured here is doing.

The term “blister” in the common name for the blister beetle comes from the fact that these beetles can emit a poisonous chemical, cantharidin, through what is called reflex bleeding (autohaemorrhaging). As a side note, there is such a thing as a Spanish fly (Lytta vesicatoria) - in the same genus as the blister beetle – which can be used to incite mating in farm animals. Ingested cantharides (from the crushed powder of this beetle) pass through the digestive track and cause irritation in the urethral passage. That doesn’t sound like fun.

Yard Work – Harmonia axyridis

Lady Beetle
The photo above is a ladybug or ladybird in its larval stage which usually goes for about two weeks. This beetle is probably toward the end of the larval stage judging by the color on its back. After the larval stage it pupates and becomes an adult. Since ladybugs/ladybirds are neither a bug nor a bird the preferred name is lady beetle. Lady beetles belong to the family Coccinellidae which is part of the beetle order, Coleoptera (from the Greek koleos “sheath” and pteron “wing” = sheathed wing). We will hazard a guess that this is Harmonia axyridis (Asian lady beetle), the most common lady beetle in North America. It was introduced into North America several times, most recently in the 1980s by the USDA, to control aphids. It is not known whether the axyridis population in North America is from the intentional introduction or accidental introduction or both.

Domestic Help – Salticus scenicus

Zebra spider (salticus scenicus)
This zebra spider (Salticus scenicus) was helping clean around the house the other day and we snapped this photo. Zebra spiders are a type of jumping spider. They do not build a web, but rather move around looking for prey. We were glad to read that jumping spiders are noted for their awareness when being watched by humans and often turn their body toward the observer. We were starting to get a little wigged out there. More on jumping spiders. The genus name we are guessing derives from the Latin verb root “to jump”. In Italian, the verb for jump is saltare.