A new interface for point and shoot cameras?

Folks:

I’ve written an article about a simpler yet more powerful interface for point and shoot (“compact digital”) cameras at http://philip.greenspun.com/business/point-and-shoot-camera-interface and would appreciate comments/suggestions. I think this is a great project for a master’s student who likes to code (or maybe a group of graduate students). The practicality of the project hinges on the fact that Samsung has released the source code for the software within two of its high quality cameras.

Thanks in advance for ideas to make this design better.

Full post, including comments

Sand castles for kids, Scandinavian style

I went to the Copenhagen Sand Sculpture Festival exhibit today with the intent of taking a bunch of pictures to show some 3-5-year-old children back in the U.S. The exhibits starts with an enormous sandbox, which was filled with Danish children playing. Day care workers led groups of kids ages 3-7 around the place patiently explaining each sculpture. The sculptures looked a little off, though, not like the miniature village Christmas scenes I’d expected. The labels reminded me of the label affixed to the Cement Cuddler toys: “Unfortunate Child, do not mistake me for living thing, nor seek in me the warmth denied you by your parents. For beneath my plush surface lies a hardness as impervious and unforgiving as this World’s own indifference to your mortal struggle. Hold on to me when you are sad, and I will weigh you down, but bear this weight throughout your years, and it will strengthen your limbs and harden your will so that one day no man dare oppose you.”

Check the photos on Google+ to see the explanations of each sculpture that the teachers were reading and explaining to the kids.

 

Full post, including comments

A quiet birthday for Søren Kierkegaard here in Copenhagen

Copenhagen has put out a fair number of banners marking Søren Kierkegaard’s 200th birthday. Danes, however, do not seem to be thronging the various Kierkegaard-related exhibitions. I’m wondering if they find his personal life less than inspiring. Kierkegaard inherited a modest fortune from his dad and, due to the lack of any need to work, found himself with a lot of time on his hands to brood and write. He fell in love with a 14-year-old girl (Regine Olsen) and then broke her heart. (Note that Elvis Presley also fell in love with a 14-year-old girl, Priscilla, but followed through with a marriage seven years later.) This exposed Kierkegaard to ridicule from contemporaries, such as P.L. Møller who wrote “[Regine] cannot grasp the fact that I both want to be engaged and also to break up, that I both want to break up and also not break up, both get married and not get married. She cannot grasp the fact that my engagement is dialectical, in that it both represents love and an absence of love.”

Full post, including comments

Book recommendation: read the first third of Skios

Michael Frayn, the British playwright, has given us Skios, poking fun at the world’s big thinkers. A young exotic dancer named Bahama LeStarr marries an 81-year-old rich guy, Fred Topler, who has a heart attack six weeks later. The widow starts a foundation that pulls together the world’s most successful people to the Greek island of Skios to hear an annual lecture by a big thinker. It seems to have been inspired by the John Templeton Foundation with its emphasis on unifying science and spirituality:

“The John Templeton Foundation serves as a philanthropic catalyst for discoveries relating to the Big Questions of human purpose and ultimate reality. We support research on subjects ranging from complexity, evolution, and infinity to creativity, forgiveness, love, and free will. We encourage civil, informed dialogue among scientists, philosophers, and theologians and between such experts and the public at large, for the purposes of definitional clarity and new insights.”

The big thinker who shows up at the summer retreat covered by the novel turns out to be a playboy/idler impostor who knows nothing about science or mathematics and is making it all up as he goes along. Meanwhile the genuine academic genius (specialty: “The scientific management of science” a.k.a. “scientometrics” (a term also used by Scientologists)) is delayed and entangled due to his obsession with settling a score via email while waiting for his luggage at an airport baggage carousel.

The idea for the book could hardly be better and the first third-to-half is excellent, though it reads more like a script than a novel at times. However, the author can’t seem to figure out what to do with the characters once he has them suitably mixed up (i.e., he is not Shakespeare!). So my recommendation is to read the first third carefully, enjoying it as a short story, and then put it down and/or skim the remainder.

