Archive for the ‘webdevelopment’ tag
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.
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.
Combining multiple Subversion repositories
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.
Useful Coding Tools and JavaScript Libraries For Web Developers
Here are some of the most useful coding and workflow tools released recently.
via Useful Coding Tools and JavaScript Libraries For Web Developers
balupton/docpad – GitHub
static website generator using node.js
Host Editor 7 – Hassle free host editing for Win7-XP
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.
Hide Trackbacks – Hide ping- and trackbacks from your 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:
- Upload the `hide-trackbacks` directory to `/wp-content/plugins/`.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Download link and information:
WordPress.org Hide Trackbacks