Romney’s Character Problem

May 14th, 2012 No comments

I agree with those who say that Mitt Romney’s assault (and I’m not sure what else you can call it) on a gay classmate at an exclusive private high school says little about the man’s character now. Ugly as the reported incident was, there is no indication from what we know of him that Romney has continued his high school bullying ways into adulthood. His reaction to being asked about it, however, speaks volumes.

Instead of an acknowledgement and heartfelt apology for an incident that he looks back on with shame, Romney did what Romney does best: he lied. (Well, he also flip-flops impressively too). He said he didn’t recall the particular incident but acknowledged he did some stupid things in high school and apologized if his actions hurt anyone. In other words, a lie followed by a meaningless non-apology.

How do we know he lied? Well we don’t for sure. However, the unthinkable alternative is that he has casually put this callous act out of his mind as if it is unworthy of recollection; even as it is burned in the memory of others who participated and who, rightly, feel ashamed.

Contrast this with President Obama’s week when he publicly declared support for same sex marriage. It’s true that he has been moving in this direction for some time, that his words were inevitably going to catch up with his actions (ending “Don’t Ask Don’t Tell”; issuing an edict that the federal government would no longer defend the Defense of Marriage Act), that deep down he probably even supported it before he was elected but backed off when he became president.

Nevertheless, with the politics of it uncertain at best, it was a gutsy call. For example, it may well cost him at least one of two of the all-important swing states in November where his stand may not sit well no matter what national polls say. Yet it was a reflection of his deeply held belief and he did the right thing.

We’re used to hearing Republicans carping about how character should be an issue in presidential elections. If it is this year, Obama wins hands-down.

Legendary Children’s Book Author Maurice Sendak dies at age 83

May 8th, 2012 No comments

Illustrator of over a hundred books and author of a dozen including Where the Wild Things Are and In the Night Kitchen, Maurice Sendak died today following a stroke he suffered last Friday. (Full Washington Post obituary here.)

Not too long ago, Stephen Colbert sat down with Mr. Sendak to discuss his work and to get some useful criticism from the master of children’s picture books. The two parts of the interview were perhaps the funniest segments I’ve ever seen on The Colbert Report.

Brian Jonestown Massacre – Aufheben – Special Review

May 2nd, 2012 No comments

While looking around Amazon yesterday, I stopped on the page for the new Brian Jonestown Massacre album, Aufheben. There I found a stream-of-consciousness ”review” of the album by Andrew Morton. I emailed a link to friends who I thought would like to read it, but, when they followed the link, they found that Amazon had deleted the post. Amazon should not have done that, because it was a very good read. Luckily I had it saved in my cache for your reading pleasure:

i am so pissed to because they came to dallas the other day and i got so wasted on cheap cheap vodka and that was the first show of the tour i only got to see them play for like 20 minutes such a tease then i started puking everywhere probably cause i take stupid stupid methadone and started feeling so bad haveing like minor withdrawals thank god i am getting off this crap soon i HATE IT i almost went to austin to see them but my friend pussed out and i didnt have a ride guess i will have to wait another three years for them to come unless i get to go to chicago to see them i really hope so at leat i got to meet anton it kinda sucks though because my friend asked him what he thought about dig and he said thats like asking a cheese maker what its like to make cheese right before he makes cheese it was pretty funny made my friend look like a dum dum you could tell hes really smart to of course but man does it suck that happened i have seen them before though in 09 and its cool i caught there new songs they played stairway to the best party in the universe which was really amazing and i want to hold your other hand waking up to hand grenades viholliseni maalla anemone a couple of there other songs then thats when everything started sucking for me totally i really hope i get to see them in chicago so bad and it sucks even more cause my brother was like there biggest fan no joke he loved them to death he followed up on everything anton ever did and he passed away last july taking morphine and drinkin a ton its like the worst story ever i dont even want to tell it cause we got like in a big fist fight three days before he died and on the 4 july just being drunk and stupid and we really we didnt talk the last three days of his live then the day it happened we had to work together and i got up and my aunt was already up so i asked her to go wake my brother up and she said will you but i was getting dressed and stuff so i almost went but i said will you please go get him up and she said ok the next thing i konw shes yelling for me to get down there and when i walk in his room my dad is giving my brother cpr and he was just really really white it was horrible i was freaking out but in the back of my mind i thought when the paramedics would get there they would give him the naloxone shot and he would wake up because he has od before and they gave him the shot and he woke up but when the paramedics got there and they gave him the shot and he didnt wake up i knew he was gone it the worst thing thats ever happened to me of course but the cool thing about it is he passed leaning up against his bed with his guitar in his hands and lap no joke thats how he would of wanted it he always knew he was gonna die at an early age he was really destructive to his body and a bad junky he was down here to get away from dope in kansas city mo but it didnt work we still dont know if he od or suffocated on his puke i think he suffocated otherwise i think that naloxone shot would of worked but im not sure i just wish he would of been at the show me so bad he loved bjm to death really

