Categories
Climate Change Weather

Floods. Again.

Recovered from the Wayback Machine.

Ike continues to rain destruction down in its path. It’s good to hear the storm surges weren’t as bad along the Gulf, but they were bad enough. Hopefully, though, loss of life will be minimal.

Ike just passed through the St. Louis area with both wind and rain. A lot of rain that combined with the remnants of Lowell from the Pacific. Sad as it is to say, we’re again looking at major flooding along the Meramec, Missouri, and Mississippi rivers.

This will be our third major flooding event in six months.

Categories
Browsers HTML5

OMG! Web Developer has to wait! The Horror!

Where I focused on Ian Hickson’s statement about extensibility, every other person, and their brothers, sisters, and aunts are throwing a hissy because of the HTML5 timeline.

Scott Gilbertson writes:

Even if your 2022 ronc-o-matic web-enabled toaster (It slices! It dices! It browses! It arouses!) does ship with Firefox v22.3, will HTML still be the dominant language of web? Given that no one can really answer that question, does it make sense to propose a standard so far in the future?

Jeff Croft writes:

I’m not saying the specs should go away. They absolute serve a purpose. I’m just saying that I personally am done paying much attention to them. Instead, I’m reading blogs like Surfin’ Safari and Mozilla Developer News to find out what the new shiny is in browsers, because these are the things I can actually take advantage of in serving my clients and users.

 

And?

So?

Specification work was never focused on the end users, it’s focused at the user agents or others who have to implement the specifications. The Mozillas, Apples, Operas, Microsoft, et al. The only reason I pay attention to any of it is because of my concern about extensibility.

In the meantime, the new stuff that is HTML5 is leaking into browsers now, not years from now. That’s part of the specification process—actual implementation on the street in order to “proof the spec”, as it were. And pieces of HTML5 are not just showing up in Firefox, Opera, and Safari/WebKit— IE8 has a few HTML5 tricks up its sleeve.

Heck, HTML5 isn’t the only longish spec under development. CSS 2 started in 1998, the lost call for CSS 2.1 was in 2002, the candidate recommendation was in 2007, and Microsoft is only now providing CSS 2.1 support. That’s ten years, end to end.

In the meantime, I’m using CSS3 stuff that’s only supported by a couple of browsers, and the final release of all the CSS3 bits is probably years out, too. Of course, I only play around with my own spaces—professional web designers and developers know that we can’t necessarily use the shiny new stuff for client applications, because we’re still having to support browsers that are seven years old.

Hey! We’re still supporting browsers almost as old as the timeline when HTML5 will be finalized! I guess things aren’t as “today” and “now” as we think they are.

The point is, specifications take time, or at least, good specifications typically take time. Any doofus can toss a quick spec out and call it done, but who wants to use the doofus spec?

That schedule part of what Ian had to say didn’t phase me. As far as I’m concerned, the group can take as long as it needs. In the meantime, I’ll play around with the local storage, and some of the other odds and ends, as I keep putting in my annoying “But what about SVG?” “But what about RDF?” oar; probably helping to slow the development of the spec, even more.

Categories
Technology Web

Opacity returns to IE8

Recovered from the Wayback Machine.

When IE8 beta 1 released, there was a minor uproar at the fact that Microsoft had dropped support for its proprietary version of opacity, while not providing support for the newer CSS-based opacity.

Gone were the days when the following CSS setting would change the opacity of an element in all of the major browsers:

#somediv 
{
  opacity: 0.0; filter: alpha(opacity=0);
}

If you wanted to get opacity to work with IE8, either you’d have to have your users turn on the IE7 compatibility mode, or you’d have to add a meta tag to your web page:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Yesterday, Microsoft released a post on the IEBlog that had both good and bad news. The good news was that opacity was back. The bad news was that setting opacity in such a way that IE8 would process it as IE8 is now more complicated than ever.

It seems that the reason Microsoft pulled the old filter syntax is because the format was not CSS 2.1 compatible. However, according to comments in the post, Microsoft couldn’t just transfer the opacity functionality over to the CSS approach, because the behavior between the two, CSS and Microsoft filter behavior, differs.

Due to the gently incessant requests (!?) of web developers, Microsoft has added back in the opacity filter. However, the company is using the naming convention standardized for browser based CSS extensions, which means it still meets the CSS 2.1 requirements. Where the old, formalized, filter setting looked like the following:

filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0)

Which had illegal characters, including the equal sign, Microsoft now has the following:

-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";

Notice the use of the “-ms-” prefix on the filter, and the use of quotes to enclose the setting, and hide the illegal characters.

Of course, for the opacity setting to work with both IE7 and IE8, we have to use both. According to Microsoft, we have to list the new extension format first, and then older setting. This in addition to the CSS opacity setting:

-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;

I created a simple example to demonstrate how opacity would work, honoring both formats. It includes setting opacity with JavaScript, and works with Firefox, Safari, Opera, IE8, and as tested with IE7 compatibility mode. Click the image several times to hide one image, and expose another.

