Monthly Archives: August 2010

The state of WP YouTube Lyte (now with fresh Pomplamoose)

Although it has been a few months since I last wrote about my baby WordPress plugin, time did not stand still between version 0.3.0 and 0.5.2; the player size can now be changed in the options-screen, I’ve replaced my newTube html5-hack with Google’s official (yet experimental) new html5-compatible embed code and I started migrating the CSS from the mess that had become the JavaScript-file. And I almost forgot what may be the most important change; I started searching for blogs that use WP-YouTube-Lyte to see how it behaves in the wild. Some of the bugs I discovered that way;

But with all those changes you might start to wonder if WP-YouTube-Lyte still reduces download size & rendering time substantially, no? So I ran a couple of new tests for this page on my blog (it has 3 embedded YouTube’s) on webpagetest.org (settings: 5 runs on IE7 via Amsterdam, excluding requests to stats.wordpress.com). The difference is … well, judge for yourself (or see below the tables for the summary)

With normal Flash-based embeds (full results here):

Document CompleteFully Loaded
Load TimeFirst ByteStart RenderTimeRequestsBytes InTimeRequestsBytes In
First View1.850s0.634s1.330s1.850s15343 KB5.350s22524 KB
Repeat View1.142s0.346s0.497s1.142s517 KB2.455s517 KB

And with WP YouTube Lyte (full results here):

Document CompleteFully Loaded
Load TimeFirst ByteStart RenderTimeRequestsBytes InTimeRequestsBytes In
First View1.201s0.355s0.974s1.201s1055 KB2.065s20103 KB
Repeat View0.605s0.352s0.473s0.605s212 KB1.447s514 KB

Did you see that? Less requests, less data and faster rendering for first and repeat views. Hurray for WP-YouTube-Lyte! But enough with that ego-tripping already, I’ve got an Opera-bug to look into! Or wait, I’ll watch this great new Pomplamoose+Ben Folds+Nick Hornby  videosong first:

Ben Folds, Nick Hornby, & Pomplamoose VideoSong!!!!

Watch this video on YouTube or on Easy Youtube.

As found on the web (August 25th)

