VanDragt.com

Commentary on Digital Media and Usability

Fork webpages

without comments

I’m looking for something a bit unusual. Say you are following the instructions for installing a software package (rl example: http://library.linode.com…/webmin/installing-webmin). Now you find out the instructions are outdated, or incomplete.

How do you keep your notes/additional instructions together with the original? Now you have two problems, your instructions and the original can be updated independently. What happens when the original is updated, or a new version of the software is released?

Wouldn’t it be great if you could fork the webpage and update it (or even submit a pull request to the maintainer)?

Is there any practical way of working this way – or will I be stuck with a notetaker / blog / bunch of outdated textfiles?

A lot of questions – maybe one of you has the answer.

Written by Sander

February 17th, 2012 at 11:25 am

Posted in Uncategorized

Tagged with

Link: Stop paying your jQuery tax

without comments

Speed up your jQuery powered site by moving scripts to the footer.

Turns out that pushing jQuery to the footer is quite easy for the common case. If all we want is a nice $.ready function that we have accessible everywhere we can explicitly define it without jQuery. Then we can pass the functions we capture to jQuery later on after it loads.

The big lesson learned is that we could avoided this whole problem if we started off with my proposed helper.

via Stop paying your jQuery tax.

Written by Sander

February 17th, 2012 at 11:07 am

Posted in Uncategorized

Tagged with

What Happens When You Swear At Your Users

without comments

A valuable lesson for anyone running a website:

After working out a few technical kinks and several botched emails, thanks to missing line breaks, we sent out a final test email to ourselves.  Unfortunately, it went out to every user 

fetchworthy notes • What Happens When You Swear At Your Users.

Written by Sander

February 7th, 2012 at 10:04 am

Posted in Uncategorized

Tagged with ,

Hide elements that will be shown by jQuery later

without comments

I stumbled upon this gem by Jerph on Stackoverflow:

Right after the body tag, put a script tag with this javascript:

jQuery('body').addClass('js');

This gives you a style hook for any elements that will look different in some way when Javascript enabled, and it happens immediately.

via css – Hide jQuery Accordion while loading – Stack Overflow.

Written by Sander

January 30th, 2012 at 10:51 am

Posted in Uncategorized

Preprocessing CCK field output

without comments

So I spent a totally unproductive morning figuring out how to override a single field’s output in Drupal without rewriting my complete template code for the content type – I want to keep using the $content variable. After many a fruitless attempt luckily Grag Harvey has the answer:

Actually, control over CCK fields can be gained using CCK’s own templates.

Consider the situation where your field is called field_test.

Copy content-field.tpl.php to your theme directory and copy it again for the field whose mark-up you wish to alter, naming it content-field-field_test.tpl.php in this case.

Then change the mark-up in the file and it will alter the output of that specific CCK field.

No need to touch node.tpl.php!

Adapted via greg.harvey’s answer at node.tpl.php | Drupal API.

Written by Sander

December 7th, 2011 at 2:10 pm

Posted in Uncategorized

Tagged with , ,

Project Cars

without comments

Sign up to WMD, the somewhat unfortunate acronym chosen for Slightly Mad’s World of Mass Development platform, and you’re granted access to regularly released builds of the game, which you’re then free to pick apart in the official forums. That feedback then gets absorbed by Slightly Mad Studios, a simple loop that means that, when the game is eventually released, it’ll be as much a product of the community as it is of the studio.

via Project Cars Preview • Eurogamer.net.

Looks like an interesting development strategy, made famous by Minecraft.

Written by Sander

November 25th, 2011 at 2:35 pm

Posted in Uncategorized

Tagged with

Asynchronous UIs – the future of web user interfaces

without comments

Discovered this javascript MVC framework SpineJS. The ToDo app is extremely impressive. Try and manipulate items as quickly as possible. Tthen close and reopen the browser. Nice.

via Asynchronous UIs – the future of web user interfaces.

Written by Sander

November 22nd, 2011 at 4:10 pm

Posted in Uncategorized

Tagged with