<CharlieDigital/> Programming, Politics, and uhh…pineapples

26Oct/08Off

Another Day, Another Endorsement…

Posted by Charles Chen

This time, from Alaska's own Anchorage Daily News:



Sen. Barack Obama, the Democratic nominee, brings far more promise to the office. In a time of grave economic crisis, he displays thoughtful analysis, enlists wise counsel and operates with a cool, steady hand. The same cannot be said of Sen. McCain.


Sen. Obama warned regulators and the nation 19 months ago that the subprime lending crisis was a disaster in the making. Sen. McCain backed tighter rules for Fannie Mae and Freddie Mac, but didn't do much to advance that legislation. Of the two candidates, Sen. Obama better understands the mortgage meltdown's root causes and has the judgment and intelligence to shape a solution, as well as the leadership to rally the country behind it. It is easy to look at Sen. Obama and see a return to the smart, bipartisan economic policies of the last Democratic administration in Washington, which left the country with the momentum of growth and a budget surplus that President George Bush has squandered.


What's next, Obama winning Arizona?


In a separate endorsement, the Financial Times writes:



Obama is the better choice


...a campaign is a test of leadership. Mr Obama ran his superbly; Mr McCain’s has often looked a shambles. After eight years of George W. Bush, the steady competence of the Obama operation commands respect.


In responding to the economic emergency, Mr Obama has again impressed – not by advancing solutions of his own, but in displaying a calm and methodical disposition, and in seeking the best advice. Mr McCain’s hasty half-baked interventions were unnerving when they were not beside the point.


On foreign policy, where the candidates have often conspired to exaggerate their differences, this contrast in temperaments seems crucial. For all his experience, Mr McCain has seemed too much guided by an instinct for peremptory action, an exaggerated sense of certainty, and a reluctance to see shades of grey.


John Hodgman -- you may know him as "PC" from the Apple commercials -- raises some excellent points in an interview over at The A.V. Club:



JH: The thing that I find so compelling is that right now Obama's whole campaign strategy is simply [to] speak to people as though they were adults and trust that the truth of the world situation will be evident to them. For him to be attacked as a friend of a terrorist, for "palling" around with terrorists and to simply go back and say, "No, I'm not"? That was such a refreshing political moment. It's like he's saying, "Oh, you know that's not true. You know what's happening here." So much of the past eight years in politics, whether you're a Democrat or a Republican, you have to acknowledge is based on what the Bush people to themselves have described outside the reality-based community. That the words they were speaking had no basis in reality and they felt no compulsion to exist in a real world. They were creating a world of their own imagining.


<snip/>


Do I think that his candidacy is historic? Sure, that's exciting too, but what I think it's really amazing that he exists in the same world that I also inhabit and no other political candidate lives in that world right now. They live in a made-up world that is not reality. I think that that's why you see Obama surging right now. It's that the people like the fact that Obama lives in the world that they live in.


I think the keyword is "reality".  Hodgman hits it on the head with regards to why Bush has failed and why McCain has also failed to deliver (so far) in this campaign.  Neither man seems to be comfortable embracing reality.


An excellent interview that's worth a read.


Also, two of my favorite images from this election:




Check out the official flickr photostream for more good stuff.

Filed under: Uncategorized No Comments
27Mar/07Off

SharePoint “Feature”: Pain In The Ass…

Posted by Charles Chen

Just to share some findings on working with SharePoint features:



  • The Elements.xml file that you include with your feature deployment cannot contain XML comments; if it does, you will encounter an error when you try to activate your feature using STSADM.exe.  Why?  Who knows.

  • The <type/> element in the Elements.xml file, according to the schema documentation, can only occur once.  This seems to imply that you will need a different Elements.xml file to subscribe to each event type that you want to handle.

  • And of course, Microsoft does not include the list of valid values (and if they do, it's not easy to find in the documentation).  Instead, I pulled the values using Reflector from the SPEventReceiverType enumeration.

The following is the enumeration listing:

public enum SPEventReceiverType {
ContextEvent = 0x7ffe,
EmailReceived = 0x4e20,
FieldAdded = 0x2775,
FieldAdding = 0x65,
FieldDeleted = 0x2777,
FieldDeleting = 0x67,
FieldUpdated = 0x2776,
FieldUpdating = 0x66,
InvalidReceiver = -1,
ItemAdded = 0x2711,
ItemAdding = 1,
ItemAttachmentAdded = 0x2717,
ItemAttachmentAdding = 7,
ItemAttachmentDeleted = 0x2718,
ItemAttachmentDeleting = 8,
ItemCheckedIn = 0x2714,
ItemCheckedOut = 0x2715,
ItemCheckingIn = 4,
ItemCheckingOut = 5,
ItemDeleted = 0x2713,
ItemDeleting = 3,
ItemFileConverted = 0x271a,
ItemFileMoved = 0x2719,
ItemFileMoving = 9,
ItemUncheckedOut = 0x2716,
ItemUncheckingOut = 6,
ItemUpdated = 0x2712,
ItemUpdating = 2,
SiteDeleted = 0x27d9,
SiteDeleting = 0xc9,
WebDeleted = 0x27da,
WebDeleting = 0xca,
WebMoved = 0x27db,
WebMoving = 0xcb
}

Of course, these values are in hexadecimal and for some reason, the <type/> element insists on the integer values.  So just be sure to convert the value to integer (try using Google for that).

Filed under: Uncategorized No Comments
27Mar/07Off

Wait, what?

Posted by Charles Chen

So CNN has a video on the mythical Japanese Gyroball.


After watching this, I'm more curious about their dubious use of information from the Net.  From YouTube, specifically.  Uh, when did random people commenting on YouTube video logs count as newsworthy sources?  And when CNN pulls something like this, do they have to contact that commenter for permission to use the comment?


But in any case, speaking of the gyroball, for anyone interested, there is a great little (skit?) article over at ESPN by Patrick Hruby.

Filed under: Uncategorized No Comments