Thursday, July 2, 2009

Leave the oil in the ground, drive electric with the savings

100 mile trips x million on 0.1% of 2008 oil production
You can leave the oil in the ground and drive farther in electric vehicles just on the saved energy that refineries would have used to extract the petrol and diesel from it, than if you had the gasoline from that oil.

Amazing - but true. Read on.

As the USA shows its world beating credentials by making billions of dollars available for a range of climate friendly initiatives, inevitably the conservatives are coming back more loudly with complaints that the green spending spree is a "new boondoggle".

I've never really been sure what a boondoggle is. But Mr Carney writing in the Washington Examiner echoes the sentiments of plenty of other better dead than red types, when he compares the recent funding initiatives for battery technologies by the Obama administration to the dreadful corn ethanol initiatives of the previous administration. Lithium, necessary for battery technology being produced in a country like Bolivia has all the McCarthy-ists reaching for their propaganda manuals.

The Obama governments Advanced Technology Vehicles Manufacturing Program serves up billions of dollars in funding, 5.9 billion for example going to Ford for its new initiatives which include Electric Vehicle (EV) research, as well producing more efficient traditional Internal Combustion Engine (ICE) vehicles.

If Mr Carney really wants a boondoggle, he only has to look back at the previous government grants to the big auto companies to make more efficient cars: money which those automakers cynically frittered away without only to arrive today at a financial crisis, and with rising fuel prices, and their caps in hands again.

Like many who are reaching for the handbrake on the clean vehicle charge, Carney is quoting the recent Government Accountability Office's report on Plug-in hybrid usage in the Federal Fleet. The executive summary of the report says in part
For plug-ins to realize their full potential, electricity would need to be generated from lower emission fuels such as nuclear and renewable energy, rather than the fossil fuels - coal and natural gas used most often to generate electricity today.
Sounds familiar doesn't it?

Its the same old FUD that's been going around for some time now.

As we already know, in answer to the GAO report and other "long tailpipe" arguments, the fact is that just replacing ICE vehicles with plug-in Hybrids without changing any of the electricity production would realize a saving of 27% in pollutants. And in California, where a cleaner mix of electricity production is used the figure is 40%.

But the biggest argument against the GAO report and other clean car naysayers is this fact: if you just leave the oil in the ground, and charge your electric car on the electricity you save from not having to run the oil refinery: guess what you actually use less energy.

Put it another way: that electric power which the naysayers claim electric cars would chew up, causing extra pollution would actually come for free - and actually even more save on pollution - just because the refineries are not pumping out so much of Chevron and Texaco's favourite money-spinner.


I just had to check the claims he makes for myself. I contacted the US Department of Energy for their take on it, and Paul Hesse of the Energy Information Administration got back to me with references to some of the DOE's figures.

According to the figures in 2008 oil refineries in the USA purchased 42,682 million kWh of electricity. Another major energy cost is 710,500 million cubic feet of natural gas, which assuming only 50% generation efficiencies is worth another 108,642 million kWh.

That's a total of 151, 324 million kWh of electricity.

Now that power went to produce 5,119 million barrels of petroleum and oil products.

Lets imagine that green citizens of the USA buy up the electric vehicles that the Obama initiatives are funding, and that 0.1% of the production capacity of USA refineries is saved as a result.

Just imagine how good it would be if 5.12 million barrels of petroleum and oil products don't have to be produced, and 0.1% of energy costs at refineries is saved as a result.

What could that 0.1% produce?


The answer is - according to the DOE figures (their diagram left) that one 44 gallon barrel produces around 19.15 gallons of gasoline for ICE cars, and around 9.21 gallons of diesel fuel.

The gasoline - around 98 million gallons of it from the 5.12 million barrels - would make for 24 million trips of 100 miles in internal combustion engined cars, and another 16 million trips of 100 miles in diesel vehicles - that's assuming an average of 25mpg EPA mileage for the cars and 35mpg EPA mileage for the diesels.

But since the 5.12 million barrels of production didn't happen, and the USA saved that money, left the oil in the ground - the refineries also saved the energy costs involved 151.3 million kWh worth.

Turns out that is enough to do 54 million 100 mile trips in an electric vehicle, like a Tesla, which uses just 28kWh to do 100 miles on EPA figures. See my bar chart at the top of this article for a graphical representation of these figures.

These same figures work for Australia too, and for other countries, although here we have slightly better average fuel consumption in our vehicles, and less nuclear power stations, so the figures are a little different - but the general message is just the same.

