Skip to content

Commit

Permalink
Move post crushes to new server
Browse files Browse the repository at this point in the history
  • Loading branch information
jcutler committed Jul 7, 2011
1 parent a0f0d1d commit a13b3e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions chrome/postCrushes/postCrushes.js
Expand Up @@ -23,7 +23,7 @@

/*global window, chrome, localStorage */

var missingeServer = 'http://missinge.host22.com';
var missingeServer = 'http://crush.missinge.infraware.ca';

var crushdiv = document.getElementById("crushes");
var infodiv = crushdiv.nextSibling;
Expand Down Expand Up @@ -101,7 +101,7 @@ innerdiv.addEventListener('click', function() {

localStorage.setItem('tcp_crushTags',crushname.join(','));
localStorage.setItem('tcp_crushURL', missingeServer +
'/postcrushes/?' + get);
'/?' + get);
window.open('http://www.tumblr.com/new/photo?' +
'post%5Bone%5D=&post%5Btwo%5D=' + txt + '&post%5Bthree%5D=');
});
Expand Down
4 changes: 2 additions & 2 deletions firefox/missinge/data/postCrushes/postCrushes.js
Expand Up @@ -23,7 +23,7 @@

/*global localStorage, safari */

var missingeServer = 'http://missinge.host22.com';
var missingeServer = 'http://crush.missinge.infraware.ca';

function postCrushesSettings(message) {
var i,j;
Expand Down Expand Up @@ -79,7 +79,7 @@ function postCrushesSettings(message) {

localStorage.setItem('tcp_crushTags',crushname.join(','));
localStorage.setItem('tcp_crushURL', missingeServer +
'/postcrushes/?' + get);
'/?' + get);
self.postMessage({greeting: "open", url: 'http://www.tumblr.com/new/photo?' +
'post%5Bone%5D=&post%5Btwo%5D=' + txt +
'&post%5Bthree%5D='});
Expand Down
4 changes: 2 additions & 2 deletions missinge.safariextension/postCrushes/postCrushes.js
Expand Up @@ -23,7 +23,7 @@

/*global localStorage, safari */

var missingeServer = 'http://missinge.host22.com';
var missingeServer = 'http://crush.missinge.infraware.ca';

function postCrushesSettings(response) {
var i,j;
Expand Down Expand Up @@ -79,7 +79,7 @@ function postCrushesSettings(response) {

localStorage.setItem('tcp_crushTags',crushname.join(','));
localStorage.setItem('tcp_crushURL', missingeServer +
'/postcrushes/?' + get);
'/?' + get);
safari.self.tab.dispatchMessage("open",'http://www.tumblr.com/new/photo?' +
'post%5Bone%5D=&post%5Btwo%5D=' + txt +
'&post%5Bthree%5D=');
Expand Down
4 changes: 2 additions & 2 deletions userscripts/tumblrPostCrushes.user.js
Expand Up @@ -45,7 +45,7 @@

var tcp_settings;
var isFF = (navigator.userAgent && navigator.userAgent.indexOf("Firefox") != -1);
var missingeServer = 'http://missinge.host22.com';
var missingeServer = 'http://crush.missinge.infraware.ca';

function doSettings() {
if (isFF) {
Expand Down Expand Up @@ -216,7 +216,7 @@

window.localStorage.setItem('tcp_crushTags',crushname.join(','));

window.localStorage.setItem('tcp_crushURL', missingeServer + '/postcrushes/?' + get);
window.localStorage.setItem('tcp_crushURL', missingeServer + '/?' + get);
window.open('http://www.tumblr.com/new/photo?post%5Bone%5D=&post%5Btwo%5D=' + txt + '&post%5Bthree%5D=');

}, true);
Expand Down

4 comments on commit a13b3e4

@parkr
Copy link
Contributor

@parkr parkr commented on a13b3e4 Jul 8, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Knew you could do it!

How big is the "Post Crushes" feature?

@jcutler
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean file size? It's incredibly tiny. A single PHP file.

Only thing is that it curls 9 avatars, and then generates the crush set using PHP GD library. I've ramped down the quality as much as I dared to, but it takes bandwidth every time.

@parkr
Copy link
Contributor

@parkr parkr commented on a13b3e4 Jul 13, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant size in terms of usage! Sorry.

@jcutler
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far it seems to be okay, less than 30MB per day. Each file generated is between 30-40kB for the large format crushes and 10-20kB for the smaller format (which is the default setting).

Please sign in to comment.