Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration, select Apache Configuration and then click on Reserved IPs Editor.
| // includes bindings for fetching/fetched | |
| PaginatedCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
| this.page = 1; | |
| }, | |
| fetch: function(options) { | |
| options || (options = {}); | |
| this.trigger("fetching"); |
| var NUMBER_GROUPS = /(-?\d*\.?\d+)/g; | |
| var naturalSort = function (a, b) { | |
| var aa = String(a).split(NUMBER_GROUPS), | |
| bb = String(b).split(NUMBER_GROUPS), | |
| min = Math.min(aa.length, bb.length); | |
| for (var i = 0; i < min; i++) { | |
| var x = parseFloat(aa[i]) || aa[i].toLowerCase(), | |
| y = parseFloat(bb[i]) || bb[i].toLowerCase(); |
| // TODO: remove spaces and newlines | |
| javascript:(function(){ | |
| s=document.createElement('script'); | |
| s.type='text/javascript'; | |
| s.src='http://example.com/bookmarklet.js'; | |
| document.body.appendChild(s); | |
| })(); | |
| // TODO: bookmarklet code needs to be in an anchor tag | |
| // <a href="javascript:(function(){s=document.createElement('script');s.type='text/javascript';s.src='http://example.com/bookmarklet.js';document.body.appendChild(s);})();">My Bookmarklet</a> |