jaxry / bubblechan Goto Github PK
View Code? Open in Web Editor NEWthe two-dimensional 4chan reader.
License: Other
the two-dimensional 4chan reader.
License: Other
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.
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).
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?
Navigating to /board
/ will load a thread catalog similar to the official browser.
Buttons appear at the bottom which link to the original 4chan post and image.
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).
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).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.