And here’s a video of “I Wanna Hold Your Other Hand” from the album.

There is a much shorter post there by the same author, but it pales in comparison to the above.
 

Europe’s Plight a Warning for US Not to Follow GOP

May 1st, 2012 No comments

Europe’s current doldrums are a dire warning to this country against the federal government pursuing a policy of austerity at a time of continuing slow economic growth. It is also a vindication of a Democratic congress and President Obama in passing the 2009 stimulus bill that cushioned the American economy at a critical time when the economy was in free-fall.

In particular, America’s admittedly modest 2.2% economic growth in the first quarter stands in contrast to the United Kingdom’s slip into recession in the wake of debt-fighting austerity policies pursued by its Conservative government – policies which are widely admired by Republicans in this country.

It is more than likely that our growth in employment in the US has been slowed by misguided and pernicious austerity policies by state and local authorities; and these would be replicated at the federal level if Mitt Romney and the GOP congressional leadership had their way. It never made sense to lay off hundreds of thousands of public employees including teachers, police and fire employees, thereby losing not only their vital services but the economic impact of their personal spending.

If there was anything wrong with the stimulus it lay in its relatively modest size given the magnitude of the crisis, and that too much of it was given over to tax cuts (in a vain attempt to attract GOP support) that gave far less bang for the buck than aid to states and local governments, and infrastructure spending. In an ideal world, we would have enacted a second stimulus to build on the first (with even more aid to states) but, without any GOP support whatever, that was a political impossibility. Indeed, Republicans in congress have behaved in ways that suggest they had no real interest in seeing the economy improve.

Slashing federal government spending now in a recovering economy as Romney and the GOP propose at a time when the immediate need is more short term spending to lower the unemployment rate is simply stupid. Unfortunately, that has never stopped the ideologically blinkered GOP.

The Truth Regarding GOP Extremism

April 30th, 2012 No comments

In an essay appearing in The Washington Post and adapted from their new book “It’s Even Worse Than It Looks: How the American Constitutional System Collided With the New Politics of Extremism,” which will be available next week, Thomas E Mann, a senior fellow at the liberal Brookings Institution, and  Norman J Ornstein, a resident scholar at the conservative American Enterprise Institute, lend their scholarly weight to what the likes of New York Times columnist and Nobel Prize winning economist, Paul Krugman, and the contributors to this blog (among others) have been saying for a long time now: That the GOP is the primary source of the governmental and policy paralysis in this country, and that it is unlike anything the country has seen in the modern era.  In other words it is not “politics as usual”.

Their views carry considerable weight because they are long time, highly respected scholars on and analysts of congress, politics, government policy, and elections, and their words cannot easily be dismissed as merely partisan.  

