Giter Club home page Giter Club logo

cloudsave's Introduction

############# Cloud Save

It's actually really amazing how many people now use Cloud Save. In fact, when I
first built this, I had no idea how anyone would possibly find this extension of
any practical use whatsoever. I still only have a vague idea as to how it could
be used, so this probably implies that I'm not the best maintainer of this project
but at least it's popular and rather awesome. Personally, I find drag2up much more
original, innovative and awesome.

Cloud Save is still pretty cool though. And it's not a terrible name, actually. Its
probably the one project of mine which actually has a fairly decent name.

Right now, I'm going to try doing development of cloud save on the cloud via the 
cloud9 IDE on a Cr-48. It's going pretty well so far and it's really awesome.

############## Design for Cloud Save 1.2

Version 1.2 will feature tons and tons of magic. Really really magical magic. 

The basis is a moving window-ish persistant stack which contains the names of hosts
used. eg. dropbox, dropbox, picasa, picasa, box.net, google docs, dropbox, google docs, dropbox

Right now, I figure the ideal value is 10. Why? Because Math.sqrt(10) day is next 
week and also incidentally my birthday is on sqrt(10) day. It's also between five 
and fifteen, if my third grade arithmetic skills are still intact. 

So this moving window is kept persistantly via localStorage. It gets processed and 
sorted into unique elements: dropbox, picasa, google docs, box.net. Then those are
sorted by a magical ranking coefficient.

The general formula for this ranking index is
number_of_times_used_in_past_10 + most_recent_index / index_dampening_factor

dropbox was used 4 times in that list - most recent is the last one of the list of so index 8
picasa twice - most recent index is 3
box.net once - most recent index is 4
google docs twice - most recent index is 7

the index dampening factor should be a big number. the second term in the magical
equation that is used here exists for the sole purpose of breaking ties between
things used an equal number of times to favor those who have been used more recently
(or should it be a smaller number?). A good value is something like the total 
size of the moving window multiplied by 10. But to be safe, something like 1000 could
be used. Though any number should theoretically work, for debugging purposes it would
be nice if it was a power of ten.

The top six most recently used hosts will be shown. Or less than that if the last
ten include less than six items (again, ordered by the rank thing).

Once a file is uploaded, the list must be recalculated and generated.

The first level menu will be the same: 

Cloud Save >

Second level:

Save As... >
------------
HOst1
Host2
Host3
Host5
Host6
Host4
------------
More       >

There are two tertiary menus. Save As... however looks exactly like the secondary
level menu but without another save as submenu (obviously).

So the More.. menu, which is the only interesting tertiary menu will be as follows:

Add/Remove...
-------------
HostA
HostB
HostC
HostD
HostE
HostF
HostG
HostH
...

As follows. The tertiary list will include all the other hosts in alphabetical order.

Add/Remove is sort of a misnomer as it will not actually do anything in verison 1.2
instead, it'll be a link to the settings page which will do virtually nothing except
for configuring some very magical variable coefficients and stuff. probably.

These plans were written at 4:23PM Eastern Standard Time on the Eleventh of March of
the year 2011.

cloudsave's People

Contributors

antimatter15 avatar brianstewart avatar chaohuang avatar ineo6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudsave's Issues

Flickr uploads - default permission settings, tags

When I use cloud save to upload to Flickr, it does 2 things which I would like to be able to change/edit.

  1. Cloud Save always uploads new pictures/image files with view permission settings of "Anyone (Public)". Is it possible to change this to be the default privacy upload settings each user sets for their account?
  2. Cloud Save will always attach a "drag2up" tag with any pictures/image files uploaded to Flickr. Is it possible to remove or edit this tag?

Skydrive failure

Save to Skydrive fails everytime. debugging shows an error in skydrive,js at this line :
var canary = down.responseText.match('"canary".?value.?"(.*)"')[1]

Failed to load resource: the server responded with a status of 404 (Not Found) https://skydrive.live.com/upload.aspx/.Documents?sc=documents&cid=********

Uncaught TypeError: Cannot read property '1' of null skydrive.js:15
xhr.onload.down.onload

Add Dropdo.com support

Would you consider supporting http://dropdo.com? Support would be really really simple - just send images and links to http://dropdo.com/upload?link= to upload in a new tab. I just released a Dropdo extension which does this (https://chrome.google.com/extensions/detail/hmopadjnccgojndgeimbbfhpnmocmdne) and already people told me to see if you would consider adding support to Cloud Save, so here I am.

If you want me to write the code and submit a pull request, just let me know. Thanks!

Facebook Integration

Up until recently the Facebook link worked seamlessly. But recently it's not working. I tried it with all other extensions turned off and have not made any recent changes to my browser set up. any idea why this might be broken and if there's anything I personally can do to fix it?

Posterous Notifications

No success/failure notification via webkitNotifications for Posterous uploads.

callback url encode in posterous.js causing method not found error in upload function in cloudsave.html.

Changed ({url:{json.url}) to (json.url) for plain text into callback. Seems to work.

Error on try to save (No user interaction)

Linux x86_64, Chrome 36.0.1985.125
On save to Picasa no user interaction.

JS console of add-on contains:

Source URL http://gic5.mycdn.me/getImage?photoId=569047461038&photoType=17 cloudsave.js:123
Processed name getImage cloudsave.js:132
Error in event handler for contextMenus: Cannot read property 'checkPermission' of undefined
Stack trace: TypeError: Cannot read property 'checkPermission' of undefined
at upload (chrome-extension://ehjiibljljecbmgpgdlkejiaadppplkp/cloudsave.js:362:50)
at handle_click (chrome-extension://ehjiibljljecbmgpgdlkejiaadppplkp/cloudsave.js:157:7)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at extensions::contextMenus:42:19
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at EventImpl.dispatchToListener (extensions::event_bindings:397:22)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at Event.publicClass.(anonymous function) as dispatchToListener
at EventImpl.dispatch_ (extensions::event_bindings:379:35)
at dispatchArgs (extensions::event_bindings:247:26)

Dropbox

I have Ubuntu 10.10, google chrome 10.0.648.204

Nothing happens when i try to save an image or anything else when i click the context menu "dropbox" under "cloud save". I can't even login to dropbox.

upload from download tab is broken

a) reproduce steps: download any file, switch to download tab, rightclick the downloaded file, cloudsave => progress bar stalling
b) reproduce configuration chrome 15, Win7

but it's kinda sort of a local upload from a link, so I guess there's chrome security policies involved

Beautiful and magistral extension, bravo !
What's the code license ? not advertised on the github project homepage

Not working anymore

Suddenly stopped working. Any service choosen results in no respons.
Have tried to remove the extension and its permissions from facebook, to reinstall it.
Trying to upload to facebook I end up with no respons when I expect an authentication via facebook.
Note: This problem applies to all services, I've tried Google Docs, Picasa, Skydrive, Dropbox and many others.

OS: Windows 8 64 bit
Chrome version: 28.0.1500.72m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.