Quick, write some comments

by Volker Weber

My mailbox is currently being flooded with three spam messages per minute. I desperately need some ham. :-)

And since we are at it, thank you Bill for putting a computer without security on everybody's desk. It has been a great help for building botnets.

Comments

... your wish is my command ;) just for the "ham" of it. -- And BTW, in a few weeks you can find me "just around the corner", geographically speaking.

regards, Nils

Nils Heeren, 2007-05-23 02:11

Well, it's a good thing I don't keep kosher, otherwise I couldn't participate.

That's a good opportunity to make you aware of a small problem with the poll on your site:

After voting, the results show up with a nice fade-in effect. Unfortunately, they do so every time I load vowe.net time, making it almost impossible to scroll until the effect is complete (G4@1,33GHz).

It's a minor issue, but it actually made me stop voting. It would be better to show the results immediately on subsequent views.

...your wish is my "comment", too :-)))))

poll-related: und ohne js geht da gar nichts ...

@Nils: that’s because the poll is built with Javascript. @Timo: you need a faster machine :o)

Ben, I'm with Timo - I'm still with G4@1,33GHz and scrolling indeed is impossible.

However, I finally have found a good cause to buy a new Mac. No, it's not Leopard, it's all about Hunting Kerrigan. 8-)

A propos "ham" ... just had some Nasi Goreng.

Aahh, Nasi Goreng; delicious! Add a bit of atjar tjampoer, some pisang goreng and a dollop of ketjap manis, and I'll join you.

(I do hope Volker doesn't mind this bit o' spam too much)

Rhabarber, Rhabarber, Rhabarber ...

Wie wärs mit Nudelsalat?

Luis Folch, 2007-05-23 15:28

your ham sir. hehe.

is that noodle salad? or something more interesting? ;-)

he he

.::AleX::.

Re: fade-in effect
No problem here with a G4@876MHz (and 896MB RAM). The fading takes about half a second.

Thomas Griesbaum, 2007-05-24 02:33

Rhabarberbarbara

(for our English fellows: Rhabarber = rhubarb)

Good find, Philipp! *LOL*

For our english speaking friends: In theater or film industry if you want to simulate the sound of a large crowd you mumble "Rhabarber, Rhabarber, Rhabarber ..." all the time. I don't know the the equivalent in English.

LOL! Bizarrely, you do the same thing in the UK. Mumbling “rhubarb, rhubarb” is also used to indicate displeasure at what a public speaker is saying.

@Thomas: Try that again with a few heavy apps running in the background and roughly a dozen other web sites open.

I've just had a look at the source and found the cause: The JS function setTimeout is called with a timeout of 1. This is stupid because the resolution of this argument is milliseconds. This means that the animation runs with 1000 frames per second.

For smooth animation, you only need about 25 frames per second. So the argument to setTimeout should be 40 (1000ms/25frames). If you want to control the animation speed, do not tweak the argument to setTimeout.

Sorry, couldn't resist to fix that:

var renderSpeed = 5; // smaller is faster
var pollScrollSpeed = 1000 / 25; // render with 25 frames per second

function slideVotes(pollId,currentPercent) {
    currentPercent = Math.min(100, currentPercent/1 + renderSpeed);
    for(var prop in pollVotes[pollId]){
        var targetPercent = pollVotes[pollId][prop];
        var renderPercent = Math.min(targetPercent, currentPercent);
        if (renderPercent <= targetPercent) {
            var obj = document.getElementById('result_voteTxt' + prop);
            obj.innerHTML = renderPercent + '%';
            obj.style.width = Math.round(renderPercent/100*graphMaxWidth) + 'px';
        }
    }
    if(currentPercent < 100) {
        setTimeout('slideVotes("' + pollId + '","' + currentPercent + '")',pollScrollSpeed);
    }
}

Post a comment











Shall I remember this for you?




Use your full name and a working email address. Unless you want your comment to be removed. No kidding.



Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Frequently asked questions

Twitter Updates

More >

Poll

Which BlackBerry could be your next one?

Getting poll results. Please wait...

Local time is 12:16

visitors.gif
135 visitors online

News

Other sources of news, imported into my own format to make them more accessible:

Heise Online
Schlagzeilen
Weather

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Got the T-shirt?

Got the T-shirt?
Are you buying from the US?

Systems Architecture

This site runs on an Apache web server on top of the Linux operating system. The content is managed with MovableType which is implemented in Perl. Last but not least the HTML code your browser sees is put together with PHP.

© 1992-2008 Volker Weber.
All Rights Reserved.

Impressum