Vistered Little revisited

Posted on February 10th, 2007 by Reiner.
Categories: English, Computers.

After having added some wallpapers to Vistered Little, I learnt that they will all be downloaded, regardless whether they are actually shown or not. That sums up quite a bit… The reason is, that the background selection does not display real thumbnails, but just tiny squares taken from the center of the wallpaper images instead.

That was easy - I thought. Thus I modified Vistered Little so that the menu would fetch its images from a separate directory (wallpapers/thumbs) and then prepared real tiny thumbnails (20×20 px). All and everything appeared to be great, even my Nokia E61 now showed the site without a glitch (it used to choke on the multi megabytes before), but… IE 6 would no longer refresh its background on a selection change :-(

The problem only occurs with Internet Explorer 6. IE 7 is ok, as is Firefox. I’m currently working on this bug… In the meantime, press F5 to refresh.

It appears as though programming real world browsers is a preview of living hell. IE 6 completely refuses to load images when requested by setting document.style.background, but happilly displays them if - by chance -  they have been loaded at least once before. Changing the background image within the onload event of an Image object did not work with Firefox 1.5, but works as advertised with both IE 6 & 7.

So here’s a code snippet that appears to work for FireFox (1.5), IE (6&7) and the Nokia E61 alike - the background is set both, immediately and within the onload event, if required :-)

function setBackgroundWP(bgNumber,bgUrl) {
  var im = new Image();
  im.bgSty = "url('" + bgUrl + "') top center fixed";
  im.setBackgroundWPOnLoad = function() {
    if (document.body.style.background != this.bgSty) {
      document.body.style.background = this.bgSty;
    };
  };
  im.onload = im.setBackgroundWPOnLoad;
  im.src = bgUrl;
  document.body.style.background = im.bgSty;
  createCookie('wpcookie',bgNumber,7);
}

Disabling JavaScript reveals a tiny bug within Vistered Little: The initial background style refers to the wrong directory within functions.php.spitOutWallpaperCSS() :

// nono print "/images/" . $wallpaper . "') top center fixed; }n";
print "/wallpapers/" . $wallpaper . "') top center fixed; }n";

0 comments.

Editieren in WordPress 2.1 - Versteckte Schätze

Posted on February 8th, 2007 by Reiner.
Categories: Deutsch, Computers.

tinymce-advanced_toolbar_2.gif

Wie kann ich Text aus der Zwischenablage ohne Formatierung einfügen? Wie kann ich eine Formatierung löschen? Dies und noch mehr ist gut im Advanced Toolbar des Editors versteckt, der sich mit <Alt>+v oder <Alt>+<Umsch>+v (je nach Browser) ein- und auschalten lässt.

Gefunden bei WordPress 2.1 - More Editor Options.

0 comments.

New Theme: Vistered Little is Great

Posted on February 6th, 2007 by Reiner.
Categories: English, Computers.

I always wanted to have it, because it’s just hilarious: Vistered Little.

It appears to work properly with WP 2.1 and even with WP-Cache 2.1, as far as my requirements are concerned.

Points to keep in mind:

  1. Switching backgrounds requires JavaScript
  2. There’s a tiny ommision within the file vistered-little-1/index.php, which prevents the footer to display properly, only if your web server’s scripting default is not set to PHP.  Look for “<?” at “<?php } else { ?><p class=”footertext”>” and change it to “<?php”, so that your web server knows precisely, which script processor should be called.
  3. I didn’t find any admin link, so just navigate to <your blog url>/wp-admin

Many Thanks to Ricardo Galli for creating the most-wanted WordPress theme in the world!

0 comments.

Problems with WordPress 2.1 and IIS and TinyMCE

Posted on February 5th, 2007 by Reiner.
Categories: English, at other Locations, Computers.

After upgrading to WordPress 2.1 strange things cropped up: Editing posts was unacceptably slow (after 2 minutes browser still showing xx left), icons were missing from the visual editor, and other weirdnesses made it virtually impossible to create or revise posts.

It took some time to identify the cause: With WP 2.1 running under Microsoft Internet Information Server (IIS) ISAPI, TinyMCE tries to access the webserver using https seemingly at random :-( This is caused by tiny_mce_config.php trying to determine whether the original request used https in a way that does not work with IIS and ISAPI. (more…)

0 comments.

Upgraded to WordPress 2.1 and WP-Cache 2.1

Posted on February 4th, 2007 by Reiner.
Categories: English, at Home.

The upgrade was quite painless but still took me 2 houres to complete, because (more…)

0 comments.

Sylvester 2006 bei Hahns

Posted on January 1st, 2007 by Reiner.
Categories: Deutsch, Uncategorized.

Sylvester 2006 bei HahnsEva und Axel haben Stefan und mich zu sich eingeladen, um in ländlicher Abgeschiedenheit und begleitet mit einer erlesenen Speisenfolge und einer Auswahl hervorragender Weine mit Ihnen den Sylvesterabend zu verbringen. Nochmals Danke für die stresslose Zeit! Hier geht’s zu den unredigierten Bildern.

0 comments.

Keine Gebühren auf internetfähige PCs

Posted on December 29th, 2006 by Reiner.
Categories: Deutsch, Computers.

http://www.gebuehrenstop.de/

0 comments.

Schwitzen Sie noch oder Transformern Sie schon?

Posted on December 17th, 2006 by Reiner.
Categories: Deutsch, Uncategorized.

Hpim1454.jpgAlt, dick und hässlich, und das trotz Fitness-Studio :-( Faule Schweine wie ich brauchen sich jetzt nicht mehr selber zu bewegen, fern-gesteuert vom Trainer kommt man in einer halben Stunde so richtig ins Schwitzen.

(more…)

0 comments.

Privat kopieren ist kein Verbrechen!

Posted on October 8th, 2006 by Reiner.
Categories: Deutsch, ThisNThat.

http://www.campact.de/privkop/home

0 comments.

Nokia E60 / E61 / E70 - kein WLAN ohne SIM?

Posted on September 9th, 2006 by Reiner.
Categories: Deutsch, at Home.

Thomas, ein Bekannter berichtete von Problemen, mit seinem neuen E60 über VoIP zu telefonieren. Wenn er die SIM-Karte aus dem E60 herausnimmt, kann er keine Verbindung mehr zu seinem WLAN herstellen. Hat da sein Handy-Provider etwa seine Finger im Spiel? (more…)

2 comments.