Archive for January, 2009

XgridLite on Leopard, Test Version

Saturday, January 31st, 2009

After debugging some weirdness, I have a version of XgridLite that works on Leopard, I think. Brave testers, download this file:

XgridLite.prefPane.zip

Then decompress and drag the prefPane into your /Library/PreferencePanes or ~/Library/PreferencePanes

Let me know how it goes!

FYI, the weirdness I ran into goes something like this (as described in a message I just sent to the xgrid-users mailing list):

Hi everyone (particularly Apple folks),

After being out of the loop for a while, I finally got around to getting XgridLite working on Leopard. (Test version about to be posted at code.edbaskerville.com, official release probably by Monday.)

In doing so, I ran into one weirdness that I thought someone might be able to explain. XgridLite simply calls xgridctl to get and set controller state, which seems simple enough. In Tiger, it was sufficient to do this as root using a setuid tool.

In Leopard, however, I found that status calls always returned that the controller was off:

daemon              state               pid
======              =====               ===
xgridcontrollerd    stopped

This was happening inside the setuid tool even when querying it via sudo as a regular user worked fine:

Agnos:~ ebaskerv$ sudo xgridctl c status
daemon              state               pid
======              =====               ===
xgridcontrollerd    running             12656

To get to the bottom of this, I activated the root user on my system and tried it from a root shell, and, sure enough, I’m being told the controller is stopped:

sh-3.2# xgridctl c status
daemon              state               pid
======              =====               ===
xgridcontrollerd    stopped

Miraculously, though, if you run xgridctl via sudo as root, all is fine:

sh-3.2# sudo xgridctl c status
daemon              state               pid
======              =====               ===
xgridcontrollerd    running             12656

This gave me the workaround I needed: run xgridctl via sudo as root inside XgridLite. But I still have no idea *why* this is happening, so I’m writing purely out of curiosity. Why is it that running xgridctl status via sudo gives the correct status, while running as root directly does not? One more wrinkle: running xgridctl c start/stop seem to work fine inside my setuid tool (WITHOUT running via sudo), but do NOT work via a root shell!

Any wisdom would be appreciated.

Thanks,
Ed

Two Million

Tuesday, January 20th, 2009

Bush’s Last Day

Monday, January 19th, 2009

In Dupont Circle, people were throwing shoes at a giant Pinocchio Bush. On the Metro, things were getting crowded.

Prep on the mall

Sunday, January 18th, 2009

The madness begins…

Saturday, January 17th, 2009

I’m getting more and more excited by the minute. The crowds are beginning to gather–so far, it’s feeling like a busier-than-average tourist season day, but word on the street is than 1 million people will descend on the Lincoln memorial tomorrow for a concert.

The scientologists are here: the cardboard boxes say “L Ron Hubbard Books.” And after seeing the final photo in the set I’m going to go to a cafe to work for a few hours before birthday dinner.

Photo blogging!

Friday, January 16th, 2009

In the Chem building, about to leave. I discovered it’s easy to blog photos from my phone. Fun!

Blog the inaug

Friday, January 16th, 2009

This seems as good a time as any to revive a never really functional blog: the historic inauguration of Barack Obama.

I’m heading out to DC later today along with three other grad students willing to sacrifice a few days for this historic occasion. Somehow, I tell myself, I’ll get some work done on the road.

The last time I was a new student at the University of Michigan, we were about to elect Al GoreGeorge W. Bush. I remember my dad telling me at the time, “The republic will survive!” Technically, I guess he was right, but there have definitely been moments over the last few years when I feared the coming of the new American Empire (I mean, officially), the dissolution of the Senate, George Bush’s appointment of his dog to consul, and the inevitable decline and fall.

Things aren’t really so bad as we head into Barack Obama’s first term. After all, many people do have jobs. Some are safely ensconced in graduate school. Especially lucky are the people who didn’t have jobs before the recession, so they didn’t have any to lose! (Those people usually have the additional advantage of not owning any stocks.) Furthermore, we’re only involved in two major conflicts abroad, and everyone knows that two is a very small number.

The best news, of course, is that Barack Obama owns a magic wand.

Seriously, though: I think it’s a time to be hopeful, but also an opportunity to hold leaders accountable to the change they promised. Barack Obama ran on a platform of change—and, contrary to the beliefs of many, he in fact did enumerate a number of important specific changes to make.

One promised change is the elimination of lobbyist money from the political process. Lawrence Lessig’s Change Congress project aims to do just that, and aims to do it via the very effective tool of public shame. The organization did not make much of a splash when it first appeared, but momentum seems to be growing, and I encourage all three of my readers to sign up with their ongoing donor strike (see the website for more info), especially if you donated to any congresspeople last year. (I signed up for the strike, effectively witholding $0 in donations this year!)

Due to the threatened demise of the auto industry, I also think this is the perfect time to implement really ambitious fuel economy standards. More on that next time.