Full post, including comments

Book review: Going Clear (Scientology)

Going Clear: Scientology, Hollywood, and the Prison of Belief, by Lawrence Wright, is a fascinating biography as well as a great way to learn about Americans in general. The 450 pages are never dull, partly thanks to L. Ron Hubbard’s quirky personality and partly due to the author’s skill in telling the story of Scientology and its followers.

What is probably toughest for a contemporary reader to understand is what a compelling individual Hubbard must have been. He does not seem to have been a likely leader of thousands. Hubbard claimed to have been wounded in action as a Navy officer during World War II and to have recovered from horrifying injuries with special techniques that would later become part of Scientology. However, it was pretty easy for journalists to discover that Hubbard had never served in combat. In fact, whenever he got close to being shipped off to a dangerous assignment he would develop a mysterious stomach ailment and require hospitalization. Due to the Navy’s desperation for experienced sailors, Hubbard was given command of a small ship (PC-815) for about 80 days but he stayed close to shore and had a couple of mishaps. On the very first excursion out into the ocean Hubbard, who had finished near the bottom of his class in SONAR interpretation, thought that he heard a Japanese submarine just off the coast of Astoria, Oregon. Depth charges were dropped, other Navy ships were called in, but no submarine was found (and Japanese records uncovered after the war indicated that no sub was in the area at the time). Hubbard also opened fire with the ship’s guns on (1) a log, (2) an island near Baja that he thought was owned by the U.S. and acceptable for target practice (in fact it was owned by Mexico and the Mexicans were not too happy about the incident).

Hubbard’s personal life did not go any better than his Navy career. There were multiple wives, sometimes at the same time, abandoned children, lawsuits, etc. When he did take care of children it wasn’t exactly what you’d expect a father of the time to be doing: “When the girls became old enough to start wearing makeup, Hubbard was the one who showed them how to apply it.” [Disclaimer: I painted a 2.5-year-old girl’s toenails purple, but I don’t think that puts me in Hubbard’s league because I did so incompetently and would certainly not have suggested to anyone of any age that I possessed special knowledge regarding makeup.] Hubbard promised adherents of the new religion powerful tools to triumph over age and disease but Hubbard did not seem to be grappling with these foes any better than the average person:

Other members of the Sea Org were having a hard time coping with the blatant contradiction between Hubbard’s legend and the crabby, disconsolate figure howling in his stateroom. “If he is who he says he is, why does he have so little staying power?” Hana Eltringham wondered. “He has a motorcycle accident, he doesn’t recover quickly, and he doesn’t use Scientology techniques on himself.”

Hubbard was sixty-four years old in 1975, as the Apollo began its circumnavigation of the Caribbean. He weighed 260 pounds. He was still meticulously groomed, but his teeth and fingers were darkly stained from constant smoking. He was on the run from the courts, fearful of being discovered, marked by age, and visibly in decline. In Curaçao, he suffered a small stroke and spent several weeks in a local hospital. It was becoming clear that life at sea posed a real danger for a man in such frail health. His crew rationalized his obvious decline by saying that his body was battered by the research he was undertaking and the volumes of suppression aimed at him. “He’s risking his life for us,” they told each other.

There is an almost funny side to the book, mostly when talking about the various Hollywood stars who are members of the Church of Scientology. The church takes on the challenge of matching up Tom Cruise with a new wife (pre-Katie Holmes):

The Scientology search team came up with another aspiring actress, Nazanin Boniadi, twenty-five years old, who had been born in Iran and raised in London. Naz was well educated and beautiful in the way that Cruise was inclined to respond to—dark and slender, with large eyes and a flashing smile.