Now I'm sure there's some play in my figures - for example critics might say there's line loss in the transmission of the electricity, and there are extra products in the barrel of oil, such as aviation gas.

But I haven't yet counted the tons and tons of other energy used by the refineries, let alone the cost of the trucking of refined petroleum to gas stations.

I'll say it just one more time in case it didn't stick first up: leave the oil in the ground, put the petro-dollars back into education or something useful, and the power saved by winding back production at the refineries will run your EV's - in fact you actually generate less electricity!

Every way you look at it, EV's are a much better choice for the world - its time for the oil men and their cronies to say uncle - the game is over guys, its been a great century for you.

Now its time to join the 21st century, stop burning fossils and join the technical revolution.

Saturday, June 27, 2009

Clean Vehicle Adoption - VHS & BetaMax all over again?

Clean Vehicle Adoption Curve

One of the things that drives me crazy about clean vehicle debates is the binary nature of the dialogue: hydrogen or electric? Plug-in hybrid & range-extended or flex-fuel?

Sides are forming, straw men are being thrown up, and in the technology of the new clean green car it looks like a VHS versus BetaMax argument all over again.

When new technologies come on-line the supposed way things happen is that the best tech wins as the relative merits are discovered by an unsung army of innovative consumer investigators who compare the offerings and vote with their wallets.

Innovators in small numbers buy the new technology just because its new. These folks love trying out new stuff, and don't mind if it doesn't work perfectly.

Then the early adopters get on the bandwagon - they can see that the new tech actually provides a pragmatic solution to their real world need, and are willing to spend a bit extra in time and cash to find out how. There's lots more numbers of these trend-setters, and a key difference (at least according to the theory) is that they'll send out the message via journalism, blogging, and the whole range of public expression.

You can see from the diagram how the rest of the population takeup follows on from these ground-breaking types. In the ideal cleaner world, at any rate.

But in the case of VHS and BetaMax the best product didn't win. It was a case of marketing, politics, vested interests, sides being taken and sheer chance.

So how do the folks out there make their choices? What makes a technology debate finally settle to where it seems like it was always meant to be that way? What will Joe Sixpack do? What car will he choose?

Those lining up behind Hydrogen as a solution are running the argument that Joe Sixpack is on their side, and therefore manufacturers and governments should focus on the hydrogen highway. The argument goes that Joe and his friends will choose the hydrogen cars, because they look like that SUV he already has.

Of course the Honda FCX Clarity is a big four door car. And it looks like a valid choice. Hydrogen filling stations, SUV's with gas pedals: its not a hard sacrifice for Joe Sixpack to make.

But its actual on-road cost is in the hundreds of thousands of dollars, you can only lease them, and then with a insurance bill that reflects the units actual value. It will be 5-10 years before the investments in hydrogen technology research produce a vehicle that can be mass produced.

And Honda has now committed to electrification as the way forward, with plans to produce a range of electric and plug-in hybrid vehicles, including electric motorcycles.

Toyota, Mitsubish, Nissan, GM and most major manufacturers have now switched to electrification as their key strategy for clean vehicles with plans for either all electric or plug-in hybrid/range-extended vehicles starting from 2010.

But doesn't Joe Sixpack get a wallet vote here? How do these manufacturers know they've chosen VHS or BetaMax?

As much as I hate to say it I don't think the noble consumer vote is going to carry much sway here, since our decisions are going to be mostly made for us by pricing - hydrogen cars are way to expensive to produce.

At present if you live California or Iceland you can refill the hydrogen fuel cell that supplies electricity to your electrically powered vehicle. But in Australia, and most of the rest of the world, where hydrogen is still a commercial gas for industry, produced in relatively small quantities from fossil fuels, pulling into the local hydrogen station is at least 10 years away.

Yes, hydrogen can be produced from water using electricity - but then why not just use the electricity?

Why do we have to build out a collection of hydrogen filling stations just to act as middle-men? Are we trying to keep Joe Sixpack happy here, or is it actually ExxonMobil?

I have cheap electricity already coming out of a socket in my garage, so explain to me again why I should drive somewhere, and queue up so I can pay someone for it?

And what the manufacturers and governments are realizing is that it will not be a reality for the early and late adopters in their very large numbers, for ten years at least.

Another compelling argument for going straight to electricity over using hydrogen as an electricity middle-man is the Smart Grid.

Its certain that the Smart Grid will be a necessary innovation to both enable new efficient energy consumption strategies for consumers, and to manage the growth of solar, wind and other alternative electric power sources. The way we get power at present is that each turbine and generator that is bought online at the local power station to meet a days peaking usage results in a big step up in power availability. Its like power is sprayed out over the consuming public from a fire-hose, and another fire engine just backed up to pump out more.

