davidw is currently certified at Master level.

Name: David Welton
Member since: 2000-02-16 03:01:49
Last Login: 2008-04-04 07:13:59

FOAF RDF Share This

Homepage: http://www.welton.it/davidw/

Notes:

Projects

Articles Posted by davidw

Recent blog entries by davidw

Syndication: RSS 2.0

14 May 2008 »

Restaurants, immigrants, and the popularity of various cuisines

A little off-topic exercise conducted in the "eye of the storm", when Ilenia and Helen were still in the hospital:

A post on Seth Robert's blog brings up the idea that many Chinese restaurants were opened as a way to go into business without competing with native male workers. The post made the rounds of several other online journals.

That was the push I needed to get up and go collect a few statistics of my own, regarding an idea I've been kicking around for a while. My theory is that the number of restaurants of a given type, divided by the number of immigrants from that country might be an interesting way of guaging the popularity of the cuisine in question.

In order to simplify things just a bit, I actually used data from Italy, for the following reasons:

  • Most immigration to Italy is pretty recent, so it's not necessary to account for the length of time different immigrant groups have been present, and the effects that may have had on the diffusion of a given cuisine.

  • Immigration statistics were readily available: http://demo.istat.it/str2006/index.html

  • Italian the language almost completely corresponds to Italy the country (outside of a chunk of Switzerland, San Marino, and the Vatican), something that makes things that much easier.

  • I speak Italian, so it was easy to find out all the information I needed