At one point during the intensive auditing and security checks, Wilhere informed her that she would have to break up with her longtime boyfriend in order for the project to proceed. She refused. She couldn’t understand why her boyfriend posed any kind of problem; indeed, she had personally introduced him to Scientology. Wilhere persisted, asking what it would take for her to break off the romance. Flustered, she responded that she would break up if she knew he had been cheating on her. According to Naz’s friends, the very next day, Wilhere brought in her boyfriend’s confidential auditing files and showed her several instances of his infidelities, which had been circled in red. Naz felt betrayed, but also guilty, because Wilhere blamed her for failing to know and report her boyfriend’s ethical lapses herself; after all, she had audited him on several occasions. Obviously, she had missed his “withhold.” She confronted her boyfriend and he confessed.

Cruise was charming. He said that he and Davis were headed over to the Empire State Building and then to Nobu for some sushi—why didn’t they join them? Afterward, they all went skating at Rockefeller Center, which was closed to the public while they were on the rink. It was beginning to seem a little too perfect. She spent that first night with Cruise in the Trump Tower, where he had taken an entire floor for his entourage.

Two weeks later, Jessica Feshbach told Naz to pack her things. Cruise was too busy to say good-bye. Naz’s last glimpse was of him working out in his home gym. Davis later explained to her that Cruise had simply changed his mind about the relationship,

In February 2005, Naz went to Clearwater [Florida; a center for Scientology] to take the courses. At first, she was treated like a VIP, but soon one of her friends noticed dramatic changes in her— she was weeping all the time. Naz confided that she had just gone through a wrenching breakup with Tom Cruise. The shocked friend immediately reported her to Ethics. Naz was assigned a condition of Treason and ordered to do reparations for the damages she had done to the group by revealing her relationship with Cruise. She was made to dig ditches and scrub public toilets with a toothbrush. Finally, in June, she worked her way back into good standing with the church, but she was ordered to stay away from the Celebrity Centre. Davis advised her to go live in some far corner of the world and never utter another word about Tom Cruise.

(Katie Holmes at least got a helicopter ride on her first date, according to the book.) We also learn about Tom Cruise’s fondness for monster SUVs:

Miscavige purchased another Excursion for Cruise to replace the one that had been botched. Meanwhile, Brousseau spent the next six months personally rebuilding the original Excursion. He ripped the vehicle down to its frame and installed handmade reclining seats and wood paneling fashioned from a burl of a eucalyptus tree that had been toppled in a storm.

Stepping back from the colorful anecdotes and the celebrities, Wright does give some consideration to what has made Scientology meaningful

SCIENTOLOGY WANTS TO BE understood as a scientific approach to spiritual enlightenment. It has, really, no grounding in science at all. It would be better understood as a philosophy of human nature; seen in that light, Hubbard’s thought could be compared with that of other moral philosophers, such as Immanuel Kant and Søren Kierkegaard, although no one has ever approached the sweep of Hubbard’s work. His often ingenious and minutely observed categories of behavior have been shadowed by the bogus elements of his personality and the absurdity that is interwoven with his bouts of brilliance, making it difficult for non-Scientologists to know what to make of it. Serious academic study of his writing has also been constrained by the vindictive reputation of the church. The field of psychotherapy is Scientology’s more respectable cousin, although it cannot honestly claim to be a science, either.

[Separately, if you are feeling any sadness about Mitt Romney’s failure to unseat Barack Obama as president, reading this book will cheer you up a bit. Romney apparently identified Hubbard’s Battlefield Earth as his favorite novel.]

If you’re a parent, portions of this book are very painful to read. According to Wright, Scientology has forced followers to divorce spouses, abandon children, have abortions, and do some less drastic things that yet deprive children of the right to have a normal childhood.

On balance it is a very interesting book. Despite the relatively small impact of Scientology on American society (due to the small number of members), the book is interesting because it covers a guy (Hubbard) who achieved far more than anyone could have predicted based on his family background and education. He lived out a kind of American Dream.

More: Read Going Clear

Full post, including comments

U.S. Government creates jobs for data warehouse experts and recent CS grads

It seems that the U.S. government is now collecting data on all phone calls made within the U.S. (example story from the Guardian). If the Federales are getting data from Verizon it seems safe to assume that they are getting it from all telcos. Let’s think about how much data this might be.