Its a hit-and-miss operation, where the amounts we choose to use bear little relation to the generation capacity power authorities have to produce. A SmartGrid allows a feed back loop where intelligent management of capacity and consumption makes the consumers partners in the process - instead of a firehose, we get to channel more like what we need.

Also the SmartGrid enables balancing and management of clean energies at the times they're produced - on windy days, or sunny days for example.

When we see large scale take up of clean vehicles that don't use oil to power them, an amazing by product will be the free electricity no longer needed by the refineries - one analyst at least says that this amount of electricity would power the equivalent electric vehicles of the petroleum that would have been produced. This changing face of electricity production and usage in the face of climate change initiatives and a new greener high-tech economy will necessarily require a smart grid to manage it.

So we're going to have to get a SmartGrid - where does Hydrogen fit into that? Answer, nowhere that I can see.

Electric vehicles can use the SmartGrid to charge at off peak times, and even take an active part in buffering the SmartGrid. Hydrogen doesn't work that way, and the Joe Sixpack consumer model hydrogen gas station is even worse of a fit.

Nevertheless, common-sense and the good of mankind have never been good enough reasons to do the right thing.

And its certain that adoption of cleaner vehicles will be slow going.


Clean Vehicle Adoption with Chasm
If you follow the "Crossing the Chasm" theory of technology adoption, there is a big gulf between those true-believing converts in the early adoption camp, and their reticent counterparts in the early adoption majority.

But this is yet another win for electric vehicles, in my view. Electric cars are the ideal chasm bridging technology, because they provide a way to "sharpen the wedge".

Hydrogen has a big hump to get over with its requirements for new fuel cell technology, hydrogen filling stations, cryogenic storage and a laundry list of high-tech advances.

But with electric vehicles, ordinary folks are building them out of spare bits and pieces in their garages. The technology is really nothing new. That innovative spirit that has us rolling up our sleeves and tinkering in the shed will give traction to the already burgeoning grass roots electric car movement.

Also making the take up slope less of a hike is the the time-saving and budget-conscious aspects of electric vehicle ownership. I don't have to do anything new with my electric car - just park it and plug it in. The socket is right there, where I park my car - its a no-brainer. No more finding time to get to the gas station, or adding up those 4c per liter savings vouchers.

Don't get me wrong - its not that I don't think hydrogen has a future. It definitely has a future, especially in fleet and heavy vehicle usage.

But to get over the hump of clean vehicle adoption before we all choke on our collective soot, we can start with an easy curve to climb.

2010 will be the year when we see these new cars arrive in numbers sufficient to make a difference. Zero tail-pipe emissions is a really good difference to be able make, especially around our schools, our cities, and our local environment.

It will be exciting to finally have the chance to be part of that difference.

Thursday, June 18, 2009

The Answer Man

Photo by Elliot Moore http://www.flickr.com/photos/elliotmoore/
How do we save the world as it teeters on the brink of an energy crisis and a climate change catastrophe?

Many governments now are scrambling to put together a coherent set of answers: some sort of plan to address this question.

I recently read a slim volume by investigative journalist and author Edwin Black which steps up to provide such answers.

"The Plan" is nothing less than a no-holds-barred manifesto of energy security politics. It reads as a apocalypse survival plan, detailing week by week how western civilization might save themselves when the black gold stops flowing, and anarchy rules our streets.

From my perspective - not being a politician looking for a policy - the most eye-opening part of the book was the coverage of the fragility of oil supply. The book opens with this important background, before it gets into the survivalist stuff.

Oil has over a century ago stopped being a commodity - it no more follows supply and demand or any other market place rules than nuclear weaponry. Oil is a political issue.

Enter the IEA. This is an organization dedicated to protecting nations who join it from the impact of oil supply loss. Set up after the oil shocks of the 70's, the IEA member nations recognize that loss of even a fraction of supply would lead to an apocalypse - the signatories agree to help each other in the event of such a calamity by immediately executing a three-pronged action:
  • stockdraw - releasing strategic reserves
  • surge production - increase of supply from internal oil sources
  • demand restraint - reducing oil consumption
This material is compelling reading. It puts a lot of what I already knew about the Oil Shocks of the 1970's and later into chilling perspective.

But doesn't this sound like a plan?