Mann and Ornstein make it clear that the GOP’s extremism has no equivalent on the left, and contrast the willingness of Democrats in Congress to work with George W. Bush on No Child Left Behind, the war on al-Qaida, and even tax cuts (misguided and shameful though many of us regard that particular support) as well as other issues, with the GOP’s steadfast refusal to cooperate with Obama on anything of great import. The zealotry of the GOP driven by an even more fanatical base was on display in the willingness of many in the House to see America default on its debt, a sure sign to the world of a totally dysfunctional government.

Mann and Ornstein rightly take the mainstream media to task for confusing balance on this issue with failing to recognize and convey truth and reality to the public:

We understand the values of mainstream journalists, including the effort to report both sides of a story. But a balanced treatment of an unbalanced phenomenon distorts reality. If the political dynamics of Washington are unlikely to change anytime soon, at least we should change the way that reality is portrayed to the public.

That may be more generous than the media deserves. Is it really confusion or cowardice?

And the failure of the American electorate to recognize and rise up to reject the GOP’s current extremism at the polls (indeed shockingly to embrace it in the 2010 mid-terms) is also highlighted:

If our democracy is to regain its health and vitality, the culture and ideological center of the Republican Party must change. In the short run, without a massive (and unlikely) across-the-board rejection of the GOP at the polls, that will not happen. If anything, Washington’s ideological divide will probably grow after the 2012 elections.

The question remains: What is it going to take for the American people and mainstream media to see what’s in front of their nose?

Juan Carlos, King of Spain, Honorary President of WWF España, and Elephant Killer

April 23rd, 2012 No comments

When I pulled the trigger I did not hear the bang or feel the kick–one never does when a shot goes home–but I heard the devilish roar of glee that went up from the crowd. In that instant, in too short a time, one would have thought, even for the bullet to get there, a mysterious, terrible change had come over the elephant. He neither stirred nor fell, but every line of his body had altered. He looked suddenly stricken, shrunken, immensely old, as though the frightful impact of the bullet had paralysed him without knocking him down. At last, after what seemed a long time–it might have been five seconds, I dare say–he sagged flabbily to his knees. His mouth slobbered. An enormous senility seemed to have settled upon him. One could have imagined him thousands of years old. I fired again into the same spot. At the second shot he did not collapse but climbed with desperate slowness to his feet and stood weakly upright, with legs sagging and head drooping. I fired a third time. That was the shot that did for him. You could see the agony of it jolt his whole body and knock the last remnant of strength from his legs. But in falling he seemed for a moment to rise, for as his hind legs collapsed beneath him he seemed to tower upward like a huge rock toppling, his trunk reaching skyward like a tree. He trumpeted, for the first and only time. And then down he came, his belly towards me, with a crash that seemed to shake the ground even where I lay. – George Orwell

Not the kind of act you would expect from an Honorary President of the World Wildlife Fund, but that’s what Spain’s 74-year-old King Juan Carlos has done

He would have been able to keep his $60,000 elephant hunting trip on the down low had he not sustained a broken hip that landed him in the hospital. People like to know when their monarchs are in the hospital – especially the Spaniards who have been forced into draconian austerity measures by the EU and have a 24% unemployment rate. Spain’s school budget was cut by 30% while the Royal Palace’s budget was cut by a mere 2%. While regular citizens were suffering from severe cuts in government spendiing, the king had plenty of money to travel to Africa and have a grand time plugging elephants – well at least up until he broke his hip.

But that’s not all. King Juan Carlos, as I mentioned earlier, is the Honorary President of Spain’s chapter of the World Wildlife Fund. You know, the organization that exists to preserve wildlife – not destroy it. The WWF has asked to meet with the king to discuss this awkard news and is under great public pressure to dismiss him.

That’s still not all to the story. Just a few days before this story broke, Juan Carlos’s 13-year-old grandson Felipe Juan Froilan accidentally fired a shotgun into his foot. In Spain, it is illegal for children under 14 to possess or discharge firearms. Just another example of exceptional behavior set by the Royal Family.