There are 310 million Americans. The FCC publishes some statistics on telephone usage but I can’t find just the simple total number of calls (see http://hraunfoss.fcc.gov/edocs_public/attachmatch/DOC-301823A1.pdf ). Back of the envelope the typical cell phone plan is 900 minutes and the average call might last 3 minutes so that’s 300 calls per month or 10 per day (if the 900 minutes are used up, which is probably not reasonable to assume, but this is back-of-the-envelope). Assume another 10 per day made on wired phones (lots of business lines and people whose only job is to answer the phone) and that’s 20 calls per day for the average person who uses a phone. We’ll subtract out the very young and old so that is 200 million people times 20 calls per day = 4 billion calls.

A call record has to include two 10-digit numbers, a date-time stamp, and a number of minutes. If it is wireless there is presumably some additional data about the cell(s), such as location or at least cell ID. That has to be 100 bytes per record. So the government would be collecting a minimum of 400 GB per day of information that would have to be stored in a data warehouse. The data warehouse machinery, such as links to additional dimensions, would at least double this to 800 GB. Round up to 1 TB to make calculation easier and that is 365 TB of data per year or a minimum of 1.6 petabytes for the years that the Obama Administration has been in power.

[I’ll be very interested to see comments from readers who work in this area and can tell me where the above calculations are wrong.]

Questions of civil liberties aside, it would seem that our government has created an interesting data warehousing challenge. Is 1.6 petabytes off the charts for size? No. This article says that eBay is at 9.2 petabytes and some individual telcos are in the same league.

This looks like a great opportunity for young people. Check out the NSA’s careers section, in particular their Computer Science Development Program for recent CS grads where they get rotating assignments and explicit classroom training (and pay that can be as much as $97,33 per year (plus benefits!)). It is hard to imagine a better opportunity to start a career in Big Data than this three-year program.

[Separately… as long as the government is collecting all of that stuff maybe they could give it back to us in a useful form! A friend was recently involved in a tax dispute with New York State. The state asserted that someone they wanted to tax was a resident. My friend wanted wireline phone records to show that in fact the “New York resident” was making daily phone calls from a wired phone in the Boston area. In our age of unlimited long distance it turns out not to be that easy to get such records. Wouldn’t it have been nice to go to www.nsa.gov, type in your name and some sort of authentication and get an official printout of all the phone calls that you’ve ever made and where you were located at the time? If the government can have these data, why can’t we citizens at least get them too?]

Full post, including comments

Is government harassment of photographers an example of streetlight effect?

In the streetlight effect, a drunk searches for his keys underneath a street light even though he lost them in a dark park. Asked why, he explains that the light is better under the street lamp.

I’m wondering if our government’s harassment of photographers is an example of this effect. In the wake of the Marathon bombing here in Boston, the FBI recommends looking for people making “discreet use of cameras” (source). The man with a camera has been an irresistible target for law enforcement personnel since 9/11. For example, see

We could debate the relative merits of security for government workers versus First Amendment, but maybe it is worth stepping back and asking a few questions:

  • given that the useful life of a building may be 50 to 100 years, would it not be a bad design feature for the security to be compromised in the event that someone took a picture of it?
  • to what extent have terrorists made use of cameras?

With a worldwide Internet, many photo-posting sites are in countries whose freedom of press laws would prevent the U.S. government from order a take-down of a photo of a U.S. government building. So if at any time in a 50-100-year period if a photo is taken that would facilitate an attack, the photo will be permanently available. Would it not then be better to create U.S. government facilities whose security does not depend on them never being photographed? (example: a suburban campus with a quarter-mile-wide border of grass, a tall fence around the interior, some guarded gates, and one more fence around the quarter-mile-wide grass border)

Which terrorist attacks were accomplished with the aid of pre-attack photography? The Tsarnaev brothers had just one gun, a 9mm pistol. They were on and off Welfare. It seems unlikely that they owned an extensive Canon EOS or Nikon DSLR system. Has there been any suggestion that they went to the bombing locations prior to the day of the Marathon and took photos? If so, with what kind of camera? The Wikipedia article on the 1993 World Trade Center bombing does not say anything about Ramzi Yousef having a camera. His mentor, Omar Abdel Rahman, was blind (i.e., not a very likely photographer).

If the answer to the latter question is “Hardly any” then I would submit that we are seeing the streetlight effect.

Our law enforcement services spent a lot of time with Ramzi Yousef (Wikipedia describes a 72-hour detention and interrogation) and failed to discover any terrorist intent. Lots of government bureaucrats and law enforcement officials spent time with the Tsarnaev brothers, e.g., during the process by which they were granted citizenship and/or permanent residency, following the older brother’s arrest for domestic violence, following the Russian government’s tip that the older brother was a terrorist, and presumably during various interviews regarding their eligibility to collect welfare. At no time were any dark mental thoughts uncovered.

Given the difficulty of using conversation to see into another person’s private thoughts, especially when that other person is not a native speaker of English, is it fair to say that looking for terrorist thoughts inside the heads of potential terrorists is like looking for one’s keys in the dark park?

What’s under the streetlight then? A middle-aged tourist in a 4XL red parrot-print Hawaiian shirt is shouldering a $2000 digital SLR with a $2000 telephoto zoom lens attached. A cumbersome camera bag hangs from the other shoulder, filled with additional lenses. It is high noon on a weekday. The tourist raises the monster camera to his eye. Instead of trying to find an interpreter to talk to one of the non-English speakers from a violence-plagued part of the world to whom we have recently granted political asylum, let’s hassle the fat tourist and demand to know what he is doing with his $10,000 camera system.

What do readers think? Has a Canon 5D or Nikon D600 been a useful tool for terrorists? If not, why does carrying one get our government security apparatus so excited?

[Update: On about the same day that I wrote the above posting on our government security forces occupying themselves with hassling tourists and camera buffs, a story broke about how Chinese hackers had downloaded the designs for America’s newest and fanciest military hardware, including the F-35 fighter jet (USA Today). The only silver lining in that story is that they also got the design for the V-22 Osprey so maybe they will bankrupt themselves before they can attack us (the Osprey was initially budgeted at $2.5 billion and is now on track to cost something like $50 billion; TIME says it costs $83,256/hour to fly, which is more than a C-5 cargo plane that holds as much as a Boeing 747, but half the $163,485 that it costs to fly President Obama on his B747; a former Marine Corps officer dedicates a whole page to the shortcomings of the Osprey)). Apparently finding a guy in Hawaiian shirt with a Canon L lens is a lot easier than keeping the Chinese from outsmarting us.]