It would if the first two items would address a tiny part of the impact of an oil shock. Even a drop in oil supply to the USA of 5% would trigger the stock draw - raiding the Strategic Petroleum Reserve. The month or so that the SPR would last is nowhere near enough time to enable demand restraint. Anything that had not been already prepared would be overwhelmed by chaos before it got off the drawing boards.

And surge production - the USA is already using and drying up its own oil wells. If the 5% drop is more widespread than just the USA then the chances of other countries being willing or able to surge supply enough to get the USA out of the fat-fire are near zero.

But the big flaw is demand restraint.

Demand restraint? Are you kidding?

If there's one thing that will get an American president shaking in his boots, its trying to get US citizens to restrain their gas guzzling ways. And a century of GM marketing teaching them that success is the same as a big car is going to take a long time to turn around.

New Zealand responded with great restraint during the Oil Shock times by instituting carless days.

USA has no plan and no ability to do anything like carless days, even though its obligations through its membership of the IEA decrees that it should.

But do we really have to worry about another oil shock?

Black shows why we should expect it as a virtual inevitability. He covers a range of threats from military, through economic, to pragmatic which will likely realize the substantial ruination of oil supply.

It won't take much.

After Hurricane Katrina hit the continental USA and took a number of refineries offline, the availability there dropped by 5% - this is the figure sufficient to trigger releases from the Strategic Petroleum Reserve.

A drop of 7% is enough to precipitate an international crisis, and trigger obligations under the IEA membership.

Losing 10% of oil supply in the USA is unthinkable: so "off the charts that we can't model it" according to one of Black's sources.

This is because the USA has already hit its Peak Oil - its been many decades since those cocky Texas oilmen were supplying anything more than a trickle of the black gold gushing into the USA's unquenchable gullet.

Around 60% of the oil used in the USA is imported. But what is more interesting is that due to Oil Market intricacies, while it would appear that most of that oil comes from friendly countries such as Canada - the true picture is that USA is far more exposed to the middle-eastern oil markets than raw import source percentages would suggest.

But even looking at raw figures, Saudi Arabia supplies over 10% of US oil.

This fact alone leaves the super-power critically vulnerable. Its why twice during his presidency as Black describes, George Bush went cap in hand to the Saudis asking for price breaks. The volatile nations of the middle-east have the the international oil market in the palm of their hand.

The remainder of The Plan presents a range of energy initiatives that would allow a shattered country to try to survive the impact of an oil apocalypse:
  • upfitting vehicles to CNG, and other alternative energy sources
  • using sugar cane and other sustainable ethanol programs
  • stopping corn ethanol production - it uses more petroleum products than it produces
  • hydrogen and electric vehicles
  • moving off oil fired heating
Of course Blacks point is that if the Plan is instituted now, instead of waiting for the disaster then maybe we can pull back from the precipice.

Hydrogen Update

This is an update on an earlier blog article about Edwin Blacks book "Internal Combustion: How Corporations and Governments Addicted the World to Oil and Derailed the Alternatives".

Mr Black responded to my offer of commentary - his comments are in red below.

Where as for hydrogen:
A 2008 report from the National Research Council estimated it would take $200 million from government and industry over the next 15 years to commercialize hydrogen fuel cell vehicles to the point they could be competitive with gas vehicles.(Reported by reuters)

These are just politicized numbers. Last year, I drove a GM hydrogen car that used water dispensed from a Shell station to create the fuel.

The problems of practical transport using hydrogen are well known - see this article in Popular Mechanics for an even handed analysis.

Hydrogen has its hands as dirty as oil, since it is traditionally made from natural gas, a fossil fuel. Companies mentioned by Black in his chapter on hydrogen, such as Linde, and Air Liquide are now leading members of the National Hydrogen Association, along with guess who: General Motors and Shell.

A common feedstock is not natural gas but pure water.

There are 3 main ways to make hydrogen--reform it from natural gas as some wish so they can use existing infrasture, electrolyze it from water like the Shell station in Santa Monica ( I favor), or use bacterial generation which still being perfected to yield higher amounts.

Hydrogen could be synthesized from your hat--it is in 99% of the universe.

Hydrogen futurists such as Dr Alan Lloyd were pivotal in killing off the California zero emissions mandate. The ZEV laws brought in by the California Air Resources Board to fight chronic smog had led to a huge flurry of electric vehicle activity in California. In the period where Lloyd was the Chairman of the California Air Resources Board and Secretary of the California EPA the electric vehicle innovation and recharge point infrastructure rollout was crushed literally, and replaced with a highly touted hydrogen program.

I know Lloyd. He was not a hydrogen futurist. The hydrogen fuel cell was invented in 1838.