facebook (feed #40)
frank Frank heeft z’n htc hero geüpgrade naar android 2.2 froyo (met froydvillain)..
generic (feed #49)
generic (feed #49)
generic (feed #49)
blog (feed #46)
generic (feed #49)
frank posted The Chilling Effect.
generic (feed #49)
generic (feed #49)
blog (feed #46)
generic (feed #50)
generic (feed #50)
generic (feed #49)
generic (feed #49)
Watch this video on YouTube or on Easy Youtube.

youtube (feed #51)

Watch this video on YouTube or on Easy Youtube.

Not Fall Apart by Broken Glass Heroes.

Watch this video on YouTube or on Easy Youtube.

Protecting wp-contact-form from spam

Ever since I installed WordPress on my (virtual) server, I’ve been using the WP Contact Form plugin to provide me with simple contact form. The plugin isn’t exactly under active development (Last Updated: 2009-8-28), but it got the job done and I was quite happy with it. Until spammers found the page and started abusing it, that is. There’s a bunch of other Contactform-plugins in the wordpress.org plugins repository, but most of them were either too feature-packed or development for them seemed to have stopped.

I considered adding ReCaptcha at first, but why would I want to put my visitors through such an ordeal; the captcha’s seem to have gotten very difficult to decipher.  Next possibility; implement Akismet (Mollom would have been a great choice as well)? There’s a great Akismet PHP5-class, you just provide your API-key and off you go. But it seemed kind of inefficient to have to do all that with the official Akismet-plugin already in place?

But wait a minute, why not just piggyback on the Akismet-plugin, as the Clean-contact plugin and wp-contactform-akismet did? Keep it simple stupid and so I just copy/pasted the clean_contact_akismet-function from Clean Contact’s code into my wp-content/plugins/wp-contact-form/wp-contactform.php and on line 142 I changed:

mail($recipient, $subject, $fullmsg, $headers);
$results = '<div style="font-weight: bold;">' . $success_msg . '</div>';
echo $results;

into:

$akismet=clean_contact_akismet($msg,$subject,$email,$name);
if (!$akismet) {
mail($recipient, $subject, $fullmsg, $headers);
$results = $success_msg;
} else {
$results = 'If it looks like spam and smells like spam, it must be spam. Leave (or rephrase)!';
}
echo '<div style="font-weight: bold;">'.$results.'</div>';

That was all it took to add Akismet spam-filtering to that KISS-y wp-contact-form plugin. I wonder why this isn’t in the plugin already?

Switching back from Froyo to HTC’s Eclair

Although I was quite pleased with my Hero after installing HTC’s version of Android 2.1 (in the guise of VillainRom 12), I couldn’t refrain myself from wanting to install Froyo, the latest and greatest version of Android. The guys over at VillainRom provided a great Froyo rom (Froydvillain 1.2) based on the official Android sources and the work of the CyanogenMod team with CM6 and added LauncherPro, a beautiful alternative to HTC’s Sense, to the mix:

Watch this video on YouTube or on Easy Youtube.

After seeing FroydVillain run on the Hero of a daredevil colleague of mine (thanks Thomas!), I swiftly booted my HTC into recovery mode, made a backup of my Eclair-installation and effortlessly slapped FroydVillain on my handset. But now, only 2 days later, I’m back on HTC’s Eclair.

Why? Because of what HTC adds to the mix. Although Froyo + Cyanogen mods + LauncherPro is a fast & slick combination, there were a number of (mostly minor) annoyances which bugged me enough to do a rollback to VillainRom 12 (i.e. HTC’s Eclair).

Some of the quirks that irked me:

  • the keyboard seemed a tad more clunky, there’s no button to hide it (the keyboard tends to get in the way sometimes) but most importantly there’s no Dutch dictionary installed meaning no spelling correction and above all no text-prediction
  • the new Android-native Exchange mail integration is great, but there’s no indication of new Exchange mails on the Launcherpro homescreen and most importantly it is too easy to accidentally delete a mail (the button is located at the bottom right of the screen!) and there’s no undo or move available
  • battery life seemed shorter and there’s no way to disable ‘always-on mobile data‘ (a continuous data-connection doesn’t help battery life)
  • the dialer application (you know, to actually call someone) does not search my contacts while typing a number (HTC’s dialer searches both numbers and names, which is a great time-saver)
  • in the browser bookmarking is less straightforward (no ‘add bookmark’ in the menu iirc), there’s no ‘reload’ in the main UI (it’s at the right side of the address-bar in HTC’s Eclair)
  • the free version of Launcherpro does not come with a calender widget (the “Plus” version does though) and I could not find one to my liking on the Android market
  • as I had to re-install my apps, Shazaam didn’t recognize me as an existing user, meaning I lost unlimited tagging

So in spite of increased speed and an overall very nice package, I decided (after having had to run downstairs last night to move that accidentally deleted important mail back to my inbox on my PC) to abandon FroydVillain and switch back to VillainRom 12. I was a little upset with Nandroid spitting out that horrible “Run nandroid-mobile.sh via adb” error, but it turned out that it wisely doesn’t like to have to work on an almost empty battery. After recharging I successfully restored good ole HTC Eclair.

Froyo + LauncherPro is a great combination, but it’s not in the same league as HTC’s polished Eclair builds yet. Thanks for the great job HTC, I’m looking forward to your Desire HD with HTC Froyo (or Gingerbread?) which I’ll probably buy from you next year.

As found on the web (August 18th)

generic (feed #49)
generic (feed #49)
generic (feed #49)
generic (feed #49)
generic (feed #49)
Watch this video on YouTube or on Easy Youtube.

youtube (feed #51)

Watch this video on YouTube or on Easy Youtube.

Hopkins – Light Through The Veins (Full 9 Minute HQ Version).

Watch this video on YouTube or on Easy Youtube.

generic (feed #49)
Watch this video on YouTube or on Easy Youtube.

youtube (feed #51)

Watch this video on YouTube or on Easy Youtube.

Tet – Plastic People.

Watch this video on YouTube or on Easy Youtube.

generic (feed #49)
blog (feed #46)
frank published Afscheid van m’n Vero.
generic (feed #49)
generic (feed #49)
generic (feed #49)
frank posted Paint prose.

Afscheid van m’n Vero

M’n Vero en ik, we gaan uit elkaar. We waren 2,5 jaar lang onafscheidelijk, maar ze vindt me de laatste tijd te veeleisend. Ik wil inderdaad vooruit en dan trek, sleur en duw ik haar tot ze mee wilt. Daar heeft ze het moeilijk mee en sinds ik haar een paar maand geleden zowat mishandelde, is het nooit meer écht goed gekomen. Dus het is beter voor ons alletwee, ik ruil haar in voor een nieuw model; sneller, jonger, steviger! M’n Vero heeft overigens ook al iemand anders, daar heb ik zelf voor gezorgd, want ik wil dat ze goed terechtkomt! Maar mijn nieuwste verovering is wel familie; m’n Vero liep er misschien niet mee te koop, maar ze was eigenlijk een Dahon en dat is m’n nieuwe vouwfiets dus ook.

Het is dus weer geen exclusieve Birdy geworden, geen dure Brompton en ook geen nieuwerwetse Ori, maar een Dahon Vitesse D7HG. Fantastische zithouding, lichte en dus snelle fiets, een onberispelijke afwerking en een bijzonder scherpe prijs. In prijs en afwerking zit hem overigens het grootste verschil met m’n Vero. En in die fantastische Shimano Nexus 7-speed naafversnelling natuurlijk.

Een twist grip shifter en pot-versnellingen, ik zit bijna terug op de Raleigh Grifter waar ik in m’n jeugd van droomde!

As found on the web (August 11th)

generic (feed #49)
generic (feed #49)
frank posted RIP Google Wave.
youtube (feed #51)
frank liked 2 videos.
Watch this video on YouTube or on Easy Youtube.

Watch this video on YouTube or on Easy Youtube.

generic (feed #49)
blog (feed #46)
generic (feed #49)
generic (feed #49)
frank posted jTenoriOn.