Categories
General

Did Realpolitik win?

Thinking of what’s happening in the middle east, with Israel’s entaglement with Hizbullah and the entire mess in Iraq, one has to think back to Kissinger and Bismark and whether idealism failed.

The current American policy is absolutely on the side of right: promote democracy around the world, reduce reliance on regimes that are dictatorial and tyranical. In that vein, overthrowing Saddam and pushing the Syrians out of Lebanon were great successes. Then you have to think, not without cynicism, about whether a country is *ready* for democracy.

A great article in the Wall Street Journal adovcated the return of Syria into Lebanon; apologize to the Assad regime, and given his severing his relations with Iran, make Lebanon a Syrian protectorate. Syria has nothing of the issues democratic regimes have dealing with Muslim extremists; Syria has no problem reversing course either, lacking any opposition. Syria ran Lebanon and did a decent job, relatively, helping the country regain economical stability. If they agree to kick Hizbullah out, all the more better.

As for Iraq – was Saddam *really* that bad? was it really that bad to have a counterweight as vicious and evil for Iran? Saddam definitely treated his citizens in the harshest of ways. Still, Kissinger and McNamara would have followed the rationale that for the US, for the West, it is better to sacrifice the people of Iraq for the interests of the West.  Looking at Iraq today – are the people better now than 15 years ago?

Share
Categories
Web Development

Preventing iFrame Jump on Refresh

Situation:
An iFrame in the body of a page. A link on the page changes the location, i.e. reloads the iFrame.

Problem:
Whenever the iFrame reloads, the page jumps to the top.

Solution:
Give the iFrame the following code:
In the head portion add a JavaScript function that sets the parent window's scrollTo position to the Y position on the page you wish the page to be in after the iframe loads (e.g. 0,0) if you want it to reload to the top. Then, set the iFrame's body element's onload attribute to call this positioning function.

If WordPress’ new annoying editor worked well, I could have posted the code but apparently I am too stupid to work it out. Plain HTML did not work…

Share
Categories
Computing Web Development

Audio sync issue in Flash

So I am working with Flash 8 at present. I am billable and that counts.
The project involves embedding video and audio clips in the Flash movies we are creating. Once published (compiled, for those who feel bette about that term) – the movies that just had an audio soundtrack exhibited a weird behavior: when you preview the movie in Flash player, the audio would sync just fine with the animation, but when viewing the movies in a browser, the synchronization would be off by seconds, even in 10 second-long movies.
The solution appears in this post on the Macromedia Flash forums.
The audio track must be on its own layer (duh) and the layer should be selected. Open the properties area (if you do not have it showing by default) and in the area where it says ‘Sound’, select the audio you just laid inside of the movie. Then, select ‘Stream’ from the Sync choices, and voila, it’ll sync just fine.

Share
Share