Lloyd was also Chairman of the California Fuel Cell partnership. He vehemently denied that this was a conflict of interest.

Of course proponents of hydrogen with vested interests ranging from pet research to major investment, are ready with all sorts of arguments against the view that electric is superior to hydrogen for transport. Even if they're not all Lloyds with a cash register tune playing in their ears, their views are based on theory.

Remember Sarah--the hydrogen car is just an electric car with the electricity generated from as hydrogen reaction. Now you can generate electricity from a battery, from on-board hydrogen, or a squirrel in a cage--just the end product is all the same--electricity out of the fuel combination to run the wheels. Batteries are a dirty business. It is brown green, not green green. Water is clean. It only takes a zap of electricity to electrolyze it. In Vegas that is done with solar.

Electric Vehicle Update

In October the Australian Electric Vehicle Association has its first ever field day. Yours truly will be there and I plan to report on the event.

The guys from the AEVA have been building and driving electric vehicles, approved for driving on our roads now for decades.

I agree with Mr Black that hydrogen can be generated cleanly, and I hope some day soon that it will.

I believe that avoiding the Oil Apocalypse will take a broad ranging response - a response from all of us. And an effective robust response will involve a range of technologies.

We have to start now - and we can start with non-oil burning technologies that we have on our roads right now - and for me electric vehicles are the most exciting reality, but of course CNG and LPG will play a role, as will biodiesel.

I'm sure that the current success and innovation in electric vehicles will pave the way for a viable hydrogen powered car, since as Mr Black says, hydrogen is essentially another way to power an electric vehicle.

I look forward to seeing a hydrogen vehicle on our shores as soon as possible.

In the meantime, come and join me at the AEVA's electric vehicle open day!

Tuesday, June 9, 2009

Idiocracy

Courtesy http://au.rottentomatoes.com/m/idiocracy/pictures/I wonder what the Americans think of Senator Fielding.

I hope they don't think we're all like him: "Yuk, yuk - y'know, humans ain't the cause of Global Warming. Its the sun."

Trying to explain the fact that we cannot keep crapping all over the planet we live on is getting chillingly like something out of a bad horror movie.

Its like Secretary for the Interior Not Sure, played here by Luke Wilson, in Mike Judge's Idiocracy, who tried to explain that "Brawn-Do" soft drink was not suitable for watering plants.

In Judge's spoof movie vision of the idiotic future, the global corporations have irrigation systems pumping their soda pop resulting in an increased stock price, even though all crops have failed. And Secretary Not Sure has the balls to stand up and say "I think plants need water."

"What? You mean we have ta use water, like out of the toilet?"

Wilson's character tries hard to explain that you need to use water for watering, not soft drink.

In the end he resorts to saying that the plants talk to him and they say they want water.

So what are the smart guys saying right now?

What does the United Nations Intergovernmental Panel on Climate Change say?
  • "Warming of the climate system is unequivocal."
  • "Most of the observed increase in global average temperatures since the mid-20th century is very likely due to the observed increase in anthropogenic greenhouse gas concentrations."
Hundreds of scientists from over 100 different countries, working for 5 years to produce a single compelling report. These are the guys our governments asked to work this out and produce an answer.

Yuh, see - the problem is scientists say words like "likely".

I won't repeat what the yokels in Idiocracy have to say for this kind of scientific talk, but its not complimentary. Scientists deal in theories, hypotheses, and the scientific method - which allows for experiments to offer supporting evidence for those hypotheses.

But that doesn't sound like the kind of clear cut answer that Senator Fielding is looking for.

Lets look at the similarities between the climate change skeptics that Senator Fielding has been hob-nobbing with, and the tobacco lobby.

We now understand that cigarettes cause fatal diseases.

You know those kind of diseases? They're the ones that kill you.

Lung, throat and other cancers; cardiovascular and chronic obstructive pulmonary diseases, early aging and the list goes on.

Remember back last decade or so when the large tobacco companies were paying "researchers" and "think tanks"? These are the guys who amazingly enough came out with statements about smoking not being definitely linked to cancers, and filter cigarettes being milder.

Well, not so amazing really, when you realize that the "think tanks" were having their rent paid for them by the cigarette companies.

Big Tobacco sunk millions into fighting the public health initiatives that were being pushed through by doctors and government health agencies, to make the public aware of the dangers of these fatal products. There was even a movie about all this starring Russel Crowe - so it must be true.

Well, do you know what happened to those "think tanks" and "researchers" geared up to sew uncertainty and doubt about public health warnings against the dangerous products and activities of their corporate masters?