theobj.style.filter='progid:DXImageTransform.Microsoft.Alpha(Opacity=' + opacity + ')';
theobj.style.opacity=value;

The challenge isn’t over yet, though. The images in the first test are JPEGs, but I also tried the example with PNGs with alpha transparency. Unfortunately, IE8 beta 2 supports opacity, but if opacity settings are applied to an image or element containing an image, and the image is a PNG that incorporates alpha transparency, the transparent effect is lost when the opacity is changed.

In older versions of IE, PNG alpha transparency was set with the AlphaImageLoader, like the following:

#div1 img {
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=fig0902.png,
sizingMethod='scale');
}

In IE8, which normally would support the PNG transparency, when the opacity filter is changed, the alpha transparency is lost. To compensate, when the containing element’s opacity is changed, the image’s alpha transparency also has to be set in script, as demonstrated in a second example:

document.getElementById("img1").style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=fig0902.png,sizingMethod='scale')";

Since the alpha transparency in PNGs is supported with IE8 (and IE7), the CSS setting doesn’t seem to need the new Microsoft extension naming. However, unless the image’s alpha transparency setting is “reset” after changing the opacity, the transparency is lost when the application is run as IE8, as you can see from a third example. Oddly enough, the problem with the alpha transparency on the PNGs doesn’t happen in IE7 compatibility mode. The only thing I can think is more than the name has changed with IE8’s opacity implementation.

Of course, if you use the EmulateIE7 meta tag, you don’t have to muck around with the new opacity extension, or resetting the PNG filter, but you also don’t get the other CSS 2.1 standard settings from IE8.

Categories
Environment Weather

Tales of Ike, and lessons about offshore drilling

We know that Hurricane Ike is going to be the worst when the National Weather Service issues warnings about getting out or face certain death. The winds are a problem, but the real issue is storm surge, and it looks to be unstoppable.

We, in Missouri, are now under a flood watch, because we’ll be finishing with the remnants of Lowell from the Pacific, just as we begin to get hit with Ike from the Gulf. Still, the risk we face is minimal, nothing, compared to what Texans are facing, and Cuba and Haiti have faced earlier.

The oil platforms along the Texas coast have been abandoned, and the refineries closed down. Congress has also had to close so the representatives from Texas and other Gulf states could head home to help. This before the debate on the new “plan” to allow off shore oil drilling.

In the midst of the sadness and despair of the damage this storm has brought, and will continue to bring, we’re faced with the ultimate irony of discontinuing the debate on allowing drilling for oil along the Atlantic coast, because we’re in the middle of a hurricane that has closed down oil drilling along the Gulf coast.

Political irony aside, I hope that the storm surge is not as high, the winds lighter, the walls are stronger, the rain gentle rather than driving. And a reminder that the Red Cross needs volunteers, blood, and money, and not just in Dallas. If you want to help the Haitians and Cubans, the Catholic Relief Services is providing help for both. Unfortunately, that’s all we can do to help Cuba.


I just got a call from my roommate that gas prices are shooting up at least a dollar per gallon this afternoon, and they’re already over $5.00 a gallon across the River from us.

Categories
Political

The political story this week

As of September 12:

  • New heights of stupidity: Glenn Greenwalk maps out the route a ridiculous accusation takes, from propaganda to major media.
  • Election will impact Supreme Court: Buffalo News Op-Ed on choosing the next member of the Supreme Court, and the impact this will have on the land.
  • Canadian Elections 101: A nice introduction to the Canadian election system.
  • Jon Stewart, funny as always, with his version of “Then and Now”.
  • Joe Klein, at Time’s Swampland, has vowed to only cover issues. He begins with a look at McCain’s Health Care Tax Increase, and follows it up with a good look at general tax plans, between both McCain and Obama.
  • The McCain interview. Scary.
  • Video: Republicans and military men on John McCain. Well done video. Very scary message. “He will make Cheney look like Ghandi.”
  • James Fallows on the Palin interview. ‘What Sarah Palin revealed is that she has not been interested enough in world affairs to become minimally conversant with the issues. Many people in our great land might have difficulty defining the “Bush Doctrine” exactly. But not to recognize the name, as obviously was the case for Palin, indicates not a failure of last-minute cramming but a lack of attention to any foreign-policy discussion whatsoever in the last seven years.’

    Actually, no interest in politics, either, because the Bush Doctrine was a point of contention during the Democratic candidate debates, and Obama has referenced it several times when discussing McCain.

    It’s as if Palin has lived in a vacuum for most of her life, where the world consists of Alaska, and “other”.


Senator McCain runs head first into women who aren’t buying his line. Way to go, ladies. However, the event softballed towards the end when Cindy McCain joined the group.


Last update: From last Palin interview: Palin earmarks are “good” earmarks; Obama earmarks are “bad” earmarks. Good, I’m glad that was cleared up for me. I was confused before, and thought earmarks are earmarks.