Fork webpages
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.
Link: Stop paying your jQuery tax
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
$.readyfunction 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.
What Happens When You Swear At Your Users
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.
Hide elements that will be shown by jQuery later
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.
Preprocessing CCK field output
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.
Project Cars
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.
Asynchronous UIs – the future of web user interfaces
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.