Guess what - they're still here, and still in business!

The Heartland Institute during the 90's received hundreds of thousands of dollars from Phillip Morris, a large tobacco company, to support its "think tank" activities drumming up "research" to counteract reports of the dangers of smoking. That's just the amounts that were documented in public records.

These days most of its funding comes from energy companies like ExxonMobil.

And guess what - its luxury gabfests for climate change skeptics including fully paid up conference stays at the Marriot Hotel in New York for politicians are more of the same tricks from their standard playbook.

And "conferences" like the one in Washington that Senator Fielding went to are just another weapon in their arsenal of Fear, Uncertainty and Doubt or FUD.

"The dangers of acting too soon...". "There is disagreement on the evidence...". "We're just not sure...". Not Sure?

But wait!

Even if the provenance of these "scientific" opinions has a cloud over it, isn't it important to look at all the opinions and evidence before the Australian Government makes up its mind on climate change policy?

Ought'nt they look at both sides?

No, no and no.

No, Senator Fielding, no they should not.

Solar flares are a red herring, and there are bound to be more fishy science to come from our friends at the think tanks.

We ought not stop and listen to the dross that you have recycled from the corporate flunkies of Exxon and other global polluters.

Not because opinions aren't important but because we have to listen to the scientists who were known to have been paid to assemble the authoritative report, the IPCC scientists who have nothing to gain, the hundreds of scientists from all over the world, who are desperately trying to save the world from the pollution being generated by the giant corporations paying to cover it up.

For just. One more. Quarterly. Profit. Report.

And another quarter.

And another after that.

The ExxonMobils are saying "We just have to run this FUD for one more year. And we rake in billions. Buy more 'scientists' - hold more 'think tanks' - just hold them off for another year!".

Each year, for billions in government incentives and subsidies, billions of dollars in profit.

Trillions of dollars worth of damage to the environment.

Oh, and just one thing - a question: do you know what the "environment" is? Here's a clue: we only have one of them. We live in it, and breathe its air. Our kids grow up in it, and play in it.

Its our world.

And "sustainability" - do you know what that is?

If you start telling your boss your Grandma died, whenever you want to get a day off work, is that sustainable?

Not sustainable means: You cannot keep doing this. Period.

That's what sustainable means, and that's what environment means.

You cannot keep spewing garbage and pollution into our air, and our water and expect to keep living here like we do.

There's been a century and change, of governments listening far too eagerly to anything these guys have to say.

We've heard all about how all that pollution pouring out of tailpipes everywhere, and those burning tire dumps, and Exxon Valdez oil slicks are not really harming the environment.

Its now really time to listen to the other side.

Step aside Senator Fielding.

Let's listen to the smart guys now.

Tuesday, May 26, 2009

Importing mail ssl cert into iPhone

Here is how I got a certificate from our courier imap mail server onto a new 3G iPhone.

If your mail server is using imap and has a self-signed certificate, then you'll need to do something like this, because the iPhone will not trust it otherwise.

This trick was done with on a Linux PC, but it should work on Windows or Mac if you know where to find your Thunderbird and Firefox settings directories. You don't need to have the PC plugged into the iPhone for this to work.

1) Download and install Thunderbird. Set it up to point at the imap mail server.

2) The connection failed in our case since our imap server only accepts SSL. Now click settings for the connection and change it to use SSL. The port number will change to 993.

3) Connect to imap from Thunderbird. It shows a dialog about a certificate - accept a permanent exception.

4) Fire up Thunderbirds certificate manager by clicking on preferences, and advanced, and certificates.

5) Confirm that you have the certificate stored by Thunderbird. Note that Thunderbird has no export facility, but Firefox does. For iPhone we want the certificate in .der format.

6) Close Thunderbird. Close any running instance of Firefox.

7) Save your current Firefox settings directory - on Linux this is the directory .mozilla - do this in a command prompt, in your home/settings directory:
mv .mozilla save-mozilla

8) Run firefox. It will start up in a freshly initialized state because you have moved your settings out of the way. This will cause it to create a fresh, disposable .mozilla data directory that you can do what you like with.

9) Close firefox.

10) Look under your .thunderbird and .mozilla directory for the certificate databases: in my case the files were in a directory .mozilla/xevjor02.default. Thunderbird had a similarly named directory.

