2007-12-26
2007-12-25
ruminations on mcmc storage
s_object * RS_MySQL_closeConnection(Con_Handle *conHandle) { S_EVALUATOR RS_DBI_connection *con; MYSQL *my_connection; s_object *status; con = RS_DBI_getConnection(conHandle); . . . my_connection = (MYSQL *) con->drvConnection; mysql_close(my_connection); … }and the same thing from rsqlite:
SEXP RS_SQLite_closeConnection(Con_Handle conHandle) { RS_DBI_connection *con; sqlite3 *db_connection; SEXP status; int rc; con = RS_DBI_getConnection(conHandle); db_connection = (sqlite3 *) con->drvConnection; rc = sqlite3_close(db_connection); /* it also frees db_connection */ . . . return status; }and here's RS_MySQL_exec to run a generic query.
/* Here is where we actually run the query */ state = mysql_query(my_connection, dyn_statement); if(state) { char errMsg[256]; free(dyn_statement); (void) sprintf(errMsg, "could not run statement: %s", mysql_error(my_connection)); RS_DBI_errorMessage(errMsg, RS_DBI_ERROR); }So it looks like: 1) new storage.h will need include configure options for whether to include rs-dbi.h, rs-mysql.h, and rs-sqlite.h, defaulting to all of the above. 2) MCMCstore will be templated for each storagetype. 3) the connection will be opened from R, when tables are created, then the connection id passed to the model-fitting c++ code. The model-fitting code will initialize an object of class MCMCstore. The MCMCstore class store() function will call appropriate db-specific code (sqlite_bind_double, whatever mysql bind syntax is, insert, exec, reset,… etc.).
2007-12-24
fuck louis vuitton
2007-12-23
things to make
aloo gobi, garlic naan- Bolognese
- jeweled rice, lamb (
1,2) - chicken marsala; risotto or polenta
- tiramisù
- lamb-apple brat
- chicken paprikás & spätzle
- green lentil soup
- potato-chorizo soup
borszch, crusty bread- falafel
- falafel
- tiramisù
- pumpkin soup?
- cocktail-samosas
- some form of sweet potato
- stuffed eggs
2007-12-22
end of winter csa
- lots of carrots
- red potatoes
- broccoli
- beets
- turnips
- onions
- sweet potatoes
- chard
- apples
2007-12-20
Next on my list of things to code
We also compute credible intervals for the random effects variances; whereas, there is no good approach for estimating uncertainty for PQL [penalized quasi-likelihood] variance estimates, or other frequentist variance estimates. In addition we are able to simultaneously compute marginal posterior inclusion probabilities for both the fixed effects and random effects and correctly locate the true model as the one with highest posterior probability.
2007-12-19
2007-12-18
some LTH roundup from today
- new szechuan
- spoon thai and some other thai with erik m. we have to go to spoon instead of sticky rice next time.
- spring world discussion including the secret mushroom menu
Threadless is amazing
2007-12-17
2007-12-16
apsa: check.
PROPOSAL TITLE: Unmasking the ECJ: National Governemnts, Appointment, and Strategic Justices
PAPER ABSTRACT: Rulings of the European Court of Justice have profoundly affected member states, national governments, and European citizens. The court by some accounts has seized power and overstepped its bounds, or by others, duly done its delegated duty. Almost always “the Court” is treated as an agent of the member-state principals. I argue that member states view not the full Court, but their individual appointed justice, as their agent – despite the court's mask of formalism and the secrecy afforded by its en banc decisions. I show that governments use their power of appointment as a measure of control over the ECJ. I propose a dynamic measure of justices’ preferences that exploits the fact that while justice-votes are unobserved, the organization of the court into panels (subsets) systematically reveals information about individual voting behavior. I show that justices are re-appointed or replaced as functions of information available to the national governments who appoint them. Finally, I explore the role that member state “observations” (briefs submitted to the court) play in justices' decisionmaking, and in terms of what national governments learn from tendering observations and then seeing the court’s ruling.Submitted to the following divisions:
Div 14 Div. 14 - Comparative Politics of Advanced Industrial Societies
Div 11 Div. 11 - Comparative Politics
2007-12-08
things to make
- green curry with chicken and eggplants
- prik khing with chicken or beef and longbeans
- leang soup with bamboo shoot, mushroom
- salad of cilantro, mint, tomato, mung bean sprouts, dried shrimp
- cabbage sprouts and tofu with oyster sauce
- a vegetable lasagna for the freezer (spinach, mushrooms, ricotta)
- smoked chicken tamales
- pan fried tofu with marsala cream sauce; salad of romaine, pomegranate, satsuma
2007-11-19
things to make this week
- Yeast-raised cornbread
- curried celery root soup
- umbrella-cookies
- quick-fried yu choy & bekana with “brown” sauce
- assorted sweet potato things: ancho-honey; mashed with parmigiano
- garlic naan
- radish parathas
- vanilla-chocolate bread
- pumpkin mousse
- pecan tarts
- butternut squash soup
2007-11-17
2007-10-26
Principles of OS design
Ubuntu goes out of its way to get out of your way, even if it doesn't succeed all the time. Vista goes out of its way to be Vista and enforce the Vista way. You must conform regardless of the implications.I haven’t yet used Gutsy on a desktop (or upgraded from Feisty on my MythTV), but it sounds like enough of their/gnome developers have finally used OS X to appreciate the “get out of the way” principles that largely drive Apple human interface design. Nowhere of course is it better distilled and applied than in Quicksilver (“Act Without Doing”)
Economists Explain the World, again
OMG so annoying I agree!
2007-10-23
Chicken Paprikás
- two flour
- two eggs
- some water (half a cup? more?)
2007-10-10
2007-10-07
Gumbo
2007-10-06
foodlist
- gumbo (chicken, andouille, okra)
- black beans and rice
- mushroom risotto
- polenta with goatsbeard blue cheese (!)
2007-09-24
2007-09-19
2007-09-15
a delightful dilemma
- prik khing curry with chicken and long beans
- chicken and vegetables in peanut sauce
- quiche with bacon and mustard greens
- linguine alla carbonara
- roasted fennel and apple
- something with eggplant. probably thai red curry, but maybe something chinese.
2007-09-08
back in st louis foodlist
- shrimp tacos? or arroz/paella. or both.
- red curry with chicken, salad (cucumber, tomato, avocado, onion, fishsauce)
- stewed tuscan style lima beans and tomatoes, semolina bread
- cantaloupe basil sorbet
- tortilla española
- ma po tofu, jasmine rice
- corn, tomato, and goat cheese crêpes soufflées
2007-09-07
2007-08-24
2007-08-11
2007-08-09
Week 12!
2007-08-03
CSA Week 11
menu (picture later)
- pesto
- cuban black beans and rice
- a couple of cole slaws (maybe 3)
- zucchini tacos
- more cantaloupe-basil sorbet
2007-08-01
ugh i actually thought this WAS a local news story
2007-07-25
Week 10
2007-07-21
Well, that’s one way to put it
To make the [abstinence-only] point, Mr. Love grabbed a tape dispenser and snapped off two fresh pieces. He slapped them to his filing cabinet and the floor; they trapped dirt, lint, a small metal bolt. “Now when it comes time for them to get married, the marriage pulls apart so easily,” he said, trying to unite the grimy strips. “Why? Because they gave the stickiness away.”
2007-07-18
menu
- crêpes with corn and golden beets, goat cheese and ricotta; served with steamed green beans and carrots, and beurre blanc; cantaloupe-basil sorbet
- thai eggplant curry, sticky rice
- zucchini tacos
- spaghetti with overgrown arugula, broccoli, and walnuts
- chicken paprikás with cucumber-onion salad
CSA Week 9
Cool tool of the month: regexhibit
2007-07-16
“exquisitely ugly”
2007-07-11
Vegetable day #8
Menu
- 4 cole slaws: szechuan [with broccoli, cabbageturnip, chili oil, sesame oil, and a bit of soy sauce], thai [with basil, mint, peanuts, tomato, chile, and lots of fish sauce], american [with creamy mustardy dressing, peas, and raisins], hungarian [with onion]
- the lamb kibbe I've been meaning to make for a month. The ground lamb is now defrosted.
- sautéed zucchini with lemon and garlic
- tabbouleh
- caldo verde or caldo gallego (some soup with chorizo/chouriço and kale)
- corn fritter of some kind (probably a couple kinds, with onion or zucchini)
- tofu marsala with lots of mushroomy goodness
- omelet with bacon and mushrooms (and a touch of chile paste)
2007-06-29
CSA week 6!
2007-06-21
2007-06-20
recipes not to lose
CSA Week 5
2007-06-18
yesterday's day of mexican cooking
2007-06-15
A nicely set table; two food pics
My flash isn’t digital-ttl capable, so I have to shoot all my flash shots manually (a useful exercise anyway, I suppose). Here by accident I had it on “high”, ISO 500, 1/125 f/5 (40mm). I especially like how the wood spatula handle floats against all the white.
Perhaps less interesting than the picture: this is two chinese preparations of choy. On the left, japanese bekana or tokyo choy is cooked with water chestnuts and cubed frozen (spongy) tofu, in oyster sauce (or, as Scott prefers, “brown” sauce) with scallion, ginger, and garlic. On the right is bok choy with carrots in a gingery miso sauce with honey. Both were delicious last night and for lunch today.
a varied dinner party menu
- fresh tortillas
- Masa for whatever other antojitos we want to make (sopes anyone?)
- Pork-raisin-almond-chile filling (see below)
- Shredded chicken filling
- Beans with pork
- Fresh and cooked tomatillo salsas
- Tomato salsa
- Guacamole
- Zucchini and avocado carpaccio with herbs (inspired by last week’s Bittman column – oh, to be Patricia Wells…)
- Someone: bring crab, please
- jeweled rice
- lamb kibbe (see below; I was going to make it before this lovely article in the Times. I suppose I’ll cook some of it, though I do prefer my Prairie Grass Farm lamb raw.)
- mouhamara (which I learned today is the top web search the lands people on my blog)
A very happy surprise!
I really like the stuff
vitaminwater is the subject of the latest Slate “Ad Report Card” column. I have liked the stuff since I first saw it on 10/$10 sale. My favorite flavors are the red ones, the new XXX and Power-C. A friend alleges that all vitaminwater causes digestive … unpleasantness. Fortunately, I haven't had his problem. Also, the euro talk show ad is great – far better than any attempt I’ve seen for example on SNL since Sprockets.
2007-06-13
Multicolored carrots
I have mentioned to people carrots of colors other than orange, and they tend to register complete astonishment. It turns out we can blame the Dutch in the 16th century for favoring patriotic Orange carrots.
Here are two, which I'd call red and purple. The red has just a thin layer of bright pigment (so you'd never want to peel these!) and the purple one goes about halfway into the root.
Yes, Shelled Peas
CSA Week 4
- Carrots
- Bok choy
- Bekana
- Green leaf lettuce
- Sugar snap peas (hiding basket in the back)
- Mesclun
- White radishes
- Kale
- [Iron Creek Farm] Purple Cherokee tomato
- [Mick Klug] shelled peas!
2007-06-11
I-64 story on Marketplace
2007-06-10
dinner
menu
- thai chili garlic fried noodle with carrot, broccoli rabe, and lemon basil
- stir fried bekara, miso-honey sauce & bok choy with oyster sauce
- bacon and mustard greens quiche
- lamb kofta or something meatballish with yogurt, and some type of naan or roti
- kale and butternut squash risotto
- salad with strip steak, hard-cooked egg, and sugar snap peas; roasted purple potatoes
CSA Week 3
2007-06-03
ubuntu myth feisty wlan wireless break
2007-05-30
and a menu
- stir fried kohlrabi, leaves, and yu choy – vegetarian sauce (grrrrr friends)
- radish masala parathas! and beef sukka
- mesclun salad with teriyaki tofu and timbale of coconut rice
- southern-style bacony mustard and radish greens; cornbread
- peanut-crusted trout over sautéed swiss chard from Jacques Pépin
CSA week 2
- ‘Early glow’ strawberries
- Curly mustard greens
- Baby lettuce (red romaine, oak leaf, green leaf, etc.)
- Baby mesclun (spinach, mizuna, bok choy, arugula, purple mustard, etc.)
- Two more cabbageturnips!
- Cilantro
- Swiss chard
- Tomatoes (bought separately, different farm)
- White radishes
- Orange and purple carrots
2007-05-29
tamales de acelgas
This dish tamales de acelgas, wrapped in swiss chard, called out to me from the chapter on tamales in my primary mexican cookbook, Diana Kennedy’s Art of Mexican Cooking. The pork filling combines sweet, sour, salty, spicy, and umami in a marvelous balance that is definitely Mexican, but as she notes, hints of the middle east (raisins! almonds!) but I would say also of southeast asia (one can imagine adding lemongrass, some ginger and lime; switching the pasillas for bird chiles, and passing it off as Malaysian).
I had made the filling before, but we were impatient, and ended up filling masa balls and deep frying them (yum). This time, however, I blanched the swiss chard, spread it with the mixed dough (fresh masa, btw, from a Pilsen tortilla factory), and carefully rolled up the leaves around it and set them in the steamer for a very long time. I am certain that I spread it too thick and made them too large, but I only had 10 large leaves. Nevertheless, the tamales are marvelous – especially for lunch the next day(s) – but the filling is so good on its own, and so easy, in the future I will probably just make a pile of tortillas and serve it as tacos.
aha
2007-05-23
Now, what to do with it—
- Radish greens soup
- Either pad thai or chinese pork and garlic chives stir fry
- Lamb’s quarter pesto
- Stir-fried yu choy with black bean sauce or oyster sauce
- Arugula and roasted beet salad
- Mustard or beet greens au gratin
- Tamales de acelgas (swiss chard wrapped tamales)
- Mustard greens with spicy ginger - honey - miso sauce
It’s here! First CSA box
- red romaine
- beets (with their greens)
- a
mystery root vegetablecabbageturnip! (purple kohlrabi) - radishes (with greens)
- a rainbow of chard – orange, white, red, yellow
- yu choy
- arugula
- cilantro
- purple mustard greens
- lamb’s quarter
2007-05-22
Our CSA starts Wednesday!
2007-05-17
MacFuse has changed my life
Spotlight, and metadata search in general (cf. WinFS, the iTunes library, iTunes for PDFs, the iPhoto library; even bibdesk) is still supposed to (read: hasn’t yet but just around the corner!) change the way we store, organize, and interact with our data. And certainly there is a place for metadata search. But files still have to be stored on disks, and regardless of how complicated you make your symlink structure, distinct servers remain distinct. File systems are not going away. They remain “familiar” according to MacFuse developer Amit Singh. His port of FUSE (Filesystems in USEr space) takes the familiarity of a folders-and-files to its extreme.
It has a sheerly practical side too though. It's really nice to mount ssh volumes of remote servers as if they are local. And, for people who have to deal with Windows hardware like external drives, it offers what Tiger left out, NTFS-3g read/write support. Here is Singh’s tech demo video, showing some other cool stuff, like a Picasa file system. (There is one for flickr as well.) The "albums and photos" is a direct analog of "folders and files" and there’s no reason we shouldn't be able to access it like any other volume. I have not yet tested the iPod file system – all filesystems are just plugins for the underlying kernel plugin – but it should be the easiest way to copy stuff from an iPod. Right now I'm mainly using it to work on various remote servers. As nice as cyberduck is, sshfs is the way things should be – and now, at last, are.
2007-05-16
the only appropriate remembrance
On global warming: “I can tell you, our grandchildren will laugh at those who predicted global warming. We’ll be in global cooling by then, if the Lord hasn’t returned. I don't believe a moment of it. The whole thing is created to destroy America’s free enterprise system and our economic stability.”
Classy?
“These phones are aimed at classy users we haven’t been addressing,” said Motorola’s chief executive, Edward J. Zander, who has been guiding the company through a turbulent yearlong downturn….The phones were introduced at a dance studio in the Chelsea neighborhood of Manhattan, and recorded video demonstrations included the singer Fergie, the soccer star David Beckham and the race car driver Danica Patrick.
2007-05-14
São Paulo sans ads
I read about this a while ago, and finally found some cool pictures of it… the entire city has banned advertising in public space. From onthecommons:
As Brazilian journalist Robert Pompeu de Toledo wrote, the ad ban is “a rare victory of the public interest over private, of order over disorder, aesthetics over ugliness, of cleanliness over trash. For once in life, all that is accustomed to coming out on top in Brazil has lost.”
The article also refers to a project called Delete! in Vienna, which covered ads and signage all in the same color wrapping.