One more thing:  At age 18 in 1956, Juan Carlos was handling a gun while vacationing in Portugal when it accidently discharged and killed his 14-year-0ld brother Alfonso.

The Tallest Man on Earth might wanna be the King of Spain, but I wouldn’t.

Good Ideas about School and the Military Whose Time Will Never Come

April 21st, 2012 No comments

In the The Washington Post ‘Outlook’s 4th Annual Spring Cleaning’ ten writers were invited to recommend one thing the country needs to throw out. Among the suggestions were these two standouts:

Peter Orszag, President Obama’s former budget director, makes the case for getting rid of the 3pm school day and extending it to 5 pm or longer. He points out that more time in school, especially when combined with other measures, is likely to help our kids to master the material they are taught by giving teachers more classroom time. It would also help parents with their schedules by addressing the problem of latchkey kids; these are children, many of whom are elementary school age, who go unsupervised once school gets out.

And as a parent who has watched my children’s progress over the years, I am convinced that their teachers, particularly from middle school on, are forced to rush through a broad curriculum that doesn’t allow sufficient time to explore concepts in depth, or ensure that students have mastered the material before moving on.

My high school and middle school children start school at 7:50 am and get out at 2:20 pm. This is a ridiculous school day which starts too early and doesn’t last long enough. A much better school day would start a bit later, say at 9 am, and end no earlier than 5 pm.

Orszag acknowledges the monetary cost but insists it’s worth it. He’s absolutely right.

Meanwhile Thomas E Ricks, who has written a couple of excellent books on the Iraq War, wants us to get rid of the all-volunteer military – not because it doesn’t work but because it works too well.

I daresay that during his book research as well as during his coverage of the Iraq war, Ricks must have appreciated even more clearly than the rest of us the folly of George W Bush’s Iraq invasion, both in terms of its stand-alone stupidity and because it resulted in the United States taking its eye off the ball in Afghanistan, thereby significantly adding to the length and human cost of that conflict.

Admittedly it’s odd to argue that because something is too efficient we should go to a less competent model. But the all-volunteer military’s very professionalism when combined with the tiny percentage of Americans who are thereby touched personally when it goes to war is too great a temptation to some presidents with a serious imbalance in levels of testosterone and common sense.

Ricks thinks our society needs to re-establish its connection to our military through the draft; that way if we do decide to go to war there is no doubt we will all feel the pain. It’s a point well-made but, like Orszag’s, it will never happen. Good public policy ideas rarely do in today’s America.

Happy Record Store Day 2012

April 21st, 2012 No comments

from Zippy…

“Do yourself a tremendous favour and go to a record store today. The relatively mild exertion of getting off your fat, computer-shackled ass and venturing out to find the object of your desire, the thrill of moving through actual space and time, through row upon row of records, and the tactile ecstasy of fondling the quested treasure—all this will augment and enrich the mental associations the music invokes in you for the rest of your life.”

- Grinderman

 

“Yes, yes, I know. It’s easier to download music, and probably cheaper. But what’s playing on your favourite download store when you walk into it? Nothing, that’s what. Who are you going to meet in there? Nobody. Where are the notice boards offering flatshares and vacant slots in bands destined for superstardom? Who’s going to tell you to stop listening to that and start listening to this? Go ahead and save yourself a couple of quid. The saving will cost you a career, a set of cool friends, musical taste and, eventually, your soul. Record stores can’t save your life. But they can give you a better one.”

- Nick Hornby, author, High Fidelity, Slam, (among others)

 

“Folks who work here are professors. Don’t replace all the knowers with guessors – keep’em open they’re the ears of the town”

- Tom Waits

 

“I have watched independent record stores evaporate all over America and Europe. That’s why I go into as many as I can and buy records whenever possible. If we lose the independent record store, we lose big. Every time you buy your records at one of these places, it’s a blow to the empire.”