11) Copy them from .thunderbird over the top of the ones in your fresh, disposable .mozilla directory (don't use your real one, now saved in save-mozilla) by typing this in a command prompt:
cp ~/.thunderbird/xevjor02.default/*.db .mozilla/firefox/qo6x6lxa.default/.

12) Launch firefox. Run the certificate manager by preferences -> advanced -> certificates.

13) Confirm that the certificate you accepted in thunderbird is now visible in firefox's more full-featured certificate manager.

14) Use the firefox cert managers export feature to save the imap ssl cert as a file "my-server.der" on your desktop. Close firefox. Restore your profile directory, by doing this in command prompt:
mv save-mozilla .mozilla
15) Create an email to an account that you can already read on the iphone, such as your gmail account. Attach the cert to the email and send it.

16) On the iphone, read the email and tap the certificate attached.

17) Accept the install certificate prompts.

18) Reboot the iPhone.

19) The iphone mail program should now connect to the imap ssl server using that certificate.

Win!!

Tuesday, May 12, 2009

Who Killed the Electric Tram


Yesterday I finished reading Edwin Black's book "Internal Combustion: How Corporations and Governments Addicted the World to Oil, and Derailed the Alternatives".

The material in Black's book ought to be a part of the history curriculum of every high-school student in the West, since as we know, those who cannot learn from the lessons of history are doomed to repeat them.

And this is stuff everyone should know.

Doomed is the right word.

Everyone should know how GM was convicted in 1949, along with its co-conspirators Firestone Tire & Rubber, Standard Oil, Pacific City Lines, and National City Lines of a conspiracy to monopolize the transit business for their own oil, tires and buses.

GM was the leader of the conspiracy, setting up the companies National City Lines & Pacific City Lines as a front through which to funnel their acquisitions of electrified transit systems.

The words conspiracy and monopoly have legal meanings here.  While they are emotive for us as members of the public, and have meanings that conjure all sorts of images, remember that these corporations were convicted on charges framed in these very terms.

If you want lurid, you only have to look on in the book to the involvement of gangster Kid Cann, and BM Larrick, of National City Lines in the destruction of the streetcars in Minneapolis and St Paul, where these men and their cronies resorted to shunting cars onto sidings and torching them to speed up the "conversion" process: 

Then that last trolley that had brought so many people so many places for so many years was gleefull ignited by Osanna himself.  The prone, burning streetcar, embodying the long crusade against electric traction, quickly exploded into sky-reaching flames.  Dressed in spats, Ossanna smiled for the cameras as the immolation rose behind him.

In my review of the book I mention that Black's main achievement here is a throroughly researched journalistic survey of a century of corporate malfeasance and dirty dealings around energy and transit.

The take away lesson which we must not forget is that corporations cannot be trusted to do the right thing by the people.

This might seem obvious to many.  But the outgoing President of the USA and many others still in power believe in the free market, and entrepreneurial spirit as the only way forward.

Emissions trading schemes, tax incentives, research grants and a plethora of government handouts have supported this idea that private enterprise will do the right thing given the chance.  See my previous article on the failure of such schemes as a complete solution for this reason.

Reading this book will demonstrate why we are doomed if we believe this, that is if we fail to learn from the lessons of the last century.

A good product will fail in the face of a bad product peddled by monopolists, price-fixers, and corporate raiders.  The idea that a good product at a fair price will win out is flawed when the playing field is not just out of level but precipitously pitched in favour of ratbag corporations, and the categorically ruthless money men that run them.

Clean and sustainable solutions will be forgone for dirty, short term solutions where the true costs are not paid by the profiteers.  As Black points out this has happened over and over again in history.  And it is happening now, even as people die in Katrina style climactic events.

Where I part ways with Black is over his proponency of hydrogen as a solution.  Hydrogen is an interesting research area, however it has never been used as a large scale motive force in transit.

Electricity has.

Electric motors and batteries have been quietly in service in cars, trucks, buses and rail systems throughout the last century.  Black describes in the chapter "Derailed" how the innovative Olympian train hauled over the scenic Milwaukee Road using regenerative braking to economize on electric power.  It did this in the era of World War One.  If it hadn't been for the efforts of various corporate crooks electric transit would have been far more prevalent today.

Whatever your view of electric cars, they are here now, on the road, working as a real solution today.  From the exotic Tesla, through the workaday Th!nk these modern electric marvels are not on a drawing board somewhere, they are proven working vehicles.

Where as for hydrogen:
A 2008 report from the National Research Council estimated it would take $200 million from government and industry over the next 15 years to commercialize hydrogen fuel cell vehicles to the point they could be competitive with gas vehicles.
(Reported by reuters)

The problems of practical transport using hydrogen are well known - see this article in Popular Mechanics for an even handed analysis.

Hydrogen has its hands as dirty as oil, since it is traditionally made from natural gas, a fossil fuel.  Companies mentioned by Black in his chapter on hydrogen, such as Linde, and Air Liquide are now leading members of the National Hydrogen Association, along with guess who: General Motors and Shell.

Hydrogen futurists such as Dr Alan Lloyd were pivotal in killing off the California zero emissions mandate.  The ZEV laws brought in by the California Air Resources Board to fight chronic smog had led to a huge flurry of electric vehicle activity in California.  In the period where Lloyd was the Chairman of the California Air Resources Board and Secretary of the California EPA the electric vehicle innovation and recharge point infrastructure rollout was crushed literally, and replaced with a highly touted hydrogen program.

Lloyd was also Chairman of the California Fuel Cell partnership.  He vehemently denied that this was a conflict of interest.

Of course proponents of hydrogen with vested interests ranging from pet research to major investment, are ready with all sorts of arguments against the view that electric is superior to hydrogen for transport.  Even if they're not all Lloyds with a cash register tune playing in their ears, their views are based on theory.

Electric cars are - I say it again - here now.  Working, on our streets.

But today (the 12th of May 2009) newspapers are reporting the Obama administration's slashing of funding for hydrogen initiatives in favour of battery research and other initiatives.

We know that Obama has had a concerted campaign to throw out from Washington the vested interests, the lobbyists and the revolving door politico-corporate types.  In their place he has filled his administration with scientists and innovators.

The result: electric cars the reality is chosen over a solution that is still on a drawing board 10 years away.

Thursday, April 23, 2009

Make your own glass RPG map top


I'm about to start a new D&D campaign.  I wanted to be prepared, and have a good solution to one of the problems of running the game: how to represent the game map.

Here are some of the issues I wanted to resolve:
  • work with pre-printed D&D maps
  • work with pre-printed D&D dungeon tiles
  • prevent tiles and maps from moving around and becoming misaligned
  • stop spills, snack related damage and enthusiastic play from damaging maps and tiles
  • mark up map details over those pre-printed items without damage
  • have a grid available for impromptu free-form maps and buildings
  • be able to "game off the edge" when tiles or maps run out
I had thought of laminating the maps, but the tiles don't suit that approach at all.

Glass seemed like a great idea, after seeing a friends glass kitchen table top with a map of the world underneath it.

But I knew the glass would need to be small enough to easily lift with one hand, and slide maps and tiles in and out during gaming.

Spec point one:  glass 800mm x 600mm or 24" x 32" in size.  

This is a good manageable size.  The glass should be 5mm thick float glass, with a beveled edge.

The bevel makes the edges of the glass a bit stronger and less likely to damage fingers and hands whilst in use.  If in doubt ask the glass supplier for "furniture glass", or "glass suitable for a coffee table top".

Such a bit of glass is likely to set you back $70AUD (around $50US at the time of writing) but you might be lucky and get an off-cut if you visit the factory.

The other issue was how to "game off the edge" - a standard D&D 1 x 1 inch grid was needed on the glass to extend over the whole surface of the glass.

I researched a number of ways to mark up the glass.  

Glass-workers use diamond and other hardened tools to cut fine scratches into glass, but the glass is weakened and much more likely to break.  In fact this is the idea of most of these tools.

Glass companies offer a range of decorative glass and can print a design onto the glass.  Also there are various types of printed film.  Most of these options looked far too expensive.


Spec point two: Sakura Solid Paint markers, ordered from Graffonline.  

I got two, just because the minimum for delivery was $10, all up it was $18AUD for two markers delivered and they turned up a few days later.

The markers are like a soft crayon made of paint: they make an instant line, and don't dry out like felt tips.  

One problem I hadn't anticipated is that the marker paint gets on the straight edge.

Apparently it can be easily removed with the alcohol based cleaner.

Like a crayon the line is hard to control, but I wasn't too worried about that for my first go-around.  I have plenty of marker left, so I plan to clean off the glass and do it over sometime with a practiced hand and a bit more time to spend.

I'm pretty happy with the results (top picture) even tho' the lines are pretty rough.  The painted lines are durable and dry enough after only 20 minutes that I can put the glass lines-side-down without the paint coming off. 

Marking up the glass with dry erase (whiteboard) markers is easy - that's the "house" that the miniatures in the bottom-right hand corner of the picture are in.  The dry-erase markers wipe off clean from the glass.

Since the paint is on the underside of the glass, marking and erasing does not affect the painted grid.

I think I hit most of my requirements, but I'll post back here with how it goes in the front line duty of my campaign.