Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

misc

  • Loading branch information...
commit b58645e78ec163e004876b1ca282fdcae3fa8730 1 parent d7b8e91
@rejetto authored
View
1  .gitignore
@@ -17,3 +17,4 @@ results
node_modules
npm-debug.log
+out.txt
View
27 note.txt
@@ -33,6 +33,7 @@ system integration
- search
- select & action (archive, delete, rename...)
- the web apps must perfectly working offline, don't rely on online resources (or do it just as an option or gracefully degrade)
+- most non-core features should be plugins. We should have a repository and easy installations.
=== GUI
libraries to evaluate
@@ -102,3 +103,29 @@ http://superdit.com/2011/06/01/extjs-simple-file-browser/
- icon
- ? message when not allowed
- permissions and options have default values that are enforced when not assigned, to not clutter the stored data structure
+
+
+=== MORE IDEAS
+- adding only "?" at the end of an URL of a file, will turn on a specific feature on that download
+ like asking the browser for the save dialog
+ could this be done with a plugin?
+- only-once downloads
+ plugin?
+
+=== PLUGIN SYSTEM
+- an important part in designing a good plugin system is to have clear in mind what their needs are
+ - it could be good to collect plugins idea, then list what their needs are. So it's easier to sequentially
+ check that every requirement is met
+- technically, how to make it?
+ - HFS could be the event emitter, and plugins the subscribers
+ - this won't permit plugins to be blocking. Like a plugin who takes an output and wants to manipulate
+ it before outputting.
+ - a real example?
+- enable/disable plugins without having to restart the server
+- possible plugins
+ - add flags to displaied connections
+ - this is mainly client-side
+ NEED: integrate with the template
+ - it needs access to a webservice, so it needs a server part that will proxy the webservice
+ NEED: respond to its own socket.io messages
+
View
2  speedtest.js
@@ -9,7 +9,7 @@ var http = require('http');
var fs = require('fs');
var srv = http.createServer(function(httpReq,httpRes){
- console.log('serving');
+ //console.log('serving'); // for heavy loads this can affect performances
httpRes.writeHead(200);
fs.createReadStream(myGigFile).pipe(httpRes);
View
2  static/backend/main.css
@@ -5,7 +5,7 @@ a img { border:0; } /* conform IE */
#vfs li { border:2px solid transparent; padding:0.1em 0.2em }
#vfs li.selected { background:#ddf; border-color:#99f; }
#vfs li.hovered { background:#eee; }
-#vfs .expansion-button { margin-right:0.5em; cursor:pointer; }
+#vfs .expansion-button { margin-right:0.5em; cursor:pointer; } /* monospace is useless in this case to get a fixed width */
#vfs .expansion-button.hovered { background-color:#ddd; }
#vfs li.collapsed>ul { display:none; }
#vfs .no-children { color:#888; }
View
23 todo.txt
@@ -1,4 +1,5 @@
=== DOING
+it's like there's a memory leak. See section below for tests already made.
debugging console via telnet (still working very bad)
improve in-source documentation
http://en.wikipedia.org/wiki/JSDoc
@@ -14,6 +15,7 @@ make the .expansion-button a fixed size
? if 2 binds have 2 subfolders with same name, should merge them too?
vfs permissions
backend: vfs: drag&drop
+zip stream
handle non-working IO connection for both frontend and backend
? coffee-script
what wiki to use for development, github or rejetto.com?
@@ -22,3 +24,24 @@ modules that could be useful
mime https://github.com/bentomas/node-mime
most used reloader https://github.com/remy/nodemon
browse the whole list at https://github.com/joyent/node/wiki/modules
+
+=== SHOULD I SWITCH TO PYTHON 3?
+now tornado supports python3. Reconsider.
+ PROS
+ - (?) wider programmers community
+ - more libraries (sure? libs need to be async, don't they? so, they may even be fewer)
+ CONS
+ - have to port what's already written
+
+=== MEMORY LEAK
+having a refresh at 1Hz
+ both frontend and backend
+ 86mb@30' 103mb@45' 111mb@60' 142mb@75'
+ frontend
+ 76mb@0' 102mb@20' 106mb@30' 119mb@45'
+ speedtest
+ 20mb@0' 21mb@15' 25mb@30' 25mb@45' 24mb@60'
+ backend
+ 36mb@0' 48mb@15' 56mb@30' 67mb@45' 76mb@60' start 15:40
+ backend without vfs 4x
+ 32mb@0' 38mb@5' 52mb@18' 56mb@23' start 16:55
Please sign in to comment.
Something went wrong with that request. Please try again.