Aleksandar • Vacić

iOS bits and pieces

Best.Game.Ever.

After six years…

Age of Kings / Conquerors

…I’m enjoying it 100%.

The Bourne Supremacy

This is one of the best action movies I have ever seen in my life. The Bourne Identity was great, but this one is even better. Pure action, no small talk, no kiddin' around. Great attention to details, characters speak their own languages. And a hellishly good story. Perfect fast-paced movie that keeps you on the edge of your seat.

The Bourne Supremacy

Camera moves are sometimes too quick and it’s hard to grasp the sequence, but it only serves to put you more into the seat next to the characters. The Moscow high-pursuit scene is so fucking good that Matrix Reloaded highway scene looks like Need for Speed intro or something like that…So damn realistic. The primary high-point of the Bourne movies - effects serve the story, not the other way around. One does not even notice the effects here, unless reminded about them.

Can’t wait the next one. There must be more - these two parts are so good that they kick ass to all James Bond, Jack Ryan and Etan Hunt combined. Come on, let there be another movie like this.

Embeding Flash in web page

Even though I tend to avoid Flash, I sometimes have to use it, usually because clients wants it to spice up the web. Thus over time I tried many different ways that would not make the page invalid but all had a flaw or two.

I first used Flash Satay which worked pretty good for me, even though people reported strange cases when it did not work in certain Win ver / IE ver situations. And then it hit me with my friend who had Win98SE, IE 5.5 and Flash 7 installed. For no apparent reason, his install (he actually reinstalled because of this) never detected the Flash and always downloaded ActiveX to install. Always. When using embed, it worked. But Flash Satay method did not work. The Twilight Zone moment came when I made the same install he did and it worked there, but still not for him.

Thus I looked further and found Ian Hickson’s example. His code example worked for my friend as well as in any other test case I tried. Ian’s example had one minor problem - it Flash was not available, it did not show the alternate content in IE.

Backslashes gone

The WP bug that waxed me so much in the past months is finally gone. At least here. Wherever I had " (double-quote) inside of pre tag, it would be outputted as \" - always prefixed with backslash.

Tonight I dug in into WP core and found that the problematic part is line 76 in file wp-includes/functions-formating.php. When you remove that line, all is displaying nice.

$pee = preg_replace('!(</pre><pre .*?>)(.*?)</pre>!ise',

" stripslashes('$1') .  clean_pre('$2')  . '' ", $pee);

Since wpautop function is not really required in my case (I write entire HTML for my posts), I instead opted to comment out this filter - it’s line 64 in wp-includes/default-filters.php:

// add_filter('the_content', 'wpautop');