Unfortunately, finding out the number of restaurants of various types is far from an exact measurement, and since this is a quick fun project, I just went for Yahoo search (they deserve credit for keeping their search API open when Google's was closed) results on terms like "Ristorante Turco" (Turkish), "Ristorante Messicano" (Mexican), and so on. This was the most expedient means of gathering information quickly, but this approach does present a number of obvious problems, listed here in the hope that someone without diapers to change and a business to run might come up with some good answers:

  • Some hits likely come from people talking about a restaurant that happens to be in a country, like "ristorante americano". "Nel tipico ristorante americano, ...." or in other words, "In a typical American restaurant", rather than an American-style restaurant in Italy, which is what we were looking for in the first place. This is probably also true of countries close to Italy, where people go on vacation and thus have occasion to write about their experiences in a "ristorante tedesco" (German), rather than going to eat in a German restaurant in Italy. Perhaps the search query could be improved in an attempt to eliminate this sort of false positive.

  • Some restaurants probably are not known as, nor brand themselves with a country name, but instead utilize titles like "Middle Eastern", "Arab", "South American", "African", or others that do not correspond with any one country in particular. It would be possible to group countries together with other adjectives, and get statistics for these clusters as well.

  • Measuring hits is measuring what people are talking about, rather than simply restaurants that exist, so if restaurants from a certain country are more talked about than others, that would muddy the statistics a bit. However, it seems reasonable that people would mostly talk about restaurants in proportion to their popularity, and I don't see a particular reason why there would be more talk of Vietnamese restaurants, say, than Thai restaurants, compared to the actual numbers.

That said, for a quick project, this approach seemed to work out ok, and the results appear credible. Obviously, the results also reflect people discussing certain cuisines, rather than an actual number of restaurants, but since it does reflect interest, we'll use the number in any case.

Since the number of restaurants/interest in a type of restaurant was clearly not correlated directly with the number of immigrants, other factors must come into play. For instance, "ristorante giapponese" turns up 125,000 hits, but the stats say only 6873 Japanese nationals live in Italy. As above, hits don't mean actual restaurants, but clearly Japanese cuisine is not being popularized through immigration.

Here's my guess: these statistics show, to some degree, what people in the host country actually like to eat. Food that tastes good means more restaurants. Things that aren't that popular mean few restaurants, even if there are many immigrants. To pick on one country, there are many Philippino immigrants in Italy, but very few search hits - and anecdotally, I've never seen a Philippino restaurant in Italy either, whereas even smaller towns like Padova have Chinese, Mexican (well, it's called that, even if it's a shadow of the real thing), Japanese, various Arab and middle eastern restaurants, and even a few less common things like Eritrean. And I know that many native and foreign restaurants employ Philippino cooks.

Below is the chart I whipped up showing the number of Yahoo hits per immigrant. The Italian names shouldn't be too hard to figure out. A few tricky ones: Giordano-Jordanian, Giamaicano-Jamaican, Spagnolo-Spanish. If you're interested in numbers or source code, contact me.

Immigrants and Restaurants

Syndicated 2008-05-13 14:34:00 (Updated 2008-05-13 14:49:09) from David's Computer Stuff Journal

10 May 2008 »

LangPop.com - programming language popularity - update

These few days when Ilenia and Helen are still in the hospital are the eye of the storm for me. It's quiet at home and I actually have a few free hours when I'm not allowed to be in the hospital, or when they need to get some rest.

One of the things I managed to do recently was some Javascript hacking in order to create a timeline for LangPop.com: http://www.langpop.com/timeline.html. It was fun, because most of the "heavy lifting" is done by Timeplot, and I just had to push the data into place. Of course, there isn't much interesting there because the site is relatively new, but it should be interesting to see how languages fare over time.

I did some hacking on Timeplot to make it easier to host it on my own server, and to load a bit faster by stuffing it into one big ugly blob of Javascript. When I get a bit of time, I'll make my changes public, as I think they're fairly useful for anyone who wants to fiddle around with Timeplot some, and thus host it themselves.

The other thing I did with the site was switch the X and Y axis of the charts, because that works out better in terms of screen space for the labels, with so many languages to keep track of.

Syndicated 2008-05-09 16:15:00 (Updated 2008-05-09 16:25:16) from David's Computer Stuff Journal

8 May 2008 »

Helen Carolina Welton

I normally avoid topics of a personal nature in this journal, as it's meant for programming / business topics, however, I am extremely happy to announce the birth of our first daughter!

Syndicated 2008-05-08 08:26:00 (Updated 2008-05-08 08:28:10) from David's Computer Stuff Journal

4 May 2008 »

Hypothetical Hecl

I did some 'playing' with Hecl the other day, to see what it might look like if implemented in a slightly different way, and I thought I'd share what I was thinking about. Keep in mind that

  1. I haven't thought this through completely:-)

  2. It's not something I'm going to just rush out and do in the near future. It's definitely a Hecl 2.0 sort of idea.

My notion was to make use of the ClassCommand feature to have at least simple types be hooked directly to the relevant Java types, and dealt with through methods, rather than commands. For instance:

$i + 10

instead of

+ $i 10

Where $i is, in the first case, a Java Integer, rather than a Hecl type.

What it would be doing internally is something like this:

  1. $i is recognized as the object to act on.

  2. It's an Integer, so the corresponding ClassCommand is looked up and executed with + and 10 as arguments.

  3. The classcommand for Integer has a + method that accepts an argument, in this case, 10, which is added to the value of $i, and returned as a new Integer.

Without a "real" (where real also means bloated, memory and space hungry) parser, Hecl is never going to have a C-like syntax - you still wouldn't be able to do foo = 1 + 2 + 3 - but this just might make a significant amount of people more comfortable with Hecl, which would be a good thing. You could do something like this:

set i 1

while { $i < 1000000 } {
    set i [$i + 1]
}

instead of

set i 1

while { < $i 1000000 } {
    set i [+ $i 1]
}

I actually built a really simple HeclInteger class that implements < and + as methods to Integer ObjectThings, in order to test out this idea, and it seems to run about as fast as the regular Hecl version.

I welcome any thoughts or comments on the idea.

Syndicated 2008-05-04 08:54:00 (Updated 2008-05-04 09:02:28) from David's Computer Stuff Journal

25 Apr 2008 »

Sometimes I'm reminded just how cool the internet is

I'm just old enough to have only discovered the internet at about the time I graduated from high school, and have been using it for about 15 years. Every once in a while though, it comes back and hits me just how cool the whole thing is. Not "yeah, neat", but a serious wow at just how amazing it is to be able to communicate with people the world over. I think the first time that happened was when I had been exploring some of the early nineties internet - gopher and the web with lynx. Which was neat, but not in the "wow" sense. Then I stumbled on to IRC somehow, and since at the time I'd already started taking Italian courses, I thought I'd see if there was an Italian channel. There was, and I think the conversation went something like this:

me: so, where are you guys?

someone: Italy, and you?

me: Oregon, but, no, seriously, where are you?

someone: Italy!

me: Seriously?!

It was a very concrete demonstration of the fact, that, thanks to this new thing, I could talk to people all over the world, for free!

Of course I've grown used to this, and take for granted that I can call my parents in Oregon via Skype for free, and a lot of other cool things, but once in a while something makes me take a step back and say "cool!".

Most recently, a web site I follow that I follow has had an interesting back and forth between Paul Graham and David Heinemeier Hansson, with additional comments by the likes of Paul Buchheit, which, agree or disagree with their modus operandi, is an impressive cast of characters to be able to interact with, and learn from, without moving from my perch up here in the middle of the Tyrolean Alps.

Syndicated 2008-04-25 07:34:00 (Updated 2008-04-25 07:58:14) from David's Computer Stuff Journal

278 older entries...

 

davidw certified others as follows:

  • davidw certified davidw as Journeyer
  • davidw certified cgabriel as Journeyer
  • davidw certified mbp as Journeyer
  • davidw certified mjs as Master
  • davidw certified Radagast as Journeyer
  • davidw certified uzi as Journeyer
  • davidw certified joey as Journeyer
  • davidw certified lupus as Master
  • davidw certified cas as Journeyer
  • davidw certified dhd as Journeyer
  • davidw certified rasmus as Master
  • davidw certified mblevin as Journeyer
  • davidw certified daniel as Journeyer
  • davidw certified dsifry as Journeyer
  • davidw certified zab as Master
  • davidw certified bneely as Apprentice
  • davidw certified deirdre as Apprentice
  • davidw certified crackmonkey as Journeyer
  • davidw certified jim as Journeyer
  • davidw certified schoen as Journeyer
  • davidw certified wichert as Master
  • davidw certified inf as Journeyer
  • davidw certified hands as Journeyer
  • davidw certified stig as Journeyer
  • davidw certified lilo as Master
  • davidw certified jgg as Master
  • davidw certified branden as Journeyer
  • davidw certified seeS as Journeyer
  • davidw certified jimd as Journeyer
  • davidw certified nick as Journeyer
  • davidw certified digdude as Journeyer
  • davidw certified netgod as Journeyer
  • davidw certified dres as Journeyer
  • davidw certified gorgo as Journeyer
  • davidw certified ruud as Journeyer
  • davidw certified tausq as Journeyer
  • davidw certified vincent as Journeyer
  • davidw certified jes as Master
  • davidw certified stephane as Apprentice
  • davidw certified ajt as Journeyer
  • davidw certified EwS as Apprentice
  • davidw certified ajk as Journeyer
  • davidw certified liw as Journeyer
  • davidw certified Joy as Journeyer
  • davidw certified ettore as Master
  • davidw certified jkh as Master
  • davidw certified hpa as Master
  • davidw certified elise as Journeyer
  • davidw certified BrucePerens as Master
  • davidw certified corbet as Master
  • davidw certified bcollins as Journeyer
  • davidw certified ciro as Master
  • davidw certified bdale as Master
  • davidw certified puffin as Master
  • davidw certified justin as Journeyer
  • davidw certified davem as Master
  • davidw certified drow as Master
  • davidw certified clameter as Journeyer
  • davidw certified dburcaw as Journeyer
  • davidw certified mdorman as Journeyer
  • davidw certified lalo as Journeyer
  • davidw certified davidm as Journeyer
  • davidw certified ianmacd as Journeyer
  • davidw certified dyork as Journeyer
  • davidw certified orabidoo as Journeyer
  • davidw certified JHM as Journeyer
  • davidw certified shaleh as Journeyer
  • davidw certified jpick as Master
  • davidw certified star as Journeyer
  • davidw certified gord as Journeyer
  • davidw certified gstein as Master
  • davidw certified wcooley as Apprentice
  • davidw certified sethcohn as Journeyer
  • davidw certified csurchi as Apprentice
  • davidw certified Daryll as Master
  • davidw certified eskimoses as Journeyer
  • davidw certified pompeiisneaks as Apprentice
  • davidw certified stefano as Journeyer
  • davidw certified fog as Journeyer
  • davidw certified zed as Journeyer
  • davidw certified jhasler as Journeyer
  • davidw certified evo as Journeyer
  • davidw certified eckes as Journeyer
  • davidw certified dido as Apprentice
  • davidw certified rubys as Master
  • davidw certified rse as Master
  • davidw certified anton as Master
  • davidw certified sascha as Master
  • davidw certified paci as Master
  • davidw certified fielding as Master
  • davidw certified sama as Journeyer
  • davidw certified panta as Master
  • davidw certified antirez as Master
  • davidw certified joke as Apprentice
  • davidw certified hacker as Journeyer
  • davidw certified Tv as Journeyer
  • davidw certified xtifr as Journeyer
  • davidw certified eugenia as Journeyer
  • davidw certified CarloK as Journeyer
  • davidw certified jimw as Master
  • davidw certified Slimer as Journeyer
  • davidw certified RoUS as Master
  • davidw certified ask as Master
  • davidw certified dwiner as Apprentice
  • davidw certified jimjag as Master
  • davidw certified andersee as Journeyer
  • davidw certified Dunc as Journeyer
  • davidw certified brlewis as Journeyer
  • davidw certified claviola as Journeyer
  • davidw certified stevecassidy as Journeyer
  • davidw certified ldunbar as Apprentice
  • davidw certified atai as Journeyer
  • davidw certified bma as Journeyer
  • davidw certified mperry as Journeyer
  • davidw certified cjwatson as Journeyer
  • davidw certified daniels as Journeyer
  • davidw certified rbb as Master
  • davidw certified mkraemer as Master
  • davidw certified whitinger as Master
  • davidw certified tromey as Master
  • davidw certified thom as Master
  • davidw certified jlatour as Apprentice
  • davidw certified Rich as Master
  • davidw certified pusakat as Journeyer
  • davidw certified enigma as Journeyer
  • davidw certified ewsdk as Apprentice
  • davidw certified acoliver as Journeyer
  • davidw certified latchkey as Master
  • davidw certified cwinans as Apprentice
  • davidw certified andreaskupries as Master
  • davidw certified jenglish as Master
  • davidw certified benh as Master
  • davidw certified bonzini as Master
  • davidw certified imbe as Journeyer
  • davidw certified patthoyts as Master
  • davidw certified lars as Master

Others have certified davidw as follows:

  • davidw certified davidw as Journeyer
  • mbp certified davidw as Master
  • cgabriel certified davidw as Journeyer
  • uzi certified davidw as Journeyer
  • dhd certified davidw as Journeyer
  • bombadil certified davidw as Journeyer
  • ajt certified davidw as Journeyer
  • andrei certified davidw as Journeyer
  • joey certified davidw as Journeyer
  • cas certified davidw as Journeyer
  • lupus certified davidw as Journeyer
  • daniel certified davidw as Journeyer
  • dsifry certified davidw as Journeyer
  • crackmonkey certified davidw as Journeyer
  • jim certified davidw as Journeyer
  • schoen certified davidw as Journeyer
  • inf certified davidw as Journeyer
  • lordsutch certified davidw as Journeyer
  • branden certified davidw as Journeyer
  • bneely certified davidw as Journeyer
  • cech certified davidw as Journeyer
  • ruud certified davidw as Journeyer
  • gorgo certified davidw as Journeyer
  • jgg certified davidw as Journeyer
  • tausq certified davidw as Journeyer
  • wichert certified davidw as Journeyer
  • digdude certified davidw as Journeyer
  • knghtbrd certified davidw as Journeyer
  • ajk certified davidw as Journeyer
  • bma certified davidw as Journeyer
  • Joy certified davidw as Journeyer
  • no certified davidw as Journeyer
  • rcw certified davidw as Journeyer
  • ciro certified davidw as Journeyer
  • bdale certified davidw as Journeyer
  • drow certified davidw as Journeyer
  • bribass certified davidw as Journeyer
  • davidm certified davidw as Journeyer
  • ianmacd certified davidw as Journeyer
  • dyork certified davidw as Journeyer
  • shaleh certified davidw as Journeyer
  • jpick certified davidw as Journeyer
  • jae certified davidw as Journeyer
  • star certified davidw as Journeyer
  • csurchi certified davidw as Journeyer
  • wcooley certified davidw as Journeyer
  • sethcohn certified davidw as Journeyer
  • nixnut certified davidw as Master
  • zed certified davidw as Journeyer
  • evo certified davidw as Journeyer
  • dido certified davidw as Journeyer
  • panta certified davidw as Journeyer
  • antirez certified davidw as Journeyer
  • joke certified davidw as Journeyer
  • eugenia certified davidw as Journeyer
  • xtifr certified davidw as Journeyer
  • CarloK certified davidw as Journeyer
  • jLoki certified davidw as Journeyer
  • jao certified davidw as Master
  • jimw certified davidw as Journeyer
  • pompeiisneaks certified davidw as Master
  • highgeek certified davidw as Journeyer
  • stone certified davidw as Journeyer
  • claviola certified davidw as Master
  • wardv certified davidw as Journeyer
  • MikeGTN certified davidw as Master
  • walters certified davidw as Journeyer
  • technik certified davidw as Master
  • ks certified davidw as Journeyer
  • mperry certified davidw as Master
  • adulau certified davidw as Master
  • fxn certified davidw as Journeyer
  • Jordi certified davidw as Journeyer
  • baux certified davidw as Journeyer
  • gp certified davidw as Journeyer
  • cjwatson certified davidw as Journeyer
  • darkewolf certified davidw as Master
  • daniels certified davidw as Master
  • demoncrat certified davidw as Journeyer
  • rkrishnan certified davidw as Journeyer
  • sdodji certified davidw as Master
  • sand certified davidw as Master
  • stevecassidy certified davidw as Journeyer
  • const certified davidw as Master
  • ewsdk certified davidw as Master
  • aftyde certified davidw as Master
  • Rich certified davidw as Master
  • ariya certified davidw as Master
  • chalst certified davidw as Master
  • pasky certified davidw as Master
  • sral certified davidw as Master
  • bonzini certified davidw as Journeyer
  • ploppy certified davidw as Master
  • RickMuller certified davidw as Master
  • alejandro certified davidw as Journeyer
  • imbe certified davidw as Master
  • lars certified davidw as Master
  • migus certified davidw as Master
  • patthoyts certified davidw as Master
  • sgala certified davidw as Master
  • zbowling certified davidw as Master
  • andrea certified davidw as Master
  • arahwilde06 certified davidw as Master

[ Certification disabled because you're not logged in. ]

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

X
Share this page