VanDragt.com

Commentary on Digital Media and Usability

Archive for the ‘webdevelopment’ tag

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

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

Combining multiple Subversion repositories

without comments

This post describes a step by step guide on how to combine multiple Subversion repositories whilst keeping individual history (and commit messages).

Dumping

Exporting from pagefeedbacktool repository the /trunk/public folder and integrating that into the services repository under /trunk/public/pagefeedback:

Dump the repository including only /trunk/public as follows:

E:\Repositories\pagefeedbacktool>svnadmin dump .| svndumpfilter include --drop-empty-revs --renumber-revs trunk/public > ..\services\filtered.dump

Loading

However as pathnames are stored as part of the dump (and replacing the path with a texteditor corrupts the dump), we have to include the full path under a different parent directory:

In VisualSVN create a /trunk/public/pagefeedback/trunk/public folder structure (try without the final public if import fails) then load the dump as follows:

E:\Repositories\services>svnadmin load . --parent-dir "trunk/public/pagefeedback" < filtered.dump

The dump is successful but at the wrong path:

currently: /trunk/public/pagefeedback/trunk/public
should be: /trunk/public/pagefeedback/

Post-correction

Open two Windows Explorer windows with both paths side by side, select all the files that should be moved, then RIGHT click drag them to the destination folder and choose SVN Move versioned files here...

Commit from the repository root.

It is now safe to remove the trunk/public folders under /trunk/public/pagefeedback/

Commit again.

Written by Sander

November 10th, 2011 at 3:30 pm

Posted in Uncategorized

Tagged with , , ,

Useful Coding Tools and JavaScript Libraries For Web Developers

without comments

Here are some of the most useful coding and workflow tools released recently.

via Useful Coding Tools and JavaScript Libraries For Web Developers

Written by Sander

October 31st, 2011 at 2:12 pm

Posted in Uncategorized

Tagged with , ,

balupton/docpad – GitHub

without comments

static website generator using node.js

via balupton/docpad – GitHub

Written by Sander

July 25th, 2011 at 11:06 am

Posted in Uncategorized

Tagged with , , ,

Host Editor 7 – Hassle free host editing for Win7-XP

without comments

I was fedup with the poor experience of editing my host file, which is often needed when developing websites. So I quickly created an AutoHotkey script for the purpose.

15:03:50 – me: anyone knows a host editor app that works under windows 7
15:04:51 – me: fed up trying to first find the hosts file, then not being able to save because I again forgot to run notepad with admin privileges.

Download @ Host Editor 7 – Hassle free host editing for Win7-XP – DonationCoder.com.

Written by Sander

July 18th, 2011 at 3:25 pm

Posted in Uncategorized

Tagged with , , , , ,

Hide Trackbacks – Hide ping- and trackbacks from your comments

without comments

Introducing Hide Trackbacks – You can have the benefits of track/ping backs (know when someone writes about posts) whilst keeping the comments clean and uncluttered.

After enabling the plugin, trackbacks and pingbacks are no longer shown on your posts and the comment count is updated correctly to reflect this. You can still access them via the admin panel. NOTE: Although the plugin officially requires WordPress 3.1.2 it might very well work on older WordPress versions (if it does please let me know).
Derived from original code created by  Honey Singh (used with permission of the author).

Installation is simple:

  1. Upload the `hide-trackbacks` directory to `/wp-content/plugins/`.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Download link and information:
WordPress.org Hide Trackbacks

Written by Sander

May 9th, 2011 at 2:23 pm

Posted in Uncategorized

Tagged with , , ,