- Henry Rollins

 

“You can’t roll a joint on an iPod – buy vinyl!”

- Shelby Lynne

How to run PHP scripts inside your Objective-C Mac OS X application

April 20th, 2012 1 comment

Picking a starting point

I spent a lot of time looking around the web for instruction on how to execute PHP inside of a Mac OS X application created in Xcode (version 4.3) only to find a whole lot of nothing. I knew it could be done since there are several apps in the Mac App Store that allow you to interpret PHP on the fly, so I set out to do it without the help I believed I needed. It turns out to be one of the easiest things I’ve done in Objective-C.

The first thing I did was to download the JavaScript Interpreter sample code from the Apple developer site for reference. It’s old code and doesn’t compile readily on a 64 bit system with the OS X Lion SDK, so to get it to run I had to change the target to fit my system as shown below. Xcode will also ask you if you want to update the code to current standards – go ahead and do that.

Xcode screenshot

Getting Objective-C to execute PHP scripts

Next, I changed the code to skip the JavaScript interpreter and use PHP instead. This involves the NSTask Class from the Foundation Framework. Luckily the Foundation Framework is already included in the JSInterpreter sample code. While we’re talking about included Frameworks, you can go ahead and remove the reference to the JavaScript Framework now. To get rid of the red squiggly lines and error messages, delete the #import directive at the top of the MyController.m file along with all of the code inside the evaluateScript method.

Next, I searched for a way to run a command line script similar to “> php testing.php” that would allow me to execute a script and see its output. As always, Stack Overflow came to my rescue. I took the basics of the code there and went to (not very much) work.

First, I had to replace the NSTask LaunchPath with the php binary executable on my system, which is at /usr/bin/php.

Next I had to replace the arguments with the code I wanted to run, which was at ~/tonyj/Sites/harikari/test/testing.php – a script that simply echos “Hello world!” To keep from having to alter the existing code too much, I put in the whole path but left out the filename so that I could type it into the input field of the original application and have it executed when I clicked the button.

That’s it. I built and ran the application and I had a window with an input field and an output filed. I typed the name of my script into the input field and, ta-da!, “Hello world!” appeared in the output field.

A standalone application?

Next I wanted to see if I could make the whole thing a standalone application. This being my first attempt at writing a Mac OS X application in Xcode, I had no idea where to start. So I just went for it. I added my PHP binary to my application (File -> Add Files to JSInterpreter) and then added my script to the project. I wasn’t quite sure what the path was going to be for either of them in the application bundle, so I went back to Stack Overflow to find out about [NSBundle mainBundle] resourcePath] as a method for getting the path to the inside of your application, wherever it may be.

It worked!

With one caveat: I haven’t worked through all of the details yet, so I’m sure there are some dependencies in the PHP binary that my system provides in the place that PHP is looking for them. But I’m confident that it would not be difficult to find and eliminate or compensate for them.

Also, Objective-C doesn’t automatically wait for the return value from a task the way PHP does. And PHP is sometimes a little slow to respond. So you have to figure out how to make it wait around for a response from PHP and your script, especially if it’s a lengthy one. Once again, Stack Overflow helped me find information about the NSNotificationCenter. I don’t know much about it, but it basically notifies your code when the PHP output file is done loading.

Now I can load any PHP script into my application and send and receive messages to and from it. I might try adding MySQL tomorrow.

The code:

