Giter Site home page Giter Site logo

bubblechan's People

Contributors

lehitoskin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bubblechan's Issues

Scale nodes according to their centrality

Currently when the graph is zoomed out, the nodes stay the same size. Instead, a node should be scaled up proportional to the node's centrality in the graph. The idea is that important nodes will stand out, making it easy to see which posts are the most interesting.

I believe Katz centrality would be the best measure of post importance.

Re-center to OP

I think there needs to be a key that brings you back to the OP (pressing Home, perhaps?). This would help in situations where there are several branching conversations and you need to scroll a lot to get back there (because zooming out is for nerds).

no method 'execSync'

lehi@rydia ~/p/j/bubblechan> npm run build

> [email protected] build /home/lehi/prog/js/bubblechan
> node build.js


/home/lehi/prog/js/bubblechan/build.js:10
childProcess.execSync('gcc force_direct.c -o ./bin/force_direct -lm -O3 -std=g
             ^
TypeError: Object #<Object> has no method 'execSync'
    at Object.<anonymous> (/home/lehi/prog/js/bubblechan/build.js:10:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

npm ERR! [email protected] build: `node build.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is most likely a problem with the bubblechan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls bubblechan
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.0.5-gentoo
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! cwd /home/lehi/prog/js/bubblechan
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/lehi/prog/js/bubblechan/npm-debug.log
npm ERR! not ok code 0

Is this a part of a package that I don't have installed or something?

Thread browser

Navigating to /board/ will load a thread catalog similar to the official browser.

npm run build error

lehi@rydia ~/p/j/bubblechan> npm run build

> [email protected] build /home/lehi/prog/js/bubblechan
> gcc force_direct.c -o ./bin/force_direct -lm -O3

force_direct.c: In function ‘create_nodes’:
force_direct.c:81:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < nodes_length; i++) 
     ^
force_direct.c:81:5: note: use option -std=c99 or -std=gnu99 to compile your code
force_direct.c: In function ‘create_edges’:
force_direct.c:102:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < edges_length; i++)
     ^
force_direct.c: In function ‘output_graph’:
force_direct.c:115:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < nodes.size; i++) 
     ^
force_direct.c: In function ‘force_direct’:
force_direct.c:129:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < ITERATIONS; i++)
     ^
force_direct.c:131:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int n = 0; n < nodes.size; n++) 
         ^
force_direct.c:136:18: error: redefinition of ‘n’
         for (int n = 0; n < nodes.size; n++)
                  ^
force_direct.c:131:18: note: previous definition of ‘n’ was here
         for (int n = 0; n < nodes.size; n++) 
                  ^
force_direct.c:136:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int n = 0; n < nodes.size; n++)
         ^
force_direct.c:138:13: error: ‘for’ loop initial declarations are only allowed in C99 mode
             for (int p = n + 1; p < nodes.size; p++)
             ^
force_direct.c:147:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int e = 0; e < edges.size; e++) 
         ^
force_direct.c:155:18: error: redefinition of ‘n’
         for (int n = 0; n < nodes.size; n++)
                  ^
force_direct.c:136:18: note: previous definition of ‘n’ was here
         for (int n = 0; n < nodes.size; n++)
                  ^
force_direct.c:155:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int n = 0; n < nodes.size; n++)
         ^

npm ERR! [email protected] build: `gcc force_direct.c -o ./bin/force_direct -lm -O3`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is most likely a problem with the bubblechan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gcc force_direct.c -o ./bin/force_direct -lm -O3
npm ERR! You can get their info via:
npm ERR!     npm owner ls bubblechan
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.0.5-gentoo
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! cwd /home/lehi/prog/js/bubblechan
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/lehi/prog/js/bubblechan/npm-debug.log
npm ERR! not ok code 0

Obviously it'd be simple to just specify -std=gnu99, but I can't seem to find the relevant file that contains the compilation instructions. (and I'm tired).

Consider AGPL

If you're going to go GNU, you should consider the Affero license. This would make certain that any services that use this code distribute a copy of the source (something not required by standard GPL).

Auto-update option speculation

There should be a box that allows auto-updating (with each refresh having a longer wait if there have been no new posts). I can see this being disorienting, however, as the software seems to completely reorient the graph whenever there's a new post.

Say, for example, you are reading a particular post when the page reloads and the graph has an entirely different orientation - that would unfortunately move the bubble the user was reading and force that user to go hunting through the map to find the bubble and resume reading.

Another problem I've found is that when the page is reloaded and the configuration is changed, I'm not entirely certain which posts were added to the map since the last reload or what posts were there from before but I just hadn't read them yet.

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.