Full post, including comments

Economists: Homeownership leads to unemployment

An economics professor friend, knowing that I like to tell everyone to rent rather than buy, and that back in August 2011 I asked the question Does homeownership lead to longer unemployment? sent me this recent (May 2013) paper from NBER. Unfortunately the full text is not available for free online. Here’s the abstract:

We explore the hypothesis that high home-ownership damages the labor market. Our results are relevant to, and may be worrying for, a range of policy-makers and researchers. We find that rises in the home-ownership rate in a U.S. state are a precursor to eventual sharp rises in unemployment in that state. The elasticity exceeds unity: a doubling of the rate of home-ownership in a U.S. state is followed in the long-run by more than a doubling of the later unemployment rate. What mechanism might explain this? We show that rises in home-ownership lead to three problems: (i) lower levels of labor mobility, (ii) greater commuting times, and (iii) fewer new businesses. Our argument is not that owners themselves are disproportionately unemployed. The evidence suggests, instead, that the housing market can produce negative ‘externalities’ upon the labor market. The time lags are long. That gradualness may explain why these important patterns are so little-known.

Shorter summary: One answer to my August 2011 question is “yes” (but let’s always keep in mind that John Ioannidis would predict that a subsequent paper will find a different answer)

Additional elated older postings on this blog:

Full post, including comments