jQuery UI Tabs back button history

I just ran into this as well. Its really easy with the jquery address plugin here http://www.asual.com/jquery/address/ The demo for tabs seemed a bit over complicated. I just did this: $(‘document’).ready(function() { // For forward and back $.address.change(function(event){ $(“#tabs”).tabs( “select” , window.location.hash ) }) // when the tab is selected update the url with the … Read more

Can tags be automatically moved after a git filter-branch and rebase?

I’ve written a script that does this. $ git-rebase-tags master Rebasing 107 tags onto ‘master’ Can’t rebase tag ‘staging-deploy-01’ because there are no identical commits on ‘master’ Pointed tag ‘v0.0.11’ at commit 81e16f2ca1bc7802547bf19c1dba1a68212eafff Pointed tag ‘v0.0.12’ at commit 17051cc28084dd56ae56e96767bceee46217c02d Pointed tag ‘v0.0.13’ at commit 5d795076ba4b33f81d327dcf9bff727cef7771a2 […] See gist.github.com/908381. But even better, use the –tag-name-filter option … Read more

Historical reason behind different line ending at different platforms

DOS inherited CR-LF line endings (what you’re calling \r\n, just making the ascii characters explicit) from CP/M. CP/M inherited it from the various DEC operating systems which influenced CP/M designer Gary Kildall. CR-LF was used so that the teletype machines would return the print head to the left margin (CR = carriage return), and then … Read more

Git – how do I view the change history of a method/function?

Recent versions of git log learned a special form of the -L parameter: -L :<funcname>:<file> Trace the evolution of the line range given by “<start>,<end>” (or the function name regex <funcname>) within the <file>. You may not give any pathspec limiters. This is currently limited to a walk starting from a single revision, i.e., you … Read more

SecurityError: The operation is insecure – window.history.pushState()

Make sure you are following the Same Origin Policy. This means same domain, same subdomain, same protocol (http vs https) and same port. How does pushState protect against potential content forgeries? EDIT: As @robertc aptly pointed out in his comment, some browsers actually implement slightly different security policies when the origin is file:///. Not to … Read more