futtta's blog

Frank Goossens' Twitterless twaddle

Lui klust met hout

without comments

Indien ik Kabouter zou zijn, dan was ik niet Klus, maar Lui. Ik ben immers echt niet handig en van hard werken word ik zo moe. Mijn Kwebbel zou dat zeker bevestigen, maar ik hoop dat ze er wel aan zou toevoegen dat als ik eenmaal hamer en zaag vastheb, ik niet meer te stoppen ben.

Maar soit, te stoppen of niet, ik heb hoedanook twee linkerhanden. Toen ik een jaar of 14 was, droeg m’n vader me op om tijdens de grote vakantie een vogelkastje te timmeren. Ik kreeg wat hout, het gereedschap en een week de tijd om pakweg een koolmees een dak boven kop en kroost te klussen. Maar dat liep, ondanks de hulp van buurtvriend Patrick, al van bij het begin verkeerd; ik had de 6 plankjes schots en scheef gezaagd. Vooral de zijkanten, die bovenaan een hoek van pakweg 35 graden moesten hebben, waren een ramp. Bij elke poging om linker- en rechterkant enigszins gelijk te zagen, werd het vogelkastje weer een stukje kleiner. Ik denk dat we, op aangeven van m’n wanhopige vader, de zijkanten uiteindelijk samen in de Black&Decker Workmate hebben geklemd en met een grove houtvijl, rasp of schaaf de boel enigszins gelijk hebben gedwongen. Toen het kastje min of meer in elkaar zat, hebben we de resterende gaten en kieren met Gupa dichtgestopt. Ik was misschien onhandig, maar ook een beetje trots, want we hebben dat vogelkastje aan het huis opgehangen en gedurende pakweg 15 jaar hebben zich daar elk jaar kool- en andere meesjes in genesteld.

We zijn nu 27 jaar verder maar er is op dat vlak weinig veranderd. Ik voel me opnieuw onhandig maar trots; ik heb met wat overbleef van het houtschuurtje van de vorige bewoners, eigenhandig een nieuw afdak voor brandhout in elkaar gezaagd en getimmerd! Het is niet volgens de regels van de doe-het-zelf kunst, het staat allemaal niet waterpas, maar het is wel stevig (het dak droeg een kortstondige belasting van 85kg) en m’n hout zal de komende 15 jaar min of meer droog liggen. Ik denk dat deze Lui nu echt wel een frisse pint uit de Melkherberg verdiend heeft, toch?

Written by frank

September 2nd, 2010 at 9:41 pm

As found on the web (September 1st)

without comments

Written by frank

September 1st, 2010 at 1:08 pm

Posted in web wandering

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

without comments

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 Complete Fully Loaded
Load Time First Byte Start Render Time Requests Bytes In Time Requests Bytes In
First View 1.850s 0.634s 1.330s 1.850s 15 343 KB 5.350s 22 524 KB
Repeat View 1.142s 0.346s 0.497s 1.142s 5 17 KB 2.455s 5 17 KB

And with WP YouTube Lyte (full results here):

Document Complete Fully Loaded
Load Time First Byte Start Render Time Requests Bytes In Time Requests Bytes In
First View 1.201s 0.355s 0.974s 1.201s 10 55 KB 2.065s 20 103 KB
Repeat View 0.605s 0.352s 0.473s 0.605s 2 12 KB 1.447s 5 14 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:

Watch this video on YouTube or on Easy Youtube.

Written by frank

August 30th, 2010 at 8:02 am

As found on the web (August 25th)

without comments

Written by frank

August 25th, 2010 at 1:07 pm

Posted in web wandering

Protecting wp-contact-form from spam

without comments

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?

Written by frank

August 23rd, 2010 at 5:25 pm

Switching back from Froyo to HTC’s Eclair

with 4 comments

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.

Written by frank

August 20th, 2010 at 8:08 am

As found on the web (August 18th)

without comments

Written by frank

August 18th, 2010 at 1:07 pm

Posted in web wandering