This is a Javascript technique to maintain the position of the scroll bars between different page loads. This is achieved by storing the scroll position in the window.name object right before a new page is loaded. See the demo to see how it works. This technique is great for pages that use a tabbed or slideshow design, but don’t use AJAX to reload content for either SEO or lazy reasons. read full post…
A simple explanation of how mod rewrite works by showing an example of a mod_rewrite script and the same logic written in pseudo-code. The pseudo-code should help build some intuition on how the mod_rewrite script gets executed, and there is a followup link to a cheat sheet. read full post…
Prevent duplicate content your website by redirecting “www” and “index.html” pages to one canonical url with this mod_rewrite script. It has the added benefit of only ever doing one redirect, instead of dealing with both problems separately, and it can easily be modified to handle other situations, such as redirecting “index.php” urls. read full post…

13 February 2010

Result Badge: Hunch Widget

The new hunch “Result Badge” widget, which let’s you display rankings and user reviews about any hunch result on your own site. The two examples are of bourbon drinks from the Hunch cocktails topic. The javascript for the widget creates a div on your page, which allows it to fit into any width container and to have variable height. read full post…

09 February 2010

SEO Bookmarklets

A followup to the SEOmoz post ”30 seo bookmarklets to save you time,” with an exported HTML file of all 30 bookmarklets—to really save you some time. This also has a javascript example of a nofollow bookmarklet. read full post…

Peter Coles

Peter Coles

is a software engineer living in NYC who is building Superset 💪 and also created GoFullPage 📸
more »

github · soundcloud · rss