-(NSString *) evaluateScript:(NSString*)scriptName
{
    NSTask *task = [[NSTask alloc] init];
    NSString *taskPath =
        [NSString stringWithFormat:@"%@/%@",
        [[NSBundle mainBundle] resourcePath], @"php"];
    [task setLaunchPath: taskPath];

    NSArray *args;
    NSString* scriptPath =
        [NSString stringWithFormat:@"%@/%@",
        [[NSBundle mainBundle] resourcePath], scriptName];
    NSLog(@"script file path: %@",scriptPath);
    args = [NSArray arrayWithObjects:scriptPath, nil];
    [task setArguments: args];

    NSPipe *pipe = [NSPipe pipe];
    [task setStandardOutput: pipe];

    NSFileHandle *file = [pipe fileHandleForReading];
    [file waitForDataInBackgroundAndNotify];
    [[NSNotificationCenter defaultCenter]
 addObserver:self 
           selector:@selector(receivedData:) 
               name:NSFileHandleDataAvailableNotification 
             object:file];
    [task launch];

    NSData *data = [file readDataToEndOfFile];
    NSString *string =
        [[NSString alloc] initWithData: data
 encoding: NSUTF8StringEncoding];

    return string;
}

- (void)receivedData:(NSNotification *)notif {
    NSFileHandle *file = [notif object];
    NSData *data = [file availableData];
    NSString *str = [[NSString alloc] initWithData:data
 encoding:NSASCIIStringEncoding];
    NSLog(@"%@",str);
}

Altering the code

This is an example of how to type in the name of any file included in your project, but you may want to just execute raw PHP commands or fully integrate PHP into your app. To do this, just look at the line above where the args variable is set. You want your array to have filepath as its first element, then any arguments you want to have available in the argv[] array.

If you want to execute single PHP functions, your first arg will be “-r”, followed by the function as in the following example.

args = [NSArray arrayWithObjects:@"-r",@"is_array(array(1,2,3))", nil];
Categories: Apple, Miscellaneous, Technology Tags:

Liberty Mutual CEO Ted Kelly Wins Greediest CEO Award

April 19th, 2012 1 comment

Ted Kelly who was the CEO of Liberty Mutual Insurance for thirteen years prior to retiring last June was paid $50,000,000 a year from 2008 – 2010. That’s $24,000 per hour or $192,000 per day. The Boston Globe reports:

As with other companies, Liberty Mutual’s board of directors sets the chief executive’s pay. The board includes Thomas May, the chief executive of Northeast Utilities, which this week merged with NStar, and William C. Van Faasen, chairman of Blue Cross Blue Shield of Massachusetts Inc. Kelly said board members earn about $200,000 a year each, in line with what directors earn at companies of similar size.

But Kelly’s paycheck raised eyebrows, both because of its sheer size and because Liberty Mutual is owned by its policyholders, rather than shareholders. Any surplus profits are supposed to go to policyholders, rather than executives, or be reinvested in the company.

Policy Holders? What did they do to earn any of Liberty Mutual’s profits? I’ll bet that many of them recieved payments for some horrible casualties. Just think how much Mr. Kellly could have made if Liberty Mutual only insured people who never drive their cars and live in fireproof homes. Based on Kelly’s compensation, you gotta wonder if that’s not what they do.

In additon to his exhorbitant compensation he had a few perks including access to five corporate jets housed in a private hangar at Boston’s Hanscom Field:

… including three Gulfstream 450s and two high-end Bombardiers, about $150 million worth of big, powerful, long-range aircraft, all of them housed in a state-of-the art 30,000-square-foot hangar with heated ramps. Basically, your friendly Boston-based insurer, the one that just got $46.5 million in city and state tax breaks, has its own air force.

Is any CEO worth that much? I’ll answer that question for you – NO!!!!!!!!!!!!!!

Maybe he was worth a few million and maybe he could live a lush life on that income. I know I could.

The way I figure it, he was overpaid by at least $40,000,000 a year. His buddies on the board who were paid $200,000 a year to set his salary obviously thought otherwise.

And any company that makes enough profit to overpay somebody that much money shouldn’t be getting tens of millions of dollars in city and state tax breaks.

You Liberty Mutual policy holders might wonder why your insurance rates went up over the past decade. Now you know: Your rates went up to meet the insatiable demands of their greedy CEO.

Anybody have any reservations about taxing this guy at 70% to 91% like they did in the good old post-WWII days? Not me.